@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.
- package/CHANGELOG.md +13 -0
- package/manifests/documentation.yaml +12 -0
- package/package.json +1 -1
- package/src/core/executionContracts.js +32 -0
- package/src/decision/client.js +15 -0
- package/src/decision/protocol.js +12 -14
- package/src/index/routeResolver.js +2 -2
- package/src/index/taskRouting.js +3 -1
- package/template_project/.claude/hooks/record-execution.mjs +1 -3
- package/template_project/.claude/hooks/skill-router.sh +82 -9
- package/template_project/.claude/settings.json +22 -0
- package/template_project/.claude/ukit/index/fix-loop-escalation.mjs +10 -4
- package/template_project/.claude/ukit/index/review-verdict.mjs +14 -4
- package/template_project/.claude/ukit/index/route-resolver.mjs +34 -2
- package/template_project/.claude/ukit/index/route-task.mjs +35 -7
- package/template_project/.claude/ukit/index/sidecar-decision.mjs +3 -59
- package/template_project/.claude/ukit/index/unic-decision.mjs +27 -14
- package/template_project/.claude/ukit/runtime/cron-operation-adapter.mjs +43 -0
- package/template_project/.claude/ukit/runtime/execution-ledger.mjs +160 -33
- package/template_project/.claude/ukit/runtime/loop-state.mjs +1 -1
- package/template_project/.claude/ukit/runtime/operation-evidence.mjs +87 -0
- package/template_project/.omp/hooks/pre/ukit-bridge.js +8 -1
- package/template_project/AGENTS.md +1 -1
- package/template_project/CLAUDE.md +1 -1
- package/template_project/instructions/core.md +1 -1
|
@@ -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
|
|