/** * Shared inference runtime resolution (3.0.0 cross-host bridge). * * Activation is configuration-driven and now DEFAULT-ON for configured shared * resources: a model that resolves to a configured `SharedInferenceResource` * automatically uses admission scheduling (no per-caller env flag). Cloud / * non-shared providers pass through unchanged. Explicit opt-out for diagnostic * direct access: `JENSEN_SHARED_INFERENCE=0`. * * Local processes run the scheduler in-process over the durable cross-process * ledger. Remote runtimes (when `JENSEN_SHARED_INFERENCE_ADMISSION_URL` is set) * use a `RemoteSchedulerAdmissionClient` that delegates to the central admission * service — never a second scheduler, never direct backend fallback. */ import type { StreamFn } from "@apholdings/jensen-agent-core"; import { GovernanceService } from "../governance/service.js"; import { type SharedInferenceAdmissionPort } from "./admission-port.js"; import { LocalSubagentRuntime } from "./runtime.js"; import type { InferencePriority, InferenceRequestDependency, SharedInferenceResource } from "./types.js"; export declare const DEFAULT_SHARED_INFERENCE_RESOURCES: readonly SharedInferenceResource[]; export interface SharedInferenceRuntime { admission: SharedInferenceAdmissionPort; runtime?: LocalSubagentRuntime; streamFn: StreamFn; resources: SharedInferenceResource[]; } export declare function sharedInferenceResources(): SharedInferenceResource[]; export interface SharedInferenceAdmissionEndpoint { url?: string; token?: string; executionId?: string; } /** Remote admission endpoint propagated into the runtime environment (never argv). */ export declare function resolveAdmissionEndpoint(): SharedInferenceAdmissionEndpoint; export declare function isSharedInferenceEnabled(): boolean; export interface ResolveSharedInferenceRuntimeOptions { sessionId?: string; missionId?: string; assignmentId?: string; executionId?: string; priority?: InferencePriority; dependency?: InferenceRequestDependency; queueDir?: string; agentDir?: string; ownerId?: string; now?: () => number; governance?: GovernanceService; } /** * Build the shared admission + logical-agent runtime + provider seam. * * - Remote runtime (`JENSEN_SHARED_INFERENCE_ADMISSION_URL`): a remote admission * client delegating to the central service (fail-closed, no direct backend). * - Local runtime: the in-process scheduler over the shared durable ledger. * * Returns `undefined` when shared inference is disabled. */ export declare function resolveSharedInferenceRuntime(options?: ResolveSharedInferenceRuntimeOptions): SharedInferenceRuntime | undefined; //# sourceMappingURL=config.d.ts.map