@standardagents/cli 0.45.2 → 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 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
- pnpm add -D @standardagents/cli
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
- - Open Standard Agents in your browser for login, billing, and platform repository setup
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
- - `-y, --yes` - Skip prompts and use defaults
73
- - `--api-url <url>` - Platform API URL. Also available through `STANDARD_AGENTS_API_URL` or `PLATFORM_ENDPOINT`
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
- - `--local` - Use the legacy local-only scaffold flow
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 builder plugin generates the Cloudflare Worker entry
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,7 +122,7 @@ 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 AgentBuilder Skill
125
+ ### Install The Standard Agents Builder Skill
106
126
 
107
127
  ```bash
108
128
  npx @standardagents/cli skill
@@ -165,7 +185,7 @@ compatibility flags, and migrations automatically.
165
185
 
166
186
  ## TypeScript Types
167
187
 
168
- AgentBuilder generates project types when the dev server starts. For a focused
188
+ Standard Agents Builder generates project types when the dev server starts. For a focused
169
189
  type-generation pass, run:
170
190
 
171
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
  }
@@ -21,7 +21,9 @@ export default defineConfig(({ mode }) => {
21
21
  },
22
22
  },
23
23
  server: {
24
- host: '0.0.0.0',
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,