chati-dev 4.2.2 → 4.3.0
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/README.md +80 -53
- package/bin/chati.js +150 -5
- package/framework/agents/build/dev.md +509 -76
- package/framework/agents/deploy/devops.md +40 -25
- package/framework/agents/discover/brief.md +156 -22
- package/framework/agents/discover/brownfield-wu.md +24 -14
- package/framework/agents/discover/greenfield-wu.md +100 -14
- package/framework/agents/plan/architect-data-engineer.md +6 -6
- package/framework/agents/plan/architect-system.md +46 -12
- package/framework/agents/plan/architect.md +40 -20
- package/framework/agents/plan/detail.md +36 -24
- package/framework/agents/plan/phases.md +36 -26
- package/framework/agents/plan/tasks.md +114 -33
- package/framework/agents/plan/ux-brand-architect.md +240 -8
- package/framework/agents/plan/ux-component-engineer.md +28 -13
- package/framework/agents/plan/ux-researcher.md +7 -6
- package/framework/agents/plan/ux.md +55 -22
- package/framework/agents/quality/qa-implementation.md +143 -74
- package/framework/agents/quality/qa-planning.md +115 -42
- package/framework/agents/quality/qa-visual.md +439 -0
- package/framework/agents/shared/visualizer.md +128 -0
- package/framework/config.yaml +7 -6
- package/framework/constitution.md +127 -44
- package/framework/context/governance.md +12 -7
- package/framework/context/quality.md +6 -5
- package/framework/context/root.md +6 -6
- package/framework/data/entity-registry.yaml +377 -4
- package/framework/data/model-limits.json +19 -0
- package/framework/domains/agents/qa-visual.yaml +74 -0
- package/framework/domains/constitution.yaml +46 -2
- package/framework/domains/workflows/greenfield-fullstack.yaml +2 -2
- package/framework/hooks/advance-trigger.js +131 -0
- package/framework/hooks/brief-validator.js +83 -0
- package/framework/hooks/constitution-guard.js +24 -5
- package/framework/hooks/license-guard.js +62 -27
- package/framework/hooks/mode-governance.js +13 -2
- package/framework/hooks/model-governance.js +1 -0
- package/framework/hooks/post-dev.js +207 -0
- package/framework/hooks/prism-engine.js +274 -105
- package/framework/hooks/reasoning-escalator.js +371 -0
- package/framework/hooks/reference-trigger.js +117 -0
- package/framework/hooks/session-digest.js +50 -1
- package/framework/hooks/settings.json +32 -1
- package/framework/hooks/style-guard.js +25 -6
- package/framework/hooks/team-quality-gate.js +19 -12
- package/framework/hooks/undercover-guard.js +4 -2
- package/framework/i18n/en.yaml +3 -3
- package/framework/i18n/es.yaml +3 -3
- package/framework/i18n/fr.yaml +3 -3
- package/framework/i18n/pt.yaml +3 -3
- package/framework/intelligence/context-engine.md +4 -5
- package/framework/intelligence/decision-engine.md +1 -1
- package/framework/intelligence/hooks-performance.md +3 -3
- package/framework/migrations/v1.0-to-v1.1.yaml +1 -1
- package/framework/migrations/v1.4-to-v2.0.yaml +11 -11
- package/framework/migrations/v4.0-to-v4.1.yaml +2 -2
- package/framework/migrations/v4.2-to-v4.3.yaml +29 -0
- package/framework/orchestrator/chati-router.js +387 -0
- package/framework/orchestrator/chati-update.md +40 -40
- package/framework/orchestrator/chati.md +294 -94
- package/framework/scaffold/motion-premium/README.md +89 -0
- package/framework/scaffold/motion-premium/app/globals.css.template +400 -0
- package/framework/scaffold/motion-premium/app/layout.tsx.template +110 -0
- package/framework/scaffold/motion-premium/components/animation/BackgroundCrossfadeProvider.tsx.template +170 -0
- package/framework/scaffold/motion-premium/components/animation/LenisProvider.tsx.template +49 -0
- package/framework/scaffold/motion-premium/components/animation/PageTransitionWrapper.tsx.template +83 -0
- package/framework/scaffold/motion-premium/components/animation/Preloader.tsx.template +171 -0
- package/framework/scaffold/motion-premium/components/ui/Container.tsx.template +69 -0
- package/framework/scaffold/motion-premium/components/ui/PageSection.tsx.template +74 -0
- package/framework/scaffold/motion-premium/lib/animations/gsap.ts.template +112 -0
- package/framework/scaffold/motion-premium/lib/animations/refreshCoordinator.ts.template +75 -0
- package/framework/scaffold/motion-premium/lib/animations/tokens.ts.template +119 -0
- package/framework/scaffold/motion-premium/lib/animations/useGsapContext.ts.template +92 -0
- package/framework/scaffold/motion-premium/lib/animations/useScrollSnapStepper.ts.template +265 -0
- package/framework/scaffold/motion-premium/lib/animations/useSmoothScroll.ts.template +67 -0
- package/framework/scaffold/motion-premium/lib/brand.ts.template +43 -0
- package/framework/scaffold/motion-premium/scaffold.yaml +174 -0
- package/framework/scaffold/motion-premium-3d/README.md +80 -0
- package/framework/scaffold/motion-premium-3d/app/(3d)/scroll-demo/ScrollDemoCanvas.tsx.template +81 -0
- package/framework/scaffold/motion-premium-3d/app/(3d)/scroll-demo/ScrollDemoClient.tsx.template +75 -0
- package/framework/scaffold/motion-premium-3d/app/(3d)/scroll-demo/page.tsx.template +26 -0
- package/framework/scaffold/motion-premium-3d/components/3d/CameraRig.tsx.template +100 -0
- package/framework/scaffold/motion-premium-3d/components/3d/CanvasProvider.tsx.template +85 -0
- package/framework/scaffold/motion-premium-3d/components/3d/InvalidateOnScroll.tsx.template +51 -0
- package/framework/scaffold/motion-premium-3d/components/3d/MeshCrossfade.tsx.template +79 -0
- package/framework/scaffold/motion-premium-3d/components/3d/ScrollCrossfade.tsx.template +88 -0
- package/framework/scaffold/motion-premium-3d/components/3d/ScrollScene.tsx.template +121 -0
- package/framework/scaffold/motion-premium-3d/components/webgl/SceneFallback.tsx.template +65 -0
- package/framework/scaffold/motion-premium-3d/components/webgl/WebGLContext.tsx.template +68 -0
- package/framework/scaffold/motion-premium-3d/lib/webgl/detect.ts.template +69 -0
- package/framework/scaffold/motion-premium-3d/scaffold.yaml +133 -0
- package/framework/schemas/session.schema.json +109 -21
- package/framework/scripts/reference-capture.js +430 -0
- package/framework/scripts/visual-qa.js +674 -0
- package/framework/tasks/orchestrator-handoff.md +1 -1
- package/framework/tasks/orchestrator-resume.md +1 -1
- package/framework/tasks/orchestrator-route.md +1 -1
- package/framework/tasks/orchestrator-status.md +3 -3
- package/framework/tasks/qa-planning-gate-define.md +1 -1
- package/framework/templates/brandbook-html-tmpl.md +1 -1
- package/framework/templates/brandbook-tmpl.yaml +1 -1
- package/framework/templates/component-spec-tmpl.yaml +1 -1
- package/framework/templates/design-token-tmpl.yaml +1 -1
- package/framework/templates/icon-system-tmpl.yaml +1 -1
- package/framework/templates/team-planning-tasks.yaml +6 -5
- package/framework/workflows/brownfield-discovery.yaml +2 -2
- package/framework/workflows/brownfield-fullstack.yaml +15 -11
- package/framework/workflows/brownfield-service.yaml +14 -10
- package/framework/workflows/brownfield-ui.yaml +15 -11
- package/framework/workflows/greenfield-fullstack.yaml +16 -13
- package/framework/workflows/quick-flow.yaml +3 -3
- package/framework/workflows/standard-flow.yaml +12 -9
- package/package.json +10 -5
- package/src/autonomy/autonomous-gate.js +1 -0
- package/src/autonomy/build-state.js +1 -2
- package/src/autonomy/progress-reporter.js +1 -1
- package/src/config/agent-customizer.js +11 -3
- package/src/config/claude-settings-generator.js +27 -7
- package/src/config/context-file-generator.js +41 -21
- package/src/config/framework-adapter.js +1 -0
- package/src/config/gemini-hooks-generator.js +19 -7
- package/src/config/mcp-configs.js +1 -0
- package/src/context/layers/l1-global.js +2 -1
- package/src/dashboard/data-reader.js +4 -3
- package/src/dashboard/layout.js +2 -1
- package/src/decision/analyzer.js +6 -30
- package/src/decision/engine.js +4 -28
- package/src/decision/registry-healer.js +3 -2
- package/src/decision/registry-updater.js +23 -14
- package/src/extensions/loader.js +2 -8
- package/src/gates/g1-planning-complete.js +2 -1
- package/src/gates/g2-qa-planning.js +2 -1
- package/src/gates/g3-implementation.js +2 -1
- package/src/gates/g4-qa-implementation.js +3 -2
- package/src/gates/g5-deploy-ready.js +2 -1
- package/src/health/engine.js +4 -3
- package/src/installer/core.js +422 -81
- package/src/installer/preflight.js +131 -0
- package/src/installer/provider-overlay.js +3 -3
- package/src/installer/scaffold-applier.js +358 -0
- package/src/installer/templates.js +46 -29
- package/src/installer/validator.js +17 -12
- package/src/intelligence/registry-manager.js +22 -29
- package/src/intelligence/timeline.js +11 -6
- package/src/license/commands.js +1 -1
- package/src/license/wait.js +102 -0
- package/src/memory/agent-memory.js +81 -0
- package/src/memory/dream.js +32 -1
- package/src/merger/replace-merger.js +28 -15
- package/src/orchestrator/agent-selector.js +2 -1
- package/src/orchestrator/cli.js +1869 -71
- package/src/orchestrator/doctor.js +270 -0
- package/src/orchestrator/handoff-engine.js +4 -3
- package/src/orchestrator/index.js +2 -0
- package/src/orchestrator/pipeline-manager.js +306 -15
- package/src/orchestrator/session-manager.js +331 -6
- package/src/tasks/handoff.js +3 -2
- package/src/telemetry/config.js +4 -3
- package/src/telemetry/schema.js +1 -0
- package/src/terminal/collector.js +3 -2
- package/src/terminal/index.js +1 -2
- package/src/terminal/isolation.js +52 -18
- package/src/terminal/prompt-builder.js +42 -25
- package/src/terminal/run-parallel.js +1 -1
- package/src/terminal/run-team.js +3 -3
- package/src/terminal/team-task-list.js +43 -4
- package/src/upgrade/backup.js +3 -2
- package/src/upgrade/checker.js +3 -2
- package/src/upgrade/migrator.js +65 -7
- package/src/upgrade/tracked-files-detector.js +86 -0
- package/src/upgrade/user-messages.js +94 -0
- package/src/utils/config-parser.js +2 -1
- package/src/utils/feature-flags.js +2 -1
- package/src/utils/flatten-entities.js +69 -0
- package/src/utils/framework-dir.js +16 -0
- package/src/utils/model-id.js +85 -0
- package/src/utils/provider-limits.js +84 -23
- package/src/utils/schema-validator.js +1 -1
- package/src/wizard/i18n.js +5 -4
- package/src/wizard/index.js +14 -0
- package/assets/logo - c/303/263pia.png +0 -0
- package/assets/logo.svg +0 -42
- package/assets/logo2.png +0 -0
- package/assets/social-preview.png +0 -0
- package/scripts/bundle-framework.js +0 -69
- package/scripts/changelog-generator.js +0 -222
- package/scripts/codebase-mapper.js +0 -728
- package/scripts/commit-message-generator.js +0 -167
- package/scripts/coverage-analyzer.js +0 -260
- package/scripts/dependency-analyzer.js +0 -280
- package/scripts/doctor/checks/agents.js +0 -77
- package/scripts/doctor/checks/constitution.js +0 -41
- package/scripts/doctor/checks/domain-alignment.js +0 -58
- package/scripts/doctor/checks/prism-layers.js +0 -84
- package/scripts/doctor/checks/registry.js +0 -55
- package/scripts/doctor/checks/schemas.js +0 -61
- package/scripts/doctor/fixes/reference-fix.js +0 -100
- package/scripts/doctor/fixes/registry-fix.js +0 -56
- package/scripts/doctor/index.js +0 -212
- package/scripts/framework-analyzer.js +0 -308
- package/scripts/generate-constitution-domain.js +0 -253
- package/scripts/generate-signing-key.js +0 -33
- package/scripts/health-check.js +0 -481
- package/scripts/ide-sync.js +0 -326
- package/scripts/performance-analyzer.js +0 -325
- package/scripts/plan-tracker.js +0 -278
- package/scripts/populate-entity-registry.js +0 -481
- package/scripts/pr-review.js +0 -317
- package/scripts/rollback-manager.js +0 -310
- package/scripts/semantic-lint.js +0 -328
- package/scripts/sign-manifest.js +0 -53
- package/scripts/stuck-detector.js +0 -343
- package/scripts/test-quality-assessment.js +0 -257
- package/scripts/validate-agents.js +0 -368
- package/scripts/validate-package.js +0 -505
- package/scripts/validate-tasks.js +0 -465
- package/src/autonomy/worktree-manager.js +0 -250
- package/src/intelligence/decision-engine.js +0 -256
- package/src/intelligence/document-sharder.js +0 -221
- package/src/intelligence/elicitation.js +0 -265
|
@@ -19,18 +19,18 @@ import { join } from 'path';
|
|
|
19
19
|
// Artifact scope per agent — defines which output paths each agent owns
|
|
20
20
|
const AGENT_ARTIFACT_SCOPES = {
|
|
21
21
|
detail: [
|
|
22
|
-
'
|
|
23
|
-
'
|
|
22
|
+
'artifacts/2-PRD/',
|
|
23
|
+
'artifacts/handoffs/detail-',
|
|
24
24
|
'prd.md',
|
|
25
25
|
],
|
|
26
26
|
architect: [
|
|
27
|
-
'
|
|
28
|
-
'
|
|
27
|
+
'artifacts/3-Architecture/',
|
|
28
|
+
'artifacts/handoffs/architect-',
|
|
29
29
|
'architecture.md',
|
|
30
30
|
],
|
|
31
31
|
ux: [
|
|
32
|
-
'
|
|
33
|
-
'
|
|
32
|
+
'artifacts/4-UX/',
|
|
33
|
+
'artifacts/handoffs/ux-',
|
|
34
34
|
'ux-specification.md',
|
|
35
35
|
'brandbook.md',
|
|
36
36
|
'brandbook.html',
|
|
@@ -50,20 +50,27 @@ const AGENT_ARTIFACT_SCOPES = {
|
|
|
50
50
|
'test/',
|
|
51
51
|
'tests/',
|
|
52
52
|
'__tests__/',
|
|
53
|
-
'
|
|
54
|
-
'
|
|
53
|
+
'artifacts/8-Implementation/',
|
|
54
|
+
'artifacts/handoffs/dev-',
|
|
55
|
+
],
|
|
56
|
+
'qa-planning': [
|
|
57
|
+
'artifacts/7-QA-Planning/',
|
|
58
|
+
'artifacts/handoffs/qa-planning',
|
|
55
59
|
],
|
|
56
60
|
'qa-implementation': [
|
|
57
|
-
'
|
|
58
|
-
'
|
|
61
|
+
'artifacts/9-QA-Implementation/',
|
|
62
|
+
'artifacts/handoffs/qa-implementation-',
|
|
63
|
+
],
|
|
64
|
+
'qa-visual': [
|
|
65
|
+
'artifacts/handoffs/qa-visual',
|
|
59
66
|
],
|
|
60
67
|
};
|
|
61
68
|
|
|
62
69
|
// Shared paths any teammate can write to
|
|
63
70
|
const SHARED_PATHS = [
|
|
64
71
|
'.chati/',
|
|
65
|
-
'
|
|
66
|
-
'
|
|
72
|
+
'artifacts/handoffs/teams/',
|
|
73
|
+
'artifacts/decisions/',
|
|
67
74
|
];
|
|
68
75
|
|
|
69
76
|
async function main() {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* What gets sanitized:
|
|
14
14
|
* - Agent names (greenfield-wu, brownfield-wu, qa-planning, etc.)
|
|
15
15
|
* - Pipeline terminology (PRISM, L0-L5, deviation protocol)
|
|
16
|
-
* - Internal paths (
|
|
16
|
+
* - Internal paths (artifacts/, .chati/)
|
|
17
17
|
* - Framework name references in generated code/commits
|
|
18
18
|
* - Constitution/Article references
|
|
19
19
|
* - Quality gate internals (adversarial review, devil's advocate)
|
|
@@ -44,6 +44,7 @@ const UNDERCOVER_RULES = [
|
|
|
44
44
|
{ pattern: /\bbrownfield-wu\b/gi, replacement: 'codebase analysis', category: 'agent' },
|
|
45
45
|
{ pattern: /\bqa-planning\b/gi, replacement: 'planning review', category: 'agent' },
|
|
46
46
|
{ pattern: /\bqa-implementation\b/gi, replacement: 'code review', category: 'agent' },
|
|
47
|
+
{ pattern: /\bqa-visual\b/gi, replacement: 'visual review', category: 'agent' },
|
|
47
48
|
{ pattern: /\bdevops agent\b/gi, replacement: 'deployment', category: 'agent' },
|
|
48
49
|
{ pattern: /\bdev agent\b/gi, replacement: 'implementation', category: 'agent' },
|
|
49
50
|
{ pattern: /\bbrief agent\b/gi, replacement: 'requirements analysis', category: 'agent' },
|
|
@@ -110,7 +111,8 @@ function isExemptPath(filePath, projectDir) {
|
|
|
110
111
|
*/
|
|
111
112
|
function isUndercoverEnabled(projectDir) {
|
|
112
113
|
try {
|
|
113
|
-
const
|
|
114
|
+
const fwDir = existsSync(join(projectDir, '.chati.dev')) ? '.chati.dev' : 'chati.dev';
|
|
115
|
+
const configPath = join(projectDir, fwDir, 'config.yaml');
|
|
114
116
|
if (!existsSync(configPath)) return true;
|
|
115
117
|
const raw = readFileSync(configPath, 'utf-8');
|
|
116
118
|
const match = raw.match(/^\s*undercover_mode:\s*(false|no|off|0)/mi);
|
package/framework/i18n/en.yaml
CHANGED
|
@@ -31,7 +31,7 @@ installer:
|
|
|
31
31
|
agents_count: "Agent definitions across DISCOVER, PLAN, BUILD, DEPLOY phases"
|
|
32
32
|
workflows_count: "7 workflow blueprints"
|
|
33
33
|
templates_count: "10 templates (PRD, Brownfield PRD, Architecture, Task, QA Gate, Quick Brief, Brandbook, Design Tokens, Component Spec, Icon System)"
|
|
34
|
-
constitution: "Constitution (
|
|
34
|
+
constitution: "Constitution (23 Articles + Preamble)"
|
|
35
35
|
session_mgmt: "Session management system"
|
|
36
36
|
quality_gates: "Quality gates (3-tier verdicts)"
|
|
37
37
|
proceed: "Proceed with installation?"
|
|
@@ -39,7 +39,7 @@ installer:
|
|
|
39
39
|
created_chati: "Created .chati/ session directory"
|
|
40
40
|
created_framework: "Created chati.dev/ system directory (agents, templates, workflows)"
|
|
41
41
|
created_commands: "Created .claude/commands/ (thin router)"
|
|
42
|
-
installed_constitution: "Installed Constitution (Articles I-
|
|
42
|
+
installed_constitution: "Installed Constitution (Articles I-XXIII)"
|
|
43
43
|
created_session: "Created session.yaml schema"
|
|
44
44
|
created_claude_md: "Created CLAUDE.md"
|
|
45
45
|
configured_mcps: "Configured MCPs:"
|
|
@@ -47,7 +47,7 @@ installer:
|
|
|
47
47
|
agents_valid: "All agents implement 8 protocols"
|
|
48
48
|
handoff_ok: "Handoff protocol: OK"
|
|
49
49
|
validation_ok: "Self-validation criteria: OK"
|
|
50
|
-
constitution_ok: "Constitution:
|
|
50
|
+
constitution_ok: "Constitution: 23 articles verified"
|
|
51
51
|
created_memories: "Created .chati/memories/ (Memory Layer)"
|
|
52
52
|
installed_intelligence: "Installed Intelligence Layer (Context Engine, Memory, Registry)"
|
|
53
53
|
intelligence_valid: "Intelligence: 6 spec files verified"
|
package/framework/i18n/es.yaml
CHANGED
|
@@ -31,7 +31,7 @@ installer:
|
|
|
31
31
|
agents_count: "Definiciones de agentes en las fases DISCOVER, PLAN, BUILD, DEPLOY"
|
|
32
32
|
workflows_count: "7 blueprints de workflow"
|
|
33
33
|
templates_count: "10 templates (PRD, PRD Brownfield, Arquitectura, Task, QA Gate, Quick Brief, Brandbook, Design Tokens, Component Spec, Icon System)"
|
|
34
|
-
constitution: "Constitucion (
|
|
34
|
+
constitution: "Constitucion (22 Articulos + Preambulo)"
|
|
35
35
|
session_mgmt: "Sistema de gestion de sesion"
|
|
36
36
|
quality_gates: "Quality gates (veredictos en 3 niveles)"
|
|
37
37
|
proceed: "Proceder con la instalacion?"
|
|
@@ -39,7 +39,7 @@ installer:
|
|
|
39
39
|
created_chati: "Creado directorio de sesion .chati/"
|
|
40
40
|
created_framework: "Creado directorio del sistema chati.dev/ (agentes, templates, workflows)"
|
|
41
41
|
created_commands: "Creado .claude/commands/ (enrutador)"
|
|
42
|
-
installed_constitution: "Instalada Constitucion (
|
|
42
|
+
installed_constitution: "Instalada Constitucion (Artículos I-XXIII)"
|
|
43
43
|
created_session: "Creado schema session.yaml"
|
|
44
44
|
created_claude_md: "Creado CLAUDE.md"
|
|
45
45
|
configured_mcps: "MCPs configurados:"
|
|
@@ -47,7 +47,7 @@ installer:
|
|
|
47
47
|
agents_valid: "Todos los agentes implementan 8 protocolos"
|
|
48
48
|
handoff_ok: "Protocolo de handoff: OK"
|
|
49
49
|
validation_ok: "Criterios de auto-validacion: OK"
|
|
50
|
-
constitution_ok: "Constitucion:
|
|
50
|
+
constitution_ok: "Constitucion: 22 articulos verificados"
|
|
51
51
|
created_memories: "Creado .chati/memories/ (Memory Layer)"
|
|
52
52
|
installed_intelligence: "Instalada Intelligence Layer (Context Engine, Memory, Registry)"
|
|
53
53
|
intelligence_valid: "Intelligence: 6 archivos de spec verificados"
|
package/framework/i18n/fr.yaml
CHANGED
|
@@ -31,7 +31,7 @@ installer:
|
|
|
31
31
|
agents_count: "Definitions d'agents dans les phases DISCOVER, PLAN, BUILD, DEPLOY"
|
|
32
32
|
workflows_count: "7 blueprints de workflow"
|
|
33
33
|
templates_count: "10 templates (PRD, PRD Brownfield, Architecture, Task, QA Gate, Quick Brief, Brandbook, Design Tokens, Component Spec, Icon System)"
|
|
34
|
-
constitution: "Constitution (
|
|
34
|
+
constitution: "Constitution (23 Articles + Preambule)"
|
|
35
35
|
session_mgmt: "Systeme de gestion de session"
|
|
36
36
|
quality_gates: "Quality gates (verdicts en 3 niveaux)"
|
|
37
37
|
proceed: "Proceder a l'installation?"
|
|
@@ -39,7 +39,7 @@ installer:
|
|
|
39
39
|
created_chati: "Cree le repertoire de session .chati/"
|
|
40
40
|
created_framework: "Cree le repertoire du systeme chati.dev/ (agents, templates, workflows)"
|
|
41
41
|
created_commands: "Cree .claude/commands/ (routeur)"
|
|
42
|
-
installed_constitution: "Installee la Constitution (Articles I-
|
|
42
|
+
installed_constitution: "Installee la Constitution (Articles I-XXIII)"
|
|
43
43
|
created_session: "Cree le schema session.yaml"
|
|
44
44
|
created_claude_md: "Cree CLAUDE.md"
|
|
45
45
|
configured_mcps: "MCPs configures:"
|
|
@@ -47,7 +47,7 @@ installer:
|
|
|
47
47
|
agents_valid: "Tous les agents implementent 8 protocoles"
|
|
48
48
|
handoff_ok: "Protocole de passation: OK"
|
|
49
49
|
validation_ok: "Criteres d'auto-validation: OK"
|
|
50
|
-
constitution_ok: "Constitution:
|
|
50
|
+
constitution_ok: "Constitution: 23 articles verifies"
|
|
51
51
|
created_memories: "Cree .chati/memories/ (Memory Layer)"
|
|
52
52
|
installed_intelligence: "Installee Intelligence Layer (Context Engine, Memory, Registry)"
|
|
53
53
|
intelligence_valid: "Intelligence: 6 fichiers de spec verifies"
|
package/framework/i18n/pt.yaml
CHANGED
|
@@ -31,7 +31,7 @@ installer:
|
|
|
31
31
|
agents_count: "Definicoes de agentes nas fases DISCOVER, PLAN, BUILD, DEPLOY"
|
|
32
32
|
workflows_count: "7 blueprints de workflow"
|
|
33
33
|
templates_count: "10 templates (PRD, PRD Brownfield, Arquitetura, Task, QA Gate, Quick Brief, Brandbook, Design Tokens, Component Spec, Icon System)"
|
|
34
|
-
constitution: "Constituicao (
|
|
34
|
+
constitution: "Constituicao (22 Artigos + Preambulo)"
|
|
35
35
|
session_mgmt: "Sistema de gerenciamento de sessao"
|
|
36
36
|
quality_gates: "Quality gates (veredictos em 3 niveis)"
|
|
37
37
|
proceed: "Prosseguir com a instalacao?"
|
|
@@ -39,7 +39,7 @@ installer:
|
|
|
39
39
|
created_chati: "Criado diretorio de sessao .chati/"
|
|
40
40
|
created_framework: "Criado diretorio do sistema chati.dev/ (agentes, templates, workflows)"
|
|
41
41
|
created_commands: "Criado .claude/commands/ (roteador)"
|
|
42
|
-
installed_constitution: "Instalada Constituicao (Artigos I-
|
|
42
|
+
installed_constitution: "Instalada Constituicao (Artigos I-XXIII)"
|
|
43
43
|
created_session: "Criado schema session.yaml"
|
|
44
44
|
created_claude_md: "Criado CLAUDE.md"
|
|
45
45
|
configured_mcps: "MCPs configurados:"
|
|
@@ -47,7 +47,7 @@ installer:
|
|
|
47
47
|
agents_valid: "Todos os agentes implementam 8 protocolos"
|
|
48
48
|
handoff_ok: "Protocolo de handoff: OK"
|
|
49
49
|
validation_ok: "Criterios de auto-validacao: OK"
|
|
50
|
-
constitution_ok: "Constituicao:
|
|
50
|
+
constitution_ok: "Constituicao: 22 artigos verificados"
|
|
51
51
|
created_memories: "Criado .chati/memories/ (Memory Layer)"
|
|
52
52
|
installed_intelligence: "Instalada Intelligence Layer (Context Engine, Memory, Registry)"
|
|
53
53
|
intelligence_valid: "Intelligence: 6 arquivos de spec verificados"
|
|
@@ -33,7 +33,7 @@ The orchestrator injects context through 6 hierarchical layers:
|
|
|
33
33
|
|
|
34
34
|
| Layer | Name | Source | When Active |
|
|
35
35
|
|-------|------|--------|-------------|
|
|
36
|
-
| **L0** | Constitution | `chati.dev/constitution.md` (Articles I-
|
|
36
|
+
| **L0** | Constitution | `chati.dev/constitution.md` (Articles I-XXIII) | ALWAYS (non-negotiable) |
|
|
37
37
|
| **L1** | Mode + Global | `config.yaml` + mode governance (planning/build/deploy) | ALWAYS |
|
|
38
38
|
| **L2** | Agent Scope | `chati.dev/agents/{agent}/` — mission, inputs, outputs, criteria | When agent is active |
|
|
39
39
|
| **L3** | Pipeline State | `.chati/session.yaml` — pipeline position, scores, backlog | When session is active |
|
|
@@ -60,7 +60,7 @@ The orchestrator produces a structured XML block injected into agent prompts:
|
|
|
60
60
|
```xml
|
|
61
61
|
<chati-context bracket="MODERATE">
|
|
62
62
|
<constitution>
|
|
63
|
-
Articles I-
|
|
63
|
+
Articles I-XXIII governing agent behavior.
|
|
64
64
|
Key: Self-validation required. Loop until quality threshold.
|
|
65
65
|
Guided options (1,2,3). Persistent session state.
|
|
66
66
|
Two-layer handoff. Language protocol. Deviation protocol.
|
|
@@ -77,8 +77,7 @@ The orchestrator produces a structured XML block injected into agent prompts:
|
|
|
77
77
|
</agent>
|
|
78
78
|
|
|
79
79
|
<pipeline>
|
|
80
|
-
WU(100%) -> Brief(in_progress, 45%) -> Detail(pending) ->
|
|
81
|
-
-> UX(pending) -> Phases(pending) -> Tasks(pending) -> QA-Planning(pending)
|
|
80
|
+
WU(100%) -> Brief(in_progress, 45%) -> [Planning Team: Detail+Architect+UX+QA-Planning](pending) -> Phases(pending) -> Tasks(pending)
|
|
82
81
|
</pipeline>
|
|
83
82
|
|
|
84
83
|
<task>Phase 2: Core Requirements Elicitation</task>
|
|
@@ -186,7 +185,7 @@ Memory injection follows the same progressive reinforcement principle: as contex
|
|
|
186
185
|
|
|
187
186
|
---
|
|
188
187
|
|
|
189
|
-
*Context Engine v4.0 — Chati.dev Intelligence Layer (Progressive Reinforcement Model)*
|
|
188
|
+
*Context Engine v4.3.0 — Chati.dev Intelligence Layer (Progressive Reinforcement Model)*
|
|
190
189
|
|
|
191
190
|
---
|
|
192
191
|
|
|
@@ -96,7 +96,7 @@ npx chati-dev health
|
|
|
96
96
|
Checks:
|
|
97
97
|
1. All registered entities exist on disk
|
|
98
98
|
2. Schema files are valid JSON
|
|
99
|
-
3. Constitution has >=
|
|
99
|
+
3. Constitution has >= 23 articles
|
|
100
100
|
4. Agents contain required protocol references
|
|
101
101
|
5. Entity count matches actual file count
|
|
102
102
|
6. Checksums match (if calculated)
|
|
@@ -16,7 +16,7 @@ Claude Code spawns each hook as a child process, waits for JSON output, then pro
|
|
|
16
16
|
| PreCompact | `.*` | session-digest.js | Session state capture + auto-dream + daily digest |
|
|
17
17
|
| PreToolUse | `Read` | read-protection.js | Block reading sensitive files |
|
|
18
18
|
| PreToolUse | `Write\|Edit` | mode-governance.js | Write scope enforcement by phase |
|
|
19
|
-
| PreToolUse | `Write\|Edit` | constitution-guard.js | Secret detection +
|
|
19
|
+
| PreToolUse | `Write\|Edit` | constitution-guard.js | Secret detection + 21 shell injection checks |
|
|
20
20
|
| PreToolUse | `Write\|Edit` | undercover-guard.js | Sanitize framework terms from deliverables |
|
|
21
21
|
| PreToolUse | `Write\|Edit` | style-guard.js | Em-dash and emoji enforcement |
|
|
22
22
|
| PreToolUse | `Bash` | constitution-guard.js | Destructive command + shell injection checks |
|
|
@@ -31,7 +31,7 @@ Claude Code spawns each hook as a child process, waits for JSON output, then pro
|
|
|
31
31
|
| PreCompact | 1 | ~50-200ms | Runs rarely (context compaction). Auto-dream may add 5-10s if triggered |
|
|
32
32
|
| PreToolUse (Read) | 1 | ~30ms | Minimal overhead per file read |
|
|
33
33
|
| PreToolUse (Write/Edit) | 4 | ~200ms | Heaviest path. 4 sequential hooks |
|
|
34
|
-
| PreToolUse (Bash) | 3 | ~150ms |
|
|
34
|
+
| PreToolUse (Bash) | 3 | ~150ms | 21 regex checks in constitution-guard are negligible (<5ms) |
|
|
35
35
|
|
|
36
36
|
## Performance Characteristics
|
|
37
37
|
|
|
@@ -42,7 +42,7 @@ Claude Code spawns each hook as a child process, waits for JSON output, then pro
|
|
|
42
42
|
|
|
43
43
|
## Optimization Notes
|
|
44
44
|
|
|
45
|
-
1. constitution-guard's
|
|
45
|
+
1. constitution-guard's 21 shell injection regex checks run in <5ms total (all patterns compiled once)
|
|
46
46
|
2. undercover-guard and style-guard could be skipped in discover/plan phases (no code being written)
|
|
47
47
|
3. If latency becomes noticeable, consider merging undercover-guard + style-guard into one hook (same event, similar logic)
|
|
48
48
|
4. license-guard has a 5-minute ping throttle to avoid network latency on every message
|
|
@@ -45,4 +45,4 @@ notes: |
|
|
|
45
45
|
- Every migration is idempotent (safe to run multiple times)
|
|
46
46
|
- Backup is created BEFORE any migration
|
|
47
47
|
- Automatic rollback on failure
|
|
48
|
-
- User artifacts (
|
|
48
|
+
- User artifacts (artifacts/, chati.dev/intelligence/) are NEVER modified
|
|
@@ -34,17 +34,17 @@ operations:
|
|
|
34
34
|
- .chati/checkpoints
|
|
35
35
|
- .chati/decisions
|
|
36
36
|
- chati.dev/data
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
37
|
+
- artifacts/0-WU
|
|
38
|
+
- artifacts/1-Brief
|
|
39
|
+
- artifacts/2-PRD
|
|
40
|
+
- artifacts/3-Architecture
|
|
41
|
+
- artifacts/4-UX
|
|
42
|
+
- artifacts/5-Phases
|
|
43
|
+
- artifacts/6-Tasks
|
|
44
|
+
- artifacts/7-QA-Planning
|
|
45
|
+
- artifacts/8-QA-Impl
|
|
46
|
+
- artifacts/9-Deploy
|
|
47
|
+
- artifacts/handoffs
|
|
48
48
|
|
|
49
49
|
# 2. Create agent memory directories
|
|
50
50
|
- type: create_directory
|
|
@@ -17,8 +17,8 @@ preconditions:
|
|
|
17
17
|
version: "4.0.0"
|
|
18
18
|
message: "Requires chati.dev v4.0.0 or later"
|
|
19
19
|
- type: constitution_articles
|
|
20
|
-
count:
|
|
21
|
-
message: "Requires Constitution with
|
|
20
|
+
count: 22
|
|
21
|
+
message: "Requires Constitution with 22 Articles"
|
|
22
22
|
|
|
23
23
|
backup:
|
|
24
24
|
directories:
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
migration:
|
|
2
|
+
from: "4.2.0"
|
|
3
|
+
to: "4.3.0"
|
|
4
|
+
description: "Framework/user separation hardening: comprehensive .gitignore, tracked-file detection, runtime boundary fixes"
|
|
5
|
+
breaking: false
|
|
6
|
+
|
|
7
|
+
# This migration ensures users upgrading from any v4.2.x to v4.3.0 get:
|
|
8
|
+
# 1. The new comprehensive .gitignore (covers .chati.dev/, .chati/, providers, etc.)
|
|
9
|
+
# 2. Detection + warning if framework files are already tracked in git
|
|
10
|
+
# 3. New 4.3.0 runtime boundary fixes (delivered via copyFrameworkFiles, this is a no-op step)
|
|
11
|
+
#
|
|
12
|
+
# Step types `update_gitignore` and `warn_tracked_files` are introduced in 4.3.0
|
|
13
|
+
# and require src/upgrade/migrator.js >= the corresponding feature.
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
# Step 1: Update .gitignore to the comprehensive 4.3.0 template.
|
|
17
|
+
# Idempotent: detects old marker (pre-4.3.0) and replaces; detects new marker and replaces.
|
|
18
|
+
# Merges with user's existing .gitignore (does not overwrite user content outside the chati block).
|
|
19
|
+
- type: update_gitignore
|
|
20
|
+
description: "Replace minimal pre-4.3.0 .gitignore block with comprehensive framework exclusions"
|
|
21
|
+
|
|
22
|
+
# Step 2: Detect framework files already tracked in git history (pre-4.3.0 leaks).
|
|
23
|
+
# Non-blocking: prints a warning with exact `git rm --cached` commands.
|
|
24
|
+
# User decides when/whether to clean up history.
|
|
25
|
+
- type: warn_tracked_files
|
|
26
|
+
description: "Warn if framework files were committed before .gitignore was fixed"
|
|
27
|
+
|
|
28
|
+
# Validation: nothing critical to verify (gitignore content is variable per user).
|
|
29
|
+
# The warn_tracked_files step itself acts as observability.
|