@standardagents/cli 0.15.3 → 0.17.0-next.a4b7340

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 CHANGED
@@ -20,9 +20,10 @@ The package is published publicly so this one-liner works without a prior npm
20
20
  login.
21
21
 
22
22
  This command will:
23
- - Open Standard Agents in your browser for GitHub sign-in, billing, GitHub App setup, and repo creation
24
- - Clone the created private GitHub repo into the directory where you ran the command
23
+ - Open Standard Agents in your browser for login, billing, and platform repository setup
24
+ - Clone the created platform-owned Artifact repository into the directory where you ran the command
25
25
  - Write `STANDARD_AGENTS_API_KEY`, `PLATFORM_ENDPOINT`, and `STANDARD_AGENTS_API_URL` to `.dev.vars`
26
+ - Configure a repo-local Git credential helper that mints short-lived Artifacts tokens through the Standard Agents platform
26
27
  - Install dependencies with the detected package manager, start the local dev server, and open the local instance
27
28
 
28
29
  For local platform development, point the same command at your local platform API:
@@ -34,8 +35,10 @@ STANDARD_AGENTS_API_URL=https://platform.agentbuilder-platform.orb.local pnpm ex
34
35
  When testing unreleased workspace package changes, keep the same platform flow
35
36
  and add `STANDARDAGENTS_WORKSPACE=1`. With `pnpm`, the CLI rewrites the cloned
36
37
  project's generated `@standardagents/*` dependencies to local workspace links
37
- before installing. If you are running a packed or globally installed local CLI,
38
- also set `STANDARDAGENTS_WORKSPACE_ROOT` to the monorepo root:
38
+ before installing, and the repo-local Git credential helper points at the
39
+ current local CLI entry instead of `npx -y @standardagents/cli@latest`. If you
40
+ are running a packed or globally installed local CLI, also set
41
+ `STANDARDAGENTS_WORKSPACE_ROOT` to the monorepo root:
39
42
 
40
43
  ```bash
41
44
  STANDARDAGENTS_WORKSPACE=1 STANDARD_AGENTS_API_URL=https://platform.agentbuilder-platform.orb.local pnpm exec agents init
@@ -49,16 +52,16 @@ that serves locally packed packages in place of the unpublished npm registry
49
52
  packages. Use `-- --mode=workspace` or `-- --mode=npx` when you only need one
50
53
  side.
51
54
 
52
- After the GitHub publish workflow completes, run
55
+ After release automation publishes the CLI and runtime packages, run
53
56
  `pnpm onboarding:verify:production` to exercise the real production one-liner
54
57
  against the npm registry without touching GitHub, Stripe, or the production
55
58
  platform. It runs `npx @standardagents/cli@latest init` against a fake platform
56
59
  API and requires the generated project to install `@standardagents/*` packages
57
- from npm. The publish workflow also runs this verifier after `publish-cli`.
58
- All Standard Agents package publishes must go through that workflow. The
59
- workflow publishes with public access, repairs package visibility if a scoped
60
- version already exists, sets the release dist-tag, and then runs the production
61
- onboarding verifier. Do not run manual npm publishes to test this flow.
60
+ from npm.
61
+ All Standard Agents package publishes must go through the approved release
62
+ automation. The release path publishes with public access, repairs package
63
+ visibility if a scoped version already exists, and sets the release dist-tag.
64
+ Do not run manual npm publishes to test this flow.
62
65
 
63
66
  Use `agents init --local my-agent-project` for the legacy local-only template scaffold that does not create a platform repo or billing connection.
64
67
 
@@ -78,10 +81,24 @@ pnpm exec agents scaffold
78
81
  ```
79
82
 
80
83
  Adds Standard Agents to an existing Vite project. The command updates
81
- `package.json` with the current `@standardagents/builder` and
82
- `@cloudflare/vite-plugin` versions, wires the Vite and Wrangler config, creates
83
- the Worker entry point, and creates the `agents/` directory structure with
84
- documentation files.
84
+ `package.json` with the current `@standardagents/builder` version, wires the
85
+ `builder()` Vite plugin, and creates the `agents/` directory structure with
86
+ documentation files. The builder plugin generates the Cloudflare Worker entry
87
+ and binding config at build time.
88
+
89
+ ### Deploy From Artifacts Git
90
+
91
+ Deployments are triggered by pushes to the platform-owned Artifacts repository:
92
+
93
+ ```bash
94
+ git push origin main
95
+ # or
96
+ agents deploy
97
+ ```
98
+
99
+ `agents deploy` is a convenience wrapper around `git push origin HEAD:<branch>`.
100
+ It does not run a local build or upload bundles; the platform build runner
101
+ deploys from the Artifacts push event.
85
102
 
86
103
  ### Install The AgentBuilder Skill
87
104
 
@@ -133,38 +150,18 @@ prints a markdown table containing the exact `model` strings to use in
133
150
 
134
151
  ## Manual Configuration
135
152
 
136
- If you prefer to configure manually, add the following to your `wrangler.jsonc`:
137
-
138
- ```jsonc
139
- {
140
- "durable_objects": {
141
- "bindings": [
142
- {
143
- "name": "AGENT_BUILDER_THREAD",
144
- "class_name": "DurableThread"
145
- },
146
- {
147
- "name": "AGENT_BUILDER",
148
- "class_name": "DurableAgentBuilder"
149
- }
150
- ]
151
- },
152
-
153
- "migrations": [
154
- {
155
- "tag": "v1",
156
- "new_sqlite_classes": ["DurableThread", "DurableAgentBuilder"]
157
- }
158
- ]
159
- }
160
- ```
153
+ For new projects, manual Cloudflare configuration is not required. Add
154
+ `builder()` to `vite.config.ts`; it injects the Cloudflare Vite plugin, Worker
155
+ entry, assets config, Durable Object bindings, Worker Loader binding,
156
+ compatibility flags, and migrations automatically.
161
157
 
162
158
  ## TypeScript Types
163
159
 
164
- To get proper TypeScript types for the bindings, regenerate your worker types:
160
+ AgentBuilder generates project types when the dev server starts. For a focused
161
+ type-generation pass, run:
165
162
 
166
163
  ```bash
167
- pnpm cf-typegen
164
+ pnpm exec vite build
168
165
  ```
169
166
 
170
167
  This will update your `worker-configuration.d.ts` file with: