@standardagents/cli 0.45.6 → 0.45.8

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
@@ -1,3 +1,25 @@
1
+ <p align="center">
2
+ <a href="https://standardagents.ai">
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://standardagents.ai/images/standard-agents-logo.svg">
5
+ <img src="https://standardagents.ai/images/standard-agents-logo-dark.svg" alt="Standard Agents" width="300">
6
+ </picture>
7
+ </a>
8
+ </p>
9
+
10
+ <p align="center">Standard Agents Builder is a TypeScript framework for building, testing, and running production AI agents.</p>
11
+
12
+ ```bash
13
+ npx @standardagents/cli@latest init
14
+ ```
15
+
16
+ <picture>
17
+ <source media="(prefers-color-scheme: dark)" srcset="https://standardagents.ai/images/take3/demo-run-start-dark.webp">
18
+ <img src="https://standardagents.ai/images/take3/demo-run-start-light.webp" alt="The Standard Agents Builder home screen, with threads, spend, and failures for each agent in a project">
19
+ </picture>
20
+
21
+ See the docs at [standardagents.ai](https://standardagents.ai). The full command reference follows.
22
+
1
23
  # @standardagents/cli
2
24
 
3
25
  Command-line tool for Standard Agents Builder: project setup, sign-in,
@@ -55,12 +77,23 @@ one. The account supplies inference for your agents.
55
77
 
56
78
  This command will:
57
79
  - Print the sign-in URL, then open Standard Agents in your browser for login, billing, and platform repository setup
58
- - 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
80
+ - Show the session's remaining time on one line while it waits. Press Ctrl-C to cancel; the pending sign-in session is cancelled on the platform
59
81
  - Clone the created platform-owned Artifact repository into the directory where you ran the command
60
82
  - 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
61
83
  - Configure a repo-local Git credential helper that mints short-lived Artifacts tokens through the Standard Agents platform
84
+ - Set every Standard Agents Builder package in `package.json` to the latest release, as one exact version, and say which version it used
62
85
  - Install dependencies with the detected package manager, start the local dev server in the foreground, and open the local instance
63
86
 
87
+ The Standard Agents Builder packages (`@standardagents/builder`, `@standardagents/spec`, the client packages, and the provider packages) ship together and depend on each other at one exact version.
88
+ A project names each of them at that same exact version, with no `^` or `~`.
89
+ `init` reads the `latest` release of `@standardagents/builder` from npm and writes it to the cloned `package.json` before the install, so a new checkout starts on the current release whatever the repository committed.
90
+ A committed lockfile that names an older release is updated by the install.
91
+ `@standardagents/sip` has its own version and is not changed.
92
+ A prerelease CLI, run as `@next` or `@dev`, uses its own version instead of `latest`.
93
+ If npm does not answer within 10 seconds, `init` prints one warning, keeps the versions in `package.json`, and continues.
94
+ Commit the changed `package.json` and lockfile.
95
+ To move a project to a newer release later, set every one of these packages to the new version together.
96
+
64
97
  The init command stays attached to the dev server. Press Ctrl-C in that terminal to stop it.
65
98
  The dev server listens on `127.0.0.1` only, both on this first start and on a later `npm run dev`.
66
99
  The success output includes the commands that start it again later.
@@ -109,7 +142,12 @@ After release automation publishes the CLI and runtime packages, run
109
142
  against the npm registry without touching GitHub, Stripe, or the production
110
143
  platform. It runs `npx @standardagents/cli@latest init` against a fake platform
111
144
  API and requires the generated project to install `@standardagents/*` packages
112
- from npm.
145
+ from npm. The repository it clones commits the previous release, in
146
+ `package.json` and in the lockfile, and the check requires `package.json`,
147
+ the lockfile, and `node_modules` to hold the exact `latest` release afterward.
148
+ It also signs in to the dev server with the project key. Add
149
+ `-- --cli-entry=packages/cli/dist/index.js` to run a built local CLI against
150
+ the real registry before a release.
113
151
  All Standard Agents package publishes must go through the approved release
114
152
  automation. The release path publishes with public access, repairs package
115
153
  visibility if a scoped version already exists, and sets the release dist-tag.