@cleocode/cleo 2026.3.27 → 2026.3.28

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.
@@ -0,0 +1,25 @@
1
+ <cleo-brain-context>
2
+ # CLEO Brain — Recent Memory
3
+
4
+ - [D] 2026-03-02 Five-Wave Implementation Plan Created for Claude-Mem Replacement
5
+ - [D] 2026-02-25 4-Feature Architecture Plan for Session Briefing, Bug Tracking, Planning, and Ha
6
+ - [O] 2026-02-25 Session Engine Core Module Delegation Confirmed
7
+ - [O] 2026-02-25 Session Domain Handler Engine Dependencies
8
+ - [O] 2026-02-27 Created Agent Team "session-cleanup" for Waves 3-5
9
+ - [O] 2026-03-02 Mutate Gateway Architecture for State-Modifying Operations
10
+ - [O] 2026-02-25 4-Feature Architecture Plan for Session Briefing, Bug Tracking, Planning, and Ha
11
+ - [O] 2026-03-01 Examined Bootstrap Brain State Loading with Speed Tiers
12
+ - [O] 2026-02-27 ADR-009 Section 5 Documents BRAIN Capabilities by Domain
13
+ - [O] 2026-02-28 Created Task for Phase 4 Skill Logic and Subagent Tier Integration
14
+ - [O] 2026-02-28 Handoff and Debrief Implementation Architecture Revealed
15
+ - [O] 2026-03-02 Five-Wave Implementation Plan Created for Claude-Mem Replacement
16
+ - [O] 2026-02-28 Memory-Related Tasks Reveal Pending Consolidation Work
17
+ - [O] 2026-02-28 Session CLI Commands Expose Start, Stop, and Handoff Operations
18
+ - [O] 2026-02-27 claude-mem Observation Taxonomy and Mode-Based Configuration
19
+ - [O] 2026-02-28 Assigned Phase 4 Task to Third Parallel Implementation Agent
20
+ - [O] 2026-02-25 Wave 2-4 Engine Refactoring Tasks Reveal Increasing Complexity
21
+ - [O] 2026-03-01 Epic B Phase 1 Specifications: Complete brain.db Schema with 6 Tables and FTS5 S
22
+ - [O] 2026-03-02 CLEO-INJECTION v2.1.0 Minimal Template - 110 Lines Exceeds Test Constraint
23
+ - [O] 2026-02-27 Validation Index Barrel Exports - Re-export Layer
24
+ - [O] 2026-02-27 Drizzle Migration History - Seven Existing Migrations
25
+ </cleo-brain-context>
@@ -23,7 +23,7 @@
23
23
  "hooks": [
24
24
  {
25
25
  "type": "command",
26
- "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/brain-context.sh",
26
+ "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/brain-hook.sh session-init",
27
27
  "timeout": 8
28
28
  }
29
29
  ]
@@ -130,11 +130,45 @@ function handleSummarize(_data) {
130
130
  // Use default
131
131
  }
132
132
  cleoObserve(sessionInfo, '[hook] session-end');
133
+ // Refresh CLAUDE.md so next session gets up-to-date context
134
+ updateClaudeContext();
135
+ }
136
+
137
+ function updateClaudeContext() {
138
+ // Write recent brain observations to .claude-plugin/CLAUDE.md so Claude Code
139
+ // auto-loads them as context on every session/prompt.
140
+ try {
141
+ const raw = execFileSync(CLEO_BIN, ['memory', 'find', 'session task decision pattern', '--limit', '20', '--json'], {
142
+ timeout: 10000,
143
+ encoding: 'utf8',
144
+ cwd: process.env.CLEO_PROJECT_DIR || process.cwd(),
145
+ });
146
+ const parsed = JSON.parse(raw);
147
+ const hits = parsed?.result?.results || [];
148
+ if (hits.length === 0) return;
149
+
150
+ const lines = ['<cleo-brain-context>', '# CLEO Brain — Recent Memory\n'];
151
+ for (const h of hits) {
152
+ const icon = { observation: 'O', decision: 'D', pattern: 'P', learning: 'L' }[h.type] || 'O';
153
+ const date = (h.date || '').slice(0, 10);
154
+ const title = (h.title || '').slice(0, 90);
155
+ lines.push(`- [${icon}] ${date} ${title}`);
156
+ }
157
+ lines.push('</cleo-brain-context>');
158
+
159
+ // Write to plugin CLAUDE.md — path relative to worker script location
160
+ const pluginRoot = path.resolve(__dirname, '..', '..');
161
+ const claudeMdPath = path.join(pluginRoot, 'CLAUDE.md');
162
+ fs.writeFileSync(claudeMdPath, lines.join('\n') + '\n', 'utf8');
163
+ log(`Updated CLAUDE.md with ${hits.length} brain observations`);
164
+ } catch (err) {
165
+ log(`updateClaudeContext failed: ${err.message}`);
166
+ }
133
167
  }
134
168
 
135
169
  function handleSessionInit(_data) {
136
- log('Session init received (no-op).');
137
- // No-op for now — placeholder for future context injection
170
+ log('Session init updating brain context in CLAUDE.md...');
171
+ updateClaudeContext();
138
172
  }
139
173
 
140
174
  // --- HTTP Server ---
package/dist/cli/index.js CHANGED
@@ -44793,7 +44793,7 @@ import { execFileSync as execFileSync12 } from "node:child_process";
44793
44793
  // src/config/build-config.ts
44794
44794
  var BUILD_CONFIG = {
44795
44795
  "name": "@cleocode/cleo",
44796
- "version": "2026.3.27",
44796
+ "version": "2026.3.28",
44797
44797
  "description": "CLEO V2 - TypeScript task management CLI for AI coding agents",
44798
44798
  "repository": {
44799
44799
  "owner": "kryptobaseddev",
@@ -44802,7 +44802,7 @@ var BUILD_CONFIG = {
44802
44802
  "url": "https://github.com/kryptobaseddev/cleo.git",
44803
44803
  "issuesUrl": "https://github.com/kryptobaseddev/cleo/issues"
44804
44804
  },
44805
- "buildDate": "2026-03-09T06:31:53.689Z",
44805
+ "buildDate": "2026-03-09T06:38:32.092Z",
44806
44806
  "templates": {
44807
44807
  "issueTemplatesDir": "templates/issue-templates"
44808
44808
  }