@standardagents/cli 0.45.1 → 0.45.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 +42 -16
- package/chat/package.json +1 -1
- package/chat/src/components/Login.tsx +1 -1
- package/chat/src/hooks/useAuth.tsx +2 -0
- package/chat/vite/vite.config.ts +3 -1
- package/dist/index.js +1902 -1624
- package/dist/index.js.map +1 -1
- package/package.json +8 -5
package/README.md
CHANGED
|
@@ -4,10 +4,16 @@ CLI tool for Standard Agents setup and model discovery.
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
No install is needed. Run the published CLI with `npx`:
|
|
8
|
+
|
|
7
9
|
```bash
|
|
8
|
-
|
|
10
|
+
npx @standardagents/cli@latest <command>
|
|
9
11
|
```
|
|
10
12
|
|
|
13
|
+
The CLI supports Node.js 22 (22.12 or newer) and Node.js 24. It checks the
|
|
14
|
+
version at startup: an older Node.js stops with the version to install, and a
|
|
15
|
+
newer untested release line prints a warning and continues.
|
|
16
|
+
|
|
11
17
|
## Usage
|
|
12
18
|
|
|
13
19
|
### Create And Connect A Project
|
|
@@ -19,14 +25,30 @@ npx @standardagents/cli@latest init
|
|
|
19
25
|
The package is published publicly so this one-liner works without a prior npm
|
|
20
26
|
login.
|
|
21
27
|
|
|
28
|
+
`init` signs you in to your Standard Agents account in the browser, or creates
|
|
29
|
+
one. The account supplies inference for your agents.
|
|
30
|
+
|
|
22
31
|
This command will:
|
|
23
|
-
-
|
|
32
|
+
- Print the sign-in URL, then open Standard Agents in your browser for login, billing, and platform repository setup
|
|
33
|
+
- Show elapsed time and the session's remaining time while it waits. Press Ctrl-C to cancel; the pending sign-in session is cancelled on the platform
|
|
24
34
|
- Clone the created platform-owned Artifact repository into the directory where you ran the command
|
|
25
|
-
- Write `STANDARD_AGENTS_API_KEY`, `PLATFORM_ENDPOINT`, and `STANDARD_AGENTS_API_URL` to `.dev.vars
|
|
35
|
+
- Write `STANDARD_AGENTS_API_KEY`, `PLATFORM_ENDPOINT`, and `STANDARD_AGENTS_API_URL` to `.dev.vars`. It writes no admin password: your local instance signs in with your Standard Agents account
|
|
26
36
|
- Configure a repo-local Git credential helper that mints short-lived Artifacts tokens through the Standard Agents platform
|
|
27
37
|
- Install dependencies with the detected package manager, start the local dev server in the foreground, and open the local instance
|
|
28
38
|
|
|
29
39
|
The init command stays attached to the dev server. Press Ctrl-C in that terminal to stop it.
|
|
40
|
+
The dev server listens on `127.0.0.1` only, both on this first start and on a later `npm run dev`.
|
|
41
|
+
The success output includes the commands that start it again later.
|
|
42
|
+
|
|
43
|
+
`init` needs an interactive terminal. Without one it exits with a message
|
|
44
|
+
before it contacts the platform. To sign in from another device, or to run it
|
|
45
|
+
from a script, pass `--no-open`: it prints the sign-in URL and waits for the
|
|
46
|
+
session to complete or expire.
|
|
47
|
+
|
|
48
|
+
Every failure names its cause and the next command. Init checks for git before
|
|
49
|
+
the browser step. If the project name chosen in the browser already exists as a
|
|
50
|
+
local directory, init clones into `<name>-2` and says so. Ctrl-C during the
|
|
51
|
+
clone removes the partial directory.
|
|
30
52
|
|
|
31
53
|
For local platform development, point the same command at your local platform API:
|
|
32
54
|
|
|
@@ -65,14 +87,12 @@ automation. The release path publishes with public access, repairs package
|
|
|
65
87
|
visibility if a scoped version already exists, and sets the release dist-tag.
|
|
66
88
|
Do not run manual npm publishes to test this flow.
|
|
67
89
|
|
|
68
|
-
Use `agents init --local my-agent-project` for the legacy local-only template scaffold that does not create a platform repo or billing connection.
|
|
69
|
-
|
|
70
90
|
#### Options
|
|
71
91
|
|
|
72
|
-
-
|
|
73
|
-
- `--
|
|
92
|
+
- `--no-open` - Print the sign-in URL without opening a browser
|
|
93
|
+
- `--no-dev` - Clone and configure the project without starting the dev server
|
|
74
94
|
- `--package-manager <manager>` - Override package manager detection (`npm`, `pnpm`, `yarn`, or `bun`)
|
|
75
|
-
- `--
|
|
95
|
+
- `--api-url <url>` - Platform API URL. Also available through `STANDARD_AGENTS_API_URL` or `PLATFORM_ENDPOINT`
|
|
76
96
|
|
|
77
97
|
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.
|
|
78
98
|
|
|
@@ -85,7 +105,7 @@ pnpm exec agents scaffold
|
|
|
85
105
|
Adds Standard Agents to an existing Vite project. The command updates
|
|
86
106
|
`package.json` with the current `@standardagents/builder` version, wires the
|
|
87
107
|
`builder()` Vite plugin, and creates the `agents/` directory structure with
|
|
88
|
-
documentation files. The
|
|
108
|
+
documentation files. The Standard Agents Builder plugin generates the Cloudflare Worker entry
|
|
89
109
|
and binding config at build time.
|
|
90
110
|
|
|
91
111
|
### Deploy From Artifacts Git
|
|
@@ -102,17 +122,23 @@ agents deploy
|
|
|
102
122
|
It does not run a local build or upload bundles; the platform build runner
|
|
103
123
|
deploys from the Artifacts push event.
|
|
104
124
|
|
|
105
|
-
### Install The
|
|
125
|
+
### Install The Standard Agents Builder Skill
|
|
106
126
|
|
|
107
127
|
```bash
|
|
108
128
|
npx @standardagents/cli skill
|
|
109
129
|
```
|
|
110
130
|
|
|
111
|
-
Opens an interactive picker and installs the bundled `agentbuilder`
|
|
112
|
-
|
|
131
|
+
Opens an interactive picker and installs the bundled `agentbuilder` skill as an
|
|
132
|
+
[Agent Skills](https://agentskills.io) folder. Every target gets the same
|
|
133
|
+
`agentbuilder/SKILL.md`:
|
|
134
|
+
|
|
135
|
+
- Codex and other coding agents (Cursor, Gemini CLI, GitHub Copilot, OpenCode,
|
|
136
|
+
and others): `~/.agents/skills`
|
|
137
|
+
- Claude Code: `~/.claude/skills`
|
|
113
138
|
|
|
114
|
-
|
|
115
|
-
|
|
139
|
+
The skill tells your coding agent to read the published specification at
|
|
140
|
+
`https://standardagentspec.org/llms.txt`. There is no separate specification
|
|
141
|
+
skill to install.
|
|
116
142
|
|
|
117
143
|
Use `--force` to overwrite an existing installed copy:
|
|
118
144
|
|
|
@@ -123,7 +149,7 @@ npx @standardagents/cli skill --force
|
|
|
123
149
|
Skip the picker with an explicit target:
|
|
124
150
|
|
|
125
151
|
```bash
|
|
126
|
-
npx @standardagents/cli skill --agent
|
|
152
|
+
npx @standardagents/cli skill --agent agents
|
|
127
153
|
npx @standardagents/cli skill --agent claude
|
|
128
154
|
```
|
|
129
155
|
|
|
@@ -159,7 +185,7 @@ compatibility flags, and migrations automatically.
|
|
|
159
185
|
|
|
160
186
|
## TypeScript Types
|
|
161
187
|
|
|
162
|
-
|
|
188
|
+
Standard Agents Builder generates project types when the dev server starts. For a focused
|
|
163
189
|
type-generation pass, run:
|
|
164
190
|
|
|
165
191
|
```bash
|
package/chat/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev:vite": "vite --config vite/vite.config.ts",
|
|
8
8
|
"build:vite": "vite build --config vite/vite.config.ts",
|
|
9
|
-
"dev:next": "cd next && next dev --port 5175",
|
|
9
|
+
"dev:next": "cd next && next dev --hostname 127.0.0.1 --port 5175",
|
|
10
10
|
"build:next": "cd next && next build",
|
|
11
11
|
"typecheck": "tsc --noEmit && tsc --noEmit -p next",
|
|
12
12
|
"test:run": "vitest run"
|
|
@@ -13,7 +13,7 @@ export function Login() {
|
|
|
13
13
|
|
|
14
14
|
// Mirror the builder login: platform-connected instances sign in only with
|
|
15
15
|
// Standard Agents; the password form is for local-password instances.
|
|
16
|
-
const standardAgentsSignIn = !!config && (config.standardAgentsLogin || config.platformConnected)
|
|
16
|
+
const standardAgentsSignIn = !!config && (config.standardAgentsLogin || (config.accountSignIn ?? config.platformConnected))
|
|
17
17
|
const showPasswordForm = !!config && !config.hosted && !standardAgentsSignIn && config.localPassword
|
|
18
18
|
|
|
19
19
|
const handleStandardAgents = useCallback(async () => {
|
|
@@ -16,6 +16,8 @@ export interface User {
|
|
|
16
16
|
export interface AuthConfig {
|
|
17
17
|
hosted: boolean
|
|
18
18
|
platformConnected: boolean
|
|
19
|
+
/** Whether account sign-in can succeed. Instances before this field omit it. */
|
|
20
|
+
accountSignIn?: boolean
|
|
19
21
|
standardAgentsLogin: boolean
|
|
20
22
|
localPassword: boolean
|
|
21
23
|
}
|
package/chat/vite/vite.config.ts
CHANGED
|
@@ -21,7 +21,9 @@ export default defineConfig(({ mode }) => {
|
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
server: {
|
|
24
|
-
|
|
24
|
+
// Loopback only: this server proxies /api to the local Builder, so a
|
|
25
|
+
// wider bind would expose the Builder sign-in to the network.
|
|
26
|
+
host: '127.0.0.1',
|
|
25
27
|
port: 5174,
|
|
26
28
|
strictPort: true,
|
|
27
29
|
allowedHosts: true,
|