opencode-queue 0.11.0 → 0.11.1

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.
Files changed (2) hide show
  1. package/index.ts +2 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -139,7 +139,7 @@ const plan = (event: unknown): event is Ask => {
139
139
  return question?.header === "Build Agent" && question.question.includes("switch to the build agent")
140
140
  }
141
141
 
142
- export const QueuePlugin: Plugin = async ({ client }) => {
142
+ export const QueuePlugin: Plugin = async ({ client, directory }) => {
143
143
  const sessions = new Map<string, State>()
144
144
  const hidden = new Set<string>()
145
145
  const post = (client as unknown as { _client?: { post?: Post } })._client?.post
@@ -154,7 +154,7 @@ export const QueuePlugin: Plugin = async ({ client }) => {
154
154
  }
155
155
 
156
156
  const toast = (message: string, variant: "info" | "error", duration = 2500) =>
157
- client.tui.showToast({ body: { message, variant, duration } }).catch(() => undefined)
157
+ client.tui.showToast({ body: { message, variant, duration }, query: { directory } }).catch(() => undefined)
158
158
 
159
159
  const stop = async (message: string, variant: "info" | "error" = "info", duration = 5000): Promise<never> => {
160
160
  await toast(message, variant, duration)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "opencode-queue",
4
- "version": "0.11.0",
4
+ "version": "0.11.1",
5
5
  "type": "module",
6
6
  "description": "Queue OpenCode prompts and slash commands until the agent is idle",
7
7
  "main": "./index.ts",