@vibedev-si/dsh-vibedev 0.5.3 → 0.7.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/README.md +46 -1
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/client/client.account-center.js +465 -5
- package/client/client.js +533 -30
- package/lib/announcements/routes.d.ts +70 -0
- package/lib/content/errors.d.ts +44 -0
- package/lib/content/service.d.ts +99 -0
- package/lib/contracts.d.ts +2 -2
- package/lib/gateway/http.d.ts +15 -3
- package/lib/index.d.ts +8 -0
- package/lib/index.js +711 -91
- package/lib/runtime.d.ts +2 -0
- package/lib/tools/image.d.ts +25 -0
- package/package.json +1 -1
package/lib/runtime.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ export interface MediaSettings {
|
|
|
39
39
|
/** Output folder, relative to the workspace (or absolute). */
|
|
40
40
|
readonly outputDir: () => string;
|
|
41
41
|
readonly confirmSpending: () => boolean;
|
|
42
|
+
/** Send the generated images to the model; off by default, so a result is the saved paths. */
|
|
43
|
+
readonly imagesInContext: () => boolean;
|
|
42
44
|
/** A pinned model id, or `''` to let the agent choose. */
|
|
43
45
|
readonly defaultModel: (slot: ModelSlot) => string;
|
|
44
46
|
}
|
package/lib/tools/image.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* save them in the workspace and show them to the model.
|
|
4
4
|
* @module dsh-vibedev/tools/image
|
|
5
5
|
*/
|
|
6
|
+
import type { ContentBlock } from '@deepseek-ai/dsh-llm';
|
|
6
7
|
import type { ToolDefinition } from '@deepseek-ai/dsh-tools';
|
|
7
8
|
import type { MediaCall, MediaRuntime } from '../runtime.js';
|
|
8
9
|
/** One image request, as the tool and host callers make it. */
|
|
@@ -43,6 +44,30 @@ export declare function generateImages(runtime: MediaRuntime, call: MediaCall, r
|
|
|
43
44
|
estimatedCny?: string;
|
|
44
45
|
revisedPrompt?: string;
|
|
45
46
|
}>;
|
|
47
|
+
/** What a generation returns to the conversation: the saved paths, and the pictures only when they were asked for. */
|
|
48
|
+
export interface ImageResultView {
|
|
49
|
+
readonly model: string;
|
|
50
|
+
readonly images: readonly {
|
|
51
|
+
readonly path: string;
|
|
52
|
+
readonly attachment?: unknown;
|
|
53
|
+
}[];
|
|
54
|
+
readonly estimatedCny?: string;
|
|
55
|
+
readonly revisedPrompt?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Build the result blocks for one generation.
|
|
59
|
+
*
|
|
60
|
+
* A result normally names the saved files and nothing else: carrying the pictures is what rewrote a conversation's
|
|
61
|
+
* middle, made the next turn read the whole prompt again and charged for it. The model reads one back with
|
|
62
|
+
* `read_image` when it needs to look; `attach` asks for them on this call, the plugin setting on every call.
|
|
63
|
+
* @param value - the tool's structured result.
|
|
64
|
+
* @param options - `attach` from the call and the plugin setting.
|
|
65
|
+
* @returns a text block naming the files, plus an image block per picture when the pictures were asked for.
|
|
66
|
+
*/
|
|
67
|
+
export declare function imageResultBlocks(value: ImageResultView, options: {
|
|
68
|
+
attach?: boolean;
|
|
69
|
+
imagesInContext?: boolean;
|
|
70
|
+
}): ContentBlock[];
|
|
46
71
|
/**
|
|
47
72
|
* Build the tool.
|
|
48
73
|
* @param runtime - the media runtime.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibedev-si/dsh-vibedev",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "VibeDev 账号与模型:在 DeepSeek Harness 里登录 VibeDev,与 DeepSeek 账号并存,使用 VibeDev 网关的模型(Claude、GPT 等),并生成图片、视频、音乐和播客 · VibeDev account and models for DeepSeek Harness: sign in to VibeDev next to the DeepSeek account and use the VibeDev gateway's models (Claude, GPT and more), plus image, video, music and podcast generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|