@standardagents/cli 0.14.1 → 0.15.2
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 +55 -11
- package/dist/index.js +3050 -1829
- package/dist/index.js.map +1 -1
- package/package.json +10 -4
package/README.md
CHANGED
|
@@ -10,26 +10,66 @@ pnpm add -D @standardagents/cli
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### Create And Connect A Project
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
|
|
16
|
+
npx @standardagents/cli@latest init
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
The package is published publicly so this one-liner works without a prior npm
|
|
20
|
+
login.
|
|
21
|
+
|
|
19
22
|
This command will:
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
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
|
|
25
|
+
- Write `STANDARD_AGENTS_API_KEY`, `PLATFORM_ENDPOINT`, and `STANDARD_AGENTS_API_URL` to `.dev.vars`
|
|
26
|
+
- Install dependencies with the detected package manager, start the local dev server, and open the local instance
|
|
23
27
|
|
|
24
|
-
For
|
|
25
|
-
TypeScript, Cloudflare Vite plugin, Wrangler version, and Cloudflare
|
|
26
|
-
compatibility date to the set tested with the current Standard Agents release.
|
|
28
|
+
For local platform development, point the same command at your local platform API:
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
```bash
|
|
31
|
+
STANDARD_AGENTS_API_URL=https://platform.agentbuilder-platform.orb.local pnpm exec agents init
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
When testing unreleased workspace package changes, keep the same platform flow
|
|
35
|
+
and add `STANDARDAGENTS_WORKSPACE=1`. With `pnpm`, the CLI rewrites the cloned
|
|
36
|
+
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:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
STANDARDAGENTS_WORKSPACE=1 STANDARD_AGENTS_API_URL=https://platform.agentbuilder-platform.orb.local pnpm exec agents init
|
|
42
|
+
STANDARDAGENTS_WORKSPACE=1 STANDARDAGENTS_WORKSPACE_ROOT=/path/to/agentbuilder STANDARD_AGENTS_API_URL=https://platform.agentbuilder-platform.orb.local cli init
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
From the monorepo root, `pnpm onboarding:verify:local` runs both no-publish
|
|
46
|
+
verification modes against a fake platform API: the pnpm workspace-dev path and
|
|
47
|
+
a local-registry run of the literal `npx @standardagents/cli@latest init` shape
|
|
48
|
+
that serves locally packed packages in place of the unpublished npm registry
|
|
49
|
+
packages. Use `-- --mode=workspace` or `-- --mode=npx` when you only need one
|
|
50
|
+
side.
|
|
51
|
+
|
|
52
|
+
After the GitHub publish workflow completes, run
|
|
53
|
+
`pnpm onboarding:verify:production` to exercise the real production one-liner
|
|
54
|
+
against the npm registry without touching GitHub, Stripe, or the production
|
|
55
|
+
platform. It runs `npx @standardagents/cli@latest init` against a fake platform
|
|
56
|
+
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.
|
|
62
|
+
|
|
63
|
+
Use `agents init --local my-agent-project` for the legacy local-only template scaffold that does not create a platform repo or billing connection.
|
|
29
64
|
|
|
30
65
|
#### Options
|
|
31
66
|
|
|
32
|
-
-
|
|
67
|
+
- `-y, --yes` - Skip prompts and use defaults
|
|
68
|
+
- `--api-url <url>` - Platform API URL. Also available through `STANDARD_AGENTS_API_URL` or `PLATFORM_ENDPOINT`
|
|
69
|
+
- `--package-manager <manager>` - Override package manager detection (`npm`, `pnpm`, `yarn`, or `bun`)
|
|
70
|
+
- `--local` - Use the legacy local-only scaffold flow
|
|
71
|
+
|
|
72
|
+
Set `STANDARD_AGENTS_BROWSER="Google Chrome"` or another macOS browser app name when you need the browser handoff to use a specific browser during local development. Set `STANDARD_AGENTS_BROWSER=none` for headless verification.
|
|
33
73
|
|
|
34
74
|
### Scaffold Project Structure
|
|
35
75
|
|
|
@@ -37,7 +77,11 @@ If no wrangler config is found, it will provide an example configuration.
|
|
|
37
77
|
pnpm exec agents scaffold
|
|
38
78
|
```
|
|
39
79
|
|
|
40
|
-
|
|
80
|
+
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.
|
|
41
85
|
|
|
42
86
|
### Install The AgentBuilder Skill
|
|
43
87
|
|