@wox-launcher/wox-plugin 0.0.70 → 0.0.71
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/{llm.d.ts → ai.d.ts} +1 -1
- package/types/index.d.ts +4 -2
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { llm } from "./llm.js"
|
|
2
1
|
import { MetadataCommand, PluginSettingDefinitionItem } from "./setting.js"
|
|
2
|
+
import { AI } from "./ai.js"
|
|
3
3
|
|
|
4
4
|
export type MapString = { [key: string]: string }
|
|
5
5
|
|
|
@@ -83,6 +83,8 @@ export interface Result {
|
|
|
83
83
|
Icon: WoxImage
|
|
84
84
|
Preview?: WoxPreview
|
|
85
85
|
Score?: number
|
|
86
|
+
Group?: string
|
|
87
|
+
GroupScore?: number
|
|
86
88
|
ContextData?: string
|
|
87
89
|
Actions?: ResultAction[]
|
|
88
90
|
// refresh result after specified interval, in milliseconds. If this value is 0, Wox will not refresh this result
|
|
@@ -204,7 +206,7 @@ export interface PublicAPI {
|
|
|
204
206
|
/**
|
|
205
207
|
* Chat using LLM
|
|
206
208
|
*/
|
|
207
|
-
LLMStream: (ctx: Context, conversations:
|
|
209
|
+
LLMStream: (ctx: Context, conversations: AI.Conversation[], callback: AI.ChatStreamFunc) => Promise<void>
|
|
208
210
|
}
|
|
209
211
|
|
|
210
212
|
export type WoxImageType = "absolute" | "relative" | "base64" | "svg" | "url" | "emoji"
|