@eddyskywalker/dsh-chatgpt-subscription 0.3.0 → 0.3.2
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 +30 -0
- package/README.md +10 -6
- package/lib/client.js +11 -5
- package/lib/client.js.map +1 -1
- package/lib/index.js +515 -30
- package/lib/types/client/kimi-code/KimiModelCapabilities.d.ts.map +1 -1
- package/lib/types/client/kimi-code/locales.d.ts +12 -6
- package/lib/types/client/kimi-code/locales.d.ts.map +1 -1
- package/lib/types/client/kimi-code/styles.d.ts.map +1 -1
- package/lib/types/host/kimi-code/adapter.d.ts.map +1 -1
- package/lib/types/host/kimi-code/client.d.ts +12 -0
- package/lib/types/host/kimi-code/client.d.ts.map +1 -1
- package/lib/types/host/kimi-code/mapper.d.ts +38 -2
- package/lib/types/host/kimi-code/mapper.d.ts.map +1 -1
- package/lib/types/host/kimi-code/video-store.d.ts +99 -0
- package/lib/types/host/kimi-code/video-store.d.ts.map +1 -0
- package/lib/types/host/kimi-code/video-tool.d.ts +25 -0
- package/lib/types/host/kimi-code/video-tool.d.ts.map +1 -0
- package/lib/types/host/subagent-model-authorization.d.ts +26 -6
- package/lib/types/host/subagent-model-authorization.d.ts.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KimiModelCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiModelCapabilities.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AAK9E,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAC9B;AAED,wBAAgB,qBAAqB,CAAC,EAAE,MAAM,EAAE,EAAE,0BAA0B,GAAG,KAAK,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"KimiModelCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiModelCapabilities.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AAK9E,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAC9B;AAED,wBAAgB,qBAAqB,CAAC,EAAE,MAAM,EAAE,EAAE,0BAA0B,GAAG,KAAK,CAAC,YAAY,CA8ChG"}
|
|
@@ -52,10 +52,11 @@ export declare const zh: {
|
|
|
52
52
|
readonly unselectAll: "全不选";
|
|
53
53
|
readonly wireAnthropic: "Anthropic";
|
|
54
54
|
readonly wireOpenai: "OpenAI";
|
|
55
|
-
readonly capVideo: "
|
|
55
|
+
readonly capVideo: "视频*";
|
|
56
56
|
readonly capDynamicTools: "动态工具";
|
|
57
57
|
readonly capImageOnly: "仅图片";
|
|
58
58
|
readonly capNone: "—";
|
|
59
|
+
readonly capVideoFootnote: "* 视频输入需先由 kimi_attach_video 工具挂载(本地绝对路径或 http(s) 链接);直接粘贴的上传路径仍只支持图片。";
|
|
59
60
|
readonly capabilitiesTitle: "模型能力";
|
|
60
61
|
readonly capColMedia: "多模态";
|
|
61
62
|
readonly capColTools: "动态工具";
|
|
@@ -162,10 +163,11 @@ export declare const en: {
|
|
|
162
163
|
readonly unselectAll: "Deselect all";
|
|
163
164
|
readonly wireAnthropic: "Anthropic";
|
|
164
165
|
readonly wireOpenai: "OpenAI";
|
|
165
|
-
readonly capVideo: "Video";
|
|
166
|
+
readonly capVideo: "Video*";
|
|
166
167
|
readonly capDynamicTools: "Dynamic tools";
|
|
167
168
|
readonly capImageOnly: "Images";
|
|
168
169
|
readonly capNone: "—";
|
|
170
|
+
readonly capVideoFootnote: "* Video input is attached with the kimi_attach_video tool (an absolute local path or an http(s) URL); the paste/upload path still accepts images only.";
|
|
169
171
|
readonly capabilitiesTitle: "Capabilities";
|
|
170
172
|
readonly capColMedia: "Multimodal";
|
|
171
173
|
readonly capColTools: "Dynamic tools";
|
|
@@ -273,10 +275,11 @@ export declare const dictionaries: {
|
|
|
273
275
|
readonly unselectAll: "全不选";
|
|
274
276
|
readonly wireAnthropic: "Anthropic";
|
|
275
277
|
readonly wireOpenai: "OpenAI";
|
|
276
|
-
readonly capVideo: "
|
|
278
|
+
readonly capVideo: "视频*";
|
|
277
279
|
readonly capDynamicTools: "动态工具";
|
|
278
280
|
readonly capImageOnly: "仅图片";
|
|
279
281
|
readonly capNone: "—";
|
|
282
|
+
readonly capVideoFootnote: "* 视频输入需先由 kimi_attach_video 工具挂载(本地绝对路径或 http(s) 链接);直接粘贴的上传路径仍只支持图片。";
|
|
280
283
|
readonly capabilitiesTitle: "模型能力";
|
|
281
284
|
readonly capColMedia: "多模态";
|
|
282
285
|
readonly capColTools: "动态工具";
|
|
@@ -383,10 +386,11 @@ export declare const dictionaries: {
|
|
|
383
386
|
readonly unselectAll: "全不选";
|
|
384
387
|
readonly wireAnthropic: "Anthropic";
|
|
385
388
|
readonly wireOpenai: "OpenAI";
|
|
386
|
-
readonly capVideo: "
|
|
389
|
+
readonly capVideo: "视频*";
|
|
387
390
|
readonly capDynamicTools: "动态工具";
|
|
388
391
|
readonly capImageOnly: "仅图片";
|
|
389
392
|
readonly capNone: "—";
|
|
393
|
+
readonly capVideoFootnote: "* 视频输入需先由 kimi_attach_video 工具挂载(本地绝对路径或 http(s) 链接);直接粘贴的上传路径仍只支持图片。";
|
|
390
394
|
readonly capabilitiesTitle: "模型能力";
|
|
391
395
|
readonly capColMedia: "多模态";
|
|
392
396
|
readonly capColTools: "动态工具";
|
|
@@ -493,10 +497,11 @@ export declare const dictionaries: {
|
|
|
493
497
|
readonly unselectAll: "Deselect all";
|
|
494
498
|
readonly wireAnthropic: "Anthropic";
|
|
495
499
|
readonly wireOpenai: "OpenAI";
|
|
496
|
-
readonly capVideo: "Video";
|
|
500
|
+
readonly capVideo: "Video*";
|
|
497
501
|
readonly capDynamicTools: "Dynamic tools";
|
|
498
502
|
readonly capImageOnly: "Images";
|
|
499
503
|
readonly capNone: "—";
|
|
504
|
+
readonly capVideoFootnote: "* Video input is attached with the kimi_attach_video tool (an absolute local path or an http(s) URL); the paste/upload path still accepts images only.";
|
|
500
505
|
readonly capabilitiesTitle: "Capabilities";
|
|
501
506
|
readonly capColMedia: "Multimodal";
|
|
502
507
|
readonly capColTools: "Dynamic tools";
|
|
@@ -603,10 +608,11 @@ export declare const dictionaries: {
|
|
|
603
608
|
readonly unselectAll: "Deselect all";
|
|
604
609
|
readonly wireAnthropic: "Anthropic";
|
|
605
610
|
readonly wireOpenai: "OpenAI";
|
|
606
|
-
readonly capVideo: "Video";
|
|
611
|
+
readonly capVideo: "Video*";
|
|
607
612
|
readonly capDynamicTools: "Dynamic tools";
|
|
608
613
|
readonly capImageOnly: "Images";
|
|
609
614
|
readonly capNone: "—";
|
|
615
|
+
readonly capVideoFootnote: "* Video input is attached with the kimi_attach_video tool (an absolute local path or an http(s) URL); the paste/upload path still accepts images only.";
|
|
610
616
|
readonly capabilitiesTitle: "Capabilities";
|
|
611
617
|
readonly capColMedia: "Multimodal";
|
|
612
618
|
readonly capColTools: "Dynamic tools";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,kBAAkB,CAAA;AAE3C,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,kBAAkB,CAAA;AAE3C,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8GL,CAAA;AAEV,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8GL,CAAA;AAEV,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,iCAAiC,CAAA;AAwFtD,uEAAuE;AACvE,wBAAgB,qBAAqB,IAAI,IAAI,CAM5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/host/kimi-code/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAEV,iBAAiB,EAEjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAGL,WAAW,EAOX,mBAAmB,EACpB,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EAEtB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC7B,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,iBAAiB,EACjB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/host/kimi-code/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAEV,iBAAiB,EAEjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAGL,WAAW,EAOX,mBAAmB,EACpB,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EAEtB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC7B,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAOnB,MAAM,aAAa,CAAA;AACpB,OAAO,EAcL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAE3B,MAAM,aAAa,CAAA;AAMpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,6BAA6B,EAAE;IAC1C,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,EAAE,MAAM,CAAA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AAO,GAAE,sBAA2B;IAKvD,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe;IAI/C,mBAAmB,IAAI,mBAAmB;IAI1C,mBAAmB,IAAI,SAAS;IAIhC,OAAO,CAAC,QAAQ;IAIhB;;;OAGG;YACW,OAAO;IAerB,OAAO,CAAC,gBAAgB;IAUlB,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,YAAY,EAAE,CAAC;IAkB/D,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAkCpG,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAO/F,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,aAAa,CAAC,WAAW,CAAC;YAgBpD,aAAa;CAkI7B;AAQD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -52,6 +52,18 @@ export declare function loadProviderModels(options?: {
|
|
|
52
52
|
export declare function wireForCatalogEntry(modelId: string, catalog: readonly KimiCodeCatalogModel[]): KimiCodeWire;
|
|
53
53
|
/** Thinking levels for one model, from the catalog when it declares them. */
|
|
54
54
|
export declare function reasoningEffortsForEntry(modelId: string, catalog: readonly KimiCodeCatalogModel[]): string[];
|
|
55
|
+
/**
|
|
56
|
+
* Whether one model accepts message-level tool declarations.
|
|
57
|
+
*
|
|
58
|
+
* THE single resolution point for `dynamically_loaded_tools`: the settings card
|
|
59
|
+
* and the request builder must never disagree, because the failure mode is a UI
|
|
60
|
+
* that promises a capability the sent request silently drops. Precedence is the
|
|
61
|
+
* live listing (including an explicit false), then the shipped registry.
|
|
62
|
+
*
|
|
63
|
+
* @param modelId - exact model id.
|
|
64
|
+
* @param catalog - live catalog, possibly empty when offline.
|
|
65
|
+
*/
|
|
66
|
+
export declare function dynamicToolsForEntry(modelId: string, catalog: readonly KimiCodeCatalogModel[]): boolean;
|
|
55
67
|
/** Input modalities for one model, from the catalog when it declares them. */
|
|
56
68
|
export declare function inputModalitiesForEntry(modelId: string, catalog: readonly KimiCodeCatalogModel[]): Array<'text' | 'image' | 'video'>;
|
|
57
69
|
/** Build the picker entries the settings card renders. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/host/kimi-code/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EAQd,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,mBAAmB,EAEnB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACzB,MAAM,kBAAkB,CAAA;AAGzB,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,YAAY,EACb,MAAM,qCAAqC,CAAA;AAE5C,gDAAgD;AAChD,eAAO,MAAM,WAAW,YAAY,CAAA;AACpC,eAAO,MAAM,WAAW,YAAY,CAAA;AACpC,eAAO,MAAM,OAAO,QAAQ,CAAA;AAiD5B,sFAAsF;AACtF,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAW5D;AAeD;;;;;;;GAOG;AACH,wBAAsB,eAAe,CACnC,WAAW,EAAE,MAAM,EACnB,IAAI,GAAE,YAAuB,EAC7B,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACjC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAWjC;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,mBAAmB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,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ACH,wBAAsB,YAAY,CAChC,KAAK,EAAE,mBAAmB,EAC1B,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAmBzB;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CACjC,KAAK,EAAE,mBAAmB,EAC1B,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAoBjC;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAClC,KAAK,EAAE,mBAAmB,EAC1B,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC;IAAE,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAejE;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -222,10 +222,43 @@ export interface DynamicToolDeclaration {
|
|
|
222
222
|
* honor; the property is invisible to them and only this mapper looks for it.
|
|
223
223
|
*/
|
|
224
224
|
export declare const MESSAGE_TOOLS: unique symbol;
|
|
225
|
-
/**
|
|
225
|
+
/**
|
|
226
|
+
* Serializable key the declaration travels under.
|
|
227
|
+
*
|
|
228
|
+
* A symbol alone is not enough: the session log persists messages through
|
|
229
|
+
* JSON, which drops symbol-keyed properties, so a restored session would lose
|
|
230
|
+
* every declaration and the model would believe it had tools the request no
|
|
231
|
+
* longer carries. The declaration is therefore stored under a plain string key
|
|
232
|
+
* AND the symbol, so in-process readers keep the exempt-from-`Object.keys`
|
|
233
|
+
* behaviour while a round trip through persistence still reconstructs it.
|
|
234
|
+
*/
|
|
235
|
+
export declare const MESSAGE_TOOLS_KEY = "kimiCodeMessageTools";
|
|
236
|
+
/**
|
|
237
|
+
* Attach message-level tool declarations to one system message.
|
|
238
|
+
*
|
|
239
|
+
* Two copies are written deliberately, and they differ in visibility:
|
|
240
|
+
*
|
|
241
|
+
* - the SYMBOL copy is non-enumerable, so a reader that inspects a message the
|
|
242
|
+
* ordinary way (the transcript UI, a sibling adapter) sees nothing new and
|
|
243
|
+
* cannot mistake an unhandled field for something it must act on;
|
|
244
|
+
* - the STRING-KEYED copy is enumerable, because JSON persistence only
|
|
245
|
+
* serializes enumerable string keys and a declaration that vanishes on
|
|
246
|
+
* session resume is worse than one that is visible. Readers that do walk the
|
|
247
|
+
* keys will see `kimiCodeMessageTools`; the convention is that only this
|
|
248
|
+
* route's mapper interprets it.
|
|
249
|
+
*/
|
|
226
250
|
export declare function withMessageTools<T extends Message>(message: T, tools: readonly DynamicToolDeclaration[]): T;
|
|
227
251
|
/** Message-level tool declarations one message carries, when any. */
|
|
228
252
|
export declare function messageToolsOf(message: Message): readonly DynamicToolDeclaration[] | undefined;
|
|
253
|
+
/**
|
|
254
|
+
* Re-attach declarations after a message has been through JSON.
|
|
255
|
+
*
|
|
256
|
+
* Persistence keeps the declarations but necessarily loses the symbol, so a
|
|
257
|
+
* restored message exposes them only under {@link MESSAGE_TOOLS_KEY}. This
|
|
258
|
+
* restores the symbol too, which is what makes a declaration survive a resumed
|
|
259
|
+
* session instead of silently disappearing.
|
|
260
|
+
*/
|
|
261
|
+
export declare function rehydrateMessageTools<T extends Message>(message: T): T;
|
|
229
262
|
/**
|
|
230
263
|
* Rough prompt size for one request, in tokens.
|
|
231
264
|
*
|
|
@@ -258,8 +291,11 @@ export declare function buildRequest(options: GenerateOptions, wire: KimiCodeWir
|
|
|
258
291
|
* remedy (DSH's compaction), and a request that cannot succeed should not be
|
|
259
292
|
* sent at all. The measured size is the real serialized body, so it accounts
|
|
260
293
|
* for tool schemas and inlined images the caller cannot easily estimate.
|
|
294
|
+
*
|
|
295
|
+
* @returns the serialized body, so a caller that is about to send it does not
|
|
296
|
+
* serialize a body of up to tens of megabytes a second time.
|
|
261
297
|
*/
|
|
262
|
-
export declare function assertRequestBodyFits(body: Record<string, unknown
|
|
298
|
+
export declare function assertRequestBodyFits(body: Record<string, unknown>, carriesVideo?: boolean): string;
|
|
263
299
|
/** One tool call accumulating across `chat/completions` deltas. */
|
|
264
300
|
interface PendingToolCall {
|
|
265
301
|
blockIndex: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../../../src/host/kimi-code/mapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,eAAe,EACpB,KAAK,OAAO,EACZ,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAsB,MAAM,6BAA6B,CAAA;AAItF,OAAO,EAML,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAsChG;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAElD;AAMD;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,IAAI,CAAA;AACnC,eAAO,MAAM,uBAAuB,KAAK,CAAA;AAEzC;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAIrF;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,CAS3E;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,uBAAuB,GAAG,SAAS,CA0BzG;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAMpH;AAMD,8EAA8E;AAC9E,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,eAAe,EAAE,WAAW,CAAC,C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;AAClE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAIrE"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Local store for videos this plugin attaches to a Kimi Code request.
|
|
3
|
+
*
|
|
4
|
+
* DSH's attachment service normalizes and stores images only, and no DSH
|
|
5
|
+
* surface can produce a video block, so the route owns its own store rather
|
|
6
|
+
* than pretending DSH issued these references. The store is deliberately
|
|
7
|
+
* narrow: a tool ingests bytes, a reader hands them back for one request.
|
|
8
|
+
*
|
|
9
|
+
* The identifier is the sha256 of the stored bytes, so re-ingesting the same
|
|
10
|
+
* file is idempotent and a reference cannot silently point at different bytes.
|
|
11
|
+
*/
|
|
12
|
+
import { type VideoAttachmentRef } from './modalities.ts';
|
|
13
|
+
/**
|
|
14
|
+
* Largest single video this route will carry.
|
|
15
|
+
*
|
|
16
|
+
* Two independent published limits bound this, and the smaller wins:
|
|
17
|
+
*
|
|
18
|
+
* - the official Kimi video integration encodes a local file as
|
|
19
|
+
* `data:video/...;base64,...` and caps that payload at about 50 MB;
|
|
20
|
+
* - the VS Code client caps a picked video file at 20 MB.
|
|
21
|
+
*
|
|
22
|
+
* The integration figure is the one that describes what the MODEL accepts
|
|
23
|
+
* over this exact wire, so the cap is set just under it rather than at the
|
|
24
|
+
* editor's more conservative picker limit. Note this is an encoded payload
|
|
25
|
+
* limit: base64 grows bytes by 4/3, so the raw file must stay under 3/4 of it.
|
|
26
|
+
*/
|
|
27
|
+
export declare const MAX_VIDEO_FILE_BYTES: number;
|
|
28
|
+
/** Maximum base64 payload derived from {@link MAX_VIDEO_FILE_BYTES}. */
|
|
29
|
+
export declare const MAX_VIDEO_BASE64_BYTES: number;
|
|
30
|
+
/** Directory the ingested videos live in. */
|
|
31
|
+
export declare function videoStoreDir(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Media type for one path, from its extension.
|
|
34
|
+
*
|
|
35
|
+
* A local file rarely carries a usable declared type, so the extension is the
|
|
36
|
+
* signal; an unknown one yields undefined rather than a guess, so the caller
|
|
37
|
+
* can refuse instead of sending a type the service will reject.
|
|
38
|
+
*/
|
|
39
|
+
export declare function mediaTypeForPath(filePath: string): string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Whether this route will actually send this container.
|
|
42
|
+
*
|
|
43
|
+
* The ingress accepts exactly what the mapper can put on the wire, so a file
|
|
44
|
+
* is either accepted and sent or refused with a reason. An earlier revision
|
|
45
|
+
* also stored Matroska (.mkv), which some third-party integrations accept but
|
|
46
|
+
* the vision guide does not list; that produced a video reported as "attached"
|
|
47
|
+
* which the mapper then silently downgraded to a placeholder. Accepting only
|
|
48
|
+
* {@link KIMI_VIDEO_MEDIA_TYPES} keeps the tool's promise and the wire's
|
|
49
|
+
* behaviour the same thing.
|
|
50
|
+
*/
|
|
51
|
+
export declare function isStorableVideoType(mediaType: string): boolean;
|
|
52
|
+
/** Raised when an ingest cannot produce a usable reference. */
|
|
53
|
+
export declare class VideoIngestError extends Error {
|
|
54
|
+
readonly code: string;
|
|
55
|
+
constructor(message: string, code: string);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Commit one video's bytes and return the reference a request can cite.
|
|
59
|
+
*
|
|
60
|
+
* @param data - complete encoded file bytes.
|
|
61
|
+
* @param declaredType - media type from the source (extension or Content-Type).
|
|
62
|
+
* @param name - display name; never interpreted as a path.
|
|
63
|
+
* @param declaredBytes - total the source advertised, when it did, so an
|
|
64
|
+
* oversized file is refused before its bytes are buffered.
|
|
65
|
+
*/
|
|
66
|
+
export declare function saveVideo(input: {
|
|
67
|
+
data: Uint8Array;
|
|
68
|
+
declaredType: string | undefined;
|
|
69
|
+
name: string;
|
|
70
|
+
declaredBytes?: number;
|
|
71
|
+
}): Promise<VideoAttachmentRef>;
|
|
72
|
+
/**
|
|
73
|
+
* Total bytes the store may occupy before it prunes itself.
|
|
74
|
+
*
|
|
75
|
+
* Videos are content-addressed and re-attaching an identical file costs nothing,
|
|
76
|
+
* but nothing ever removed an old clip, so the directory only grew. The budget
|
|
77
|
+
* is deliberately generous (a few large clips) and enforced only on write, so a
|
|
78
|
+
* prune never runs during a read of the clip about to be sent.
|
|
79
|
+
*/
|
|
80
|
+
export declare const VIDEO_STORE_BUDGET_BYTES: number;
|
|
81
|
+
/**
|
|
82
|
+
* Drop the least recently used objects until the store fits its budget.
|
|
83
|
+
*
|
|
84
|
+
* Recency is the object's mtime, which writing refreshes, so a clip that was
|
|
85
|
+
* just re-attached is not the one evicted. Failure is swallowed: a store that
|
|
86
|
+
* cannot be pruned must not fail the attachment the caller asked for.
|
|
87
|
+
*/
|
|
88
|
+
export declare function pruneVideoStore(budgetBytes?: number): Promise<number>;
|
|
89
|
+
/** Path of the stored object for a reference, or undefined when it is gone. */
|
|
90
|
+
export declare function storedPathFor(ref: VideoAttachmentRef): string | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Read the bytes one reference points at.
|
|
93
|
+
*
|
|
94
|
+
* The reference is re-verified against the stored bytes: a file whose digest
|
|
95
|
+
* no longer matches its name is refused rather than sent, so a tampered or
|
|
96
|
+
* truncated object cannot reach the model as if it were the original.
|
|
97
|
+
*/
|
|
98
|
+
export declare function readVideoBytes(ref: VideoAttachmentRef): Promise<Uint8Array>;
|
|
99
|
+
//# sourceMappingURL=video-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-store.d.ts","sourceRoot":"","sources":["../../../../src/host/kimi-code/video-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,OAAO,EAA0B,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEjF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,oBAAoB,QAAmB,CAAA;AAEpD,wEAAwE;AACxE,eAAO,MAAM,sBAAsB,QAA0C,CAAA;AAE7E,6CAA6C;AAC7C,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AA+BD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAErE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED,+DAA+D;AAC/D,qBAAa,gBAAiB,SAAQ,KAAK;IACZ,QAAQ,CAAC,IAAI,EAAE,MAAM;gBAAtC,OAAO,EAAE,MAAM,EAAW,IAAI,EAAE,MAAM;CAInD;AAED;;;;;;;;GAQG;AACH,wBAAsB,SAAS,CAAC,KAAK,EAAE;IACrC,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA8C9B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,QAAoB,CAAA;AAEzD;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,WAAW,SAA2B,GAAG,OAAO,CAAC,MAAM,CAAC,CA8B7F;AAED,+EAA+E;AAC/E,wBAAgB,aAAa,CAAC,GAAG,EAAE,kBAAkB,GAAG,MAAM,GAAG,SAAS,CAIzE;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,CAgBjF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool that attaches a video for the next Kimi Code request.
|
|
3
|
+
*
|
|
4
|
+
* DSH's attachment service stores images only and no DSH surface can produce a
|
|
5
|
+
* video block, so this route supplies its own ingress. The bytes are committed
|
|
6
|
+
* to the plugin's video store and then injected into the conversation as a
|
|
7
|
+
* plugin-sourced user message, which is the same mechanism this plugin already
|
|
8
|
+
* uses to return a generated image to the model.
|
|
9
|
+
*
|
|
10
|
+
* Two sources are accepted:
|
|
11
|
+
*
|
|
12
|
+
* - an absolute local path, read straight from disk;
|
|
13
|
+
* - an http(s) URL, fetched through the deployment's proxy-aware fetch and
|
|
14
|
+
* checked against the same public-address policy the search/fetch provider
|
|
15
|
+
* uses, so this cannot become an SSRF primitive against the local network.
|
|
16
|
+
*/
|
|
17
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
18
|
+
export declare const KIMI_VIDEO_TOOL_NAME = "kimi_attach_video";
|
|
19
|
+
type FetchLike = typeof fetch;
|
|
20
|
+
export interface KimiVideoToolOptions {
|
|
21
|
+
fetchFn?: FetchLike;
|
|
22
|
+
}
|
|
23
|
+
export declare function createKimiVideoTool(ctx: Context, options?: KimiVideoToolOptions): import("@deepseek-ai/dsh-tools").ToolDefinition;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=video-tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-tool.d.ts","sourceRoot":"","sources":["../../../../src/host/kimi-code/video-tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAOlD,eAAO,MAAM,oBAAoB,sBAAsB,CAAA;AAEvD,KAAK,SAAS,GAAG,OAAO,KAAK,CAAA;AAE7B,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,SAAS,CAAA;CACpB;AAwID,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAE,oBAAyB,mDAwGnF"}
|
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The `subagent-model-selection` preference is sampled into each Session as a
|
|
5
5
|
* durable route allowlist, but the built-in delegation tool only rejects an
|
|
6
|
-
* explicit route outside that list: a call that
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* explicit route outside that list: a call that omits `provider` or `model`
|
|
7
|
+
* silently falls back to the configured child defaults or to the parent's own
|
|
8
|
+
* route, so a DeepSeek parent could spawn DeepSeek children even though the
|
|
9
|
+
* allowlist authorizes only other models.
|
|
9
10
|
*
|
|
10
11
|
* This guard closes that gap from the plugin plane. Whenever the calling
|
|
11
12
|
* Session (or the nearest ancestor that recorded one) carries an allowlist,
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* the
|
|
13
|
+
* every delegation must name an authorized `provider` and `model`; a call that
|
|
14
|
+
* names neither, names only half of the pair, or names a route outside the list
|
|
15
|
+
* is denied before the child starts, with the authorized routes in the reason so
|
|
16
|
+
* the model can call `list_subagent_models` and retry with one of them.
|
|
15
17
|
* @module dsh-chatgpt-subscription/subagent-model-authorization
|
|
16
18
|
*/
|
|
17
19
|
import type { Context } from '@deepseek-ai/cordis';
|
|
@@ -88,6 +90,24 @@ export declare function authorizedRoutesFor(agent: AuthorizationAgent | undefine
|
|
|
88
90
|
* @returns the resolved preference, or undefined without a settings service.
|
|
89
91
|
*/
|
|
90
92
|
export declare function subagentModelSelectionPreference(settings: SettingsProvider | undefined): SubagentModelSelectionPreference | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Build the denial reason for a delegation that named no explicit route.
|
|
95
|
+
* A policy-carrying Session requires the model to choose, so the reason names
|
|
96
|
+
* every authorized route and the discovery tool that lists them.
|
|
97
|
+
* @param allowed - Routes the calling Session authorizes.
|
|
98
|
+
* @returns the corrective reason handed back to the model.
|
|
99
|
+
*/
|
|
100
|
+
export declare function missingRouteReason(allowed: readonly AllowedModelRoute[]): string;
|
|
101
|
+
/**
|
|
102
|
+
* Build the denial reason for a half-specified route. The built-in delegation
|
|
103
|
+
* tool completes such a pair from its own configuration, so this reason names
|
|
104
|
+
* the missing field as well as the authorized routes.
|
|
105
|
+
* @param missing - The half of the pair the call omitted.
|
|
106
|
+
* @param supplied - The half the call did provide.
|
|
107
|
+
* @param allowed - Routes the calling Session authorizes.
|
|
108
|
+
* @returns the corrective reason handed back to the model.
|
|
109
|
+
*/
|
|
110
|
+
export declare function partialRouteReason(missing: 'provider' | 'model', supplied: string, allowed: readonly AllowedModelRoute[]): string;
|
|
91
111
|
/**
|
|
92
112
|
* Build the denial reason for a delegation that would run on an unauthorized
|
|
93
113
|
* route. The reason names the authorized routes so the next call can select one.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subagent-model-authorization.d.ts","sourceRoot":"","sources":["../../../src/host/subagent-model-authorization.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"subagent-model-authorization.d.ts","sourceRoot":"","sources":["../../../src/host/subagent-model-authorization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAIjE,kEAAkE;AAClE,eAAO,MAAM,kCAAkC,6BAA6B,CAAA;AAE5E,4EAA4E;AAC5E,eAAO,MAAM,qBAAqB,oCAAoC,CAAA;AAEtE,iEAAiE;AACjE,eAAO,MAAM,wBAAwB,EAAE,SAAS,MAAM,EAAiB,CAAA;AAEvE,uEAAuE;AACvE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AAED,gFAAgF;AAChF,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,aAAa,EAAE,SAAS,iBAAiB,EAAE,CAAA;CACrD;AAED,gFAAgF;AAChF,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG;QAAE,IAAI,CAAC,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS,CAAA;IACrE,QAAQ,CAAC,MAAM,CAAC,EAAE;QAChB,QAAQ,CAAC,MAAM,CAAC,E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Ae,CAUjB;AAED,4EAA4E;AAC5E,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAKrE;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAUlF;AAED,2EAA2E;AAC3E,MAAM,WAAW,gCAAgC;IAC/C,kDAAkD;IAClD,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACtC,0EAA0E;IAC1E,QAAQ,CAAC,KAAK,CAAC,EAAE,kBAAkB,CAAA;CACpC;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAC/C,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,gBAAgB,EAC1B,MAAM,GAAE,gCAAqC,GAC5C,MAAM,IAAI,CAOZ;AACD;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,kBAAkB,CAK7E"}
|
package/lib/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,CAAC,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAkExC,yDAAyD;AACzD,MAAM,WAAW,MAAM;IACrB;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC,qFAAqF;IACrF,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC7B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,SAAS,GAAG,YAAY,CAAA;CAC9C;AAED,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