@orbit-build/cli 0.1.5 → 0.1.6

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 +61 -60
  2. package/dist/index.js +388 -426
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,94 +1,95 @@
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
9
-
10
- ## Install and open Orbit
11
-
12
- From the Orbit workspace:
10
+ Requires Node.js 20 or newer.
13
11
 
14
12
  ```bash
15
- pnpm install
16
- pnpm build
17
- pnpm install-global
13
+ npm install --global @orbit-build/cli
14
+ orbit --version
15
+ orbit login
18
16
  ```
19
17
 
20
- The global command works in Command Prompt and PowerShell:
18
+ Run `orbit` from a project folder:
21
19
 
22
20
  ```bash
23
- orbit login
21
+ cd path/to/project
24
22
  orbit
25
23
  ```
26
24
 
27
- Enter `/webui` inside the interactive prompt to open the local browser UI.
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.
28
27
 
29
- ## Development map
28
+ ## Main workflows
30
29
 
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)
35
-
36
- Run `pnpm test:cli` for CLI tests or `pnpm verify:cli` for lint, formatting,
37
- tests, and the CLI ESM/type build.
38
-
39
- ## DeepSeek V4 defaults
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 lsp
37
+ ```
40
38
 
41
- The default provider is `deepseek-openai` at `https://api.deepseek.com`.
39
+ Enter `/webui` inside the TUI to open Orbit's authenticated local browser UI.
40
+ Projects map to codebase folders and contain independent persisted chats that
41
+ can be resumed, archived, or deleted.
42
42
 
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 |
43
+ Use `/goal`, `/plan`, opt-in `/memory`, `/compact`, `/metrics`, `/model`,
44
+ `/timeline`, `/rewind`, and `/rollback` to manage durable work. Switching models
45
+ preserves the chat and recalculates context against the selected model window;
46
+ automatic compaction protects continuity when the new window is smaller.
47
47
 
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.
48
+ ## Providers
49
49
 
50
- The temporary aliases preserve their historical mode while moving to V4:
50
+ `orbit login` creates and deletes saved provider profiles. For an
51
+ OpenAI-compatible provider, supply its exact base URL, including `/v1` when the
52
+ service requires it; Orbit does not guess URL suffixes. Authenticated provider
53
+ catalogs and the local Ollama API populate the model selector with models that
54
+ are actually available.
51
55
 
52
- - `deepseek-chat` → `deepseek-v4-flash`, thinking disabled
53
- - `deepseek-reasoner` → `deepseek-v4-flash`, thinking high
56
+ The default official provider is DeepSeek's OpenAI-compatible endpoint at
57
+ `https://api.deepseek.com`:
54
58
 
55
- DeepSeek announced that both aliases will become inaccessible after 2026-07-24 15:59 UTC, so new configuration should use the V4 IDs.
59
+ | Model | Default roles | Thinking | Context | Orbit output default |
60
+ | ------------------- | ------------------------- | -------- | --------: | -------------------: |
61
+ | `deepseek-v4-flash` | default, fast, summarizer | disabled | 1,000,000 | 8,192 |
62
+ | `deepseek-v4-pro` | planner, coder, reviewer | high | 1,000,000 | 16,384 |
56
63
 
57
- ## Diagnostics and benchmarks
64
+ Orbit keeps reusable prefixes stable and reports measured DeepSeek cache
65
+ hit/miss usage. It does not send synthetic cache primers or promise a fixed hit
66
+ rate.
58
67
 
59
68
  ```bash
60
- orbit doctor --deepseek
61
69
  orbit doctor --probe --deepseek
62
- orbit doctor --json
63
- orbit doctor --strict
64
-
70
+ orbit doctor --json --strict
65
71
  orbit bench --model deepseek-v4-flash --thinking disabled --repeat 3 --max-tokens 256
66
72
  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
73
  ```
69
74
 
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.
71
-
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.
75
+ ## Automation contract
75
76
 
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/).
77
+ `orbit exec "task" --jsonl` never opens interactive approval menus. Approved
78
+ operations continue; operations that require user approval are denied safely.
79
+ The final event contains the structured outcome. Exit codes are `0` for
80
+ completion, `2` for task or verification failure, `4` for provider startup
81
+ failure, and `130` for abort.
77
82
 
78
- ## Other commands
83
+ ## Documentation and development
79
84
 
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
- ```
85
+ - [Repository overview](https://github.com/Hephaestus-DevKit/Orbit#readme)
86
+ - [Maintainer guide](https://github.com/Hephaestus-DevKit/Orbit/blob/main/docs/MAINTAINER_GUIDE.md)
87
+ - [Security policy](https://github.com/Hephaestus-DevKit/Orbit/blob/main/SECURITY.md)
88
+ - [Changelog](https://github.com/Hephaestus-DevKit/Orbit/blob/main/CHANGELOG.md)
87
89
 
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.
90
+ From a source checkout, run `pnpm install`, `pnpm build`, and
91
+ `pnpm install-global`. Use `pnpm verify:cli` for focused CLI verification or
92
+ `pnpm verify:release` before publishing.
93
93
 
94
- Run `orbit --help` or `orbit <command> --help` for all options.
94
+ License terms have not yet been finalized; repository visibility alone does not
95
+ grant permission to use, modify, or redistribute the source.