@arnilo/prism-hosts 0.14.0 → 0.14.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.14.1] - 2026-11-23
6
+
7
+ - `./host-builder`: the version-exact API index (`data/api.json`) is regenerated for `@arnilo/prism` 0.14.1. It adds `CredentialContext.sessionId` and `principal`, the `credentials.resolve(ref, request)` overload, and the request-aware `refSource` / `optionalRefSource`. No runtime change.
8
+
5
9
  ## [0.14.0] - 2026-11-23
6
10
 
7
11
  Consolidate ten host and driver workspaces into `@arnilo/prism-hosts` subpaths. Preserve library exports, protocol caps, authentication, sandboxing and both executable bins. Host-builder indexes and the installer use bundle specifiers. Versions remain in lockstep with the kernel.
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "prismVersion": "0.14.0",
4
- "contentHash": "ad243de83907ea19b46c9c26a6d1f163b491c18ea91932b274b0140332922449",
3
+ "prismVersion": "0.14.1",
4
+ "contentHash": "c9c6aa168dc641e80ea7dc0bf3042363e61142d480291133d81d1e8878a58079",
5
5
  "packages": [
6
6
  {
7
7
  "name": "@arnilo/prism",
8
- "version": "0.14.0",
8
+ "version": "0.14.1",
9
9
  "path": ".",
10
10
  "experimental": false,
11
11
  "entries": [
@@ -98,7 +98,7 @@
98
98
  {"name":"CreateLoadSkillToolOptions","kind":"interface","signature":"export interface CreateLoadSkillToolOptions","members":["readonly registry: SkillRegistry","readonly loaded?: LoadedSkillSet","readonly tools?: readonly ToolDefinition[]","readonly name?: string","readonly maxInstructionBytes?: number"]},
99
99
  {"name":"CreateMemorySessionStoreOptions","kind":"interface","signature":"export interface CreateMemorySessionStoreOptions","members":["readonly sessionSearchMode?: MemorySessionSearchMode","readonly search?: { readonly maxLinearSessions?: number; readonly maxLinearEntries?: number; readonly maxLinearBytes?: number; }","readonly queryLimits?: SessionQueryLimits"]},
100
100
  {"name":"CreateSessionEntryOptions","kind":"interface","signature":"export interface CreateSessionEntryOptions extends Omit<SessionEntry, \"id\" | \"timestamp\">","members":["readonly id?: string","readonly timestamp?: string","readonly createId?: () => string","readonly now?: () => Date"]},
101
- {"name":"CredentialContext","kind":"interface","signature":"export interface CredentialContext","members":["readonly package?: string","readonly signal?: AbortSignal"],"summary":"Context for a credentials-slot call (roadmap §2.5).","docs":["node_modules/@arnilo/prism/docs/credentials-and-redaction.md"]},
101
+ {"name":"CredentialContext","kind":"interface","signature":"export interface CredentialContext","members":["readonly package?: string","readonly sessionId?: string","readonly principal?: Principal","readonly signal?: AbortSignal"],"summary":"Context for a credentials-slot call (roadmap §2.5).","docs":["node_modules/@arnilo/prism/docs/credentials-and-redaction.md"]},
102
102
  {"name":"CredentialRecord","kind":"interface","signature":"export interface CredentialRecord","members":["readonly name: string","readonly provider?: string","readonly credential: Secret"],"summary":"A stored secret with the name/provider keys a credential store addresses it by (`@arnilo/prism-keyring`).","docs":["node_modules/@arnilo/prism/docs/migrate-to-0.13.md"]},
103
103
  {"name":"CredentialRefNotWritableError","kind":"class","signature":"export declare class CredentialRefNotWritableError extends Error","members":["readonly ref: string","readonly code = \"credential_ref_unsupported\"","constructor(ref: string)"],"summary":"A write through `credentials.store`/`delete` named a ref that cannot be written.","docs":["node_modules/@arnilo/prism/docs/credentials-and-redaction.md","node_modules/@arnilo/prism/docs/packages.md"]},
104
104
  {"name":"CredentialRequest","kind":"interface","signature":"export interface CredentialRequest","members":["readonly name: string","readonly provider?: string","readonly metadata?: Readonly<Record<string, unknown>>"]},
@@ -321,7 +321,7 @@
321
321
  {"name":"ModelRegistry","kind":"interface","signature":"export interface ModelRegistry","members":["register(model: ModelConfig): void","unregister(provider: string, model: string): boolean","get(provider: string, model: string): ModelConfig | undefined","resolve(provider: string, model: string): ModelConfig","list(): readonly ModelConfig[]"]},
322
322
  {"name":"ModelRegistryOptions","kind":"interface","signature":"export interface ModelRegistryOptions extends DuplicateRegistrationOptions"},
323
323
  {"name":"ModelRequestTransformResult","kind":"interface","signature":"export interface ModelRequestTransformResult","members":["readonly request: ProviderRequest","readonly secrets?: readonly (string | undefined)[]"],"summary":"`model.request` may return a plain request or this shape."},
324
- {"name":"ModelSpec","kind":"interface","signature":"export interface ModelSpec extends ModelConfig","members":["readonly options?: JsonObject","readonly baseUrl?: string","readonly credential?: string"],"summary":"A model with the endpoint and credential it needs.","docs":["node_modules/@arnilo/prism/docs/agent.md","node_modules/@arnilo/prism/docs/migrate-to-0.13.md","node_modules/@arnilo/prism/docs/models.md","node_modules/@arnilo/prism/docs/provider-kit.md"]},
324
+ {"name":"ModelSpec","kind":"interface","signature":"export interface ModelSpec extends ModelConfig","members":["readonly options?: JsonObject","readonly baseUrl?: string","readonly credential?: string"],"summary":"A model with the endpoint and credential it needs.","docs":["node_modules/@arnilo/prism/docs/agent.md","node_modules/@arnilo/prism/docs/credentials-and-redaction.md","node_modules/@arnilo/prism/docs/migrate-to-0.13.md","node_modules/@arnilo/prism/docs/models.md","node_modules/@arnilo/prism/docs/provider-kit.md"]},
325
325
  {"name":"NamedHookCatalog","kind":"interface","signature":"export interface NamedHookCatalog","members":["\"run.input\": TransformHook<readonly Message[], readonly Message[]>","\"turn.before\": DecideHook<TurnBeforePayload, TurnBeforeDecision>","\"context.build\": TransformHook<ContextDraft, ContextDraft>","\"model.request\": TransformHook<ProviderRequest, ProviderRequest | ModelRequestTransformResult>","\"model.call\": AroundHook<ProviderRequest, AsyncIterable<ProviderEvent>>","\"model.response\": TransformHook<Message, Message>","\"tool.call\": DecideHook<ToolCallHookPayload, ToolCallDecision>","\"tool.execute\": AroundHook<ToolExecuteHookPayload, ToolResult>","\"tool.result\": TransformHook<ToolResultHookPayload, ToolResult>","\"message.append\": TransformHook<Message, Message>","\"run.end\": DecideHook<RunEndPayload, RunEndDecision>","\"compaction.when\": DecideHook<CompactionWhenPayload, CompactionWhenDecision>"],"summary":"Named catalog hooks (roadmap §2.4)."},
326
326
  {"name":"NamedHookName","kind":"type","signature":"export type NamedHookName = keyof NamedHookCatalog"},
327
327
  {"name":"NestedRunApproval","kind":"interface","signature":"export interface NestedRunApproval","members":["readonly id: string","readonly childApprovalId: string"],"summary":"Root-visible link between one nested approval and the child-run approval id."},
@@ -333,7 +333,7 @@
333
333
  {"name":"ObserveHookName","kind":"type","signature":"export type ObserveHookName = AgentEventPayload[\"type\"]","summary":"One observe hook per agent event type."},
334
334
  {"name":"OwnershipScope","kind":"interface","signature":"export interface OwnershipScope","members":["readonly tenantId?: string","readonly accountId?: string","readonly userId?: string"],"summary":"Ownership scope identifiers.","docs":["node_modules/@arnilo/prism/docs/host-security.md"]},
335
335
  {"name":"OwnershipScopeError","kind":"class","signature":"export declare class OwnershipScopeError extends Error","members":["readonly code: \"ERR_PRISM_OWNERSHIP_WIDEN\"","constructor(message?: string)"],"summary":"Thrown when a session or run ownership scope sets a field the enclosing scope already fixed to a different value (plan 177 Task 4): scope narrows, never widens.","docs":["node_modules/@arnilo/prism/docs/agent.md","node_modules/@arnilo/prism/docs/host-security.md","node_modules/@arnilo/prism/docs/packages.md"]},
336
- {"name":"PackageAPI","kind":"interface","signature":"export interface PackageAPI<C = Readonly<Record<string, never>>>","members":["readonly name: string","readonly config: C","readonly configSources: Readonly<Record<string, PackageConfigSource>>","readonly ceilings: Readonly<ResolvedAgentCeilings>","readonly packages: { instances(names: readonly string[]): readonly PackageInstance[]; }","readonly hooks: HookRegistrar","readonly slots: SlotRegistrar","readonly tools: { register(tool: ToolDefinition, options?: PackageToolOptions): void; source(list: () => readonly ToolDefinition[]): void; list(): readonly PackageToolListing[]; }","readonly sessions: { open(options: PackageSessionOpenOptions): Promise<Session>; }","readonly skills: { register(skill: Skill): void; list(): readonly Skill[]; get(name: string): Skill | undefined; addDir(path: string): void; }","readonly providers: { register(provider: ModelProvider): void; }","readonly commands: { register(command: PackageCommand): void; }","readonly models: { client(ref?: ModelRef): ModelClient; embeddings(ref?: ModelRef): EmbeddingsProvider; decisions(ref?: ModelRef): DecisionsClient; }","readonly credentials: { resolve(ref: string): Promise<Secret | undefined>; store?(ref: string, secret: Secret): Promise<void>; delete?(ref: string): Promise<void>; }","readonly state: { session<T extends JsonValue>(key: string, initial: T): SessionState<T>; log<T extends JsonValue>(key: string): SessionLog<T>; agent<T>(key: string, initial: T): A …","readonly services: { provide<T>(name: string, implementation: T): void; consume<T>(name: string): T | undefined; require<T>(name: string): T; }","readonly host: HostPort","readonly events: { emit(name: string, data: JsonValue): void; }","readonly status: { note(level: \"info\" | \"warn\", message: string): void; }","readonly log: Logger","onDispose(fn: () => void | Promise<void>): void"],"summary":"What a package gets in `setup` (roadmap §2.6).","docs":["node_modules/@arnilo/prism/docs/agent.md","node_modules/@arnilo/prism/docs/compatibility.md","node_modules/@arnilo/prism/docs/credentials-and-redaction.md","node_modules/@arnilo/prism/docs/decisions.md","node_modules/@arnilo/prism/docs/drivers.md","node_modules/@arnilo/prism/docs/host-security.md"]},
336
+ {"name":"PackageAPI","kind":"interface","signature":"export interface PackageAPI<C = Readonly<Record<string, never>>>","members":["readonly name: string","readonly config: C","readonly configSources: Readonly<Record<string, PackageConfigSource>>","readonly ceilings: Readonly<ResolvedAgentCeilings>","readonly packages: { instances(names: readonly string[]): readonly PackageInstance[]; }","readonly hooks: HookRegistrar","readonly slots: SlotRegistrar","readonly tools: { register(tool: ToolDefinition, options?: PackageToolOptions): void; source(list: () => readonly ToolDefinition[]): void; list(): readonly PackageToolListing[]; }","readonly sessions: { open(options: PackageSessionOpenOptions): Promise<Session>; }","readonly skills: { register(skill: Skill): void; list(): readonly Skill[]; get(name: string): Skill | undefined; addDir(path: string): void; }","readonly providers: { register(provider: ModelProvider): void; }","readonly commands: { register(command: PackageCommand): void; }","readonly models: { client(ref?: ModelRef): ModelClient; embeddings(ref?: ModelRef): EmbeddingsProvider; decisions(ref?: ModelRef): DecisionsClient; }","readonly credentials: { resolve(ref: string): Promise<Secret | undefined>; resolve(ref: string, request: ProviderRequest | undefined): Promise<Secret | undefined>; store?(ref: stri …","readonly state: { session<T extends JsonValue>(key: string, initial: T): SessionState<T>; log<T extends JsonValue>(key: string): SessionLog<T>; agent<T>(key: string, initial: T): A …","readonly services: { provide<T>(name: string, implementation: T): void; consume<T>(name: string): T | undefined; require<T>(name: string): T; }","readonly host: HostPort","readonly events: { emit(name: string, data: JsonValue): void; }","readonly status: { note(level: \"info\" | \"warn\", message: string): void; }","readonly log: Logger","onDispose(fn: () => void | Promise<void>): void"],"summary":"What a package gets in `setup` (roadmap §2.6).","docs":["node_modules/@arnilo/prism/docs/agent.md","node_modules/@arnilo/prism/docs/compatibility.md","node_modules/@arnilo/prism/docs/credentials-and-redaction.md","node_modules/@arnilo/prism/docs/decisions.md","node_modules/@arnilo/prism/docs/drivers.md","node_modules/@arnilo/prism/docs/host-security.md"]},
337
337
  {"name":"PackageCommand","kind":"interface","signature":"export interface PackageCommand","members":["readonly name: string","readonly description: string","readonly args?: JsonSchema","run(args: JsonObject, context: PackageCommandContext): unknown | Promise<unknown>"],"summary":"A command a package contributes (roadmap §2.6).","docs":["node_modules/@arnilo/prism/docs/migrate-to-0.13.md","node_modules/@arnilo/prism/docs/packages.md"]},
338
338
  {"name":"PackageCommandContext","kind":"interface","signature":"export interface PackageCommandContext","members":["readonly session?: SessionContext","readonly host: HostPort","readonly agent: Agent"],"summary":"What a command's `run` receives.","docs":["node_modules/@arnilo/prism/docs/migrate-to-0.13.md"]},
339
339
  {"name":"PackageCommandInfo","kind":"interface","signature":"export interface PackageCommandInfo","members":["readonly name: string","readonly description: string","readonly package: string"],"summary":"What `agent.commands.list()` returns."},
@@ -422,7 +422,7 @@
422
422
  {"name":"RunLimitTracker","kind":"class","signature":"export declare class RunLimitTracker","members":["readonly limits: Readonly<ResolvedRunLimits>","readonly deadlineAt: string | undefined","constructor(limits: Readonly<ResolvedRunLimits>, options?: RunLimitTrackerOptions)","get breach(): RunLimitBreach | undefined","get currency(): string | undefined","snapshot(): RunLimitCounters","dispose(): void","get toolRoundDigests(): readonly string[]","recordToolRound(digest: string): void","charge(limit: Exclude<RunLimitName, \"maxCost\" | \"maxRepeatedToolRounds\">, delta?: number): void","recordUsage(usage: Usage | undefined): void"],"docs":["node_modules/@arnilo/prism/docs/migrate-to-0.13.md"]},
423
423
  {"name":"RunLimitTrackerOptions","kind":"interface","signature":"export interface RunLimitTrackerOptions","members":["readonly onExceeded?: (breach: RunLimitBreach) => void","readonly snapshot?: RunLimitCounters","readonly deadlineAt?: string","readonly scope?: \"run\" | \"session\"","readonly sessionDeadlineAt?: string","readonly session?: RunLimitTracker","readonly toolRoundDigests?: readonly string[]"]},
424
424
  {"name":"RunLimits","kind":"interface","signature":"export interface RunLimits","members":["readonly maxTurns?: number | null","readonly maxProviderAttempts?: number | null","readonly maxToolRounds?: number | null","readonly maxToolCalls?: number | null","readonly maxRepeatedToolRounds?: number | null","readonly maxWallTimeMs?: number | null","readonly maxRequestBytes?: number","readonly maxResponseBytes?: number","readonly maxInputTokens?: number | null","readonly maxOutputTokens?: number | null","readonly maxTotalTokens?: number | null","readonly maxCost?: { readonly amount: number; readonly currency: string; }","readonly maxContinuations?: number | null","readonly maxToolTimeMs?: number | null","readonly backgroundSettleMs?: number","readonly bufferOutput?: boolean","readonly maxRunStateBytes?: number"],"summary":"Host-authored run limits.","docs":["node_modules/@arnilo/prism/docs/agent.md","node_modules/@arnilo/prism/docs/host-security.md","node_modules/@arnilo/prism/docs/performance.md"]},
425
- {"name":"RunOptions","kind":"interface","signature":"export interface RunOptions","members":["readonly signal?: AbortSignal","readonly model?: ModelRef","readonly limits?: RunLimits","readonly providerOptions?: ProviderRequestOptions","readonly thinkingLevel?: string","readonly systemPrompt?: SystemPromptConfig","readonly compaction?: false | CompactionOptions","readonly retry?: false | RetryOptions","readonly metadata?: Readonly<Record<string, unknown>>","readonly interactive?: boolean","readonly redactor?: SecretRedactor","readonly runLedger?: RunLedger","readonly effectStore?: ToolEffectStore","readonly ownership?: OwnershipScope","readonly principal?: import(\"./contracts-core/principal.js\").Principal","readonly idempotencyKey?: string","readonly validate?: ToolValidator","readonly tools?: { readonly only?: readonly string[]; readonly concurrency?: number; }","readonly skills?: false | { readonly only: readonly string[]; }","readonly chargeTo?: import(\"./session-context.js\").SessionContext","readonly allowHiddenToolCalls?: true","readonly inputLayout?: InputAssemblyLayout","readonly promptVersion?: PromptVersionRef"],"docs":["node_modules/@arnilo/prism/docs/agent.md","node_modules/@arnilo/prism/docs/drivers.md","node_modules/@arnilo/prism/docs/hooks.md","node_modules/@arnilo/prism/docs/host-security.md","node_modules/@arnilo/prism/docs/host.md","node_modules/@arnilo/prism/docs/limits.md"]},
425
+ {"name":"RunOptions","kind":"interface","signature":"export interface RunOptions","members":["readonly signal?: AbortSignal","readonly model?: ModelRef","readonly limits?: RunLimits","readonly providerOptions?: ProviderRequestOptions","readonly thinkingLevel?: string","readonly systemPrompt?: SystemPromptConfig","readonly compaction?: false | CompactionOptions","readonly retry?: false | RetryOptions","readonly metadata?: Readonly<Record<string, unknown>>","readonly interactive?: boolean","readonly redactor?: SecretRedactor","readonly runLedger?: RunLedger","readonly effectStore?: ToolEffectStore","readonly ownership?: OwnershipScope","readonly principal?: import(\"./contracts-core/principal.js\").Principal","readonly idempotencyKey?: string","readonly validate?: ToolValidator","readonly tools?: { readonly only?: readonly string[]; readonly concurrency?: number; }","readonly skills?: false | { readonly only: readonly string[]; }","readonly chargeTo?: import(\"./session-context.js\").SessionContext","readonly allowHiddenToolCalls?: true","readonly inputLayout?: InputAssemblyLayout","readonly promptVersion?: PromptVersionRef"],"docs":["node_modules/@arnilo/prism/docs/agent.md","node_modules/@arnilo/prism/docs/credentials-and-redaction.md","node_modules/@arnilo/prism/docs/drivers.md","node_modules/@arnilo/prism/docs/hooks.md","node_modules/@arnilo/prism/docs/host-security.md","node_modules/@arnilo/prism/docs/host.md"]},
426
426
  {"name":"RunOutputError","kind":"interface","signature":"export interface RunOutputError","members":["readonly code: \"invalid_json\" | \"schema_mismatch\"","readonly errors: readonly { readonly path: string; readonly message: string; }[]"],"summary":"A structured-output reply that did not parse (`invalid_json`) or did not satisfy the schema (`schema_mismatch`)."},
427
427
  {"name":"RunQuery","kind":"interface","signature":"export interface RunQuery extends PersistenceQuery, OwnershipScope","members":["readonly sessionId?: string","readonly branchId?: string","readonly agentDefinitionId?: string","readonly agentDefinitionVersion?: string","readonly status?: RunStatus | readonly RunStatus[]","readonly fromStartedAt?: string","readonly toStartedAt?: string","readonly fromFinishedAt?: string","readonly toFinishedAt?: string","readonly isFinished?: boolean"],"summary":"Query for runs."},
428
428
  {"name":"RunRecord","kind":"interface","signature":"export interface RunRecord extends OwnershipScope","members":["readonly id: string","readonly sessionId: string","readonly branchId?: string","readonly agentDefinitionId?: string","readonly agentDefinitionVersion?: string","readonly model?: ModelConfig","readonly provider?: string","readonly idempotencyKey?: string","readonly status?: RunStatus","readonly startedAt: string","readonly finishedAt?: string","readonly abortReason?: string","readonly stopReason?: AgentFinishReason","readonly stopDetail?: string","readonly error?: ErrorInfo","readonly metadata?: Readonly<Record<string, unknown>>","readonly promptVersion?: PromptVersionRef"],"summary":"Stored run record.","examples":["examples/external-app-db-backed.ts"]},
@@ -756,7 +756,7 @@
756
756
  {"name":"validateJsonSchema","kind":"function","signature":"export declare function validateJsonSchema(schema: JsonSchema, value: unknown): SchemaResult","summary":"Validates `value` against `schema` and returns it with defaults applied.","examples":["examples/secure-agent.ts","examples/web-research.ts"]},
757
757
  {"name":"validateLoadedSkillBodies","kind":"function","signature":"export declare function validateLoadedSkillBodies(value: unknown, bounds?: SkillBodyBounds): asserts value is readonly LoadedSkillBodiesEntry[]","summary":"Fail-closed shape/cap validation for a persisted bodies payload (load and save sides)."},
758
758
  {"name":"validateSessionAppendBatch","kind":"function","signature":"export declare function validateSessionAppendBatch(entries: readonly SessionEntry[]): SessionAppendBatch | undefined","summary":"The store-independent part of `SessionStore.appendMany` validation (plan 230 Task 5): one session, no id twice, and the parents the batch does not carry itself.","docs":["node_modules/@arnilo/prism/docs/slots.md"]},
759
- {"name":"version","kind":"const","signature":"export declare const version = \"0.14.0\"","docs":["node_modules/@arnilo/prism/docs/agent-adapters.md","node_modules/@arnilo/prism/docs/events.md","node_modules/@arnilo/prism/docs/limits.md","node_modules/@arnilo/prism/docs/live-testing.md","node_modules/@arnilo/prism/docs/long-running.md","node_modules/@arnilo/prism/docs/manifest.md"]},
759
+ {"name":"version","kind":"const","signature":"export declare const version = \"0.14.1\"","docs":["node_modules/@arnilo/prism/docs/agent-adapters.md","node_modules/@arnilo/prism/docs/events.md","node_modules/@arnilo/prism/docs/limits.md","node_modules/@arnilo/prism/docs/live-testing.md","node_modules/@arnilo/prism/docs/long-running.md","node_modules/@arnilo/prism/docs/manifest.md"]},
760
760
  {"name":"waitForRetry","kind":"function","signature":"export declare function waitForRetry(decision: RetryDecision, signal?: AbortSignal): Promise<void>"},
761
761
  {"name":"withContextBlocks","kind":"function","signature":"export declare function withContextBlocks(draft: ContextDraft, blocks: readonly ContextBlock[]): ContextDraft | undefined","summary":"Append `blocks` to a draft's context, or return `undefined` when there is nothing to add — the transform's way of saying \"no change\", so the controller skips re-deriving the request.","examples":["examples/context.ts","examples/custom-builders.ts","examples/instruction-injection.ts","examples/rag.ts"]}
762
762
  ]
@@ -919,7 +919,7 @@
919
919
  {"name":"compileSystemOneState","kind":"function","signature":"export declare function compileSystemOneState(messages: readonly Message[], media?: ReadonlyMap<MediaContentBlock, ResolvedMediaContent>): SystemOneCompiledState","summary":"Messages → System One `state` + `images`."},
920
920
  {"name":"createBoundedUploadCache","kind":"function","signature":"export declare function createBoundedUploadCache<T>(maxEntries?: number): BoundedUploadCache<T>","docs":["node_modules/@arnilo/prism/docs/limits.md"]},
921
921
  {"name":"createOpenAICompatibleProvider","kind":"function","signature":"export declare function createOpenAICompatibleProvider(options: OpenAICompatibleProviderOptions): RoutedProvider","summary":"Creates an OpenAI-compatible provider as a single-route instance of `createRoutedProvider`.","docs":["node_modules/@arnilo/prism/docs/provider-kit.md"]},
922
- {"name":"createRoutedProvider","kind":"function","signature":"export declare function createRoutedProvider(options: RoutedProviderOptions): RoutedProvider","summary":"Creates a ModelProvider that dispatches across protocol routes (OpenAI Chat, Anthropic Messages, OpenAI Responses) based on model/request configuration.","docs":["node_modules/@arnilo/prism/docs/limits.md","node_modules/@arnilo/prism/docs/provider-kit.md"],"examples":["examples/custom-provider.ts"]},
922
+ {"name":"createRoutedProvider","kind":"function","signature":"export declare function createRoutedProvider(options: RoutedProviderOptions): RoutedProvider","summary":"Creates a ModelProvider that dispatches across protocol routes (OpenAI Chat, Anthropic Messages, OpenAI Responses) based on model/request configuration.","docs":["node_modules/@arnilo/prism/docs/credentials-and-redaction.md","node_modules/@arnilo/prism/docs/limits.md","node_modules/@arnilo/prism/docs/provider-kit.md"],"examples":["examples/custom-provider.ts"]},
923
923
  {"name":"createSystemOneDecisionProvider","kind":"function","signature":"export declare function createSystemOneDecisionProvider(options: SystemOneDecisionProviderOptions): ModelProvider","docs":["node_modules/@arnilo/prism/docs/decisions.md","node_modules/@arnilo/prism/docs/provider-kit.md"]},
924
924
  {"name":"createToolNameMap","kind":"function","signature":"export declare function createToolNameMap(tools?: readonly Pick<ToolDefinition, \"name\">[]): ToolNameMap","docs":["node_modules/@arnilo/prism/docs/provider-kit.md"]},
925
925
  {"name":"defaultProviderFilename","kind":"function","signature":"export declare function defaultProviderFilename(block: MediaContentBlock, fallback: string): string"},
@@ -1388,7 +1388,7 @@
1388
1388
  },
1389
1389
  {
1390
1390
  "name": "@arnilo/prism-ai",
1391
- "version": "0.14.0",
1391
+ "version": "0.14.1",
1392
1392
  "path": "packages/providers",
1393
1393
  "experimental": false,
1394
1394
  "entries": [
@@ -1652,7 +1652,7 @@
1652
1652
  {"name":"OpenAICodexAuthError","kind":"class","signature":"export declare class OpenAICodexAuthError extends Error","members":["readonly code: string","constructor(code: string, message: string)"],"summary":"Base for every sign-in failure."},
1653
1653
  {"name":"OpenAICodexAuthMethod","kind":"type","signature":"export type OpenAICodexAuthMethod = Extract<AuthMethod, { kind: \"oauth\"; }>","summary":"The shape `openAICodexAuth` returns; still a plain `AuthMethod` to a host."},
1654
1654
  {"name":"OpenAICodexCredentialRecord","kind":"interface","signature":"export interface OpenAICodexCredentialRecord","members":["readonly v: 1","readonly clientId: string","readonly hostId: string","readonly access: string","readonly refresh: string","readonly expires: number","readonly earliestRefreshAt?: number","readonly scope: string","readonly sub?: string","readonly idToken?: string"],"summary":"The record the credential ref holds."},
1655
- {"name":"OpenAICodexCredentialSlot","kind":"interface","signature":"export interface OpenAICodexCredentialSlot","members":["resolve(ref: string): Promise<Secret | undefined>","store?(ref: string, secret: Secret): Promise<void>","delete?(ref: string): Promise<void>"],"summary":"What the OAuth client needs from the credentials slot: read the record, write the rotation."},
1655
+ {"name":"OpenAICodexCredentialSlot","kind":"interface","signature":"export interface OpenAICodexCredentialSlot","members":["resolve(ref: string, request?: ProviderRequest): Promise<Secret | undefined>","store?(ref: string, secret: Secret): Promise<void>","delete?(ref: string): Promise<void>"],"summary":"What the OAuth client needs from the credentials slot: read the record, write the rotation."},
1656
1656
  {"name":"OpenAICodexModelConfig","kind":"interface","signature":"export interface OpenAICodexModelConfig extends Omit<ModelConfig, \"provider\" | \"compat\">","members":["readonly provider?: \"openai-codex\"","readonly compat?: JsonObject & { readonly route?: string; readonly reasoning?: JsonObject; }"]},
1657
1657
  {"name":"OpenAICodexModelEntry","kind":"interface","signature":"export interface OpenAICodexModelEntry","members":["readonly slug: string","readonly display_name?: string","readonly description?: string","readonly visibility?: string","readonly context_window?: number","readonly max_context_window?: number","readonly auto_compact_token_limit?: number | null","readonly input_modalities?: readonly string[]","readonly supported_reasoning_levels?: readonly (string | { readonly effort?: string; })[]","readonly default_reasoning_level?: string","readonly supported_in_api?: boolean","readonly supports_parallel_tool_calls?: boolean","readonly supports_reasoning_summary_parameter?: boolean"],"summary":"One `GET /models` entry, as measured on a sign-in grant (plan 204 Task 5): the payload nests the catalog under `models` and carries capability fields on every entry."},
1658
1658
  {"name":"OpenAICodexOAuthConfig","kind":"interface","signature":"export interface OpenAICodexOAuthConfig","members":["readonly credential: string","readonly appName?: string","readonly callbackPort?: number","readonly callback?: \"listen\" | \"paste\"","readonly fetch?: typeof fetch","readonly now?: () => number","readonly slot?: OpenAICodexCredentialSlot","readonly signal?: AbortSignal"]},
@@ -1674,7 +1674,7 @@
1674
1674
  {"name":"listOpenAICodexModels","kind":"function","signature":"export declare function listOpenAICodexModels(options?: ListOpenAICodexModelsOptions): Promise<readonly ModelConfig[]>","summary":"Asks `GET /models` with the current grant and keeps the entries the catalog lists."},
1675
1675
  {"name":"mapOpenAICodexModel","kind":"function","signature":"export declare function mapOpenAICodexModel(entry: OpenAICodexModelEntry, provider?: string): ModelConfig","summary":"Maps one discovery entry to a `ModelConfig`; unknown facts stay undefined rather than guessed."},
1676
1676
  {"name":"openAICodexAffinity","kind":"function","signature":"export declare function openAICodexAffinity(request: ProviderRequest): Record<string, string>","summary":"Cache and routing affinity: both headers carry the sanitized session key, so a request from the same session lands on the same backend and reuses the same prompt cache."},
1677
- {"name":"openAICodexApiKey","kind":"function","signature":"export declare function openAICodexApiKey(config: OpenAICodexOAuthConfig): (signal?: AbortSignal) => Promise<string>","summary":"The provider's request-time credential: the stored access token, refreshed when it expires within OPENAI_CODEX_EXPIRY_MARGIN_MS."},
1677
+ {"name":"openAICodexApiKey","kind":"function","signature":"export declare function openAICodexApiKey(config: OpenAICodexOAuthConfig): (signal?: AbortSignal, request?: ProviderRequest) => Promise<string>","summary":"The provider's request-time credential: the stored access token, refreshed when it expires within OPENAI_CODEX_EXPIRY_MARGIN_MS."},
1678
1678
  {"name":"openAICodexAuth","kind":"function","signature":"export declare function openAICodexAuth(config: OpenAICodexOAuthConfig): OpenAICodexAuthMethod","summary":"The provider's `AuthMethod`.","docs":["node_modules/@arnilo/prism/docs/credentials-and-redaction.md"]},
1679
1679
  {"name":"openAICodexErrorCode","kind":"function","signature":"export declare function openAICodexErrorCode(bodyText: string): string | undefined","summary":"Reads the provider code out of a failure body: `{\"detail\": \"...\"}` admission bodies carry it as prose ending in the code, `{\"error\": {\"code\": ...}}` carries it as a field."},
1680
1680
  {"name":"openAICodexHttpError","kind":"function","signature":"export declare function openAICodexHttpError(response: Response, bodyText: string, secrets: readonly (string | undefined)[]): Error","summary":"Builds the failure for a non-2xx Responses response."},
@@ -3121,7 +3121,7 @@
3121
3121
  },
3122
3122
  {
3123
3123
  "name": "@arnilo/prism-hosts",
3124
- "version": "0.14.0",
3124
+ "version": "0.14.1",
3125
3125
  "path": "packages/hosts",
3126
3126
  "experimental": false,
3127
3127
  "entries": [
@@ -4311,7 +4311,7 @@
4311
4311
  {"name":"resolveMemoryWorkerLimits","kind":"function","signature":"export declare function resolveMemoryWorkerLimits(input?: MemoryWorkerLimitOptions): ResolvedMemoryWorkerLimits","docs":["node_modules/@arnilo/prism/docs/migrate-to-0.13.md"]},
4312
4312
  {"name":"resolveRecallScoring","kind":"function","signature":"export declare function resolveRecallScoring(options: RecallScoringOptions | undefined): ResolvedRecallScoring | undefined","summary":"Validate weights (finite, in [0,1]) and sum-normalize."},
4313
4313
  {"name":"revokedIdsAbsent","kind":"function","signature":"export declare function revokedIdsAbsent(environment: { readonly injectedIds?: readonly string[]; } | undefined, deniedIds: readonly string[]): { readonly score: number; }","summary":"072 invariant body: wrap with `defineScorer({ invariant: true, score: ..."},
4314
- {"name":"runMemoryWorkerLoop","kind":"function","signature":"export declare function runMemoryWorkerLoop(options: MemoryWorkerLoopOptions): Promise<MemoryWorkerLoopResult>","docs":["node_modules/@arnilo/prism/docs/migrate-to-0.13.md"]},
4314
+ {"name":"runMemoryWorkerLoop","kind":"function","signature":"export declare function runMemoryWorkerLoop(options: MemoryWorkerLoopOptions): Promise<MemoryWorkerLoopResult>","docs":["node_modules/@arnilo/prism/docs/credentials-and-redaction.md","node_modules/@arnilo/prism/docs/migrate-to-0.13.md"]},
4315
4315
  {"name":"scanScopedMemoryContent","kind":"function","signature":"export declare function scanScopedMemoryContent(text: string): { readonly ok: true; } | { readonly ok: false; readonly class: \"prompt-injection\" | \"exfil\" | \"invisible-unicode\"; }","docs":["node_modules/@arnilo/prism/docs/migrate-to-0.13.md"]},
4316
4316
  {"name":"scopeKey","kind":"function","signature":"export declare function scopeKey(scope: MemoryScope): string"},
4317
4317
  {"name":"selectAdjacentRecords","kind":"function","signature":"export declare function selectAdjacentRecords(threadRecords: readonly MemoryVectorRecord[], hits: readonly MemoryVectorHit[], messageRange: number): MemoryVectorRecord[]"},
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "prismVersion": "0.14.0",
3
+ "prismVersion": "0.14.1",
4
4
  "contentHash": "2835346b1c4cfa1b058f0d1723b4a8376ef62767b3b9a6202f3673974aeaff80",
5
5
  "codes": [
6
6
  {"code":"ERR_PRISM_A2A_CONFIG","namespace":"ERR_PRISM","package":"@arnilo/prism-hosts","file":"packages/hosts/a2a/src/errors.ts","line":41,"errorClass":"A2AConfigError","meaning":"Invalid `serveA2A` / `connectA2A` options, thrown at construction.","sampleMessage":null,"docs":[]},
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "prismVersion": "0.14.0",
3
+ "prismVersion": "0.14.1",
4
4
  "contentHash": "75fc16968d39788d3d4456f0868c2220580fa4537621501d37e2a473142ee766",
5
5
  "examples": [
6
6
  {"path":"examples/a2a-client.ts","title":"Bun-only demo (the examples tsconfig is Node-typed): the one Bun global this file uses.","gate":"executed","imports":["@arnilo/prism","@arnilo/prism-hosts/a2a","@arnilo/prism/provider-kit"],"requiresEnv":["DEMO_A2A_TOKEN"],"needsCredentials":true},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arnilo/prism-hosts",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Prism host libraries, process driver and version-exact host-builder kit. Import each library through its subpath.",
5
5
  "type": "module",
6
6
  "exports": {