@dougbots/avenor-opencode 0.3.0 → 0.3.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/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -199,6 +199,7 @@ const AvenorPlugin = async (ctx) => {
199
199
  agent: z.string().describe("Agent name (required, no default)"),
200
200
  prompt: z.string().optional().describe("Prompt text"),
201
201
  prompt_file: z.string().optional().describe("Path to prompt file"),
202
+ dir: z.string().optional().describe("Working directory for the run (defaults to the session project directory)"),
202
203
  label: z.string().optional().describe("Human-readable label for the run"),
203
204
  timeout: z.string().optional().describe("Timeout duration (e.g. 3600s)"),
204
205
  model: z.string().optional().describe("Model override"),
@@ -214,7 +215,7 @@ const AvenorPlugin = async (ctx) => {
214
215
  prompt: args.prompt,
215
216
  promptFile: args.prompt_file,
216
217
  label: args.label,
217
- dir: context.directory,
218
+ dir: args.dir ?? context.directory,
218
219
  timeout: args.timeout,
219
220
  model: args.model,
220
221
  backend: args.backend,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dougbots/avenor-opencode",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",