@standardagents/cli 0.45.2 → 0.45.4
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/LICENSE +70 -0
- package/README.md +31 -11
- package/chat/package.json +1 -1
- package/chat/src/components/Login.tsx +2 -2
- package/chat/src/hooks/useAuth.tsx +2 -0
- package/chat/vite/vite.config.ts +3 -1
- package/dist/index.js +2367 -1584
- package/dist/index.js.map +1 -1
- package/package.json +11 -7
package/LICENSE
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
PROPRIETARY SOFTWARE LICENSE
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-2025 FormKit Inc. All Rights Reserved.
|
|
4
|
+
|
|
5
|
+
This software and associated documentation files (the "Software") are the sole
|
|
6
|
+
and exclusive property of FormKit Inc., a Delaware C corporation, doing
|
|
7
|
+
business as Standard Agents ("Standard Agents").
|
|
8
|
+
|
|
9
|
+
LICENSE GRANT
|
|
10
|
+
|
|
11
|
+
Subject to the terms of this license, Standard Agents grants you a limited,
|
|
12
|
+
non-exclusive, non-transferable, revocable license to install and use the
|
|
13
|
+
Software:
|
|
14
|
+
|
|
15
|
+
1. for local development and testing; and
|
|
16
|
+
2. in production only on hosting that Standard Agents operates ("Standard
|
|
17
|
+
Agents Hosting").
|
|
18
|
+
|
|
19
|
+
USE RESTRICTIONS
|
|
20
|
+
|
|
21
|
+
The Software is proprietary. Except as stated in the LICENSE GRANT, NO
|
|
22
|
+
PERMISSION is granted to use, copy, modify, merge, publish, distribute,
|
|
23
|
+
sublicense, and/or sell copies of the Software, or to permit persons to whom
|
|
24
|
+
the Software is furnished to do so, under any circumstances, without prior
|
|
25
|
+
written authorization from Standard Agents. No permission is granted to host,
|
|
26
|
+
deploy, or run the Software in production anywhere other than Standard Agents
|
|
27
|
+
Hosting.
|
|
28
|
+
|
|
29
|
+
YOUR AGENTS
|
|
30
|
+
|
|
31
|
+
This license applies to the Software. It does not apply to the agents,
|
|
32
|
+
prompts, tools, and other definitions that you write ("Your Agents"). This
|
|
33
|
+
license does not restrict where you run Your Agents. You may run Your Agents
|
|
34
|
+
on any runtime that conforms to the Standard Agent Specification. This section
|
|
35
|
+
grants no right to run the Software outside the LICENSE GRANT.
|
|
36
|
+
|
|
37
|
+
UNAUTHORIZED USE PROHIBITED
|
|
38
|
+
|
|
39
|
+
Any use of this Software outside the LICENSE GRANT without a valid, written
|
|
40
|
+
license agreement signed by authorized officers of FormKit Inc. is strictly
|
|
41
|
+
prohibited and constitutes unauthorized use and infringement of Standard
|
|
42
|
+
Agents' intellectual property rights.
|
|
43
|
+
|
|
44
|
+
LICENSING INQUIRIES
|
|
45
|
+
|
|
46
|
+
Organizations interested in licensing this Software for other uses should
|
|
47
|
+
contact:
|
|
48
|
+
enterprise@formkit.com
|
|
49
|
+
|
|
50
|
+
A written license agreement must be executed before any use of this Software
|
|
51
|
+
outside the LICENSE GRANT is authorized.
|
|
52
|
+
|
|
53
|
+
NO WARRANTY
|
|
54
|
+
|
|
55
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
56
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
57
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
58
|
+
FORMKIT INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
|
59
|
+
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
60
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
61
|
+
|
|
62
|
+
GOVERNING LAW
|
|
63
|
+
|
|
64
|
+
This license shall be governed by and construed in accordance with the laws
|
|
65
|
+
of the jurisdiction in which FormKit Inc. is incorporated, without regard to
|
|
66
|
+
its conflict of law provisions.
|
|
67
|
+
|
|
68
|
+
FormKit Inc., doing business as Standard Agents
|
|
69
|
+
https://formkit.com
|
|
70
|
+
enterprise@formkit.com
|
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,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
|
|
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
|
-
|
|
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 () => {
|
|
@@ -178,7 +178,7 @@ export function Login() {
|
|
|
178
178
|
<p className="text-center text-xs text-[var(--text-muted)] mt-6">
|
|
179
179
|
Powered by{' '}
|
|
180
180
|
<a
|
|
181
|
-
href="https://
|
|
181
|
+
href="https://standardagents.ai"
|
|
182
182
|
target="_blank"
|
|
183
183
|
rel="noopener noreferrer"
|
|
184
184
|
className="text-[var(--text-secondary)] hover:text-[var(--text-primary)] transition-colors"
|
|
@@ -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,
|