@opencode/plugin 0.0.0-dev-19654 → 0.0.0-dev-19657
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.
|
@@ -16,6 +16,6 @@ export interface PermissionEvaluation {
|
|
|
16
16
|
export interface PermissionHooks {
|
|
17
17
|
readonly evaluate: PermissionEvaluation;
|
|
18
18
|
}
|
|
19
|
-
export type PermissionDomain = Pick<PermissionApi<unknown>, "list" | "get" | "reply"
|
|
19
|
+
export type PermissionDomain = Pick<PermissionApi<unknown>, "list" | "get" | "reply"> & {
|
|
20
20
|
readonly hook: Hooks<PermissionHooks>;
|
|
21
21
|
};
|
package/dist/effect/session.d.ts
CHANGED
|
@@ -115,6 +115,6 @@ export interface SessionHooks {
|
|
|
115
115
|
readonly "experimental.ws.handshake": SessionWebSocketHandshake;
|
|
116
116
|
readonly retry: SessionRetry;
|
|
117
117
|
}
|
|
118
|
-
export type SessionDomain = Pick<SessionApi<unknown>, "create" | "get" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "synthetic" | "interrupt" | "
|
|
118
|
+
export type SessionDomain = Pick<SessionApi<unknown>, "create" | "get" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "synthetic" | "interrupt" | "update" | "move" | "wait" | "context"> & {
|
|
119
119
|
readonly hook: ModelHooks<SessionHooks>;
|
|
120
120
|
};
|
package/dist/promise/adapter.js
CHANGED
|
@@ -306,7 +306,6 @@ export function fromPromise(plugin) {
|
|
|
306
306
|
list: adaptApiMethod(PermissionEndpoints["session.permission.list"], host.permission.list),
|
|
307
307
|
get: adaptApiMethod(PermissionEndpoints["session.permission.get"], host.permission.get),
|
|
308
308
|
reply: adaptApiMethod(PermissionEndpoints["session.permission.reply"], host.permission.reply),
|
|
309
|
-
rules: adaptApiMethod(PermissionEndpoints["session.permission.rules"], host.permission.rules),
|
|
310
309
|
},
|
|
311
310
|
plugin: {
|
|
312
311
|
list: adaptApiMethod(PluginEndpoints["plugin.list"], host.plugin.list),
|
|
@@ -423,7 +422,7 @@ export function fromPromise(plugin) {
|
|
|
423
422
|
command: adaptApiMethod(SessionEndpoints["session.command"], host.session.command),
|
|
424
423
|
synthetic: adaptApiMethod(SessionEndpoints["session.synthetic"], host.session.synthetic),
|
|
425
424
|
interrupt: adaptApiMethod(SessionEndpoints["session.interrupt"], host.session.interrupt),
|
|
426
|
-
|
|
425
|
+
update: adaptApiMethod(SessionEndpoints["session.update"], host.session.update),
|
|
427
426
|
move: adaptApiMethod(SessionEndpoints["session.move"], host.session.move),
|
|
428
427
|
wait: adaptApiMethod(SessionEndpoints["session.wait"], host.session.wait),
|
|
429
428
|
context: adaptApiMethod(SessionEndpoints["session.context"], host.session.context),
|
|
@@ -16,6 +16,6 @@ export interface PermissionEvaluation {
|
|
|
16
16
|
export interface PermissionHooks {
|
|
17
17
|
readonly evaluate: PermissionEvaluation;
|
|
18
18
|
}
|
|
19
|
-
export type PermissionDomain = Pick<PermissionApi, "list" | "get" | "reply"
|
|
19
|
+
export type PermissionDomain = Pick<PermissionApi, "list" | "get" | "reply"> & {
|
|
20
20
|
readonly hook: Hooks<PermissionHooks>;
|
|
21
21
|
};
|
|
@@ -115,6 +115,6 @@ export interface SessionHooks {
|
|
|
115
115
|
readonly "experimental.ws.handshake": SessionWebSocketHandshake;
|
|
116
116
|
readonly retry: SessionRetry;
|
|
117
117
|
}
|
|
118
|
-
export type SessionDomain = Pick<SessionApi, "create" | "get" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "synthetic" | "interrupt" | "
|
|
118
|
+
export type SessionDomain = Pick<SessionApi, "create" | "get" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "synthetic" | "interrupt" | "update" | "move" | "wait" | "context"> & {
|
|
119
119
|
readonly hook: ModelHooks<SessionHooks>;
|
|
120
120
|
};
|
package/dist/tui/context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentInfo, CommandInfo,
|
|
1
|
+
import type { AgentInfo, CommandInfo, SessionFormCancelInput, FormInfo, SessionFormReplyInput, IntegrationInfo, LocationRef, McpResource, McpServer, ModelInfo, OpenCodeClient, OpenCodeEvent, PermissionSavedInfo, PermissionRequest, Project, ProviderInfo, ReferenceInfo, SessionInfo, SessionMessageInfo, SessionInboxInfo, ShellInfo, SkillInfo, VcsInfo } from "@opencode/client";
|
|
2
2
|
import type { ResolvedTheme } from "@opencode/theme/tui";
|
|
3
3
|
import type { CliRenderer, KeyEvent, MarkdownCodeBlockRenderer, Renderable } from "@opentui/core";
|
|
4
4
|
import type { JSX } from "@opentui/solid";
|
|
@@ -66,8 +66,8 @@ export interface Data {
|
|
|
66
66
|
}> | undefined;
|
|
67
67
|
sync(sessionID: string, location?: LocationRef): Promise<void>;
|
|
68
68
|
invalidate(sessionID: string, location?: LocationRef): void;
|
|
69
|
-
reply(input:
|
|
70
|
-
cancel(input:
|
|
69
|
+
reply(input: SessionFormReplyInput, location?: LocationRef): Promise<void>;
|
|
70
|
+
cancel(input: SessionFormCancelInput, location?: LocationRef): Promise<void>;
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
readonly project: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/plugin",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-19657",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@ai-sdk/provider": "3.0.8",
|
|
46
|
-
"@opencode/ai": "0.0.0-dev-
|
|
47
|
-
"@opencode/client": "0.0.0-dev-
|
|
48
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
49
|
-
"@opencode/schema": "0.0.0-dev-
|
|
50
|
-
"@opencode/util": "0.0.0-dev-
|
|
46
|
+
"@opencode/ai": "0.0.0-dev-19657",
|
|
47
|
+
"@opencode/client": "0.0.0-dev-19657",
|
|
48
|
+
"@opencode/protocol": "0.0.0-dev-19657",
|
|
49
|
+
"@opencode/schema": "0.0.0-dev-19657",
|
|
50
|
+
"@opencode/util": "0.0.0-dev-19657",
|
|
51
51
|
"@standard-schema/spec": "1.1.0",
|
|
52
52
|
"effect": "4.0.0-rc.112",
|
|
53
53
|
"zod": "4.1.8"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@opencode/theme": "0.0.0-dev-
|
|
56
|
+
"@opencode/theme": "0.0.0-dev-19657",
|
|
57
57
|
"@opentui/core": ">=0.5.10",
|
|
58
58
|
"@opentui/solid": ">=0.5.10",
|
|
59
59
|
"solid-js": ">=1.9.0"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@opencode/theme": "0.0.0-dev-
|
|
76
|
+
"@opencode/theme": "0.0.0-dev-19657",
|
|
77
77
|
"@opentui/core": "0.5.10",
|
|
78
78
|
"@opentui/solid": "0.5.10",
|
|
79
79
|
"@tsconfig/bun": "1.0.9",
|