@kynver-app/runtime 0.1.120 → 0.1.122

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,5 +1,6 @@
1
1
  /** Recent heartbeat/stdout activity — treat run metadata as live. */
2
2
  export declare const RUN_METADATA_ACTIVE_SIGNAL_MS: number;
3
+ export declare const TERMINAL_WORKER_ARCHIVE_AGE_MS: number;
3
4
  export interface RunMetadataRetentionOutcome {
4
5
  runId: string;
5
6
  action: "repaired_run_json" | "skipped";
@@ -8,6 +9,16 @@ export interface RunMetadataRetentionOutcome {
8
9
  export interface RunMetadataRetentionResult {
9
10
  runs: RunMetadataRetentionOutcome[];
10
11
  }
12
+ export interface TerminalWorkerArchiveOutcome {
13
+ runId: string;
14
+ worker: string;
15
+ action: "archived" | "skipped";
16
+ reason: string;
17
+ archivePath?: string;
18
+ }
19
+ export interface TerminalWorkerArchiveResult {
20
+ workers: TerminalWorkerArchiveOutcome[];
21
+ }
11
22
  /** True when `targetPath` lives under `{harnessRoot}/runs/` (run + worker metadata). */
12
23
  export declare function isHarnessRunMetadataPath(targetPath: string, harnessRoot: string): boolean;
13
24
  /** Worker dir still has live process or recent harness artifacts — retain metadata. */
@@ -19,5 +30,9 @@ export declare function runDirHasActiveRetentionSignals(runDir: string, now?: nu
19
30
  * cannot go blind while worker processes or fresh artifacts remain.
20
31
  */
21
32
  export declare function repairMissingRunMetadata(harnessRootInput?: string): RunMetadataRetentionResult;
33
+ export declare function archiveTerminalWorkerMetadata(harnessRootInput?: string, options?: {
34
+ archiveAgeMs?: number;
35
+ now?: number;
36
+ }): TerminalWorkerArchiveResult;
22
37
  /** `${harnessRoot}\0${runId}` keys for runs with filesystem active-retention signals. */
23
38
  export declare function collectFilesystemLiveRunKeys(harnessRoot: string, now?: number): Set<string>;