@kynver-app/runtime 0.1.157 → 0.1.166
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/bounded-build/exec.d.ts +3 -0
- package/dist/bounded-build/index.d.ts +1 -1
- package/dist/byoc/context-hydration.d.ts +54 -0
- package/dist/byoc/execution-proof.d.ts +46 -0
- package/dist/byoc/index.d.ts +5 -0
- package/dist/byoc/job-envelope.d.ts +39 -0
- package/dist/byoc/m6-golden-path.d.ts +80 -0
- package/dist/byoc/mcp-tool-proof.d.ts +42 -0
- package/dist/cli.js +57 -55
- package/dist/config.d.ts +8 -0
- package/dist/doctor/doctor.types.d.ts +23 -0
- package/dist/doctor/runner-install-cli.d.ts +1 -0
- package/dist/doctor/runner-install.d.ts +2 -0
- package/dist/harness-verify.d.ts +2 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +74 -71
- package/dist/model-routing.d.ts +8 -0
- package/dist/orchestration-providers/adapter-contract.d.ts +50 -0
- package/dist/orchestration-providers/index.d.ts +1 -0
- package/dist/providers/claude.d.ts +2 -0
- package/dist/server/cleanup.js +13 -13
- package/dist/server/default-repo.js +1 -1
- package/dist/server/heavy-verification.js +1 -1
- package/dist/server/monitor.js +7 -7
- package/dist/server/orchestration.js +1 -1
- package/dist/server/worker-policy.js +1 -1
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -105,6 +105,14 @@ export declare function fetchRunnerCredential(agentOsId: string, opts?: {
|
|
|
105
105
|
apiKey?: string;
|
|
106
106
|
}): Promise<string>;
|
|
107
107
|
export declare function mintRunnerCredential(args: Record<string, string | boolean>): Promise<void>;
|
|
108
|
+
/** List runner credentials from the server for a given agentOsId. */
|
|
109
|
+
export declare function listRunnerCredentialsCli(args: Record<string, string | boolean>): Promise<void>;
|
|
110
|
+
/** Revoke a runner credential by tokenId. */
|
|
111
|
+
export declare function revokeRunnerCredentialCli(args: Record<string, string | boolean>): Promise<void>;
|
|
112
|
+
/** Rotate a runner credential by tokenId (revoke old + mint new). */
|
|
113
|
+
export declare function rotateRunnerCredentialCli(args: Record<string, string | boolean>): Promise<void>;
|
|
114
|
+
/** Show the local runner credential status (no server call). */
|
|
115
|
+
export declare function runnerCredentialStatusCli(args: Record<string, string | boolean>): void;
|
|
108
116
|
export declare function parseArgs(argv: string[]): Record<string, string | boolean>;
|
|
109
117
|
export declare function runSetup(args: Record<string, string | boolean>): Promise<void>;
|
|
110
118
|
export declare function runLogin(args: Record<string, string | boolean>): Promise<void>;
|
|
@@ -25,3 +25,26 @@ export interface RuntimeTakeoverDoctorReport {
|
|
|
25
25
|
/** Optional remediation actions applied before this report was generated. */
|
|
26
26
|
notes?: string[];
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* M0.3 self-serve runner install and device-binding lifecycle report.
|
|
30
|
+
*
|
|
31
|
+
* Covers: install → device login → workspace binding → repo selection →
|
|
32
|
+
* runner credential → supervised daemon. Ready when stages 1–5 all pass
|
|
33
|
+
* (daemon liveness in stage 6 is advisory / warn-only).
|
|
34
|
+
*/
|
|
35
|
+
export interface RunnerInstallDoctorReport {
|
|
36
|
+
command: "doctor runner-install";
|
|
37
|
+
ready: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Highest lifecycle stage that has fully passed (0 = none).
|
|
40
|
+
* Stage definitions: 1=install, 2=login, 3=workspace, 4=repo, 5=credential, 6=daemon.
|
|
41
|
+
*/
|
|
42
|
+
lifecycleStage: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
43
|
+
summary: string;
|
|
44
|
+
counts: {
|
|
45
|
+
pass: number;
|
|
46
|
+
warn: number;
|
|
47
|
+
fail: number;
|
|
48
|
+
};
|
|
49
|
+
sections: DoctorSection[];
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function runRunnerInstallDoctorCli(): void;
|
package/dist/harness-verify.d.ts
CHANGED
|
@@ -17,4 +17,6 @@ export interface HarnessVerifySummary {
|
|
|
17
17
|
export declare function runHarnessVerifyCommands(cwd: string, commands?: readonly string[], opts?: {
|
|
18
18
|
waitForAdmissionMs?: number;
|
|
19
19
|
timeoutMs?: number;
|
|
20
|
+
/** Called synchronously before each command starts — safe for stderr progress logs. */
|
|
21
|
+
onBeforeCommand?: (cmd: string, index: number, total: number) => void;
|
|
20
22
|
}): HarnessVerifySummary;
|
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export { CODEX_DEFAULT_MODEL, codexProvider, buildCodexExecArgv } from "./provid
|
|
|
28
28
|
export { HERMES_OPENAI_CODEX_DEFAULT_MODEL, hermesCodexProvider, buildHermesOpenAiCodexChatArgv, } from "./providers/hermes-codex.js";
|
|
29
29
|
export { classifyOpenAiCodexError, formatCronJobDeliveryFailure, formatOpenAiCodexFailureNotice, redactProviderErrorText, resolveOpenAiCodexRetryBudget, TRANSIENT_OPENAI_CODEX_ERROR_CLASSES, OPENAI_CODEX_PROVIDER, type ClassifiedOpenAiCodexError, type CodexFailureNoticeInput, type OpenAiCodexErrorClass, } from "./providers/openai-codex-resilience.js";
|
|
30
30
|
export * from "./cron/hermes-provider-notice.js";
|
|
31
|
-
export { buildOrchestrationProviderInventory, classifyOrchestrationRisk, compareProviderCandidates, getOrchestrationProviderCapability, listOrchestrationProviderCapabilities, probeClaudeOAuthBinding, probeCodexOAuthBinding, probeCursorOAuthBinding, probeHermesCliAdapter, probeHermesOpenAiCodexBinding, probeOrchestrationProviderBinding, providerCapableForRisk, resolveCodexOrchestrationAdapter, resolveOrchestrationRouting, selectCheapestCapableProvider, sanitizeOrchestrationAudit, orchestrationAuditForWorkerJson, type CodexOrchestrationAdapterStatus, type CodexOrchestrationPath, type HermesCliAdapterStatus, type HermesOpenAiCodexBindingStatus, type OrchestrationAuthSource, type OrchestrationCloudApiCredits, type OrchestrationCostTier, type OrchestrationProviderBindingStatus, type OrchestrationProviderCapability, type OrchestrationProviderId, type OrchestrationProviderInventory, type OrchestrationRiskClass, type OrchestrationRoutingAudit, type OrchestrationRoutingDecision, } from "./orchestration-providers/index.js";
|
|
31
|
+
export { buildOrchestrationProviderInventory, classifyOrchestrationRisk, compareProviderCandidates, getOrchestrationProviderCapability, listOrchestrationProviderCapabilities, probeClaudeOAuthBinding, probeCodexOAuthBinding, probeCursorOAuthBinding, probeHermesCliAdapter, probeHermesOpenAiCodexBinding, probeOrchestrationProviderBinding, providerCapableForRisk, resolveCodexOrchestrationAdapter, resolveOrchestrationRouting, selectCheapestCapableProvider, sanitizeOrchestrationAudit, orchestrationAuditForWorkerJson, getAdapterContextContract, listAdapterContextContracts, type AdapterContextCapability, type AdapterContextContract, type AdapterContextContractId, type CodexOrchestrationAdapterStatus, type CodexOrchestrationPath, type HermesCliAdapterStatus, type HermesOpenAiCodexBindingStatus, type OrchestrationAuthSource, type OrchestrationCloudApiCredits, type OrchestrationCostTier, type OrchestrationProviderBindingStatus, type OrchestrationProviderCapability, type OrchestrationProviderId, type OrchestrationProviderInventory, type OrchestrationRiskClass, type OrchestrationRoutingAudit, type OrchestrationRoutingDecision, } from "./orchestration-providers/index.js";
|
|
32
32
|
export { ORCHESTRATION_POLICY_MODES, ORCHESTRATION_ACTION_KINDS, ORCHESTRATION_POLICY_DECISIONS, resolveOrchestrationPolicyMode, isOrchestrationEnforceTasksEnabled, buildForegroundHarnessIdempotencyKey, evaluateOrchestrationPolicy, type OrchestrationPolicyMode, type OrchestrationActionKind, type OrchestrationPolicyDecision, type OrchestrationPolicyEvaluateInput, type OrchestrationPolicyEvaluateResult, } from "./orchestration-enforcement/index.js";
|
|
33
33
|
export { DEFAULT_WORKER_PROVIDER, enforceCursorWorkerProvider, isClaudeFamilyProvider, preferCursorExecutor, resolveConfiguredWorkerProvider, taskAllowsClaudeWorker, type EnforceCursorWorkerProviderInput, } from "./worker-provider-policy.js";
|
|
34
34
|
export { redactHarness } from "./redact.js";
|
|
@@ -69,3 +69,5 @@ export { assessAutoCompleteEligibility, classifyWorkerHealth, getMonitorStatus,
|
|
|
69
69
|
export { formatHarnessToolReadable, formatMonitorTickNotice, formatAutoCompleteOutcomeNotice, formatWorkerStatusNotice, formatWorkerCompleteNotice, joinHarnessNotice, type HarnessReadableNotice, type HarnessToolFormatContext, } from "./harness-notice/index.js";
|
|
70
70
|
export { persistPlan, drainPlanOutbox, listOutboxItems, formatPlanOutboxHandoffBlock, extractPlanOutboxFromTask, hashPlanBody, type PersistPlanInput, type PersistPlanResult, type PlanPersistUserStatus, } from "./plan-persist/index.js";
|
|
71
71
|
export { classifyVercelUrl, collectVercelEvidence, evidenceFromGitHubVercelStatus, isDashboardVercelUrl, isInspectableVercelTarget, isVercelStatusContext, pickVercelStatusContext, resolveVercelInspectTarget, type CollectVercelEvidenceInput, type GitHubCommitStatusRow, type VercelEvidenceResult, type VercelEvidenceStatus, } from "./vercel/index.js";
|
|
72
|
+
export { validateJobEnvelope, type LocalCodexJobEnvelope, type LocalCodexJobToolPolicy, type JobEnvelopeValidationError, type JobEnvelopeValidationResult, } from "./byoc/job-envelope.js";
|
|
73
|
+
export { verifyLocalCodexGoldenPath, formatGoldenPathFailureNotice, type GoldenPathCheckCode, type GoldenPathAuditEvidence, type GoldenPathOptions, type GoldenPathResult, } from "./byoc/m6-golden-path.js";
|