@happycastle/oh-my-openclaw 0.20.0 → 0.20.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.
|
@@ -34,7 +34,7 @@ const DelegateParamsSchema = Type.Object({
|
|
|
34
34
|
skills: Type.Optional(Type.Array(Type.String(), { description: 'Skill names to load' })),
|
|
35
35
|
background: Type.Optional(Type.Boolean({ description: 'Run in background (default: false)', default: false })),
|
|
36
36
|
});
|
|
37
|
-
function
|
|
37
|
+
function getRecommendedModelForCategory(category, api) {
|
|
38
38
|
const config = getConfig(api);
|
|
39
39
|
const override = config.model_routing?.[category];
|
|
40
40
|
if (override?.model) {
|
|
@@ -59,7 +59,7 @@ export function registerDelegateTool(api) {
|
|
|
59
59
|
return toolError(`Invalid category: ${params.category}. Valid: ${validCategories.join(', ')}`);
|
|
60
60
|
}
|
|
61
61
|
const category = params.category;
|
|
62
|
-
const { model, alternatives } =
|
|
62
|
+
const { model, alternatives } = getRecommendedModelForCategory(category, api);
|
|
63
63
|
const agentId = params.agent_id || DEFAULT_CATEGORY_AGENTS[category];
|
|
64
64
|
api.logger.info(`${LOG_PREFIX} Delegating task:`, { category, model, agentId });
|
|
65
65
|
const instruction = [
|
|
@@ -68,12 +68,12 @@ export function registerDelegateTool(api) {
|
|
|
68
68
|
'⚡ NOW CALL sessions_spawn with these parameters:',
|
|
69
69
|
` task: "${params.task_description}"`,
|
|
70
70
|
` mode: "run"`,
|
|
71
|
-
` model: "${model}"`,
|
|
72
71
|
` agentId: "${agentId}"`,
|
|
73
|
-
|
|
74
|
-
alternatives?.length ? `
|
|
72
|
+
` # recommended model (do NOT pass to sessions_spawn): ${model}`,
|
|
73
|
+
alternatives?.length ? ` Recommended fallback models (informational only): ${alternatives.join(', ')}` : '',
|
|
75
74
|
params.background ? ' (background execution — results will arrive via push notification)' : '',
|
|
76
75
|
'',
|
|
76
|
+
'Do NOT set sessions_spawn model unless explicitly asked by user.',
|
|
77
77
|
'Do NOT just return this metadata. Actually call sessions_spawn NOW.',
|
|
78
78
|
'',
|
|
79
79
|
'⚠️ AFTER the subagent completes:',
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "oh-my-openclaw",
|
|
3
3
|
"name": "Oh-My-OpenClaw",
|
|
4
4
|
"description": "Multi-agent orchestration plugin — 11 agents, category-based model routing, todo enforcer, ralph loop, agent setup CLI, and custom tools",
|
|
5
|
-
"version": "0.20.
|
|
5
|
+
"version": "0.20.1",
|
|
6
6
|
"skills": [
|
|
7
7
|
"skills"
|
|
8
8
|
],
|
package/package.json
CHANGED