Skip to content

Commit aece659

Browse files
feat: add AI gateway (#450)
* feat: add ai gateway * fix gitignore * open api comment todo * restructure to ai package * fix release yaml * fixes, feedback * address feedback * feedback * make context param * lint/format * lock file * start with 0.1.0 * fix bootstrap build * use new endpoint * Update packages/ai/src/bootstrap/main.ts Co-authored-by: Eduardo Bouças <[email protected]> * Update packages/ai/src/bootstrap/main.ts Co-authored-by: Eduardo Bouças <[email protected]> * Update packages/ai/src/bootstrap/main.ts Co-authored-by: Eduardo Bouças <[email protected]> * update variable naming --------- Co-authored-by: Eduardo Bouças <[email protected]>
1 parent ab65ebd commit aece659

File tree

16 files changed

+9482
-10820
lines changed

16 files changed

+9482
-10820
lines changed

.github/workflows/release-please.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,12 @@ jobs:
218218
fi
219219
env:
220220
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
221+
- if: ${{ steps.release.outputs['packages/ai--release_created'] || github.event_name == 'workflow_dispatch' }}
222+
run: |
223+
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
224+
npm publish packages/ai/ --provenance --access=public || true
225+
else
226+
npm publish packages/ai/ --provenance --access=public
227+
fi
228+
env:
229+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ coverage
66
.eslintcache
77
.cache
88
.vscode
9-
.fleet
9+
.fleet

.release-please-manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"packages/ai": "0.1.0",
23
"packages/blobs": "10.0.10",
34
"packages/cache": "3.1.0",
45
"packages/dev": "4.5.9",

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ npm run dev
2929

3030
| Name | Description | Version |
3131
| --------------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
32+
| 🤖 [@netlify/ai](packages/ai) | TypeScript utilities for interacting with Netlify AI features | [![npm version](https://img.shields.io/npm/v/@netlify/ai.svg)](https://www.npmjs.com/package/@netlify/ai) |
3233
| 🗄️ [@netlify/blobs](packages/blobs) | TypeScript client for Netlify Blobs | [![npm version](https://img.shields.io/npm/v/@netlify/blobs.svg)](https://www.npmjs.com/package/@netlify/blobs) |
3334
| 💾 [@netlify/cache](packages/cache) | TypeScript utilities for interacting with the Netlify cache | [![npm version](https://img.shields.io/npm/v/@netlify/cache.svg)](https://www.npmjs.com/package/@netlify/cache) |
3435
| 🛠️ [@netlify/dev](packages/dev) | Emulation of the Netlify environment for local development | [![npm version](https://img.shields.io/npm/v/@netlify/dev.svg)](https://www.npmjs.com/package/@netlify/dev) |

0 commit comments

Comments
 (0)