@orbit-build/cli 0.1.5 → 0.1.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.
Files changed (3) hide show
  1. package/README.md +91 -57
  2. package/dist/index.js +1601 -1091
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,94 +1,128 @@
1
1
  # @orbit-build/cli
2
2
 
3
- Orbit is a local-first AI coding agent for the terminal and editor. The CLI opens an interactive TUI, runs one-shot tasks, exposes an LSP autocomplete server, and includes provider diagnostics and repeatable latency/cache benchmarks.
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
7
 
5
- ## Requirements
8
+ ## Install
6
9
 
7
- - Node.js 20 or newer
8
- - A supported model provider API key, or a local Ollama installation
10
+ Requires Node.js 20 or newer.
9
11
 
10
- ## Install and open Orbit
12
+ ```bash
13
+ npm install --global @orbit-build/cli
14
+ orbit --version
15
+ orbit login
16
+ ```
11
17
 
12
- From the Orbit workspace:
18
+ Run `orbit` from a project folder:
13
19
 
14
20
  ```bash
15
- pnpm install
16
- pnpm build
17
- pnpm install-global
21
+ cd path/to/project
22
+ orbit
18
23
  ```
19
24
 
20
- The global command works in Command Prompt and PowerShell:
25
+ The global command works in PowerShell, Command Prompt, and POSIX shells. Open a
26
+ new terminal if an existing shell has not refreshed npm's global binary path.
27
+
28
+ ## Main workflows
21
29
 
22
30
  ```bash
23
- orbit login
24
- orbit
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 update --check
37
+ orbit lsp
25
38
  ```
26
39
 
27
- Enter `/webui` inside the interactive prompt to open the local browser UI.
40
+ Inspect or remove Orbit-owned runtime data with `orbit clean`. It never removes
41
+ project source, `ORBIT.md`, or `orbit.config.yaml`:
28
42
 
29
- ## Development map
43
+ ```bash
44
+ orbit clean --project
45
+ orbit clean --user
46
+ orbit clean --all
47
+ orbit clean --all --yes --json
48
+ ```
49
+
50
+ Interactive cleanup requires the exact confirmation `DELETE`. Non-interactive
51
+ cleanup requires `--yes`; `--json` without `--yes` only returns the cleanup
52
+ preview. Uninstall the executable separately with
53
+ `npm uninstall --global @orbit-build/cli`.
30
54
 
31
- - Runtime slash commands: [`src/runtime/commands/README.md`](src/runtime/commands/README.md)
32
- - Full-screen terminal UI: [`src/tui/README.md`](src/tui/README.md)
33
- - Loopback browser UI: [`src/runtime/webui/README.md`](src/runtime/webui/README.md)
34
- - Repository maintenance guide: [`../../docs/MAINTAINER_GUIDE.md`](../../docs/MAINTAINER_GUIDE.md)
55
+ Updates are explicit and use the installed npm runtime:
35
56
 
36
- Run `pnpm test:cli` for CLI tests or `pnpm verify:cli` for lint, formatting,
37
- tests, and the CLI ESM/type build.
57
+ ```bash
58
+ orbit update --check # network check only
59
+ orbit update # check, then confirm interactively
60
+ orbit update --yes # explicit non-interactive install
61
+ orbit update --check --json
62
+ ```
38
63
 
39
- ## DeepSeek V4 defaults
64
+ The TUI performs one bounded background version check per process: the cat heart
65
+ blinks when a newer release exists and stays steady otherwise. This check never
66
+ installs anything or blocks input, and Orbit never silently replaces itself.
67
+ The interactive `/update` command invokes this same Orbit CLI updater; it no
68
+ longer runs a package-manager install inside the active project. From the Web
69
+ UI it remains check-only to avoid interrupting the local server; the TUI can
70
+ confirm and install an available release.
40
71
 
41
- The default provider is `deepseek-openai` at `https://api.deepseek.com`.
72
+ Enter `/webui` inside the TUI to open Orbit's authenticated local browser UI.
73
+ Projects map to codebase folders and contain independent persisted chats that
74
+ can be resumed, archived, or deleted.
42
75
 
43
- | Model | Default roles | Thinking default | Context | Provider max output | Orbit request default |
44
- | ------------------- | ------------------------- | ---------------- | --------: | ------------------: | --------------------: |
45
- | `deepseek-v4-flash` | default, fast, summarizer | disabled | 1,000,000 | 384,000 | 8,192 |
46
- | `deepseek-v4-pro` | planner, coder, reviewer | high | 1,000,000 | 384,000 | 16,384 |
76
+ Use `/goal`, `/plan`, opt-in `/memory`, `/compact`, `/metrics`, `/model`,
77
+ `/timeline`, `/rewind`, and `/rollback` to manage durable work. Switching models
78
+ preserves the chat and recalculates context against the selected model window;
79
+ automatic compaction protects continuity when the new window is smaller.
47
80
 
48
- Both models support thinking/non-thinking modes, native tools, JSON output, and streaming. DeepSeek context caching is automatic and best-effort. Orbit keeps reusable prefixes stable, reports real hit/miss token telemetry, and does not send synthetic primer or keepalive requests.
81
+ ## Providers
49
82
 
