harnessed 4.37.0 → 4.39.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/bin/harnessed-inject-state.mjs +22 -2
- package/dist/cli.mjs +258 -10
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/manifests/optional/perturn-inject-invalidate.yaml +57 -0
- package/package.json +1 -1
- package/workflows/capabilities.yaml +110 -110
- package/workflows/defaults.yaml +17 -7
- package/workflows/discuss/phase/workflow.yaml +0 -1
- package/workflows/discuss/strategic/workflow.yaml +0 -2
- package/workflows/discuss/subtask/workflow.yaml +0 -1
- package/workflows/judgments/stage-routing.yaml +10 -0
- package/workflows/plan/architecture/workflow.yaml +0 -1
- package/workflows/plan/phase/workflow.yaml +0 -1
- package/workflows/research/workflow.yaml +0 -6
- package/workflows/retro/workflow.yaml +0 -1
- package/workflows/task/clarify/workflow.yaml +0 -1
- package/workflows/task/code/workflow.yaml +0 -1
- package/workflows/task/deliver/workflow.yaml +0 -1
- package/workflows/task/test/workflow.yaml +0 -1
- package/workflows/verify/auto/SKILL.md +11 -0
- package/workflows/verify/auto/SKILL.zh-Hans.md +11 -0
- package/workflows/verify/auto/workflow.yaml +10 -1
- package/workflows/verify/code-review/workflow.yaml +0 -1
- package/workflows/verify/paranoid/workflow.yaml +0 -1
- package/workflows/verify/progress/workflow.yaml +0 -1
- package/workflows/verify/second-opinion/SKILL.md +89 -0
- package/workflows/verify/second-opinion/SKILL.zh-Hans.md +88 -0
- package/workflows/verify/second-opinion/workflow.yaml +50 -0
- package/workflows/verify/simplify/workflow.yaml +0 -1
package/dist/index.mjs
CHANGED
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,QAqGb,CAAA;;;AClGO,IAAM,UAAU,eAAA,CAAI","file":"index.mjs","sourcesContent":["{\n \"name\": \"harnessed\",\n \"version\": \"4.
|
|
1
|
+
{"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,QAqGb,CAAA;;;AClGO,IAAM,UAAU,eAAA,CAAI","file":"index.mjs","sourcesContent":["{\n \"name\": \"harnessed\",\n \"version\": \"4.39.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 && node ./scripts/build-hooks.mjs\",\n \"build:hooks\": \"node ./scripts/build-hooks.mjs\",\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 \"build:binary\": \"bun scripts/build-binary.mjs\"\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 \"esbuild\": \"0.27.7\",\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"]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# yaml-language-server: $schema=../../schemas/manifest.v1.schema.json
|
|
2
|
+
# 4.38.0 — the compaction half of per-turn injection. PAIRS WITH `perturn-inject`;
|
|
3
|
+
# installing it alone does nothing (there is no delta cache to drop), and
|
|
4
|
+
# installing perturn-inject alone silently falls back to the 4.25.0 behaviour —
|
|
5
|
+
# a blind HARNESSED_INJECT_REFRESH_TURNS timer (default 10).
|
|
6
|
+
#
|
|
7
|
+
# Why it exists: the per-turn hook skips re-emitting <project-context> while the
|
|
8
|
+
# block's hash is unchanged, because the copy already sits in the conversation.
|
|
9
|
+
# Compaction removes that copy without touching the cache, so the skip keeps
|
|
10
|
+
# firing on behalf of content that is gone — up to REFRESH_TURNS-1 turns blind.
|
|
11
|
+
# injectCache.ts (4.25.0) named the timer "a stateless alternative to a PreCompact
|
|
12
|
+
# hook we do not install"; this manifest installs the real signal instead.
|
|
13
|
+
#
|
|
14
|
+
# SessionStart carries every context discontinuity: `compact` compresses the
|
|
15
|
+
# earlier copy away, `clear` wipes it, `resume` rebuilds from the record. No
|
|
16
|
+
# hook_matcher — `startup` is already a no-op (a new session id is a new cache
|
|
17
|
+
# key) and an unfiltered entry is one less thing to keep in sync with CC's source
|
|
18
|
+
# vocabulary. Same bin as perturn-inject, one flag apart; silent, always exit 0.
|
|
19
|
+
apiVersion: harnessed/v1
|
|
20
|
+
kind: Manifest
|
|
21
|
+
metadata:
|
|
22
|
+
name: perturn-inject-invalidate
|
|
23
|
+
display_name: Per-Turn Injection Cache Invalidation (SessionStart)
|
|
24
|
+
description: Opt-in SessionStart hook dropping the per-turn delta cache after compact/clear/resume so the next turn re-injects in full. Pairs with perturn-inject.
|
|
25
|
+
upstream:
|
|
26
|
+
source: perturn-inject-invalidate
|
|
27
|
+
homepage: https://github.com/easyinplay/harnessed
|
|
28
|
+
repository: https://github.com/easyinplay/harnessed.git
|
|
29
|
+
license: MIT
|
|
30
|
+
notice: First-party harnessed hook (4.38.0).
|
|
31
|
+
spec:
|
|
32
|
+
type: cc-hook
|
|
33
|
+
component_type: command
|
|
34
|
+
category: meta
|
|
35
|
+
install_type: hook
|
|
36
|
+
install:
|
|
37
|
+
method: cc-hook-add
|
|
38
|
+
cmd: "node bin/harnessed-inject-state.mjs --invalidate"
|
|
39
|
+
hook_event: SessionStart
|
|
40
|
+
hook_command: "node bin/harnessed-inject-state.mjs --invalidate"
|
|
41
|
+
idempotent_check: "grep -q 'harnessed-inject-state.mjs --invalidate' ~/.claude/settings.json"
|
|
42
|
+
verify:
|
|
43
|
+
cmd: "grep -q 'harnessed-inject-state.mjs --invalidate' ~/.claude/settings.json"
|
|
44
|
+
timeout_ms: 5000
|
|
45
|
+
expected_exit_code: 0
|
|
46
|
+
uninstall:
|
|
47
|
+
cmd: "true"
|
|
48
|
+
upstream_health:
|
|
49
|
+
stability: beta
|
|
50
|
+
last_check: "2026-08-26"
|
|
51
|
+
last_known_good_version: "0.1.0"
|
|
52
|
+
fallback_action: warn
|
|
53
|
+
signed_by: easyinplay
|
|
54
|
+
platforms:
|
|
55
|
+
- linux
|
|
56
|
+
- darwin
|
|
57
|
+
- win32
|