@full-self-browsing/lattice 1.3.0 → 1.4.0
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/index.d.ts +306 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8036 -163
- package/dist/index.js.map +1 -1
- package/dist/{run-crew-DDznbc3G.js → run-crew-CKdBjh5P.js} +138 -16
- package/dist/run-crew-CKdBjh5P.js.map +1 -0
- package/dist/{runtime-BTi8lr_O.js → runtime-D25ehzCj.js} +6 -3
- package/dist/runtime-D25ehzCj.js.map +1 -0
- package/package.json +7 -5
- package/dist/run-crew-DDznbc3G.js.map +0 -1
- package/dist/runtime-BTi8lr_O.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
2
2
|
|
|
3
3
|
//#region src/policy/policy.d.ts
|
|
4
|
+
type GatewayMetadataValue = string | number | boolean | null | readonly GatewayMetadataValue[] | {
|
|
5
|
+
readonly [key: string]: GatewayMetadataValue;
|
|
6
|
+
};
|
|
7
|
+
interface GatewayPolicy {
|
|
8
|
+
readonly routeTags?: readonly string[];
|
|
9
|
+
readonly providerPreferences?: readonly string[];
|
|
10
|
+
readonly metadata?: Record<string, GatewayMetadataValue>;
|
|
11
|
+
readonly allowFallbacks?: boolean;
|
|
12
|
+
}
|
|
4
13
|
interface PolicySpec {
|
|
5
14
|
readonly maxCostUsd?: number;
|
|
6
15
|
readonly latency?: "interactive" | "batch";
|
|
@@ -10,6 +19,8 @@ interface PolicySpec {
|
|
|
10
19
|
readonly noUpload?: boolean;
|
|
11
20
|
readonly noPublicUrl?: boolean;
|
|
12
21
|
readonly noLogging?: boolean;
|
|
22
|
+
readonly stream?: boolean;
|
|
23
|
+
readonly gateway?: GatewayPolicy;
|
|
13
24
|
readonly metadata?: Record<string, unknown>;
|
|
14
25
|
}
|
|
15
26
|
//#endregion
|
|
@@ -115,7 +126,7 @@ interface TracerLike {
|
|
|
115
126
|
readonly span?: <T>(name: string, fn: () => T | Promise<T>, attributes?: Record<string, unknown>) => T | Promise<T>;
|
|
116
127
|
readonly event?: (name: string, attributes?: Record<string, unknown>) => void;
|
|
117
128
|
}
|
|
118
|
-
type RunEventKind = "run.start" | "artifact.ingested" | "context.packed" | "router.candidates" | "stage.start" | "stage.complete" | "provider.attempt" | "fallback.activated" | "validation.complete" | "validation.failed" | "artifact.created" | "run.complete" | "run.failed" | "tool.call" | "replay.offline" | "replay.live" | "step.transition" | "recovery.start" | "recovery.complete" | "recovery.failed" | "capabilities.negotiation.fallback";
|
|
129
|
+
type RunEventKind = "run.start" | "artifact.ingested" | "context.packed" | "router.candidates" | "stage.start" | "stage.complete" | "provider.attempt" | "stream.start" | "stream.complete" | "stream.failed" | "fallback.activated" | "validation.complete" | "validation.failed" | "artifact.created" | "run.complete" | "run.failed" | "tool.call" | "replay.offline" | "replay.live" | "step.transition" | "recovery.start" | "recovery.complete" | "recovery.failed" | "capabilities.negotiation.fallback";
|
|
119
130
|
interface RunEvent {
|
|
120
131
|
readonly kind: RunEventKind;
|
|
121
132
|
readonly timestamp: string;
|
|
@@ -375,11 +386,11 @@ declare function evaluateTripwires(output: unknown, invariants: readonly Invaria
|
|
|
375
386
|
//#endregion
|
|
376
387
|
//#region src/capabilities/profile.d.ts
|
|
377
388
|
/**
|
|
378
|
-
* Closed enum of the
|
|
389
|
+
* Closed enum of the 8 Lattice transport adapters (D-06). Adding a new
|
|
379
390
|
* adapter is a typed breaking change. Phase 34 quirk dispatch reads this
|
|
380
391
|
* field.
|
|
381
392
|
*/
|
|
382
|
-
type CapabilityAdapter = "openrouter" | "anthropic" | "openai" | "openai-compat" | "xai" | "gemini" | "lm-studio";
|
|
393
|
+
type CapabilityAdapter = "openrouter" | "anthropic" | "openai" | "openai-compat" | "xai" | "gemini" | "lm-studio" | "litellm";
|
|
383
394
|
/**
|
|
384
395
|
* Closed enum of the 5 training-lineage buckets (D-14). Receipt v1.2
|
|
385
396
|
* (Phase 38) carries this value verbatim via the `modelClass` field.
|
|
@@ -414,6 +425,9 @@ type ReasoningSurface = "none" | "hidden_cot" | "inlined_tags" | "interleaved_th
|
|
|
414
425
|
* the Phase 37 tool-call validator's choice of arguments parser.
|
|
415
426
|
*/
|
|
416
427
|
type ToolCallSurface = "none" | "native_strict" | "native_lenient" | "json_only" | "text_only";
|
|
428
|
+
type ModelCapabilityProfilePricingKey = "prompt" | "completion" | "image" | "audio" | "web_search" | "internal_reasoning" | "input_cache_read" | "input_cache_write";
|
|
429
|
+
type ModelCapabilityProfilePricing = Partial<Record<ModelCapabilityProfilePricingKey, string>>;
|
|
430
|
+
type ModelCapabilityProfileModality = "text" | "image" | "audio" | "video" | "file" | "embeddings";
|
|
417
431
|
/**
|
|
418
432
|
* Phase 33 — D-05 / D-08 — Capability profile for one (adapter, model)
|
|
419
433
|
* pair. Sibling to `ModelCapability`, not a replacement. Built-time baked
|
|
@@ -435,7 +449,7 @@ interface ModelCapabilityProfile {
|
|
|
435
449
|
/**
|
|
436
450
|
* The Lattice transport adapter that ships this profile (D-05 /
|
|
437
451
|
* D-06). Phase 34 adapter-quirk dispatch reads this field. Closed
|
|
438
|
-
* union of
|
|
452
|
+
* union of 8 values.
|
|
439
453
|
*/
|
|
440
454
|
readonly adapter: CapabilityAdapter;
|
|
441
455
|
/**
|
|
@@ -469,6 +483,10 @@ interface ModelCapabilityProfile {
|
|
|
469
483
|
* the model card's aspirational maximum.
|
|
470
484
|
*/
|
|
471
485
|
readonly contextWindow: number;
|
|
486
|
+
readonly pricing?: ModelCapabilityProfilePricing;
|
|
487
|
+
readonly inputModalities?: readonly ModelCapabilityProfileModality[];
|
|
488
|
+
readonly outputModalities?: readonly ModelCapabilityProfileModality[];
|
|
489
|
+
readonly supportedParameters?: readonly string[];
|
|
472
490
|
/**
|
|
473
491
|
* Failure modes this model class is known to exhibit (D-14). Class-
|
|
474
492
|
* derived defaults plus per-family overrides. Phase 36 sanitizer
|
|
@@ -1237,6 +1255,7 @@ interface AgentIntent<TOutputs extends OutputContractMap = OutputContractMap> {
|
|
|
1237
1255
|
interface AgentSuccess<TOutputs extends OutputContractMap = OutputContractMap> {
|
|
1238
1256
|
readonly kind: "success";
|
|
1239
1257
|
readonly output: InferOutputMap<TOutputs>;
|
|
1258
|
+
readonly artifacts?: readonly ArtifactRef[];
|
|
1240
1259
|
readonly usage: Usage;
|
|
1241
1260
|
readonly iterations: ReadonlyArray<IterationRecord>;
|
|
1242
1261
|
readonly receipt?: ReceiptEnvelope;
|
|
@@ -1451,6 +1470,18 @@ interface LmStudioQuirks extends AdapterQuirks {
|
|
|
1451
1470
|
readonly customChatTemplateRiskFlag: boolean;
|
|
1452
1471
|
readonly noAuthRequired: boolean;
|
|
1453
1472
|
}
|
|
1473
|
+
/**
|
|
1474
|
+
* LiteLLM adapter quirks (extends AdapterQuirks with gateway-specific flags).
|
|
1475
|
+
*
|
|
1476
|
+
* LiteLLM is consumed as an OpenAI-compatible gateway. Lattice does not start,
|
|
1477
|
+
* embed, or depend on a LiteLLM gateway process; these flags describe the
|
|
1478
|
+
* helper's supported gateway metadata contract over HTTP.
|
|
1479
|
+
*/
|
|
1480
|
+
interface LiteLLMQuirks extends AdapterQuirks {
|
|
1481
|
+
readonly gatewayMetadataSupported: boolean;
|
|
1482
|
+
readonly gatewayFallbacksSupported: boolean;
|
|
1483
|
+
readonly openAIErrorMapping: boolean;
|
|
1484
|
+
}
|
|
1454
1485
|
//#endregion
|
|
1455
1486
|
//#region src/capabilities/sanitizer-recommendations.d.ts
|
|
1456
1487
|
/**
|
|
@@ -1666,6 +1697,13 @@ interface ProviderRunRequest {
|
|
|
1666
1697
|
*/
|
|
1667
1698
|
readonly cacheSystemPrefix?: string;
|
|
1668
1699
|
}
|
|
1700
|
+
interface ProviderGatewayMetadata {
|
|
1701
|
+
readonly used: boolean;
|
|
1702
|
+
readonly requestedModel?: string;
|
|
1703
|
+
readonly observedModel?: string;
|
|
1704
|
+
readonly fallbackModels?: readonly string[];
|
|
1705
|
+
readonly policy?: Record<string, unknown>;
|
|
1706
|
+
}
|
|
1669
1707
|
interface ProviderRunResponse {
|
|
1670
1708
|
readonly rawOutputs: Record<string, unknown>;
|
|
1671
1709
|
readonly artifactRefs?: readonly (ArtifactInput | ArtifactRef)[];
|
|
@@ -1684,13 +1722,50 @@ interface ProviderRunResponse {
|
|
|
1684
1722
|
*/
|
|
1685
1723
|
readonly normalizedUsage?: Usage;
|
|
1686
1724
|
readonly toolCalls?: readonly ValidatedToolCall[];
|
|
1725
|
+
readonly gateway?: ProviderGatewayMetadata;
|
|
1726
|
+
readonly rawResponse?: unknown;
|
|
1727
|
+
}
|
|
1728
|
+
interface ProviderStreamTextDeltaChunk {
|
|
1729
|
+
readonly kind: "text-delta";
|
|
1730
|
+
readonly output?: string;
|
|
1731
|
+
readonly text: string;
|
|
1732
|
+
}
|
|
1733
|
+
interface ProviderStreamOutputChunk {
|
|
1734
|
+
readonly kind: "output";
|
|
1735
|
+
readonly output: string;
|
|
1736
|
+
readonly value: unknown;
|
|
1737
|
+
}
|
|
1738
|
+
interface ProviderStreamUsageChunk {
|
|
1739
|
+
readonly kind: "usage";
|
|
1740
|
+
readonly usage?: UsageRecord;
|
|
1741
|
+
readonly normalizedUsage?: Usage;
|
|
1742
|
+
}
|
|
1743
|
+
interface ProviderStreamGatewayChunk {
|
|
1744
|
+
readonly kind: "gateway";
|
|
1745
|
+
readonly gateway: ProviderGatewayMetadata;
|
|
1746
|
+
}
|
|
1747
|
+
interface ProviderStreamToolCallChunk {
|
|
1748
|
+
readonly kind: "tool-call";
|
|
1749
|
+
readonly toolCall: ValidatedToolCall;
|
|
1750
|
+
}
|
|
1751
|
+
interface ProviderStreamCompleteChunk {
|
|
1752
|
+
readonly kind: "complete";
|
|
1753
|
+
readonly rawOutputs?: Record<string, unknown>;
|
|
1754
|
+
readonly artifactRefs?: readonly (ArtifactInput | ArtifactRef)[];
|
|
1755
|
+
readonly usage?: UsageRecord;
|
|
1756
|
+
readonly normalizedUsage?: Usage;
|
|
1757
|
+
readonly gateway?: ProviderGatewayMetadata;
|
|
1758
|
+
readonly toolCalls?: readonly ValidatedToolCall[];
|
|
1687
1759
|
readonly rawResponse?: unknown;
|
|
1688
1760
|
}
|
|
1761
|
+
type ProviderStreamChunk = ProviderStreamTextDeltaChunk | ProviderStreamOutputChunk | ProviderStreamUsageChunk | ProviderStreamGatewayChunk | ProviderStreamToolCallChunk | ProviderStreamCompleteChunk;
|
|
1762
|
+
type ProviderStream = AsyncIterable<ProviderStreamChunk>;
|
|
1689
1763
|
interface ProviderAdapter {
|
|
1690
1764
|
readonly id: string;
|
|
1691
1765
|
readonly kind: "provider-adapter";
|
|
1692
1766
|
readonly capabilities?: readonly ModelCapability[];
|
|
1693
1767
|
readonly execute?: (request: ProviderRunRequest) => Promise<ProviderRunResponse>;
|
|
1768
|
+
readonly executeStream?: (request: ProviderRunRequest) => ProviderStream | Promise<ProviderStream>;
|
|
1694
1769
|
/**
|
|
1695
1770
|
* Phase 34 — D-01 — Per-adapter behavioral deviation flags. OPTIONAL on the
|
|
1696
1771
|
* base interface so v1.2 consumer adapters (4-field literals) continue to work
|
|
@@ -1800,8 +1875,22 @@ interface ProviderPackagedArtifactPlan {
|
|
|
1800
1875
|
readonly transport: ProviderTransportMode;
|
|
1801
1876
|
readonly mediaType?: string;
|
|
1802
1877
|
readonly lineageTransform: "provider-packaging";
|
|
1878
|
+
readonly providerRequest?: ProviderPackagedArtifactRequestPlan;
|
|
1803
1879
|
readonly warnings: readonly string[];
|
|
1804
1880
|
}
|
|
1881
|
+
type ProviderPackagedArtifactSourceType = ProviderTransportMode | "file-reference";
|
|
1882
|
+
interface ProviderPackagedArtifactRequestPlan {
|
|
1883
|
+
readonly shape: string;
|
|
1884
|
+
readonly sourceType: ProviderPackagedArtifactSourceType;
|
|
1885
|
+
readonly reason: string;
|
|
1886
|
+
readonly mediaType?: string;
|
|
1887
|
+
readonly sizeBytes?: number;
|
|
1888
|
+
readonly reference?: ProviderPackagedArtifactReferencePlan;
|
|
1889
|
+
}
|
|
1890
|
+
interface ProviderPackagedArtifactReferencePlan {
|
|
1891
|
+
readonly kind: "url" | "file-id" | "file-uri" | "storage";
|
|
1892
|
+
readonly metadataKey?: string;
|
|
1893
|
+
}
|
|
1805
1894
|
interface ProviderAttemptRecord {
|
|
1806
1895
|
readonly providerId: string;
|
|
1807
1896
|
readonly modelId: string;
|
|
@@ -1810,6 +1899,7 @@ interface ProviderAttemptRecord {
|
|
|
1810
1899
|
readonly completedAt?: string;
|
|
1811
1900
|
readonly error?: string;
|
|
1812
1901
|
readonly usage?: UsageRecord;
|
|
1902
|
+
readonly metadata?: Record<string, unknown>;
|
|
1813
1903
|
}
|
|
1814
1904
|
interface UsageRecord {
|
|
1815
1905
|
readonly inputTokens?: number;
|
|
@@ -1866,7 +1956,7 @@ interface ReceiptRedaction {
|
|
|
1866
1956
|
readonly reason: string;
|
|
1867
1957
|
}
|
|
1868
1958
|
interface CapabilityReceiptBody {
|
|
1869
|
-
readonly version: "lattice-receipt/v1" | "lattice-receipt/v1.1" | "lattice-receipt/v1.2";
|
|
1959
|
+
readonly version: "lattice-receipt/v1" | "lattice-receipt/v1.1" | "lattice-receipt/v1.2" | "lattice-receipt/v1.3";
|
|
1870
1960
|
readonly receiptId: string;
|
|
1871
1961
|
readonly runId: string;
|
|
1872
1962
|
readonly issuedAt: string;
|
|
@@ -1875,6 +1965,7 @@ interface CapabilityReceiptBody {
|
|
|
1875
1965
|
readonly route: ReceiptRoute;
|
|
1876
1966
|
readonly modelClass?: TrainingClass;
|
|
1877
1967
|
readonly parentReceiptCid?: string;
|
|
1968
|
+
readonly lineageMerkleRoot?: string;
|
|
1878
1969
|
readonly usage: ReceiptUsageCanonical;
|
|
1879
1970
|
readonly contractVerdict: ContractVerdict;
|
|
1880
1971
|
readonly contractHash: string | null;
|
|
@@ -1933,7 +2024,7 @@ type VerifyResult = VerifyOk | VerifyFail;
|
|
|
1933
2024
|
//#region src/receipts/receipt.d.ts
|
|
1934
2025
|
/**
|
|
1935
2026
|
* Public input to createReceipt. Mirrors CapabilityReceiptBody minus:
|
|
1936
|
-
* - `version` (forced to "lattice-receipt/v1.
|
|
2027
|
+
* - `version` (forced to "lattice-receipt/v1.3" per Phase 46)
|
|
1937
2028
|
* - `kid` (forced from signer.kid — caller cannot mismatch)
|
|
1938
2029
|
* - `redactions[]` (populated by redactReceiptBody)
|
|
1939
2030
|
* - `usage.costUsd` (converted to canonical string by usageToCanonical)
|
|
@@ -1949,6 +2040,7 @@ interface CreateReceiptInput {
|
|
|
1949
2040
|
readonly route: ReceiptRoute;
|
|
1950
2041
|
readonly modelClass?: TrainingClass;
|
|
1951
2042
|
readonly parentReceiptCid?: string;
|
|
2043
|
+
readonly lineageMerkleRoot?: string;
|
|
1952
2044
|
readonly usage: Usage;
|
|
1953
2045
|
readonly contractVerdict: ContractVerdict;
|
|
1954
2046
|
readonly contractHash: string | null;
|
|
@@ -2127,6 +2219,60 @@ interface EvaluateContractInput {
|
|
|
2127
2219
|
*/
|
|
2128
2220
|
declare function evaluateContractAgainstRoute(contract: CapabilityContract | undefined, input: EvaluateContractInput): ContractPreflightResult;
|
|
2129
2221
|
//#endregion
|
|
2222
|
+
//#region src/observability/otel.d.ts
|
|
2223
|
+
type OtelAttributeValue = string | number | boolean | readonly string[] | readonly number[] | readonly boolean[];
|
|
2224
|
+
type OtelAttributes = Record<string, OtelAttributeValue>;
|
|
2225
|
+
interface OtelSpanStatus {
|
|
2226
|
+
readonly code: number;
|
|
2227
|
+
readonly message?: string;
|
|
2228
|
+
}
|
|
2229
|
+
interface OtelSpanLike {
|
|
2230
|
+
setAttribute?(key: string, value: OtelAttributeValue): unknown;
|
|
2231
|
+
setAttributes?(attributes: OtelAttributes): unknown;
|
|
2232
|
+
addEvent?(name: string, attributes?: OtelAttributes): unknown;
|
|
2233
|
+
setStatus?(status: OtelSpanStatus): unknown;
|
|
2234
|
+
recordException?(error: Error | string | Record<string, unknown>): unknown;
|
|
2235
|
+
end?(endTime?: Date | number): unknown;
|
|
2236
|
+
}
|
|
2237
|
+
interface OtelTracerLike {
|
|
2238
|
+
startSpan(name: string, options?: {
|
|
2239
|
+
readonly attributes?: OtelAttributes;
|
|
2240
|
+
readonly startTime?: Date | number;
|
|
2241
|
+
}): OtelSpanLike;
|
|
2242
|
+
}
|
|
2243
|
+
type OtelContentCaptureMode = "none" | "metadata";
|
|
2244
|
+
interface OtelSanitizerOptions {
|
|
2245
|
+
readonly contentCapture?: OtelContentCaptureMode;
|
|
2246
|
+
}
|
|
2247
|
+
interface OtelRunEventSinkOptions extends OtelSanitizerOptions {
|
|
2248
|
+
readonly tracer: OtelTracerLike;
|
|
2249
|
+
readonly spanName?: string;
|
|
2250
|
+
}
|
|
2251
|
+
interface OtelHttpTraceConfig {
|
|
2252
|
+
readonly endpoint: string;
|
|
2253
|
+
readonly headers: Record<string, string>;
|
|
2254
|
+
}
|
|
2255
|
+
interface LangfuseOtlpConfigOptions {
|
|
2256
|
+
readonly baseUrl?: string;
|
|
2257
|
+
readonly publicKey?: string;
|
|
2258
|
+
readonly secretKey?: string;
|
|
2259
|
+
readonly authString?: string;
|
|
2260
|
+
readonly ingestionVersion?: string;
|
|
2261
|
+
readonly headers?: Record<string, string>;
|
|
2262
|
+
}
|
|
2263
|
+
interface PhoenixOtlpConfigOptions {
|
|
2264
|
+
readonly baseUrl?: string;
|
|
2265
|
+
readonly endpoint?: string;
|
|
2266
|
+
readonly apiKey?: string;
|
|
2267
|
+
readonly projectName?: string;
|
|
2268
|
+
readonly headers?: Record<string, string>;
|
|
2269
|
+
}
|
|
2270
|
+
declare function createOtelRunEventSink(options: OtelRunEventSinkOptions): RunEventSink;
|
|
2271
|
+
declare function sanitizeRunEventAttributes(event: RunEvent, options?: OtelSanitizerOptions): OtelAttributes;
|
|
2272
|
+
declare function createOtelReceiptAttributes(envelope: ReceiptEnvelope): Promise<OtelAttributes>;
|
|
2273
|
+
declare function createLangfuseOtlpConfig(options?: LangfuseOtlpConfigOptions): OtelHttpTraceConfig;
|
|
2274
|
+
declare function createPhoenixOtlpConfig(options?: PhoenixOtlpConfigOptions): OtelHttpTraceConfig;
|
|
2275
|
+
//#endregion
|
|
2130
2276
|
//#region src/receipts/keyset.d.ts
|
|
2131
2277
|
/**
|
|
2132
2278
|
* In-memory KeySet factory.
|
|
@@ -2145,6 +2291,39 @@ declare function evaluateContractAgainstRoute(contract: CapabilityContract | und
|
|
|
2145
2291
|
*/
|
|
2146
2292
|
declare function createMemoryKeySet(entries: readonly KeyEntry[]): KeySet;
|
|
2147
2293
|
//#endregion
|
|
2294
|
+
//#region src/receipts/remote-signer.d.ts
|
|
2295
|
+
type RemoteReceiptSignerProvider = "aws-kms" | "gcp-kms" | "external-kms" | (string & {});
|
|
2296
|
+
type RemoteReceiptPayloadFormat = "dsse-pae";
|
|
2297
|
+
interface RemoteReceiptSignRequest {
|
|
2298
|
+
readonly kid: string;
|
|
2299
|
+
readonly publicKeyJwk: JsonWebKey;
|
|
2300
|
+
readonly bytes: Uint8Array;
|
|
2301
|
+
readonly payloadFormat: RemoteReceiptPayloadFormat;
|
|
2302
|
+
readonly algorithm: "Ed25519";
|
|
2303
|
+
readonly provider?: RemoteReceiptSignerProvider;
|
|
2304
|
+
readonly keyRef?: string;
|
|
2305
|
+
readonly metadata?: Record<string, unknown>;
|
|
2306
|
+
}
|
|
2307
|
+
interface RemoteReceiptSignResult {
|
|
2308
|
+
readonly signature: Uint8Array;
|
|
2309
|
+
}
|
|
2310
|
+
interface RemoteReceiptSignerOptions {
|
|
2311
|
+
readonly kid: string;
|
|
2312
|
+
readonly publicKeyJwk: JsonWebKey;
|
|
2313
|
+
readonly provider?: RemoteReceiptSignerProvider;
|
|
2314
|
+
readonly keyRef?: string;
|
|
2315
|
+
readonly metadata?: Record<string, unknown>;
|
|
2316
|
+
sign(request: RemoteReceiptSignRequest): Promise<Uint8Array | RemoteReceiptSignResult>;
|
|
2317
|
+
}
|
|
2318
|
+
/**
|
|
2319
|
+
* Adapt a remote signing service to Lattice's existing ReceiptSigner contract.
|
|
2320
|
+
*
|
|
2321
|
+
* The callback receives the exact DSSE PAE bytes that createReceipt signs.
|
|
2322
|
+
* Cloud-specific request construction, hashing choices, credentials, retries,
|
|
2323
|
+
* and audit logging stay outside core.
|
|
2324
|
+
*/
|
|
2325
|
+
declare function createRemoteReceiptSigner(options: RemoteReceiptSignerOptions): ReceiptSigner;
|
|
2326
|
+
//#endregion
|
|
2148
2327
|
//#region src/receipts/sign.d.ts
|
|
2149
2328
|
interface GeneratedEd25519KeyPair {
|
|
2150
2329
|
readonly privateKeyJwk: JsonWebKey;
|
|
@@ -2178,6 +2357,22 @@ declare function createInMemorySigner(privateKeyJwk: JsonWebKey, options: {
|
|
|
2178
2357
|
*/
|
|
2179
2358
|
declare function verifyReceipt(envelope: ReceiptEnvelope, keySet: KeySet): Promise<VerifyResult>;
|
|
2180
2359
|
//#endregion
|
|
2360
|
+
//#region src/providers/no-public-url.d.ts
|
|
2361
|
+
/**
|
|
2362
|
+
* Thrown when a run with `policy.noPublicUrl: true` is about to dispatch a
|
|
2363
|
+
* request whose serialized body still contains a public http(s) URL derived
|
|
2364
|
+
* from `request.artifacts` (value or string metadata entry).
|
|
2365
|
+
*
|
|
2366
|
+
* This is the single shared egress error class for all three adapter families
|
|
2367
|
+
* (OpenAI-compatible, Anthropic, Gemini). Callers may `instanceof`-check it.
|
|
2368
|
+
*/
|
|
2369
|
+
declare class NoPublicUrlEgressError extends Error {
|
|
2370
|
+
readonly providerId: string;
|
|
2371
|
+
readonly artifactId: string;
|
|
2372
|
+
readonly offendingUrl: string;
|
|
2373
|
+
constructor(providerId: string, artifactId: string, offendingUrl: string);
|
|
2374
|
+
}
|
|
2375
|
+
//#endregion
|
|
2181
2376
|
//#region src/sanitizers/sanitizers.d.ts
|
|
2182
2377
|
interface SanitizerContext {
|
|
2183
2378
|
readonly providerId: string;
|
|
@@ -2201,6 +2396,7 @@ interface OpenAICompatibleProviderOptions {
|
|
|
2201
2396
|
readonly model: string;
|
|
2202
2397
|
readonly baseUrl: string;
|
|
2203
2398
|
readonly apiKey?: string;
|
|
2399
|
+
readonly gateway?: GatewayPolicy;
|
|
2204
2400
|
readonly fetch?: typeof fetch;
|
|
2205
2401
|
/**
|
|
2206
2402
|
* Phase 7 addition: caller-supplied per-1k pricing. When provided, the
|
|
@@ -2323,11 +2519,11 @@ declare function createAISdkProvider(options: SdkLikeProviderOptions): ProviderA
|
|
|
2323
2519
|
*
|
|
2324
2520
|
* SECURITY: `apiKey` is a runtime parameter -- do NOT hardcode or log it.
|
|
2325
2521
|
*
|
|
2522
|
+
* STREAMING (Phase 44): supported through native Anthropic Messages SSE events.
|
|
2523
|
+
*
|
|
2326
2524
|
* DEFERRED (Phase 4 carryforward notes):
|
|
2327
2525
|
* - prompt caching (Phase 39: opt-in via `ProviderRunRequest.cacheSystemPrefix` —
|
|
2328
2526
|
* emitted as a cache_control-marked system block when present)
|
|
2329
|
-
* - streaming (deferred; this adapter is single-shot Promise -- per CONTEXT.md D-06)
|
|
2330
|
-
* - tool use (Anthropic tool_use blocks are deferred)
|
|
2331
2527
|
* - resume-from-eviction -- see Phase 5 (MV3-survivability adapter contract)
|
|
2332
2528
|
*
|
|
2333
2529
|
* Ref: FSB v0.10.0-attempt-2 Phase 4 (D-02 + D-07: full custom adapter; preserve top-level `system`).
|
|
@@ -2404,10 +2600,10 @@ declare function createFakeProvider(options?: FakeProviderOptions): ProviderAdap
|
|
|
2404
2600
|
*
|
|
2405
2601
|
* SECURITY: `apiKey` is a runtime parameter -- do NOT hardcode or log it.
|
|
2406
2602
|
*
|
|
2603
|
+
* STREAMING (Phase 44): supported through native `streamGenerateContent` SSE events.
|
|
2604
|
+
*
|
|
2407
2605
|
* DEFERRED (Phase 4 carryforward notes):
|
|
2408
2606
|
* - multimodal (vision) -- deferred
|
|
2409
|
-
* - streaming -- deferred (single-shot Promise per CONTEXT.md D-06)
|
|
2410
|
-
* - tool use -- deferred
|
|
2411
2607
|
* - resume-from-eviction -- see Phase 5 (MV3-survivability adapter contract)
|
|
2412
2608
|
*
|
|
2413
2609
|
* NOTE (Phase 34): negotiate() uses x-goog-api-key HEADER (preferred per RESEARCH §Q3).
|
|
@@ -2467,6 +2663,26 @@ declare function createGeminiProvider(options: GeminiProviderOptions): ProviderA
|
|
|
2467
2663
|
readonly negotiateCapabilities: (modelId: string) => Promise<NegotiatedCapabilities>;
|
|
2468
2664
|
};
|
|
2469
2665
|
//#endregion
|
|
2666
|
+
//#region src/providers/litellm.d.ts
|
|
2667
|
+
/**
|
|
2668
|
+
* Options for {@link createLiteLLMProvider}.
|
|
2669
|
+
*
|
|
2670
|
+
* Thin wrapper around {@link createOpenAICompatibleProvider} pinned to the
|
|
2671
|
+
* documented local LiteLLM proxy URL. LiteLLM is treated as an
|
|
2672
|
+
* OpenAI-compatible gateway over HTTP; this helper does not start, embed, or
|
|
2673
|
+
* depend on a LiteLLM gateway process.
|
|
2674
|
+
*/
|
|
2675
|
+
interface LiteLLMProviderOptions extends Omit<OpenAICompatibleProviderOptions, "id" | "baseUrl" | "gateway"> {
|
|
2676
|
+
readonly id?: string;
|
|
2677
|
+
/** Defaults to `http://localhost:4000`. Override for hosted proxies or `/v1` deployments. */
|
|
2678
|
+
readonly baseUrl?: string;
|
|
2679
|
+
readonly gateway?: GatewayPolicy;
|
|
2680
|
+
}
|
|
2681
|
+
declare function createLiteLLMProvider(options: LiteLLMProviderOptions): ProviderAdapter & {
|
|
2682
|
+
readonly quirks: LiteLLMQuirks;
|
|
2683
|
+
readonly negotiateCapabilities: (modelId: string) => Promise<NegotiatedCapabilities>;
|
|
2684
|
+
};
|
|
2685
|
+
//#endregion
|
|
2470
2686
|
//#region src/providers/lm-studio.d.ts
|
|
2471
2687
|
/**
|
|
2472
2688
|
* Options for {@link createLmStudioProvider}.
|
|
@@ -2487,12 +2703,13 @@ declare function createGeminiProvider(options: GeminiProviderOptions): ProviderA
|
|
|
2487
2703
|
* because source: "registry" is the documented happy path for LM Studio
|
|
2488
2704
|
* (no event for intentional no-endpoint per RESEARCH Open Question 5).
|
|
2489
2705
|
*
|
|
2706
|
+
* STREAMING (Phase 44): supported through the OpenAI-compatible stream path.
|
|
2707
|
+
*
|
|
2490
2708
|
* DEFERRED (D-16 carryforward):
|
|
2491
2709
|
* - latency-tail diagnostics -- observability concern; LM Studio is
|
|
2492
2710
|
* the canary for latency tails (INV-03);
|
|
2493
2711
|
* diagnostics module deferred to a
|
|
2494
2712
|
* follow-on observability phase.
|
|
2495
|
-
* - streaming -- deferred (single-shot per D-06).
|
|
2496
2713
|
* - resume-from-eviction -- see Phase 5 (MV3-survivability adapter).
|
|
2497
2714
|
*
|
|
2498
2715
|
* Ref: FSB v0.10.0-attempt-2 Phase 4 (D-03: thin wrapper; D-16: latency-tail deferred; CD-03 no-opt-out).
|
|
@@ -2546,14 +2763,11 @@ declare function createLmStudioProvider(options: LmStudioProviderOptions): Provi
|
|
|
2546
2763
|
*
|
|
2547
2764
|
* SECURITY: `apiKey` is a runtime parameter -- do NOT hardcode or log it.
|
|
2548
2765
|
*
|
|
2766
|
+
* STREAMING (Phase 44): supported through the OpenAI-compatible stream path.
|
|
2767
|
+
*
|
|
2549
2768
|
* DEFERRED (D-17 carryforward; Phase 4 ships the named adapter as a
|
|
2550
2769
|
* first-class OpenAI-compat wrapper):
|
|
2551
|
-
* - model-routing array -- caller supplies `model` (single id); OpenRouter's
|
|
2552
|
-
* `models: [primary, fallback, ...]` array
|
|
2553
|
-
* feature is deferred to a follow-on phase.
|
|
2554
|
-
* - fallback-array -- deferred (same phase as model-routing).
|
|
2555
2770
|
* - per-message routing -- deferred.
|
|
2556
|
-
* - streaming -- deferred (single-shot per CONTEXT.md D-06).
|
|
2557
2771
|
* - resume-from-eviction -- see Phase 5 (MV3-survivability adapter).
|
|
2558
2772
|
*
|
|
2559
2773
|
* Ref: FSB v0.10.0-attempt-2 Phase 4 (D-03: thin wrapper; D-17: model-routing deferred).
|
|
@@ -2579,6 +2793,12 @@ interface OpenRouterProviderOptions extends Omit<OpenAICompatibleProviderOptions
|
|
|
2579
2793
|
* If absent, no event is emitted (silent fallback).
|
|
2580
2794
|
*/
|
|
2581
2795
|
readonly runEventSink?: RunEventSink;
|
|
2796
|
+
/**
|
|
2797
|
+
* Ordered OpenRouter model fallback candidates. The primary `model` remains
|
|
2798
|
+
* the Lattice-selected route; these candidates serialize as OpenRouter's
|
|
2799
|
+
* top-level `models` request field when non-empty.
|
|
2800
|
+
*/
|
|
2801
|
+
readonly fallbackModels?: readonly string[];
|
|
2582
2802
|
}
|
|
2583
2803
|
/**
|
|
2584
2804
|
* Phase 34 — D-03 / D-05..D-12 — Extended OpenRouter provider factory.
|
|
@@ -2621,9 +2841,10 @@ declare function createOpenRouterProvider(options: OpenRouterProviderOptions): P
|
|
|
2621
2841
|
*
|
|
2622
2842
|
* SECURITY: `apiKey` is a runtime parameter -- do NOT hardcode or log it.
|
|
2623
2843
|
*
|
|
2844
|
+
* STREAMING (Phase 44): supported through the OpenAI-compatible stream path.
|
|
2845
|
+
*
|
|
2624
2846
|
* DEFERRED (Phase 4 carryforward notes):
|
|
2625
2847
|
* - tool-streaming -- deferred
|
|
2626
|
-
* - streaming -- deferred (single-shot Promise per CONTEXT.md D-06)
|
|
2627
2848
|
* - resume-from-eviction -- see Phase 5 (MV3-survivability adapter contract)
|
|
2628
2849
|
*
|
|
2629
2850
|
* Ref: FSB v0.10.0-attempt-2 Phase 4 (D-03 + D-07: thin wrapper; reasoning_tokens quirk preserved).
|
|
@@ -2669,6 +2890,12 @@ declare function createXaiProvider(options: XaiProviderOptions): ProviderAdapter
|
|
|
2669
2890
|
readonly negotiateCapabilities: (modelId: string) => Promise<NegotiatedCapabilities>;
|
|
2670
2891
|
};
|
|
2671
2892
|
//#endregion
|
|
2893
|
+
//#region src/providers/streaming.d.ts
|
|
2894
|
+
interface CollectStreamOptions {
|
|
2895
|
+
readonly defaultOutput?: string;
|
|
2896
|
+
}
|
|
2897
|
+
declare function collectStream(stream: ProviderStream, options?: CollectStreamOptions): Promise<ProviderRunResponse>;
|
|
2898
|
+
//#endregion
|
|
2672
2899
|
//#region src/results/result.d.ts
|
|
2673
2900
|
interface RunSuccess<TOutputs extends OutputContractMap> {
|
|
2674
2901
|
readonly ok: true;
|
|
@@ -2677,6 +2904,7 @@ interface RunSuccess<TOutputs extends OutputContractMap> {
|
|
|
2677
2904
|
readonly usage: Usage;
|
|
2678
2905
|
readonly plan: ResultPlan;
|
|
2679
2906
|
readonly events?: readonly RunEvent[];
|
|
2907
|
+
readonly gateway?: ProviderGatewayMetadata;
|
|
2680
2908
|
/**
|
|
2681
2909
|
* Phase 9 — signed capability receipt issued when `LatticeConfig.signer`
|
|
2682
2910
|
* is configured. Undefined when no signer is set.
|
|
@@ -2691,6 +2919,7 @@ interface RunFailure {
|
|
|
2691
2919
|
readonly partialOutputs?: Record<string, unknown>;
|
|
2692
2920
|
readonly plan: ResultPlan;
|
|
2693
2921
|
readonly events?: readonly RunEvent[];
|
|
2922
|
+
readonly gateway?: ProviderGatewayMetadata;
|
|
2694
2923
|
/**
|
|
2695
2924
|
* Phase 9 — signed capability receipt issued when `LatticeConfig.signer`
|
|
2696
2925
|
* is configured. Undefined when no signer is set.
|
|
@@ -3218,6 +3447,64 @@ declare function withRateLimit(group: RateLimitGroup, inner?: AgentTransport): A
|
|
|
3218
3447
|
*/
|
|
3219
3448
|
declare function receiptCid(envelope: ReceiptEnvelope): Promise<string>;
|
|
3220
3449
|
//#endregion
|
|
3450
|
+
//#region src/realtime/realtime.d.ts
|
|
3451
|
+
declare const REALTIME_DIRECTION_SUPPORT_LEVEL: "direction-only";
|
|
3452
|
+
type RealtimeSupportLevel = typeof REALTIME_DIRECTION_SUPPORT_LEVEL;
|
|
3453
|
+
type RealtimeProviderKind = "openai-realtime" | "gemini-live";
|
|
3454
|
+
type RealtimeTransportKind = "websocket" | "webrtc" | "sip";
|
|
3455
|
+
type RealtimeSessionMode = "voice-agent" | "transcription" | "translation" | "live-multimodal";
|
|
3456
|
+
type RealtimeInputModality = "text" | "audio" | "image" | "video";
|
|
3457
|
+
type RealtimeOutputModality = "text" | "audio" | "tool";
|
|
3458
|
+
type RealtimeCheckpointKind = "session.start" | "client.frame" | "server.frame" | "session.summary" | "session.close";
|
|
3459
|
+
interface OpenAIRealtimeTarget {
|
|
3460
|
+
readonly provider: "openai-realtime";
|
|
3461
|
+
readonly model: string;
|
|
3462
|
+
readonly transport: RealtimeTransportKind;
|
|
3463
|
+
readonly endpoint: "/v1/realtime" | "/v1/realtime/translations" | "/v1/realtime/transcription_sessions";
|
|
3464
|
+
}
|
|
3465
|
+
interface GeminiLiveTarget {
|
|
3466
|
+
readonly provider: "gemini-live";
|
|
3467
|
+
readonly model: string;
|
|
3468
|
+
readonly transport: "websocket";
|
|
3469
|
+
readonly endpoint: "wss://generativelanguage.googleapis.com/ws/google.ai.generativelanguage.v1beta.GenerativeService.BidiGenerateContent";
|
|
3470
|
+
readonly preview: true;
|
|
3471
|
+
}
|
|
3472
|
+
type RealtimeProviderTarget = OpenAIRealtimeTarget | GeminiLiveTarget;
|
|
3473
|
+
interface RealtimeSessionSpec {
|
|
3474
|
+
readonly kind: "realtime-session-spec";
|
|
3475
|
+
readonly supportLevel: RealtimeSupportLevel;
|
|
3476
|
+
readonly sessionId: string;
|
|
3477
|
+
readonly target: RealtimeProviderTarget;
|
|
3478
|
+
readonly mode: RealtimeSessionMode;
|
|
3479
|
+
readonly inputModalities: readonly RealtimeInputModality[];
|
|
3480
|
+
readonly outputModalities: readonly RealtimeOutputModality[];
|
|
3481
|
+
readonly artifactRefs?: readonly ArtifactRef[];
|
|
3482
|
+
readonly policy?: PolicySpec;
|
|
3483
|
+
readonly checkpointing?: RealtimeCheckpointingSpec;
|
|
3484
|
+
}
|
|
3485
|
+
interface RealtimeCheckpointingSpec {
|
|
3486
|
+
readonly receiptThreading: "step-linked-list";
|
|
3487
|
+
readonly summaryCheckpoints: "manual" | "session-close" | "interval";
|
|
3488
|
+
readonly note: "direction-only";
|
|
3489
|
+
}
|
|
3490
|
+
interface RealtimeCheckpointInput {
|
|
3491
|
+
readonly sessionId: string;
|
|
3492
|
+
readonly provider: RealtimeProviderKind;
|
|
3493
|
+
readonly checkpoint: RealtimeCheckpointKind;
|
|
3494
|
+
readonly stepIndex: number;
|
|
3495
|
+
readonly timestamp?: string;
|
|
3496
|
+
readonly parentStepName?: string;
|
|
3497
|
+
readonly previousStepName?: string;
|
|
3498
|
+
}
|
|
3499
|
+
interface RealtimeReceiptDescriptors {
|
|
3500
|
+
readonly sessionId: string;
|
|
3501
|
+
readonly model: ReceiptModel;
|
|
3502
|
+
readonly route: ReceiptRoute;
|
|
3503
|
+
}
|
|
3504
|
+
declare function createRealtimeCheckpointContext(input: RealtimeCheckpointInput): CheckpointHookContext;
|
|
3505
|
+
declare function createRealtimeReceiptDescriptors(spec: RealtimeSessionSpec): RealtimeReceiptDescriptors;
|
|
3506
|
+
declare function realtimeStepName(provider: RealtimeProviderKind, checkpoint: RealtimeCheckpointKind): string;
|
|
3507
|
+
//#endregion
|
|
3221
3508
|
//#region src/agent/eval.d.ts
|
|
3222
3509
|
/**
|
|
3223
3510
|
* Summary of an agent run sufficient for regression analysis. Callers
|
|
@@ -3272,7 +3559,7 @@ interface MemoryArtifactStoreOptions {
|
|
|
3272
3559
|
declare function createMemoryArtifactStore(options?: MemoryArtifactStoreOptions): ArtifactStore;
|
|
3273
3560
|
//#endregion
|
|
3274
3561
|
//#region src/version.d.ts
|
|
3275
|
-
declare const latticeVersion = "
|
|
3562
|
+
declare const latticeVersion = "1.4.0";
|
|
3276
3563
|
//#endregion
|
|
3277
3564
|
//#region src/capabilities/lookup.d.ts
|
|
3278
3565
|
/**
|
|
@@ -3329,5 +3616,5 @@ declare const PROMPT_STRATEGIES: readonly ["frontier", "mid_tier", "open_weight"
|
|
|
3329
3616
|
declare function getStructuredOutputContract(strategy: RecommendedPromptStrategy, schema: unknown): string;
|
|
3330
3617
|
declare function getToolUseContract(strategy: RecommendedPromptStrategy, tools: unknown): string;
|
|
3331
3618
|
//#endregion
|
|
3332
|
-
export { type AI, ALL_KNOWN_FAILURE_MODES, ALL_TRAINING_CLASSES, type ActionHistory, type ActionHistoryOptions, type ActionRecord, type AdapterQuirks, AgentDeniedError, type AgentEvalResult, type AgentFailure, type AgentFailureKind, type AgentHost, type AgentIntent, type AgentResult, type AgentRunSnapshot, type AgentScheduler, type AgentSnapshot, type AgentSpec, type AgentStorage, type AgentSuccess, type AgentTransport, type AnthropicProviderOptions, type AnthropicQuirks, type ArtifactFingerprint, type ArtifactInput, type ArtifactKind, type ArtifactLineage, type ArtifactOptions, type ArtifactParentRef, type ArtifactPrivacy, type ArtifactRef, type ArtifactSize, type ArtifactSource, type ArtifactStorageRef, type ArtifactStore, type ArtifactTransformDescriptor, type ArtifactTransformKind, BAND, type BudgetInvariant, type CapabilityAdapter, type CapabilityContract, type CapabilityContractInput, type CapabilityReceiptBody, type CheckpointHookContext, type CheckpointHookOptions, type ContractRejectReasonCode, type ContractVerdict, type ConversationTurn, type CostBudgetStatus, type CostTracker, type CreateReceiptInput, type CrewAgentResult, type CrewPolicy, type CrewRateLimitOverride, type CrewResult, DEFAULT_CHECKPOINT_BAND, type EvalOptions, type EvalRegression, type EvalRegressionKind, type EvictionHook, type ExecutionPlanStub, type FieldFromTableInvariant, type FormatToolsMode, type FormatToolsOptions, type FormattedToolsHandle, type GeminiProviderOptions, type GeminiQuirks, type GoalProgressOptions, type GoalProgressStep, type GoalProgressTracker, type HookControls, type HookDenyDirective, type HookLifecycleEvent, type HookPipeline, type InferOutput, type InferOutputMap, type InternalEnvelopeOptions, type InvariantDeclaration, type InvariantOptions, type IterationRecord, type KeyEntry, type KeySet, type KeyState, type KnownFailureMode, type LatticeConfig, type LatticeRunError, type LmStudioProviderOptions, type LmStudioQuirks, type MatchesInvariant, type MaterializationError, type MaterializeReplayEnvelopeOptions, type ModelCapabilityProfile, type MustCiteInvariant, type NegotiatedCapabilities, NegotiationAuthError, type NoPiiInvariant, type NormalizedLatticeConfig, type OpenAICompatQuirks, type OpenAIQuirks, type OpenRouterProviderOptions, type OpenRouterQuirks, type OutputContract, type OutputContractMap, PROMPT_SCAFFOLD_VERSION, PROMPT_STRATEGIES, type PermissionContext, type PermissionDecisionInput, type PermissionHookContext, type PermissionRule, type PermissionVerdict, type PiiDetector, type PiiDetectorResult, type PolicySpec, type ProgressStatus, type ProviderAdapter, type ProviderRef, type ProviderRunRequest, type ProviderRunResponse, type QualityFloorInvariant, type RateLimitGroup, type RateLimitGroupOptions, type RateLimitLease, type ReasoningSurface, type ReceiptEnvelope, type ReceiptModel, type ReceiptRedaction, type ReceiptRoute, type ReceiptSignature, type ReceiptSigner, type ReceiptUsageCanonical, type RecommendedPromptStrategy, type ReplayEnvelope, type ResumePolicy, type RunAgentCrewOptions, type RunEvent, type RunEventKind, type RunEventSink, type RunFailure, type RunIntent, type RunResult, type RunSuccess, SANITIZER_BY_FAILURE_MODE, STEP_TRANSITION_EVENT_NAME, STUCK_REASONS, type SanitizeOutputOption, type SanitizerContext, type SanitizerFn, type SanitizerKey, type SerializedSnapshot, type SessionRef, type StorageLike, type StoredArtifactEnvelope, type StoredArtifactPayloadDescriptor, type StuckReason, type SurvivabilityAdapter, type TokenEstimator, type ToolCallSurface, ToolCallValidationError, type ToolCallValidationFailureReason, type ToolUseRequest, type TracerLike, type TrainingClass, type TranscriptStore, type TripwireEvidence, type TripwireResult, type TripwireViolationError, type UnsubscribeFn, type Usage, type ValidateToolCallsOption, type ValidatedToolCall, type ValidationIssue, type VerifyError, type VerifyErrorKind, type VerifyFail, type VerifyOk, type VerifyResult, type XaiProviderOptions, type XaiQuirks, artifact, contract, createAI, createAISdkProvider, createActionHistory, createAnthropicProvider, createCheckpointHook, createCostTracker, createFakeProvider, createGeminiProvider, createGoalProgressTracker, createHookPipeline, createInMemorySigner, createLmStudioProvider, createLocalArtifactStore, createMemoryArtifactStore, createMemoryKeySet, createMemorySessionStore, createNoopAgentHost, createNoopSurvivabilityAdapter, createOpenAICompatibleProvider, createOpenAIProvider, createOpenRouterProvider, createPermissionContext, createPermissionGuardHook, createRateLimitGroup, createReceipt, createReplayEnvelope, createTranscriptStore, createXaiProvider, defaultPiiDetectors, defineAgent, defineTool, estimateRouteCost, evalAgentRun, evaluateContractAgainstRoute, evaluateTripwires, findCapabilityProfile, formatToolsForProvider, generateEd25519KeyPairJwk, getCapabilityProfile, getRecommendedSanitizers, getStructuredOutputContract, getToolUseContract, importMcpTools, inv, isTerminal, latticeVersion, materializeReplayEnvelope, negotiateCapabilities, output, parseToolUseEnvelope, permissionGuardRegisterOptions, receiptCid, redactArtifactRef, redactPlan, redactReplayEnvelope, replayOffline, rerunLive, runAgent, runAgentCrew, runTool, stripChatTemplateArtifacts, stripOpenRouterVariant, stripReasoningTags, synthesizeNegotiatedCapabilitiesFromRegistry, toolArtifactRef, toolSchemaToJsonSchema, unwrapInternalEnvelope, verifyReceipt, withRateLimit };
|
|
3619
|
+
export { type AI, ALL_KNOWN_FAILURE_MODES, ALL_TRAINING_CLASSES, type ActionHistory, type ActionHistoryOptions, type ActionRecord, type AdapterQuirks, AgentDeniedError, type AgentEvalResult, type AgentFailure, type AgentFailureKind, type AgentHost, type AgentIntent, type AgentResult, type AgentRunSnapshot, type AgentScheduler, type AgentSnapshot, type AgentSpec, type AgentStorage, type AgentSuccess, type AgentTransport, type AnthropicProviderOptions, type AnthropicQuirks, type ArtifactFingerprint, type ArtifactInput, type ArtifactKind, type ArtifactLineage, type ArtifactOptions, type ArtifactParentRef, type ArtifactPrivacy, type ArtifactRef, type ArtifactSize, type ArtifactSource, type ArtifactStorageRef, type ArtifactStore, type ArtifactTransformDescriptor, type ArtifactTransformKind, BAND, type BudgetInvariant, type CapabilityAdapter, type CapabilityContract, type CapabilityContractInput, type CapabilityReceiptBody, type CheckpointHookContext, type CheckpointHookOptions, type CollectStreamOptions, type ContractRejectReasonCode, type ContractVerdict, type ConversationTurn, type CostBudgetStatus, type CostTracker, type CreateReceiptInput, type CrewAgentResult, type CrewPolicy, type CrewRateLimitOverride, type CrewResult, DEFAULT_CHECKPOINT_BAND, type EvalOptions, type EvalRegression, type EvalRegressionKind, type EvictionHook, type ExecutionPlanStub, type FieldFromTableInvariant, type FormatToolsMode, type FormatToolsOptions, type FormattedToolsHandle, type GatewayMetadataValue, type GatewayPolicy, type GeminiLiveTarget, type GeminiProviderOptions, type GeminiQuirks, type GoalProgressOptions, type GoalProgressStep, type GoalProgressTracker, type HookControls, type HookDenyDirective, type HookLifecycleEvent, type HookPipeline, type InferOutput, type InferOutputMap, type InternalEnvelopeOptions, type InvariantDeclaration, type InvariantOptions, type IterationRecord, type KeyEntry, type KeySet, type KeyState, type KnownFailureMode, type LangfuseOtlpConfigOptions, type LatticeConfig, type LatticeRunError, type LiteLLMProviderOptions, type LiteLLMQuirks, type LmStudioProviderOptions, type LmStudioQuirks, type MatchesInvariant, type MaterializationError, type MaterializeReplayEnvelopeOptions, type ModelCapabilityProfile, type ModelCapabilityProfileModality, type ModelCapabilityProfilePricing, type ModelCapabilityProfilePricingKey, type MustCiteInvariant, type NegotiatedCapabilities, NegotiationAuthError, type NoPiiInvariant, NoPublicUrlEgressError, type NormalizedLatticeConfig, type OpenAICompatQuirks, type OpenAIQuirks, type OpenAIRealtimeTarget, type OpenRouterProviderOptions, type OpenRouterQuirks, type OtelAttributeValue, type OtelAttributes, type OtelContentCaptureMode, type OtelHttpTraceConfig, type OtelRunEventSinkOptions, type OtelSanitizerOptions, type OtelSpanLike, type OtelSpanStatus, type OtelTracerLike, type OutputContract, type OutputContractMap, PROMPT_SCAFFOLD_VERSION, PROMPT_STRATEGIES, type PermissionContext, type PermissionDecisionInput, type PermissionHookContext, type PermissionRule, type PermissionVerdict, type PhoenixOtlpConfigOptions, type PiiDetector, type PiiDetectorResult, type PolicySpec, type ProgressStatus, type ProviderAdapter, type ProviderGatewayMetadata, type ProviderRef, type ProviderRunRequest, type ProviderRunResponse, type ProviderStream, type ProviderStreamChunk, type ProviderStreamCompleteChunk, type ProviderStreamGatewayChunk, type ProviderStreamOutputChunk, type ProviderStreamTextDeltaChunk, type ProviderStreamToolCallChunk, type ProviderStreamUsageChunk, type QualityFloorInvariant, REALTIME_DIRECTION_SUPPORT_LEVEL, type RateLimitGroup, type RateLimitGroupOptions, type RateLimitLease, type RealtimeCheckpointInput, type RealtimeCheckpointKind, type RealtimeCheckpointingSpec, type RealtimeInputModality, type RealtimeOutputModality, type RealtimeProviderKind, type RealtimeProviderTarget, type RealtimeReceiptDescriptors, type RealtimeSessionMode, type RealtimeSessionSpec, type RealtimeSupportLevel, type RealtimeTransportKind, type ReasoningSurface, type ReceiptEnvelope, type ReceiptModel, type ReceiptRedaction, type ReceiptRoute, type ReceiptSignature, type ReceiptSigner, type ReceiptUsageCanonical, type RecommendedPromptStrategy, type RemoteReceiptPayloadFormat, type RemoteReceiptSignRequest, type RemoteReceiptSignResult, type RemoteReceiptSignerOptions, type RemoteReceiptSignerProvider, type ReplayEnvelope, type ResumePolicy, type RunAgentCrewOptions, type RunEvent, type RunEventKind, type RunEventSink, type RunFailure, type RunIntent, type RunResult, type RunSuccess, SANITIZER_BY_FAILURE_MODE, STEP_TRANSITION_EVENT_NAME, STUCK_REASONS, type SanitizeOutputOption, type SanitizerContext, type SanitizerFn, type SanitizerKey, type SerializedSnapshot, type SessionRef, type StorageLike, type StoredArtifactEnvelope, type StoredArtifactPayloadDescriptor, type StuckReason, type SurvivabilityAdapter, type TokenEstimator, type ToolCallSurface, ToolCallValidationError, type ToolCallValidationFailureReason, type ToolUseRequest, type TracerLike, type TrainingClass, type TranscriptStore, type TripwireEvidence, type TripwireResult, type TripwireViolationError, type UnsubscribeFn, type Usage, type ValidateToolCallsOption, type ValidatedToolCall, type ValidationIssue, type VerifyError, type VerifyErrorKind, type VerifyFail, type VerifyOk, type VerifyResult, type XaiProviderOptions, type XaiQuirks, artifact, collectStream, contract, createAI, createAISdkProvider, createActionHistory, createAnthropicProvider, createCheckpointHook, createCostTracker, createFakeProvider, createGeminiProvider, createGoalProgressTracker, createHookPipeline, createInMemorySigner, createLangfuseOtlpConfig, createLiteLLMProvider, createLmStudioProvider, createLocalArtifactStore, createMemoryArtifactStore, createMemoryKeySet, createMemorySessionStore, createNoopAgentHost, createNoopSurvivabilityAdapter, createOpenAICompatibleProvider, createOpenAIProvider, createOpenRouterProvider, createOtelReceiptAttributes, createOtelRunEventSink, createPermissionContext, createPermissionGuardHook, createPhoenixOtlpConfig, createRateLimitGroup, createRealtimeCheckpointContext, createRealtimeReceiptDescriptors, createReceipt, createRemoteReceiptSigner, createReplayEnvelope, createTranscriptStore, createXaiProvider, defaultPiiDetectors, defineAgent, defineTool, estimateRouteCost, evalAgentRun, evaluateContractAgainstRoute, evaluateTripwires, findCapabilityProfile, formatToolsForProvider, generateEd25519KeyPairJwk, getCapabilityProfile, getRecommendedSanitizers, getStructuredOutputContract, getToolUseContract, importMcpTools, inv, isTerminal, latticeVersion, materializeReplayEnvelope, negotiateCapabilities, output, parseToolUseEnvelope, permissionGuardRegisterOptions, realtimeStepName, receiptCid, redactArtifactRef, redactPlan, redactReplayEnvelope, replayOffline, rerunLive, runAgent, runAgentCrew, runTool, sanitizeRunEventAttributes, stripChatTemplateArtifacts, stripOpenRouterVariant, stripReasoningTags, synthesizeNegotiatedCapabilitiesFromRegistry, toolArtifactRef, toolSchemaToJsonSchema, unwrapInternalEnvelope, verifyReceipt, withRateLimit };
|
|
3333
3620
|
//# sourceMappingURL=index.d.ts.map
|