dsh-modellix 0.1.0 → 0.2.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/CHANGELOG.md +56 -0
- package/README.md +101 -169
- package/README.zh-CN.md +99 -167
- package/docs/assets/chat-media-generation-en.webp +0 -0
- package/docs/assets/chat-media-generation-zh.webp +0 -0
- package/docs/assets/design-results-drawer-en.webp +0 -0
- package/docs/assets/design-results-drawer-zh.webp +0 -0
- package/docs/assets/llm-model-selector-en.webp +0 -0
- package/docs/assets/llm-model-selector-zh.webp +0 -0
- package/docs/assets/media-players-en.webp +0 -0
- package/docs/assets/media-players-zh.webp +0 -0
- package/docs/assets/settings-ready-en.webp +0 -0
- package/docs/assets/settings-ready-zh.webp +0 -0
- package/docs/assets/web-tools-auto-en.webp +0 -0
- package/docs/assets/web-tools-auto-zh.webp +0 -0
- package/docs/en-US/LOCAL_USAGE.md +17 -15
- package/docs/en-US/RELEASE_CHECKLIST.md +270 -0
- package/docs/en-US/USER_GUIDE.md +183 -401
- package/docs/zh-CN/LOCAL_USAGE.md +17 -15
- package/docs/zh-CN/RELEASE_CHECKLIST.md +270 -0
- package/docs/zh-CN/USER_GUIDE.md +182 -400
- package/lib/client.d.ts +16 -2
- package/lib/client.js +1308 -466
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +159 -109
- package/lib/index.js +995 -192
- package/lib/index.js.map +1 -1
- package/package.json +7 -2
- package/docs/assets/credential-recovery.webp +0 -0
- package/docs/assets/design-desktop.webp +0 -0
- package/docs/assets/design-mobile-en.webp +0 -0
- package/docs/assets/design-proposal.webp +0 -0
- package/docs/assets/design-results-media.webp +0 -0
- package/docs/assets/llm-model-selector.webp +0 -0
- package/docs/assets/onboarding-defaults.webp +0 -0
- package/docs/assets/settings-ready.webp +0 -0
- package/docs/assets/web-tools.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 {
|
|
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,6 +526,35 @@ declare class ModelSchemaClient {
|
|
|
522
526
|
*/
|
|
523
527
|
declare function extractAllowedSubmitUrl(document: Readonly<Record<string, unknown>>, provider: string, modelId: string): string;
|
|
524
528
|
//#endregion
|
|
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
|
|
525
558
|
//#region src/design/schema-ir.d.ts
|
|
526
559
|
type JsonPrimitive = null | boolean | number | string;
|
|
527
560
|
type JsonValue = JsonPrimitive | readonly JsonValue[] | {
|
|
@@ -705,6 +738,8 @@ type DesignTaskState = "submitting" | "submit-unknown" | PredictionTaskStatus;
|
|
|
705
738
|
interface DesignTaskRecord {
|
|
706
739
|
readonly requestId: string;
|
|
707
740
|
readonly modelSlug: string;
|
|
741
|
+
/** Harness conversation that owns the result; null only for legacy records. */
|
|
742
|
+
readonly sessionId: string | null;
|
|
708
743
|
/** Credential generation that created the remote task; null only for legacy v1 records. */
|
|
709
744
|
readonly credentialEpoch: number | null;
|
|
710
745
|
readonly taskId: string | null;
|
|
@@ -735,7 +770,8 @@ type DesignWalEvent = {
|
|
|
735
770
|
readonly sequence: number;
|
|
736
771
|
readonly timestamp: number;
|
|
737
772
|
readonly requestId: string;
|
|
738
|
-
readonly modelSlug: string; /** Optional only so
|
|
773
|
+
readonly modelSlug: string; /** Optional only so older WAL documents remain readable after session isolation. */
|
|
774
|
+
readonly sessionId?: string; /** Optional only so pre-0.1.0 WAL documents fail safe instead of becoming unreadable. */
|
|
739
775
|
readonly credentialEpoch?: number;
|
|
740
776
|
} | {
|
|
741
777
|
readonly type: "submit-unknown";
|
|
@@ -783,7 +819,7 @@ interface DesignTaskRepositoryOptions {
|
|
|
783
819
|
declare class DesignTaskRepository {
|
|
784
820
|
#private;
|
|
785
821
|
constructor(options: DesignTaskRepositoryOptions);
|
|
786
|
-
recordSubmitIntent(requestId: string, modelSlug: string, credentialEpoch: number): Promise<void>;
|
|
822
|
+
recordSubmitIntent(requestId: string, modelSlug: string, sessionId: string, credentialEpoch: number): Promise<void>;
|
|
787
823
|
markSubmitUnknown(requestId: string): Promise<void>;
|
|
788
824
|
markSubmitRejected(requestId: string): Promise<void>;
|
|
789
825
|
recordSubmitAccepted(requestId: string, task: PredictionTask): Promise<void>;
|
|
@@ -872,6 +908,8 @@ interface DesignModelWire {
|
|
|
872
908
|
readonly id: string;
|
|
873
909
|
readonly label: string;
|
|
874
910
|
readonly kind: "image" | "video" | "audio" | "unknown";
|
|
911
|
+
readonly taskType?: string;
|
|
912
|
+
readonly description?: string;
|
|
875
913
|
readonly featured: boolean;
|
|
876
914
|
readonly available: boolean;
|
|
877
915
|
readonly unavailableReason: DesignModelUnavailableCode | null;
|
|
@@ -981,22 +1019,24 @@ declare function openDesignStorage(ctx: Context): Promise<{
|
|
|
981
1019
|
}>;
|
|
982
1020
|
//#endregion
|
|
983
1021
|
//#region src/host/design-tool.d.ts
|
|
984
|
-
declare const
|
|
985
|
-
declare const
|
|
986
|
-
declare const
|
|
987
|
-
declare const
|
|
1022
|
+
declare const MODELLIX_MEDIA_LIST_TOOL = "modellix_media_list";
|
|
1023
|
+
declare const MODELLIX_MEDIA_SCHEMA_TOOL = "modellix_media_schema";
|
|
1024
|
+
declare const MODELLIX_MEDIA_PREPARE_TOOL = "modellix_media_prepare";
|
|
1025
|
+
declare const MODELLIX_MEDIA_UPLOAD_FILE_TOOL = "modellix_media_upload_file";
|
|
1026
|
+
declare const MODELLIX_MEDIA_GENERATE_TOOL = "modellix_media_generate";
|
|
1027
|
+
declare const MODELLIX_MEDIA_GET_RESULT_TOOL = "modellix_media_get_result";
|
|
988
1028
|
/** The deliberately narrow Host seam used by model-facing Design tools. */
|
|
989
1029
|
interface DesignToolController {
|
|
990
1030
|
handle(endpoint: string, payload: unknown, signal?: AbortSignal): Promise<DesignSnapshotWire>;
|
|
1031
|
+
resolveCredential?(): Promise<string | undefined>;
|
|
991
1032
|
}
|
|
992
1033
|
/**
|
|
993
|
-
* Build the
|
|
1034
|
+
* Build the six stable, namespaced Modellix media tools. The caller owns
|
|
994
1035
|
* visibility and must only register these definitions while Design is enabled.
|
|
995
1036
|
*/
|
|
996
|
-
declare function createModellixDesignToolDefinitions(controller: DesignToolController): readonly ToolDefinition[];
|
|
1037
|
+
declare function createModellixDesignToolDefinitions(controller: DesignToolController, uploadClient?: MediaUploadClient): readonly ToolDefinition[];
|
|
997
1038
|
/**
|
|
998
|
-
* Register
|
|
999
|
-
* disposer removes both definitions and the gate, allowing the runtime to
|
|
1039
|
+
* Register media tools. The returned disposer removes every definition, allowing the runtime to
|
|
1000
1040
|
* mirror the live Design toggle without leaving model-visible stale tools.
|
|
1001
1041
|
*/
|
|
1002
1042
|
declare function registerModellixDesignTools(ctx: Context, controller: DesignToolController): () => void;
|
|
@@ -1098,6 +1138,113 @@ declare class PluginSettingsController {
|
|
|
1098
1138
|
watch(callback: (next: PluginConfig, previous: PluginConfig) => void | Promise<void>): () => void;
|
|
1099
1139
|
}
|
|
1100
1140
|
//#endregion
|
|
1141
|
+
//#region src/web/contracts.d.ts
|
|
1142
|
+
declare const MODELLIX_WEB_SEARCH_ENDPOINT: "https://tool.modellix.ai/v1/web-search";
|
|
1143
|
+
declare const MODELLIX_WEB_FETCH_ENDPOINT: "https://tool.modellix.ai/v1/web-fetch";
|
|
1144
|
+
declare const DEFAULT_WEB_SEARCH_MAX_RESULTS = 5;
|
|
1145
|
+
declare const MAX_WEB_SEARCH_RESULTS = 20;
|
|
1146
|
+
declare const MAX_WEB_QUERY_CHARS = 32000;
|
|
1147
|
+
declare const MAX_WEB_URL_CHARS = 8192;
|
|
1148
|
+
declare const DEFAULT_WEB_RESPONSE_BYTES: number;
|
|
1149
|
+
declare class ModellixWebContractError extends Error {
|
|
1150
|
+
constructor(message: string);
|
|
1151
|
+
}
|
|
1152
|
+
interface ParsedSearchResponse {
|
|
1153
|
+
readonly result: WebSearchResult;
|
|
1154
|
+
readonly requestId: string;
|
|
1155
|
+
}
|
|
1156
|
+
interface ParsedFetchSuccess {
|
|
1157
|
+
readonly kind: "success";
|
|
1158
|
+
readonly result: WebFetchResult;
|
|
1159
|
+
readonly requestId: string;
|
|
1160
|
+
}
|
|
1161
|
+
interface ParsedFetchFailure {
|
|
1162
|
+
readonly kind: "failure";
|
|
1163
|
+
readonly requestId: string;
|
|
1164
|
+
}
|
|
1165
|
+
type ParsedFetchResponse = ParsedFetchSuccess | ParsedFetchFailure;
|
|
1166
|
+
declare function buildSearchRequest(query: string, maxResults: number | undefined): {
|
|
1167
|
+
readonly query: string;
|
|
1168
|
+
readonly depth: "standard";
|
|
1169
|
+
readonly max_results: number;
|
|
1170
|
+
};
|
|
1171
|
+
declare function buildFetchRequest(url: string): {
|
|
1172
|
+
readonly urls: readonly [string];
|
|
1173
|
+
};
|
|
1174
|
+
declare function parseSearchResponse(input: string, maxResults: number): ParsedSearchResponse;
|
|
1175
|
+
declare function parseFetchResponse(input: string): ParsedFetchResponse;
|
|
1176
|
+
declare function validatePublicHttpUrl(value: string, label: string): string;
|
|
1177
|
+
//#endregion
|
|
1178
|
+
//#region src/web/provider.d.ts
|
|
1179
|
+
declare const MODELLIX_WEB_PROVIDER_ID: "modellix";
|
|
1180
|
+
interface ModellixWebCredentialSnapshot {
|
|
1181
|
+
/** Host-only secret. It must be resolved for each operation and never cached. */
|
|
1182
|
+
readonly apiKey: string;
|
|
1183
|
+
readonly credentialEpoch: number;
|
|
1184
|
+
}
|
|
1185
|
+
interface ModellixWebProviderOptions {
|
|
1186
|
+
/** Cheap local switch state. */
|
|
1187
|
+
readonly isEnabled: () => boolean;
|
|
1188
|
+
/** Cheap local descriptor check. This callback must never resolve the Key. */
|
|
1189
|
+
readonly hasCredential: () => boolean;
|
|
1190
|
+
/** Resolves a fresh Host Credential snapshot for every paid request. */
|
|
1191
|
+
readonly resolveCredential: () => Promise<ModellixWebCredentialSnapshot | null>;
|
|
1192
|
+
/** Returns a stable, locally derived Modellix user identifier. */
|
|
1193
|
+
readonly getUserId: () => string;
|
|
1194
|
+
/** Rejects a stale 401 from an earlier Credential generation. */
|
|
1195
|
+
readonly isCredentialEpochCurrent: (credentialEpoch: number) => boolean;
|
|
1196
|
+
readonly onCredentialRejected?: (credentialEpoch: number, error: ModellixErrorContract) => void | Promise<void>;
|
|
1197
|
+
readonly fetchImpl?: typeof globalThis.fetch;
|
|
1198
|
+
readonly maxResponseBytes?: number;
|
|
1199
|
+
readonly requestTimeoutMs?: number;
|
|
1200
|
+
readonly now?: () => number;
|
|
1201
|
+
}
|
|
1202
|
+
interface ModellixWebProviders {
|
|
1203
|
+
readonly search: ModellixWebSearchProvider;
|
|
1204
|
+
readonly fetch: ModellixWebFetchProvider;
|
|
1205
|
+
}
|
|
1206
|
+
interface ModellixWebRegistry {
|
|
1207
|
+
registerSearchProvider(provider: WebSearchProvider): () => void;
|
|
1208
|
+
registerFetchProvider(provider: WebFetchProvider): () => void;
|
|
1209
|
+
}
|
|
1210
|
+
declare class ModellixWebProviderError extends WebError {
|
|
1211
|
+
readonly contract: ModellixErrorContract;
|
|
1212
|
+
readonly diagnostic: RedactedValue;
|
|
1213
|
+
constructor(contract: ModellixErrorContract, diagnostic?: unknown);
|
|
1214
|
+
}
|
|
1215
|
+
declare class ModellixWebFetchFailedError extends WebError {
|
|
1216
|
+
readonly requestId: string;
|
|
1217
|
+
readonly diagnostic: RedactedValue;
|
|
1218
|
+
constructor(requestId: string, url: string);
|
|
1219
|
+
}
|
|
1220
|
+
declare class ModellixWebSearchProvider implements WebSearchProvider {
|
|
1221
|
+
#private;
|
|
1222
|
+
readonly id: "modellix";
|
|
1223
|
+
constructor(options: ModellixWebProviderOptions);
|
|
1224
|
+
available(): boolean;
|
|
1225
|
+
search(request: WebSearchRequest, signal?: AbortSignal): Promise<WebSearchResult>;
|
|
1226
|
+
}
|
|
1227
|
+
declare class ModellixWebFetchProvider implements WebFetchProvider {
|
|
1228
|
+
#private;
|
|
1229
|
+
readonly id: "modellix";
|
|
1230
|
+
constructor(options: ModellixWebProviderOptions);
|
|
1231
|
+
available(): boolean;
|
|
1232
|
+
fetch(request: WebFetchRequest, signal?: AbortSignal): Promise<WebFetchResult>;
|
|
1233
|
+
}
|
|
1234
|
+
declare function createModellixWebProviders(options: ModellixWebProviderOptions): ModellixWebProviders;
|
|
1235
|
+
/** Registers only providers; the Harness-owned web_search/web_fetch Tools remain untouched. */
|
|
1236
|
+
declare function registerModellixWebProviders(registry: ModellixWebRegistry, options: ModellixWebProviderOptions): () => void;
|
|
1237
|
+
/** Register already-created providers so Host tools can share the exact same instances. */
|
|
1238
|
+
declare function registerModellixWebProviderInstances(registry: ModellixWebRegistry, providers: ModellixWebProviders): () => void;
|
|
1239
|
+
//#endregion
|
|
1240
|
+
//#region src/host/web-tool.d.ts
|
|
1241
|
+
declare const MODELLIX_WEB_SEARCH_TOOL = "modellix_web_search";
|
|
1242
|
+
declare const MODELLIX_WEB_FETCH_TOOL = "modellix_web_fetch";
|
|
1243
|
+
/** Build the two explicit Modellix Web tools over the concrete Modellix providers. */
|
|
1244
|
+
declare function createModellixWebToolDefinitions(providers: ModellixWebProviders): readonly ToolDefinition[];
|
|
1245
|
+
/** Register the explicit tools and roll back atomically if either name conflicts. */
|
|
1246
|
+
declare function registerModellixWebTools(ctx: Context, providers: ModellixWebProviders): () => void;
|
|
1247
|
+
//#endregion
|
|
1101
1248
|
//#region src/llm/catalog.d.ts
|
|
1102
1249
|
declare const MODELLIX_LLM_BASE_URL: "https://llm.modellix.ai/v1";
|
|
1103
1250
|
declare const MODELLIX_LLM_MODELS_URL: "https://llm.modellix.ai/v1/models";
|
|
@@ -1291,103 +1438,6 @@ declare class LlmRegistryBackreadError extends Error {
|
|
|
1291
1438
|
*/
|
|
1292
1439
|
declare function verifyLlmRegistryBackread(registry: LlmRegistryReader, models: readonly ModellixLlmModel[], options?: LlmRegistryVerificationOptions): Promise<void>;
|
|
1293
1440
|
//#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
1441
|
//#region src/index.d.ts
|
|
1392
1442
|
declare const name = "modellix";
|
|
1393
1443
|
declare const inject: string[];
|
|
@@ -1395,5 +1445,5 @@ interface Config {}
|
|
|
1395
1445
|
declare const Config: z<Config>;
|
|
1396
1446
|
declare function apply(ctx: Context): Promise<void>;
|
|
1397
1447
|
//#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,
|
|
1448
|
+
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_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
1449
|
//# sourceMappingURL=index.d.ts.map
|