ofiere-openclaw-plugin 4.27.0 → 4.27.2

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/package.json +1 -1
  2. package/src/tools.ts +20 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ofiere-openclaw-plugin",
3
- "version": "4.27.0",
3
+ "version": "4.27.2",
4
4
  "type": "module",
5
5
  "description": "OpenClaw plugin for Ofiere PM - 14 meta-tools covering tasks, agents, projects, scheduling, knowledge, workflows, notifications, memory, prompts, constellation, space file management, execution plan builder, SOP management, and agent brain (memory + self-improvement)",
6
6
  "keywords": ["openclaw", "ofiere", "project-management", "agents", "plugin"],
package/src/tools.ts CHANGED
@@ -5120,11 +5120,7 @@ function registerBrainOps(
5120
5120
  properties: {
5121
5121
  action: {
5122
5122
  type: "string",
5123
- enum: [
5124
- "save_memory", "recall", "delete_memory",
5125
- "log_learning", "list_learnings", "promote_learning", "resolve_learning",
5126
- "get_brain_status", "configure_brain",
5127
- ],
5123
+ description: "The operation to perform: save_memory, recall, delete_memory, log_learning, list_learnings, promote_learning, resolve_learning, get_brain_status, configure_brain",
5128
5124
  },
5129
5125
  // Memory params
5130
5126
  content: { type: "string", description: "Memory content or search query" },
@@ -5140,7 +5136,7 @@ function registerBrainOps(
5140
5136
  detail: { type: "string", description: "Full context of the learning" },
5141
5137
  resolution: { type: "string", description: "How it was resolved" },
5142
5138
  learning_id: { type: "string", description: "Learning ID for promote/resolve" },
5143
- status: { type: "string", enum: ["resolved", "wont_fix"] },
5139
+ status: { type: "string", enum: ["pending", "resolved", "wont_fix", "promoted"] },
5144
5140
  promoted_to: { type: "string", enum: ["soul", "agents", "tools", "sop", "prompt_chunk"] },
5145
5141
  source_conversation_id: { type: "string" },
5146
5142
  source_task_id: { type: "string" },
@@ -5161,7 +5157,12 @@ function registerBrainOps(
5161
5157
  switch (action) {
5162
5158
  // ── Memory: Save ──
5163
5159
  case "save_memory": {
5164
- if (!params.content || !params.tier) return err("Missing required: content, tier");
5160
+ {
5161
+ const missing: string[] = [];
5162
+ if (!params.content) missing.push("content");
5163
+ if (!params.tier) missing.push("tier");
5164
+ if (missing.length > 0) return err(`Missing required: ${missing.join(", ")}`);
5165
+ }
5165
5166
  const agentId = await resolveAgent(params.agent_id as string);
5166
5167
  if (!agentId) return err("Could not resolve agent_id");
5167
5168
 
@@ -5235,7 +5236,12 @@ function registerBrainOps(
5235
5236
 
5236
5237
  // ── Learning: Log ──
5237
5238
  case "log_learning": {
5238
- if (!params.title || !params.category) return err("Missing required: title, category");
5239
+ {
5240
+ const missing: string[] = [];
5241
+ if (!params.title) missing.push("title");
5242
+ if (!params.category) missing.push("category");
5243
+ if (missing.length > 0) return err(`Missing required: ${missing.join(", ")}`);
5244
+ }
5239
5245
  const agentId = await resolveAgent(params.agent_id as string);
5240
5246
  if (!agentId) return err("Could not resolve agent_id");
5241
5247
 
@@ -5276,7 +5282,12 @@ function registerBrainOps(
5276
5282
 
5277
5283
  // ── Learning: Promote ──
5278
5284
  case "promote_learning": {
5279
- if (!params.learning_id || !params.promoted_to) return err("Missing required: learning_id, promoted_to");
5285
+ {
5286
+ const missing: string[] = [];
5287
+ if (!params.learning_id) missing.push("learning_id");
5288
+ if (!params.promoted_to) missing.push("promoted_to");
5289
+ if (missing.length > 0) return err(`Missing required: ${missing.join(", ")}`);
5290
+ }
5280
5291
  const { data, error } = await supabase.from("agent_learnings")
5281
5292
  .update({
5282
5293
  status: "promoted",