codemini-cli 0.5.10 → 0.5.12
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-B-G99D0A.js} +1 -1
- package/codemini-web/dist/assets/{index-BK75hMb2.js → index-DIGUEzan.js} +108 -108
- package/codemini-web/dist/assets/index-Dkq1DdDX.css +2 -0
- package/codemini-web/dist/assets/mermaid-GHXKKRXX-va2Kl89u.js +1 -0
- package/codemini-web/dist/index.html +35 -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 +2 -2
- 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 +286 -285
- 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 +5173 -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
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { makeBlocked } from '../common.js';
|
|
2
|
-
|
|
3
|
-
export function isCodeGenerationActivityName(name) {
|
|
4
|
-
return String(name || '').trim() === 'Code generation';
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export function describeMiscToolActivity(copy, parsed, rawName, { done = false, blocked = false } = {}) {
|
|
8
|
-
if (isCodeGenerationActivityName(rawName)) {
|
|
9
|
-
if (blocked) return `${copy.toolActivity.blocked}: code generation`;
|
|
10
|
-
return done ? copy.toolActivity.doneCodeGeneration : copy.toolActivity.doingCodeGeneration;
|
|
11
|
-
}
|
|
12
|
-
if (parsed.base === 'update_todos') {
|
|
13
|
-
return blocked ? makeBlocked(copy, 'update_todos') : done ? copy.toolActivity.doneUpdateTodos : copy.toolActivity.doingUpdateTodos;
|
|
14
|
-
}
|
|
15
|
-
if (parsed.base === 'web_fetch') {
|
|
16
|
-
const target = parsed.target || parsed.raw;
|
|
17
|
-
const label = done
|
|
18
|
-
? (copy.toolActivity.doneWebFetch || copy.toolActivity.doneGeneric)
|
|
19
|
-
: (copy.toolActivity.doingWebFetch || copy.toolActivity.doingGeneric);
|
|
20
|
-
return blocked ? makeBlocked(copy, target) : `${label}: ${target}`;
|
|
21
|
-
}
|
|
22
|
-
if (parsed.base === 'web_search') {
|
|
23
|
-
const target = parsed.target || parsed.raw;
|
|
24
|
-
const label = done
|
|
25
|
-
? (copy.toolActivity.doneWebSearch || copy.toolActivity.doneGeneric)
|
|
26
|
-
: (copy.toolActivity.doingWebSearch || copy.toolActivity.doingGeneric);
|
|
27
|
-
return blocked ? makeBlocked(copy, target) : `${label}: ${target}`;
|
|
28
|
-
}
|
|
29
|
-
return blocked ? `${copy.toolActivity.blocked}: ${parsed.raw}` : done ? `${copy.toolActivity.doneGeneric}: ${parsed.raw}` : `${copy.toolActivity.doingGeneric}: ${parsed.raw}`;
|
|
30
|
-
}
|
|
1
|
+
import { makeBlocked } from '../common.js';
|
|
2
|
+
|
|
3
|
+
export function isCodeGenerationActivityName(name) {
|
|
4
|
+
return String(name || '').trim() === 'Code generation';
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function describeMiscToolActivity(copy, parsed, rawName, { done = false, blocked = false } = {}) {
|
|
8
|
+
if (isCodeGenerationActivityName(rawName)) {
|
|
9
|
+
if (blocked) return `${copy.toolActivity.blocked}: code generation`;
|
|
10
|
+
return done ? copy.toolActivity.doneCodeGeneration : copy.toolActivity.doingCodeGeneration;
|
|
11
|
+
}
|
|
12
|
+
if (parsed.base === 'update_todos') {
|
|
13
|
+
return blocked ? makeBlocked(copy, 'update_todos') : done ? copy.toolActivity.doneUpdateTodos : copy.toolActivity.doingUpdateTodos;
|
|
14
|
+
}
|
|
15
|
+
if (parsed.base === 'web_fetch') {
|
|
16
|
+
const target = parsed.target || parsed.raw;
|
|
17
|
+
const label = done
|
|
18
|
+
? (copy.toolActivity.doneWebFetch || copy.toolActivity.doneGeneric)
|
|
19
|
+
: (copy.toolActivity.doingWebFetch || copy.toolActivity.doingGeneric);
|
|
20
|
+
return blocked ? makeBlocked(copy, target) : `${label}: ${target}`;
|
|
21
|
+
}
|
|
22
|
+
if (parsed.base === 'web_search') {
|
|
23
|
+
const target = parsed.target || parsed.raw;
|
|
24
|
+
const label = done
|
|
25
|
+
? (copy.toolActivity.doneWebSearch || copy.toolActivity.doneGeneric)
|
|
26
|
+
: (copy.toolActivity.doingWebSearch || copy.toolActivity.doingGeneric);
|
|
27
|
+
return blocked ? makeBlocked(copy, target) : `${label}: ${target}`;
|
|
28
|
+
}
|
|
29
|
+
return blocked ? `${copy.toolActivity.blocked}: ${parsed.raw}` : done ? `${copy.toolActivity.doneGeneric}: ${parsed.raw}` : `${copy.toolActivity.doingGeneric}: ${parsed.raw}`;
|
|
30
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { makeBlocked, trimText } from '../common.js';
|
|
2
|
-
|
|
3
|
-
export function describeSystemToolActivity(copy, parsed, { done = false, blocked = false } = {}) {
|
|
4
|
-
if (parsed.base === 'project_index') {
|
|
5
|
-
if (blocked) return `${copy.toolActivity.blocked}: ${copy.toolActivity.doingProjectIndex}`;
|
|
6
|
-
return done ? copy.toolActivity.doneProjectIndex : copy.toolActivity.doingProjectIndex;
|
|
7
|
-
}
|
|
8
|
-
if (parsed.base === 'file_index') {
|
|
9
|
-
const safeTarget = trimText(parsed.target || '.codemini/file-index.json', 72);
|
|
10
|
-
if (blocked) return makeBlocked(copy, safeTarget);
|
|
11
|
-
return done ? `${copy.toolActivity.doneFileIndex}: ${safeTarget}` : `${copy.toolActivity.doingFileIndex}: ${safeTarget}`;
|
|
12
|
-
}
|
|
13
|
-
if (parsed.base === 'prompt_budget') {
|
|
14
|
-
if (blocked) return makeBlocked(copy, 'prompt_budget');
|
|
15
|
-
return done
|
|
16
|
-
? (copy.toolActivity.donePromptBudget || 'Prompt budget measured')
|
|
17
|
-
: (copy.toolActivity.doingPromptBudget || 'Measuring prompt budget');
|
|
18
|
-
}
|
|
19
|
-
return '';
|
|
20
|
-
}
|
|
1
|
+
import { makeBlocked, trimText } from '../common.js';
|
|
2
|
+
|
|
3
|
+
export function describeSystemToolActivity(copy, parsed, { done = false, blocked = false } = {}) {
|
|
4
|
+
if (parsed.base === 'project_index') {
|
|
5
|
+
if (blocked) return `${copy.toolActivity.blocked}: ${copy.toolActivity.doingProjectIndex}`;
|
|
6
|
+
return done ? copy.toolActivity.doneProjectIndex : copy.toolActivity.doingProjectIndex;
|
|
7
|
+
}
|
|
8
|
+
if (parsed.base === 'file_index') {
|
|
9
|
+
const safeTarget = trimText(parsed.target || '.codemini/file-index.json', 72);
|
|
10
|
+
if (blocked) return makeBlocked(copy, safeTarget);
|
|
11
|
+
return done ? `${copy.toolActivity.doneFileIndex}: ${safeTarget}` : `${copy.toolActivity.doingFileIndex}: ${safeTarget}`;
|
|
12
|
+
}
|
|
13
|
+
if (parsed.base === 'prompt_budget') {
|
|
14
|
+
if (blocked) return makeBlocked(copy, 'prompt_budget');
|
|
15
|
+
return done
|
|
16
|
+
? (copy.toolActivity.donePromptBudget || 'Prompt budget measured')
|
|
17
|
+
: (copy.toolActivity.doingPromptBudget || 'Measuring prompt budget');
|
|
18
|
+
}
|
|
19
|
+
return '';
|
|
20
|
+
}
|