@dougbots/avenor-opencode 0.7.1 → 0.8.0
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 +4 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -583,14 +583,16 @@ const AvenorPlugin = async (ctx) => {
|
|
|
583
583
|
run_id: tool.schema.string().describe("Run ID with the pending permission"),
|
|
584
584
|
option_id: tool.schema.string().describe("allow_once | allow_always | deny, or option_id from pending_permission.options"),
|
|
585
585
|
request_id: tool.schema.string().optional().describe("Permission request ID (auto-discovered if omitted)"),
|
|
586
|
-
supervisor_id: tool.schema.string().optional().describe("Reuse an existing supervisor by socket path")
|
|
586
|
+
supervisor_id: tool.schema.string().optional().describe("Reuse an existing supervisor by socket path"),
|
|
587
|
+
message: tool.schema.string().optional().describe("Optional write-in response text. Required only when the selected option declares requiresMessage: true.")
|
|
587
588
|
},
|
|
588
589
|
async execute(args, _context) {
|
|
589
590
|
const result = await answerPermissionTool({
|
|
590
591
|
runId: args.run_id,
|
|
591
592
|
optionId: args.option_id,
|
|
592
593
|
requestId: args.request_id,
|
|
593
|
-
supervisorId: args.supervisor_id
|
|
594
|
+
supervisorId: args.supervisor_id,
|
|
595
|
+
message: args.message
|
|
594
596
|
});
|
|
595
597
|
return JSON.stringify(result, null, 2);
|
|
596
598
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dougbots/avenor-opencode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dev": "tsdown --watch"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@dougbots/avenor-core": "^0.
|
|
30
|
+
"@dougbots/avenor-core": "^0.8.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@opencode-ai/plugin": "1.15.3"
|