@hmharness/agent 0.23.51 → 0.23.52

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.
Files changed (2) hide show
  1. package/dist/prompt.js +7 -1
  2. package/package.json +11 -11
package/dist/prompt.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { homedir } from 'node:os';
2
+ import { join } from 'node:path';
2
3
  export function buildSystemPrompt(opts) {
3
4
  const parts = [];
4
5
  const isWin = process.platform === 'win32';
@@ -43,7 +44,12 @@ export function buildSystemPrompt(opts) {
43
44
  parts.push('', '## Long-term memory', opts.memory.trim());
44
45
  }
45
46
  if (opts.skills.trim()) {
46
- parts.push('', '## Skill library', 'Read a skill file with read_file before applying it the first time.', opts.skills.trim());
47
+ // Where to read a skill body: the list lines carry only a sub-folder tag
48
+ // ([active] / [canary]); spell out tag → path under THIS home (an isolated
49
+ // HMH_HOME cannot be guessed). 2026-11-25: without this the model read a
50
+ // skill body in 1.9% of the sessions that had skills injected.
51
+ const skillsRoot = join(opts.home, 'skills');
52
+ parts.push('', '## Skill library', `Each skill is a SKILL.md file. Untagged entry: ${join(skillsRoot, '<name>', 'SKILL.md')}. Tagged entry [tag]: ${join(skillsRoot, '<tag>', '<name>', 'SKILL.md')}.`, 'Read the skill file with read_file before applying it the first time.', opts.skills.trim());
47
53
  }
48
54
  if (opts.insights.trim()) {
49
55
  parts.push('', '## Recent session outcomes (what worked / what failed)', opts.insights.trim());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/agent",
3
- "version": "0.23.51",
3
+ "version": "0.23.52",
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,16 +15,16 @@
15
15
  "build": "tsc -p tsconfig.build.json"
16
16
  },
17
17
  "dependencies": {
18
- "@hmharness/cognitive": "0.23.51",
19
- "@hmharness/domain-harmony": "0.23.51",
20
- "@hmharness/domain-ops": "0.23.51",
21
- "@hmharness/evolution": "0.23.51",
22
- "@hmharness/kernel": "0.23.51",
23
- "@hmharness/observability": "0.23.51",
24
- "@hmharness/sandbox": "0.23.51",
25
- "@hmharness/lsp": "0.23.51",
26
- "@hmharness/browser": "0.23.51",
27
- "@hmharness/extension": "0.23.51"
18
+ "@hmharness/cognitive": "0.23.52",
19
+ "@hmharness/domain-harmony": "0.23.52",
20
+ "@hmharness/domain-ops": "0.23.52",
21
+ "@hmharness/evolution": "0.23.52",
22
+ "@hmharness/kernel": "0.23.52",
23
+ "@hmharness/observability": "0.23.52",
24
+ "@hmharness/sandbox": "0.23.52",
25
+ "@hmharness/lsp": "0.23.52",
26
+ "@hmharness/browser": "0.23.52",
27
+ "@hmharness/extension": "0.23.52"
28
28
  },
29
29
  "files": [
30
30
  "dist"