harnessed 4.16.3 → 4.19.0

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/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // package.json
2
2
  var package_default = {
3
- version: "4.16.3"};
3
+ version: "4.19.0"};
4
4
 
5
5
  // src/index.ts
6
6
  var VERSION = package_default.version;
@@ -1 +1 @@
1
- {"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,QAkGb,CAAA;;;AC/FO,IAAM,UAAU,eAAA,CAAI","file":"index.mjs","sourcesContent":["{\n \"name\": \"harnessed\",\n \"version\": \"4.16.3\",\n \"description\": \"AI coding harness package manager + composition orchestrator\",\n \"type\": \"module\",\n \"license\": \"Apache-2.0\",\n \"author\": \"easyinplay\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/easyinplay/harnessed.git\"\n },\n \"homepage\": \"https://github.com/easyinplay/harnessed#readme\",\n \"bugs\": \"https://github.com/easyinplay/harnessed/issues\",\n \"keywords\": [\n \"claude-code\",\n \"ai-harness\",\n \"package-manager\",\n \"composition\",\n \"skill-pack\",\n \"mcp\",\n \"orchestrator\"\n ],\n \"engines\": {\n \"node\": \">=22.0.0\"\n },\n \"packageManager\": \"pnpm@10.12.0\",\n \"bin\": {\n \"harnessed\": \"./dist/cli.mjs\",\n \"harnessed-inject-state\": \"./bin/harnessed-inject-state.mjs\"\n },\n \"main\": \"./dist/index.mjs\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.mjs\",\n \"default\": \"./dist/index.mjs\"\n },\n \"./schemas\": {\n \"types\": \"./dist/schemas/index.d.ts\",\n \"import\": \"./dist/schemas/index.mjs\"\n },\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\",\n \"bin\",\n \"manifests\",\n \"messages\",\n \"workflows\",\n \"routing\",\n \"config-templates\",\n \"schemas\",\n \"README.md\",\n \"LICENSE\",\n \"NOTICE\",\n \"THIRD-PARTY-NOTICES.md\"\n ],\n \"scripts\": {\n \"dev\": \"tsup --watch\",\n \"build\": \"tsc --noEmit && tsup\",\n \"build:schema\": \"node ./scripts/build-schema.mjs\",\n \"validate:schema\": \"node ./scripts/validate-schema.mjs\",\n \"typecheck\": \"tsc --noEmit\",\n \"test\": \"vitest run --passWithNoTests\",\n \"test:watch\": \"vitest\",\n \"test:coverage\": \"vitest run --coverage --passWithNoTests\",\n \"bench\": \"vitest bench --run\",\n \"lint\": \"biome check .\",\n \"lint:fix\": \"biome check --write .\",\n \"format\": \"biome format --write .\"\n },\n \"dependencies\": {\n \"@anthropic-ai/claude-agent-sdk\": \"0.3.142\",\n \"@clack/prompts\": \"^0.10.1\",\n \"@sinclair/typebox\": \"^0.34.49\",\n \"ajv\": \"^8.20.0\",\n \"ajv-errors\": \"^3.0.0\",\n \"ajv-formats\": \"^3.0.1\",\n \"commander\": \"^13.0.0\",\n \"diff\": \"^9.0.0\",\n \"expr-eval\": \"^2.0.2\",\n \"picocolors\": \"^1.1.1\",\n \"proper-lockfile\": \"^4.1.2\",\n \"yaml\": \"^2.9.0\"\n },\n \"devDependencies\": {\n \"@biomejs/biome\": \"^2.0.0\",\n \"@types/node\": \"^22.10.0\",\n \"@types/proper-lockfile\": \"^4.1.4\",\n \"@vitest/coverage-v8\": \"^4.0.0\",\n \"tsup\": \"^8.3.0\",\n \"typescript\": \"^5.6.0\",\n \"vitest\": \"^4.0.0\"\n },\n \"pnpm\": {\n \"onlyBuiltDependencies\": [\n \"esbuild\"\n ]\n }\n}\n","// Main library entry — re-exports public APIs.\n// phase 1.1 batch 1: skeleton only; schema validator wired in batch 2 (T3+).\n\nimport pkg from '../package.json' with { type: 'json' }\n\nexport const VERSION = pkg.version\n"]}
1
+ {"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,QAkGb,CAAA;;;AC/FO,IAAM,UAAU,eAAA,CAAI","file":"index.mjs","sourcesContent":["{\n \"name\": \"harnessed\",\n \"version\": \"4.19.0\",\n \"description\": \"AI coding harness package manager + composition orchestrator\",\n \"type\": \"module\",\n \"license\": \"Apache-2.0\",\n \"author\": \"easyinplay\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/easyinplay/harnessed.git\"\n },\n \"homepage\": \"https://github.com/easyinplay/harnessed#readme\",\n \"bugs\": \"https://github.com/easyinplay/harnessed/issues\",\n \"keywords\": [\n \"claude-code\",\n \"ai-harness\",\n \"package-manager\",\n \"composition\",\n \"skill-pack\",\n \"mcp\",\n \"orchestrator\"\n ],\n \"engines\": {\n \"node\": \">=22.0.0\"\n },\n \"packageManager\": \"pnpm@10.12.0\",\n \"bin\": {\n \"harnessed\": \"./dist/cli.mjs\",\n \"harnessed-inject-state\": \"./bin/harnessed-inject-state.mjs\"\n },\n \"main\": \"./dist/index.mjs\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.mjs\",\n \"default\": \"./dist/index.mjs\"\n },\n \"./schemas\": {\n \"types\": \"./dist/schemas/index.d.ts\",\n \"import\": \"./dist/schemas/index.mjs\"\n },\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\",\n \"bin\",\n \"manifests\",\n \"messages\",\n \"workflows\",\n \"routing\",\n \"config-templates\",\n \"schemas\",\n \"README.md\",\n \"LICENSE\",\n \"NOTICE\",\n \"THIRD-PARTY-NOTICES.md\"\n ],\n \"scripts\": {\n \"dev\": \"tsup --watch\",\n \"build\": \"tsc --noEmit && tsup\",\n \"build:schema\": \"node ./scripts/build-schema.mjs\",\n \"validate:schema\": \"node ./scripts/validate-schema.mjs\",\n \"typecheck\": \"tsc --noEmit\",\n \"test\": \"vitest run --passWithNoTests\",\n \"test:watch\": \"vitest\",\n \"test:coverage\": \"vitest run --coverage --passWithNoTests\",\n \"bench\": \"vitest bench --run\",\n \"lint\": \"biome check .\",\n \"lint:fix\": \"biome check --write .\",\n \"format\": \"biome format --write .\"\n },\n \"dependencies\": {\n \"@anthropic-ai/claude-agent-sdk\": \"0.3.142\",\n \"@clack/prompts\": \"^0.10.1\",\n \"@sinclair/typebox\": \"^0.34.49\",\n \"ajv\": \"^8.20.0\",\n \"ajv-errors\": \"^3.0.0\",\n \"ajv-formats\": \"^3.0.1\",\n \"commander\": \"^13.0.0\",\n \"diff\": \"^9.0.0\",\n \"expr-eval\": \"^2.0.2\",\n \"picocolors\": \"^1.1.1\",\n \"proper-lockfile\": \"^4.1.2\",\n \"yaml\": \"^2.9.0\"\n },\n \"devDependencies\": {\n \"@biomejs/biome\": \"^2.0.0\",\n \"@types/node\": \"^22.10.0\",\n \"@types/proper-lockfile\": \"^4.1.4\",\n \"@vitest/coverage-v8\": \"^4.0.0\",\n \"tsup\": \"^8.3.0\",\n \"typescript\": \"^5.6.0\",\n \"vitest\": \"^4.0.0\"\n },\n \"pnpm\": {\n \"onlyBuiltDependencies\": [\n \"esbuild\"\n ]\n }\n}\n","// Main library entry — re-exports public APIs.\n// phase 1.1 batch 1: skeleton only; schema validator wired in batch 2 (T3+).\n\nimport pkg from '../package.json' with { type: 'json' }\n\nexport const VERSION = pkg.version\n"]}
@@ -31,14 +31,20 @@ spec:
31
31
  npm_version: ^1.0.0
