@deepseek-ai/dsh-hook-protocol 0.1.6-alpha.1 → 0.1.7-alpha.1
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/lib/index.js +1 -1
- package/lib/types/runner.d.ts +1 -1
- package/package.json +9 -9
package/lib/index.js
CHANGED
|
@@ -197,7 +197,7 @@ async function runHook(bash, hook, options, now) {
|
|
|
197
197
|
...options.env !== void 0 ? { env: options.env } : {}
|
|
198
198
|
};
|
|
199
199
|
try {
|
|
200
|
-
const result = await bash.
|
|
200
|
+
const result = await (await bash.execute(bash.resolve(request))).result();
|
|
201
201
|
return {
|
|
202
202
|
output: parseHookOutput(result.exitCode ?? void 0, result.stdout.text, result.stderr.text, options.expectedEventName),
|
|
203
203
|
durationMs: now() - started
|
package/lib/types/runner.d.ts
CHANGED
|
@@ -58,5 +58,5 @@ export interface RunHookResult {
|
|
|
58
58
|
* @param now - millisecond clock used for the reported duration.
|
|
59
59
|
* @returns the decoded output plus the run's wall-clock duration.
|
|
60
60
|
*/
|
|
61
|
-
export declare function runHook(bash: ShellExecutor, hook: CommandHook, options: RunHookOptions, now: () => number): Promise<RunHookResult>;
|
|
61
|
+
export declare function runHook(bash: Pick<ShellExecutor, 'resolve' | 'execute'>, hook: CommandHook, options: RunHookOptions, now: () => number): Promise<RunHookResult>;
|
|
62
62
|
//# sourceMappingURL=runner.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-hook-protocol",
|
|
3
3
|
"description": "Shared Claude Code / Codex hook wire protocol: matcher engine, stdin/exit-code/stdout codec, multi-hook merge, and hook/* session events",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7-alpha.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
],
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@deepseek-ai/dsh-shell": "^0.1.
|
|
36
|
-
"@deepseek-ai/dsh-
|
|
37
|
-
"@deepseek-ai/dsh-
|
|
38
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
35
|
+
"@deepseek-ai/dsh-shell": "^0.1.7-alpha.1",
|
|
36
|
+
"@deepseek-ai/dsh-invariants": "^0.1.7-alpha.1",
|
|
37
|
+
"@deepseek-ai/dsh-session": "^0.1.7-alpha.1",
|
|
38
|
+
"@deepseek-ai/cordis": "^4.0.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@deepseek-ai/dsh-shell": "^0.1.
|
|
42
|
-
"@deepseek-ai/dsh-invariants": "^0.1.
|
|
43
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
44
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
41
|
+
"@deepseek-ai/dsh-shell": "^0.1.7-alpha.1",
|
|
42
|
+
"@deepseek-ai/dsh-invariants": "^0.1.7-alpha.1",
|
|
43
|
+
"@deepseek-ai/dsh-session": "^0.1.7-alpha.1",
|
|
44
|
+
"@deepseek-ai/cordis": "^4.0.3"
|
|
45
45
|
}
|
|
46
46
|
}
|