@opencode/plugin 0.0.0-dev-21906 → 0.0.0-dev-21908

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.
@@ -141,6 +141,6 @@ export interface SessionHooks {
141
141
  readonly "experimental.ws.receive": SessionWebSocketReceive;
142
142
  readonly retry: SessionRetry;
143
143
  }
144
- export type SessionDomain = Pick<SessionApi<unknown>, "list" | "create" | "get" | "remove" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "compact" | "synthetic" | "interrupt" | "update" | "move" | "wait" | "context"> & {
144
+ export type SessionDomain = Pick<SessionApi<unknown>, "list" | "create" | "get" | "remove" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "compact" | "synthetic" | "interrupt" | "update" | "move" | "wait" | "context" | "instructions"> & {
145
145
  readonly hook: ModelHooks<SessionHooks>;
146
146
  };
@@ -18,6 +18,7 @@ export interface VcsDiffInput extends VcsScope {
18
18
  readonly base?: string;
19
19
  readonly context: number;
20
20
  readonly maxOutputBytes: number;
21
+ readonly untracked?: Vcs.Untracked;
21
22
  }
22
23
  export interface VcsDefinition {
23
24
  readonly id: string;
@@ -443,6 +443,13 @@ export function fromPromise(plugin) {
443
443
  move: adaptApiMethod(SessionEndpoints["session.move"], host.session.move),
444
444
  wait: adaptApiMethod(SessionEndpoints["session.wait"], host.session.wait),
445
445
  context: adaptApiMethod(SessionEndpoints["session.context"], host.session.context),
446
+ instructions: {
447
+ entry: {
448
+ list: adaptApiMethod(SessionEndpoints["session.instructions.entry.list"], host.session.instructions.entry.list),
449
+ put: adaptApiMethod(SessionEndpoints["session.instructions.entry.put"], host.session.instructions.entry.put),
450
+ remove: adaptApiMethod(SessionEndpoints["session.instructions.entry.remove"], host.session.instructions.entry.remove),
451
+ },
452
+ },
446
453
  },
447
454
  shell: {
448
455
  hook: (name, callback) => register(host.shell.hook(name, (event) => Effect.promise(() => Promise.resolve(callback(event))))),
@@ -141,6 +141,6 @@ export interface SessionHooks {
141
141
  readonly "experimental.ws.receive": SessionWebSocketReceive;
142
142
  readonly retry: SessionRetry;
143
143
  }
144
- export type SessionDomain = Pick<SessionApi, "list" | "create" | "get" | "remove" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "compact" | "synthetic" | "interrupt" | "update" | "move" | "wait" | "context"> & {
144
+ export type SessionDomain = Pick<SessionApi, "list" | "create" | "get" | "remove" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "compact" | "synthetic" | "interrupt" | "update" | "move" | "wait" | "context" | "instructions"> & {
145
145
  readonly hook: ModelHooks<SessionHooks>;
146
146
  };
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-21906",
4
+ "version": "0.0.0-dev-21908",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -48,15 +48,15 @@
48
48
  ],
49
49
  "dependencies": {
50
50
  "@ai-sdk/provider": "3.0.8",
51
- "@opencode/ai": "0.0.0-dev-21906",
52
- "@opencode/client": "0.0.0-dev-21906",
53
- "@opencode/protocol": "0.0.0-dev-21906",
54
- "@opencode/schema": "0.0.0-dev-21906",
55
- "@opencode/util": "0.0.0-dev-21906",
51
+ "@opencode/ai": "0.0.0-dev-21908",
52
+ "@opencode/client": "0.0.0-dev-21908",
53
+ "@opencode/protocol": "0.0.0-dev-21908",
54
+ "@opencode/schema": "0.0.0-dev-21908",
55
+ "@opencode/util": "0.0.0-dev-21908",
56
56
  "effect": "4.0.1"
57
57
  },
58
58
  "peerDependencies": {
59
- "@opencode/theme": "0.0.0-dev-21906",
59
+ "@opencode/theme": "0.0.0-dev-21908",
60
60
  "@opentui/core": ">=0.6.8",
61
61
  "@opentui/solid": ">=0.6.8",
62
62
  "solid-js": ">=1.9.0"
@@ -76,7 +76,7 @@
76
76
  }
77
77
  },
78
78
  "devDependencies": {
79
- "@opencode/theme": "0.0.0-dev-21906",
79
+ "@opencode/theme": "0.0.0-dev-21908",
80
80
  "@opentui/core": "0.6.8",
81
81
  "@opentui/solid": "0.6.8",
82
82
  "@tsconfig/bun": "1.0.9",