@kynver-app/runtime 0.2.8 → 0.2.15
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.js +67 -64
- package/dist/dispatch-claim-release.d.ts +6 -0
- package/dist/harness-verify.d.ts +8 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +91 -88
- package/dist/local-run-store/admission-enforce.d.ts +38 -0
- package/dist/local-run-store/admission-shadow.d.ts +56 -0
- package/dist/local-run-store/dispatch-claim-recovery-startup.d.ts +11 -0
- package/dist/local-run-store/dispatch-claim-recovery.d.ts +54 -0
- package/dist/local-run-store/dispatch-receipts.d.ts +20 -0
- package/dist/local-run-store/index.d.ts +6 -1
- package/dist/local-run-store/index.js +17 -9
- package/dist/local-run-store/local-run-store.d.ts +11 -0
- package/dist/local-run-store/small-surfaces.d.ts +37 -0
- package/dist/local-run-store/sqlite/sqlite-local-run-store.d.ts +7 -1
- package/dist/resource-gate.d.ts +9 -0
- package/dist/server/cleanup.js +13 -13
- package/dist/server/default-repo.js +1 -1
- package/dist/server/heavy-verification.js +1 -1
- package/dist/server/memory-cost-enforce.js +2 -2
- package/dist/server/memory-cost.js +2 -2
- package/dist/server/monitor.js +6 -6
- package/dist/server/worker-policy.d.ts +1 -1
- package/dist/server/worker-policy.js +1 -1
- package/dist/worker-env.d.ts +40 -3
- package/dist/worktree-base-ref.d.ts +34 -0
- package/package.json +1 -1
|
@@ -4,12 +4,18 @@ export interface ReleaseDispatchClaimInput {
|
|
|
4
4
|
agentOsId: string;
|
|
5
5
|
taskId: string;
|
|
6
6
|
leaseOwner: string;
|
|
7
|
+
/** The lease token from claim time — the server refuses a superseded release (§7.7). */
|
|
8
|
+
leaseToken?: string | null;
|
|
7
9
|
failureDetail?: string;
|
|
8
10
|
}
|
|
9
11
|
export interface ReleaseDispatchClaimOutcome {
|
|
10
12
|
released: boolean;
|
|
11
13
|
releaseResponse: unknown;
|
|
12
14
|
httpOk: boolean;
|
|
15
|
+
/** True only when the POST itself failed (no HTTP response at all) — a
|
|
16
|
+
* transport failure is NOT a server refusal and callers that bracket on
|
|
17
|
+
* refusal must not bracket on it (D1b review A2). */
|
|
18
|
+
transportError: boolean;
|
|
13
19
|
}
|
|
14
20
|
/**
|
|
15
21
|
* Hand a dispatch-next lease back to the board when local worker spawn did not start.
|
package/dist/harness-verify.d.ts
CHANGED
|
@@ -19,4 +19,12 @@ export declare function runHarnessVerifyCommands(cwd: string, commands?: readonl
|
|
|
19
19
|
timeoutMs?: number;
|
|
20
20
|
/** Called synchronously before each command starts — safe for stderr progress logs. */
|
|
21
21
|
onBeforeCommand?: (cmd: string, index: number, total: number) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Stop after the first failing command (plan §7.5): a failed typecheck
|
|
24
|
+
* already fails the verify — running the full test suite after it wastes
|
|
25
|
+
* minutes of box time per broken-typecheck landing. Default ON; pass
|
|
26
|
+
* false to force every command (e.g. a diagnostics lane that wants the
|
|
27
|
+
* complete failure picture).
|
|
28
|
+
*/
|
|
29
|
+
failFast?: boolean;
|
|
22
30
|
}): HarnessVerifySummary;
|
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export { parseExecutorRefRoutingIntent, executorRefRequestsNonCursorWorker, type
|
|
|
37
37
|
export { assessDispatchModelGuard, type DispatchModelGuardInput, type DispatchModelGuardResult, } from "./dispatch-model-guard.js";
|
|
38
38
|
export { GLOBAL_DEFAULT_MODEL, CURSOR_DEFAULT_MODEL, inferModelRoutingFromTask, resolveGlobalDefaultModel, resolveModelFallback, resolveWorkerLaunch, type ModelRoutingDecision, } from "./model-routing.js";
|
|
39
39
|
export { redactHarness } from "./redact.js";
|
|
40
|
-
export { scrubWorkerEnv, scrubClaudeEnv, auditWorkerEnv, listForbiddenWorkerEnvKeys, isForbiddenWorkerEnvKey, FORBIDDEN_WORKER_ENV_KEYS, type WorkerEnvAudit, } from "./worker-env.js";
|
|
40
|
+
export { scrubWorkerEnv, scrubClaudeEnv, auditWorkerEnv, listForbiddenWorkerEnvKeys, listOperatorAllowedWorkerEnvKeys, isForbiddenWorkerEnvKey, FORBIDDEN_WORKER_ENV_KEYS, type WorkerEnvAudit, } from "./worker-env.js";
|
|
41
41
|
export { KYNVER_NO_PROD_DB_CREDENTIALS_ENV, REVIEW_WORKER_EXTRA_FORBIDDEN_ENV_KEYS, ProductionDatabaseCredentialBlockedError, assertProductionDatabaseResolutionAllowed, auditReviewWorkerCredentialScope, buildWorkerSpawnEnv, isNoProdCredentialReviewEnvironment, type BuildWorkerSpawnEnvOptions, type ReviewWorkerCredentialScopeAudit, } from "./security-review-environment.js";
|
|
42
42
|
export { isHarnessExpertReviewWorker } from "./harness-expert-review.js";
|
|
43
43
|
export { discoverProductionDbEnvFilePaths, expandHomePath } from "./db-credential-env-paths.js";
|