32
32
  idempotent_check: "command -v codegraph"
33
33
  verify:
34
- cmd: "codegraph status"
34
+ # v4.18.0 — `--version` instead of `status`: verify runs right after the
35
+ # global install (setup optional-offer / harnessed install), where no
36
+ # per-project .codegraph/ index exists yet — `status` semantics without a
37
+ # project context are unverified upstream; `--version` only asserts the
38
+ # binary is on PATH, which is exactly what this install step guarantees.
39
+ # The per-project index is the separate `codegraph init` (doctor hint).
40
+ cmd: "codegraph --version"
35
41
  timeout_ms: 10000
36
42
  expected_exit_code: 0
37
43
  uninstall:
38
44
  cmd: "codegraph uninstall --yes"
39
45
  upstream_health:
40
46
  stability: stable
41
- last_check: "2026-06-13"
47
+ last_check: "2026-07-04"
42
48
  last_known_good_version: "1.0.0"
43
49
  fallback_action: warn
44
50
  signed_by: easyinplay
package/messages/en.json CHANGED
@@ -33,6 +33,8 @@
33
33
  "install.audit_hint": " fix: run 'harnessed audit' to inspect manifest issues",
34
34
  "install.success": "installed {{name}}",
35
35
  "install.success_with_version": "installed {{name}}@{{version}}",
