@jaguilar87/gaia-ops 2.1.0 → 2.2.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/CHANGELOG.md CHANGED
@@ -7,6 +7,71 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ---
9
9
 
10
+ ## [2.2.0] - 2025-11-10
11
+
12
+ ### Added - Unified Settings Template & Auto-Installation
13
+ - **NEW:** Created unified `templates/settings.template.json` (214 lines)
14
+ - Merged functionality from `settings.json` + `settings.local.json`
15
+ - Includes all hooks (PreToolUse, PostToolUse, SubagentStop)
16
+ - Complete permissions (75+ allow, 9 deny, 27 ask entries)
17
+ - Full security tier definitions (T0-T3)
18
+ - Environment configuration
19
+
20
+ - **Auto-Installation:** `gaia-init.js` now automatically generates `.claude/settings.json`
21
+ - Added `generateSettingsJson()` function
22
+ - Integrated into installation workflow (Step 6.5)
23
+ - Projects get complete settings from day 1
24
+
25
+ ### Removed - Dead Code Elimination
26
+ - **CLAUDE.md** from package root (only template exists now)
27
+ - **templates/code-examples/** (321 lines - never imported or executed)
28
+ - `commit_validation.py`
29
+ - `clarification_workflow.py`
30
+ - `approval_gate_workflow.py`
31
+ - **templates/project-context.template.json** (126 lines - unused, installer generates programmatically)
32
+ - **templates/project-context.template.aws.json** (128 lines - never used)
33
+ - **package.json:** Removed `CLAUDE.md` from files array
34
+
35
+ ### Changed - Package Consistency
36
+ - **templates/CLAUDE.template.md:**
37
+ - Updated all references: `.claude/docs/` → `.claude/config/`
38
+ - Updated package name: `@aaxis/claude-agents` → `@jaguilar87/gaia-ops`
39
+ - Removed code-examples reference (no longer exists)
40
+
41
+ - **README.en.md:**
42
+ - Updated API examples to use `@jaguilar87/gaia-ops`
43
+ - Changed `getDocPath()` → `getConfigPath()` (correct function)
44
+
45
+ - **index.js:**
46
+ - Updated header and JSDoc comments with new package name
47
+ - Updated example usage
48
+
49
+ - **agents/claude-architect.md:**
50
+ - Updated system paths to reflect gaia-ops package structure
51
+ - Clarified symlink architecture and layout
52
+
53
+ ### Improved - Package Quality
54
+ - **Reduced template bloat by 57%:** 882 lines → 378 lines (504 lines removed)
55
+ - **Single source of truth:** One settings template instead of scattered config
56
+ - **Cleaner architecture:** Only actual templates remain in `templates/`
57
+ - **Better defaults:** Projects start with complete, production-ready settings
58
+
59
+ ### Benefits
60
+ - ✅ **Unified configuration:** Everything in one settings.json file
61
+ - ✅ **Automatic setup:** No manual settings configuration needed
62
+ - ✅ **Smaller package:** 57% reduction in template code
63
+ - ✅ **Flexibility maintained:** Users can still create `settings.local.json` for overrides
64
+ - ✅ **Package consistency:** All references use correct package name
65
+
66
+ ### Final Template Structure
67
+ ```
68
+ templates/
69
+ ├── CLAUDE.template.md (164 lines) - Orchestrator instructions
70
+ └── settings.template.json (214 lines) - Complete Claude Code settings
71
+ ```
72
+
73
+ ---
74
+
10
75
  ## [2.1.0] - 2025-11-10
11
76
 
12
77
  ### Added - Provider-Specific Context Contracts
package/README.en.md CHANGED
@@ -14,6 +14,7 @@ Multi-agent orchestration system for Claude Code - DevOps automation toolkit.
14
14
 
15
15
  ### Features
16
16
 
17
+ - **Multi-cloud support** - Works with GCP, AWS, and ready for Azure
17
18
  - **6 specialist agents** (terraform-architect, gitops-operator, gcp-troubleshooter, aws-troubleshooter, devops-developer, claude-architect)
18
19
  - **3 meta-agents** (Explore, Plan, claude-architect)
19
20
  - **Clarification engine** for ambiguity detection
@@ -160,17 +161,17 @@ If you need to programmatically access paths in the package:
160
161
  import {
161
162
  getAgentPath,
162
163
  getToolPath,
163
- getDocPath
164
- } from '@aaxis/claude-agents';
164
+ getConfigPath
165
+ } from '@jaguilar87/gaia-ops';
165
166
 
166
167
  const agentPath = getAgentPath('gitops-operator');
167
- // → /path/to/node_modules/@aaxis/claude-agents/agents/gitops-operator.md
168
+ // → /path/to/node_modules/@jaguilar87/gaia-ops/agents/gitops-operator.md
168
169
 
169
170
  const toolPath = getToolPath('context_provider.py');
170
- // → /path/to/node_modules/@aaxis/claude-agents/tools/context_provider.py
171
+ // → /path/to/node_modules/@jaguilar87/gaia-ops/tools/context_provider.py
171
172
 
172
- const docPath = getDocPath('orchestration-workflow.md');
173
- // → /path/to/node_modules/@aaxis/claude-agents/docs/orchestration-workflow.md
173
+ const configPath = getConfigPath('orchestration-workflow.md');
174
+ // → /path/to/node_modules/@jaguilar87/gaia-ops/config/orchestration-workflow.md
174
175
  ```
175
176
 
176
177
  ## Versioning
package/README.md CHANGED
@@ -14,6 +14,7 @@ Sistema de orquestación multi-agente para Claude Code - Toolkit de automatizaci
14
14
 
15
15
  ### Características
16
16
 
17
+ - **Soporte multi-cloud** - Funciona con GCP, AWS, y listo para Azure
17
18
  - **6 agentes especialistas** (terraform-architect, gitops-operator, gcp-troubleshooter, aws-troubleshooter, devops-developer, claude-architect)
18
19
  - **3 meta-agentes** (Explore, Plan, claude-architect)
19
20
  - **Motor de clarificación** para detección de ambigüedades
@@ -181,7 +182,7 @@ Este paquete sigue [Versionamiento Semántico](https://semver.org/):
181
182
  - **MINOR:** Nuevas características, agentes o mejoras
182
183
  - **PATCH:** Correcciones de bugs, clarificaciones, errores tipográficos
183
184
 
184
- Versión actual: **1.0.3**
185
+ Versión actual: **2.1.0**
185
186
 
186
187
  Ver [CHANGELOG.md](./CHANGELOG.md) para el historial de versiones.
187
188
 
@@ -15,16 +15,16 @@ You are a senior system architect and AI agent systems specialist. Your unique p
15
15
  2. **Locate & Read:** You know where EVERYTHING lives. Read only what you need for THIS request.
16
16
  3. **Analyze & Respond:** Provide comprehensive answer with evidence, examples, and actionable recommendations.
17
17
 
18
- **Where Everything Lives (You Know This By Heart):**
19
- - 🏗️ System: `/home/jaguilar/aaxis/rnd/repositories/.claude/`
20
- - 📋 Orchestrator: `CLAUDE.md` (workflow logic)
21
- - 🤖 Agents: `.claude/agents/` (5 specialists + you)
22
- - 🛠️ Tools: `.claude/tools/` (routing, context, validation)
23
- - 📊 Logs: `.claude/logs/` (JSONL audit trail)
24
- - Tests: `.claude/tests/` (55+ tests)
25
- - 🎯 Spec-Kit: `.claude/commands/speckit.*` (7 commands)
26
- - 💾 Sessions: `.claude/session/` (active + bundles)
27
- - 🔗 Multi-repo: `ops/` (symlinks: claude-rnd, claude-vtr)
18
+ **Where Everything Lives (Package + Symlink Layout):**
19
+ - 🏗️ Package root: `/home/jaguilar/aaxis/rnd/repositories/gaia-ops/` → mirrors `node_modules/@jaguilar87/gaia-ops/` when installed
20
+ - 📋 Orchestrator: `CLAUDE.md` at the package root (templated into consuming repos)
21
+ - 🤖 Agents: `agents/*.md` (6 specialists: terraform-architect, gitops-operator, gcp-troubleshooter, aws-troubleshooter, devops-developer, claude-architect)
22
+ - 🛠️ Tools: `tools/` (context_provider.py, agent_router.py, clarify_engine.py, approval_gate.py, commit_validator.py, task_manager.py)
23
+ - 📚 Config docs: `config/` (AGENTS, orchestration-workflow, git-standards, context-contracts, agent-catalog)
24
+ - 🗂️ Commands: `commands/*.md` (`/architect`, `/save-session`, `/session-status`, `/speckit.*`)
25
+ - 🎯 Spec-Kit assets: `speckit/README*.md`, `speckit/templates/`, `speckit/scripts/`, `speckit/governance.md`, `speckit/decisions/`
26
+ - 🔧 Reference stacks: `terraform/`, `gitops/`, `app-services/` illustrate how agents interact with user IaC/App repos
27
+ - 💾 Project data: consuming repos host `.claude/project-context.json`, `.claude/logs/`, `.claude/tests/`, while `ops/` carries shared symlink helpers
28
28
 
29
29
  **Your Superpowers:**
30
30
  - ✅ You understand the ENTIRE system (no one else does)
@@ -65,43 +65,51 @@ You have intrinsic knowledge of the system's structure. You know EXACTLY where t
65
65
  ### Core System Files (Always Available)
66
66
 
67
67
  ```
68
- Agent System Structure:
69
- ├── CLAUDE.md # Master orchestrator logic (715 lines)
70
- ├── .claude/
71
- │ ├── project-context.json # Project SSOT (varies by project)
72
- │ ├── settings.json # System configuration
73
- │ ├── agents/ # 5 specialized agents
74
- ├── gitops-operator.md (340 lines)
75
- ├── terraform-architect.md (270 lines)
76
- │ ├── gcp-troubleshooter.md (305 lines)
77
- │ │ ├── aws-troubleshooter.md (289 lines)
78
- │ └── devops-developer.md (89 lines)
79
- │ ├── tools/ # System intelligence
80
- ├── agent_router.py # Semantic routing (92.7% accuracy target)
81
- ├── context_provider.py # Deterministic context generation
82
- ├── context_section_reader.py # Selective context loading
83
- │ ├── semantic_matcher.py # Fallback routing
84
- │ │ ├── agent_invoker_helper.py # Agent invocation utilities
85
- │ │ ├── tasks-richer.py # Task enrichment
86
- │ │ └── generate_embeddings.py # Embedding generation
87
- ├── hooks/ # Security & audit layer
88
- │ │ ├── pre_tool_use.py # Pre-execution validation
89
- │ │ ├── post_tool_use.py # Post-execution audit
90
- │ │ └── subagent_stop.py # Agent completion capture
91
- ├── commands/ # 13 slash commands
92
- ├── session/ # Session management
93
- │ │ ├── active/context.json # Live session state
94
- │ │ ├── bundles/ # Historical snapshots
95
- │ │ └── scripts/ # Session tools
96
- │ ├── tests/ # Test suite (55+ tests)
97
- │ │ ├── test_semantic_routing.py # Routing accuracy tests
98
- │ │ ├── test_all_functionality.py # Core system tests
99
- │ │ └── test_ssot_policies.py # SSOT validation
100
- │ ├── logs/ # Audit trail (JSONL format)
101
- │ └── schemas/ # JSON schemas
102
- └── improvement-ideas.md # System improvement backlog
68
+ gaia-ops/ (mirrors node_modules/@jaguilar87/gaia-ops/ and symlinks into project .claude/)
69
+ ├── CLAUDE.md # Master orchestrator logic + workflow (≈150 lines here, expanded in config/)
70
+ ├── agents/ # 6 specialized agent prompts
71
+ │ ├── terraform-architect.md
72
+ │ ├── gitops-operator.md
73
+ │ ├── gcp-troubleshooter.md
74
+ │ ├── aws-troubleshooter.md
75
+ │ ├── devops-developer.md
76
+ └── claude-architect.md
77
+ ├── tools/ # System intelligence + automation
78
+ ├── context_provider.py # Deterministic context generation
79
+ │ ├── agent_router.py # Semantic routing (92.7% target accuracy)
80
+ │ ├── clarify_engine.py # Ambiguity detection
81
+ │ ├── approval_gate.py # Tiered approval logic
82
+ │ ├── commit_validator.py # Conventional commits enforcement
83
+ └── task_manager.py # Large-plan chunking
84
+ ├── hooks/ # Git + security hooks
85
+ ├── commands/ # User-facing slash commands (architect/save-session/speckit.*)
86
+ ├── config/ # Documentation bundle (AGENTS/orchestration-workflow/git-standards/context-contracts/agent-catalog)
87
+ ├── speckit/ # Spec-Kit 2.0 framework (README*.md, governance.md, decisions/, templates/, scripts/)
88
+ ├── app-services/ # Sample application services for reference
89
+ ├── gitops/ # Reference GitOps manifests
90
+ ├── terraform/ # Reference Terraform stacks
91
+ ├── templates/ # CLAUDE + code templates
92
+ ├── tests/ # Test suite (55+ cases referenced in README)
93
+ ├── CHANGELOG.md # Version history (Semantic Versioning)
94
+ └── package.json / index.js # NPM package metadata + helper exports
103
95
  ```
104
96
 
97
+ When `npx @jaguilar87/gaia-ops init` (or `gaia-init` after a global install) runs in a consuming project it:
98
+ 1. Detects GitOps/Terraform/AppServices paths and installs Claude Code if needed.
99
+ 2. Creates `.claude/` and symlinks `agents/`, `tools/`, `hooks/`, `commands/`, `templates/`, and `config/` back to this package.
100
+ 3. Generates `CLAUDE.md`, links `AGENTS.md`, and seeds `.claude/project-context.json` (project SSOT). Project-owned items such as `.claude/logs/`, `.claude/tests/`, and session data remain local.
101
+
102
+ ### Installation & Project Layout (from README.md / README.en.md)
103
+ - Quick start: `npx @jaguilar87/gaia-ops init` (or `npm install -g @jaguilar87/gaia-ops && gaia-init`) bootstraps everything; manual installs `npm install @jaguilar87/gaia-ops` + symlink commands from README.
104
+ - Resulting structure: `your-project/.claude/{agents,tools,hooks,commands,templates,config}` → symlinked to this package under `node_modules/@jaguilar87/gaia-ops/`, while `logs/`, `tests/`, and `project-context.json` stay project-specific.
105
+ - Reference directories `gitops/`, `terraform/`, and `app-services/` inside the package illustrate how specialized agents should reason about user IaC/App codebases.
106
+
107
+ ### Spec-Kit 2.0 Workflow Snapshot (from speckit/README*.md)
108
+ - `speckit/` hosts bilingual docs, governance (`speckit/governance.md`), immutable ADRs (`speckit/decisions/ADR-*.md`), templates, and scripts backing `/speckit.*` commands.
109
+ - Core flow: `/speckit.init` → `/speckit.specify` → `/speckit.plan` → `/speckit.tasks` → `/speckit.implement`, each auto-injecting project-context data, clarification, validation, and risk analysis (T2/T3 gates) directly into specs/plan/tasks artifacts.
110
+ - Helper commands: `/speckit.add-task` adds enriched tasks mid-implementation, `/speckit.analyze-task` deep-dives high-risk tasks, and `/save-session` captures context bundles for portability.
111
+ - Spec-Kit 2.0 removes standalone enrichers (`tasks-richer.py`), performs inline validation, and relies on `.claude/project-context.json` for deterministic context so the architect agent can reason about idea → spec → plan → tasks → implementation continuity.
112
+
105
113
  ### Key System Metrics (What to Track)
106
114
 
107
115
  - **Routing Accuracy:** Target 92.7% (from tests)
@@ -818,4 +826,3 @@ python3 -m pytest .claude/tests/ --cov=.claude/tools --cov-report=term
818
826
  ---
819
827
 
820
828
  **Remember:** You are not just analyzing files - you are understanding a living, evolving system. Your insights drive its continuous improvement.
821
-
package/bin/gaia-init.js CHANGED
@@ -603,6 +603,29 @@ async function createClaudeDirectory() {
603
603
  }
604
604
  }
605
605
 
606
+ /**
607
+ * Generate settings.json from template
608
+ */
609
+ async function generateSettingsJson() {
610
+ const spinner = ora('Generating .claude/settings.json...').start();
611
+
612
+ try {
613
+ const settingsPath = join(CWD, '.claude', 'settings.json');
614
+ const templatePath = getTemplatePath('settings.template.json');
615
+
616
+ // Read template
617
+ const template = await fs.readFile(templatePath, 'utf-8');
618
+
619
+ // Write settings.json (no placeholders to replace)
620
+ await fs.writeFile(settingsPath, template, 'utf-8');
621
+
622
+ spinner.succeed('.claude/settings.json generated');
623
+ } catch (error) {
624
+ spinner.fail('Failed to generate settings.json');
625
+ throw error;
626
+ }
627
+ }
628
+
606
629
  /**
607
630
  * Generate CLAUDE.md from template
608
631
  */
