@hmharness/agent 0.14.20 → 0.14.21

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
@@ -139,6 +139,10 @@ export interface Strings {
139
139
  tuiPassRate: (pct: string) => string;
140
140
  tuiStatus: (locale: string, skills: number, model: string) => string;
141
141
  tuiSkills: string;
142
+ /** persistent header badge for the current approval mode (2026-09-25:
143
+ * users must SEE which mode is running, not guess) */
144
+ modeAsk: string;
145
+ modePlan: string;
142
146
  cmdHelp: string;
143
147
  /** REPL feedback for a slash command that does not exist */
144
148
  unknownCommand: (line: string) => string;
package/dist/i18n.js CHANGED
@@ -118,6 +118,8 @@ const zh = {
118
118
  tuiPassRate: (pct) => `pass rate: ${pct}`,
119
119
  tuiStatus: (locale, skills, model) => `${locale} · ${skills} 技能 · ${model}`,
120
120
  tuiSkills: '技能',
121
+ modeAsk: '逐条审批',
122
+ modePlan: '先计划',
121
123
  cmdHelp: '命令帮助',
122
124
  unknownCommand: (l) => `未知命令: ${l} (/help 查看全部)`,
123
125
  cmdClearDone: '✓ 对话已清空,下一条任务从全新上下文开始',
@@ -268,6 +270,8 @@ const en = {
268
270
  tuiPassRate: (pct) => `pass rate: ${pct}`,
269
271
  tuiStatus: (locale, skills, model) => `${locale} · ${skills} skills · ${model}`,
270
272
  tuiSkills: 'skills',
273
+ modeAsk: 'ask',
274
+ modePlan: 'plan',
271
275
  cmdHelp: 'command help',
272
276
  unknownCommand: (l) => `unknown command: ${l} (/help lists all)`,
273
277
  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.21",
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"