36
+ "install.already_installed": "already-installed {{name}} (idempotent check hit; nothing to do)",
37
+ "install.already_installed_with_version": "already-installed {{name}}@{{version}} (idempotent check hit; nothing to do)",
36
38
  "install.aborted": "aborted: {{reason}}",
37
39
 
38
40
  "uninstall.dry_run.preview": "[dry-run] would uninstall '{{name}}' via method '{{method}}'",
@@ -33,6 +33,8 @@
33
33
  "install.audit_hint": " fix: run 'harnessed audit' to inspect manifest issues",
34
34
  "install.success": "installed {{name}}",
35
35
  "install.success_with_version": "installed {{name}}@{{version}}",
36
+ "install.already_installed": "already-installed {{name}} (idempotent check hit; nothing to do)",
37
+ "install.already_installed_with_version": "already-installed {{name}}@{{version}} (idempotent check hit; nothing to do)",
36
38
  "install.aborted": "aborted: {{reason}}",
37
39
 
38
40
  "uninstall.dry_run.preview": "[dry-run] would uninstall '{{name}}' via method '{{method}}'",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harnessed",
3
- "version": "4.16.3",
3
+ "version": "4.19.0",
4
4
  "description": "AI coding harness package manager + composition orchestrator",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -311,6 +311,8 @@ prompts:
311
311
  planning-with-files `/plan` when done.
312
312
  checklist:
313
313
  - "Before any edit: read the file you intend to change end-to-end"
314
+ # v4.17.0 — CodeGraph light wiring (opt-in; sister capabilities.yaml `codegraph` entry)
315
+ - "Codebase navigation: if the project has a `.codegraph/` index, prefer the codegraph MCP tools (`codegraph_explore`) for symbol lookup / call paths / impact analysis instead of grep/glob/file-by-file Read crawling"
314
316
  - "Smallest change that satisfies the acceptance criteria — no scope creep"
315
317
  - "≤200 LOC per file (split modules if growing past it)"
316
318
  - "Trust internal code: don't re-validate already-checked inputs at every layer"
@@ -291,6 +291,8 @@ prompts:
291
291
  更新 `progress.md`。
292
292
  checklist:
293
293
  - "任何编辑前:把你打算改的文件从头到尾读一遍"
