@kynver-app/runtime 0.1.148 → 0.1.152
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/dist/cli-output/worker-start-stdout.d.ts +11 -0
- package/dist/cli.js +53 -53
- package/dist/exited-worker-handoff-capture.d.ts +19 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +67 -67
- package/dist/instruction-bundle/contract.js +2 -2
- package/dist/server/cleanup.js +7 -7
- package/dist/sidecar-cli.d.ts +16 -0
- package/dist/status.d.ts +2 -0
- package/dist/worker-persona-catalog.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type CompletionSnapshot } from "./worker-lifecycle.js";
|
|
2
|
+
import type { HarnessWorkerRecord, RawHarnessWorkerStatus } from "./status.js";
|
|
3
|
+
export type ExitedHandoffCaptureSource = "stdout_stream" | "heartbeat_complete" | "heartbeat_summary" | "exit_failure" | "none";
|
|
4
|
+
export interface ExitedHandoffCapture {
|
|
5
|
+
finalResult: unknown;
|
|
6
|
+
source: ExitedHandoffCaptureSource;
|
|
7
|
+
snapshot: CompletionSnapshot;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Best-effort finalResult for a worker whose process has exited without a
|
|
11
|
+
* stream-json terminal event. Priority: stdout result → heartbeat complete →
|
|
12
|
+
* structured exit failure → non-terminal heartbeat summary.
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveExitedWorkerFinalResult(input: {
|
|
15
|
+
worker: HarnessWorkerRecord;
|
|
16
|
+
status: RawHarnessWorkerStatus;
|
|
17
|
+
}): ExitedHandoffCapture | null;
|
|
18
|
+
/** Persist completionSnapshot when reconcile discovers terminal handoff evidence. */
|
|
19
|
+
export declare function persistExitedWorkerHandoffCapture(worker: HarnessWorkerRecord, capture: ExitedHandoffCapture): boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export { assessWorkerLanding, type WorkerLandingVerdict } from "./landing-gate.j
|
|
|
18
18
|
export { isEngagementRequiredSkip } from "./fortress-engagement-gate.js";
|
|
19
19
|
export { assessWorkerLandingContract, landingContractAttentionReason, type WorkerLandingContract, type WorkerLandingContractVerdict, type TargetPrReconciliation, } from "./landing-contract-gate.js";
|
|
20
20
|
export { assessExitedWorkerSalvage, type ExitedSalvageAssessment, type ExitedSalvageKind, } from "./exited-salvage.js";
|
|
21
|
+
export { persistExitedWorkerHandoffCapture, resolveExitedWorkerFinalResult, type ExitedHandoffCapture, type ExitedHandoffCaptureSource, } from "./exited-worker-handoff-capture.js";
|
|
21
22
|
export { buildPrompt } from "./prompt.js";
|
|
22
23
|
export { canonicalJsonStringify, computeInstructionBundleVersion, deriveInstructionBundleKeyId, parseRawEd25519Key, isSignedInstructionBundleShape, PINNED_INSTRUCTION_BUNDLE_PUBLIC_KEYS, resolveInstructionBundlePublicKey, verifyInstructionBundleSignatureWithKey, verifySignedInstructionBundle, EMBEDDED_INSTRUCTION_BUNDLE, EMBEDDED_INSTRUCTION_BUNDLE_VERSION, getActiveInstructionBundle, getActiveInstructionBundleSource, getActiveInstructionBundleVersion, setActiveInstructionBundle, resolveInstructionText, resolvePolicyThreshold, resolveBundlePersona, ensureInstructionBundle, instructionBundleCachePath, loadInstructionBundleCache, saveInstructionBundleCache, INSTRUCTION_BUNDLE_REFRESH_TTL_MS, type InstructionBundle, type InstructionBundleContent, type InstructionBundlePersona, type SignedInstructionBundle, type InstructionBundleSource, type InstructionBundleVerifyResult, type EnsureInstructionBundleOptions, type EnsureInstructionBundleResult, } from "./instruction-bundle/index.js";
|
|
23
24
|
export { WORKER_PERSONA_CATALOG, getWorkerPersonaCatalogEntry, getPersonaDispatchLane, getPersonaDefaultRoleLane, isKnownWorkerPersonaSlug, workerPersonaReviewSlugs, workerPersonaLandingSlugs, type WorkerPersonaCatalogEntry, type WorkerPersonaCatalogSlug, type WorkerPersonaDispatchLane, type WorkerPersonaDefaultRoleLane, } from "./worker-persona-catalog.js";
|