@orion-agents/orion-code 0.1.0 → 0.1.2
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 +107 -67
- package/README.zh-CN.md +192 -217
- package/dist/cli.js +23 -21
- package/dist/cli.js.map +1 -1
- package/dist/commands/index.d.ts +1 -1
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +397 -212
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/target-command.d.ts.map +1 -1
- package/dist/commands/target-command.js +43 -9
- package/dist/commands/target-command.js.map +1 -1
- package/dist/commands/types.d.ts +33 -0
- package/dist/commands/types.d.ts.map +1 -1
- package/dist/commands/types.js +5 -1
- package/dist/commands/types.js.map +1 -1
- package/dist/core/agent.d.ts.map +1 -1
- package/dist/core/agent.js +2 -2
- package/dist/core/agent.js.map +1 -1
- package/dist/framework/external-assertion.d.ts +65 -0
- package/dist/framework/external-assertion.d.ts.map +1 -0
- package/dist/framework/external-assertion.js +571 -0
- package/dist/framework/external-assertion.js.map +1 -0
- package/dist/framework/index.d.ts +6 -4
- package/dist/framework/index.d.ts.map +1 -1
- package/dist/framework/index.js +4 -1
- package/dist/framework/index.js.map +1 -1
- package/dist/framework/query.d.ts +18 -1
- package/dist/framework/query.d.ts.map +1 -1
- package/dist/framework/query.js +65 -28
- package/dist/framework/query.js.map +1 -1
- package/dist/framework/tool-scheduler.d.ts +2 -0
- package/dist/framework/tool-scheduler.d.ts.map +1 -1
- package/dist/framework/tool-scheduler.js +23 -9
- package/dist/framework/tool-scheduler.js.map +1 -1
- package/dist/framework/tool-serializer.d.ts.map +1 -1
- package/dist/framework/tool-serializer.js +20 -4
- package/dist/framework/tool-serializer.js.map +1 -1
- package/dist/framework/tool.d.ts +11 -5
- package/dist/framework/tool.d.ts.map +1 -1
- package/dist/framework/tool.js.map +1 -1
- package/dist/harness/context-harness.d.ts.map +1 -1
- package/dist/harness/context-harness.js +4 -3
- package/dist/harness/context-harness.js.map +1 -1
- package/dist/harness/drift-guard.d.ts.map +1 -1
- package/dist/harness/drift-guard.js +14 -5
- package/dist/harness/drift-guard.js.map +1 -1
- package/dist/harness/safety.d.ts.map +1 -1
- package/dist/harness/safety.js +19 -3
- package/dist/harness/safety.js.map +1 -1
- package/dist/init.d.ts +1 -1
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +115 -34
- package/dist/init.js.map +1 -1
- package/dist/ink-ui/screens/ReplScreen.d.ts.map +1 -1
- package/dist/ink-ui/screens/ReplScreen.js +4 -1
- package/dist/ink-ui/screens/ReplScreen.js.map +1 -1
- package/dist/memory/storage.d.ts.map +1 -1
- package/dist/memory/storage.js +1 -0
- package/dist/memory/storage.js.map +1 -1
- package/dist/memory/store.d.ts.map +1 -1
- package/dist/memory/store.js +11 -5
- package/dist/memory/store.js.map +1 -1
- package/dist/migration/command.d.ts.map +1 -1
- package/dist/migration/command.js +6 -1
- package/dist/migration/command.js.map +1 -1
- package/dist/migration/migrate.d.ts.map +1 -1
- package/dist/migration/migrate.js +4 -1
- package/dist/migration/migrate.js.map +1 -1
- package/dist/print-ui/launch.d.ts +4 -0
- package/dist/print-ui/launch.d.ts.map +1 -1
- package/dist/print-ui/launch.js +102 -9
- package/dist/print-ui/launch.js.map +1 -1
- package/dist/product/identity.d.ts +2 -2
- package/dist/product/identity.d.ts.map +1 -1
- package/dist/product/identity.js +2 -2
- package/dist/product/identity.js.map +1 -1
- package/dist/product/index.d.ts +2 -1
- package/dist/product/index.d.ts.map +1 -1
- package/dist/product/index.js +5 -1
- package/dist/product/index.js.map +1 -1
- package/dist/product/version.d.ts +12 -0
- package/dist/product/version.d.ts.map +1 -0
- package/dist/product/version.js +31 -0
- package/dist/product/version.js.map +1 -0
- package/dist/runtime/agent-runtime-controller.d.ts +49 -0
- package/dist/runtime/agent-runtime-controller.d.ts.map +1 -1
- package/dist/runtime/agent-runtime-controller.js +1048 -81
- package/dist/runtime/agent-runtime-controller.js.map +1 -1
- package/dist/runtime/agent-runtime-protocol.d.ts +14 -2
- package/dist/runtime/agent-runtime-protocol.d.ts.map +1 -1
- package/dist/runtime/agent-runtime-protocol.js +18 -0
- package/dist/runtime/agent-runtime-protocol.js.map +1 -1
- package/dist/runtime/chat-controller.d.ts +6 -0
- package/dist/runtime/chat-controller.d.ts.map +1 -1
- package/dist/runtime/chat-controller.js +226 -20
- package/dist/runtime/chat-controller.js.map +1 -1
- package/dist/runtime/goals/accounting.d.ts +28 -0
- package/dist/runtime/goals/accounting.d.ts.map +1 -1
- package/dist/runtime/goals/accounting.js +69 -0
- package/dist/runtime/goals/accounting.js.map +1 -1
- package/dist/runtime/goals/completion-audit.d.ts +13 -8
- package/dist/runtime/goals/completion-audit.d.ts.map +1 -1
- package/dist/runtime/goals/completion-audit.js +598 -16
- package/dist/runtime/goals/completion-audit.js.map +1 -1
- package/dist/runtime/goals/coordinator.d.ts +44 -5
- package/dist/runtime/goals/coordinator.d.ts.map +1 -1
- package/dist/runtime/goals/coordinator.js +1124 -58
- package/dist/runtime/goals/coordinator.js.map +1 -1
- package/dist/runtime/goals/evidence.d.ts +37 -0
- package/dist/runtime/goals/evidence.d.ts.map +1 -0
- package/dist/runtime/goals/evidence.js +300 -0
- package/dist/runtime/goals/evidence.js.map +1 -0
- package/dist/runtime/goals/presentation.d.ts +4 -0
- package/dist/runtime/goals/presentation.d.ts.map +1 -0
- package/dist/runtime/goals/presentation.js +50 -0
- package/dist/runtime/goals/presentation.js.map +1 -0
- package/dist/runtime/goals/prompt.d.ts.map +1 -1
- package/dist/runtime/goals/prompt.js +38 -8
- package/dist/runtime/goals/prompt.js.map +1 -1
- package/dist/runtime/goals/tools.d.ts +18 -1
- package/dist/runtime/goals/tools.d.ts.map +1 -1
- package/dist/runtime/goals/tools.js +308 -28
- package/dist/runtime/goals/tools.js.map +1 -1
- package/dist/runtime/goals/types.d.ts +241 -7
- package/dist/runtime/goals/types.d.ts.map +1 -1
- package/dist/runtime/goals/types.js +8 -2
- package/dist/runtime/goals/types.js.map +1 -1
- package/dist/runtime/subagents/child-executor-guard.d.ts +12 -4
- package/dist/runtime/subagents/child-executor-guard.d.ts.map +1 -1
- package/dist/runtime/subagents/child-executor-guard.js +397 -61
- package/dist/runtime/subagents/child-executor-guard.js.map +1 -1
- package/dist/runtime/subagents/presets.d.ts +4 -5
- package/dist/runtime/subagents/presets.d.ts.map +1 -1
- package/dist/runtime/subagents/presets.js +18 -33
- package/dist/runtime/subagents/presets.js.map +1 -1
- package/dist/runtime/subagents/production.d.ts +3 -1
- package/dist/runtime/subagents/production.d.ts.map +1 -1
- package/dist/runtime/subagents/production.js +37 -7
- package/dist/runtime/subagents/production.js.map +1 -1
- package/dist/runtime/subagents/runner.d.ts.map +1 -1
- package/dist/runtime/subagents/runner.js +24 -3
- package/dist/runtime/subagents/runner.js.map +1 -1
- package/dist/runtime/subagents/runtime-integration.d.ts +3 -0
- package/dist/runtime/subagents/runtime-integration.d.ts.map +1 -1
- package/dist/runtime/subagents/runtime-integration.js +18 -7
- package/dist/runtime/subagents/runtime-integration.js.map +1 -1
- package/dist/runtime/subagents/supervisor.d.ts +4 -4
- package/dist/runtime/subagents/supervisor.d.ts.map +1 -1
- package/dist/runtime/subagents/supervisor.js +39 -19
- package/dist/runtime/subagents/supervisor.js.map +1 -1
- package/dist/runtime/subagents/types.d.ts +7 -0
- package/dist/runtime/subagents/types.d.ts.map +1 -1
- package/dist/runtime/subagents/types.js +12 -1
- package/dist/runtime/subagents/types.js.map +1 -1
- package/dist/runtime/ui-events.d.ts +10 -0
- package/dist/runtime/ui-events.d.ts.map +1 -1
- package/dist/runtime/ui-events.js +5 -5
- package/dist/runtime/ui-events.js.map +1 -1
- package/dist/runtime/ui-view-model.d.ts +3 -3
- package/dist/runtime/ui-view-model.d.ts.map +1 -1
- package/dist/runtime/ui-view-model.js +11 -4
- package/dist/runtime/ui-view-model.js.map +1 -1
- package/dist/services/config.d.ts +18 -7
- package/dist/services/config.d.ts.map +1 -1
- package/dist/services/config.js +79 -57
- package/dist/services/config.js.map +1 -1
- package/dist/services/doctor.d.ts.map +1 -1
- package/dist/services/doctor.js +164 -18
- package/dist/services/doctor.js.map +1 -1
- package/dist/services/global-config.d.ts +1 -1
- package/dist/services/global-config.d.ts.map +1 -1
- package/dist/services/goal-storage.d.ts +9 -4
- package/dist/services/goal-storage.d.ts.map +1 -1
- package/dist/services/goal-storage.js +1113 -75
- package/dist/services/goal-storage.js.map +1 -1
- package/dist/services/llm.d.ts +19 -0
- package/dist/services/llm.d.ts.map +1 -1
- package/dist/services/llm.js +153 -20
- package/dist/services/llm.js.map +1 -1
- package/dist/services/model-registry.d.ts +1 -1
- package/dist/services/model-registry.d.ts.map +1 -1
- package/dist/services/model-registry.js +69 -19
- package/dist/services/model-registry.js.map +1 -1
- package/dist/services/provider-resilience/coordinator.d.ts +2 -1
- package/dist/services/provider-resilience/coordinator.d.ts.map +1 -1
- package/dist/services/provider-resilience/coordinator.js +7 -6
- package/dist/services/provider-resilience/coordinator.js.map +1 -1
- package/dist/services/provider-resilience/error-classifier.d.ts.map +1 -1
- package/dist/services/provider-resilience/error-classifier.js +67 -17
- package/dist/services/provider-resilience/error-classifier.js.map +1 -1
- package/dist/services/provider-resilience/types.d.ts +1 -1
- package/dist/services/provider-resilience/types.d.ts.map +1 -1
- package/dist/services/provider-resilience/types.js.map +1 -1
- package/dist/services/redaction.d.ts.map +1 -1
- package/dist/services/redaction.js +9 -1
- package/dist/services/redaction.js.map +1 -1
- package/dist/services/session-storage.d.ts +12 -1
- package/dist/services/session-storage.d.ts.map +1 -1
- package/dist/services/session-storage.js +23 -7
- package/dist/services/session-storage.js.map +1 -1
- package/dist/services/storage-maintenance.d.ts +73 -3
- package/dist/services/storage-maintenance.d.ts.map +1 -1
- package/dist/services/storage-maintenance.js +771 -104
- package/dist/services/storage-maintenance.js.map +1 -1
- package/dist/services/task-manager.d.ts.map +1 -1
- package/dist/services/task-manager.js +2 -2
- package/dist/services/task-manager.js.map +1 -1
- package/dist/services/web-search-adapters.d.ts.map +1 -1
- package/dist/services/web-search-adapters.js +89 -49
- package/dist/services/web-search-adapters.js.map +1 -1
- package/dist/services/web-search-mcp.d.ts.map +1 -1
- package/dist/services/web-search-mcp.js +34 -37
- package/dist/services/web-search-mcp.js.map +1 -1
- package/dist/services/workspace-state.d.ts +4 -0
- package/dist/services/workspace-state.d.ts.map +1 -1
- package/dist/services/workspace-state.js +30 -9
- package/dist/services/workspace-state.js.map +1 -1
- package/dist/terminal-ui/completion.js +1 -1
- package/dist/terminal-ui/completion.js.map +1 -1
- package/dist/terminal-ui/launch.d.ts +3 -0
- package/dist/terminal-ui/launch.d.ts.map +1 -1
- package/dist/terminal-ui/launch.js +26 -98
- package/dist/terminal-ui/launch.js.map +1 -1
- package/dist/tools/git.d.ts.map +1 -1
- package/dist/tools/git.js +275 -27
- package/dist/tools/git.js.map +1 -1
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +29 -10
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/mcp.d.ts.map +1 -1
- package/dist/tools/mcp.js +20 -12
- package/dist/tools/mcp.js.map +1 -1
- package/dist/tools/web.d.ts.map +1 -1
- package/dist/tools/web.js +38 -14
- package/dist/tools/web.js.map +1 -1
- package/dist/tui-ui/layout.d.ts.map +1 -1
- package/dist/tui-ui/layout.js +36 -23
- package/dist/tui-ui/layout.js.map +1 -1
- package/dist/tui-ui/pickers.d.ts.map +1 -1
- package/dist/tui-ui/pickers.js +5 -4
- package/dist/tui-ui/pickers.js.map +1 -1
- package/dist/tui-ui/runner.d.ts +1 -0
- package/dist/tui-ui/runner.d.ts.map +1 -1
- package/dist/tui-ui/runner.js +15 -17
- package/dist/tui-ui/runner.js.map +1 -1
- package/dist/tui-ui/state.d.ts +6 -0
- package/dist/tui-ui/state.d.ts.map +1 -1
- package/dist/tui-ui/state.js +61 -30
- package/dist/tui-ui/state.js.map +1 -1
- package/package.json +14 -9
package/README.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
> **Goal-driven coding agent for the terminal.**
|
|
4
4
|
>
|
|
5
|
-
> v0.1.
|
|
5
|
+
> v0.1.2 — Goal continuity and evidence audit
|
|
6
6
|
|
|
7
7
|
[](LICENSE)
|
|
8
|
-
[](https://nodejs.org)
|
|
9
9
|
[](https://www.typescriptlang.org)
|
|
10
10
|
|
|
11
11
|
---
|
|
@@ -18,29 +18,30 @@
|
|
|
18
18
|
|
|
19
19
|
Orion Code is a terminal-based coding agent. It wraps LLM APIs in a harness of safety checks, tool orchestration, session management, and context awareness.
|
|
20
20
|
|
|
21
|
-
| Dimension
|
|
22
|
-
|
|
21
|
+
| Dimension | Description |
|
|
22
|
+
| ----------------- | ------------------------------------------------------ |
|
|
23
23
|
| **Agent Harness** | Safety boundaries, task constraints, result validation |
|
|
24
|
-
| **Tool Calling**
|
|
25
|
-
| **Memory System** | Layered memory with semantic search
|
|
26
|
-
| **MCP Protocol**
|
|
24
|
+
| **Tool Calling** | LLM autonomously invokes tools to complete tasks |
|
|
25
|
+
| **Memory System** | Layered memory with semantic search |
|
|
26
|
+
| **MCP Protocol** | Connect external MCP servers for tool extension |
|
|
27
27
|
|
|
28
28
|
## Quick Start
|
|
29
29
|
|
|
30
30
|
### Requirements
|
|
31
31
|
|
|
32
|
-
- Node.js >=
|
|
32
|
+
- Node.js >= 20.0
|
|
33
33
|
- npm >= 9.0
|
|
34
34
|
|
|
35
35
|
### Install & Run
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
|
-
# Install
|
|
39
|
-
npm install -g @orion-agents/orion-code
|
|
38
|
+
# Install the v0.1.2 release:
|
|
39
|
+
npm install -g @orion-agents/orion-code@0.1.2
|
|
40
40
|
|
|
41
|
-
# Or from source
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
# Or run from a checked-out source tree:
|
|
42
|
+
npm ci
|
|
43
|
+
npm run build
|
|
44
|
+
npm start
|
|
44
45
|
|
|
45
46
|
# Configure API key
|
|
46
47
|
export ORION_CODE_API_KEY=your-api-key
|
|
@@ -52,9 +53,12 @@ orion
|
|
|
52
53
|
# TUI renderer (default)
|
|
53
54
|
orion --ui tui
|
|
54
55
|
|
|
55
|
-
#
|
|
56
|
+
# Technical terminal renderer for diagnostics and compatibility
|
|
56
57
|
orion --ui terminal
|
|
57
58
|
|
|
59
|
+
# Deprecated compatibility renderer; scheduled for removal in v0.2.0
|
|
60
|
+
orion --ui ink
|
|
61
|
+
|
|
58
62
|
# Diagnostics
|
|
59
63
|
orion doctor
|
|
60
64
|
|
|
@@ -64,7 +68,7 @@ orion diff
|
|
|
64
68
|
# Commit plan
|
|
65
69
|
orion commit
|
|
66
70
|
|
|
67
|
-
#
|
|
71
|
+
# Experimental non-interactive print mode
|
|
68
72
|
orion -p "review the current git diff"
|
|
69
73
|
echo "summarize this project" | orion --print
|
|
70
74
|
```
|
|
@@ -75,8 +79,8 @@ The default TUI displays a portable sky-blue pixel banner: a compact landscape
|
|
|
75
79
|
rectangle with a line-drawn Orion constellation on the left and a full,
|
|
76
80
|
centered `OC` mark on the right, beside `ORION CODE | 猎户座`. The mark uses
|
|
77
81
|
three pixel densities and cyan depth levels for a finely layered appearance. It
|
|
78
|
-
|
|
79
|
-
narrow terminals.
|
|
82
|
+
is designed for terminals without inline-image support and automatically becomes
|
|
83
|
+
a compact text banner in narrow terminals.
|
|
80
84
|
|
|
81
85
|
```bash
|
|
82
86
|
# Default portable pixel banner
|
|
@@ -91,85 +95,121 @@ ORION_TUI_IMAGE=iterm2 orion
|
|
|
91
95
|
ORION_TUI_ICON=/absolute/path/to/icon.png orion
|
|
92
96
|
```
|
|
93
97
|
|
|
94
|
-
Apple Terminal does not support either inline image protocol
|
|
95
|
-
|
|
98
|
+
Apple Terminal does not support either inline image protocol. Capability detection
|
|
99
|
+
therefore selects the pixel banner instead of emitting image data. Real macOS
|
|
100
|
+
Terminal validation remains part of the release gate.
|
|
96
101
|
|
|
97
102
|
## Key Features
|
|
98
103
|
|
|
99
|
-
| Feature
|
|
100
|
-
|
|
101
|
-
| **Tool Orchestration** |
|
|
102
|
-
| **Multi-Model**
|
|
103
|
-
| **Context Awareness**
|
|
104
|
-
| **MCP Protocol**
|
|
105
|
-
| **Memory System**
|
|
106
|
-
| **Session Management** | Persistent sessions with history restore
|
|
107
|
-
| **
|
|
108
|
-
| **
|
|
109
|
-
| **
|
|
110
|
-
| **
|
|
104
|
+
| Feature | Description |
|
|
105
|
+
| ---------------------- | ----------------------------------------------------------------------------- |
|
|
106
|
+
| **Tool Orchestration** | 29 built-in tools: file I/O, shell, web, memory, git, LSP, Goal, and planning |
|
|
107
|
+
| **Multi-Model** | OpenAI-compatible providers with model switching |
|
|
108
|
+
| **Context Awareness** | Per-model context windows, token-based auto-compact |
|
|
109
|
+
| **MCP Protocol** | stdio MCP servers with heartbeat + reconnect |
|
|
110
|
+
| **Memory System** | User / Project / Session memory with semantic search |
|
|
111
|
+
| **Session Management** | Persistent sessions with history restore |
|
|
112
|
+
| **Persistent Goal** | Typed multi-turn continuation, safe restart/resume, criterion evidence audit |
|
|
113
|
+
| **Safety Boundaries** | Bash safety checks, audit logging, permission modes |
|
|
114
|
+
| **Skills System** | Builtin + user + project-level skill extensions |
|
|
115
|
+
| **Multi-Agent** | Subagent fork/worker-pool with smart routing |
|
|
116
|
+
| **CLI Utilities** | `doctor`, `diff`, `commit`, experimental `-p` print mode |
|
|
111
117
|
|
|
112
118
|
## Configuration
|
|
113
119
|
|
|
114
120
|
```json
|
|
115
121
|
{
|
|
116
|
-
"providers": [
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
122
|
+
"providers": [
|
|
123
|
+
{
|
|
124
|
+
"id": "my-provider",
|
|
125
|
+
"baseUrl": "https://api.example.com/v1",
|
|
126
|
+
"apiKey": "$MY_API_KEY",
|
|
127
|
+
"protocol": "openai-completions"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"models": [
|
|
131
|
+
{
|
|
132
|
+
"id": "my-model",
|
|
133
|
+
"provider": "my-provider",
|
|
134
|
+
"model": "model-name",
|
|
135
|
+
"contextWindow": 200000,
|
|
136
|
+
"maxOutputTokens": 64000
|
|
137
|
+
}
|
|
138
|
+
],
|
|
129
139
|
"defaultModel": "my-model",
|
|
130
140
|
"toolConfirmation": "deny",
|
|
131
|
-
"
|
|
132
|
-
"subagents": { "mode": "auto", "maxParallel": 4 }
|
|
141
|
+
"subagents": { "mode": "auto", "maxParallel": 3 }
|
|
133
142
|
}
|
|
134
143
|
```
|
|
135
144
|
|
|
136
145
|
Configuration: `~/.orion-code/orion.json` | Priority: `CLI flags > config > env vars > defaults`
|
|
137
146
|
|
|
147
|
+
The renderer is a runtime choice rather than a persisted setting: `orion` starts
|
|
148
|
+
the TUI, while `--ui terminal` selects the technical renderer.
|
|
149
|
+
|
|
138
150
|
## Interactive Commands
|
|
139
151
|
|
|
140
|
-
| Command
|
|
141
|
-
|
|
142
|
-
| `/help`
|
|
143
|
-
| `/
|
|
144
|
-
| `/
|
|
145
|
-
| `/
|
|
146
|
-
| `/
|
|
147
|
-
| `/
|
|
148
|
-
| `/
|
|
149
|
-
| `/
|
|
150
|
-
| `/
|
|
151
|
-
| `/
|
|
152
|
-
| `/
|
|
153
|
-
| `/
|
|
154
|
-
| `/
|
|
155
|
-
| `/
|
|
156
|
-
| `/
|
|
157
|
-
| `/
|
|
152
|
+
| Command | Description |
|
|
153
|
+
| ---------------------- | --------------------------------------------------------------------------- |
|
|
154
|
+
| `/help` | Show help |
|
|
155
|
+
| `/target` (`/goal`) | Create, inspect, pause, resume, replace, budget, or clear a persistent goal |
|
|
156
|
+
| `/status` | System status |
|
|
157
|
+
| `/model` | View or switch models |
|
|
158
|
+
| `/config` | Show configuration |
|
|
159
|
+
| `/usage` | Token usage and cost |
|
|
160
|
+
| `/compact` | Trigger context compact |
|
|
161
|
+
| `/sessions` | List recent sessions |
|
|
162
|
+
| `/resume` | Resume last session |
|
|
163
|
+
| `/memory` | Memory system status |
|
|
164
|
+
| `/skills` | List loaded skills |
|
|
165
|
+
| `/mcp` | MCP server status |
|
|
166
|
+
| `/doctor` | Run diagnostics |
|
|
167
|
+
| `/diff` | Workspace diff |
|
|
168
|
+
| `/commit` | Commit plan |
|
|
169
|
+
| `/clear` | Clear screen |
|
|
170
|
+
| `/context-clear --yes` | Clear in-memory model context; preserve the saved session |
|
|
171
|
+
| `/exit` | Exit |
|
|
172
|
+
|
|
173
|
+
TUI is the public product interface and the default launch path. `terminal-ui`
|
|
174
|
+
is maintained as a technical diagnostics/compatibility renderer, not a second
|
|
175
|
+
public product. Ink is deprecated, receives no new product features, and is
|
|
176
|
+
scheduled for removal in v0.2.0.
|
|
177
|
+
|
|
178
|
+
### Persistent Goal safety contract
|
|
179
|
+
|
|
180
|
+
`/target <objective>` creates one active Goal for the current session. Automatic
|
|
181
|
+
continuations are typed runtime requests: they are not echoed or stored as fake
|
|
182
|
+
user messages. After a process restart or `/resume`, an active Goal is restored
|
|
183
|
+
in a visible paused state; run `/target resume` to continue deliberately.
|
|
184
|
+
|
|
185
|
+
The model may request `complete` or `blocked`, but cannot set either terminal
|
|
186
|
+
state directly. Orion records runtime/tool evidence and audits every success
|
|
187
|
+
criterion. Missing, failed, unmapped, wrong-kind, expired, or stale evidence keeps the
|
|
188
|
+
Goal open. Criteria that require human acceptance can only receive trusted
|
|
189
|
+
`user` evidence from `/target confirm <criterion-id>`; model tools cannot mint
|
|
190
|
+
that confirmation. v0.1.2 remains single-session and single-active-Goal; it does not
|
|
191
|
+
promise multi-Goal scheduling or unattended background execution.
|
|
158
192
|
|
|
159
193
|
## Migration from OpenHorse
|
|
160
194
|
|
|
161
195
|
```bash
|
|
162
|
-
|
|
196
|
+
# Preview only (default)
|
|
197
|
+
orion migrate openhorse [--include-env]
|
|
198
|
+
|
|
199
|
+
# Execute after reviewing the preview
|
|
200
|
+
orion migrate openhorse --yes [--include-env]
|
|
163
201
|
```
|
|
164
202
|
|
|
165
|
-
See [
|
|
203
|
+
See the [v0.1.2 release notes](https://github.com/orion-agents/orion-code/blob/main/docs/mvp/v0.1.2.md),
|
|
204
|
+
[Goal evidence and recovery guide](https://github.com/orion-agents/orion-code/blob/main/docs/goals/goal-evidence-and-recovery.md),
|
|
205
|
+
and [execution plan](https://github.com/orion-agents/orion-code/blob/main/docs/plan/v0.1.2-execution-plan.md).
|
|
166
206
|
|
|
167
207
|
## Development
|
|
168
208
|
|
|
169
209
|
```bash
|
|
170
210
|
npm install # Install dependencies
|
|
171
211
|
npm run build # Build
|
|
172
|
-
npm test # Run
|
|
212
|
+
npm test # Run the full Jest suite
|
|
173
213
|
npm run lint # Lint
|
|
174
214
|
npm run format # Format
|
|
175
215
|
```
|