@opencode-ai/plugin 0.0.0-next-16615 → 0.0.0-next-16617
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/tui/context.d.ts +15 -0
- package/package.json +6 -6
package/dist/tui/context.d.ts
CHANGED
|
@@ -4,9 +4,21 @@ import type { CliRenderer, KeyEvent, Renderable } from "@opentui/core";
|
|
|
4
4
|
import type { JSX } from "@opentui/solid";
|
|
5
5
|
import type { Store } from "solid-js/store";
|
|
6
6
|
export interface Storage {
|
|
7
|
+
/**
|
|
8
|
+
* Durable JSON state: persisted to disk, survives hot reloads and TUI
|
|
9
|
+
* restarts, and stays live-synced across running TUI instances.
|
|
10
|
+
*/
|
|
7
11
|
store<Value extends object>(key: string, options: {
|
|
8
12
|
readonly initial: Value;
|
|
9
13
|
}): readonly [Store<Value>, (mutation: (draft: Value) => void) => Promise<void>];
|
|
14
|
+
/**
|
|
15
|
+
* Ephemeral in-memory state: survives plugin hot reloads (old and new
|
|
16
|
+
* generations share the same live store) and is gone when the TUI exits.
|
|
17
|
+
* Updates are synchronous and values need not be JSON-serializable.
|
|
18
|
+
*/
|
|
19
|
+
memory<Value extends object>(key: string, options: {
|
|
20
|
+
readonly initial: Value;
|
|
21
|
+
}): readonly [Store<Value>, (mutation: (draft: Value) => void) => void];
|
|
10
22
|
}
|
|
11
23
|
interface LocationCollection<Value> {
|
|
12
24
|
list(location?: LocationRef): Value[] | undefined;
|
|
@@ -114,6 +126,9 @@ export interface SlotMap {
|
|
|
114
126
|
readonly sessionID?: string;
|
|
115
127
|
readonly mode: "normal" | "shell";
|
|
116
128
|
};
|
|
129
|
+
readonly "session.composer.top": {
|
|
130
|
+
readonly sessionID: string;
|
|
131
|
+
};
|
|
117
132
|
readonly "sidebar.content": {
|
|
118
133
|
readonly sessionID: string;
|
|
119
134
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/plugin",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-16617",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@ai-sdk/provider": "3.0.8",
|
|
39
|
-
"@opencode-ai/ai": "0.0.0-next-
|
|
40
|
-
"@opencode-ai/client": "0.0.0-next-
|
|
41
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
39
|
+
"@opencode-ai/ai": "0.0.0-next-16617",
|
|
40
|
+
"@opencode-ai/client": "0.0.0-next-16617",
|
|
41
|
+
"@opencode-ai/schema": "0.0.0-next-16617",
|
|
42
42
|
"@opencode-ai/sdk": "1.18.5",
|
|
43
43
|
"@standard-schema/spec": "1.1.0",
|
|
44
44
|
"effect": "4.0.0-beta.101",
|
|
45
45
|
"zod": "4.1.8"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@opencode-ai/theme": "0.0.0-next-
|
|
48
|
+
"@opencode-ai/theme": "0.0.0-next-16617",
|
|
49
49
|
"@opentui/core": ">=0.4.5",
|
|
50
50
|
"@opentui/keymap": ">=0.4.5",
|
|
51
51
|
"@opentui/solid": ">=0.4.5",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@opencode-ai/theme": "0.0.0-next-
|
|
72
|
+
"@opencode-ai/theme": "0.0.0-next-16617",
|
|
73
73
|
"@opentui/core": "0.4.5",
|
|
74
74
|
"@opentui/keymap": "0.4.5",
|
|
75
75
|
"@opentui/solid": "0.4.5",
|