@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.
@@ -1,6 +1,7 @@
1
1
  import { type RunFinalizeResult } from "./finalize.js";
2
2
  import { reconcileWorkerMetadata } from "./worker-metadata-reconcile.js";
3
3
  import { reconcileLocalOnlyMergedPrAttention } from "./local-pr-attention-reconcile.js";
4
+ import { archiveTerminalWorkerMetadata } from "./run-metadata-retention.js";
4
5
  /** No heartbeat this long + dead PID → reconcile as exited. */
5
6
  export declare const STALE_RECONCILE_HEARTBEAT_MS: number;
6
7
  export interface StaleWorkerReconcileOutcome {
@@ -14,6 +15,7 @@ export interface ReconcileStaleWorkersResult {
14
15
  finalizedRuns: RunFinalizeResult[];
15
16
  metadataReconcile: ReturnType<typeof reconcileWorkerMetadata>;
16
17
  localPrAttentionReconcile: ReturnType<typeof reconcileLocalOnlyMergedPrAttention>;
18
+ terminalWorkerArchive: ReturnType<typeof archiveTerminalWorkerMetadata>;
17
19
  }
18
20
  /**
19
21
  * Reconcile workers that exited without updating worker.json, and optionally
package/dist/start.d.ts CHANGED
@@ -5,3 +5,9 @@ import { type HarnessRunRecord } from "./run-store.js";
5
5
  */
6
6
  export declare function resolveStartRunId(runs: HarnessRunRecord[], repo: string): string | null;
7
7
  export declare function runStart(args: Record<string, string | boolean>): Promise<void>;
8
+ /**
9
+ * The argv the keeper child re-invokes with: an explicit `kynver daemon`
10
+ * command (NOT `start` — the child must skip bootstrap/run resolution and
11
+ * just run the loop). Forwards the daemon-relevant flags `start` accepts.
12
+ */
13
+ export declare function buildStartDaemonArgv(runId: string, agentOsId: string, args: Record<string, string | boolean>): string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kynver-app/runtime",
3
- "version": "0.1.120",
3
+ "version": "0.1.123",
4
4
  "description": "Kynver AgentOS local execution runtime and CLI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -89,7 +89,7 @@
89
89
  "build": "esbuild src/cli.ts src/index.ts src/worker-persona-catalog.ts src/server/monitor.ts src/server/landing.ts src/server/worker-policy.ts src/server/orchestration.ts src/server/heavy-verification.ts src/server/memory-cost.ts src/server/pr-evidence.ts src/server/default-repo.ts src/server/cleanup.ts src/server/repo-search.ts src/server/harness-notice.ts src/server/memory-cost-enforce.ts --bundle --platform=node --format=esm --packages=external --outbase=src --outdir=dist --sourcemap && tsc -p tsconfig.json --emitDeclarationOnly && node scripts/chmod-cli-bin.mjs",
90
90
  "typecheck": "tsc -p tsconfig.json --noEmit",
91
91
  "test": "vitest run --config vitest.config.ts",
92
- "prepublishOnly": "node ../../scripts/npm-publish-guard.mjs"
92
+ "prepublishOnly": "node ../../scripts/npm-publish-guard.mjs && npm run build"
93
93
  },
94
94
  "engines": {
95
95
  "node": ">=18"