@hmharness/agent 0.14.21 → 0.14.23
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 +1 -3
- package/dist/i18n.js +2 -6
- package/dist/runner.js +6 -2
- package/package.json +1 -1
package/dist/i18n.d.ts
CHANGED
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
|
-
|
|
63
|
-
cmdMouseOn: '🖱 全时鼠标捕获已开启(滚轮直读;原生划选复制请按住 Shift 再拖动)',
|
|
64
|
-
cmdMouseOff: '🖱 全时鼠标捕获已关闭(滚轮走终端方向键翻译;划选复制恢复原生)',
|
|
62
|
+
cmdMouseRemoved: '🖱 鼠标方案已永久固定:滚轮滚动由终端原生翻译(?1007),划选复制始终原生——无需任何开关',
|
|
65
63
|
cmdCopied: '✓ 已复制最后一条 AI 输出',
|
|
66
64
|
cmdPlan: '计划模式开关(先出计划待确认再执行)',
|
|
67
65
|
cmdPlanOn: '🔥 计划模式:先出计划,确认后才执行',
|
|
@@ -211,9 +209,7 @@ const en = {
|
|
|
211
209
|
cmdFork: 'fork this session to a new thread (inherits full context)',
|
|
212
210
|
cmdCopy: 'copy the last AI output to the clipboard',
|
|
213
211
|
cmdExport: 'export the whole session to a Markdown file (~/.hmharness/exports/)',
|
|
214
|
-
|
|
215
|
-
cmdMouseOn: '🖱 full-time mouse capture ON (direct wheel; hold Shift to select natively)',
|
|
216
|
-
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',
|
|
217
213
|
cmdCopied: '✓ copied the last AI output',
|
|
218
214
|
cmdPlan: 'plan mode toggle (plan first, confirm, then execute)',
|
|
219
215
|
cmdPlanOn: '🔥 plan mode: present a plan, wait for confirmation before executing',
|
package/dist/runner.js
CHANGED
|
@@ -11,7 +11,7 @@ import { readFile } from 'node:fs/promises';
|
|
|
11
11
|
import { readFileSync, writeFileSync } from 'node:fs';
|
|
12
12
|
import { join, dirname } from 'node:path';
|
|
13
13
|
import { extractFeatures, routeDecision, recordRoutingOutcome } from '@hmharness/kernel';
|
|
14
|
-
import { appendMemory, listSkills, readInsights, readNotes,
|
|
14
|
+
import { appendMemory, listSkills, readInsights, readNotes, retrieveInsights, recordInsight, redactSecrets, retrieveMemory, skillsToPrompt, sessionGetsCanary, canaryWatermark, listCanary, workspaceForCwd } from '@hmharness/evolution';
|
|
15
15
|
import { harmonyTools } from '@hmharness/domain-harmony';
|
|
16
16
|
import { opsTools } from '@hmharness/domain-ops';
|
|
17
17
|
import * as readline from 'node:readline/promises';
|
|
@@ -130,7 +130,11 @@ export async function contextPack(task, sessionId, opts = {}) {
|
|
|
130
130
|
const [memory, skills, insights] = await Promise.all([
|
|
131
131
|
retrieveMemory(home, task, { workspace: opts.workspace ?? undefined, embedding: opts.embedding }),
|
|
132
132
|
listSkills(home),
|
|
133
|
-
|
|
133
|
+
// 2026-09-27 plan A: experience retrieval - the K most RELEVANT past
|
|
134
|
+
// insights for THIS task (bigram similarity, recency tiebreak) instead
|
|
135
|
+
// of the 5 most recent; a task similar to one from a month ago now
|
|
136
|
+
// surfaces that lesson instead of five unrelated recent rows
|
|
137
|
+
retrieveInsights(home, task),
|
|
134
138
|
]);
|
|
135
139
|
let canaryBlock = '';
|
|
136
140
|
let canaryNames = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmharness/agent",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.23",
|
|
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",
|