oh-my-claudecode-opencode 0.5.3 → 0.5.4
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/README.md
CHANGED
|
@@ -192,14 +192,14 @@ background_cancel(all=true)
|
|
|
192
192
|
|
|
193
193
|
```typescript
|
|
194
194
|
// Synchronous call
|
|
195
|
-
|
|
195
|
+
call_omco_agent(
|
|
196
196
|
subagent_type="oracle",
|
|
197
197
|
prompt="Review this architecture decision...",
|
|
198
198
|
run_in_background=false
|
|
199
199
|
)
|
|
200
200
|
|
|
201
201
|
// Async call
|
|
202
|
-
|
|
202
|
+
call_omco_agent(
|
|
203
203
|
subagent_type="explore",
|
|
204
204
|
prompt="Find all React components",
|
|
205
205
|
run_in_background=true
|
package/dist/index.js
CHANGED
|
@@ -34200,8 +34200,8 @@ Use \`background_output\` to get results. Prompts MUST be in English.`,
|
|
|
34200
34200
|
};
|
|
34201
34201
|
}
|
|
34202
34202
|
|
|
34203
|
-
// src/tools/call-
|
|
34204
|
-
function
|
|
34203
|
+
// src/tools/call-omco-agent.ts
|
|
34204
|
+
function createCallOmcoAgent(ctx, manager) {
|
|
34205
34205
|
const agentNames = listAgentNames();
|
|
34206
34206
|
const agentList = agentNames.map((name) => {
|
|
34207
34207
|
const agent = getAgent(name);
|
|
@@ -36976,7 +36976,7 @@ function createSystemPromptInjector(_ctx) {
|
|
|
36976
36976
|
}
|
|
36977
36977
|
|
|
36978
36978
|
// src/hooks/remember-tag-processor.ts
|
|
36979
|
-
var DEFAULT_TOOLS = ["Task", "task", "
|
|
36979
|
+
var DEFAULT_TOOLS = ["Task", "task", "call_omco_agent"];
|
|
36980
36980
|
function createRememberTagProcessor(ctx, options = {}) {
|
|
36981
36981
|
const taskToolOnly = options.taskToolOnly ?? true;
|
|
36982
36982
|
const toolNames = options.toolNames ?? DEFAULT_TOOLS;
|
|
@@ -38235,7 +38235,7 @@ var OmoOmcsPlugin = async (ctx) => {
|
|
|
38235
38235
|
console.log("[omco] Config loaded:", pluginConfig);
|
|
38236
38236
|
const backgroundManager = createBackgroundManager(ctx, pluginConfig.background_task);
|
|
38237
38237
|
const backgroundTools = createBackgroundTools(backgroundManager, ctx.client);
|
|
38238
|
-
const
|
|
38238
|
+
const callOmcoAgent = createCallOmcoAgent(ctx, backgroundManager);
|
|
38239
38239
|
const systemPromptInjector = createSystemPromptInjector(ctx);
|
|
38240
38240
|
const skillInjector = createSkillInjector(ctx);
|
|
38241
38241
|
const ralphLoop = createRalphLoopHook(ctx, {
|
|
@@ -38358,7 +38358,7 @@ var OmoOmcsPlugin = async (ctx) => {
|
|
|
38358
38358
|
},
|
|
38359
38359
|
tool: {
|
|
38360
38360
|
...backgroundTools,
|
|
38361
|
-
|
|
38361
|
+
call_omco_agent: callOmcoAgent
|
|
38362
38362
|
}
|
|
38363
38363
|
};
|
|
38364
38364
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type PluginInput, type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
2
|
import type { BackgroundManager } from "./background-manager";
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function createCallOmcoAgent(ctx: PluginInput, manager: BackgroundManager): ToolDefinition;
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { createBackgroundManager, type BackgroundManager, type BackgroundTask } from "./background-manager";
|
|
2
2
|
export { createBackgroundTools } from "./background-tools";
|
|
3
|
-
export {
|
|
3
|
+
export { createCallOmcoAgent } from "./call-omco-agent";
|
|
4
4
|
export { builtinTools } from "./builtin";
|