@huyooo/ai-chat-types 0.2.22 → 0.2.24
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/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/index.ts +2 -2
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huyooo/ai-chat-types",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.24",
|
|
4
4
|
"description": "AI Chat 通用类型定义 - 支持 Electron/Web/CLI 多端",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"test:watch": "vitest"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@huyooo/ai-chat-core": "^0.2.
|
|
27
|
+
"@huyooo/ai-chat-core": "^0.2.24"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"tsup": "^8.0.0",
|
package/src/index.ts
CHANGED
|
@@ -215,7 +215,7 @@ export interface TrashRecord {
|
|
|
215
215
|
autoDeleteAt: Date
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
/** Skill
|
|
218
|
+
/** Skill 记录(system prompt 片段,支持本地或云端管理) */
|
|
219
219
|
export interface SkillRecord {
|
|
220
220
|
id: string
|
|
221
221
|
name: string
|
|
@@ -386,7 +386,7 @@ export interface ChatAdapter {
|
|
|
386
386
|
unregisterIndexListener?(): Promise<{ success: boolean }>
|
|
387
387
|
onIndexProgress?(callback: (progress: { indexed: number; total: number; currentFile?: string; stage: string; error?: string }) => void): () => void
|
|
388
388
|
|
|
389
|
-
// ============ Skills API
|
|
389
|
+
// ============ Skills API(可选)============
|
|
390
390
|
/** 获取 Skills 列表 */
|
|
391
391
|
getSkills?(): Promise<SkillRecord[]>
|
|
392
392
|
/** 创建 Skill */
|