@opencode/plugin 2.0.20 → 2.0.22

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.
@@ -140,6 +140,6 @@ export interface SessionHooks {
140
140
  readonly "experimental.ws.receive": SessionWebSocketReceive;
141
141
  readonly retry: SessionRetry;
142
142
  }
143
- export type SessionDomain = Pick<SessionApi<unknown>, "create" | "get" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "synthetic" | "interrupt" | "update" | "move" | "wait" | "context"> & {
143
+ export type SessionDomain = Pick<SessionApi<unknown>, "create" | "get" | "remove" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "compact" | "synthetic" | "interrupt" | "update" | "move" | "wait" | "context"> & {
144
144
  readonly hook: ModelHooks<SessionHooks>;
145
145
  };
@@ -419,11 +419,13 @@ export function fromPromise(plugin) {
419
419
  hook: (name, callback, options) => register(host.session.hook(name, (event) => Effect.promise(() => Promise.resolve(callback(event))), options)),
420
420
  create: adaptApiMethod(SessionEndpoints["session.create"], host.session.create),
421
421
  get: adaptApiMethod(SessionEndpoints["session.get"], host.session.get),
422
+ remove: adaptApiMethod(SessionEndpoints["session.remove"], host.session.remove),
422
423
  switchAgent: adaptApiMethod(SessionEndpoints["session.switchAgent"], host.session.switchAgent),
423
424
  switchModel: adaptApiMethod(SessionEndpoints["session.switchModel"], host.session.switchModel),
424
425
  prompt: adaptApiMethod(SessionEndpoints["session.prompt"], host.session.prompt),
425
426
  generate: adaptApiMethod(SessionEndpoints["session.generate"], host.session.generate),
426
427
  command: adaptApiMethod(SessionEndpoints["session.command"], host.session.command),
428
+ compact: adaptApiMethod(SessionEndpoints["session.compact"], host.session.compact),
427
429
  synthetic: adaptApiMethod(SessionEndpoints["session.synthetic"], host.session.synthetic),
428
430
  interrupt: adaptApiMethod(SessionEndpoints["session.interrupt"], host.session.interrupt),
429
431
  update: adaptApiMethod(SessionEndpoints["session.update"], host.session.update),
@@ -140,6 +140,6 @@ export interface SessionHooks {
140
140
  readonly "experimental.ws.receive": SessionWebSocketReceive;
141
141
  readonly retry: SessionRetry;
142
142
  }
143
- export type SessionDomain = Pick<SessionApi, "create" | "get" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "synthetic" | "interrupt" | "update" | "move" | "wait" | "context"> & {
143
+ export type SessionDomain = Pick<SessionApi, "create" | "get" | "remove" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "compact" | "synthetic" | "interrupt" | "update" | "move" | "wait" | "context"> & {
144
144
  readonly hook: ModelHooks<SessionHooks>;
145
145
  };
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.0.20",
4
+ "version": "2.0.22",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -43,19 +43,19 @@
43
43
  ],
44
44
  "dependencies": {
45
45
  "@ai-sdk/provider": "3.0.8",
46
- "@opencode/ai": "2.0.20",
47
- "@opencode/client": "2.0.20",
48
- "@opencode/protocol": "2.0.20",
49
- "@opencode/schema": "2.0.20",
50
- "@opencode/util": "2.0.20",
46
+ "@opencode/ai": "2.0.22",
47
+ "@opencode/client": "2.0.22",
48
+ "@opencode/protocol": "2.0.22",
49
+ "@opencode/schema": "2.0.22",
50
+ "@opencode/util": "2.0.22",
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": "2.0.20",
57
- "@opentui/core": ">=0.5.12",
58
- "@opentui/solid": ">=0.5.12",
56
+ "@opencode/theme": "2.0.22",
57
+ "@opentui/core": ">=0.5.14",
58
+ "@opentui/solid": ">=0.5.14",
59
59
  "solid-js": ">=1.9.0"
60
60
  },
61
61
  "peerDependenciesMeta": {
@@ -73,9 +73,9 @@
73
73
  }
74
74
  },
75
75
  "devDependencies": {
76
- "@opencode/theme": "2.0.20",
77
- "@opentui/core": "0.5.12",
78
- "@opentui/solid": "0.5.12",
76
+ "@opencode/theme": "2.0.22",
77
+ "@opentui/core": "0.5.14",
78
+ "@opentui/solid": "0.5.14",
79
79
  "@tsconfig/bun": "1.0.9",
80
80
  "@tsconfig/node22": "22.0.2",
81
81
  "@types/bun": "1.4.0",