@ngockhoale/ukit 3.4.30 → 3.4.31

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.
@@ -100,6 +100,10 @@ const TOOL_NAME_MAP = {
100
100
  // omp delegation surface (observed in real omp sessions): `task` = subagent fan-out with
101
101
  // input {context, tasks:[{agent,name,task}]}; `vibe_spawn` starts a worker; `hub` with
102
102
  // op:'start' launches an external process (see mapToolName's input-aware branch).
103
+ crondelete: 'CronDelete',
104
+ cron_delete: 'CronDelete',
105
+ cronlist: 'CronList',
106
+ cron_list: 'CronList',
103
107
  task: 'Task',
104
108
  vibe_spawn: 'Task',
105
109
  agent: 'Task',
@@ -260,6 +264,7 @@ function buildHookPayload(hookEventName, fields = {}) {
260
264
  ['toolName', 'tool_name'],
261
265
  ['toolInput', 'tool_input'],
262
266
  ['toolOutput', 'tool_output'],
267
+ ['toolResponse', 'tool_response'],
263
268
  ['toolResult', 'tool_result'],
264
269
  ['toolUseId', 'tool_use_id'],
265
270
  ['sessionId', 'session_id'],
@@ -765,6 +770,7 @@ function scriptsForToolCall(claudeToolName) {
765
770
  }
766
771
 
767
772
  function scriptsForToolResult(claudeToolName) {
773
+ if (claudeToolName === 'CronDelete' || claudeToolName === 'CronList') return ['record-execution.mjs'];
768
774
  const matcherGroup = matcherGroupFor(claudeToolName);
769
775
  return matcherGroup ? (HOOK_EVENT_MAP.tool_result[matcherGroup] ?? []) : [];
770
776
  }
@@ -904,10 +910,11 @@ export async function runToolResult(pi, event, { projectRoot, context: extension
904
910
  isError: Boolean(event.isError),
905
911
  details: event.details,
906
912
  };
907
- const payload = buildHookPayload('PostToolUse', {
913
+ const payload = buildHookPayload(event.isError ? 'PostToolUseFailure' : 'PostToolUse', {
908
914
  toolName,
909
915
  toolInput: normalizeToolInput(toolName, event.input),
910
916
  toolOutput,
917
+ toolResponse: { ...toolOutput, content: event.content },
911
918
  toolResult: {
912
919
  content: event.content,
913
920
  details: event.details,
@@ -29,7 +29,7 @@
29
29
  <!-- RULE: STALL-01 -->
30
30
  - Announce long waits: `Waiting for API response / tool result — will keep retrying; check your network/API provider if this persists`. Surface errors verbatim; suspect network/API — **never blame UKit**.
31
31
  <!-- RULE: STALL-02 -->
32
- - Stall rules extend EXEC-04 (every stop says why); they do not replace it.
32
+ - Stall rules extend EXEC-04 (every stop says why); they do not replace it. Retry guidance applies only to transient network/API failures, never deterministic invalid arguments or unsupported capabilities (e.g. fork + remote isolation): do not repeat the same call; choose a supported approach within user constraints or report the limitation.
33
33
  <!-- RULE: STALL-03 -->
34
34
  - **Conditional workaround only:** one tool call per assistant message only when malformed/concatenated tool-input errors are observed or the harness is known-affected — healthy hosts keep parallel calls.
35
35
 
@@ -29,7 +29,7 @@
29
29
  <!-- RULE: STALL-01 -->
30
30
  - Announce long waits: `Waiting for API response / tool result — will keep retrying; check your network/API provider if this persists`. Surface errors verbatim; suspect network/API — **never blame UKit**.
31
31
  <!-- RULE: STALL-02 -->
32
- - Stall rules extend EXEC-04 (every stop says why); they do not replace it.
32
+ - Stall rules extend EXEC-04 (every stop says why); they do not replace it. Retry guidance applies only to transient network/API failures, never deterministic invalid arguments or unsupported capabilities (e.g. fork + remote isolation): do not repeat the same call; choose a supported approach within user constraints or report the limitation.
33
33
  <!-- RULE: STALL-03 -->
34
34
  - **Conditional workaround only:** one tool call per assistant message only when malformed/concatenated tool-input errors are observed or the harness is known-affected — healthy hosts keep parallel calls.
35
35
 
@@ -26,7 +26,7 @@
26
26
  <!-- RULE: STALL-01 -->
27
27
  - Announce long waits: `Waiting for API response / tool result — will keep retrying; check your network/API provider if this persists`. Surface errors verbatim; suspect network/API — **never blame UKit**.
28
28
  <!-- RULE: STALL-02 -->
29
- - Stall rules extend EXEC-04 (every stop says why); they do not replace it.
29
+ - Stall rules extend EXEC-04 (every stop says why); they do not replace it. Retry guidance applies only to transient network/API failures, never deterministic invalid arguments or unsupported capabilities (e.g. fork + remote isolation): do not repeat the same call; choose a supported approach within user constraints or report the limitation.
30
30
  <!-- RULE: STALL-03 -->
31
31
  - **Conditional workaround only:** one tool call per assistant message only when malformed/concatenated tool-input errors are observed or the harness is known-affected — healthy hosts keep parallel calls.
32
32