chati-dev 4.1.3 → 4.1.5

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/bin/chati.js CHANGED
@@ -105,6 +105,16 @@ async function main() {
105
105
 
106
106
  console.log(` ${migrationResult.migrationsRun} migration(s) applied.`);
107
107
 
108
+ // 2.5. Sync framework files (copy new/updated agents, templates, hooks, etc.)
109
+ console.log(' Syncing framework files...');
110
+ try {
111
+ const { copyFrameworkFiles } = await import('../src/installer/core.js');
112
+ copyFrameworkFiles(join(targetDir, 'chati.dev'));
113
+ console.log(' Framework files synced.');
114
+ } catch (err) {
115
+ console.log(` Framework sync skipped: ${err.message}`);
116
+ }
117
+
108
118
  // 3. Validate
109
119
  console.log(' Validating...');
110
120
  const validation = await validateInstallation(targetDir);
@@ -1,8 +1,8 @@
1
1
  # chati.dev Configuration
2
- version: "4.1.3"
2
+ version: "4.1.5"
3
3
  installed_at: "2026-02-07T10:00:00Z"
4
4
  updated_at: "2026-04-06T00:00:00Z"
5
- installer_version: "4.1.3"
5
+ installer_version: "4.1.5"
6
6
  project_type: greenfield
7
7
  language: en
8
8
  ides: [claude-code]
@@ -45,8 +45,8 @@ features:
45
45
  # Intelligence Upgrade (v4.0.5 — Claude Code patterns)
46
46
  undercover_mode: true # Sanitize framework terms from deliverables
47
47
  memory_extraction: true # Per-turn automatic memory capture
48
- memory_consolidation: true # /chati dream — 4-phase memory consolidation
49
- daily_digest: true # /chati digest KAIROS Lite daily activity log
48
+ memory_consolidation: true # Automatic 4-phase memory consolidation
49
+ daily_digest: true # Automatic daily activity log (KAIROS Lite)
50
50
  structured_session_memory: true # 8-section session digest with token budgets
51
51
  static_prism_boundary: true # Static/Dynamic PRISM boundary for cache optimization
52
52
  token_bracket_estimation: true # Token-based bracket estimation (replaces turn count)
@@ -322,11 +322,11 @@ The pipeline operates in three execution modes that control agent permissions. M
322
322
 
323
323
  7. Memory attention scoring SHALL use natural decay — memories not accessed lose relevance organically. No memory is permanent unless explicitly marked as durable by the user.
324
324
 
325
- 8. The system SHALL support memory consolidation (`/chati dream`) to merge, deduplicate, and prune accumulated memories. Consolidation follows a 4-phase cycle (Orient, Gather, Consolidate, Prune) and archives removed entries rather than deleting them.
325
+ 8. The system SHALL support automatic memory consolidation to merge, deduplicate, and prune accumulated memories. Consolidation follows a 4-phase cycle (Orient, Gather, Consolidate, Prune) and archives removed entries rather than deleting them. Triggered automatically when memory entries exceed threshold.
326
326
 
327
327
  9. Per-turn memory extraction MAY capture decisions, resolutions, corrections, and validated patterns automatically from agent output. Extracted memories start at warm tier (confidence 0.5) and are promoted through evidence accumulation.
328
328
 
329
- 10. Daily activity digests (`/chati digest`) SHALL maintain append-only session logs for observability. Digests are cumulative per calendar day and include agent scores, decisions, and gotchas.
329
+ 10. Daily activity digests SHALL maintain append-only session logs for observability. Digests are generated automatically at session end and are cumulative per calendar day, including agent scores, decisions, and gotchas.
330
330
 
331
331
  **Enforcement: BLOCK** — Auto-modification of user files is a critical violation.
332
332
 
@@ -489,5 +489,5 @@ When multiple CLI providers are enabled, the system SHALL coordinate agent execu
489
489
 
490
490
  ---
491
491
 
492
- *Chati.dev Constitution v4.1.3 — 19 Articles + Preamble*
492
+ *Chati.dev Constitution v4.1.5 — 19 Articles + Preamble*
493
493
  *All agents are bound by this Constitution. Violations are enforced per article.*
@@ -1,7 +1,7 @@
1
1
  # Chati.dev System Context
2
2
 
3
3
  ## Framework
4
- - **Version**: 4.1.3
4
+ - **Version**: 4.1.5
5
5
  - **Agents**: Specialized agents across DISCOVER, PLAN, BUILD, DEPLOY phases
6
6
  - **Constitution**: 19 Articles + Preamble
7
7
  - **Quality**: 5 pipeline gates + 3-tier verdicts (APPROVED / NEEDS_REVISION / BLOCKED)
@@ -3,7 +3,7 @@
3
3
  # and by the Health Check for system integrity validation.
4
4
 
5
5
  metadata:
6
- version: "4.1.3"
6
+ version: "4.1.5"
7
7
  last_updated: "2026-04-06T00:00:00Z"
8
8
  entity_count: 62
9
9
  checksum_algorithm: sha256
@@ -159,7 +159,7 @@ Where:
159
159
 
160
160
  ## Memory Consolidation (Dream System)
161
161
 
162
- The `/chati dream` command triggers a 4-phase consolidation cycle inspired by Claude Code's autoDream:
162
+ Memory consolidation is triggered automatically (when entries exceed threshold or on PreCompact). It follows a 4-phase cycle inspired by Claude Code's autoDream:
163
163
 
164
164
  | Phase | Name | Action |
165
165
  |-------|------|--------|
@@ -201,7 +201,7 @@ The memory extraction system automatically captures knowledge from agent output
201
201
 
202
202
  ## Daily Digest (KAIROS Lite)
203
203
 
204
- The `/chati digest` command displays cumulative daily activity logs stored in `.chati/memories/shared/daily/YYYY-MM-DD.md`.
204
+ Daily activity digests are generated automatically at session end and stored in `.chati/memories/shared/daily/YYYY-MM-DD.md`.
205
205
 
206
206
  Each session appends an entry with:
207
207
  - Timestamp and pipeline phase
@@ -224,11 +224,11 @@ These agents run in separate Claude Code processes.
224
224
 
225
225
  ### Sequential Fallback
226
226
 
227
- If terminal spawning fails (claude CLI not found, system error):
227
+ If terminal spawning fails (CLI not found, system error), fall back **silently**:
228
228
  ```
229
- 1. Log the failure
230
- 2. Fall back to in-conversation activation (read agent .md file, become agent)
231
- 3. Continue pipeline normally
229
+ 1. Do NOT display any error or fallback message to the user
230
+ 2. Read the agent .md file directly and become that agent in-conversation
231
+ 3. Continue pipeline normally — the user should not notice any difference
232
232
  ```
233
233
 
234
234
  ---
@@ -242,11 +242,11 @@ Planning phase agents (detail, architect, ux) run simultaneously.
242
242
  3. Parse consolidated JSON output
243
243
  4. Present **Completion Options** (Parallel Group variant) — wait for user choice
244
244
  5. On approval, for each completed agent, run `orchestrate advance --agent {name} --score {score}`
245
- 6. If partial failure:
245
+ 6. If partial or total failure (spawning unavailable):
246
246
  ```
247
- 1. Retry failed agents only
248
- 2. Continue with partial results
249
- 3. Fall back to sequential execution for failed agents
247
+ Fall back silently to sequential in-conversation execution.
248
+ Do NOT display error messages about spawning or CLI availability.
249
+ Read each agent .md file and execute sequentially within the conversation.
250
250
  ```
251
251
 
252
252
  ### Parallelization Rules
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chati-dev",
3
- "version": "4.1.3",
3
+ "version": "4.1.5",
4
4
  "description": "AI-Powered Multi-Agent Orchestration System — Structured vibe coding for Full Stack Development",
5
5
  "type": "module",
6
6
  "bin": {
@@ -148,7 +148,7 @@ export async function installFramework(config) {
148
148
  /**
149
149
  * Copy framework files from the Chati.dev source directory
150
150
  */
151
- function copyFrameworkFiles(destDir, provider = 'claude') {
151
+ export function copyFrameworkFiles(destDir, provider = 'claude') {
152
152
  if (!existsSync(FRAMEWORK_SOURCE)) return;
153
153
 
154
154
  const filesToCopy = [
@@ -161,7 +161,12 @@ function copyFrameworkFiles(destDir, provider = 'claude') {
161
161
  // PLAN agents
162
162
  'agents/plan/detail.md',
163
163
  'agents/plan/architect.md',
164
+ 'agents/plan/architect-system.md',
165
+ 'agents/plan/architect-data-engineer.md',
164
166
  'agents/plan/ux.md',
167
+ 'agents/plan/ux-brand-architect.md',
168
+ 'agents/plan/ux-researcher.md',
169
+ 'agents/plan/ux-component-engineer.md',
165
170
  'agents/plan/phases.md',
166
171
  'agents/plan/tasks.md',
167
172
  // Quality agents
@@ -178,9 +183,11 @@ function copyFrameworkFiles(destDir, provider = 'claude') {
178
183
  'templates/qa-gate-tmpl.yaml',
179
184
  'templates/quick-brief-tmpl.yaml',
180
185
  'templates/brandbook-tmpl.yaml',
186
+ 'templates/brandbook-html-tmpl.md',
181
187
  'templates/design-token-tmpl.yaml',
182
188
  'templates/component-spec-tmpl.yaml',
183
189
  'templates/icon-system-tmpl.yaml',
190
+ 'templates/session-memory-tmpl.yaml',
184
191
  // Workflows
185
192
  'workflows/greenfield-fullstack.yaml',
186
193
  'workflows/brownfield-fullstack.yaml',
@@ -7,7 +7,7 @@
7
7
  * Phase 3 (Consolidate): Deduplicate, merge cross-agent, increment evidence
8
8
  * Phase 4 (Prune): Remove cold/low-confidence entries, archive removed
9
9
  *
10
- * Triggered manually via `/chati dream` or programmatically.
10
+ * Triggered automatically when memory entries exceed threshold or on PreCompact.
11
11
  */
12
12
 
13
13
  import { existsSync, readFileSync, writeFileSync, mkdirSync, readdirSync } from 'fs';