@deepseek-ai/dsh-hook-protocol 0.1.6-alpha.2 → 0.1.7-alpha.2

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 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.run(bash.resolve(request));
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
@@ -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.6-alpha.2",
4
+ "version": "0.1.7-alpha.2",
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.6-alpha.2",
36
- "@deepseek-ai/dsh-session": "^0.1.6-alpha.2",
37
- "@deepseek-ai/cordis": "^4.0.2",
38
- "@deepseek-ai/dsh-invariants": "^0.1.6-alpha.2"
35
+ "@deepseek-ai/dsh-shell": "0.1.7-alpha.2",
36
+ "@deepseek-ai/dsh-invariants": "0.1.7-alpha.2",
37
+ "@deepseek-ai/dsh-session": "0.1.7-alpha.2",
38
+ "@deepseek-ai/cordis": "~4.0.4"
39
39
  },
40
40
  "devDependencies": {
41
- "@deepseek-ai/dsh-invariants": "^0.1.6-alpha.2",
42
- "@deepseek-ai/dsh-shell": "^0.1.6-alpha.2",
43
- "@deepseek-ai/dsh-session": "^0.1.6-alpha.2",
44
- "@deepseek-ai/cordis": "^4.0.2"
41
+ "@deepseek-ai/dsh-shell": "0.1.7-alpha.2",
42
+ "@deepseek-ai/dsh-invariants": "0.1.7-alpha.2",
43
+ "@deepseek-ai/dsh-session": "0.1.7-alpha.2",
44
+ "@deepseek-ai/cordis": "~4.0.4"
45
45
  }
46
46
  }