opencode-froggy 0.10.0 → 0.10.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 +1 -1
- package/dist/tools/agent-promote.js +9 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -198,7 +198,7 @@ const SmartfrogPlugin = async (ctx) => {
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
if (Object.keys(loadedAgents).length > 0) {
|
|
201
|
-
config.agent = { ...(config.agent ?? {})
|
|
201
|
+
config.agent = { ...loadedAgents, ...(config.agent ?? {}) };
|
|
202
202
|
}
|
|
203
203
|
if (Object.keys(commands).length > 0) {
|
|
204
204
|
config.command = { ...(config.command ?? {}), ...commands };
|
|
@@ -33,7 +33,15 @@ export function createAgentPromoteTool(client, pluginAgentNames) {
|
|
|
33
33
|
duration: 3000,
|
|
34
34
|
},
|
|
35
35
|
});
|
|
36
|
-
|
|
36
|
+
setTimeout(() => {
|
|
37
|
+
void client.instance.dispose().catch((error) => {
|
|
38
|
+
log("[agent-promote] Delayed dispose failed", {
|
|
39
|
+
name,
|
|
40
|
+
grade,
|
|
41
|
+
error: String(error),
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
}, 0);
|
|
37
45
|
return `Agent "${name}" changed to type "${grade}". Use Tab or <leader>a to select it.`;
|
|
38
46
|
},
|
|
39
47
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-froggy",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "OpenCode plugin with a hook layer (tool.before.*, session.idle...), agents (code-reviewer, doc-writer), and commands (/review-pr, /commit)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"viem": "^2.44.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@opencode-ai/plugin": "
|
|
46
|
+
"@opencode-ai/plugin": "^1.4.6",
|
|
47
47
|
"@types/bun": "latest",
|
|
48
48
|
"@types/js-yaml": "^4.0.9",
|
|
49
49
|
"@vitest/coverage-v8": "^4.0.17",
|