@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/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;
@@ -0,0 +1,2 @@
1
+ import type { RunnerInstallDoctorReport } from "./doctor.types.js";
2
+ export declare function assessRunnerInstallReadiness(): RunnerInstallDoctorReport;
@@ -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";