opencode-agent-ghost-panel 0.1.8 → 0.1.9

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.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -149,8 +149,8 @@ export const agpStop = tool({
149
149
  }
150
150
  });
151
151
 
152
- // OpenCode 插件入口 - 必须是 async function
153
- export default async function(input) {
152
+ // OpenCode 插件入口 - 使用具名导出 (named export)
153
+ export const AgentGhostPanel = async (ctx) => {
154
154
  return {
155
155
  tool: {
156
156
  "agp-diff": agpDiff,
@@ -162,4 +162,4 @@ export default async function(input) {
162
162
  "agp-stop": agpStop
163
163
  }
164
164
  };
165
- }
165
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-agent-ghost-panel",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Agent Ghost Panel Plugin for OpenCode",
5
5
  "main": "index.js",
6
6
  "type": "module",