@kynver-app/runtime 0.1.95 → 0.1.99

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 KynverUserConfig } from "./config.js";
2
2
  import type { WorkerCapSource } from "./worker-cap-source.js";
3
3
  import type { DispatchNextDiskGateShape } from "./callbacks.js";
4
+ import type { HarnessWorkerRecord } from "./status.js";
4
5
  /** Default RAM budget per worker (~500 MiB, dogfood measured). Internal — not a setup knob. */
5
6
  export declare const DEFAULT_PER_WORKER_MEM_BYTES: number;
6
7
  /** Keep headroom for OS / IDE. Internal — not a setup knob. */
@@ -47,6 +48,12 @@ export declare function computeAutoMaxWorkers(totalMemBytes: number, opts?: {
47
48
  memReserveBytes?: number;
48
49
  memUtilization?: number;
49
50
  }): number;
51
+ /**
52
+ * PID existence is not enough on long-running hosts: Linux can reuse an old
53
+ * worker PID for an unrelated process, which makes stale worker.json records
54
+ * look alive and can falsely saturate the global worker gate.
55
+ */
56
+ export declare function workerProcessMatchesRecord(worker: HarnessWorkerRecord): boolean;
50
57
  /** Count active workers in ONE run (kept for callers/tests scoped to a run). */
51
58
  export declare function countActiveWorkers(runId: string): number;
52
59
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kynver-app/runtime",
3
- "version": "0.1.95",
3
+ "version": "0.1.99",
4
4
  "description": "Kynver AgentOS local execution runtime and CLI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",