harnessed 4.8.0 → 4.9.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 +35 -4
- package/dist/cli.mjs +17 -5
- 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.yaml +49 -0
- package/package.json +1 -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,OAkGb,CAAA;;;AC/FO,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,OAkGb,CAAA;;;AC/FO,IAAM,UAAU,eAAA,CAAI","file":"index.mjs","sourcesContent":["{\n \"name\": \"harnessed\",\n \"version\": \"4.9.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"]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# yaml-language-server: $schema=../../schemas/manifest.v1.schema.json
|
|
2
|
+
# Phase 35 (v5.0 Spec 3/G) — opt-in per-turn injection hook.
|
|
3
|
+
# Registers a UserPromptSubmit hook that runs bin/harnessed-inject-state.mjs each
|
|
4
|
+
# turn: the bin prints a <workflow-state> breadcrumb (you-are-here / next sub) +
|
|
5
|
+
# a relevance-filtered <project-context> block for the ACTIVE session's workflow
|
|
6
|
+
# (session-scoped via the composite ledger key — Phase 34/35). The bin exits 0
|
|
7
|
+
# silently when there is no active workflow, so an enabled hook in a non-workflow
|
|
8
|
+
# repo is a cheap no-op. Opt-in (manifests/optional/) because per-turn injection
|
|
9
|
+
# has a token cost (~1500 budget) and only matters in a harnessed-workflow repo.
|
|
10
|
+
# Idempotent — re-install on an existing matching entry → skip.
|
|
11
|
+
apiVersion: harnessed/v1
|
|
12
|
+
kind: Manifest
|
|
13
|
+
metadata:
|
|
14
|
+
name: perturn-inject
|
|
15
|
+
display_name: Per-Turn State Injection (UserPromptSubmit)
|
|
16
|
+
description: Opt-in UserPromptSubmit hook injecting the active session's workflow-state + project-context each turn (Spec 3/G).
|
|
17
|
+
upstream:
|
|
18
|
+
source: perturn-inject
|
|
19
|
+
homepage: https://github.com/easyinplay/harnessed
|
|
20
|
+
repository: https://github.com/easyinplay/harnessed.git
|
|
21
|
+
license: MIT
|
|
22
|
+
notice: First-party harnessed hook (Phase 35, v5.0 Spec 3/G).
|
|
23
|
+
spec:
|
|
24
|
+
type: cc-hook
|
|
25
|
+
component_type: command
|
|
26
|
+
category: meta
|
|
27
|
+
install_type: hook
|
|
28
|
+
install:
|
|
29
|
+
method: cc-hook-add
|
|
30
|
+
cmd: "node bin/harnessed-inject-state.mjs"
|
|
31
|
+
hook_event: UserPromptSubmit
|
|
32
|
+
hook_command: "node bin/harnessed-inject-state.mjs"
|
|
33
|
+
idempotent_check: "grep -q harnessed-inject-state ~/.claude/settings.json"
|
|
34
|
+
verify:
|
|
35
|
+
cmd: "grep -q harnessed-inject-state ~/.claude/settings.json"
|
|
36
|
+
timeout_ms: 5000
|
|
37
|
+
expected_exit_code: 0
|
|
38
|
+
uninstall:
|
|
39
|
+
cmd: "true"
|
|
40
|
+
upstream_health:
|
|
41
|
+
stability: beta
|
|
42
|
+
last_check: "2026-06-25"
|
|
43
|
+
last_known_good_version: "0.1.0"
|
|
44
|
+
fallback_action: warn
|
|
45
|
+
signed_by: easyinplay
|
|
46
|
+
platforms:
|
|
47
|
+
- linux
|
|
48
|
+
- darwin
|
|
49
|
+
- win32
|