@kynver-app/runtime 0.1.139 → 0.1.140
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 +53 -53
- package/dist/config.d.ts +7 -0
- package/dist/dispatch-start-abort.d.ts +3 -0
- package/dist/dispatch-start-readback.d.ts +27 -0
- package/dist/index.js +67 -67
- package/dist/monitor/monitor.types.d.ts +3 -0
- package/dist/pr-handoff/same-head-pr-guard.d.ts +10 -0
- package/dist/server/cleanup.js +10 -10
- package/dist/server/default-repo.js +1 -1
- package/dist/server/monitor.js +5 -5
- package/dist/status.d.ts +2 -0
- package/dist/worker-lease-sync.d.ts +15 -0
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -33,6 +33,13 @@ export interface KynverUserConfig {
|
|
|
33
33
|
/** @internal Advanced tuning — not required for setup. */
|
|
34
34
|
memUtilization?: number;
|
|
35
35
|
}
|
|
36
|
+
export interface AgentOsIdValidationResult {
|
|
37
|
+
ok: boolean;
|
|
38
|
+
value?: string;
|
|
39
|
+
reason?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function validateAgentOsId(raw: unknown): AgentOsIdValidationResult;
|
|
42
|
+
export declare function formatAgentOsIdValidationError(raw: unknown): string;
|
|
36
43
|
export declare function loadUserConfig(): KynverUserConfig;
|
|
37
44
|
export declare function saveUserConfig(config: KynverUserConfig): void;
|
|
38
45
|
/** Persist path fields with `~` instead of absolute home directories. */
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { HarnessWorkerRecord } from "./status.js";
|
|
2
|
+
/** Stop a just-spawned worker when dispatch-start readback fails closed. */
|
|
3
|
+
export declare function abortDispatchedWorkerAfterReadbackFailure(runId: string, worker: HarnessWorkerRecord, reason: string): HarnessWorkerRecord;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { HarnessWorkerRecord } from "./status.js";
|
|
2
|
+
import type { TaskLeaseSnapshot } from "./monitor/monitor.types.js";
|
|
3
|
+
export declare const DISPATCH_START_READBACK_PREFIX = "dispatch_start_readback_failed:";
|
|
4
|
+
export interface DispatchStartReadbackInput {
|
|
5
|
+
agentOsId: string;
|
|
6
|
+
taskId: string;
|
|
7
|
+
leaseOwner: string;
|
|
8
|
+
expectedLeaseToken: string;
|
|
9
|
+
worker: HarnessWorkerRecord;
|
|
10
|
+
baseUrl: string;
|
|
11
|
+
secret: string;
|
|
12
|
+
}
|
|
13
|
+
export interface DispatchStartReadbackResult {
|
|
14
|
+
ok: boolean;
|
|
15
|
+
error?: string;
|
|
16
|
+
detail?: Record<string, unknown>;
|
|
17
|
+
snapshot?: TaskLeaseSnapshot;
|
|
18
|
+
}
|
|
19
|
+
export declare function formatDispatchStartReadbackFailure(reason: string): string;
|
|
20
|
+
export declare function assessDispatchStartReadback(input: {
|
|
21
|
+
snapshot: TaskLeaseSnapshot | null | undefined;
|
|
22
|
+
leaseOwner: string;
|
|
23
|
+
expectedLeaseToken: string;
|
|
24
|
+
worker: HarnessWorkerRecord;
|
|
25
|
+
}): DispatchStartReadbackResult;
|
|
26
|
+
/** Post-spawn AgentOS readback — board must show a live lease matching the claim token. */
|
|
27
|
+
export declare function verifyDispatchStartReadback(input: DispatchStartReadbackInput): Promise<DispatchStartReadbackResult>;
|