@@ -1000,6 +1023,9 @@ async function main() {
1000
1023
  // Step 6: Create .claude/ directory with symlinks
1001
1024
  await createClaudeDirectory();
1002
1025
 
1026
+ // Step 6.5: Generate settings.json
1027
+ await generateSettingsJson();
1028
+
1003
1029
  // Step 7: Generate CLAUDE.md
1004
1030
  await generateClaudeMd(config);
1005
1031
 
package/index.js CHANGED
@@ -1,12 +1,13 @@
1
1
  /**
2
- * @aaxis/claude-agents
2
+ * @jaguilar87/gaia-ops
3
3
  *
4
- * Shared Claude Code agent system for Aaxis DevOps workflows
4
+ * Multi-agent orchestration system for Claude Code - DevOps automation toolkit
5
5
  *
6
6
  * Usage:
7
- * import { getAgentPath, getToolPath } from '@aaxis/claude-agents';
7
+ * import { getAgentPath, getToolPath, getConfigPath } from '@jaguilar87/gaia-ops';
8
8
  * const agentPath = getAgentPath('gitops-operator');
9
9
  * const toolPath = getToolPath('context_provider.py');
10
+ * const configPath = getConfigPath('orchestration-workflow.md');
10
11
  */
11
12
 
12
13
  import { fileURLToPath } from 'url';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaguilar87/gaia-ops",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Multi-agent orchestration system for Claude Code - DevOps automation toolkit",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -39,7 +39,6 @@
39
39
  "templates/",
40
40
  "config/",
41
41
  "speckit/",
42
- "CLAUDE.md",
43
42
  "CHANGELOG.md",
44
43
  "README.en.md",
45
44
  "index.js"
@@ -38,7 +38,7 @@ Guidance for Claude Code orchestrator working in this repository.
38
38
 
39
39
  ## Orchestrator Workflow
40
40
 
41
- **See:** `.claude/docs/orchestration-workflow.md` for complete details.
41
+ **See:** `.claude/config/orchestration-workflow.md` for complete details.
42
42
 
43
43
  ### Rule 5.0 [P0]: Six-Phase Workflow
44
44
 
@@ -73,12 +73,12 @@ Guidance for Claude Code orchestrator working in this repository.
73
73
  - **Max:** 72 chars, imperative mood, no period
74
74
  - **Forbidden:** Claude Code attribution footers
75
75
 
76
- **Complete spec:** `.claude/docs/git-standards.md`
76
+ **Complete spec:** `.claude/config/git-standards.md`
77
77
  **Config:** `.claude/config/git_standards.json`
78
78
 
79
79
  ## Context Contracts
80
80
 
81
- **See:** `.claude/docs/context-contracts.md` for complete contracts.
81
+ **See:** `.claude/config/context-contracts.md` for complete contracts.
82
82
 
83
83
  | Agent | Required Context |
84
84
  |-------|-----------------|
@@ -90,7 +90,7 @@ Guidance for Claude Code orchestrator working in this repository.
90
90
 
91
91
  ## Agent System
92
92
 
93
- **See:** `.claude/docs/agent-catalog.md` for full capabilities.
93
+ **See:** `.claude/config/agent-catalog.md` for full capabilities.
94
94
 
95
95
  ### Project Agents (use context_provider.py)
96
96
 
@@ -148,18 +148,17 @@ Guidance for Claude Code orchestrator working in this repository.
148
148
 
149
149
  **NOTE:** All paths are relative to this repository root, resolved at runtime via npm package.
150
150
 
151
- - **Agent system:** `.claude/` (symlinked to `node_modules/@aaxis/claude-agents/`)
151
+ - **Agent system:** `.claude/` (symlinked to `node_modules/@jaguilar87/gaia-ops/`)
152
152
  - **Orchestrator:** `./CLAUDE.md` (this file)
153
- - **Tools:** `.claude/tools/` → `node_modules/@aaxis/claude-agents/tools/`
153
+ - **Tools:** `.claude/tools/` → `node_modules/@jaguilar87/gaia-ops/tools/`
154
154
  - **Logs:** `.claude/logs/` (project-specific, NOT symlinked)
155
155
  - **Tests:** `.claude/tests/` (project-specific, NOT symlinked)
156
156
  - **Project SSOT:** `.claude/project-context.json` (project-specific, NOT symlinked)
157
157
 
158
158
  ## References
159
159
 
160
- - **Orchestration workflow:** `.claude/docs/orchestration-workflow.md`
161
- - **Git standards:** `.claude/docs/git-standards.md`
162
- - **Context contracts:** `.claude/docs/context-contracts.md`
163
- - **Agent catalog:** `.claude/docs/agent-catalog.md`
164
- - **Code examples:** `.claude/templates/code-examples/`
165
- - **Package source:** `@aaxis/claude-agents` (npm package)
160
+ - **Orchestration workflow:** `.claude/config/orchestration-workflow.md`
161
+ - **Git standards:** `.claude/config/git-standards.md`
162
+ - **Context contracts:** `.claude/config/context-contracts.md`
163
+ - **Agent catalog:** `.claude/config/agent-catalog.md`
164
+ - **Package source:** `@jaguilar87/gaia-ops` (npm package)