@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.
- package/dist/index.js +2 -1
- 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,
|