@orbit-build/cli 0.1.9 → 0.1.11

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.
Files changed (3) hide show
  1. package/README.md +59 -110
  2. package/dist/index.js +3413 -704
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,23 +1,21 @@
1
1
  # @orbit-build/cli
2
2
 
3
3
  Orbit is a local-first AI coding agent for the terminal, browser, and editor. It
4
- is optimized for DeepSeek V4, supports compatible hosted providers and local
5
- Ollama models, and keeps project chats, active model state, approvals, and
6
- context synchronized between its TUI and Web UI.
4
+ is optimized for DeepSeek V4, supports OpenAI-compatible providers and local
5
+ Ollama models, and keeps project chats, model state, approvals, and context
6
+ synchronized between its TUI and authenticated local Web UI.
7
7
 
8
- ## Install
8
+ ## Install and start
9
9
 
10
- Requires Node.js 20 or newer.
10
+ Requires Node.js 20 or newer. If `node` or `npm` is missing, install a current
11
+ Node.js LTS release from [nodejs.org](https://nodejs.org/); npm is included with
12
+ the standard Windows, macOS, and Linux installers.
11
13
 
12
14
  ```bash
15
+ node --version
16
+ npm --version
13
17
  npm install --global @orbit-build/cli
14
- orbit --version
15
18
  orbit login
16
- ```
17
-
18
- Run `orbit` from a project folder:
19
-
20
- ```bash
21
19
  cd path/to/project
22
20
  orbit
23
21
  ```
@@ -25,124 +23,75 @@ orbit
25
23
  The global command works in PowerShell, Command Prompt, and POSIX shells. Open a
26
24
  new terminal if an existing shell has not refreshed npm's global binary path.
27
25
 
28
- ## Main workflows
29
-
30
- ```bash
31
- orbit # interactive full-screen TUI
32
- orbit "Fix the failing tests" # one-shot task
33
- orbit exec "Review src" --jsonl
34
- orbit doctor --deepseek
35
- orbit config
36
- orbit extension .orbit/extensions/example.yaml
37
- orbit update --check
38
- orbit lsp
39
- ```
40
-
41
- `orbit extension <manifest> [--json]` validates the versioned, workspace-bound
42
- extension contract without installing or executing third-party code. Automatic
43
- extension installation and lifecycle loading are intentionally not implied by
44
- this validation command.
45
-
46
- Inspect or remove Orbit-owned runtime data with `orbit clean`. It never removes
47
- project source, `ORBIT.md`, or `orbit.config.yaml`:
48
-
49
26
  ```bash
50
- orbit clean --project
51
- orbit clean --user
52
- orbit clean --all
53
- orbit clean --all --yes --json
27
+ orbit "Fix the failing tests" # direct interactive task
28
+ orbit exec "Review src" --jsonl # automation-friendly JSONL
29
+ orbit doctor --probe --deepseek # configuration + live probe
30
+ orbit update --check # check without installing
54
31
  ```
55
32
 
56
- Interactive cleanup requires the exact confirmation `DELETE`. Non-interactive
57
- cleanup requires `--yes`; `--json` without `--yes` only returns the cleanup
58
- preview. Uninstall the executable separately with
59
- `npm uninstall --global @orbit-build/cli`.
33
+ Inside the TUI, use `/webui` for the synchronized browser workspace. One project
34
+ maps to one codebase folder and can contain multiple persisted chats. Type `/`
35
+ in either interface for the shared command catalog; use `/goal`, `/plan`,
36
+ `/model`, `/compact`, `/timeline`, `/rewind`, and `/rollback` for durable work.
60
37
 
61
- Updates are explicit and use the installed npm runtime:
38
+ Accepted prompts are persisted before provider work starts. After an unexpected
39
+ shutdown, Orbit resumes conservatively without silently replaying unfinished
40
+ side-effecting tools. The Web UI Activity view exposes bounded tool timing,
41
+ risk, approval, and completion metadata without publishing raw inputs or output.
62
42
 
63
- ```bash
64
- orbit update --check # network check only
65
- orbit update # check, then confirm interactively
66
- orbit update --yes # explicit non-interactive install
67
- orbit update --check --json
68
- orbit update --channel beta --check
69
- ```
70
-
71
- The TUI performs one bounded background version check per process: the cat heart
72
- blinks when a newer release exists and stays steady otherwise. This check never
73
- installs anything or blocks input, and Orbit never silently replaces itself.
74
- The interactive `/update` command invokes this same Orbit CLI updater; it no
75
- longer runs a package-manager install inside the active project. From the Web
76
- UI it remains check-only to avoid interrupting the local server; the TUI can
77
- confirm and install an available release.
78
-
79
- Stable uses npm's `latest` dist-tag and beta uses `next`. After installation,
80
- Orbit verifies the globally installed version. A failed install or mismatched
81
- version triggers a best-effort rollback to the previous exact version and an
82
- actionable manual recovery command.
83
-
84
- Enter `/webui` inside the TUI to open Orbit's authenticated local browser UI.
85
- Projects map to codebase folders and contain independent persisted chats that
86
- can be resumed, archived, or deleted.
87
-
88
- Type `/` in the browser composer for keyboard-navigable built-in and custom
89
- command suggestions. `Ctrl+K` opens the broader action palette.
43
+ ## Providers and continuity
90
44
 
91
- Use `/goal`, `/plan`, opt-in `/memory`, `/compact`, `/metrics`, `/model`,
92
- `/timeline`, `/rewind`, and `/rollback` to manage durable work. Switching models
93
- preserves the chat and recalculates context against the selected model window;
94
- automatic compaction protects continuity when the new window is smaller.
45
+ `orbit login` adds, lists, and deletes saved provider profiles. Enter the exact
46
+ base URL required by an OpenAI-compatible provider, including `/v1` when
47
+ applicable; Orbit does not guess suffixes. Authenticated catalogs and the local
48
+ Ollama API populate the model selector with models that are actually available.
95
49
 
96
- Orbit exposes validated file, search, symbol, shell, test, Git, live-web,
97
- source-fetch, and durable-plan tools to the active model. Tool arguments are
98
- validated before approval or execution, results are bounded and redacted, and
99
- connected MCP tools retain their server-declared JSON Schemas.
50
+ The official DeepSeek profile uses `https://api.deepseek.com` with
51
+ `deepseek-v4-flash` for fast work and `deepseek-v4-pro` for planning, coding,
52
+ and review. Model changes preserve the chat and recalculate context against the
53
+ new window; automatic compaction protects continuity when the window is smaller.
100
54
 
101
- ## Providers
55
+ Orbit exposes validated file, search, symbol, shell, test, Git, web, fetch, and
56
+ plan tools. Arguments are checked before approval or execution, results are
57
+ bounded and redacted, and connected MCP tools retain their declared schemas.
102
58
 
103
- `orbit login` creates and deletes saved provider profiles. For an
104
- OpenAI-compatible provider, supply its exact base URL, including `/v1` when the
105
- service requires it; Orbit does not guess URL suffixes. Authenticated provider
106
- catalogs and the local Ollama API populate the model selector with models that
107
- are actually available.
108
-
109
- The default official provider is DeepSeek's OpenAI-compatible endpoint at
110
- `https://api.deepseek.com`:
111
-
112
- | Model | Default roles | Thinking | Context | Orbit output default |
113
- | ------------------- | ------------------------- | -------- | --------: | -------------------: |
114
- | `deepseek-v4-flash` | default, fast, summarizer | disabled | 1,000,000 | 8,192 |
115
- | `deepseek-v4-pro` | planner, coder, reviewer | high | 1,000,000 | 16,384 |
116
-
117
- Orbit keeps reusable prefixes stable and reports measured DeepSeek cache
118
- hit/miss usage. It does not send synthetic cache primers or promise a fixed hit
119
- rate.
59
+ ## Update, backup, cleanup, and uninstall
120
60
 
121
61
  ```bash
122
- orbit doctor --probe --deepseek
123
- orbit doctor --json --strict
124
- orbit bench --model deepseek-v4-flash --thinking disabled --repeat 3 --max-tokens 256
125
- orbit bench --model deepseek-v4-pro --thinking high --repeat 3 --max-tokens 4096
62
+ orbit update --check
63
+ orbit update # confirm interactively
64
+ orbit update --yes # explicit non-interactive install
65
+ orbit backup create # chats, memory, commands, skills, and plans
66
+ orbit backup inspect <file> # validate version, paths, sizes, and SHA-256
67
+ orbit backup restore <file> # refuses existing files unless --force is used
68
+ orbit clean --project # preview project-owned runtime data
69
+ orbit clean --user # preview user-owned runtime data
70
+ npm uninstall --global @orbit-build/cli
126
71
  ```
127
72
 
128
- ## Automation contract
73
+ Orbit never installs an update during startup. Cleanup never removes project
74
+ source, `ORBIT.md`, or `orbit.config.yaml`; deletion requires `DELETE`
75
+ interactively or `--yes` in automation.
76
+
77
+ Backups are portable, versioned project-data bundles. Credentials, generated
78
+ indexes, caches, evaluations, temporary state, and previous exports are always
79
+ excluded. Restore validates the complete bundle before writing anything.
129
80
 
130
- `orbit exec "task" --jsonl` never opens interactive approval menus. Approved
131
- operations continue; operations that require user approval are denied safely.
132
- The final event contains the structured outcome. Exit codes are `0` for
133
- completion, `2` for task or verification failure, `4` for provider startup
134
- failure, and `130` for abort.
81
+ After an update is installed and verified, restart `orbit` and reopen `/webui`.
82
+ The active TUI and browser server intentionally retain their true running
83
+ version until that restart instead of pretending to hot-update.
135
84
 
136
- ## Documentation and development
85
+ ## Documentation
137
86
 
138
- - [Repository overview](https://github.com/Hephaestus-DevKit/Orbit#readme)
139
- - [Maintainer guide](https://github.com/Hephaestus-DevKit/Orbit/blob/main/docs/MAINTAINER_GUIDE.md)
87
+ - [Product overview](https://github.com/Hephaestus-DevKit/Orbit#readme)
88
+ - [Task-oriented user guide](https://github.com/Hephaestus-DevKit/Orbit/blob/main/docs/USER_GUIDE.md)
140
89
  - [Security policy](https://github.com/Hephaestus-DevKit/Orbit/blob/main/SECURITY.md)
141
90
  - [Changelog](https://github.com/Hephaestus-DevKit/Orbit/blob/main/CHANGELOG.md)
142
91
 
143
- From a source checkout, run `pnpm install`, `pnpm build`, and
144
- `pnpm install-global`. Use `pnpm verify:cli` for focused CLI verification or
145
- `pnpm verify:release` before publishing.
92
+ Use `orbit --help` or `orbit <command> --help` for the exact options installed
93
+ on your machine. Automation exits with `0` for completion, `2` for task or
94
+ verification failure, `4` for provider startup failure, and `130` for abort.
146
95
 
147
96
  License terms have not yet been finalized; repository visibility alone does not
148
97
  grant permission to use, modify, or redistribute the source.