dsh-modellix 0.1.1 → 0.2.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +107 -167
  3. package/README.zh-CN.md +105 -165
  4. package/cordis.patch.yml +0 -13
  5. package/docs/assets/chat-media-generation-en.webp +0 -0
  6. package/docs/assets/chat-media-generation-zh.webp +0 -0
  7. package/docs/assets/design-results-drawer-en.webp +0 -0
  8. package/docs/assets/design-results-drawer-zh.webp +0 -0
  9. package/docs/assets/llm-model-selector-en.webp +0 -0
  10. package/docs/assets/llm-model-selector-zh.webp +0 -0
  11. package/docs/assets/media-players-en.webp +0 -0
  12. package/docs/assets/media-players-zh.webp +0 -0
  13. package/docs/assets/settings-ready-en.webp +0 -0
  14. package/docs/assets/settings-ready-zh.webp +0 -0
  15. package/docs/assets/web-tools-auto-en.webp +0 -0
  16. package/docs/assets/web-tools-auto-zh.webp +0 -0
  17. package/docs/en-US/LOCAL_USAGE.md +20 -16
  18. package/docs/en-US/RELEASE_CHECKLIST.md +270 -0
  19. package/docs/en-US/USER_GUIDE.md +186 -394
  20. package/docs/zh-CN/LOCAL_USAGE.md +20 -16
  21. package/docs/zh-CN/RELEASE_CHECKLIST.md +270 -0
  22. package/docs/zh-CN/USER_GUIDE.md +185 -393
  23. package/lib/client.d.ts +18 -4
  24. package/lib/client.js +1271 -454
  25. package/lib/client.js.map +1 -1
  26. package/lib/index.d.ts +166 -112
  27. package/lib/index.js +1008 -197
  28. package/lib/index.js.map +1 -1
  29. package/package.json +72 -48
  30. package/docs/assets/design-desktop-en.webp +0 -0
  31. package/docs/assets/design-desktop-zh.webp +0 -0
  32. package/docs/assets/design-proposal-en.webp +0 -0
  33. package/docs/assets/design-proposal-zh.webp +0 -0
  34. package/docs/assets/design-results-media-en.webp +0 -0
  35. package/docs/assets/design-results-media-zh.webp +0 -0
  36. package/docs/assets/web-tools-en.webp +0 -0
  37. package/docs/assets/web-tools-zh.webp +0 -0
package/lib/index.d.ts CHANGED
@@ -1,11 +1,13 @@
1
1
  import z from "@deepseek-ai/schemastery";
2
2
  import { SettingsPathOp } from "@deepseek-ai/dsh-settings";
3
3
  import { WebError, WebFetchProvider, WebFetchRequest, WebFetchResult, WebSearchProvider, WebSearchRequest, WebSearchResult } from "@deepseek-ai/dsh-web";
4
+ import { LlmRuntime } from "@deepseek-ai/dsh-llm";
4
5
  import { Domain } from "@deepseek-ai/dsh-storage-domain";
5
6
  import { z as z$1 } from "zod";
6
7
  import { ToolDefinition } from "@deepseek-ai/dsh-tools";
7
8
  import { Context } from "@deepseek-ai/cordis";
8
- import { LlmRuntime } from "@deepseek-ai/dsh-llm";
9
+ import { Agent } from "@deepseek-ai/dsh-agent";
10
+ import { ImageMediaType } from "@deepseek-ai/dsh-attachment";
9
11
 
10
12
  //#region src/core/config.d.ts
11
13
  declare const CURRENT_CONFIG_SCHEMA_VERSION: 1;
@@ -454,6 +456,8 @@ interface DesignModelSummary {
454
456
  readonly slug: string;
455
457
  readonly displayName: string;
456
458
  readonly categories: readonly DesignMediaCategory[];
459
+ /** Live catalog routing capability, for example text-to-image or image-to-video. */
460
+ readonly taskType?: string;
457
461
  readonly description?: string;
458
462
  readonly thumbnailUrl?: string;
459
463
  }
