@hmharness/agent 0.14.22 → 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/runner.js +6 -2
- package/package.json +1 -1
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",
|