@dingyi-tech/chat-renderer-sdk 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +0 -0
- package/dist/index.d.ts +10 -0
- package/package.json +10 -9
package/dist/cli.js
CHANGED
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,16 @@ export type RendererActionResult = {
|
|
|
23
23
|
[key: string]: JsonValue | RendererSnapshot | undefined;
|
|
24
24
|
};
|
|
25
25
|
export type RendererBridge = {
|
|
26
|
+
/** Read session-owned media. Available in history; never executes a renderer action. */
|
|
27
|
+
loadMedia?(reference: {
|
|
28
|
+
storage_key: string;
|
|
29
|
+
session_id?: string;
|
|
30
|
+
mime_type?: string;
|
|
31
|
+
filename?: string;
|
|
32
|
+
}, options?: {
|
|
33
|
+
thumbnail?: boolean;
|
|
34
|
+
signal?: AbortSignal;
|
|
35
|
+
}): Promise<Blob>;
|
|
26
36
|
invoke(action: string, input: RendererPayload): Promise<RendererActionResult>;
|
|
27
37
|
reply(content: string, metadata?: RendererPayload): Promise<void>;
|
|
28
38
|
resume(input: RendererPayload): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dingyi-tech/chat-renderer-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Framework-neutral custom message Renderer contract for Dingyi AI Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -36,6 +36,13 @@
|
|
|
36
36
|
"import": "./dist/vite.js"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"clean": "node scripts/clean.mjs",
|
|
41
|
+
"prebuild": "npm run clean",
|
|
42
|
+
"build": "tsc -p tsconfig.json",
|
|
43
|
+
"check": "tsc -p tsconfig.json --noEmit && npm run build && node scripts/check-runtime.mjs && node scripts/check-vite-api.mjs",
|
|
44
|
+
"prepack": "npm run build && node scripts/check-dist.mjs"
|
|
45
|
+
},
|
|
39
46
|
"publishConfig": {
|
|
40
47
|
"access": "public",
|
|
41
48
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -74,11 +81,5 @@
|
|
|
74
81
|
"engines": {
|
|
75
82
|
"node": ">=20"
|
|
76
83
|
},
|
|
77
|
-
"license": "UNLICENSED"
|
|
78
|
-
|
|
79
|
-
"clean": "node scripts/clean.mjs",
|
|
80
|
-
"prebuild": "npm run clean",
|
|
81
|
-
"build": "tsc -p tsconfig.json",
|
|
82
|
-
"check": "tsc -p tsconfig.json --noEmit && npm run build && node scripts/check-runtime.mjs && node scripts/check-vite-api.mjs"
|
|
83
|
-
}
|
|
84
|
-
}
|
|
84
|
+
"license": "UNLICENSED"
|
|
85
|
+
}
|