@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.
@@ -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.
@@ -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";