@ngockhoale/ukit 3.4.32 → 3.4.34
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 +16 -0
- package/manifests/documentation.yaml +11 -0
- package/package.json +1 -1
- package/src/core/diffPlan.js +87 -8
- package/src/core/executionContracts.js +54 -8
- package/src/core/metadata.js +5 -0
- package/src/core/ompConfigMerge.js +60 -0
- package/src/core/ompProjectConfig.js +462 -0
- package/src/core/runInstallPipeline.js +25 -1
- package/src/core/uninstall.js +28 -1
- package/src/index/taskRouting.js +9 -0
- package/src/render/buildVariables.js +4 -0
- package/template_project/.claude/hooks/block-dangerous.mjs +15 -0
- package/template_project/.claude/hooks/handoff-model-guard.sh +37 -2
- package/template_project/.claude/hooks/record-execution.mjs +9 -0
- package/template_project/.claude/hooks/skill-router.sh +119 -10
- package/template_project/.claude/ukit/index/post-edit-verify.mjs +9 -0
- package/template_project/.claude/ukit/index/route-resolver.mjs +54 -8
- package/template_project/.claude/ukit/index/route-task.mjs +106 -1
- package/template_project/.claude/ukit/runtime/context-budget-policy.mjs +309 -0
- package/template_project/.claude/ukit/runtime/cron-operation-adapter.mjs +67 -0
- package/template_project/.claude/ukit/runtime/execution-ledger.mjs +47 -10
- package/template_project/.claude/ukit/runtime/operation-evidence.mjs +7 -3
- package/template_project/.claude/ukit/runtime/plan-dispatch.mjs +74 -0
- package/template_project/.claude/ukit/runtime/reinject-context.mjs +7 -0
- package/template_project/.omp/config.yml +30 -14
|
@@ -124,18 +124,34 @@ bash:
|
|
|
124
124
|
memory:
|
|
125
125
|
backend: off
|
|
126
126
|
|
|
127
|
-
#
|
|
128
|
-
#
|
|
129
|
-
#
|
|
130
|
-
#
|
|
131
|
-
#
|
|
132
|
-
#
|
|
133
|
-
#
|
|
134
|
-
#
|
|
135
|
-
#
|
|
136
|
-
#
|
|
137
|
-
#
|
|
138
|
-
# omp rejects it outright (`omp config get compact.autoCompactWindow` → "Unknown
|
|
139
|
-
# setting"), so auto-compact never moved off omp's default. See PLAN.md §3 D13.
|
|
127
|
+
# omp-side auto-compaction, project-scoped (omp reads <project>/.omp/config.yml and it
|
|
128
|
+
# takes precedence over ~/.omp/agent/config.yml, which UKit never touches).
|
|
129
|
+
# Keys VERIFIED against omp v18.8.9 (`omp config get compaction.<key>`):
|
|
130
|
+
# thresholdTokens is a fixed token limit that overrides thresholdPercent when > 0
|
|
131
|
+
# (omp default -1).
|
|
132
|
+
# thresholdTokens = min(90000, Claude Code auto-compact window), so a small-context
|
|
133
|
+
# budget is never exceeded by the omp threshold. Starting default, not a hard limit:
|
|
134
|
+
# edit any value here and `ukit update` keeps it. The legacy shipped 350000 is migrated
|
|
135
|
+
# only when UKit's install ledger proves UKit wrote it; `ukit uninstall` reverts just
|
|
136
|
+
# UKit's own additions and keeps your edits. Auto-compact must still trigger BEFORE
|
|
137
|
+
# context-hardcap-gate blocks tool calls.
|
|
140
138
|
compaction:
|
|
141
|
-
|
|
139
|
+
enabled: true
|
|
140
|
+
thresholdTokens: {{omp.compactionThresholdTokens}}
|
|
141
|
+
midTurnEnabled: true
|
|
142
|
+
keepRecentTokens: 20000
|
|
143
|
+
|
|
144
|
+
# Per-agent native compaction thresholds (omp v18.8.9 `task.agentCompactionThresholdOverrides`,
|
|
145
|
+
# keyed by agent name, positive integer tokens). SOFT targets for scoped subagent context:
|
|
146
|
+
# omp compacts the agent's session when it grows past the value — this is NOT a request
|
|
147
|
+
# hard cap (one step can still jump past it). Per-key merge: any agent key you set stays;
|
|
148
|
+
# your other `task:` settings are never touched; `ukit uninstall` removes only these keys
|
|
149
|
+
# when they still carry the shipped value.
|
|
150
|
+
task:
|
|
151
|
+
agentCompactionThresholdOverrides:
|
|
152
|
+
feature-implementer: 80000
|
|
153
|
+
bug-debugger: 80000
|
|
154
|
+
code-reviewer: 80000
|
|
155
|
+
handoff-planner: 60000
|
|
156
|
+
ukit-small-task-maintainer: 40000
|
|
157
|
+
ukit-vision-analyst: 40000
|