@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 CHANGED
@@ -7,16 +7,21 @@ npm install --global @tonbo/cli
7
7
  tonbo --version
8
8
  ```
9
9
 
10
- The V1 CLI deploys a PI-based Agent directly from a local directory without requiring Git or Tonbo calls in the Agent source. Initialize the current directory interactively:
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
- ? Agent shape: [1] PI project [2] PI Package project [3] PI SDK app [1]:
15
- ? Inference model [claude-sonnet-4-5]:
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
- For automation, use `tonbo init --model <model>`; an existing declaration requires interactive confirmation or `--force`. Then authenticate, bind the directory and deploy its current contents:
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 `tonbo init`, or declare a command driver directly:
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)