50
- The temporary aliases preserve their historical mode while moving to V4:
83
+ `orbit login` creates and deletes saved provider profiles. For an
84
+ OpenAI-compatible provider, supply its exact base URL, including `/v1` when the
85
+ service requires it; Orbit does not guess URL suffixes. Authenticated provider
86
+ catalogs and the local Ollama API populate the model selector with models that
87
+ are actually available.
51
88
 
52
- - `deepseek-chat` → `deepseek-v4-flash`, thinking disabled
53
- - `deepseek-reasoner` → `deepseek-v4-flash`, thinking high
89
+ The default official provider is DeepSeek's OpenAI-compatible endpoint at
90
+ `https://api.deepseek.com`:
54
91
 
55
- DeepSeek announced that both aliases will become inaccessible after 2026-07-24 15:59 UTC, so new configuration should use the V4 IDs.
92
+ | Model | Default roles | Thinking | Context | Orbit output default |
93
+ | ------------------- | ------------------------- | -------- | --------: | -------------------: |
94
+ | `deepseek-v4-flash` | default, fast, summarizer | disabled | 1,000,000 | 8,192 |
95
+ | `deepseek-v4-pro` | planner, coder, reviewer | high | 1,000,000 | 16,384 |
56
96
 
57
- ## Diagnostics and benchmarks
97
+ Orbit keeps reusable prefixes stable and reports measured DeepSeek cache
98
+ hit/miss usage. It does not send synthetic cache primers or promise a fixed hit
99
+ rate.
58
100
 
59
101
  ```bash
60
- orbit doctor --deepseek
61
102
  orbit doctor --probe --deepseek
62
- orbit doctor --json
63
- orbit doctor --strict
64
-
103
+ orbit doctor --json --strict
65
104
  orbit bench --model deepseek-v4-flash --thinking disabled --repeat 3 --max-tokens 256
66
105
  orbit bench --model deepseek-v4-pro --thinking high --repeat 3 --max-tokens 4096
67
- orbit bench --model deepseek-v4-flash --thinking disabled --cache-profile --repeat 3 --min-cache-hit 75
68
106
  ```
69
107
 
70
- `--repeat` accepts 1–20 samples. `--max-tokens` accepts 1–16,384; defaults are 256 with thinking disabled, 4,096 for high, and 8,192 for max. A cache profile runs at least three samples and defaults to disabled thinking unless explicitly overridden.
108
+ ## Automation contract
71
109
 
72
- `doctor --json` emits a versioned, credential-safe support snapshot and redacts
73
- the workspace path by default. Add `--strict` in automation to return a non-zero
74
- status when the snapshot contains warnings or errors.
110
+ `orbit exec "task" --jsonl` never opens interactive approval menus. Approved
111
+ operations continue; operations that require user approval are denied safely.
112
+ The final event contains the structured outcome. Exit codes are `0` for
113
+ completion, `2` for task or verification failure, `4` for provider startup
114
+ failure, and `130` for abort.
75
115
 
76
- See the official DeepSeek [V4 release notes](https://api-docs.deepseek.com/news/news260424/), [thinking-mode guide](https://api-docs.deepseek.com/guides/thinking_mode/), and [context-cache guide](https://api-docs.deepseek.com/guides/kv_cache/).
116
+ ## Documentation and development
77
117
 
78
- ## Other commands
79
-
80
- ```text
81
- orbit [task] Open the TUI or execute a task
82
- orbit config Show resolved, redacted configuration
83
- orbit init Create project ORBIT.md instructions
84
- orbit lsp Start the local autocomplete language server
85
- orbit exec Run a non-interactive task with optional JSONL events
86
- ```
118
+ - [Repository overview](https://github.com/Hephaestus-DevKit/Orbit#readme)
119
+ - [Maintainer guide](https://github.com/Hephaestus-DevKit/Orbit/blob/main/docs/MAINTAINER_GUIDE.md)
120
+ - [Security policy](https://github.com/Hephaestus-DevKit/Orbit/blob/main/SECURITY.md)
121
+ - [Changelog](https://github.com/Hephaestus-DevKit/Orbit/blob/main/CHANGELOG.md)
87
122
 
88
- For automation, use `orbit exec "task" --jsonl`. It never opens terminal
89
- approval menus: policy-approved changes continue, while actions that still
90
- require approval are denied safely. The final `agent_completed` event contains
91
- the structured outcome. Exit codes are stable: `0` completed, `2` task or
92
- verification failure, `4` provider startup failure, and `130` aborted.
123
+ From a source checkout, run `pnpm install`, `pnpm build`, and
124
+ `pnpm install-global`. Use `pnpm verify:cli` for focused CLI verification or
125
+ `pnpm verify:release` before publishing.
93
126
 
94
- Run `orbit --help` or `orbit <command> --help` for all options.
127
+ License terms have not yet been finalized; repository visibility alone does not
128
+ grant permission to use, modify, or redistribute the source.