@orbit-build/cli 1.9.3 → 2.0.0

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
@@ -5,7 +5,7 @@
5
5
  **The terminal, browser, and editor runtime for Orbit.**
6
6
 
7
7
  [![npm](https://img.shields.io/npm/v/@orbit-build/cli?label=npm&color=426b63)](https://www.npmjs.com/package/@orbit-build/cli)
8
- [![Node.js](https://img.shields.io/badge/Node.js-%E2%89%A520-43853d)](https://nodejs.org/)
8
+ [![Node.js](https://img.shields.io/badge/Node.js-%E2%89%A524-43853d)](https://nodejs.org/)
9
9
  [![License](https://img.shields.io/badge/license-Apache--2.0-3b82f6)](LICENSE)
10
10
 
11
11
  </div>
@@ -17,7 +17,7 @@ permissions, checkpoints, and cancellation state.
17
17
 
18
18
  ## Install
19
19
 
20
- Requires Node.js 20 or newer on Windows, macOS, or Linux.
20
+ Requires Node.js 24 or newer on Windows, macOS, or Linux.
21
21
  Git is recommended for richer rollback and isolated agent work, but Orbit keeps
22
22
  a filesystem-checkpoint fallback when Git is unavailable.
23
23
 
@@ -34,6 +34,15 @@ candidates, and starter `/implement` and `/review` workflows. Inspect inferred
34
34
  commands before trusting project executables. Use `--minimal` for only
35
35
  `ORBIT.md`, or `--json` when another tool consumes the result.
36
36
 
37
+ Initialization preserves existing files and preflights all planned paths before
38
+ writing, reporting directories or unsafe links occupying file targets. Node.js
39
+ verification honors a versioned `packageManager` declaration in `package.json`,
40
+ then an unambiguous lockfile, and otherwise defaults to npm. Conflicting
41
+ lockfiles without a declaration, unsupported package managers, and malformed
42
+ manifests produce warnings instead of guessed commands. `verificationSuites`
43
+ in JSON output lists inferred candidates; an existing verification file is not
44
+ merged or replaced.
45
+
37
46
  Use natural language to start work or type `/` in the TUI or Web UI to open the
38
47
  same localized command catalog:
39
48
 
@@ -45,9 +54,171 @@ Review this codebase, fix the highest-impact problem, and verify it.
45
54
  /webui Start the synchronized browser workspace
46
55
  ```
47
56
 
48
- `/webui` does not open a browser automatically. It presents an authenticated,
49
- clickable local URL beside the terminal's completed message before any optional
50
- remote model refresh, so provider latency cannot block local startup.
57
+ `/webui` starts or reuses the synchronized workspace and opens the default
58
+ browser with its complete authentication URL. It also presents a clickable
59
+ local URL before any optional remote model refresh, so provider latency cannot
60
+ block local startup. Use `/webui --no-open` to start the service without opening
61
+ a browser. From a shell, `orbit webui --open` starts a browser workspace directly.
62
+
63
+ ### Built-in desktop browser
64
+
65
+ Open `/webui`, then choose **Browser** in the sidebar. Enter an HTTP(S) website,
66
+ a development URL such as `localhost:5173`, or search terms. Bing is the default;
67
+ **Browser settings & privacy** lets you choose Google, Baidu, or DuckDuckGo.
68
+ The preference stays in this WebUI, and queries are only sent when submitted,
69
+ never automatically retried with a different provider. Search services may require
70
+ manual verification or be unavailable on your network. This is a real
71
+ isolated Chromium session with live page frames: click links, type or paste text,
72
+ use Chinese input, scroll, navigate back/forward, reload, manage up to eight tabs,
73
+ and respond to website dialogs directly inside Orbit.
74
+
75
+ The resizable desktop dock sits alongside chat; focus mode gives the page more
76
+ room. Its website viewport follows the available space. Drag the divider or use
77
+ its arrow keys; double-click or press Home to restore the default split. Click
78
+ the page to type, or focus the page region and press Enter. Escape returns to
79
+ the address bar, Ctrl/Cmd+L focuses it, and Alt+Left/Right navigates history.
80
+ There is no separate phone-oriented Orbit interface.
81
+
82
+ Use **Page actions → Read page outline** for an on-demand, redacted text view
83
+ and keyboard-accessible page controls. In a wide, expanded workbench it docks
84
+ beside a readable live page preview; hold Shift while scrolling to pan the
85
+ preview horizontally. In a smaller dock, the outline covers the page temporarily.
86
+ Direct page input marks the outline stale and revokes its control shortcuts
87
+ until you choose **Refresh outline**. Opening or closing the outline does not
88
+ resize the website viewport or discard page input.
89
+
90
+ **Use browser in question** attaches the current page beside your draft without
91
+ submitting or changing its text. The attachment can be removed, and switching
92
+ tabs or navigating before submission requires attaching the intended page again.
93
+ The `browser_preview` tool stays on the attached tab for that turn and uses
94
+ normal tool permissions. It reads page structure, observed controls, console
95
+ errors and layout evidence; its result does not include image vision. Manual
96
+ page input pauses during an active Agent task, while closing the browser and
97
+ answering website dialogs remain available.
98
+
99
+ Orbit starts an installed Chrome/Edge or Playwright Chromium with an independent
100
+ temporary profile. It does not download an engine or read your personal browser
101
+ cookies. A missing engine produces a recoverable message without affecting chat.
102
+ Public requests use a DNS-validated, pinned proxy. Local development services
103
+ must be explicitly opened as HTTP on IPv4 loopback (`localhost` is normalized
104
+ to `127.0.0.1`) above port 1023. Other private-network destinations and Orbit's
105
+ control port remain blocked. Same-origin local redirects and WebSocket hot reload
106
+ work; a public page cannot borrow a local tab's grant. HTTPS local certificates,
107
+ IPv6-only development servers, extensions, audio,
108
+ service workers, and remote-selection clipboard copy are not supported yet.
109
+ When a website opens a file chooser, Orbit shows a separate confirmation panel.
110
+ Only files selected there and explicitly applied reach that website: at most eight
111
+ files and 32 MB total per request. The request expires after two minutes and is
112
+ revoked on navigation, tab changes, or browser close. Orbit does not accept a
113
+ filesystem path from the website or save uploaded bytes in the workspace.
114
+ Website downloads are held briefly behind an explicit WebUI confirmation (one
115
+ pending file, 64 MB maximum, two-minute expiry). Confirmed bytes are sent to
116
+ your own browser's save flow, not to an Orbit workspace path. Dismissal,
117
+ navigation, tab changes, and browser close revoke the pending download.
118
+ Some websites may reject automated browsers or require unsupported features.
119
+
120
+ **Close browser** clears its pages and cookies. Hiding the dock keeps the session
121
+ available. Session/project changes, WebUI shutdown, cancellation during a browser
122
+ tool action, and 30 minutes without browser actions also close it. URLs are not
123
+ saved to local storage. Website content and frames may contain private data;
124
+ review the active page before asking the Agent to read it. These network controls
125
+ are not an OS sandbox or a restriction on a local server's own outgoing requests.
126
+ Development-server startup and shutdown remain under your control.
127
+
128
+ ## Reusable prompt workflows
129
+
130
+ Store local slash commands in `.orbit/commands/<name>.md`. A workflow can
131
+ declare up to eight required Skills in frontmatter:
132
+
133
+ ```markdown
134
+ ---
135
+ description: Review a target and verify findings
136
+ argument-hint: <target path>
137
+ skills: [code-review, verify-findings]
138
+ ---
139
+
140
+ Inspect $ARGUMENTS and report evidence-backed findings.
141
+ ```
142
+
143
+ Orbit explicitly invokes declared Skills and checks their availability on each
144
+ launch, in both terminal and WebUI sessions. Missing or disabled dependencies
145
+ block execution with recovery guidance. Existing creator-generated `Use $name.`
146
+ prefixes remain supported; other legacy commands can add `skills` explicitly.
147
+ Commands without dependencies still work when Skills are disabled.
148
+
149
+ `$ARGUMENTS` and `{{args}}` preserve the complete trimmed input. Positional
150
+ arguments use `$1` through `$9`, or `$0` through `$9` when `$0` appears in the
151
+ template. Wrap arguments containing spaces in single or double quotes;
152
+ backslashes remain literal, including in Windows paths. Unclosed positional
153
+ quotes are rejected. Replacement text is never expanded a second time.
154
+ Argument hints accept up to 160 characters in both creation and loading.
155
+
156
+ New Skill and workflow names use 1–48 lowercase letters, digits, or hyphens,
157
+ starting and ending with a letter or digit. Windows device names such as `con`,
158
+ `nul`, and `com1` are rejected on every platform to keep generated bundles
159
+ portable. Failed capability writes clean up their partial files so creation can
160
+ be retried; existing capabilities are never overwritten.
161
+
162
+ Commands without `stages` remain ordinary prompt workflows. Optional `stages`
163
+ enable sequential, checkpointed execution while retaining the same permissions:
164
+
165
+ ```yaml
166
+ stages:
167
+ - id: inspect
168
+ title: Inspect
169
+ prompt: Inspect the requested scope and write findings to analysis.md.
170
+ artifacts: [analysis.md]
171
+ - id: verify
172
+ title: Verify
173
+ prompt: Implement the approved change and run project checks.
174
+ verification: true
175
+ ```
176
+
177
+ Every stage needs at least one nonempty artifact or a passing verification
178
+ receipt. Stage `skills` augment command dependencies. Completed artifacts cannot
179
+ be modified by later stages. The WebUI creator accepts this structure as an
180
+ optional JSON array under **Advanced: stages**. The bundled `/verified-change`
181
+ command demonstrates inspection, implementation and final review.
182
+
183
+ Use `/workflow run <name> [input]` (or `/<name>`), `/workflow status <run-id>`,
184
+ `/workflow resume <run-id>` and `/workflow cancel <run-id>`. Stop/Esc interrupts
185
+ an active run; cancel marks an inactive run permanently cancelled. Resume in the
186
+ original session after inspecting the error. Definitions and completed artifact
187
+ hashes must still match. A failed stage may have partial side effects: inspect
188
+ them before explicitly retrying; completed stages are not replayed. Workflows
189
+ currently accept text only and use the single AgentLoop, not parallel agents.
190
+ State is local to `.orbit/workflow-runs`. Malformed ownership records require
191
+ manual inspection; never remove a live owner's lock. No automatic rollback,
192
+ publishing or installation is implied. See [execution contract](../../docs/workflow-skill-design.md).
193
+
194
+ ### Skill visibility and exported drafts
195
+
196
+ Use `orbit skills explain "<request>"` or `/skills explain <request>` to inspect
197
+ selection and non-selection reasons without invoking a model. Explicit opt-outs,
198
+ fenced examples and quoted lines do not activate Skills. These are conservative
199
+ lexical rules, not a semantic intent classifier; test your descriptions against
200
+ both expected triggers and counterexamples.
201
+
202
+ Skill activation events explain explicit invocation, name matching, or metadata
203
+ matching (with a term count, not the user's raw query). Truncation warnings
204
+ distinguish the Skill byte limit, automatic-load byte limit, and shared context
205
+ budget. The model is instructed to read the complete `skill://<name>/SKILL.md`
206
+ before using clipped instructions, or stop if it cannot. This is a prompt-level
207
+ requirement, not a guarantee that the model has read every resource.
208
+
209
+ `/workflow export <name> [local|versioned]` now creates a draft with
210
+ `policy.review_status: draft` and `allow_implicit_invocation: false` in
211
+ `agents/openai.yaml`. Drafts remain visible in the catalog but cannot be invoked
212
+ or used as workflow dependencies. Review the generated checklist and complete
213
+ Skill file, check source failures, remove private or task-specific information,
214
+ and validate the intended procedure. Then manually set `review_status: approved`
215
+ and refresh Skills (restart the CLI or use the WebUI refresh control).
216
+ Approval is an author-maintained declaration, not an independent certification.
217
+ Leave automatic invocation off until positive and negative trigger examples pass.
218
+
219
+ Existing Skills without a review status keep their previous behavior. An invalid
220
+ or unreadable sidecar is quarantined until repaired. Exports include completed
221
+ plan items only; verification counts do not imply that verification succeeded.
51
222
 
52
223
  ## Other entry points
53
224
 
@@ -55,7 +226,7 @@ remote model refresh, so provider latency cannot block local startup.
55
226
  orbit "Fix the failing tests" # immediate interactive task
56
227
  orbit exec "Review src" --jsonl # automation-friendly JSONL
57
228
  orbit doctor --probe --deepseek # configuration + live probe
58
- orbit bench --model deepseek-v4-flash --thinking high
229
+ orbit bench --model deepseek-flash --thinking high
59
230
  orbit agents validate --json # validate project/user Agent Profiles
60
231
  orbit --agent-profile reviewer "Review src" # run one task with a named profile
61
232
  orbit # then /agent reviewer in TUI/REPL
@@ -225,9 +396,9 @@ providers or models preserves the current chat and recalculates its available
225
396
  context.
226
397
 
227
398
  The official DeepSeek profile refreshes its live catalog after login and keeps
228
- the selector stable as `Auto`, `deepseek-v4-flash`, and `deepseek-v4-pro`;
399
+ the selector stable as `Auto`, `deepseek-flash`, and `deepseek-v4-pro`;
229
400
  dated backend build names are
230
- shown only in diagnostics (`Flash-0731` and `Pro-0813`). Both official lanes
401
+ shown only in diagnostics (`DeepSeek-V4.1-Flash-1017` and `Pro-0813`). Both official lanes
231
402
  expose 1,000,000-token context, 384,000-token maximum output, and native
232
403
  low/high/max reasoning. One DeepSeek profile supports Chat Completions,
233
404
  Responses, and Anthropic transports; automatic mode keeps Chat as the default
@@ -8,64 +8,58 @@ published runtime bundle. It is generated from the lockfile with
8
8
 
9
9
  - `@agentclientprotocol/sdk` 1.3.0 — https://github.com/agentclientprotocol/typescript-sdk#readme
10
10
  - `human-signals` 5.0.0 — https://www.github.com/ehmicky/human-signals
11
+ - `playwright-core` 1.61.1 — https://playwright.dev
11
12
  - `typescript` 6.0.3 — https://www.typescriptlang.org/
12
13
 
14
+ ## BSD-2-Clause
15
+
16
+ - `domelementtype` 3.0.0 — https://github.com/fb55/domelementtype#readme
17
+ - `domhandler` 6.0.1 — https://github.com/fb55/domhandler#readme
18
+ - `domutils` 4.0.2 — https://github.com/fb55/domutils#readme
19
+ - `entities` 8.1.0 — https://github.com/fb55/entities#readme
20
+
13
21
  ## BSD-3-Clause
14
22
 
15
- - `fast-uri` 3.1.6 — https://github.com/fastify/fast-uri
23
+ - `fast-uri` 3.1.9 — https://github.com/fastify/fast-uri
16
24
 
17
25
  ## ISC
18
26
 
19
- - `fastq` 1.20.1 — https://github.com/mcollina/fastq#readme
20
- - `glob-parent` 5.1.2 — https://github.com/gulpjs/glob-parent#readme
21
27
  - `isexe` 2.0.0 — https://github.com/isaacs/isexe#readme
22
28
  - `picocolors` 1.1.1 — https://github.com/alexeyraspopov/picocolors#readme
23
29
  - `signal-exit` 4.1.0 — https://github.com/tapjs/signal-exit#readme
24
30
  - `which` 2.0.2 — https://github.com/isaacs/node-which#readme
25
31
  - `yaml` 2.9.0 — https://eemeli.org/yaml/
26
- - `zod-to-json-schema` 3.25.2 — https://github.com/StefanTerdell/zod-to-json-schema#readme
27
32
 
28
33
  ## MIT
29
34
 
30
35
  - `@clack/core` 1.4.3 — https://github.com/bombshell-dev/clack/tree/main/packages/core#readme
31
36
  - `@clack/prompts` 1.7.0 — https://github.com/bombshell-dev/clack/tree/main/packages/prompts#readme
32
- - `@nodelib/fs.scandir` 2.1.5 — https://github.com/nodelib/nodelib/tree/master#readme
33
- - `@nodelib/fs.stat` 2.0.5 — https://github.com/nodelib/nodelib/tree/master#readme
34
- - `@nodelib/fs.walk` 1.2.8 — https://github.com/nodelib/nodelib/tree/master#readme
35
37
  - `ajv` 8.20.0 — https://ajv.js.org
36
- - `braces` 3.0.3 — https://github.com/micromatch/braces
37
38
  - `commander` 15.0.0 — https://github.com/tj/commander.js#readme
38
39
  - `cross-spawn` 7.0.6 — https://github.com/moxystudio/node-cross-spawn
40
+ - `dom-serializer` 3.1.1 — https://github.com/cheeriojs/dom-serializer#readme
39
41
  - `execa` 8.0.1 — https://github.com/sindresorhus/execa#readme
40
42
  - `fast-deep-equal` 3.1.3 — https://github.com/epoberezkin/fast-deep-equal#readme
41
- - `fast-glob` 3.3.3 — https://github.com/mrmlnc/fast-glob#readme
42
43
  - `fast-string-truncated-width` 3.0.3 — https://github.com/fabiospampinato/fast-string-truncated-width#readme
43
44
  - `fast-string-width` 3.0.2 — https://github.com/fabiospampinato/fast-string-width#readme
44
45
  - `fast-wrap-ansi` 0.2.2 — https://github.com/43081j/fast-wrap-ansi#readme
45
- - `fill-range` 7.1.1 — https://github.com/jonschlinkert/fill-range
46
+ - `fdir` 6.5.0 — https://github.com/thecodrr/fdir#readme
46
47
  - `get-stream` 8.0.1 — https://github.com/sindresorhus/get-stream#readme
48
+ - `htmlparser2` 12.0.0 — https://github.com/fb55/htmlparser2#readme
47
49
  - `ipaddr.js` 2.4.0 — https://github.com/whitequark/ipaddr.js#readme
48
- - `is-extglob` 2.1.1 — https://github.com/jonschlinkert/is-extglob
49
- - `is-glob` 4.0.3 — https://github.com/micromatch/is-glob
50
- - `is-number` 7.0.0 — https://github.com/jonschlinkert/is-number
51
50
  - `is-stream` 3.0.0 — https://github.com/sindresorhus/is-stream#readme
52
51
  - `json-schema-traverse` 1.0.0 — https://github.com/epoberezkin/json-schema-traverse#readme
53
52
  - `merge-stream` 2.0.0 — https://github.com/grncdr/merge-stream#readme
54
- - `merge2` 1.4.1 — https://github.com/teambition/merge2
55
- - `micromatch` 4.0.8 — https://github.com/micromatch/micromatch
56
53
  - `mimic-fn` 4.0.0 — https://github.com/sindresorhus/mimic-fn#readme
57
54
  - `npm-run-path` 5.3.0 — https://github.com/sindresorhus/npm-run-path#readme
58
55
  - `onetime` 6.0.0 — https://github.com/sindresorhus/onetime#readme
59
56
  - `path-key` 3.1.1, 4.0.0 — https://github.com/sindresorhus/path-key#readme
60
- - `picomatch` 2.3.2 — https://github.com/micromatch/picomatch
61
- - `queue-microtask` 1.2.3 — https://github.com/feross/queue-microtask
57
+ - `picomatch` 4.0.4 — https://github.com/micromatch/picomatch
62
58
  - `require-from-string` 2.0.2 — https://github.com/floatdrop/require-from-string#readme
63
- - `reusify` 1.1.0 — https://github.com/mcollina/reusify#readme
64
- - `run-parallel` 1.2.0 — https://github.com/feross/run-parallel
65
59
  - `shebang-command` 2.0.0 — https://github.com/kevva/shebang-command#readme
66
60
  - `shebang-regex` 3.0.0 — https://github.com/sindresorhus/shebang-regex#readme
67
61
  - `sisteransi` 1.0.5 — https://github.com/terkelg/sisteransi#readme
68
62
  - `strip-final-newline` 3.0.0 — https://github.com/sindresorhus/strip-final-newline#readme
69
- - `to-regex-range` 5.0.1 — https://github.com/micromatch/to-regex-range
70
- - `undici` 6.28.0 — https://undici.nodejs.org
71
- - `zod` 3.25.76 — https://zod.dev
63
+ - `tinyglobby` 0.2.17 — https://superchupu.dev/tinyglobby
64
+ - `undici` 8.12.4 — https://undici.nodejs.org
65
+ - `zod` 4.6.7 — https://zod.dev
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  description: 生成、修订或审计符合当前国赛规范的 CUMCM 项目与 PDF/ZIP
3
3
  argumentHint: <项目目录;可附“生成/修订/仅审计”,留空使用当前目录>
4
+ skills: [cumcm-draft]
4
5
  ---
5
6
 
6
7
  显式使用 `$cumcm-draft` 处理 `$ARGUMENTS`;若路径为空则使用当前工作区。
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  description: 兼容旧命令并转到 CUMCM 专用工作流
3
3
  argumentHint: <项目目录;留空使用当前目录>
4
+ skills: [cumcm-draft]
4
5
  ---
5
6
 
6
7
  这是兼容入口。显式使用 `$cumcm-draft` 处理 `$ARGUMENTS`;若路径为空则使用
@@ -0,0 +1,22 @@
1
+ ---
2
+ description: Inspect, implement and review a change with durable stage gates
3
+ argument-hint: <requested change>
4
+ stages:
5
+ - id: inspect
6
+ title: Inspect and scope
7
+ prompt: Inspect the relevant code and project instructions. Write scope, risks, and acceptance checks to workflow-analysis.md. Do not implement yet. Ask before overwriting unrelated existing reports.
8
+ artifacts: [workflow-analysis.md]
9
+ - id: implement
10
+ title: Implement and verify
11
+ prompt: Implement only the requested change, preserve unrelated edits, add regression coverage and run the project verification contract. Treat workflow-analysis.md as immutable evidence.
12
+ verification: true
13
+ - id: review
14
+ title: Review and hand off
15
+ prompt: Review the final diff against workflow-analysis.md. Fix in-scope defects, rerun verification and write the exact results and remaining limitations to workflow-review.md. Do not commit, publish or install globally without explicit authorization.
16
+ verification: true
17
+ artifacts: [workflow-review.md]
18
+ ---
19
+
20
+ Complete the requested change: $ARGUMENTS.
21
+ Follow repository instructions and normal permission boundaries. Stop and ask
22
+ when the requested scope or a destructive action needs user authorization.