@tonbo/cli 0.0.6 → 0.0.7
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 +20 -6
- package/dist/bin/tonbo.js +1981 -0
- package/package.json +8 -5
- package/dist/src/api.d.ts +0 -70
- package/dist/src/api.js +0 -179
- package/dist/src/app.d.ts +0 -4
- package/dist/src/app.js +0 -116
- package/dist/src/auth.d.ts +0 -20
- package/dist/src/auth.js +0 -196
- package/dist/src/build.d.ts +0 -1
- package/dist/src/build.js +0 -21
- package/dist/src/callback-page.d.ts +0 -23
- package/dist/src/callback-page.js +0 -145
- package/dist/src/commands.d.ts +0 -48
- package/dist/src/commands.js +0 -270
- package/dist/src/config.d.ts +0 -13
- package/dist/src/config.js +0 -46
- package/dist/src/contracts.d.ts +0 -3
- package/dist/src/contracts.js +0 -25
- package/dist/src/credentials.d.ts +0 -17
- package/dist/src/credentials.js +0 -90
- package/dist/src/declaration.d.ts +0 -10
- package/dist/src/declaration.js +0 -97
- package/dist/src/generated/contracts.d.ts +0 -221
- package/dist/src/generated/contracts.js +0 -261
- package/dist/src/http.d.ts +0 -6
- package/dist/src/http.js +0 -19
- package/dist/src/main.d.ts +0 -2
- package/dist/src/main.js +0 -9
- package/dist/src/progress.d.ts +0 -25
- package/dist/src/progress.js +0 -60
- package/dist/src/prompt.d.ts +0 -1
- package/dist/src/prompt.js +0 -10
- package/dist/src/source.d.ts +0 -9
- package/dist/src/source.js +0 -209
- package/dist/src/ssh-key.d.ts +0 -9
- package/dist/src/ssh-key.js +0 -36
- package/dist/src/ssh.d.ts +0 -3
- package/dist/src/ssh.js +0 -22
- package/dist/src/types.d.ts +0 -87
- package/dist/src/types.js +0 -1
package/README.md
CHANGED
|
@@ -7,16 +7,21 @@ npm install --global @tonbo/cli
|
|
|
7
7
|
tonbo --version
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
The
|
|
10
|
+
The CLI deploys an Agent directly from a local directory without requiring Git or Tonbo calls in the Agent source. Initialize the current directory interactively:
|
|
11
11
|
|
|
12
12
|
```console
|
|
13
13
|
tonbo init
|
|
14
|
-
?
|
|
15
|
-
|
|
14
|
+
? How should Tonbo run this project?
|
|
15
|
+
❯ PI CLI (`pi`) Run pi directly with AGENTS.md and optional project-local .pi resources.
|
|
16
|
+
PI SDK app Run a custom Node.js entrypoint built on the PI SDK.
|
|
16
17
|
Created .tonbo.
|
|
18
|
+
Harness: PI
|
|
19
|
+
Mode: PI CLI
|
|
17
20
|
Next: tonbo project create <slug>
|
|
18
21
|
```
|
|
19
22
|
|
|
23
|
+
Use the arrow keys to select an available execution target and Enter to confirm. `AGENTS.md` is Harness-neutral and never identifies PI by itself. When `.pi/settings.json` exists, the shared source inspector identifies the PI Harness, reports its project-local packages, and narrows the prompt to the native PI or PI SDK execution modes. Unsupported and planned Harnesses are not shown.
|
|
24
|
+
|
|
20
25
|
The generated `.tonbo` is TOML:
|
|
21
26
|
|
|
22
27
|
```toml
|
|
@@ -32,7 +37,14 @@ kind = "native"
|
|
|
32
37
|
model = "claude-sonnet-4-5"
|
|
33
38
|
```
|
|
34
39
|
|
|
35
|
-
|
|
40
|
+
The default inference model is written without prompting. Override it explicitly with `--model`. Automation must make ambiguous choices explicit; an existing declaration requires interactive confirmation or `--force`:
|
|
41
|
+
|
|
42
|
+
```console
|
|
43
|
+
tonbo init --harness pi --driver native
|
|
44
|
+
tonbo init --harness pi --driver command --agent-entry dist/agent.mjs
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Then authenticate, bind the directory and deploy its current contents:
|
|
36
48
|
|
|
37
49
|
```console
|
|
38
50
|
tonbo login
|
|
@@ -83,7 +95,7 @@ tonbo run "Start the task."
|
|
|
83
95
|
|
|
84
96
|
### 2. PI Package project
|
|
85
97
|
|
|
86
|
-
Use PI's project-local package declaration as the single source of truth. Install an immutable package reference locally, verify it with PI, and deploy the project; Tonbo excludes `.pi/npm` and `.pi/git` caches and restores packages inside the isolated runtime:
|
|
98
|
+
Use PI's project-local package declaration as the single source of truth. A package is a PI resource, not another Tonbo execution mode: `tonbo init` recognizes `.pi/settings.json`, then the native PI driver loads the packages. Install an immutable package reference locally, verify it with PI, and deploy the project; Tonbo excludes `.pi/npm` and `.pi/git` caches and restores packages inside the isolated runtime:
|
|
87
99
|
|
|
88
100
|
```console
|
|
89
101
|
pi install -l npm:@acme/my-pi-agent@1.2.3
|
|
@@ -96,7 +108,7 @@ Remote npm packages must use an exact version. Git packages must use a full 40-c
|
|
|
96
108
|
|
|
97
109
|
### 3. PI SDK app
|
|
98
110
|
|
|
99
|
-
Choose `PI SDK app` in
|
|
111
|
+
Choose `PI SDK app` with the arrow selector, use `--driver command --agent-entry <file>` in automation, or declare a command driver directly:
|
|
100
112
|
|
|
101
113
|
```toml
|
|
102
114
|
version = 1
|
|
@@ -131,6 +143,8 @@ Node.js 22 or newer is required. Human OAuth tokens are stored at `${XDG_CONFIG_
|
|
|
131
143
|
## Related design
|
|
132
144
|
|
|
133
145
|
- [Design documentation map](../../docs/design/README.md)
|
|
146
|
+
- [Agent source inspection and onboarding](../../docs/design/agent-source-onboarding.md)
|
|
147
|
+
- [Shared source inspector](../../packages/agent-source-inspector/README.md)
|
|
134
148
|
- [Project resource model](../../docs/design/project-resource-model.md)
|
|
135
149
|
- [ADR-0008: Tonbo CLI onboarding and credential boundaries](../../apps/user-center/docs/decisions/adr-0008-tonbo-cli-onboarding.md)
|
|
136
150
|
- [Management API v1](../../contracts/management/openapi-v1.yaml)
|