codemini-cli 0.5.10 → 0.5.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.
- package/OPERATIONS.md +242 -242
- package/README.md +588 -588
- package/codemini-web/dist/assets/{highlighted-body-OFNGDK62-7HL7yft8.js → highlighted-body-OFNGDK62-CANOG7Xg.js} +1 -1
- package/codemini-web/dist/assets/{index-BK75hMb2.js → index-B71xykPM.js} +108 -108
- package/codemini-web/dist/assets/index-Dkq1DdDX.css +2 -0
- package/codemini-web/dist/assets/mermaid-GHXKKRXX-Z_w7M93P.js +1 -0
- package/codemini-web/dist/index.html +23 -23
- package/codemini-web/lib/approval-manager.js +32 -32
- package/codemini-web/lib/runtime-bridge.js +17 -11
- package/codemini-web/server.js +534 -205
- package/deployment.md +212 -212
- package/package.json +1 -1
- package/skills/brainstorm/SKILL.md +77 -77
- package/skills/codemini.skills.json +40 -40
- package/skills/grill-me/SKILL.md +30 -30
- package/skills/superpowers-lite/SKILL.md +82 -82
- package/src/cli.js +74 -74
- package/src/commands/chat.js +210 -210
- package/src/commands/run.js +313 -313
- package/src/commands/skill.js +438 -304
- package/src/commands/web.js +57 -57
- package/src/core/agent-loop.js +980 -980
- package/src/core/ast.js +309 -307
- package/src/core/chat-runtime.js +6261 -6253
- package/src/core/command-evaluator.js +72 -72
- package/src/core/command-loader.js +311 -311
- package/src/core/command-policy.js +301 -301
- package/src/core/command-risk.js +156 -156
- package/src/core/config-store.js +289 -289
- package/src/core/constants.js +18 -1
- package/src/core/context-compact.js +365 -365
- package/src/core/default-system-prompt.js +114 -107
- package/src/core/dream-audit.js +105 -105
- package/src/core/dream-consolidate.js +229 -229
- package/src/core/dream-evaluator.js +185 -185
- package/src/core/fff-adapter.js +383 -383
- package/src/core/memory-store.js +543 -543
- package/src/core/project-index.js +737 -548
- package/src/core/project-instructions.js +98 -98
- package/src/core/provider/anthropic.js +514 -514
- package/src/core/provider/openai-compatible.js +501 -501
- package/src/core/reflect-skill.js +178 -178
- package/src/core/reply-language.js +40 -40
- package/src/core/session-store.js +474 -474
- package/src/core/shell-profile.js +237 -237
- package/src/core/shell.js +323 -323
- package/src/core/soul.js +69 -69
- package/src/core/system-prompt-composer.js +52 -52
- package/src/core/tool-args.js +199 -154
- package/src/core/tool-output.js +184 -184
- package/src/core/tool-result-store.js +206 -206
- package/src/core/tools.js +3024 -2893
- package/src/core/version.js +11 -11
- package/src/tui/chat-app.js +5171 -5171
- package/src/tui/tool-activity/presenters/misc.js +30 -30
- package/src/tui/tool-activity/presenters/system.js +20 -20
- package/templates/project-requirements/report-shell.html +582 -582
- package/codemini-web/dist/assets/index-BSdIdn3L.css +0 -2
- package/codemini-web/dist/assets/mermaid-GHXKKRXX-Dg9qh8mg.js +0 -1
package/OPERATIONS.md
CHANGED
|
@@ -1,242 +1,242 @@
|
|
|
1
|
-
# Operations Guide
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
This document is the day-to-day operator guide for Codemini CLI.
|
|
6
|
-
|
|
7
|
-
Use it for:
|
|
8
|
-
- common commands
|
|
9
|
-
- interactive chat workflow
|
|
10
|
-
- plan/spec flow
|
|
11
|
-
- session recovery
|
|
12
|
-
- troubleshooting combos
|
|
13
|
-
|
|
14
|
-
Use [deployment.md](/mnt/e/Git%20Projects/qurio-coder/deployment.md) for packaging, installation, and deployment instead.
|
|
15
|
-
|
|
16
|
-
## Core Commands
|
|
17
|
-
|
|
18
|
-
```text
|
|
19
|
-
codemini [prompt]
|
|
20
|
-
codemini chat [prompt]
|
|
21
|
-
codemini run <task>
|
|
22
|
-
codemini config set|get|list <key> [value]
|
|
23
|
-
codemini doctor
|
|
24
|
-
codemini skill list|install|enable|disable|inspect|reindex
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## First-Time Setup
|
|
28
|
-
|
|
29
|
-
### Windows / PowerShell
|
|
30
|
-
|
|
31
|
-
```powershell
|
|
32
|
-
codemini config set gateway.base_url https://your-internal-gateway/v1
|
|
33
|
-
codemini config set gateway.api_key your_token
|
|
34
|
-
codemini config set model.name your_model_id
|
|
35
|
-
codemini config set shell.default powershell
|
|
36
|
-
codemini config set ui.language en
|
|
37
|
-
codemini doctor
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### macOS / Linux
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
codemini config set gateway.base_url https://your-internal-gateway/v1
|
|
44
|
-
codemini config set gateway.api_key your_token
|
|
45
|
-
codemini config set model.name your_model_id
|
|
46
|
-
codemini config set shell.default bash
|
|
47
|
-
codemini config set ui.language en
|
|
48
|
-
codemini doctor
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## Common Command Combos
|
|
52
|
-
|
|
53
|
-
### Start an interactive session
|
|
54
|
-
|
|
55
|
-
```powershell
|
|
56
|
-
codemini
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Good first prompts:
|
|
60
|
-
|
|
61
|
-
```text
|
|
62
|
-
Read the README and summarize what this repository does.
|
|
63
|
-
Search for auth-related code and show me the key entrypoints.
|
|
64
|
-
Locate where shell.default is applied and explain the flow.
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Run a one-off task
|
|
68
|
-
|
|
69
|
-
```powershell
|
|
70
|
-
codemini run "Search the repo for configuration loading logic, inspect the relevant files, and summarize how config is merged."
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
### Inspect current configuration
|
|
74
|
-
|
|
75
|
-
```powershell
|
|
76
|
-
codemini config get shell.default
|
|
77
|
-
codemini config get model.name
|
|
78
|
-
codemini config get ui.language
|
|
79
|
-
codemini config list
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
### Change runtime mode quickly
|
|
83
|
-
|
|
84
|
-
```powershell
|
|
85
|
-
codemini config set shell.default powershell
|
|
86
|
-
codemini config set ui.language en
|
|
87
|
-
codemini config set soul.preset professional
|
|
88
|
-
codemini config set soul.preset pirate
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
codemini config set shell.default bash
|
|
93
|
-
codemini config set ui.language zh
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### Run diagnostics
|
|
97
|
-
|
|
98
|
-
```powershell
|
|
99
|
-
codemini doctor
|
|
100
|
-
codemini config list
|
|
101
|
-
codemini --plain
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
Use this when you want to separate:
|
|
105
|
-
- gateway issues
|
|
106
|
-
- config issues
|
|
107
|
-
- TUI-only issues
|
|
108
|
-
|
|
109
|
-
## TUI Slash Commands
|
|
110
|
-
|
|
111
|
-
```text
|
|
112
|
-
/help
|
|
113
|
-
/commands
|
|
114
|
-
/brainstorm <question>
|
|
115
|
-
/config list
|
|
116
|
-
/config get <key>
|
|
117
|
-
/history list
|
|
118
|
-
/history current
|
|
119
|
-
/history resume <session_id>
|
|
120
|
-
/spec <topic>
|
|
121
|
-
/plan <goal>
|
|
122
|
-
/plan auto <goal>
|
|
123
|
-
/yes
|
|
124
|
-
/edit <feedback>
|
|
125
|
-
/reject
|
|
126
|
-
/plan from-spec <path?>
|
|
127
|
-
/agents list
|
|
128
|
-
/agents run <role> <task>
|
|
129
|
-
/compact
|
|
130
|
-
/retry
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
Note:
|
|
134
|
-
- The old manual `/tasks` board has been removed.
|
|
135
|
-
- For complex single-task work, the assistant now maintains an internal session todo checklist automatically and shows it in the TUI.
|
|
136
|
-
- `/plan auto run` is deprecated. Use `/plan auto <goal>` then `/yes`, `/edit <feedback>`, or `/reject`.
|
|
137
|
-
|
|
138
|
-
Available sub-agent roles:
|
|
139
|
-
|
|
140
|
-
```text
|
|
141
|
-
planner
|
|
142
|
-
coder
|
|
143
|
-
reviewer
|
|
144
|
-
tester
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
## Useful Workflows
|
|
148
|
-
|
|
149
|
-
### Repo exploration
|
|
150
|
-
|
|
151
|
-
```text
|
|
152
|
-
Search the README for skill-related documentation.
|
|
153
|
-
Continue into the relevant files and explain how skill loading works.
|
|
154
|
-
Find where shell.default is used and summarize the config path.
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
### Brainstorm before coding
|
|
158
|
-
|
|
159
|
-
```text
|
|
160
|
-
/brainstorm Should login retry stay local or become a shared helper?
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
Use this when the implementation path is still fuzzy and you want the CLI to compare a few approaches before any code change.
|
|
164
|
-
|
|
165
|
-
### Spec and plan flow
|
|
166
|
-
|
|
167
|
-
```text
|
|
168
|
-
/spec Write a Windows PowerShell-first coding CLI usage spec
|
|
169
|
-
/plan from-spec
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
Then continue with:
|
|
173
|
-
|
|
174
|
-
```text
|
|
175
|
-
Execute this plan step by step.
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
For auto plan approval flow:
|
|
179
|
-
|
|
180
|
-
```text
|
|
181
|
-
/plan auto <goal>
|
|
182
|
-
/yes
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
or revise/discard before execution:
|
|
186
|
-
|
|
187
|
-
```text
|
|
188
|
-
/edit <feedback>
|
|
189
|
-
/reject
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
### Session recovery
|
|
193
|
-
|
|
194
|
-
```text
|
|
195
|
-
/history list
|
|
196
|
-
/history current
|
|
197
|
-
/history resume <session_id>
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
### Skill management
|
|
201
|
-
|
|
202
|
-
```powershell
|
|
203
|
-
codemini skill list
|
|
204
|
-
codemini skill inspect superpowers-lite
|
|
205
|
-
codemini skill install .\my-skill
|
|
206
|
-
codemini skill install --scope=global .\my-skill
|
|
207
|
-
codemini skill enable my-skill
|
|
208
|
-
codemini skill disable my-skill
|
|
209
|
-
codemini skill reindex
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
## Better Prompt Patterns
|
|
213
|
-
## Release Management
|
|
214
|
-
|
|
215
|
-
### Release Checklist
|
|
216
|
-
|
|
217
|
-
For information on how to perform a release, please see the [Release Checklist](RELEASE_CHECKLIST.md) document.
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
These usually work better:
|
|
221
|
-
|
|
222
|
-
- `Search for auth-related code, inspect the most relevant files, then summarize the login flow.`
|
|
223
|
-
- `Locate where shell.default takes effect and point me to the key files.`
|
|
224
|
-
- `Update the README so English is first, but keep a Chinese section below.`
|
|
225
|
-
- `Investigate why run_command keeps failing. Check config first, then the execution chain.`
|
|
226
|
-
|
|
227
|
-
These are usually weaker:
|
|
228
|
-
|
|
229
|
-
- `Look at this project.`
|
|
230
|
-
- `Optimize this.`
|
|
231
|
-
|
|
232
|
-
Better prompts usually specify:
|
|
233
|
-
- what to search
|
|
234
|
-
- what to inspect
|
|
235
|
-
- what output format you want back
|
|
236
|
-
|
|
237
|
-
## TUI Keys
|
|
238
|
-
|
|
239
|
-
- `Tab`: autocomplete slash commands
|
|
240
|
-
- `Up/Down`: navigate input history
|
|
241
|
-
- `Ctrl+T`: expand or collapse tool details
|
|
242
|
-
- `Ctrl+C`: exit
|
|
1
|
+
# Operations Guide
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
This document is the day-to-day operator guide for Codemini CLI.
|
|
6
|
+
|
|
7
|
+
Use it for:
|
|
8
|
+
- common commands
|
|
9
|
+
- interactive chat workflow
|
|
10
|
+
- plan/spec flow
|
|
11
|
+
- session recovery
|
|
12
|
+
- troubleshooting combos
|
|
13
|
+
|
|
14
|
+
Use [deployment.md](/mnt/e/Git%20Projects/qurio-coder/deployment.md) for packaging, installation, and deployment instead.
|
|
15
|
+
|
|
16
|
+
## Core Commands
|
|
17
|
+
|
|
18
|
+
```text
|
|
19
|
+
codemini [prompt]
|
|
20
|
+
codemini chat [prompt]
|
|
21
|
+
codemini run <task>
|
|
22
|
+
codemini config set|get|list <key> [value]
|
|
23
|
+
codemini doctor
|
|
24
|
+
codemini skill list|install|enable|disable|inspect|reindex
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## First-Time Setup
|
|
28
|
+
|
|
29
|
+
### Windows / PowerShell
|
|
30
|
+
|
|
31
|
+
```powershell
|
|
32
|
+
codemini config set gateway.base_url https://your-internal-gateway/v1
|
|
33
|
+
codemini config set gateway.api_key your_token
|
|
34
|
+
codemini config set model.name your_model_id
|
|
35
|
+
codemini config set shell.default powershell
|
|
36
|
+
codemini config set ui.language en
|
|
37
|
+
codemini doctor
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### macOS / Linux
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
codemini config set gateway.base_url https://your-internal-gateway/v1
|
|
44
|
+
codemini config set gateway.api_key your_token
|
|
45
|
+
codemini config set model.name your_model_id
|
|
46
|
+
codemini config set shell.default bash
|
|
47
|
+
codemini config set ui.language en
|
|
48
|
+
codemini doctor
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Common Command Combos
|
|
52
|
+
|
|
53
|
+
### Start an interactive session
|
|
54
|
+
|
|
55
|
+
```powershell
|
|
56
|
+
codemini
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Good first prompts:
|
|
60
|
+
|
|
61
|
+
```text
|
|
62
|
+
Read the README and summarize what this repository does.
|
|
63
|
+
Search for auth-related code and show me the key entrypoints.
|
|
64
|
+
Locate where shell.default is applied and explain the flow.
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Run a one-off task
|
|
68
|
+
|
|
69
|
+
```powershell
|
|
70
|
+
codemini run "Search the repo for configuration loading logic, inspect the relevant files, and summarize how config is merged."
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Inspect current configuration
|
|
74
|
+
|
|
75
|
+
```powershell
|
|
76
|
+
codemini config get shell.default
|
|
77
|
+
codemini config get model.name
|
|
78
|
+
codemini config get ui.language
|
|
79
|
+
codemini config list
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Change runtime mode quickly
|
|
83
|
+
|
|
84
|
+
```powershell
|
|
85
|
+
codemini config set shell.default powershell
|
|
86
|
+
codemini config set ui.language en
|
|
87
|
+
codemini config set soul.preset professional
|
|
88
|
+
codemini config set soul.preset pirate
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
codemini config set shell.default bash
|
|
93
|
+
codemini config set ui.language zh
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Run diagnostics
|
|
97
|
+
|
|
98
|
+
```powershell
|
|
99
|
+
codemini doctor
|
|
100
|
+
codemini config list
|
|
101
|
+
codemini --plain
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Use this when you want to separate:
|
|
105
|
+
- gateway issues
|
|
106
|
+
- config issues
|
|
107
|
+
- TUI-only issues
|
|
108
|
+
|
|
109
|
+
## TUI Slash Commands
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
/help
|
|
113
|
+
/commands
|
|
114
|
+
/brainstorm <question>
|
|
115
|
+
/config list
|
|
116
|
+
/config get <key>
|
|
117
|
+
/history list
|
|
118
|
+
/history current
|
|
119
|
+
/history resume <session_id>
|
|
120
|
+
/spec <topic>
|
|
121
|
+
/plan <goal>
|
|
122
|
+
/plan auto <goal>
|
|
123
|
+
/yes
|
|
124
|
+
/edit <feedback>
|
|
125
|
+
/reject
|
|
126
|
+
/plan from-spec <path?>
|
|
127
|
+
/agents list
|
|
128
|
+
/agents run <role> <task>
|
|
129
|
+
/compact
|
|
130
|
+
/retry
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Note:
|
|
134
|
+
- The old manual `/tasks` board has been removed.
|
|
135
|
+
- For complex single-task work, the assistant now maintains an internal session todo checklist automatically and shows it in the TUI.
|
|
136
|
+
- `/plan auto run` is deprecated. Use `/plan auto <goal>` then `/yes`, `/edit <feedback>`, or `/reject`.
|
|
137
|
+
|
|
138
|
+
Available sub-agent roles:
|
|
139
|
+
|
|
140
|
+
```text
|
|
141
|
+
planner
|
|
142
|
+
coder
|
|
143
|
+
reviewer
|
|
144
|
+
tester
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## Useful Workflows
|
|
148
|
+
|
|
149
|
+
### Repo exploration
|
|
150
|
+
|
|
151
|
+
```text
|
|
152
|
+
Search the README for skill-related documentation.
|
|
153
|
+
Continue into the relevant files and explain how skill loading works.
|
|
154
|
+
Find where shell.default is used and summarize the config path.
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Brainstorm before coding
|
|
158
|
+
|
|
159
|
+
```text
|
|
160
|
+
/brainstorm Should login retry stay local or become a shared helper?
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Use this when the implementation path is still fuzzy and you want the CLI to compare a few approaches before any code change.
|
|
164
|
+
|
|
165
|
+
### Spec and plan flow
|
|
166
|
+
|
|
167
|
+
```text
|
|
168
|
+
/spec Write a Windows PowerShell-first coding CLI usage spec
|
|
169
|
+
/plan from-spec
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Then continue with:
|
|
173
|
+
|
|
174
|
+
```text
|
|
175
|
+
Execute this plan step by step.
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
For auto plan approval flow:
|
|
179
|
+
|
|
180
|
+
```text
|
|
181
|
+
/plan auto <goal>
|
|
182
|
+
/yes
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
or revise/discard before execution:
|
|
186
|
+
|
|
187
|
+
```text
|
|
188
|
+
/edit <feedback>
|
|
189
|
+
/reject
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Session recovery
|
|
193
|
+
|
|
194
|
+
```text
|
|
195
|
+
/history list
|
|
196
|
+
/history current
|
|
197
|
+
/history resume <session_id>
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### Skill management
|
|
201
|
+
|
|
202
|
+
```powershell
|
|
203
|
+
codemini skill list
|
|
204
|
+
codemini skill inspect superpowers-lite
|
|
205
|
+
codemini skill install .\my-skill
|
|
206
|
+
codemini skill install --scope=global .\my-skill
|
|
207
|
+
codemini skill enable my-skill
|
|
208
|
+
codemini skill disable my-skill
|
|
209
|
+
codemini skill reindex
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## Better Prompt Patterns
|
|
213
|
+
## Release Management
|
|
214
|
+
|
|
215
|
+
### Release Checklist
|
|
216
|
+
|
|
217
|
+
For information on how to perform a release, please see the [Release Checklist](RELEASE_CHECKLIST.md) document.
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
These usually work better:
|
|
221
|
+
|
|
222
|
+
- `Search for auth-related code, inspect the most relevant files, then summarize the login flow.`
|
|
223
|
+
- `Locate where shell.default takes effect and point me to the key files.`
|
|
224
|
+
- `Update the README so English is first, but keep a Chinese section below.`
|
|
225
|
+
- `Investigate why run_command keeps failing. Check config first, then the execution chain.`
|
|
226
|
+
|
|
227
|
+
These are usually weaker:
|
|
228
|
+
|
|
229
|
+
- `Look at this project.`
|
|
230
|
+
- `Optimize this.`
|
|
231
|
+
|
|
232
|
+
Better prompts usually specify:
|
|
233
|
+
- what to search
|
|
234
|
+
- what to inspect
|
|
235
|
+
- what output format you want back
|
|
236
|
+
|
|
237
|
+
## TUI Keys
|
|
238
|
+
|
|
239
|
+
- `Tab`: autocomplete slash commands
|
|
240
|
+
- `Up/Down`: navigate input history
|
|
241
|
+
- `Ctrl+T`: expand or collapse tool details
|
|
242
|
+
- `Ctrl+C`: exit
|