@hmharness/cli 0.23.38 → 0.23.40
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/board/install-kaihongos.cjs +3 -3
- package/dist/tui-mouse.d.ts +18 -14
- package/dist/tui-mouse.js +51 -29
- package/dist/tui.d.ts +43 -1
- package/dist/tui.js +268 -10
- package/package.json +15 -15
- package/release-notes.json +137 -127
|
@@ -63,9 +63,9 @@ let PACKAGES = ['cli', 'web', 'agent', 'kernel', 'sandbox', 'evolution',
|
|
|
63
63
|
// The release bot keeps versions synced; the NAMES must cover the full
|
|
64
64
|
// first-party set so the offline path cannot produce an incomplete tree.
|
|
65
65
|
const FALLBACK_PINS = {
|
|
66
|
-
cli: '0.23.
|
|
67
|
-
sandbox: '0.23.
|
|
68
|
-
evaluation: '0.23.
|
|
66
|
+
cli: '0.23.40', web: '0.23.40', agent: '0.23.40', kernel: '0.23.40',
|
|
67
|
+
sandbox: '0.23.40', evolution: '0.23.40', 'domain-ops': '0.23.40',
|
|
68
|
+
evaluation: '0.23.40', observability: '0.23.40', 'domain-harmony': '0.23.40',
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
// ---------- helpers ---------------------------------------------------------
|
package/dist/tui-mouse.d.ts
CHANGED
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @hmharness/cli - tui-mouse (2026-10-22
|
|
2
|
+
* @hmharness/cli - tui-mouse (2026-10-22; press-consumption fix 2026-10-24)
|
|
3
3
|
*
|
|
4
4
|
* SGR mouse tracking (DECSET 1000+1002+1006): the terminal reports
|
|
5
|
-
* ESC[<button;col;
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* ESC[<button;col;rowM (press) / m (release). A LEFT-BUTTON RELEASE without
|
|
6
|
+
* drag is a click (dsh-TUI's contract). CRITICAL LESSON (v0.23.38 shipped a
|
|
7
|
+
* dead click path): a click is reported as TWO sequences - press then
|
|
8
|
+
* release. The press sequence MUST be consumed too; letting it fall through
|
|
9
|
+
* to key handling made the leading ESC close the palette, so every click
|
|
10
|
+
* behaved like Esc and clicks "didn't work". parseMouse therefore returns
|
|
11
|
+
* kind:'ignore' for consumed-but-not-click reports (press, drag, non-left
|
|
12
|
+
* buttons) - NEVER null for a complete mouse report.
|
|
9
13
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* start of every frame, so the registry is always one frame fresh.
|
|
14
|
+
* X10 fallback (mode 1000 terminals without SGR): ESC[M + 3 raw bytes.
|
|
15
|
+
* X10 has no per-button release; a left PRESS is treated as the click.
|
|
13
16
|
*/
|
|
14
|
-
/** Enable
|
|
17
|
+
/** Enable mouse tracking: 1000 (press/release/wheel) + 1002 (drag) + 1006 (SGR). */
|
|
15
18
|
export declare const ENABLE_MOUSE = "\u001B[?1000h\u001B[?1002h\u001B[?1006h";
|
|
16
19
|
/** Disable all mouse tracking modes. */
|
|
17
20
|
export declare const DISABLE_MOUSE = "\u001B[?1006l\u001B[?1002l\u001B[?1000l";
|
|
18
21
|
export interface ParsedMouse {
|
|
19
|
-
kind: 'click' | 'wheel';
|
|
22
|
+
kind: 'click' | 'wheel' | 'ignore';
|
|
20
23
|
col: number;
|
|
21
24
|
row: number;
|
|
22
25
|
wheelUp: boolean;
|
|
23
26
|
}
|
|
24
27
|
/**
|
|
25
|
-
* Try to parse
|
|
26
|
-
* Returns [event, rest-of-chunk] or null
|
|
27
|
-
*
|
|
28
|
-
*
|
|
28
|
+
* Try to parse ONE mouse sequence from the head of the chunk.
|
|
29
|
+
* Returns [event, rest-of-chunk] or null when the chunk does not START with
|
|
30
|
+
* a complete mouse report. Complete-but-uninteresting reports (press, drag,
|
|
31
|
+
* non-left buttons) return kind:'ignore' so the caller consumes them -
|
|
32
|
+
* returning null for those is how v0.23.38 broke clicks.
|
|
29
33
|
*/
|
|
30
34
|
export declare function parseMouse(chunk: string): [ParsedMouse, string] | null;
|
|
31
35
|
/** True if the chunk LOOKS like the start of a mouse report (may be partial). */
|
package/dist/tui-mouse.js
CHANGED
|
@@ -1,52 +1,74 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @hmharness/cli - tui-mouse (2026-10-22
|
|
2
|
+
* @hmharness/cli - tui-mouse (2026-10-22; press-consumption fix 2026-10-24)
|
|
3
3
|
*
|
|
4
4
|
* SGR mouse tracking (DECSET 1000+1002+1006): the terminal reports
|
|
5
|
-
* ESC[<button;col;
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* ESC[<button;col;rowM (press) / m (release). A LEFT-BUTTON RELEASE without
|
|
6
|
+
* drag is a click (dsh-TUI's contract). CRITICAL LESSON (v0.23.38 shipped a
|
|
7
|
+
* dead click path): a click is reported as TWO sequences - press then
|
|
8
|
+
* release. The press sequence MUST be consumed too; letting it fall through
|
|
9
|
+
* to key handling made the leading ESC close the palette, so every click
|
|
10
|
+
* behaved like Esc and clicks "didn't work". parseMouse therefore returns
|
|
11
|
+
* kind:'ignore' for consumed-but-not-click reports (press, drag, non-left
|
|
12
|
+
* buttons) - NEVER null for a complete mouse report.
|
|
9
13
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* start of every frame, so the registry is always one frame fresh.
|
|
14
|
+
* X10 fallback (mode 1000 terminals without SGR): ESC[M + 3 raw bytes.
|
|
15
|
+
* X10 has no per-button release; a left PRESS is treated as the click.
|
|
13
16
|
*/
|
|
14
|
-
/** Enable
|
|
17
|
+
/** Enable mouse tracking: 1000 (press/release/wheel) + 1002 (drag) + 1006 (SGR). */
|
|
15
18
|
export const ENABLE_MOUSE = '\x1b[?1000h\x1b[?1002h\x1b[?1006h';
|
|
16
19
|
/** Disable all mouse tracking modes. */
|
|
17
20
|
export const DISABLE_MOUSE = '\x1b[?1006l\x1b[?1002l\x1b[?1000l';
|
|
18
21
|
/** SGR mouse report: ESC[<btn;col;rowM (press) / m (release). */
|
|
19
22
|
const SGR_MOUSE_RE = /^\x1b\[<(\d+);(\d+);(\d+)([Mm])/;
|
|
20
23
|
/**
|
|
21
|
-
* Try to parse
|
|
22
|
-
* Returns [event, rest-of-chunk] or null
|
|
23
|
-
*
|
|
24
|
-
*
|
|
24
|
+
* Try to parse ONE mouse sequence from the head of the chunk.
|
|
25
|
+
* Returns [event, rest-of-chunk] or null when the chunk does not START with
|
|
26
|
+
* a complete mouse report. Complete-but-uninteresting reports (press, drag,
|
|
27
|
+
* non-left buttons) return kind:'ignore' so the caller consumes them -
|
|
28
|
+
* returning null for those is how v0.23.38 broke clicks.
|
|
25
29
|
*/
|
|
26
30
|
export function parseMouse(chunk) {
|
|
27
31
|
const m = SGR_MOUSE_RE.exec(chunk);
|
|
28
|
-
if (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
if (m) {
|
|
33
|
+
const button = parseInt(m[1], 10);
|
|
34
|
+
const col = parseInt(m[2], 10) - 1; // SGR is 1-indexed, we 0-index
|
|
35
|
+
const row = parseInt(m[3], 10) - 1;
|
|
36
|
+
const isRelease = m[4] === 'm';
|
|
37
|
+
const rest = chunk.slice(m[0].length);
|
|
38
|
+
// wheel: button bit 6 set; low bits 0=up 1=down
|
|
39
|
+
if ((button & 0x40) !== 0) {
|
|
40
|
+
return [{ kind: 'wheel', col, row, wheelUp: (button & 0x01) === 0 }, rest];
|
|
41
|
+
}
|
|
42
|
+
// left button (low bits 0) RELEASE = click
|
|
43
|
+
if ((button & 0x03) === 0 && isRelease) {
|
|
44
|
+
return [{ kind: 'click', col, row, wheelUp: false }, rest];
|
|
45
|
+
}
|
|
46
|
+
// press / drag-motion / right / middle: consumed, no event
|
|
47
|
+
return [{ kind: 'ignore', col, row, wheelUp: false }, rest];
|
|
38
48
|
}
|
|
39
|
-
//
|
|
40
|
-
if ((
|
|
41
|
-
|
|
49
|
+
// X10 legacy report: ESC[M + Cb/Cx/Cy raw bytes (each +32)
|
|
50
|
+
if (chunk.startsWith('\x1b[M') && chunk.length >= 6) {
|
|
51
|
+
const button = chunk.charCodeAt(3) - 32;
|
|
52
|
+
const col = chunk.charCodeAt(4) - 32 - 1; // X10 coords are 1-indexed like SGR
|
|
53
|
+
const row = chunk.charCodeAt(5) - 32 - 1;
|
|
54
|
+
const rest = chunk.slice(6);
|
|
55
|
+
if ((button & 0x40) !== 0) {
|
|
56
|
+
return [{ kind: 'wheel', col, row, wheelUp: (button & 0x01) === 0 }, rest];
|
|
57
|
+
}
|
|
58
|
+
// X10 cannot say WHICH button released; a left PRESS is the best click
|
|
59
|
+
// signal available (drag pairs would double-fire, motion bit excludes)
|
|
60
|
+
if ((button & 0x20) === 0 && (button & 0x03) === 0) {
|
|
61
|
+
return [{ kind: 'click', col, row, wheelUp: false }, rest];
|
|
62
|
+
}
|
|
63
|
+
return [{ kind: 'ignore', col, row, wheelUp: false }, rest];
|
|
42
64
|
}
|
|
43
|
-
// press events, right/middle button, drag-motion: consumed silently
|
|
44
65
|
return null;
|
|
45
66
|
}
|
|
46
67
|
/** True if the chunk LOOKS like the start of a mouse report (may be partial). */
|
|
47
68
|
export function isMousePrefix(chunk) {
|
|
48
|
-
|
|
49
|
-
|
|
69
|
+
return /^\x1b\[<\d+(?:;\d*){0,2}[Mm]?/.test(chunk)
|
|
70
|
+
|| /^\x1b\[<\d*$/.test(chunk)
|
|
71
|
+
|| chunk === '\x1b[M'.slice(0, chunk.length) && chunk.length >= 2; // partial X10 head
|
|
50
72
|
}
|
|
51
73
|
let regions = [];
|
|
52
74
|
let zCounter = 0;
|
package/dist/tui.d.ts
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import { type SessionSummary } from '@hmharness/kernel';
|
|
1
|
+
import { type HmhConfig, type SessionSummary } from '@hmharness/kernel';
|
|
2
2
|
import { type Locale } from '@hmharness/agent';
|
|
3
3
|
interface Entry {
|
|
4
4
|
lines: string[];
|
|
5
5
|
}
|
|
6
6
|
/** desc keys index into Strings (agent i18n); matched by name at runtime. */
|
|
7
|
+
/** a provider row in the /config modal list */
|
|
8
|
+
export type ConfigProviderRow = {
|
|
9
|
+
name: string;
|
|
10
|
+
model: string;
|
|
11
|
+
baseUrl: string;
|
|
12
|
+
purposes: string;
|
|
13
|
+
};
|
|
14
|
+
/** Build the /config provider table from config: purposes from routing
|
|
15
|
+
* (chat/vision/evolve/bench/judge). Pure — unit-testable. */
|
|
16
|
+
export declare function configProviderRows(cfg: HmhConfig): ConfigProviderRow[];
|
|
7
17
|
export declare const COMMANDS: Array<{
|
|
8
18
|
name: string;
|
|
9
19
|
key: string;
|
|
@@ -165,6 +175,27 @@ export declare class TuiRuntime {
|
|
|
165
175
|
* the codex alt-screen picker contract. resolve fires on Enter (resume)
|
|
166
176
|
* or Esc/Ctrl-C (close). */
|
|
167
177
|
private resumeModal;
|
|
178
|
+
private configListRows;
|
|
179
|
+
private configModal;
|
|
180
|
+
private saveProviderCb;
|
|
181
|
+
/** Driver wires the real save (kernel saveProvider) + list refresh here. */
|
|
182
|
+
onSaveProvider(fn: NonNullable<TuiRuntime['saveProviderCb']>): void;
|
|
183
|
+
/** Open the modal with a provider snapshot (driver loads it). */
|
|
184
|
+
openConfigModal(rows: ConfigProviderRow[]): void;
|
|
185
|
+
/** Headless-test probe: modal shape for assertions. */
|
|
186
|
+
configProbe(): {
|
|
187
|
+
open: boolean;
|
|
188
|
+
mode: string;
|
|
189
|
+
rows: string[];
|
|
190
|
+
sel: number;
|
|
191
|
+
fields?: Array<{
|
|
192
|
+
label: string;
|
|
193
|
+
value: string;
|
|
194
|
+
masked: boolean;
|
|
195
|
+
}>;
|
|
196
|
+
fi?: number;
|
|
197
|
+
note: string;
|
|
198
|
+
};
|
|
168
199
|
openResumePicker(): Promise<{
|
|
169
200
|
kind: 'resume';
|
|
170
201
|
row: SessionSummary;
|
|
@@ -178,6 +209,17 @@ export declare class TuiRuntime {
|
|
|
178
209
|
/** Full-frame picker layout (codex draw_picker): title / search+toolbar /
|
|
179
210
|
* list window / two hint lines / position footer. */
|
|
180
211
|
private renderResumePicker;
|
|
212
|
+
/** Full-frame provider editor: list view (click/Enter a row to edit) or
|
|
213
|
+
* form view (fields, key masked, blank key = keep stored). Mouse clicks
|
|
214
|
+
* dispatch through the shared region registry like every other modal. */
|
|
215
|
+
private renderConfigModal;
|
|
216
|
+
/** Open the edit form for row gi (-1 = new provider). Keeps a snapshot of
|
|
217
|
+
* the list for the back button (refreshed again after every save). */
|
|
218
|
+
private openConfigForm;
|
|
219
|
+
/** Validate + persist the form via the driver-wired save callback. */
|
|
220
|
+
private saveConfigForm;
|
|
221
|
+
/** Keyboard input for the config modal (modal owns every event). */
|
|
222
|
+
private configInput;
|
|
181
223
|
/** Ctrl+R history-search modal (B4): query line + matching entries,
|
|
182
224
|
* newest first; Enter adopts, Esc closes, ^P/^N or arrows move. */
|
|
183
225
|
private renderHistSearch;
|
package/dist/tui.js
CHANGED
|
@@ -14,7 +14,7 @@ import { stdin, stdout } from 'node:process';
|
|
|
14
14
|
import { basename } from 'node:path';
|
|
15
15
|
import { createRequire } from 'node:module';
|
|
16
16
|
import { parseMouse, isMousePrefix, dispatchClick, clearRegions, addClickRegion } from "./tui-mouse.js";
|
|
17
|
-
import { loadConfig, homeDir, resolveProvider, listProviders, setChatRoute, setLocale, PROVIDER_PRESETS, addProviders, detectLocalProviders, latestSession, listSessions, loadTranscript, transcriptChars, compactMessages, adaptiveContextChars, getGoal, setGoal, clearGoal, isProviderAuthError } from '@hmharness/kernel';
|
|
17
|
+
import { loadConfig, homeDir, resolveProvider, listProviders, saveProvider, setChatRoute, setLocale, PROVIDER_PRESETS, addProviders, detectLocalProviders, latestSession, listSessions, loadTranscript, transcriptChars, compactMessages, adaptiveContextChars, getGoal, setGoal, clearGoal, isProviderAuthError } from '@hmharness/kernel';
|
|
18
18
|
import { listDrafts, listSkills, runBench, runEvolution } from '@hmharness/evolution';
|
|
19
19
|
import { buildRegistry, runAgentTask, strings } from '@hmharness/agent';
|
|
20
20
|
import { ensureWebDaemon, DEFAULT_WEB_PORT } from "./web-daemon.js";
|
|
@@ -90,13 +90,31 @@ function truncateTo(s, width) {
|
|
|
90
90
|
}
|
|
91
91
|
return out;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
/** Build the /config provider table from config: purposes from routing
|
|
94
|
+
* (chat/vision/evolve/bench/judge). Pure — unit-testable. */
|
|
95
|
+
export function configProviderRows(cfg) {
|
|
96
|
+
const purposesOf = (name) => {
|
|
97
|
+
const r = cfg.routing ?? {};
|
|
98
|
+
const tags = [];
|
|
99
|
+
for (const [purpose, target] of Object.entries(r)) {
|
|
100
|
+
if (target === name)
|
|
101
|
+
tags.push(purpose);
|
|
102
|
+
}
|
|
103
|
+
return tags.join('/');
|
|
104
|
+
};
|
|
105
|
+
const entries = Object.entries(cfg.providers ?? {});
|
|
106
|
+
if (entries.length === 0) {
|
|
107
|
+
const p = cfg.provider;
|
|
108
|
+
return p?.baseUrl ? [{ name: 'default', model: p.model, baseUrl: p.baseUrl, purposes: 'chat' }] : [];
|
|
109
|
+
}
|
|
110
|
+
return entries.map(([name, p]) => ({ name, model: p.model, baseUrl: p.baseUrl, purposes: purposesOf(name) || '—' }));
|
|
111
|
+
}
|
|
95
112
|
export const COMMANDS = [
|
|
96
113
|
{ name: '/help', key: 'cmdHelp' },
|
|
97
114
|
{ name: '/tools', key: 'cmdTools' },
|
|
98
115
|
{ name: '/skills', key: 'cmdSkills' },
|
|
99
116
|
{ name: '/model', key: 'cmdModel' },
|
|
117
|
+
{ name: '/config', key: 'cmdConfig' },
|
|
100
118
|
{ name: '/lang', key: 'cmdLang' },
|
|
101
119
|
{ name: '/yolo', key: 'cmdYolo' },
|
|
102
120
|
{ name: '/providers', key: 'cmdProviders' },
|
|
@@ -408,6 +426,33 @@ export class TuiRuntime {
|
|
|
408
426
|
* the codex alt-screen picker contract. resolve fires on Enter (resume)
|
|
409
427
|
* or Esc/Ctrl-C (close). */
|
|
410
428
|
resumeModal = null;
|
|
429
|
+
/* ---------------- /config: one-stop provider & key editor ---------------- */
|
|
430
|
+
configListRows = [];
|
|
431
|
+
configModal = null;
|
|
432
|
+
saveProviderCb = null;
|
|
433
|
+
/** Driver wires the real save (kernel saveProvider) + list refresh here. */
|
|
434
|
+
onSaveProvider(fn) {
|
|
435
|
+
this.saveProviderCb = fn;
|
|
436
|
+
}
|
|
437
|
+
/** Open the modal with a provider snapshot (driver loads it). */
|
|
438
|
+
openConfigModal(rows) {
|
|
439
|
+
this.configModal = { mode: 'list', sel: 0, rows, note: '', busy: false };
|
|
440
|
+
this.dirty = true;
|
|
441
|
+
}
|
|
442
|
+
/** Headless-test probe: modal shape for assertions. */
|
|
443
|
+
configProbe() {
|
|
444
|
+
const m = this.configModal;
|
|
445
|
+
if (!m)
|
|
446
|
+
return { open: false, mode: '', rows: [], sel: -1, note: '' };
|
|
447
|
+
if (m.mode === 'list')
|
|
448
|
+
return { open: true, mode: 'list', rows: m.rows.map((r) => r.name), sel: m.sel, note: m.note };
|
|
449
|
+
const labels = [this.t.cfgFieldName, this.t.cfgFieldBaseUrl, this.t.cfgFieldModel, this.t.cfgFieldKey];
|
|
450
|
+
const vals = [m.fields.name, m.fields.baseUrl, m.fields.model, m.fields.key];
|
|
451
|
+
return {
|
|
452
|
+
open: true, mode: 'form', rows: [], sel: -1, fi: m.fi, note: m.note,
|
|
453
|
+
fields: labels.map((label, i) => ({ label, value: i === 3 ? '•'.repeat(vals[i].length) : vals[i], masked: i === 3 })),
|
|
454
|
+
};
|
|
455
|
+
}
|
|
411
456
|
openResumePicker() {
|
|
412
457
|
if (this.resumeModal)
|
|
413
458
|
return Promise.resolve(null);
|
|
@@ -515,6 +560,184 @@ export class TuiRuntime {
|
|
|
515
560
|
const posLine = t.pickerPos(pos, vis.length, vis.length ? String(Math.round((pos / vis.length) * 100)) : '0');
|
|
516
561
|
frame.push(' '.repeat(Math.max(0, W - posLine.length - 1)) + DIM(posLine));
|
|
517
562
|
}
|
|
563
|
+
/* ---------------- /config modal: render + input ---------------- */
|
|
564
|
+
/** Full-frame provider editor: list view (click/Enter a row to edit) or
|
|
565
|
+
* form view (fields, key masked, blank key = keep stored). Mouse clicks
|
|
566
|
+
* dispatch through the shared region registry like every other modal. */
|
|
567
|
+
renderConfigModal(frame, W, H) {
|
|
568
|
+
const m = this.configModal;
|
|
569
|
+
const t = this.t;
|
|
570
|
+
const count = ` ${m.mode === 'list' ? String(m.rows.length) : '编辑'} `;
|
|
571
|
+
frame.push(truncateTo(BOLD(' ' + t.cfgTitle) + ' '.repeat(Math.max(1, W - strWidth(t.cfgTitle) - count.length - 1)) + DIM(count), W));
|
|
572
|
+
frame.push(DIM('─'.repeat(W)));
|
|
573
|
+
if (m.mode === 'list') {
|
|
574
|
+
frame.push(DIM(truncateTo(` ${t.cfgFieldName.padEnd(12)}${t.cfgFieldModel.padEnd(16)}${t.cfgFieldBaseUrl.padEnd(30)}${t.cfgColUse}`, W - 1)));
|
|
575
|
+
const rows = m.rows;
|
|
576
|
+
const listH = Math.max(3, H - 6);
|
|
577
|
+
const from = rows.length > listH - 1 ? Math.max(0, Math.min(m.sel - Math.floor((listH - 1) / 2), rows.length - (listH - 1))) : 0;
|
|
578
|
+
for (let i = 0; i < listH - 1 && from + i < rows.length; i++) {
|
|
579
|
+
const gi = from + i;
|
|
580
|
+
const r = rows[gi];
|
|
581
|
+
const sel = gi === m.sel;
|
|
582
|
+
const line = truncateTo(` ${r.name.padEnd(12)}${r.model.slice(0, 15).padEnd(16)}${r.baseUrl.replace(/^https?:\/\//, '').slice(0, 28).padEnd(30)}${r.purposes}`, W - 1);
|
|
583
|
+
frame.push(sel ? '\x1b[7m' + line + ' '.repeat(Math.max(0, W - 1 - strWidth(line))) + '\x1b[27m' : ' ' + line);
|
|
584
|
+
const row = frame.length - 1;
|
|
585
|
+
addClickRegion(row, 0, W - 1, () => { this.openConfigForm(gi); });
|
|
586
|
+
}
|
|
587
|
+
const newLine = ' ' + CYAN(t.cfgNewRow);
|
|
588
|
+
frame.push(m.sel === rows.length ? '\x1b[7m' + newLine + ' '.repeat(Math.max(0, W - 1 - strWidth(newLine))) + '\x1b[27m' : ' ' + newLine);
|
|
589
|
+
addClickRegion(frame.length - 1, 0, W - 1, () => { this.openConfigForm(-1); });
|
|
590
|
+
if (m.note)
|
|
591
|
+
frame.push(m.note.startsWith('✓') ? GREEN(m.note) : RED(truncateTo(m.note, W - 1)));
|
|
592
|
+
frame.push(DIM('─'.repeat(W)));
|
|
593
|
+
frame.push(DIM(truncateTo(' ' + t.cfgListHint, W - 1)));
|
|
594
|
+
return;
|
|
595
|
+
}
|
|
596
|
+
// form view
|
|
597
|
+
const labels = [t.cfgFieldName, t.cfgFieldBaseUrl, t.cfgFieldModel, t.cfgFieldKey];
|
|
598
|
+
const vals = [m.fields.name, m.fields.baseUrl, m.fields.model, m.fields.key];
|
|
599
|
+
for (let i = 0; i < 4; i++) {
|
|
600
|
+
const active = i === m.fi;
|
|
601
|
+
const shown = i === 3 ? '•'.repeat(vals[i].length) : vals[i];
|
|
602
|
+
const caret = active ? '▏' : ' ';
|
|
603
|
+
const body = ` ${labels[i].padEnd(10)}${caret}${shown}`;
|
|
604
|
+
const line = active ? CYAN(truncateTo(body, W - 1)) : DIM(truncateTo(body, W - 1));
|
|
605
|
+
frame.push(line);
|
|
606
|
+
addClickRegion(frame.length - 1, 0, W - 1, () => { if (this.configModal?.mode === 'form') {
|
|
607
|
+
this.configModal.fi = i;
|
|
608
|
+
this.dirty = true;
|
|
609
|
+
} });
|
|
610
|
+
}
|
|
611
|
+
frame.push(DIM(truncateTo(' ' + t.cfgKeyNote, W - 1)));
|
|
612
|
+
if (m.note)
|
|
613
|
+
frame.push(m.note.startsWith('✓') ? GREEN(m.note) : RED(truncateTo(m.note, W - 1)));
|
|
614
|
+
frame.push(DIM('─'.repeat(W)));
|
|
615
|
+
const back = ' ' + DIM(t.cfgBackRow);
|
|
616
|
+
const save = ' ' + GREEN(BOLD(t.cfgSaveRow));
|
|
617
|
+
frame.push(back);
|
|
618
|
+
addClickRegion(frame.length - 1, 0, W - 1, () => { if (this.configModal?.mode === 'form') {
|
|
619
|
+
this.configModal = { mode: 'list', sel: 0, rows: this.configListRows, note: '', busy: false };
|
|
620
|
+
this.dirty = true;
|
|
621
|
+
} });
|
|
622
|
+
frame.push(save);
|
|
623
|
+
addClickRegion(frame.length - 1, 0, W - 1, () => { void this.saveConfigForm(); });
|
|
624
|
+
frame.push(DIM(truncateTo(' ' + t.cfgFormHint, W - 1)));
|
|
625
|
+
}
|
|
626
|
+
/** Open the edit form for row gi (-1 = new provider). Keeps a snapshot of
|
|
627
|
+
* the list for the back button (refreshed again after every save). */
|
|
628
|
+
openConfigForm(gi) {
|
|
629
|
+
const m = this.configModal;
|
|
630
|
+
if (!m || m.mode !== 'list')
|
|
631
|
+
return;
|
|
632
|
+
this.configListRows = m.rows;
|
|
633
|
+
const r = gi >= 0 ? m.rows[gi] : undefined;
|
|
634
|
+
this.configModal = {
|
|
635
|
+
mode: 'form',
|
|
636
|
+
orig: r?.name ?? '',
|
|
637
|
+
fields: { name: r?.name ?? '', baseUrl: r?.baseUrl ?? 'https://', model: r?.model ?? '', key: '' },
|
|
638
|
+
fi: gi >= 0 ? 1 : 0, // editing existing: start at baseUrl (name rarely changes)
|
|
639
|
+
note: '',
|
|
640
|
+
busy: false,
|
|
641
|
+
};
|
|
642
|
+
this.dirty = true;
|
|
643
|
+
}
|
|
644
|
+
/** Validate + persist the form via the driver-wired save callback. */
|
|
645
|
+
async saveConfigForm() {
|
|
646
|
+
const m = this.configModal;
|
|
647
|
+
if (!m || m.mode !== 'form' || m.busy)
|
|
648
|
+
return;
|
|
649
|
+
if (!m.fields.name.trim() || !m.fields.baseUrl.trim() || !m.fields.model.trim()) {
|
|
650
|
+
m.note = '名称 / 地址 / 模型 均不能为空';
|
|
651
|
+
this.dirty = true;
|
|
652
|
+
return;
|
|
653
|
+
}
|
|
654
|
+
m.busy = true;
|
|
655
|
+
this.dirty = true;
|
|
656
|
+
const res = this.saveProviderCb
|
|
657
|
+
? await this.saveProviderCb(m.fields.name.trim(), { baseUrl: m.fields.baseUrl.trim(), model: m.fields.model.trim(), ...(m.fields.key ? { apiKey: m.fields.key } : {}) })
|
|
658
|
+
: { ok: false, rows: [], error: 'save not wired' };
|
|
659
|
+
const listRows = res.rows.length ? res.rows : this.configListRows;
|
|
660
|
+
if (res.ok) {
|
|
661
|
+
this.configModal = { mode: 'list', sel: Math.max(0, listRows.findIndex((r) => r.name === m.fields.name.trim())), rows: listRows, note: this.t.cfgSavedOk + ' · ' + m.fields.name.trim(), busy: false };
|
|
662
|
+
}
|
|
663
|
+
else {
|
|
664
|
+
m.busy = false;
|
|
665
|
+
m.note = res.error ?? 'save failed';
|
|
666
|
+
}
|
|
667
|
+
this.dirty = true;
|
|
668
|
+
}
|
|
669
|
+
/** Keyboard input for the config modal (modal owns every event). */
|
|
670
|
+
configInput(data) {
|
|
671
|
+
const m = this.configModal;
|
|
672
|
+
if (!m || m.busy)
|
|
673
|
+
return;
|
|
674
|
+
if (data === '\x1b' || data === '\x03') { // Esc / Ctrl-C
|
|
675
|
+
if (m.mode === 'form') {
|
|
676
|
+
const rows = this.configListRows;
|
|
677
|
+
this.configModal = { mode: 'list', sel: 0, rows, note: '', busy: false };
|
|
678
|
+
}
|
|
679
|
+
else {
|
|
680
|
+
this.configModal = null;
|
|
681
|
+
}
|
|
682
|
+
this.dirty = true;
|
|
683
|
+
return;
|
|
684
|
+
}
|
|
685
|
+
if (m.mode === 'list') {
|
|
686
|
+
const total = m.rows.length + 1; // + new-provider row
|
|
687
|
+
if (data === '\x1b[A' || data === 'k') {
|
|
688
|
+
m.sel = Math.max(0, m.sel - 1);
|
|
689
|
+
this.dirty = true;
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
if (data === '\x1b[B' || data === 'j') {
|
|
693
|
+
m.sel = Math.min(total - 1, m.sel + 1);
|
|
694
|
+
this.dirty = true;
|
|
695
|
+
return;
|
|
696
|
+
}
|
|
697
|
+
if (data === '\r' || data === '\n') {
|
|
698
|
+
this.openConfigForm(m.sel >= m.rows.length ? -1 : m.sel);
|
|
699
|
+
return;
|
|
700
|
+
}
|
|
701
|
+
return;
|
|
702
|
+
}
|
|
703
|
+
// form mode
|
|
704
|
+
const labels = [this.t.cfgFieldName, this.t.cfgFieldBaseUrl, this.t.cfgFieldModel, this.t.cfgFieldKey];
|
|
705
|
+
void labels;
|
|
706
|
+
if (data === '\x1b[A') {
|
|
707
|
+
m.fi = Math.max(0, m.fi - 1);
|
|
708
|
+
this.dirty = true;
|
|
709
|
+
return;
|
|
710
|
+
} // up = prev field
|
|
711
|
+
if (data === '\x1b[B' || data === '\t') { // down/tab = next; on last, save
|
|
712
|
+
if (m.fi < 3) {
|
|
713
|
+
m.fi++;
|
|
714
|
+
this.dirty = true;
|
|
715
|
+
}
|
|
716
|
+
else
|
|
717
|
+
void this.saveConfigForm();
|
|
718
|
+
return;
|
|
719
|
+
}
|
|
720
|
+
if (data === '\r' || data === '\n') {
|
|
721
|
+
void this.saveConfigForm();
|
|
722
|
+
return;
|
|
723
|
+
} // Enter saves from any field
|
|
724
|
+
if (data === '\x7f' || data === '\b') { // backspace on the active field
|
|
725
|
+
const keys = ['name', 'baseUrl', 'model', 'key'];
|
|
726
|
+
const f = keys[m.fi];
|
|
727
|
+
m.fields[f] = m.fields[f].slice(0, -1);
|
|
728
|
+
this.dirty = true;
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
// printable run: append to the active field (name disallows spaces)
|
|
732
|
+
const run = data.replace(/[\x00-\x1f\x7f]/g, '');
|
|
733
|
+
if (run) {
|
|
734
|
+
const keys = ['name', 'baseUrl', 'model', 'key'];
|
|
735
|
+
const f = keys[m.fi];
|
|
736
|
+
const add = f === 'name' ? run.replace(/\s/g, '') : run;
|
|
737
|
+
m.fields[f] += add;
|
|
738
|
+
this.dirty = true;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
518
741
|
/** Ctrl+R history-search modal (B4): query line + matching entries,
|
|
519
742
|
* newest first; Enter adopts, Esc closes, ^P/^N or arrows move. */
|
|
520
743
|
renderHistSearch(frame, W, H) {
|
|
@@ -1157,11 +1380,13 @@ export class TuiRuntime {
|
|
|
1157
1380
|
return n;
|
|
1158
1381
|
}
|
|
1159
1382
|
onKey(data) {
|
|
1160
|
-
// SGR mouse events (dsh-TUI style, 2026-10-22):
|
|
1161
|
-
// key processing
|
|
1162
|
-
//
|
|
1163
|
-
// the
|
|
1164
|
-
//
|
|
1383
|
+
// SGR mouse events (dsh-TUI style, 2026-10-22; press-fix 2026-10-24):
|
|
1384
|
+
// intercept BEFORE any key processing. A click is PRESS+RELEASE - the
|
|
1385
|
+
// press must be CONSUMED (v0.23.38 let it fall through: the leading ESC
|
|
1386
|
+
// closed the palette, so clicks acted like Esc and "didn't work").
|
|
1387
|
+
// parseMouse now returns kind:'ignore' for press/drag/other-button
|
|
1388
|
+
// reports; every complete mouse report is consumed here. X10 legacy
|
|
1389
|
+
// reports (ESC[M + 3 bytes) parse as clicks on left press.
|
|
1165
1390
|
{
|
|
1166
1391
|
let chunk = data;
|
|
1167
1392
|
for (;;) {
|
|
@@ -1176,11 +1401,12 @@ export class TuiRuntime {
|
|
|
1176
1401
|
dispatchClick(ev.col, ev.row);
|
|
1177
1402
|
else if (ev.kind === 'wheel')
|
|
1178
1403
|
this.wheelScroll(ev.wheelUp);
|
|
1404
|
+
// 'ignore' = press/drag/other-button: consumed, no event
|
|
1179
1405
|
chunk = rest;
|
|
1180
1406
|
continue;
|
|
1181
1407
|
}
|
|
1182
|
-
// partial
|
|
1183
|
-
if (/^\x1b\[<\d*$/.test(chunk)) {
|
|
1408
|
+
// partial report head (ConPTY fragmentation): hold for the rest
|
|
1409
|
+
if (/^\x1b\[<\d*$/.test(chunk) || /^\x1b\[M?$/.test(chunk)) {
|
|
1184
1410
|
this.mouseBuf = chunk;
|
|
1185
1411
|
return;
|
|
1186
1412
|
}
|
|
@@ -1251,6 +1477,12 @@ export class TuiRuntime {
|
|
|
1251
1477
|
this.pickerInput(key);
|
|
1252
1478
|
return;
|
|
1253
1479
|
}
|
|
1480
|
+
// config modal owns every event while open (/config: provider list +
|
|
1481
|
+
// edit form; mouse-clickable rows via the shared region registry)
|
|
1482
|
+
if (this.configModal) {
|
|
1483
|
+
this.configInput(data);
|
|
1484
|
+
return;
|
|
1485
|
+
}
|
|
1254
1486
|
// M2 modals own the keys while open (history search, transcript overlay,
|
|
1255
1487
|
// @-file palette) — each closes on its own Esc
|
|
1256
1488
|
if (this.histSearch) {
|
|
@@ -1560,6 +1792,11 @@ export class TuiRuntime {
|
|
|
1560
1792
|
this.flushFrame(frame, H);
|
|
1561
1793
|
return;
|
|
1562
1794
|
}
|
|
1795
|
+
if (this.configModal) {
|
|
1796
|
+
this.renderConfigModal(frame, W, H);
|
|
1797
|
+
this.flushFrame(frame, H);
|
|
1798
|
+
return;
|
|
1799
|
+
}
|
|
1563
1800
|
if (this.histSearch) {
|
|
1564
1801
|
this.renderHistSearch(frame, W, H);
|
|
1565
1802
|
this.flushFrame(frame, H);
|
|
@@ -1642,6 +1879,9 @@ export class TuiRuntime {
|
|
|
1642
1879
|
const c = cmdHits[gi];
|
|
1643
1880
|
const sel = gi === this.cmdIdx;
|
|
1644
1881
|
frame.push(truncateTo((sel ? '› ' : ' ') + (sel ? CYAN(c.name) : DIM(c.name)) + ' ' + DIM(truncateTo(c.desc, 46)), W - 1));
|
|
1882
|
+
// mouse click region: this palette row selects + runs the command
|
|
1883
|
+
const palRow = frame.length - 1;
|
|
1884
|
+
addClickRegion(palRow, 0, W - 1, () => { this.cmdIdx = gi; this.pickHighlighted(); });
|
|
1645
1885
|
}
|
|
1646
1886
|
frame.push(DIM(truncateTo(' ' + this.t.panelHint, W - 1)));
|
|
1647
1887
|
}
|
|
@@ -1930,6 +2170,19 @@ export async function tui(yes, noWeb = false, opts = {}) {
|
|
|
1930
2170
|
rt.addText(rest.slice(0, 2000), 'dim');
|
|
1931
2171
|
fullToolLog.push({ name: 'shell', output: String(r.output).slice(0, 4000) });
|
|
1932
2172
|
}
|
|
2173
|
+
// /config save channel: kernel saveProvider + refreshed rows back to the
|
|
2174
|
+
// modal; blank key = keep stored (saveProvider contract)
|
|
2175
|
+
rt.onSaveProvider(async (name, patch) => {
|
|
2176
|
+
try {
|
|
2177
|
+
const fresh = await saveProvider(name, patch);
|
|
2178
|
+
cfg = { ...cfg, provider: fresh.provider, providers: fresh.providers, routing: fresh.routing };
|
|
2179
|
+
rt.setModelChoices(listProviders(cfg).map((p) => ({ name: p.name, desc: `${p.model}${p.purposes.length ? ' (' + p.purposes.join('/') + ')' : ''}` })));
|
|
2180
|
+
return { ok: true, rows: configProviderRows(cfg) };
|
|
2181
|
+
}
|
|
2182
|
+
catch (err) {
|
|
2183
|
+
return { ok: false, rows: [], error: String(err instanceof Error ? err.message : err).slice(0, 160) };
|
|
2184
|
+
}
|
|
2185
|
+
});
|
|
1933
2186
|
rt.onSubmit(() => {
|
|
1934
2187
|
const line = rt.consumeInput().trim();
|
|
1935
2188
|
if (!line) {
|
|
@@ -2730,6 +2983,11 @@ export async function tui(yes, noWeb = false, opts = {}) {
|
|
|
2730
2983
|
}
|
|
2731
2984
|
return;
|
|
2732
2985
|
}
|
|
2986
|
+
if (line === '/config' || line.startsWith('/config')) {
|
|
2987
|
+
// one-stop visual editor: providers + API keys, mouse-clickable rows
|
|
2988
|
+
rt.openConfigModal(configProviderRows(cfg));
|
|
2989
|
+
return;
|
|
2990
|
+
}
|
|
2733
2991
|
if (line === '/providers' || line === '/providers scan') {
|
|
2734
2992
|
rt.setBusy(true, '/providers scan');
|
|
2735
2993
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmharness/cli",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.40",
|
|
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",
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
"build": "tsc -p tsconfig.build.json"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@hmharness/agent": "0.23.
|
|
49
|
-
"@hmharness/browser": "0.23.
|
|
50
|
-
"@hmharness/cognitive": "0.23.
|
|
51
|
-
"@hmharness/domain-harmony": "0.23.
|
|
52
|
-
"@hmharness/domain-ops": "0.23.
|
|
53
|
-
"@hmharness/environments": "0.23.
|
|
54
|
-
"@hmharness/evaluation": "0.23.
|
|
55
|
-
"@hmharness/evolution": "0.23.
|
|
56
|
-
"@hmharness/extension": "0.23.
|
|
57
|
-
"@hmharness/kernel": "0.23.
|
|
58
|
-
"@hmharness/observability": "0.23.
|
|
59
|
-
"@hmharness/sandbox": "0.23.
|
|
60
|
-
"@hmharness/web": "0.23.
|
|
48
|
+
"@hmharness/agent": "0.23.39",
|
|
49
|
+
"@hmharness/browser": "0.23.39",
|
|
50
|
+
"@hmharness/cognitive": "0.23.39",
|
|
51
|
+
"@hmharness/domain-harmony": "0.23.39",
|
|
52
|
+
"@hmharness/domain-ops": "0.23.39",
|
|
53
|
+
"@hmharness/environments": "0.23.39",
|
|
54
|
+
"@hmharness/evaluation": "0.23.39",
|
|
55
|
+
"@hmharness/evolution": "0.23.39",
|
|
56
|
+
"@hmharness/extension": "0.23.39",
|
|
57
|
+
"@hmharness/kernel": "0.23.39",
|
|
58
|
+
"@hmharness/observability": "0.23.39",
|
|
59
|
+
"@hmharness/sandbox": "0.23.39",
|
|
60
|
+
"@hmharness/web": "0.23.39",
|
|
61
61
|
"qrcode": "^1.5.4",
|
|
62
|
-
"@hmharness/lsp": "0.23.
|
|
62
|
+
"@hmharness/lsp": "0.23.39"
|
|
63
63
|
}
|
|
64
64
|
}
|
package/release-notes.json
CHANGED
|
@@ -1,129 +1,139 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
2
|
+
"notes": [
|
|
3
|
+
{
|
|
4
|
+
"v": "0.23.40",
|
|
5
|
+
"date": "2026-10-26",
|
|
6
|
+
"note": "执行器挂死根修(interrupt 信号贯穿飞行中的模型调用 + 5s kill 兜底 + 竞态锁存——空壳会话永久 busy 不再;953/953 零回退,复现实证 busy 0s 清除)"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"v": "0.23.39",
|
|
10
|
+
"date": "2026-10-24",
|
|
11
|
+
"note": "鼠标点击假死根修(按下序列被当 Esc 的 bug)+ /config 一键密钥配置(可视化编辑 provider/模型/密钥,鼠标可点)"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"v": "0.23.38",
|
|
15
|
+
"date": "2026-10-23",
|
|
16
|
+
"note": "默认多模态(发图给多模态模型直接看原图,仅纯文本模型走辅助识别);TUI 鼠标点击(命令面板/审批/会话选择/滚轮);远程控制永久生效+开机自启(hmh web install-daemon)"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"v": "0.23.37",
|
|
20
|
+
"date": "2026-10-21",
|
|
21
|
+
"note": "ARC-AGI-3 证据链完备(随机六档+时间曲线 1.0→0.008+迁移 +0.4166 三形态一致:harness 层校准净贡献终局定论);墙钟压测仪器(2h 全过/8h 两轴判定);AGENTS.md 仓库指引"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"v": "0.23.36",
|
|
25
|
+
"date": "2026-10-18",
|
|
26
|
+
"note": "Web server 按路由域拆分为六模块(44 条中 38 条出仓,server.ts 减 44%,逐字搬运+每域真服务器冒烟锁定合约);MCP 面暴露浏览器扩展只读工具族(操作类需显式 opt-in)"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"v": "0.23.35",
|
|
30
|
+
"date": "2026-10-16",
|
|
31
|
+
"note": "P0-C 桌面桥契约闭环(单实例守卫:拒绝启动绝不误杀);执行前动作门生产化(v0.24 研究 66 真跑交付:opt-in 条件化门控+轨迹遥测,默认关);长时运行压测(崩溃恢复游标契约,重复执行陷阱实锤并修复)"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"v": "0.23.34",
|
|
35
|
+
"date": "2026-10-15",
|
|
36
|
+
"note": "安全与外部可验证双主线:XSS 残留 sink 全关+非对象坏参硬化;Sandbox 2.1 九种真实攻击载荷全阻;Desktop 宿主桥(独立生命周期+事件信封+diff+交付物流);研究可复现性打包器(外部可重跑)"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"v": "0.23.33",
|
|
40
|
+
"date": "2026-10-08",
|
|
41
|
+
"note": "弱模型防崩双修:坏参工具调用零死刑(一次格式失误不再 400 杀会话,对话可续);报错后会话不散绑(/export 立即可用、下一条消息续写同一会话)"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"v": "0.23.32",
|
|
45
|
+
"date": "2026-10-08",
|
|
46
|
+
"note": "Web 工作台 UX 三主件齐:Turn 卡(每轮 Request→计划→动作→验证→回答五段一眼可答)、Context Dock(右栏证据+日志:认知谱系事实与工具日志尾)、Cognitive HUD(顶栏操作认知投影:相位/验证数/恢复数);内核弱模型增强随版"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"v": "0.23.31",
|
|
50
|
+
"date": "2026-10-07",
|
|
51
|
+
"note": "0.26-0.28 三线齐进:反例生成闭环(泛化归因反填技能 schema);Transfer OS 2.0(环境无关技能 IR+五环境 State/Observation/Verification 映射+迁移就绪判定——就绪是算出来的);Sandbox 2.0(网络出口允许表+文件系统挂载策略+秘密经纪人——秘密全场只见不透明引用)"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"v": "0.23.30",
|
|
55
|
+
"date": "2026-10-07",
|
|
56
|
+
"note": "0.24 研究里程碑:学习改变行动的跨环境证据(规划门判别力随动作词表丰富度上升,harmonyos 达 0.71-0.97);认知账本 2.0 可回放 DAG;Skill 2.0 schema;泛化实验室把 0.39 拒绝归因为触发/前置条件轴;Web 驾驶舱升八态(规划/验证/恢复/终态可见)"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"v": "0.23.29",
|
|
60
|
+
"date": "2026-10-07",
|
|
61
|
+
"note": "学习 OS 真实数据里程碑:world_model 目标在本机 365 条真实轨迹上以 86.3% 相对校准改进通过 holdout 门禁,5/5 种子分割鲁棒(符号检验 p=0.031);技能目标同轮诚实拒绝(挖掘不泛化);多种子统计强化仪器随版"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"v": "0.23.28",
|
|
65
|
+
"date": "2026-10-06",
|
|
66
|
+
"note": "评测四层分层守卫(Hidden 只有 evaluator 可写,自进化训练料永不进 Hidden)+ 首个真实学习目标(技能挖掘→holdout 重放→门禁晋升全链)+ 轨迹记录器排空契约(finish 可等待=完成即落盘)"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"v": "0.23.27",
|
|
70
|
+
"date": "2026-10-06",
|
|
71
|
+
"note": "Cognitive OS 升级包 P0+P1 九件上线:认知账本(认知事件只增记录+谱系链)、Prediction OS 三预测族统一、认知归因(观察 lift)、学习目标注册表(六要素契约)、统一评测 12 指标、Capability Broker(拒认默认+RLM 零继承)、Transfer 5×5 矩阵(重叠≠证据)、Evidence Ledger 统一谱系、版本一致性机检接入发布门禁"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"v": "0.23.26",
|
|
75
|
+
"date": "2026-10-06",
|
|
76
|
+
"note": "会话独立运行(对标 dsh 3080):多会话真并行——每会话独立子进程/队列/审批/中断,输入区跟随当前会话;端口收复只驱逐自家族守护(extension serve 等不再被误杀);侧栏各会话显示运行状态点"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"v": "0.23.25",
|
|
80
|
+
"date": "2026-10-06",
|
|
81
|
+
"note": "浏览器扩展对话面板:侧栏直接和助手对话(你的 provider 当大脑,page_read/page_act 工具环当面执行留审计),桥守护 install 完即自动拉起;零配对装载即连;Code World Model 三传感器族生产接线(LSP 符号/诊断 + 浏览器观察 + 构建判定)"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"v": "0.23.24",
|
|
85
|
+
"date": "2026-10-05",
|
|
86
|
+
"note": "七浏览器真装验证:Chrome/Edge/Brave/Opera/夸克/Firefox/BrowserOS 两连跑全绿;Firefox 走 Marionette 临时装载 + 演示页同源配对;MV3 主机权限边界如实上报,只读命令可重放"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"v": "0.23.23",
|
|
90
|
+
"date": "2026-10-04",
|
|
91
|
+
"note": "更新体验:后台更新时 TUI 内轻提示(开始/完成),升级后首次启动显示一行更新简报——无弹窗但不再失联"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"v": "0.23.22",
|
|
95
|
+
"date": "2026-10-04",
|
|
96
|
+
"note": "审计研究基建池全量:COG-MEA 长任务循环、版本化评测任务集(数据集指纹+种子+留出)、沙箱红队加固、WM-2 观测因果挖掘、Code World Model"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"v": "0.23.21",
|
|
100
|
+
"date": "2026-10-04",
|
|
101
|
+
"note": "BrowserOS AI 浏览器包(第 15 包)+ ACP 服务器(BrowserOS 助手面板可直接驱动 hmh)+ flaky 根因修复"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"v": "0.23.20",
|
|
105
|
+
"date": "2026-10-04",
|
|
106
|
+
"note": "认知消融三臂阶梯仪器(ablate --task --ladder3,支持 --difficulty=hard)"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"v": "0.23.19",
|
|
110
|
+
"date": "2026-10-04",
|
|
111
|
+
"note": "能力 OS 首片:LSP 源信任 + sha256 钉扎(DevEco 本地 clangd 自动发现并钉扎,PATH 源一次性信任)"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"v": "0.23.18",
|
|
115
|
+
"date": "2026-10-04",
|
|
116
|
+
"note": "群体循环远程吸收:absorb --from=<url>(协议墙+大小上限+免内容校验)"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"v": "0.23.17",
|
|
120
|
+
"date": "2026-10-04",
|
|
121
|
+
"note": "12 周计划收官特性:DevEco 本地 LSP 服务器发现(官方 clangd 全链路)"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"v": "0.23.16",
|
|
125
|
+
"date": "2026-10-03",
|
|
126
|
+
"note": "发布链三防线(private 包/依赖覆盖预检/板级兜底钉随版);@hmharness/lsp 首发修复全新安装;KaihongOS 板级自动更新通道生效"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"v": "0.23.15",
|
|
130
|
+
"date": "2026-10-03",
|
|
131
|
+
"note": "热修:补上 0.23.14 缺失的 lsp 依赖发布;发布预检加入依赖覆盖与 private 检查"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"v": "0.23.14",
|
|
135
|
+
"date": "2026-10-02",
|
|
136
|
+
"note": "无垫片更新链(更新弹窗根因修复,node 直跑 npm-cli.js);KaihongOS 板端随包安装器;长会话队列断路器与崩溃断点召回"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
129
139
|
}
|