@andreprado/agentkit 0.1.0-alpha.2 → 0.1.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -6
- package/docs/guides/create-agent.md +1 -3
- package/docs/guides/prepare-deploy.md +2 -1
- package/docs/llms-full.txt +5 -4
- package/docs/llms.txt +2 -1
- package/package.json +1 -2
- package/src/cli/index.ts +880 -30
- package/src/cloud/artifact.ts +48 -0
- package/src/cloud/client.ts +79 -0
- package/src/cloud/contracts.ts +47 -0
- package/src/cloud/index.ts +3 -0
- package/src/index.ts +1 -1
- package/src/runtime/deploy.ts +1 -1
- package/src/runtime/targets/cloudflare/build.ts +4 -0
- package/src/templates/blank.ts +11 -9
- package/src/templates/support.ts +11 -9
- package/src/runtime/targets/cloudflare/deploy.ts +0 -5475
package/README.md
CHANGED
|
@@ -1,21 +1,54 @@
|
|
|
1
1
|
# AgentKit
|
|
2
2
|
|
|
3
|
-
AgentKit is a toolkit for creating, running, inspecting, and deploying Agent Capsules.
|
|
3
|
+
AgentKit is a CLI-first toolkit for creating, running, inspecting, and deploying Agent Capsules.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
4
6
|
|
|
5
7
|
```sh
|
|
6
8
|
npx @andreprado/agentkit@alpha new support-agent --template support
|
|
7
9
|
cd support-agent
|
|
8
|
-
npm install
|
|
9
10
|
npm run dev
|
|
11
|
+
npm run chat -- --message "hello"
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`agentkit new` installs the generated capsule dependencies by default so `agentkit.config.ts` resolves `@andreprado/agentkit` immediately in editors. Use `--no-install` only for offline or scripted scaffolds where you want to run `npm install` later.
|
|
15
|
+
|
|
16
|
+
Generated capsules use the built-in `test/fake` provider by default, so the first local run works without provider keys.
|
|
17
|
+
|
|
18
|
+
## What To Know First
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
agentkit new <name> [--template blank|support] [--no-install]
|
|
22
|
+
agentkit dev
|
|
23
|
+
agentkit chat --message <text>
|
|
24
|
+
agentkit inspect
|
|
10
25
|
```
|
|
11
26
|
|
|
12
|
-
|
|
27
|
+
Once the capsule is running:
|
|
13
28
|
|
|
14
29
|
```sh
|
|
15
|
-
agentkit
|
|
30
|
+
agentkit tool <name> [--input <path-or-json>]
|
|
31
|
+
agentkit db migrate
|
|
32
|
+
agentkit eval run
|
|
33
|
+
agentkit conversations list
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Deploy Later
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
agentkit login --token <token>
|
|
16
40
|
agentkit deploy doctor
|
|
17
|
-
agentkit secret set OPENAI_API_KEY
|
|
41
|
+
agentkit secret set OPENAI_API_KEY --from-local-env
|
|
18
42
|
agentkit deploy
|
|
43
|
+
agentkit deploy status
|
|
44
|
+
agentkit chat-ui --deploy
|
|
19
45
|
```
|
|
20
46
|
|
|
21
|
-
|
|
47
|
+
Production secrets are managed secrets, not committed `.env` values.
|
|
48
|
+
Private hosted deploys automatically store a local chat/UI deploy access token at `.agentkit/chat-access-token.json`. `agentkit chat-ui --deploy` serves a local UI pointed at the hosted deploy without exposing that token to browser code.
|
|
49
|
+
|
|
50
|
+
The npm package contains the public CLI/runtime/client surface only. AgentKit Cloud's control-plane server, operator commands, Postgres store, and Cloudflare/Turso/R2 publisher live in the private repo workspace and are not part of the published package.
|
|
51
|
+
|
|
52
|
+
## Full Reference
|
|
53
|
+
|
|
54
|
+
`agentkit --help` keeps the first surface focused. Run `agentkit help commands` for the full CLI reference and `agentkit docs full` for the full agent-facing operating contract.
|
|
@@ -19,7 +19,6 @@ cd /tmp/agentkit-demo
|
|
|
19
19
|
|
|
20
20
|
npx @andreprado/agentkit@alpha new demo --template blank
|
|
21
21
|
cd demo
|
|
22
|
-
npm install
|
|
23
22
|
npm run typecheck
|
|
24
23
|
npm run chat -- --message "hello"
|
|
25
24
|
npm run agentkit -- conversations list
|
|
@@ -37,7 +36,6 @@ For the support template:
|
|
|
37
36
|
```sh
|
|
38
37
|
npx @andreprado/agentkit@alpha new support-demo --template support
|
|
39
38
|
cd support-demo
|
|
40
|
-
npm install
|
|
41
39
|
npm run agentkit -- tool lookup_order --input '{"orderId":"A100"}'
|
|
42
40
|
```
|
|
43
41
|
|
|
@@ -173,7 +171,7 @@ npm install
|
|
|
173
171
|
npm run typecheck
|
|
174
172
|
```
|
|
175
173
|
|
|
176
|
-
Make sure `tsconfig.json` has `moduleResolution: "Bundler"`.
|
|
174
|
+
`agentkit new` installs dependencies by default. Run this if the scaffold was created with `--no-install`, the install failed, or `node_modules` was deleted. Make sure `tsconfig.json` has `moduleResolution: "Bundler"`.
|
|
177
175
|
|
|
178
176
|
`No agentkit.config.ts found`:
|
|
179
177
|
|
|
@@ -19,7 +19,6 @@ Use this before asking a coding agent to make a capsule deployable, or before te
|
|
|
19
19
|
From the capsule root:
|
|
20
20
|
|
|
21
21
|
```sh
|
|
22
|
-
npm install
|
|
23
22
|
npm run typecheck
|
|
24
23
|
npm run agentkit -- inspect
|
|
25
24
|
npm run agentkit -- db migrate
|
|
@@ -132,6 +131,8 @@ npm run agentkit -- deploy status
|
|
|
132
131
|
npm run agentkit -- access token list
|
|
133
132
|
```
|
|
134
133
|
|
|
134
|
+
For private hosted deploys, `npm run agentkit -- deploy` writes the local chat/UI access token to `.agentkit/chat-access-token.json`. Use `npm run agentkit -- access token create <name> --out <path>` only for additional clients.
|
|
135
|
+
|
|
135
136
|
## Readiness Checklist
|
|
136
137
|
|
|
137
138
|
```txt
|
package/docs/llms-full.txt
CHANGED
|
@@ -35,6 +35,7 @@ Implemented local commands:
|
|
|
35
35
|
```sh
|
|
36
36
|
agentkit new <name> --template blank
|
|
37
37
|
agentkit new <name> --template support
|
|
38
|
+
agentkit new <name> --template blank --no-install
|
|
38
39
|
agentkit chat --message "hello"
|
|
39
40
|
agentkit tool <name> --input <path-or-json>
|
|
40
41
|
agentkit eval run
|
|
@@ -95,7 +96,6 @@ cd /tmp/agentkit-demo
|
|
|
95
96
|
|
|
96
97
|
npx @andreprado/agentkit@alpha new demo --template blank
|
|
97
98
|
cd demo
|
|
98
|
-
npm install
|
|
99
99
|
npm run chat -- --message "hello"
|
|
100
100
|
npm run chat -- --message "second message"
|
|
101
101
|
npm run eval
|
|
@@ -117,7 +117,6 @@ The primary flow is:
|
|
|
117
117
|
```sh
|
|
118
118
|
agentkit new eye-office-agent --template blank
|
|
119
119
|
cd eye-office-agent
|
|
120
|
-
npm install
|
|
121
120
|
```
|
|
122
121
|
|
|
123
122
|
Then open the folder in Codex, Claude Code, or another coding agent and ask directly:
|
|
@@ -652,7 +651,7 @@ agentkit deploy
|
|
|
652
651
|
agentkit deploy status
|
|
653
652
|
```
|
|
654
653
|
|
|
655
|
-
`agentkit deploy doctor` checks AgentKit Cloud login, `cloudflare_deploy_alpha`, hosted secrets, local `.env` names that still need `agentkit secret set`, and private-access runtime token handling. `agentkit deploy` sends the capsule to AgentKit Cloud
|
|
654
|
+
`agentkit deploy doctor` checks AgentKit Cloud login, `cloudflare_deploy_alpha`, hosted secrets, local `.env` names that still need `agentkit secret set`, and private-access runtime token handling. `agentkit deploy` sends the capsule to AgentKit Cloud, runs the same readiness check automatically before building and uploading, and writes the local chat/UI deploy access token to `.agentkit/chat-access-token.json` for private hosted deploys. Production alpha deploys require an account with `cloudflare_deploy_alpha`; local commands and dry-run builds do not require login. AgentKit owns infrastructure selection, backend migration, managed secrets, and public URL creation.
|
|
656
655
|
|
|
657
656
|
The CLI defaults to the hosted AgentKit Cloud API at `https://agentkit-cloud.aibuilders.com.br`. Use `AGENTKIT_CLOUD_API_URL` or `agentkit deploy --api <url>` only for local or alternate control-plane tests.
|
|
658
657
|
|
|
@@ -661,7 +660,7 @@ Account/access flow:
|
|
|
661
660
|
```sh
|
|
662
661
|
agentkit secret set OPENAI_API_KEY
|
|
663
662
|
agentkit secret list
|
|
664
|
-
agentkit access token create website-chat
|
|
663
|
+
agentkit access token create website-chat --out .agentkit/website-chat-access-token.json
|
|
665
664
|
agentkit access token list
|
|
666
665
|
```
|
|
667
666
|
|
|
@@ -710,6 +709,8 @@ npm install
|
|
|
710
709
|
npm run typecheck
|
|
711
710
|
```
|
|
712
711
|
|
|
712
|
+
`agentkit new` installs dependencies by default. Run this if the scaffold used `--no-install`, the install failed, or `node_modules` was deleted.
|
|
713
|
+
|
|
713
714
|
Make sure `tsconfig.json` contains:
|
|
714
715
|
|
|
715
716
|
```json
|
package/docs/llms.txt
CHANGED
|
@@ -25,6 +25,7 @@ Current local commands:
|
|
|
25
25
|
|
|
26
26
|
```sh
|
|
27
27
|
agentkit new <name> --template blank|support
|
|
28
|
+
agentkit new <name> --template blank --no-install
|
|
28
29
|
agentkit docs full
|
|
29
30
|
agentkit env list
|
|
30
31
|
agentkit env unset <NAME>
|
|
@@ -45,7 +46,7 @@ agentkit deploy doctor
|
|
|
45
46
|
agentkit deploy
|
|
46
47
|
agentkit deploy status
|
|
47
48
|
agentkit secret list
|
|
48
|
-
agentkit access token create website-chat
|
|
49
|
+
agentkit access token create website-chat --out .agentkit/website-chat-access-token.json
|
|
49
50
|
agentkit access token list
|
|
50
51
|
agentkit inspect
|
|
51
52
|
agentkit dev
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@andreprado/agentkit",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
"@earendil-works/pi-ai": "^0.75.5",
|
|
37
37
|
"@earendil-works/pi-coding-agent": "^0.75.5",
|
|
38
38
|
"esbuild": "^0.28.0",
|
|
39
|
-
"postgres": "^3.4.9",
|
|
40
39
|
"tsx": "^4.22.3",
|
|
41
40
|
"typebox": "^1.1.38"
|
|
42
41
|
},
|