@wox-launcher/wox-plugin 0.0.92 → 0.0.93

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/ai.d.ts +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.92",
3
+ "version": "0.0.93",
4
4
  "description": "All nodejs plugin for Wox should use types in this package",
5
5
  "repository": {
6
6
  "type": "git",
package/types/ai.d.ts CHANGED
@@ -8,5 +8,14 @@ export namespace AI {
8
8
  Timestamp: number
9
9
  }
10
10
 
11
- export type ChatStreamFunc = (dataType: ChatStreamDataType, data: string) => void
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
12
21
  }