@kynver-app/runtime 0.1.120 → 0.1.123
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/chat/anthropic-credentials.d.ts +3 -1
- package/dist/chat/chat-claim-loop.d.ts +3 -1
- package/dist/cleanup-duplicate-worktrees.d.ts +3 -2
- package/dist/cleanup-git-probe.d.ts +5 -0
- package/dist/cleanup-guards.d.ts +4 -0
- package/dist/cleanup-retention-config.d.ts +2 -0
- package/dist/cleanup-run-liveness.d.ts +3 -6
- package/dist/cleanup-salvage-evidence.d.ts +33 -0
- package/dist/cleanup-types.d.ts +2 -0
- package/dist/cleanup-worker-harness-live.d.ts +9 -0
- package/dist/cleanup-worktree-index.d.ts +2 -0
- package/dist/cli.js +884 -514
- package/dist/cli.js.map +4 -4
- package/dist/config.d.ts +22 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +835 -463
- package/dist/index.js.map +4 -4
- package/dist/run-metadata-retention.d.ts +15 -0
- package/dist/server/cleanup.js +452 -308
- package/dist/server/cleanup.js.map +4 -4
- package/dist/server/default-repo.js.map +2 -2
- package/dist/server/monitor.js.map +2 -2
- package/dist/server/worker-policy.js.map +2 -2
- package/dist/stale-reconcile.d.ts +2 -0
- package/dist/start.d.ts +6 -0
- package/package.json +2 -2
package/dist/config.d.ts
CHANGED
|
@@ -16,6 +16,12 @@ export interface KynverUserConfig {
|
|
|
16
16
|
defaultDaemonRunId?: string;
|
|
17
17
|
/** Physical box pool for capacity snapshots (`forge` | `ghost`). Set via `kynver setup --box-kind`. */
|
|
18
18
|
boxKind?: "ghost" | "forge";
|
|
19
|
+
/**
|
|
20
|
+
* Opt-in: delegated chat turns may use the Claude Code CLI's stored OAuth
|
|
21
|
+
* token on this machine (M5.4). Set via `kynver start --chat-oauth` or
|
|
22
|
+
* `kynver setup --chat-oauth`; the token itself never leaves the box.
|
|
23
|
+
*/
|
|
24
|
+
chatUseClaudeOauth?: boolean;
|
|
19
25
|
/** Max concurrent workers on this machine. Omit to auto-size from RAM. */
|
|
20
26
|
maxConcurrentWorkers?: number;
|
|
21
27
|
/** Where maxConcurrentWorkers came from. */
|
|
@@ -41,6 +47,22 @@ export declare function loadRunnerToken(agentOsId?: string): string | undefined;
|
|
|
41
47
|
export declare function saveRunnerToken(agentOsId: string, token: string): void;
|
|
42
48
|
export declare function resolveBaseUrl(argsBaseUrl?: string): string;
|
|
43
49
|
export declare function resolveCallbackSecret(argsSecret?: string, agentOsId?: string): string;
|
|
50
|
+
/**
|
|
51
|
+
* Non-exiting sibling of `resolveCallbackSecretWithMint` for long-lived
|
|
52
|
+
* callers (the supervised daemon): a missing/unmintable runner credential
|
|
53
|
+
* must surface as a value, never `process.exit` — exiting inside the daemon
|
|
54
|
+
* child turns the keeper into a silent crash loop ("service active, runtime
|
|
55
|
+
* dead") and takes the chat claim loop down with it.
|
|
56
|
+
*/
|
|
57
|
+
export declare function tryResolveCallbackSecretWithMint(argsSecret?: string, agentOsId?: string, opts?: {
|
|
58
|
+
baseUrl?: string;
|
|
59
|
+
}): Promise<{
|
|
60
|
+
ok: true;
|
|
61
|
+
secret: string;
|
|
62
|
+
} | {
|
|
63
|
+
ok: false;
|
|
64
|
+
reason: string;
|
|
65
|
+
}>;
|
|
44
66
|
export declare function resolveCallbackSecretWithMint(argsSecret?: string, agentOsId?: string, opts?: {
|
|
45
67
|
baseUrl?: string;
|
|
46
68
|
}): Promise<string>;
|
package/dist/index.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export { assessOrphanWorktreeSafety } from "./cleanup-orphan-safety.js";
|
|
|
53
53
|
export { isGeneratedHarnessPath, HARNESS_BUILD_CACHE_RELATIVE_PATHS } from "./cleanup-build-cache-paths.js";
|
|
54
54
|
export { usage, main } from "./cli.js";
|
|
55
55
|
export { reconcileRunsCli, reconcileStaleWorkers, type ReconcileStaleWorkersResult, type StaleWorkerReconcileOutcome } from "./stale-reconcile.js";
|
|
56
|
-
export { repairMissingRunMetadata, collectFilesystemLiveRunKeys, isHarnessRunMetadataPath, runDirHasActiveRetentionSignals, workerDirHasActiveRetentionSignals, RUN_METADATA_ACTIVE_SIGNAL_MS, type RunMetadataRetentionOutcome, type RunMetadataRetentionResult, } from "./run-metadata-retention.js";
|
|
56
|
+
export { repairMissingRunMetadata, archiveTerminalWorkerMetadata, collectFilesystemLiveRunKeys, isHarnessRunMetadataPath, runDirHasActiveRetentionSignals, workerDirHasActiveRetentionSignals, RUN_METADATA_ACTIVE_SIGNAL_MS, TERMINAL_WORKER_ARCHIVE_AGE_MS, type TerminalWorkerArchiveOutcome, type TerminalWorkerArchiveResult, type RunMetadataRetentionOutcome, type RunMetadataRetentionResult, } from "./run-metadata-retention.js";
|
|
57
57
|
export { reconcileWorkerMetadata, reconcileWorkerMetadataCli, type WorkerMetadataReconcileOutcome, type WorkerMetadataReconcileResult, } from "./worker-metadata-reconcile.js";
|
|
58
58
|
export { reconcileLocalOnlyMergedPrAttention, type LocalPrAttentionReconcileOutcome, type LocalPrAttentionReconcileResult, } from "./local-pr-attention-reconcile.js";
|
|
59
59
|
export { canonicalWorkerDir, hasNestedRunsSegment, repairNestedRunsPath, resolveWorkerJsonPath, } from "./worker-metadata-paths.js";
|