@kynver-app/runtime 0.1.154 → 0.1.157
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 +55 -53
- package/dist/cron/cron-env-file.d.ts +7 -0
- package/dist/cron/cron-tick.d.ts +2 -0
- package/dist/cron/cron-types.d.ts +9 -0
- package/dist/exited-worker-handoff-capture.d.ts +1 -1
- package/dist/factory-status/collect.d.ts +3 -1
- package/dist/harness-notice/harness-notice.worker-start.d.ts +7 -0
- package/dist/harness-notice/index.d.ts +1 -0
- package/dist/index.js +71 -68
- package/dist/server/cleanup.js +1 -1
- package/dist/server/default-repo.js +1 -1
- package/dist/server/harness-notice.d.ts +1 -1
- package/dist/server/harness-notice.js +15 -14
- package/dist/server/monitor.js +2 -2
- package/dist/server/worker-policy.js +1 -1
- package/dist/status.d.ts +4 -1
- package/package.json +1 -1
|
@@ -9,6 +9,13 @@ export interface EnvFileMergeResult {
|
|
|
9
9
|
export declare function parseEnvFile(content: string): Map<string, string>;
|
|
10
10
|
export declare function serializeEnvFile(values: Map<string, string>, header?: string): string;
|
|
11
11
|
export declare function readEnvFile(filePath?: string): Map<string, string>;
|
|
12
|
+
export declare function loadEnvFileIntoProcess(filePath?: string, options?: {
|
|
13
|
+
override?: boolean;
|
|
14
|
+
}): {
|
|
15
|
+
path: string;
|
|
16
|
+
loaded: number;
|
|
17
|
+
skipped: number;
|
|
18
|
+
};
|
|
12
19
|
export declare function mergeEnvFile(updates: Record<string, string | undefined>, options?: {
|
|
13
20
|
filePath?: string;
|
|
14
21
|
removeKeys?: string[];
|
package/dist/cron/cron-tick.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CronTickErrorDetail } from "./cron-types.js";
|
|
1
2
|
import type { KynverCronEnv } from "./cron-env.js";
|
|
2
3
|
export interface CronTickResult {
|
|
3
4
|
enabled: boolean;
|
|
@@ -8,6 +9,7 @@ export interface CronTickResult {
|
|
|
8
9
|
skippedJobs: number;
|
|
9
10
|
errors: number;
|
|
10
11
|
lockHeld?: boolean;
|
|
12
|
+
errorDetails?: CronTickErrorDetail[];
|
|
11
13
|
}
|
|
12
14
|
export declare function runKynverCronTick(opts?: {
|
|
13
15
|
env?: KynverCronEnv;
|
|
@@ -41,4 +41,13 @@ export interface CronFireResult {
|
|
|
41
41
|
ok: boolean;
|
|
42
42
|
status: number;
|
|
43
43
|
body: unknown;
|
|
44
|
+
url: string;
|
|
45
|
+
}
|
|
46
|
+
export interface CronTickErrorDetail {
|
|
47
|
+
providerScheduleId: string;
|
|
48
|
+
callbackPath: string;
|
|
49
|
+
url?: string;
|
|
50
|
+
status?: number;
|
|
51
|
+
body?: unknown;
|
|
52
|
+
error?: string;
|
|
44
53
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CompletionSnapshot } from "./worker-lifecycle.js";
|
|
2
2
|
import type { HarnessWorkerRecord, RawHarnessWorkerStatus } from "./status.js";
|
|
3
|
-
export type ExitedHandoffCaptureSource = "stdout_stream" | "heartbeat_complete" | "heartbeat_summary" | "exit_failure" | "none";
|
|
3
|
+
export type ExitedHandoffCaptureSource = "stdout_stream" | "heartbeat_complete" | "heartbeat_summary" | "exit_failure" | "exit_no_final_result" | "none";
|
|
4
4
|
export interface ExitedHandoffCapture {
|
|
5
5
|
finalResult: unknown;
|
|
6
6
|
source: ExitedHandoffCaptureSource;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { buildRunListRows } from "../run-list.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { HarnessWorkerRecord } from "../status.js";
|
|
3
|
+
import type { FactoryStatusSnapshot, FactoryWorkerRow } from "./types.js";
|
|
4
|
+
export declare function factoryStatusTaskWorkerCandidateScore(worker: HarnessWorkerRecord, row: FactoryWorkerRow): number;
|
|
3
5
|
export interface CollectFactoryStatusInput {
|
|
4
6
|
mode: FactoryStatusSnapshot["mode"];
|
|
5
7
|
taskId?: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HarnessReadableNotice } from "./harness-notice.types.js";
|
|
2
|
+
/** True when a parsed JSON object looks like `kynver worker start` stdout. */
|
|
3
|
+
export declare function isWorkerStartStdoutRecord(value: unknown): value is Record<string, unknown>;
|
|
4
|
+
/** Scan stdout / mixed text for the first worker-start JSON blob. */
|
|
5
|
+
export declare function extractWorkerStartRecordFromText(text: string): Record<string, unknown> | null;
|
|
6
|
+
/** Plain-English notice for `kynver worker start` success JSON. */
|
|
7
|
+
export declare function formatWorkerStartNotice(status: unknown): HarnessReadableNotice;
|
|
@@ -4,4 +4,5 @@ export { formatWorkerStatusNotice } from "./harness-notice.worker-status.js";
|
|
|
4
4
|
export { formatAutoCompleteOutcomeNotice } from "./harness-notice.auto-complete.js";
|
|
5
5
|
export { formatMonitorTickNotice } from "./harness-notice.monitor-tick.js";
|
|
6
6
|
export { formatWorkerCompleteNotice } from "./harness-notice.worker-complete.js";
|
|
7
|
+
export { extractWorkerStartRecordFromText, formatWorkerStartNotice, isWorkerStartStdoutRecord, } from "./harness-notice.worker-start.js";
|
|
7
8
|
export { firstJsonFromStdout, diagnosticJson } from "./harness-notice.parse.js";
|