@kynver-app/runtime 0.1.123 → 0.1.129
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/chat-claim-loop.d.ts +11 -0
- package/dist/chat/command-allowlist.d.ts +8 -0
- package/dist/chat/command-executor.d.ts +13 -0
- package/dist/cli.js +62 -17782
- package/dist/config.d.ts +2 -0
- package/dist/cron/cron-cli-bin.d.ts +7 -0
- package/dist/cron/cron-readiness.d.ts +35 -0
- package/dist/daemon-heartbeat.d.ts +3 -0
- package/dist/disk-gate.d.ts +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +79 -19281
- package/dist/instruction-bundle/cache.d.ts +6 -0
- package/dist/instruction-bundle/client.d.ts +25 -0
- package/dist/instruction-bundle/contract.d.ts +4 -0
- package/dist/instruction-bundle/contract.js +5 -0
- package/dist/instruction-bundle/embedded-bundle.d.ts +3 -0
- package/dist/instruction-bundle/index.d.ts +7 -0
- package/dist/instruction-bundle/keys.d.ts +14 -0
- package/dist/instruction-bundle/state.d.ts +24 -0
- package/dist/instruction-bundle/types.d.ts +42 -0
- package/dist/instruction-bundle/verify.d.ts +15 -0
- package/dist/mesh-liveness/mesh-cron-lease-store.d.ts +9 -0
- package/dist/retry-limits.d.ts +4 -0
- package/dist/server/cleanup.js +16 -4054
- package/dist/server/default-repo.js +1 -458
- package/dist/server/harness-notice.js +15 -287
- package/dist/server/heavy-verification.js +1 -223
- package/dist/server/landing.js +1 -44
- package/dist/server/memory-cost-enforce.js +2 -480
- package/dist/server/memory-cost.js +2 -184
- package/dist/server/monitor.js +8 -1805
- package/dist/server/orchestration.js +1 -444
- package/dist/server/pr-evidence.js +1 -163
- package/dist/server/repo-search.js +1 -224
- package/dist/server/worker-policy.js +1 -432
- package/dist/worker-persona-catalog.d.ts +5 -0
- package/dist/worker-persona-catalog.js +5 -138
- package/package.json +8 -2
- package/dist/cli.js.map +0 -7
- package/dist/index.js.map +0 -7
- package/dist/server/cleanup.js.map +0 -7
- package/dist/server/default-repo.js.map +0 -7
- package/dist/server/harness-notice.js.map +0 -7
- package/dist/server/heavy-verification.js.map +0 -7
- package/dist/server/landing.js.map +0 -7
- package/dist/server/memory-cost-enforce.js.map +0 -7
- package/dist/server/memory-cost.js.map +0 -7
- package/dist/server/monitor.js.map +0 -7
- package/dist/server/orchestration.js.map +0 -7
- package/dist/server/pr-evidence.js.map +0 -7
- package/dist/server/repo-search.js.map +0 -7
- package/dist/server/worker-policy.js.map +0 -7
- package/dist/worker-persona-catalog.js.map +0 -7
package/dist/config.d.ts
CHANGED
|
@@ -46,6 +46,8 @@ export declare function saveApiKey(apiKey: string): void;
|
|
|
46
46
|
export declare function loadRunnerToken(agentOsId?: string): string | undefined;
|
|
47
47
|
export declare function saveRunnerToken(agentOsId: string, token: string): void;
|
|
48
48
|
export declare function resolveBaseUrl(argsBaseUrl?: string): string;
|
|
49
|
+
/** Non-exiting sibling of `resolveBaseUrl` for long-lived callers (the daemon). */
|
|
50
|
+
export declare function tryResolveBaseUrl(argsBaseUrl?: string): string | undefined;
|
|
49
51
|
export declare function resolveCallbackSecret(argsSecret?: string, agentOsId?: string): string;
|
|
50
52
|
/**
|
|
51
53
|
* Non-exiting sibling of `resolveCallbackSecretWithMint` for long-lived
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Portable absolute path to the `kynver` CLI entry for systemd/supervisors.
|
|
3
|
+
* systemd does not inherit shell PATH — bare `kynver` fails with status 203/EXEC.
|
|
4
|
+
*/
|
|
5
|
+
export declare function resolveKynverCliExecutable(cliEntry?: string): string;
|
|
6
|
+
/** Quote an ExecStart binary path when it contains whitespace. */
|
|
7
|
+
export declare function formatSystemdExecPath(executable: string): string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { KynverUserConfig } from "../config.js";
|
|
2
|
+
import { type CronInstallVerifyReport, type CronVerifyCheck } from "./cron-install-verify.js";
|
|
3
|
+
export type DeploymentSchedulerProvider = "qstash" | "kynver-cron" | "openclaw-cron";
|
|
4
|
+
/** Local box checks that must pass before the daemon can own cron fires. */
|
|
5
|
+
export declare const LOCAL_CRON_READINESS_CHECK_IDS: readonly ["deployment_provider", "cron_secret", "env_file", "cron_store"];
|
|
6
|
+
export type LocalCronReadinessCheckId = (typeof LOCAL_CRON_READINESS_CHECK_IDS)[number];
|
|
7
|
+
export interface CronReadinessReport {
|
|
8
|
+
expectsKynverCron: boolean;
|
|
9
|
+
ready: boolean;
|
|
10
|
+
failedChecks: CronVerifyCheck[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Whether this connected runner should use the local Kynver Cron tick loop.
|
|
14
|
+
* QStash/OpenClaw attestations win; otherwise a linked box defaults to kynver-cron.
|
|
15
|
+
*/
|
|
16
|
+
export declare function expectsKynverCronOnRunner(config: KynverUserConfig): boolean;
|
|
17
|
+
export declare function isCronLocallyReady(report: CronInstallVerifyReport): boolean;
|
|
18
|
+
export declare function assessCronReadiness(config: KynverUserConfig): Promise<CronReadinessReport>;
|
|
19
|
+
export declare function formatCronReadinessGuidance(failedChecks: CronVerifyCheck[]): string[];
|
|
20
|
+
export interface EnsureCronForStartInput {
|
|
21
|
+
config: KynverUserConfig;
|
|
22
|
+
agentOsId: string;
|
|
23
|
+
runId: string;
|
|
24
|
+
args: Record<string, string | boolean>;
|
|
25
|
+
}
|
|
26
|
+
export interface EnsureCronForStartResult {
|
|
27
|
+
action: "skipped" | "ready" | "installed" | "guided";
|
|
28
|
+
installOk?: boolean;
|
|
29
|
+
blockers?: string[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Before `kynver start` hands off to the daemon, ensure local Kynver Cron is configured
|
|
33
|
+
* when this box is expected to own schedule fires.
|
|
34
|
+
*/
|
|
35
|
+
export declare function ensureCronReadyForStart(input: EnsureCronForStartInput): Promise<EnsureCronForStartResult>;
|
|
@@ -3,6 +3,8 @@ export interface DaemonHeartbeat {
|
|
|
3
3
|
pid: number;
|
|
4
4
|
runId: string;
|
|
5
5
|
agentOsId: string;
|
|
6
|
+
/** Active server-delivered instruction bundle version (M6); additive. */
|
|
7
|
+
instructionBundleVersion?: string;
|
|
6
8
|
}
|
|
7
9
|
export declare function daemonHeartbeatPath(agentOsId: string): string;
|
|
8
10
|
/** Best-effort atomic write (temp + rename). Never throws. */
|
|
@@ -10,6 +12,7 @@ export declare function writeDaemonHeartbeat(input: {
|
|
|
10
12
|
agentOsId: string;
|
|
11
13
|
runId: string;
|
|
12
14
|
now?: Date;
|
|
15
|
+
instructionBundleVersion?: string;
|
|
13
16
|
}): void;
|
|
14
17
|
export declare function readDaemonHeartbeat(agentOsId: string): DaemonHeartbeat | null;
|
|
15
18
|
/**
|
package/dist/disk-gate.d.ts
CHANGED
|
@@ -12,3 +12,10 @@ export interface ObserveDiskGateInput {
|
|
|
12
12
|
wslHost?: ObserveWslHostDiskOptions;
|
|
13
13
|
}
|
|
14
14
|
export declare function observeRunnerDiskGate(input?: ObserveDiskGateInput): DispatchNextDiskGateShape;
|
|
15
|
+
/**
|
|
16
|
+
* Operator escape hatch (mirrors `KYNVER_CLEANUP_DISK_PRESSURE_FORCE`):
|
|
17
|
+
* `KYNVER_DISPATCH_DISK_GATE_FORCE=ok|open|none` pins the gate open with the
|
|
18
|
+
* suppressed reason kept visible; `block|pressured` forces it closed. The
|
|
19
|
+
* hosted server honors the same env on its side, so either end can unblock.
|
|
20
|
+
*/
|
|
21
|
+
export declare function applyDiskGateForce(gate: DispatchNextDiskGateShape): DispatchNextDiskGateShape;
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { isEngagementRequiredSkip } from "./fortress-engagement-gate.js";
|
|
|
17
17
|
export { assessWorkerLandingContract, landingContractAttentionReason, type WorkerLandingContract, type WorkerLandingContractVerdict, type TargetPrReconciliation, } from "./landing-contract-gate.js";
|
|
18
18
|
export { assessExitedWorkerSalvage, type ExitedSalvageAssessment, type ExitedSalvageKind, } from "./exited-salvage.js";
|
|
19
19
|
export { buildPrompt } from "./prompt.js";
|
|
20
|
+
export { canonicalJsonStringify, computeInstructionBundleVersion, deriveInstructionBundleKeyId, parseRawEd25519Key, isSignedInstructionBundleShape, PINNED_INSTRUCTION_BUNDLE_PUBLIC_KEYS, resolveInstructionBundlePublicKey, verifyInstructionBundleSignatureWithKey, verifySignedInstructionBundle, EMBEDDED_INSTRUCTION_BUNDLE, EMBEDDED_INSTRUCTION_BUNDLE_VERSION, getActiveInstructionBundle, getActiveInstructionBundleSource, getActiveInstructionBundleVersion, setActiveInstructionBundle, resolveInstructionText, resolvePolicyThreshold, resolveBundlePersona, ensureInstructionBundle, instructionBundleCachePath, loadInstructionBundleCache, saveInstructionBundleCache, INSTRUCTION_BUNDLE_REFRESH_TTL_MS, type InstructionBundle, type InstructionBundleContent, type InstructionBundlePersona, type SignedInstructionBundle, type InstructionBundleSource, type InstructionBundleVerifyResult, type EnsureInstructionBundleOptions, type EnsureInstructionBundleResult, } from "./instruction-bundle/index.js";
|
|
20
21
|
export { WORKER_PERSONA_CATALOG, getWorkerPersonaCatalogEntry, getPersonaDispatchLane, getPersonaDefaultRoleLane, isKnownWorkerPersonaSlug, workerPersonaReviewSlugs, workerPersonaLandingSlugs, type WorkerPersonaCatalogEntry, type WorkerPersonaCatalogSlug, type WorkerPersonaDispatchLane, type WorkerPersonaDefaultRoleLane, } from "./worker-persona-catalog.js";
|
|
21
22
|
export { assessPrHandoffRequirement, ensurePrReadyHandoff, extractPrUrlFromText, } from "./pr-handoff/index.js";
|
|
22
23
|
export { normalizeCursorModelAlias, preflightClaudeModel, preflightCodexModel, preflightCursorModel, } from "./providers/model-preflight.js";
|