@hmharness/agent 0.14.20 → 0.14.22

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/i18n.d.ts CHANGED
@@ -75,9 +75,7 @@ export interface Strings {
75
75
  cmdFork: string;
76
76
  cmdCopy: string;
77
77
  cmdExport: string;
78
- cmdMouse: string;
79
- cmdMouseOn: string;
80
- cmdMouseOff: string;
78
+ cmdMouseRemoved: string;
81
79
  cmdCopied: string;
82
80
  cmdPlan: string;
83
81
  cmdPlanOn: string;
@@ -139,6 +137,10 @@ export interface Strings {
139
137
  tuiPassRate: (pct: string) => string;
140
138
  tuiStatus: (locale: string, skills: number, model: string) => string;
141
139
  tuiSkills: string;
140
+ /** persistent header badge for the current approval mode (2026-09-25:
141
+ * users must SEE which mode is running, not guess) */
142
+ modeAsk: string;
143
+ modePlan: string;
142
144
  cmdHelp: string;
143
145
  /** REPL feedback for a slash command that does not exist */
144
146
  unknownCommand: (line: string) => string;
package/dist/i18n.js CHANGED
@@ -59,9 +59,7 @@ const zh = {
59
59
  cmdFork: 'fork 当前会话为新线程(继承全部上下文)',
60
60
  cmdCopy: '复制最后一条 AI 输出到剪贴板',
61
61
  cmdExport: '一键导出整个会话为 Markdown 文件(~/.hmharness/exports/)',
62
- cmdMouse: '切换全时鼠标捕获(仅无滚轮翻译的终端需要;默认 ?1007 已覆盖大多数终端)',
63
- cmdMouseOn: '🖱 全时鼠标捕获已开启(滚轮直读;原生划选复制请按住 Shift 再拖动)',
64
- cmdMouseOff: '🖱 全时鼠标捕获已关闭(滚轮走终端方向键翻译;划选复制恢复原生)',
62
+ cmdMouseRemoved: '🖱 鼠标方案已永久固定:滚轮滚动由终端原生翻译(?1007),划选复制始终原生——无需任何开关',
65
63
  cmdCopied: '✓ 已复制最后一条 AI 输出',
66
64
  cmdPlan: '计划模式开关(先出计划待确认再执行)',
67
65
  cmdPlanOn: '🔥 计划模式:先出计划,确认后才执行',
@@ -118,6 +116,8 @@ const zh = {
118
116
  tuiPassRate: (pct) => `pass rate: ${pct}`,
119
117
  tuiStatus: (locale, skills, model) => `${locale} · ${skills} 技能 · ${model}`,
120
118
  tuiSkills: '技能',
119
+ modeAsk: '逐条审批',
120
+ modePlan: '先计划',
121
121
  cmdHelp: '命令帮助',
122
122
  unknownCommand: (l) => `未知命令: ${l} (/help 查看全部)`,
123
123
  cmdClearDone: '✓ 对话已清空,下一条任务从全新上下文开始',
@@ -209,9 +209,7 @@ const en = {
209
209
  cmdFork: 'fork this session to a new thread (inherits full context)',
210
210
  cmdCopy: 'copy the last AI output to the clipboard',
211
211
  cmdExport: 'export the whole session to a Markdown file (~/.hmharness/exports/)',
212
- cmdMouse: 'toggle full-time mouse capture (only for terminals without wheel translation; ?1007 covers most)',
213
- cmdMouseOn: '🖱 full-time mouse capture ON (direct wheel; hold Shift to select natively)',
214
- cmdMouseOff: '🖱 full-time mouse capture OFF (wheel via terminal translation; native selection restored)',
212
+ cmdMouseRemoved: '🖱 the mouse scheme is now permanent: wheel scrolling via the terminal\'s native translation, selection/copy always native - no toggle needed',
215
213
  cmdCopied: '✓ copied the last AI output',
216
214
  cmdPlan: 'plan mode toggle (plan first, confirm, then execute)',
217
215
  cmdPlanOn: '🔥 plan mode: present a plan, wait for confirmation before executing',
@@ -268,6 +266,8 @@ const en = {
268
266
  tuiPassRate: (pct) => `pass rate: ${pct}`,
269
267
  tuiStatus: (locale, skills, model) => `${locale} · ${skills} skills · ${model}`,
270
268
  tuiSkills: 'skills',
269
+ modeAsk: 'ask',
270
+ modePlan: 'plan',
271
271
  cmdHelp: 'command help',
272
272
  unknownCommand: (l) => `unknown command: ${l} (/help lists all)`,
273
273
  cmdClearDone: '✓ conversation cleared; the next task starts a fresh context',
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- export { baseTools, readFileTool, writeFileTool, listDirTool, runCommandTool, rememberTool, seeImageTool } from './tools.ts';
2
- export { manifestFor, capabilityReport, authorize, type CapabilityManifest, type CapabilityRisk, type PolicyMode } from './capability.ts';
3
- export { checkpointProject, createProject, findProject, interruptProject, listProjects, loadProject, projectFor, releaseProject, restoreCheckpoint, resumeBundle, transitionProject, attachRun, newProjectId, type CheckpointRef, type DecisionEntry, type ProjectRecord, type ProjectState, } from './project.ts';
4
- export { mechanicalGate, parseVerdict, runPipeline, type PipelineOptions, type PipelineReport, type StageRecord, type StageRole, } from './pipeline.ts';
5
- export { buildSystemPrompt } from './prompt.ts';
6
- export { strings, type Locale, type Strings } from './i18n.ts';
7
- export { makeSpawnTool, MAX_SPAWN_DEPTH, type SpawnBase } from './spawn.ts';
8
- export { buildRegistry, contextPack, makeApproval, liveYolo, nativeRegistry, runAgentTask, spawnBase, toServerConfig, type AgentTaskOptions, type RunnerEvents, } from './runner.ts';
9
- export * from './skills-conformance.ts';
10
- export * from './acp.ts';
11
- export * from './topology.ts';
12
- export * from './meta-harness.ts';
1
+ export { baseTools, readFileTool, writeFileTool, listDirTool, runCommandTool, rememberTool, seeImageTool } from './tools.js';
2
+ export { manifestFor, capabilityReport, authorize, type CapabilityManifest, type CapabilityRisk, type PolicyMode } from './capability.js';
3
+ export { checkpointProject, createProject, findProject, interruptProject, listProjects, loadProject, projectFor, releaseProject, restoreCheckpoint, resumeBundle, transitionProject, attachRun, newProjectId, type CheckpointRef, type DecisionEntry, type ProjectRecord, type ProjectState, } from './project.js';
4
+ export { mechanicalGate, parseVerdict, runPipeline, type PipelineOptions, type PipelineReport, type StageRecord, type StageRole, } from './pipeline.js';
5
+ export { buildSystemPrompt } from './prompt.js';
6
+ export { strings, type Locale, type Strings } from './i18n.js';
7
+ export { makeSpawnTool, MAX_SPAWN_DEPTH, type SpawnBase } from './spawn.js';
8
+ export { buildRegistry, contextPack, makeApproval, liveYolo, nativeRegistry, runAgentTask, spawnBase, toServerConfig, type AgentTaskOptions, type RunnerEvents, } from './runner.js';
9
+ export * from './skills-conformance.js';
10
+ export * from './acp.js';
11
+ export * from './topology.js';
12
+ export * from './meta-harness.js';
package/dist/runner.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  import { Registry, type ChatMessage, type DeltaKind, type HmhConfig, type LoopApproval, type LoopResult, type McpClient, type McpServerConfig, type McpServerImport, type ToolContext } from '@hmharness/kernel';
9
9
  import { type EmbeddingProvider } from '@hmharness/evolution';
10
10
  import * as readline from 'node:readline/promises';
11
- import { type SpawnBase } from './spawn.ts';
11
+ import { type SpawnBase } from './spawn.js';
12
12
  /** Flatten the config.json shape into the runtime discriminated union. */
13
13
  export declare function toServerConfig(c: McpServerImport): McpServerConfig;
14
14
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/agent",
3
- "version": "0.14.20",
3
+ "version": "0.14.22",
4
4
  "description": "hmharness agent execution layer: base tools, system prompt, sub-agent spawn, and the shared task runner that frontends (cli, web) drive.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -15,12 +15,12 @@
15
15
  "build": "tsc -p tsconfig.build.json"
16
16
  },
17
17
  "dependencies": {
18
- "@hmharness/domain-harmony": "0.13.5",
19
- "@hmharness/domain-ops": "0.8.0",
20
- "@hmharness/evolution": "0.14.9",
21
- "@hmharness/kernel": "0.9.7",
22
- "@hmharness/observability": "0.7.0",
23
- "@hmharness/sandbox": "0.8.0"
18
+ "@hmharness/domain-harmony": "*",
19
+ "@hmharness/domain-ops": "*",
20
+ "@hmharness/evolution": "*",
21
+ "@hmharness/kernel": "*",
22
+ "@hmharness/observability": "*",
23
+ "@hmharness/sandbox": "*"
24
24
  },
25
25
  "files": [
26
26
  "dist"