@opencode-ai/plugin 0.0.0-next-15555 → 0.0.0-next-15564

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.
@@ -3,7 +3,8 @@ import type { Renderable } from "@opentui/core";
3
3
  import type { JSX } from "@opentui/solid";
4
4
  interface LocationCollection<Value> {
5
5
  list(location?: LocationRef): Value[] | undefined;
6
- refresh(location?: LocationRef): Promise<void>;
6
+ sync(location?: LocationRef): Promise<void>;
7
+ invalidate(location?: LocationRef): void;
7
8
  }
8
9
  export interface Data {
9
10
  readonly on: <Type extends OpenCodeEvent["type"]>(type: Type, handler: (event: Extract<OpenCodeEvent, {
@@ -21,39 +22,47 @@ export interface Data {
21
22
  status(sessionID: string): "idle" | "running";
22
23
  readonly pending: {
23
24
  list(sessionID: string): SessionPendingInfo[];
24
- refresh(sessionID: string): Promise<void>;
25
+ sync(sessionID: string): Promise<void>;
26
+ invalidate(sessionID: string): void;
25
27
  };
26
- refresh(sessionID: string): Promise<void>;
28
+ sync(sessionID: string): Promise<void>;
29
+ invalidate(sessionID: string): void;
27
30
  readonly message: {
28
31
  list(sessionID: string): SessionMessageInfo[];
29
32
  get(sessionID: string, messageID: string): SessionMessageInfo | undefined;
30
- refresh(sessionID: string): Promise<void>;
33
+ sync(sessionID: string): Promise<void>;
34
+ invalidate(sessionID: string): void;
31
35
  };
32
36
  readonly permission: {
33
37
  list(sessionID: string): PermissionV2Request[] | undefined;
34
- refresh(sessionID: string): Promise<void>;
38
+ sync(sessionID: string): Promise<void>;
39
+ invalidate(sessionID: string): void;
35
40
  };
36
41
  readonly form: {
37
42
  list(sessionID: string, location?: LocationRef): Array<FormInfo & {
38
43
  readonly location?: LocationRef;
39
44
  }> | undefined;
40
- refresh(sessionID: string, location?: LocationRef): Promise<void>;
45
+ sync(sessionID: string, location?: LocationRef): Promise<void>;
46
+ invalidate(sessionID: string, location?: LocationRef): void;
41
47
  };
42
48
  };
43
49
  readonly project: {
44
50
  readonly permission: {
45
51
  list(projectID: string): PermissionSavedInfo[] | undefined;
46
- refresh(projectID: string): Promise<void>;
52
+ sync(projectID: string): Promise<void>;
53
+ invalidate(projectID: string): void;
47
54
  };
48
55
  };
49
56
  readonly shell: {
50
57
  list(location?: LocationRef): ShellInfo[];
51
58
  get(id: string): ShellInfo | undefined;
52
- refresh(location?: LocationRef): Promise<void>;
59
+ sync(location?: LocationRef): Promise<void>;
60
+ invalidate(location?: LocationRef): void;
53
61
  };
54
62
  readonly location: {
55
63
  default(): LocationRef;
56
- refresh(location?: LocationRef): Promise<void>;
64
+ sync(location?: LocationRef): Promise<void>;
65
+ invalidate(location?: LocationRef): void;
57
66
  readonly agent: LocationCollection<AgentInfo>;
58
67
  readonly command: LocationCollection<CommandInfo>;
59
68
  readonly integration: LocationCollection<IntegrationInfo>;
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-15555",
4
+ "version": "0.0.0-next-15564",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -52,9 +52,9 @@
52
52
  ],
53
53
  "dependencies": {
54
54
  "@ai-sdk/provider": "3.0.8",
55
- "@opencode-ai/client": "0.0.0-next-15555",
56
- "@opencode-ai/schema": "0.0.0-next-15555",
57
- "@opencode-ai/sdk": "0.0.0-next-15555",
55
+ "@opencode-ai/client": "0.0.0-next-15564",
56
+ "@opencode-ai/schema": "0.0.0-next-15564",
57
+ "@opencode-ai/sdk": "0.0.0-next-15564",
58
58
  "effect": "4.0.0-beta.83",
59
59
  "zod": "4.1.8"
60
60
  },