@hmharness/cli 0.18.4 → 0.18.5
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/dist/main.js +6 -0
- package/dist/tui.js +10 -1
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -155,6 +155,12 @@ async function repl(yes, initialHistory, initialSessionId) {
|
|
|
155
155
|
if (line === '/yolo' || line === '/yolo on' || line === '/yolo off') {
|
|
156
156
|
const turnOn = line === '/yolo' ? !autoApprove : line === '/yolo on';
|
|
157
157
|
autoApprove = turnOn;
|
|
158
|
+
// 2026-09-25: live effect + persistent default (same as the TUI)
|
|
159
|
+
(await import('@hmharness/agent')).liveYolo.on = turnOn;
|
|
160
|
+
try {
|
|
161
|
+
cfg = await (await import('@hmharness/kernel')).patchConfig({ approval: turnOn ? 'auto' : 'ask' });
|
|
162
|
+
}
|
|
163
|
+
catch { /* runtime only */ }
|
|
158
164
|
stdout.write((turnOn ? YELLOW(t.yoloOn) : DIM(t.yoloOff)) + '\n');
|
|
159
165
|
continue;
|
|
160
166
|
}
|
package/dist/tui.js
CHANGED
|
@@ -2552,8 +2552,17 @@ export async function tui(yes, noWeb = false, opts = {}) {
|
|
|
2552
2552
|
if (line === '/yolo' || line === '/yolo on' || line === '/yolo off') {
|
|
2553
2553
|
const turnOn = line === '/yolo' ? !autoApprove : line === '/yolo on';
|
|
2554
2554
|
autoApprove = turnOn;
|
|
2555
|
+
// 2026-09-25 user request: LIVE effect (the running task's next
|
|
2556
|
+
// approval ask consults this) + PERSISTENT (one toggle = the standing
|
|
2557
|
+
// default; survives restarts via config)
|
|
2558
|
+
(await import('@hmharness/agent')).liveYolo.on = turnOn;
|
|
2559
|
+
try {
|
|
2560
|
+
const { patchConfig } = await import('@hmharness/kernel');
|
|
2561
|
+
cfg = await patchConfig({ approval: turnOn ? 'auto' : 'ask' });
|
|
2562
|
+
}
|
|
2563
|
+
catch { /* runtime toggles still applied */ }
|
|
2555
2564
|
rt.setModeTag(turnOn ? '🔥' : '');
|
|
2556
|
-
rt.addText(turnOn ? t.yoloOn : t.yoloOff
|
|
2565
|
+
rt.addText((turnOn ? t.yoloOn : t.yoloOff) + (turnOn ? '' : ''), 'plain');
|
|
2557
2566
|
return;
|
|
2558
2567
|
}
|
|
2559
2568
|
if (line === '/lang' || line.startsWith('/lang ')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmharness/cli",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.5",
|
|
4
4
|
"description": "hmharness command line: one-shot tasks, an interactive REPL, a fullscreen TUI, the web frontend, and direct tool invocation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@hmharness/evolution": "0.14.25",
|
|
49
49
|
"@hmharness/domain-harmony": "0.13.8",
|
|
50
50
|
"@hmharness/domain-ops": "0.8.3",
|
|
51
|
-
"@hmharness/agent": "0.14.
|
|
51
|
+
"@hmharness/agent": "0.14.20",
|
|
52
52
|
"@hmharness/evaluation": "0.8.6",
|
|
53
|
-
"@hmharness/web": "0.9.
|
|
53
|
+
"@hmharness/web": "0.9.7",
|
|
54
54
|
"@hmharness/sandbox": "0.8.5"
|
|
55
55
|
}
|
|
56
56
|
}
|