@wox-launcher/wox-plugin 0.0.93 → 0.0.96
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/package.json +1 -1
- package/types/ai.d.ts +21 -21
- package/types/index.d.ts +568 -527
- package/types/setting.d.ts +97 -97
package/package.json
CHANGED
package/types/ai.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export namespace AI {
|
|
2
|
-
export type ConversationRole = "user" | "system"
|
|
3
|
-
export type ChatStreamDataType = "streaming" | "finished" | "error"
|
|
4
|
-
|
|
5
|
-
export interface Conversation {
|
|
6
|
-
Role: ConversationRole
|
|
7
|
-
Text: string
|
|
8
|
-
Timestamp: number
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface ChatStreamData {
|
|
12
|
-
/** Stream status */
|
|
13
|
-
Status: ChatStreamDataType
|
|
14
|
-
/** Aggregated content data */
|
|
15
|
-
Data: string
|
|
16
|
-
/** Reasoning content from models that support reasoning (e.g., DeepSeek, OpenAI o1). Separate from Data for clean processing. */
|
|
17
|
-
Reasoning: string
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type ChatStreamFunc = (streamData: ChatStreamData) => void
|
|
21
|
-
}
|
|
1
|
+
export namespace AI {
|
|
2
|
+
export type ConversationRole = "user" | "system"
|
|
3
|
+
export type ChatStreamDataType = "streaming" | "finished" | "error"
|
|
4
|
+
|
|
5
|
+
export interface Conversation {
|
|
6
|
+
Role: ConversationRole
|
|
7
|
+
Text: string
|
|
8
|
+
Timestamp: number
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface ChatStreamData {
|
|
12
|
+
/** Stream status */
|
|
13
|
+
Status: ChatStreamDataType
|
|
14
|
+
/** Aggregated content data */
|
|
15
|
+
Data: string
|
|
16
|
+
/** Reasoning content from models that support reasoning (e.g., DeepSeek, OpenAI o1). Separate from Data for clean processing. */
|
|
17
|
+
Reasoning: string
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type ChatStreamFunc = (streamData: ChatStreamData) => void
|
|
21
|
+
}
|