294
+ # v4.17.0 — CodeGraph light wiring (opt-in; sister capabilities.yaml `codegraph` entry)
295
+ - "代码库导航:项目存在 `.codegraph/` 索引时,符号查找 / 调用链 / 影响面分析优先用 codegraph MCP 工具(`codegraph_explore`),替代 grep/glob/逐文件 Read 爬取"
294
296
  - "满足验收标准的最小改动 —— 不要范围蔓延"
295
297
  - "每个文件 ≤200 LOC(超过就拆模块)"
296
298
  - "信任内部代码:别在每一层重复校验已检查过的输入"
@@ -44,13 +44,20 @@ behavioral rule per D-09 L0 Discipline Substrate.
44
44
 
45
45
  ## mattpocock conditional route (D-05 invokes_tools)
46
46
 
47
- Phase 01-code 按 phase fact context 条件性 fire 3 mattpocock 招式:
47
+ Phase 01-code 按 phase fact context 条件性 fire 2 mattpocock 招式:
48
48
  - `improve-codebase-architecture` — 周期架构健康审查 (when `phase.architecture_health_audit == true`)
49
49
  - `diagnose` — bug 系统化排错 (when `subtask.bug_root_cause_unknown == true`)
50
50
 
51
- 3 触发条件 OR-chain, 任 1 fire 即 invoke 对应招式 — 不互斥 (sister CLAUDE.md
51
+ 2 触发条件 OR-chain, 任 1 fire 即 invoke 对应招式 — 不互斥 (sister CLAUDE.md
52
52
  "mattpocock 招式按需召唤" pattern, NOT exclusive). 无触发 = pure karpathy 心法 only.
53
53
 
54
+ ## CodeGraph navigation (opt-in, v4.17.0)
55
+
56
+ If the project has a `.codegraph/` index (opt-in CodeGraph semantic index — sister
57
+ `capabilities.yaml` `codegraph` entry), prefer the codegraph MCP tools
58
+ (`codegraph_explore`) for symbol lookup / call paths / impact analysis instead of
59
+ grep/glob/file-by-file Read crawling. No `.codegraph/` → skip this (no install nag).
60
+
54
61
  ## Phase 02-progress planning-with-files plugin 真接 (Q-AUDIT-5a LOCKED Option A)
55
62
 
56
63
  02-progress invokes the **Claude Code plugin** slash command `/plan` to update
@@ -44,13 +44,20 @@ behavioral rule,遵循 D-09 L0 Discipline Substrate。
44
44
 
45
45
  ## mattpocock conditional route (D-05 invokes_tools)
46
46
 
47
- Phase 01-code 根据 phase fact context 条件性 fire 3 个 mattpocock 招式:
47
+ Phase 01-code 根据 phase fact context 条件性 fire 2 个 mattpocock 招式:
48
48
  - `improve-codebase-architecture` — 周期架构健康审查(当 `phase.architecture_health_audit == true`)
49
49
  - `diagnose` — bug 系统化排错(当 `subtask.bug_root_cause_unknown == true`)
50
50
 
51
- 3 个触发条件 OR-chain,任 1 触发即 invoke 对应招式——互不排斥(对应 CLAUDE.md
51
+ 2 个触发条件 OR-chain,任 1 触发即 invoke 对应招式——互不排斥(对应 CLAUDE.md
52
52
  「mattpocock 招式按需召唤」模式,NOT exclusive)。无触发 = pure karpathy 心法 only。
53
53
 
54
+ ## CodeGraph navigation (opt-in, v4.17.0)
55
+
56
+ 项目存在 `.codegraph/` 索引时(opt-in 的 CodeGraph 语义索引 — 对应
57
+ `capabilities.yaml` 的 `codegraph` entry),符号查找 / 调用链 / 影响面分析优先用
58
+ codegraph MCP 工具(`codegraph_explore`),替代 grep/glob/逐文件 Read 爬取。
59
+ 无 `.codegraph/` 则跳过(不做安装劝导)。
60
+
54
61
  ## Phase 02-progress planning-with-files plugin 直接对接 (Q-AUDIT-5a LOCKED Option A)
55
62
 
56
63
  02-progress 调用 **Claude Code plugin** slash command `/plan` 更新