@@ -522,11 +526,43 @@ declare class ModelSchemaClient {
522
526
  */
523
527
  declare function extractAllowedSubmitUrl(document: Readonly<Record<string, unknown>>, provider: string, modelId: string): string;
524
528
  //#endregion
525
- //#region src/design/schema-ir.d.ts
529
+ //#region src/design/media-upload-client.d.ts
530
+ interface PreparedMediaUpload {
531
+ readonly bytes: Uint8Array;
532
+ readonly filename: string;
533
+ readonly mimeType: ImageMediaType;
534
+ }
535
+ interface MediaUploadRecord {
536
+ readonly fileId: string;
537
+ readonly type: string;
538
+ readonly url: string;
539
+ readonly filename: string;
540
+ readonly size: number;
541
+ readonly createdAt: string | null;
542
+ }
543
+ interface MediaUploadInput extends PreparedMediaUpload {
544
+ readonly apiKey: string;
545
+ readonly signal?: AbortSignal;
546
+ }
547
+ declare class MediaUploadClient {
548
+ #private;
549
+ constructor(options?: {
550
+ readonly fetch?: FetchPort;
551
+ readonly timeoutMs?: number;
552
+ });
553
+ upload(input: MediaUploadInput): Promise<MediaUploadRecord>;
554
+ }
555
+ declare function prepareMediaUploadFromSession(agent: Agent | undefined, attachmentId: string, signal?: AbortSignal): Promise<PreparedMediaUpload>;
556
+ declare function prepareMediaUploadFromPath(cwd: string | undefined, inputPath: string): Promise<PreparedMediaUpload>;
557
+ //#endregion
558
+ //#region src/shared/json-value.d.ts
559
+ /** Lossless JSON values shared across Harness versions. */
526
560
  type JsonPrimitive = null | boolean | number | string;
527
- type JsonValue = JsonPrimitive | readonly JsonValue[] | {
528
- readonly [key: string]: JsonValue;
561
+ type JsonValue = JsonPrimitive | JsonValue[] | {
562
+ [key: string]: JsonValue;
529
563
  };
564
+ //#endregion
565
+ //#region src/design/schema-ir.d.ts
530
566
  type UiFieldKind = "string" | "number" | "integer" | "boolean" | "object" | "array" | "media" | "unknown";
531
567
  type UiMediaKind = "image" | "video" | "audio";
532
568
  interface UiConstraints {
@@ -705,6 +741,8 @@ type DesignTaskState = "submitting" | "submit-unknown" | PredictionTaskStatus;
705
741
  interface DesignTaskRecord {
706
742
  readonly requestId: string;
707
743
  readonly modelSlug: string;
744
+ /** Harness conversation that owns the result; null only for legacy records. */
745
+ readonly sessionId: string | null;
708
746
  /** Credential generation that created the remote task; null only for legacy v1 records. */
709
747
  readonly credentialEpoch: number | null;
710
748
  readonly taskId: string | null;
@@ -735,7 +773,8 @@ type DesignWalEvent = {
735
773
  readonly sequence: number;
736
774
  readonly timestamp: number;
737
775
  readonly requestId: string;
738
- readonly modelSlug: string; /** Optional only so pre-0.1.0 WAL documents fail safe instead of becoming unreadable. */
776
+ readonly modelSlug: string; /** Optional only so older WAL documents remain readable after session isolation. */
777
+ readonly sessionId?: string; /** Optional only so pre-0.1.0 WAL documents fail safe instead of becoming unreadable. */
739
778
  readonly credentialEpoch?: number;
740
779
  } | {
741
780
  readonly type: "submit-unknown";
@@ -783,7 +822,7 @@ interface DesignTaskRepositoryOptions {
783
822
  declare class DesignTaskRepository {
784
823
  #private;
785
824
  constructor(options: DesignTaskRepositoryOptions);
786
- recordSubmitIntent(requestId: string, modelSlug: string, credentialEpoch: number): Promise<void>;
825
+ recordSubmitIntent(requestId: string, modelSlug: string, sessionId: string, credentialEpoch: number): Promise<void>;
787
826
  markSubmitUnknown(requestId: string): Promise<void>;
788
827
  markSubmitRejected(requestId: string): Promise<void>;
789
828
  recordSubmitAccepted(requestId: string, task: PredictionTask): Promise<void>;
@@ -872,6 +911,8 @@ interface DesignModelWire {
872
911
  readonly id: string;
873
912
  readonly label: string;
874
913
  readonly kind: "image" | "video" | "audio" | "unknown";
914
+ readonly taskType?: string;
915
+ readonly description?: string;
875
916
  readonly featured: boolean;
876
917
  readonly available: boolean;
877
918
  readonly unavailableReason: DesignModelUnavailableCode | null;
@@ -981,22 +1022,24 @@ declare function openDesignStorage(ctx: Context): Promise<{
981
1022
  }>;
982
1023
  //#endregion
983
1024
  //#region src/host/design-tool.d.ts
984
- declare const MODELLIX_DESIGN_MODELS_TOOL = "modellix_design_models";
985
- declare const MODELLIX_DESIGN_PREPARE_TOOL = "modellix_design_prepare";
986
- declare const MODELLIX_DESIGN_GENERATE_TOOL = "modellix_design_generate";
987
- declare const MODELLIX_DESIGN_TASK_TOOL = "modellix_design_task";
1025
+ declare const MODELLIX_MEDIA_LIST_TOOL = "modellix_media_list";
1026
+ declare const MODELLIX_MEDIA_SCHEMA_TOOL = "modellix_media_schema";
1027
+ declare const MODELLIX_MEDIA_PREPARE_TOOL = "modellix_media_prepare";
1028
+ declare const MODELLIX_MEDIA_UPLOAD_FILE_TOOL = "modellix_media_upload_file";
1029
+ declare const MODELLIX_MEDIA_GENERATE_TOOL = "modellix_media_generate";
1030
+ declare const MODELLIX_MEDIA_GET_RESULT_TOOL = "modellix_media_get_result";
988
1031
  /** The deliberately narrow Host seam used by model-facing Design tools. */
989
1032
  interface DesignToolController {
990
1033
  handle(endpoint: string, payload: unknown, signal?: AbortSignal): Promise<DesignSnapshotWire>;
1034
+ resolveCredential?(): Promise<string | undefined>;
991
1035
  }
992
1036
  /**
993
- * Build the four stable, namespaced Modellix Design tools. The caller owns
1037
+ * Build the six stable, namespaced Modellix media tools. The caller owns
994
1038
  * visibility and must only register these definitions while Design is enabled.
995
1039
  */
996
- declare function createModellixDesignToolDefinitions(controller: DesignToolController): readonly ToolDefinition[];
1040
+ declare function createModellixDesignToolDefinitions(controller: DesignToolController, uploadClient?: MediaUploadClient): readonly ToolDefinition[];
997
1041
  /**
998
- * Register Design tools plus explicit LLM-proposal and paid-generate approval gates. The returned
999
- * disposer removes both definitions and the gate, allowing the runtime to
1042
+ * Register media tools. The returned disposer removes every definition, allowing the runtime to
1000
1043
  * mirror the live Design toggle without leaving model-visible stale tools.
1001
1044
  */
1002
1045
  declare function registerModellixDesignTools(ctx: Context, controller: DesignToolController): () => void;
@@ -1060,6 +1103,7 @@ declare class ModellixRuntime {
1060
1103
  private enqueueDesignWrite;
1061
1104
  private rememberDesignModel;
1062
1105
  private syncDesignTools;
1106
+ private syncWebTools;
1063
1107
  private scheduleDesignPoll;
1064
1108
  }
1065
1109
  //#endregion
@@ -1098,6 +1142,113 @@ declare class PluginSettingsController {
1098
1142
  watch(callback: (next: PluginConfig, previous: PluginConfig) => void | Promise<void>): () => void;
1099
1143
  }
1100
1144
  //#endregion
1145
+ //#region src/web/contracts.d.ts
1146
+ declare const MODELLIX_WEB_SEARCH_ENDPOINT: "https://tool.modellix.ai/v1/web-search";
1147
+ declare const MODELLIX_WEB_FETCH_ENDPOINT: "https://tool.modellix.ai/v1/web-fetch";
1148
+ declare const DEFAULT_WEB_SEARCH_MAX_RESULTS = 5;
1149
+ declare const MAX_WEB_SEARCH_RESULTS = 20;
1150
+ declare const MAX_WEB_QUERY_CHARS = 32000;
1151
+ declare const MAX_WEB_URL_CHARS = 8192;
1152
+ declare const DEFAULT_WEB_RESPONSE_BYTES: number;
1153
+ declare class ModellixWebContractError extends Error {
1154
+ constructor(message: string);
1155
+ }
1156
+ interface ParsedSearchResponse {
1157
+ readonly result: WebSearchResult;
1158
+ readonly requestId: string;
1159
+ }
1160
+ interface ParsedFetchSuccess {
1161
+ readonly kind: "success";
1162
+ readonly result: WebFetchResult;
1163
+ readonly requestId: string;
1164
+ }
1165
+ interface ParsedFetchFailure {
1166
+ readonly kind: "failure";
1167
+ readonly requestId: string;
1168
+ }
1169
+ type ParsedFetchResponse = ParsedFetchSuccess | ParsedFetchFailure;
1170
+ declare function buildSearchRequest(query: string, maxResults: number | undefined): {
1171
+ readonly query: string;
1172
+ readonly depth: "standard";
1173
+ readonly max_results: number;
1174
+ };
1175
+ declare function buildFetchRequest(url: string): {
1176
+ readonly urls: readonly [string];
1177
+ };
1178
+ declare function parseSearchResponse(input: string, maxResults: number): ParsedSearchResponse;
1179
+ declare function parseFetchResponse(input: string): ParsedFetchResponse;
1180
+ declare function validatePublicHttpUrl(value: string, label: string): string;
1181
+ //#endregion
1182
+ //#region src/web/provider.d.ts
1183
+ declare const MODELLIX_WEB_PROVIDER_ID: "modellix";
1184
+ interface ModellixWebCredentialSnapshot {
1185
+ /** Host-only secret. It must be resolved for each operation and never cached. */
1186
+ readonly apiKey: string;
1187
+ readonly credentialEpoch: number;
1188
+ }
1189
+ interface ModellixWebProviderOptions {
1190
+ /** Cheap local switch state. */
1191
+ readonly isEnabled: () => boolean;
1192
+ /** Cheap local descriptor check. This callback must never resolve the Key. */
1193
+ readonly hasCredential: () => boolean;
1194
+ /** Resolves a fresh Host Credential snapshot for every paid request. */
1195
+ readonly resolveCredential: () => Promise<ModellixWebCredentialSnapshot | null>;
1196
+ /** Returns a stable, locally derived Modellix user identifier. */
1197
+ readonly getUserId: () => string;
1198
+ /** Rejects a stale 401 from an earlier Credential generation. */
1199
+ readonly isCredentialEpochCurrent: (credentialEpoch: number) => boolean;
1200
+ readonly onCredentialRejected?: (credentialEpoch: number, error: ModellixErrorContract) => void | Promise<void>;
1201
+ readonly fetchImpl?: typeof globalThis.fetch;
1202
+ readonly maxResponseBytes?: number;
1203
+ readonly requestTimeoutMs?: number;
1204
+ readonly now?: () => number;
1205
+ }
1206
+ interface ModellixWebProviders {
1207
+ readonly search: ModellixWebSearchProvider;
1208
+ readonly fetch: ModellixWebFetchProvider;
1209
+ }
1210
+ interface ModellixWebRegistry {
1211
+ registerSearchProvider(provider: WebSearchProvider): () => void;
1212
+ registerFetchProvider(provider: WebFetchProvider): () => void;
1213
+ }
1214
+ declare class ModellixWebProviderError extends WebError {
1215
+ readonly contract: ModellixErrorContract;
1216
+ readonly diagnostic: RedactedValue;
1217
+ constructor(contract: ModellixErrorContract, diagnostic?: unknown);
1218
+ }
1219
+ declare class ModellixWebFetchFailedError extends WebError {
1220
+ readonly requestId: string;
1221
+ readonly diagnostic: RedactedValue;
1222
+ constructor(requestId: string, url: string);
1223
+ }
1224
+ declare class ModellixWebSearchProvider implements WebSearchProvider {
1225
+ #private;
1226
+ readonly id: "modellix";
1227
+ constructor(options: ModellixWebProviderOptions);
1228
+ available(): boolean;
1229
+ search(request: WebSearchRequest, signal?: AbortSignal): Promise<WebSearchResult>;
1230
+ }
1231
+ declare class ModellixWebFetchProvider implements WebFetchProvider {
1232
+ #private;
1233
+ readonly id: "modellix";
1234
+ constructor(options: ModellixWebProviderOptions);
1235
+ available(): boolean;
1236
+ fetch(request: WebFetchRequest, signal?: AbortSignal): Promise<WebFetchResult>;
1237
+ }
1238
+ declare function createModellixWebProviders(options: ModellixWebProviderOptions): ModellixWebProviders;
1239
+ /** Registers only providers; the Harness-owned web_search/web_fetch Tools remain untouched. */
1240
+ declare function registerModellixWebProviders(registry: ModellixWebRegistry, options: ModellixWebProviderOptions): () => void;
1241
+ /** Register already-created providers so Host tools can share the exact same instances. */
1242
+ declare function registerModellixWebProviderInstances(registry: ModellixWebRegistry, providers: ModellixWebProviders): () => void;
1243
+ //#endregion
1244
+ //#region src/host/web-tool.d.ts
1245
+ declare const MODELLIX_WEB_SEARCH_TOOL = "modellix_web_search";
1246
+ declare const MODELLIX_WEB_FETCH_TOOL = "modellix_web_fetch";
1247
+ /** Build the two explicit Modellix Web tools over the concrete Modellix providers. */
1248
+ declare function createModellixWebToolDefinitions(providers: ModellixWebProviders): readonly ToolDefinition[];
1249
+ /** Register the explicit tools and roll back atomically if either name conflicts. */
1250
+ declare function registerModellixWebTools(ctx: Context, providers: ModellixWebProviders): () => void;
1251
+ //#endregion
1101
1252
  //#region src/llm/catalog.d.ts
1102
1253
  declare const MODELLIX_LLM_BASE_URL: "https://llm.modellix.ai/v1";
1103
1254
  declare const MODELLIX_LLM_MODELS_URL: "https://llm.modellix.ai/v1/models";
@@ -1291,103 +1442,6 @@ declare class LlmRegistryBackreadError extends Error {
1291
1442
  */
1292
1443
  declare function verifyLlmRegistryBackread(registry: LlmRegistryReader, models: readonly ModellixLlmModel[], options?: LlmRegistryVerificationOptions): Promise<void>;
1293
1444
  //#endregion
1294
- //#region src/web/contracts.d.ts
1295
- declare const MODELLIX_WEB_SEARCH_ENDPOINT: "https://tool.modellix.ai/v1/web-search";
1296
- declare const MODELLIX_WEB_FETCH_ENDPOINT: "https://tool.modellix.ai/v1/web-fetch";
1297
- declare const DEFAULT_WEB_SEARCH_MAX_RESULTS = 5;
1298
- declare const MAX_WEB_SEARCH_RESULTS = 20;
1299
- declare const MAX_WEB_QUERY_CHARS = 32000;
1300
- declare const MAX_WEB_URL_CHARS = 8192;
1301
- declare const DEFAULT_WEB_RESPONSE_BYTES: number;
1302
- declare class ModellixWebContractError extends Error {
1303
- constructor(message: string);
1304
- }
1305
- interface ParsedSearchResponse {
1306
- readonly result: WebSearchResult;
1307
- readonly requestId: string;
1308
- }
1309
- interface ParsedFetchSuccess {
1310
- readonly kind: "success";
1311
- readonly result: WebFetchResult;
1312
- readonly requestId: string;
1313
- }
1314
- interface ParsedFetchFailure {
1315
- readonly kind: "failure";
1316
- readonly requestId: string;
1317
- }
1318
- type ParsedFetchResponse = ParsedFetchSuccess | ParsedFetchFailure;
1319
- declare function buildSearchRequest(query: string, maxResults: number | undefined): {
1320
- readonly query: string;
1321
- readonly depth: "standard";
1322
- readonly max_results: number;
1323
- };
1324
- declare function buildFetchRequest(url: string): {
1325
- readonly urls: readonly [string];
1326
- };
1327
- declare function parseSearchResponse(input: string, maxResults: number): ParsedSearchResponse;
1328
- declare function parseFetchResponse(input: string): ParsedFetchResponse;
1329
- declare function validatePublicHttpUrl(value: string, label: string): string;
1330
- //#endregion
1331
- //#region src/web/provider.d.ts
1332
- declare const MODELLIX_WEB_PROVIDER_ID: "modellix";
1333
- interface ModellixWebCredentialSnapshot {
1334
- /** Host-only secret. It must be resolved for each operation and never cached. */
1335
- readonly apiKey: string;
1336
- readonly credentialEpoch: number;
1337
- }
1338
- interface ModellixWebProviderOptions {
1339
- /** Cheap local switch state. */
1340
- readonly isEnabled: () => boolean;
1341
- /** Cheap local descriptor check. This callback must never resolve the Key. */
1342
- readonly hasCredential: () => boolean;
1343
- /** Resolves a fresh Host Credential snapshot for every paid request. */
1344
- readonly resolveCredential: () => Promise<ModellixWebCredentialSnapshot | null>;
1345
- /** Returns a stable, locally derived Modellix user identifier. */
1346
- readonly getUserId: () => string;
1347
- /** Rejects a stale 401 from an earlier Credential generation. */
1348
- readonly isCredentialEpochCurrent: (credentialEpoch: number) => boolean;
1349
- readonly onCredentialRejected?: (credentialEpoch: number, error: ModellixErrorContract) => void | Promise<void>;
1350
- readonly fetchImpl?: typeof globalThis.fetch;
1351
- readonly maxResponseBytes?: number;
1352
- readonly requestTimeoutMs?: number;
1353
- readonly now?: () => number;
1354
- }
1355
- interface ModellixWebProviders {
1356
- readonly search: ModellixWebSearchProvider;
1357
- readonly fetch: ModellixWebFetchProvider;
1358
- }
1359
- interface ModellixWebRegistry {
1360
- registerSearchProvider(provider: WebSearchProvider): () => void;
1361
- registerFetchProvider(provider: WebFetchProvider): () => void;
1362
- }
1363
- declare class ModellixWebProviderError extends WebError {
1364
- readonly contract: ModellixErrorContract;
1365
- readonly diagnostic: RedactedValue;
1366
- constructor(contract: ModellixErrorContract, diagnostic?: unknown);
1367
- }
1368
- declare class ModellixWebFetchFailedError extends WebError {
1369
- readonly requestId: string;
1370
- readonly diagnostic: RedactedValue;
1371
- constructor(requestId: string, url: string);
1372
- }
1373
- declare class ModellixWebSearchProvider implements WebSearchProvider {
1374
- #private;
1375
- readonly id: "modellix";
1376
- constructor(options: ModellixWebProviderOptions);
1377
- available(): boolean;
1378
- search(request: WebSearchRequest, signal?: AbortSignal): Promise<WebSearchResult>;
1379
- }
1380
- declare class ModellixWebFetchProvider implements WebFetchProvider {
1381
- #private;
1382
- readonly id: "modellix";
1383
- constructor(options: ModellixWebProviderOptions);
1384
- available(): boolean;
1385
- fetch(request: WebFetchRequest, signal?: AbortSignal): Promise<WebFetchResult>;
1386
- }
1387
- declare function createModellixWebProviders(options: ModellixWebProviderOptions): ModellixWebProviders;
1388
- /** Registers only providers; the Harness-owned web_search/web_fetch Tools remain untouched. */
1389
- declare function registerModellixWebProviders(registry: ModellixWebRegistry, options: ModellixWebProviderOptions): () => void;
1390
- //#endregion
1391
1445
  //#region src/index.d.ts
1392
1446
  declare const name = "modellix";
1393
1447
  declare const inject: string[];
@@ -1395,5 +1449,5 @@ interface Config {}
1395
1449
  declare const Config: z<Config>;
1396
1450
  declare function apply(ctx: Context): Promise<void>;
1397
1451
  //#endregion
1398
- export { AUTHENTICATED_CATALOG_URL, ApprovedHttpRequest, AvailableDesignResult, BeginLlmMaterializationInput, BeginOnboardingSaveInput, CURRENT_CONFIG_SCHEMA_VERSION, CacheEntry, CachePort, ClockPort, Config, CredentialBroker, CredentialBrokerOptions, CredentialDescriptor, CredentialEpochConflictError, CredentialMutationCoordinator, CredentialMutationResult, CredentialSource, CredentialState, CredentialValidationError, CredentialVerification, DEFAULT_DESIGN_WAL_KEY, DEFAULT_RESULT_TTL_MS, DEFAULT_WEB_RESPONSE_BYTES, DEFAULT_WEB_SEARCH_MAX_RESULTS, DESIGN_PLANNER_ENDPOINT, DESIGN_PLANNER_MODEL, DesignConfig, DesignError, DesignErrorCode, DesignHostController, DesignHostControllerOptions, DesignLogEvent, DesignLogLevel, DesignMediaCategory, DesignModelSummary, DesignPlannerClient, DesignPlannerClientOptions, DesignPlannerRequest, DesignPlannerResult, DesignPollDiagnosticCode, DesignSchemaIR, DesignSnapshotWire, DesignTaskRecord, DesignTaskRepository, DesignTaskRepositoryOptions, DesignTaskState, DesignToolController, DesignWalEvent, EMPTY_LLM_ROUTE_LEDGER, ExactParameterPatch, FetchPort, HarnessCredentialInfo, HarnessCredentialPort, HeaderRecord, HeaderValue, HttpMethod, HttpPolicyError, HttpRequestPolicyInput, HttpResponseBoundaryError, HttpRetryFailure, InvalidCredentialEpoch, JsonPrimitive, JsonValue, LlmCatalogCache, LlmCatalogCacheOptions, LlmCatalogClient, LlmCatalogClientOptions, LlmCatalogRequestError, LlmConfig, LlmCredentialSnapshot, LlmInterruptedMaterializationEvidence, LlmInterruptedMaterializationResult, LlmMaterializationConflictError, LlmMaterializationReceipt, LlmMaterializationRecovery, LlmMaterializationRollbackError, LlmOwnedEntry, LlmOwnershipConfig, LlmPreparedMaterialization, LlmRegistryBackreadError, LlmRegistryReader, LlmRegistryVerificationOptions, LlmRouteConflictError, LlmRouteLedger, LlmRouteOwnership, LlmRouteOwnershipConfig, LlmRouteOwnershipEntry, LlmSettingsMaterializer, LlmSettingsPort, LoggerPort, MAX_WEB_QUERY_CHARS, MAX_WEB_SEARCH_RESULTS, MAX_WEB_URL_CHARS, MODELLIX_CREDENTIAL_REF, MODELLIX_DESIGN_GENERATE_TOOL, MODELLIX_DESIGN_MODELS_TOOL, MODELLIX_DESIGN_PREPARE_TOOL, MODELLIX_DESIGN_TASK_TOOL, MODELLIX_LLM_BASE_URL, MODELLIX_LLM_MODELS_URL, MODELLIX_LLM_PROVENANCE_FIELD, MODELLIX_LLM_PROVIDER_ID, MODELLIX_ORIGINS, MODELLIX_SETTINGS_NAMESPACE, MODELLIX_WEB_FETCH_ENDPOINT, MODELLIX_WEB_PROVIDER_ID, MODELLIX_WEB_SEARCH_ENDPOINT, ModelCatalogClient, ModelCatalogClientOptions, ModelCatalogPage, ModelCatalogQuery, ModelSchemaClient, ModelSchemaClientOptions, ModelSchemaDocument, ModellixDesignDomain, ModellixErrorCode, ModellixErrorContext, ModellixErrorContract, ModellixFailure, ModellixLlmCatalog, ModellixLlmModel, ModellixOriginName, ModellixPiAiRoute, ModellixRuntime, ModellixRuntimeState, ModellixService, ModellixWebContractError, ModellixWebCredentialSnapshot, ModellixWebFetchFailedError, ModellixWebFetchProvider, ModellixWebProviderError, ModellixWebProviderOptions, ModellixWebProviders, ModellixWebRegistry, ModellixWebSearchProvider, NaturalLanguagePlan, OnboardingConfig, OnboardingRecoveryAction, OnboardingRecoveryDecision, OnboardingSaveConflictError, OnboardingSavePhase, OnboardingSaveRecovery, OnboardingStatus, PUBLIC_PORTAL_CATALOG_URL, ParsedFetchFailure, ParsedFetchResponse, ParsedFetchSuccess, ParsedSearchResponse, PersistedLlmRouteOwnership, PiAiModelEntry, PluginConfig, PluginSettingsController, PluginSettingsSchema, PluginSettingsSnapshot, PredictionClient, PredictionClientOptions, PredictionResource, PredictionTask, PredictionTaskStatus, REDACTED, ReadPredictionInput, RedactedValue, RequestDeadline, RetentionPolicy, RetryDelayInput, RetryOptions, RetrySuccess, RouteMaterializationPlan, RouteRemovalPlan, SchemaDiagnostic, SchemaParserLimits, ServiceId, ServiceToggles, ServicesConfig, SettingsNamespaceDescriptor, SettingsScopeLike, SettingsServiceLike, SleepPort, StaleLlmCatalogError, StoragePort, SubmitPredictionInput, UiConstraints, UiField, UiFieldKind, UiMediaKind, UiVariant, UnauthorizedTransition, UnsupportedConfigVersionError, VerificationTransition, WebConfig, abandonLlmMaterialization, advanceCredentialEpoch, apply, applyCredentialDescriptor, applyExactPatch, applyNaturalLanguage, applyRuntimeUnauthorized, applyVerificationResult, approveHttpRequest, approveRedirect, beginLlmMaterialization, beginOnboardingSave, buildFetchRequest, buildInvocationBody, buildSearchRequest, completeLlmMaterialization, completeOnboardingSave, computeRetryDelay, createCredentialState, createDefaultConfig, createModellixDesignToolDefinitions, createModellixWebProviders, deferOnboarding, deriveModellixSessionId, deriveModellixUserId, executeWithRetry, extractAllowedSubmitUrl, getServiceToggles, inject, isAllowedModellixOrigin, isCredentialInvalidError, isPublicHostname, isRetryableError, isRetryableReadFailure, isValidModellixIdentity, markOnboardingCredentialSaved, materializeDefaults, migrateConfig, missingCredentialDescriptor, modellixDesignDomainSpec, name, normalizeCredentialDescriptor, openDesignStorage, parseCatalogPage, parseDesignSchema, parseFetchResponse, parsePredictionTask, parseResources, parseRetryAfter, parseSearchResponse, planLlmRouteMaterialization, planLlmRouteRemoval, preserveStoredCredentialAfterCandidateFailure, preserveVerificationAfterTransientFailure, readBoundedResponseJson, readBoundedResponseText, reconcileLlmRouteLedgerAfterInterruption, reconcileOnboardingSave, redactForLog, redactHeaders, redactUrl, registerModellixDesignTools, registerModellixWebProviders, replayDesignWal, requestDeadline, retryAfterFromFailure, selectAvailableResults, setServiceToggles, systemClock, systemSleep, toModellixError, validatePublicHttpUrl, validateSubmitEndpoint, verifyLlmRegistryBackread };
1452
+ export { AUTHENTICATED_CATALOG_URL, ApprovedHttpRequest, AvailableDesignResult, BeginLlmMaterializationInput, BeginOnboardingSaveInput, CURRENT_CONFIG_SCHEMA_VERSION, CacheEntry, CachePort, ClockPort, Config, CredentialBroker, CredentialBrokerOptions, CredentialDescriptor, CredentialEpochConflictError, CredentialMutationCoordinator, CredentialMutationResult, CredentialSource, CredentialState, CredentialValidationError, CredentialVerification, DEFAULT_DESIGN_WAL_KEY, DEFAULT_RESULT_TTL_MS, DEFAULT_WEB_RESPONSE_BYTES, DEFAULT_WEB_SEARCH_MAX_RESULTS, DESIGN_PLANNER_ENDPOINT, DESIGN_PLANNER_MODEL, DesignConfig, DesignError, DesignErrorCode, DesignHostController, DesignHostControllerOptions, DesignLogEvent, DesignLogLevel, DesignMediaCategory, DesignModelSummary, DesignPlannerClient, DesignPlannerClientOptions, DesignPlannerRequest, DesignPlannerResult, DesignPollDiagnosticCode, DesignSchemaIR, DesignSnapshotWire, DesignTaskRecord, DesignTaskRepository, DesignTaskRepositoryOptions, DesignTaskState, DesignToolController, DesignWalEvent, EMPTY_LLM_ROUTE_LEDGER, ExactParameterPatch, FetchPort, HarnessCredentialInfo, HarnessCredentialPort, HeaderRecord, HeaderValue, HttpMethod, HttpPolicyError, HttpRequestPolicyInput, HttpResponseBoundaryError, HttpRetryFailure, InvalidCredentialEpoch, type JsonPrimitive, type JsonValue, LlmCatalogCache, LlmCatalogCacheOptions, LlmCatalogClient, LlmCatalogClientOptions, LlmCatalogRequestError, LlmConfig, LlmCredentialSnapshot, LlmInterruptedMaterializationEvidence, LlmInterruptedMaterializationResult, LlmMaterializationConflictError, LlmMaterializationReceipt, LlmMaterializationRecovery, LlmMaterializationRollbackError, LlmOwnedEntry, LlmOwnershipConfig, LlmPreparedMaterialization, LlmRegistryBackreadError, LlmRegistryReader, LlmRegistryVerificationOptions, LlmRouteConflictError, LlmRouteLedger, LlmRouteOwnership, LlmRouteOwnershipConfig, LlmRouteOwnershipEntry, LlmSettingsMaterializer, LlmSettingsPort, LoggerPort, MAX_WEB_QUERY_CHARS, MAX_WEB_SEARCH_RESULTS, MAX_WEB_URL_CHARS, MODELLIX_CREDENTIAL_REF, MODELLIX_LLM_BASE_URL, MODELLIX_LLM_MODELS_URL, MODELLIX_LLM_PROVENANCE_FIELD, MODELLIX_LLM_PROVIDER_ID, MODELLIX_MEDIA_GENERATE_TOOL, MODELLIX_MEDIA_GET_RESULT_TOOL, MODELLIX_MEDIA_LIST_TOOL, MODELLIX_MEDIA_PREPARE_TOOL, MODELLIX_MEDIA_SCHEMA_TOOL, MODELLIX_MEDIA_UPLOAD_FILE_TOOL, MODELLIX_ORIGINS, MODELLIX_SETTINGS_NAMESPACE, MODELLIX_WEB_FETCH_ENDPOINT, MODELLIX_WEB_FETCH_TOOL, MODELLIX_WEB_PROVIDER_ID, MODELLIX_WEB_SEARCH_ENDPOINT, MODELLIX_WEB_SEARCH_TOOL, MediaUploadClient, MediaUploadInput, MediaUploadRecord, ModelCatalogClient, ModelCatalogClientOptions, ModelCatalogPage, ModelCatalogQuery, ModelSchemaClient, ModelSchemaClientOptions, ModelSchemaDocument, ModellixDesignDomain, ModellixErrorCode, ModellixErrorContext, ModellixErrorContract, ModellixFailure, ModellixLlmCatalog, ModellixLlmModel, ModellixOriginName, ModellixPiAiRoute, ModellixRuntime, ModellixRuntimeState, ModellixService, ModellixWebContractError, ModellixWebCredentialSnapshot, ModellixWebFetchFailedError, ModellixWebFetchProvider, ModellixWebProviderError, ModellixWebProviderOptions, ModellixWebProviders, ModellixWebRegistry, ModellixWebSearchProvider, NaturalLanguagePlan, OnboardingConfig, OnboardingRecoveryAction, OnboardingRecoveryDecision, OnboardingSaveConflictError, OnboardingSavePhase, OnboardingSaveRecovery, OnboardingStatus, PUBLIC_PORTAL_CATALOG_URL, ParsedFetchFailure, ParsedFetchResponse, ParsedFetchSuccess, ParsedSearchResponse, PersistedLlmRouteOwnership, PiAiModelEntry, PluginConfig, PluginSettingsController, PluginSettingsSchema, PluginSettingsSnapshot, PredictionClient, PredictionClientOptions, PredictionResource, PredictionTask, PredictionTaskStatus, PreparedMediaUpload, REDACTED, ReadPredictionInput, RedactedValue, RequestDeadline, RetentionPolicy, RetryDelayInput, RetryOptions, RetrySuccess, RouteMaterializationPlan, RouteRemovalPlan, SchemaDiagnostic, SchemaParserLimits, ServiceId, ServiceToggles, ServicesConfig, SettingsNamespaceDescriptor, SettingsScopeLike, SettingsServiceLike, SleepPort, StaleLlmCatalogError, StoragePort, SubmitPredictionInput, UiConstraints, UiField, UiFieldKind, UiMediaKind, UiVariant, UnauthorizedTransition, UnsupportedConfigVersionError, VerificationTransition, WebConfig, abandonLlmMaterialization, advanceCredentialEpoch, apply, applyCredentialDescriptor, applyExactPatch, applyNaturalLanguage, applyRuntimeUnauthorized, applyVerificationResult, approveHttpRequest, approveRedirect, beginLlmMaterialization, beginOnboardingSave, buildFetchRequest, buildInvocationBody, buildSearchRequest, completeLlmMaterialization, completeOnboardingSave, computeRetryDelay, createCredentialState, createDefaultConfig, createModellixDesignToolDefinitions, createModellixWebProviders, createModellixWebToolDefinitions, deferOnboarding, deriveModellixSessionId, deriveModellixUserId, executeWithRetry, extractAllowedSubmitUrl, getServiceToggles, inject, isAllowedModellixOrigin, isCredentialInvalidError, isPublicHostname, isRetryableError, isRetryableReadFailure, isValidModellixIdentity, markOnboardingCredentialSaved, materializeDefaults, migrateConfig, missingCredentialDescriptor, modellixDesignDomainSpec, name, normalizeCredentialDescriptor, openDesignStorage, parseCatalogPage, parseDesignSchema, parseFetchResponse, parsePredictionTask, parseResources, parseRetryAfter, parseSearchResponse, planLlmRouteMaterialization, planLlmRouteRemoval, prepareMediaUploadFromPath, prepareMediaUploadFromSession, preserveStoredCredentialAfterCandidateFailure, preserveVerificationAfterTransientFailure, readBoundedResponseJson, readBoundedResponseText, reconcileLlmRouteLedgerAfterInterruption, reconcileOnboardingSave, redactForLog, redactHeaders, redactUrl, registerModellixDesignTools, registerModellixWebProviderInstances, registerModellixWebProviders, registerModellixWebTools, replayDesignWal, requestDeadline, retryAfterFromFailure, selectAvailableResults, setServiceToggles, systemClock, systemSleep, toModellixError, validatePublicHttpUrl, validateSubmitEndpoint, verifyLlmRegistryBackread };
1399
1453
  //# sourceMappingURL=index.d.ts.map