@opencode/plugin 2.3.0 → 2.3.2

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.
@@ -34,8 +34,8 @@ export interface Context {
34
34
  readonly event: EventDomain;
35
35
  readonly experimental: {
36
36
  readonly terminal: Pick<ExperimentalApi<unknown>["persistentPty"], "read">;
37
- /** Stateless generation with a model and a prompt: no session, history or tools. */
38
- readonly generate: ExperimentalGenerateApi<unknown>;
37
+ /** Stateless generation with a model and a prompt: no session, history or tools. Video jobs are server-only for now. */
38
+ readonly generate: Omit<ExperimentalGenerateApi<unknown>, "video">;
39
39
  readonly artifact: ExperimentalArtifactDomain;
40
40
  };
41
41
  readonly integration: IntegrationDomain;
@@ -152,6 +152,10 @@ export interface SessionRetry {
152
152
  * the Session that owns the job: the idle Session itself, or a descendant such as a subagent child.
153
153
  */
154
154
  export type SessionIdleBackground = {
155
+ readonly kind: "codemode";
156
+ readonly sessionID: Session.ID;
157
+ readonly jobID: string;
158
+ } | {
155
159
  readonly kind: "shell";
156
160
  readonly sessionID: Session.ID;
157
161
  readonly shellID: string;
@@ -34,8 +34,8 @@ export interface Context {
34
34
  readonly event: EventDomain;
35
35
  readonly experimental: {
36
36
  readonly terminal: Pick<OpenCodeClient["experimental"]["persistentPty"], "read">;
37
- /** Stateless generation with a model and a prompt: no session, history or tools. */
38
- readonly generate: ExperimentalGenerateApi;
37
+ /** Stateless generation with a model and a prompt: no session, history or tools. Video jobs are server-only for now. */
38
+ readonly generate: Omit<ExperimentalGenerateApi, "video">;
39
39
  readonly artifact: ExperimentalArtifactDomain;
40
40
  };
41
41
  readonly integration: IntegrationDomain;
@@ -152,6 +152,10 @@ export interface SessionRetry {
152
152
  * the Session that owns the job: the idle Session itself, or a descendant such as a subagent child.
153
153
  */
154
154
  export type SessionIdleBackground = {
155
+ readonly kind: "codemode";
156
+ readonly sessionID: Session.ID;
157
+ readonly jobID: string;
158
+ } | {
155
159
  readonly kind: "shell";
156
160
  readonly sessionID: Session.ID;
157
161
  readonly shellID: string;
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": "2.3.0",
4
+ "version": "2.3.2",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -78,15 +78,15 @@
78
78
  ],
79
79
  "dependencies": {
80
80
  "@ai-sdk/provider": "3.0.8",
81
- "@opencode/ai": "2.3.0",
82
- "@opencode/client": "2.3.0",
83
- "@opencode/protocol": "2.3.0",
84
- "@opencode/schema": "2.3.0",
85
- "@opencode/util": "2.3.0",
81
+ "@opencode/ai": "2.3.2",
82
+ "@opencode/client": "2.3.2",
83
+ "@opencode/protocol": "2.3.2",
84
+ "@opencode/schema": "2.3.2",
85
+ "@opencode/util": "2.3.2",
86
86
  "effect": "4.1.0"
87
87
  },
88
88
  "peerDependencies": {
89
- "@opencode/theme": "2.3.0",
89
+ "@opencode/theme": "2.3.2",
90
90
  "@opentui/core": ">=0.8.4",
91
91
  "@opentui/solid": ">=0.8.4",
92
92
  "electron": "*",
@@ -118,7 +118,7 @@
118
118
  }
119
119
  },
120
120
  "devDependencies": {
121
- "@opencode/theme": "2.3.0",
121
+ "@opencode/theme": "2.3.2",
122
122
  "@opentui/core": "0.8.4",
123
123
  "@opentui/solid": "0.8.4",
124
124
  "@tsconfig/bun": "1.0.9",