ofiere-openclaw-plugin 4.50.0 → 4.50.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/src/tools.js CHANGED
@@ -6545,15 +6545,23 @@ function registerBrainExtractionHook(api, supabase, userId, fallbackAgentId) {
6545
6545
  const reportBody = taskId
6546
6546
  ? `Staff ${staff.name}${staff.role ? ` (${staff.role})` : ""} reported on task ${taskId}:\n\n${excerpt}`
6547
6547
  : `Staff ${staff.name}${staff.role ? ` (${staff.role})` : ""} reported:\n\n${excerpt}`;
6548
- await supabase.from("agent_memories").insert({
6548
+ // BUG 13 fix (cycle 10 pivot): tier was 'L4_episodic' which is
6549
+ // NOT in the agent_memories.tier CHECK enum (L1_focus, L2_episode,
6550
+ // L3_pattern, L4_rule, L5_persona) → insert silently failed.
6551
+ // Use L2_episode (the actual "episodic memory" tier). source
6552
+ // 'staff_report' added to enum via migration in same cycle.
6553
+ const { error: memErr } = await supabase.from("agent_memories").insert({
6549
6554
  user_id: userId,
6550
6555
  agent_id: staff.chief_agent_id,
6551
- tier: "L4_episodic",
6556
+ tier: "L2_episode",
6552
6557
  content: reportBody,
6553
6558
  source: "staff_report",
6554
6559
  importance: 5,
6555
6560
  context_key: taskId ? `staff_report:${staffDispatchSubagentId}:${taskId}` : `staff_report:${staffDispatchSubagentId}`,
6556
6561
  });
6562
+ if (memErr) {
6563
+ api.logger.warn?.(`[ofiere-staff-report] memory insert failed: ${memErr.message}`);
6564
+ }
6557
6565
  api.logger.info?.(`[ofiere-staff-report] memory written for chief ${staff.chief_agent_id} from staff ${staff.name}`);
6558
6566
  // BUG 9 fix (BUGSHOOT-2): mark task_dispatch_log row complete
6559
6567
  // with the assistant's response preview. Without this the log
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ofiere-openclaw-plugin",
3
- "version": "4.50.0",
3
+ "version": "4.50.1",
4
4
  "type": "module",
5
5
  "description": "OpenClaw plugin for Ofiere PM - 16 meta-tools covering tasks, agents, projects, scheduling, knowledge, workflows, notifications, memory, prompts, constellation, space file management, execution plan builder, SOP management, agent brain, talent management, and corporate frameworks",
6
6
  "keywords": ["openclaw", "ofiere", "project-management", "agents", "plugin"],
package/src/tools.ts CHANGED
@@ -6707,15 +6707,23 @@ function registerBrainExtractionHook(
6707
6707
  const reportBody = taskId
6708
6708
  ? `Staff ${staff.name}${staff.role ? ` (${staff.role})` : ""} reported on task ${taskId}:\n\n${excerpt}`
6709
6709
  : `Staff ${staff.name}${staff.role ? ` (${staff.role})` : ""} reported:\n\n${excerpt}`;
6710
- await supabase.from("agent_memories").insert({
6710
+ // BUG 13 fix (cycle 10 pivot): tier was 'L4_episodic' which is
6711
+ // NOT in the agent_memories.tier CHECK enum (L1_focus, L2_episode,
6712
+ // L3_pattern, L4_rule, L5_persona) → insert silently failed.
6713
+ // Use L2_episode (the actual "episodic memory" tier). source
6714
+ // 'staff_report' added to enum via migration in same cycle.
6715
+ const { error: memErr } = await supabase.from("agent_memories").insert({
6711
6716
  user_id: userId,
6712
6717
  agent_id: staff.chief_agent_id,
6713
- tier: "L4_episodic",
6718
+ tier: "L2_episode",
6714
6719
  content: reportBody,
6715
6720
  source: "staff_report",
6716
6721
  importance: 5,
6717
6722
  context_key: taskId ? `staff_report:${staffDispatchSubagentId}:${taskId}` : `staff_report:${staffDispatchSubagentId}`,
6718
6723
  });
6724
+ if (memErr) {
6725
+ api.logger.warn?.(`[ofiere-staff-report] memory insert failed: ${memErr.message}`);
6726
+ }
6719
6727
  api.logger.info?.(`[ofiere-staff-report] memory written for chief ${staff.chief_agent_id} from staff ${staff.name}`);
6720
6728
 
6721
6729
  // BUG 9 fix (BUGSHOOT-2): mark task_dispatch_log row complete