-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
184 lines (184 loc) · 7.65 KB
/
Copy pathpackage.json
File metadata and controls
184 lines (184 loc) · 7.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
{
"name": "@libar-dev/agent-harness-kit",
"version": "0.3.0",
"packageManager": "pnpm@10.4.1",
"type": "module",
"description": "Agent harness toolkit for Claude Code hooks plus attach-only Grok Build and OmO-native (senpi) observe adapters. Typed session processing, standalone hook forwarders, and Zod-validated hook I/O.",
"sideEffects": false,
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"claude-session-export": "dist/cli/export-sessions.js",
"claude-session-tail": "dist/cli/tail-session.js"
},
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./processing": {
"import": "./dist/processing/index.js",
"types": "./dist/processing/index.d.ts"
},
"./grok": {
"import": "./dist/grok/index.js",
"types": "./dist/grok/index.d.ts"
},
"./grok/processing": {
"import": "./dist/grok/processing/index.js",
"types": "./dist/grok/processing/index.d.ts"
},
"./senpi": {
"import": "./dist/senpi/index.js",
"types": "./dist/senpi/index.d.ts"
},
"./senpi/processing": {
"import": "./dist/senpi/processing/index.js",
"types": "./dist/senpi/processing/index.d.ts"
},
"./validation": {
"import": "./dist/validation/index.js",
"types": "./dist/validation/index.d.ts"
},
"./types": {
"import": "./dist/types/index.js",
"types": "./dist/types/index.d.ts"
},
"./utils": {
"import": "./dist/utils/index.js",
"types": "./dist/utils/index.d.ts"
},
"./pre-tool-use": {
"import": "./dist/pre-tool-use/index.js",
"types": "./dist/pre-tool-use/index.d.ts"
},
"./pre-tool-use/*": {
"import": "./dist/pre-tool-use/*.js",
"types": "./dist/pre-tool-use/*.d.ts"
},
"./post-tool-use": {
"import": "./dist/post-tool-use/index.js",
"types": "./dist/post-tool-use/index.d.ts"
},
"./post-tool-use/*": {
"import": "./dist/post-tool-use/*.js",
"types": "./dist/post-tool-use/*.d.ts"
},
"./lifecycle": {
"import": "./dist/lifecycle/index.js",
"types": "./dist/lifecycle/index.d.ts"
},
"./lifecycle/*": {
"import": "./dist/lifecycle/*.js",
"types": "./dist/lifecycle/*.d.ts"
},
"./endpoint-discovery": {
"import": "./dist/endpoint-discovery/index.js",
"types": "./dist/endpoint-discovery/index.d.ts"
},
"./forwarder": {
"types": "./dist/forwarder/index.d.ts",
"import": "./dist/forwarder/index.js",
"default": "./dist/forwarder/index.js"
}
},
"scripts": {
"build": "tsc --project tsconfig.build.json && esbuild src/forwarder/hook-forwarder.ts --bundle --platform=node --format=esm --target=node18 --outfile=dist/standalone/hook-forwarder.mjs && esbuild src/forwarder/hook-forwarder-senpi.ts --bundle --platform=node --format=esm --target=node22 --outfile=dist/standalone/hook-forwarder-senpi.mjs && node scripts/chmod-bins.mjs",
"build:emergency": "tsc --project tsconfig.emergency.json && node scripts/chmod-bins.mjs",
"dev": "tsx watch src/index.ts",
"docs:sync-upstream": "node scripts/sync-upstream-docs.mjs",
"type-check": "tsc --noEmit",
"type-check:strict": "tsc --noEmit --strict --noImplicitAny",
"check": "pnpm run type-check && pnpm run lint",
"check:fast": "tsc --noEmit",
"check:ci": "pnpm run type-check && pnpm run lint --no-cache",
"fix": "pnpm run lint:fix && pnpm run type-check",
"fix:all": "prettier --write 'src/**/*.{ts,tsx,js,jsx,json,md}' || echo 'Prettier encountered syntax errors but continuing...' && pnpm run lint:fix || echo 'ESLint fixes completed with potential errors'",
"validate": "pnpm run check",
"senpi:smoke": "tsx scripts/senpi-live-smoke.mts",
"senpi:compatibility": "tsx scripts/senpi-compatibility-probe.mts",
"consumer:matrix": "node scripts/clean-consumer.mjs --matrix",
"consumer:happy": "node scripts/clean-consumer.mjs --mode happy",
"validate:dev": "pnpm run check",
"validate:ci": "pnpm run check:ci",
"test": "vitest",
"test:run": "vitest run",
"test:once": "vitest run",
"test:coverage": "vitest run --coverage",
"lint": "eslint . --cache --cache-location .eslint-custom.cache",
"lint:fix": "eslint . --cache --cache-location .eslint-custom.cache --fix",
"lint:dev": "eslint . --cache --cache-location .eslint-custom.cache",
"lint:ci": "eslint . --no-cache",
"lint:cache-clear": "rm -rf .eslint-custom.cache",
"hook:test": "echo '{\"tool_name\":\"Bash\",\"tool_input\":{\"command\":\"echo test\"},\"hook_event_name\":\"PreToolUse\",\"session_id\":\"test\",\"transcript_path\":\"/tmp/test.json\",\"cwd\":\"/tmp\",\"permission_mode\":\"default\",\"tool_use_id\":\"test-id\"}' | tsx src/pre-tool-use/bash-validator.ts",
"hook:test:notification": "echo '{\"hook_event_name\":\"Notification\",\"session_id\":\"test\",\"transcript_path\":\"/tmp/test.json\",\"cwd\":\"/tmp\",\"permission_mode\":\"default\",\"message\":\"Test notification\",\"notification_type\":\"idle_prompt\"}' | tsx src/lifecycle/notification-handler.ts",
"hook:test:setup": "echo '{\"hook_event_name\":\"Setup\",\"session_id\":\"test\",\"transcript_path\":\"/tmp/test.json\",\"cwd\":\"/tmp\",\"permission_mode\":\"default\",\"trigger\":\"init\"}' | tsx src/lifecycle/setup.ts",
"hook:test:session": "echo '{\"hook_event_name\":\"SessionStart\",\"session_id\":\"test\",\"transcript_path\":\"/tmp/test.json\",\"cwd\":\"/tmp\",\"permission_mode\":\"default\",\"source\":\"startup\",\"model\":\"claude-sonnet-4-5-20250929\"}' | tsx src/lifecycle/session-start.ts",
"hook:test:message-display": "echo '{\"hook_event_name\":\"MessageDisplay\",\"session_id\":\"test\",\"transcript_path\":\"/tmp/test.json\",\"cwd\":\"/tmp\",\"permission_mode\":\"default\",\"turn_id\":\"11111111-1111-4111-8111-111111111111\",\"message_id\":\"22222222-2222-4222-8222-222222222222\",\"index\":0,\"final\":false,\"delta\":\"Test message\"}' | tsx src/lifecycle/message-display.ts",
"hook:session-id-display": "tsx src/lifecycle/session-id-display.ts",
"hook:eslint-disable-blocker": "tsx src/pre-tool-use/eslint-disable-blocker.ts",
"export-sessions": "tsx src/cli/export-sessions.ts",
"tail-session": "tsx src/cli/tail-session.ts",
"clean": "rm -rf dist",
"prepare": "pnpm run build",
"reset": "pnpm run clean && pnpm run fix && pnpm run build",
"prepack": "pnpm run clean && pnpm run check && pnpm run build && pnpm run test:run"
},
"dependencies": {
"@noble/hashes": "^2.3.0",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/node": "^24.0.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"@vitest/coverage-v8": "^4.1.7",
"esbuild": "^0.25.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "^3.0.0",
"tsx": "^4.23.12",
"typescript": "^5.0.0",
"vite": "^6.0.0",
"vitest": "^4.1.7"
},
"engines": {
"node": ">=22.0.0"
},
"files": [
"dist/**/*",
"README.md",
"CHANGELOG.md",
"LICENSE"
],
"keywords": [
"claude-code",
"grok",
"senpi",
"hooks",
"typescript",
"ai",
"automation",
"development-tools"
],
"author": "Libar AI",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/libar-dev/agent-harness-kit.git"
},
"bugs": {
"url": "https://github.com/libar-dev/agent-harness-kit/issues"
},
"homepage": "https://github.com/libar-dev/agent-harness-kit#readme",
"publishConfig": {
"access": "public",
"provenance": true
},
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
]
}
}