@ngockhoale/ukit 3.4.73 → 3.4.75
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 +10 -0
- package/manifests/platform.full.yaml +15 -0
- package/package.json +4 -1
- package/template_project/.claude/commands/ukit/handoff-fullstack.md +34 -12
- package/template_project/.claude/hooks/completion-gate.sh +10 -1
- package/template_project/.claude/hooks/handoff-resume.sh +38 -53
- package/template_project/.claude/hooks/owner-stop-gate.mjs +41 -0
- package/template_project/.claude/hooks/skill-router.sh +473 -36
- package/template_project/.claude/hooks/verification-guard.sh +8 -1
- package/template_project/.claude/settings.json +33 -1
- package/template_project/.claude/ukit/index/publication-intent.mjs +128 -13
- package/template_project/.claude/ukit/index/route-task.mjs +124 -26
- package/template_project/.claude/ukit/runtime/block-breaker.mjs +1 -0
- package/template_project/.claude/ukit/runtime/compact-threshold.mjs +8 -1
- package/template_project/.claude/ukit/runtime/cron-operation-adapter.mjs +14 -5
- package/template_project/.claude/ukit/runtime/execution-ledger.mjs +399 -35
- package/template_project/.claude/ukit/runtime/handoff-intent.mjs +5 -0
- package/template_project/.claude/ukit/runtime/handoff-provenance.mjs +277 -0
- package/template_project/.claude/ukit/runtime/loop-state.mjs +23 -4
- package/template_project/.claude/ukit/runtime/operation-evidence.mjs +9 -0
- package/template_project/.claude/ukit/runtime/reinject-context.mjs +10 -0
- package/template_project/.claude/ukit/runtime/resumable-run.mjs +33 -11
- package/template_project/.claude/ukit/runtime/stop-coordinator.mjs +284 -58
- package/template_project/.omp/hooks/pre/ukit-bridge.js +171 -3
- package/scripts/dev/worktree-preflight.mjs +0 -166
- package/scripts/measure-decision-gateway.mjs +0 -306
- package/scripts/probe/codex-capability-probe.mjs +0 -169
|
@@ -193,7 +193,7 @@ export function bashOperationReceipt(rawCommand, response, transportSuccess, goa
|
|
|
193
193
|
// the registry actually printed a semver. Agent prose is never evidence; the completion gate compares the
|
|
194
194
|
// recorded version with package.json and live Git state before it treats a release as published.
|
|
195
195
|
const NPM_PUBLISH = /^npm\s+publish(?:\s|$)/;
|
|
196
|
-
const NPM_VIEW = /^npm\s+view\s+(\S+?)(
|
|
196
|
+
const NPM_VIEW = /^npm\s+view\s+(\S+?)(?:@(\S+))?\s+(version|dist\.shasum)(?:\s+--prefer-online)?(?:\s+2>&1)?\s*$/;
|
|
197
197
|
const SEMVER_LINE = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/;
|
|
198
198
|
export function releaseReceipt(rawCommand, response, transportSuccess) {
|
|
199
199
|
if (typeof rawCommand !== 'string') return null;
|
|
@@ -205,27 +205,36 @@ export function releaseReceipt(rawCommand, response, transportSuccess) {
|
|
|
205
205
|
const ok = transportSuccess === true && !masked;
|
|
206
206
|
if (NPM_PUBLISH.test(seg)) {
|
|
207
207
|
if (DRY_RUN.test(seg.replace(/'[^']*'|"[^"]*"/g, '""'))) return null;
|
|
208
|
-
|
|
208
|
+
const published = responseText(response).match(/(?:^|\n)\+\s+((?:@[^\s/]+\/)?[^\s@]+)@(\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?)\s*(?:\n|$)/);
|
|
209
|
+
return { type: 'publish', success: ok, ...(published ? { package: published[1], version: published[2] } : {}) };
|
|
209
210
|
}
|
|
210
211
|
const view = seg.match(NPM_VIEW);
|
|
211
212
|
if (view) {
|
|
212
213
|
const text = responseText(response);
|
|
214
|
+
if (view[3] !== 'version') {
|
|
215
|
+
const sha = /^[a-f0-9]{40}$/.test(text) && SEMVER_LINE.test(view[2] || '') && text;
|
|
216
|
+
return { type: 'view', success: ok && !!sha, version: view[2], integrity: sha, package: view[1] };
|
|
217
|
+
}
|
|
213
218
|
const version = SEMVER_LINE.test(text) ? text : null;
|
|
214
219
|
return { type: 'view', success: ok && version !== null, version, package: view[1] };
|
|
215
220
|
}
|
|
216
221
|
return null;
|
|
217
222
|
}
|
|
218
223
|
|
|
219
|
-
export function releaseOperationReceipt(command, response, transportSuccess, { sessionId, harness } = {}) {
|
|
224
|
+
export function releaseOperationReceipt(command, response, transportSuccess, { sessionId, harness, candidate } = {}) {
|
|
220
225
|
const found = releaseReceipt(command, response, transportSuccess);
|
|
221
226
|
if (!found) return null;
|
|
222
227
|
const scope = typeof sessionId === 'string' && sessionId.trim() ? `session:${sessionId.trim()}` : null;
|
|
223
228
|
const ok = found.success === true && Boolean(scope);
|
|
224
229
|
const base = { kind: 'operation', success: ok, transportSuccess: transportSuccess === true, harness };
|
|
225
230
|
if (found.type === 'publish') {
|
|
226
|
-
|
|
231
|
+
const state = found.package && found.version ? `published:${found.package}@${found.version}` : 'unproven';
|
|
232
|
+
const shasum = responseText(response).match(/(?:^|\n)npm notice shasum:\s+([a-f0-9]{40})\s*(?:\n|$)/)?.[1];
|
|
233
|
+
return { ...base, operation: { domain: 'release', role: 'mutation', scope, target: 'npm-publish', state,
|
|
234
|
+
...(/^[a-f0-9]{40,64}$/.test(candidate || '') ? { candidate } : {}), ...(shasum ? { integrity: shasum } : {}) } };
|
|
227
235
|
}
|
|
228
236
|
const state = ok && `published:${found.package}@${found.version}`.length <= 200
|
|
229
237
|
? `published:${found.package}@${found.version}` : 'unproven';
|
|
230
|
-
return { ...base, operation: { domain: 'release', role: 'state', scope, target: null, state, complete: ok && state !== 'unproven'
|
|
238
|
+
return { ...base, operation: { domain: 'release', role: 'state', scope, target: null, state, complete: ok && state !== 'unproven',
|
|
239
|
+
...(found.integrity ? { integrity: found.integrity, integrityFor: `${found.package}@${found.version}` } : {}) } };
|
|
231
240
|
}
|