aios-core 4.0.4 → 4.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.
Files changed (107) hide show
  1. package/.aios-core/cli/commands/migrate/analyze.js +6 -6
  2. package/.aios-core/cli/commands/migrate/backup.js +2 -2
  3. package/.aios-core/cli/commands/migrate/execute.js +4 -4
  4. package/.aios-core/cli/commands/migrate/index.js +5 -5
  5. package/.aios-core/cli/commands/migrate/rollback.js +6 -6
  6. package/.aios-core/cli/commands/migrate/update-imports.js +2 -2
  7. package/.aios-core/cli/commands/migrate/validate.js +2 -2
  8. package/.aios-core/cli/commands/pro/index.js +52 -0
  9. package/.aios-core/cli/index.js +1 -1
  10. package/.aios-core/core/ids/registry-updater.js +29 -3
  11. package/.aios-core/core/migration/migration-config.yaml +2 -2
  12. package/.aios-core/core/migration/module-mapping.yaml +2 -2
  13. package/.aios-core/core/registry/README.md +2 -2
  14. package/.aios-core/core/synapse/context/context-builder.js +34 -0
  15. package/.aios-core/core/synapse/diagnostics/collectors/consistency-collector.js +168 -0
  16. package/.aios-core/core/synapse/diagnostics/collectors/hook-collector.js +129 -0
  17. package/.aios-core/core/synapse/diagnostics/collectors/manifest-collector.js +82 -0
  18. package/.aios-core/core/synapse/diagnostics/collectors/output-analyzer.js +134 -0
  19. package/.aios-core/core/synapse/diagnostics/collectors/pipeline-collector.js +75 -0
  20. package/.aios-core/core/synapse/diagnostics/collectors/quality-collector.js +252 -0
  21. package/.aios-core/core/synapse/diagnostics/collectors/relevance-matrix.js +174 -0
  22. package/.aios-core/core/synapse/diagnostics/collectors/safe-read-json.js +31 -0
  23. package/.aios-core/core/synapse/diagnostics/collectors/session-collector.js +102 -0
  24. package/.aios-core/core/synapse/diagnostics/collectors/timing-collector.js +126 -0
  25. package/.aios-core/core/synapse/diagnostics/collectors/uap-collector.js +83 -0
  26. package/.aios-core/core/synapse/diagnostics/report-formatter.js +484 -0
  27. package/.aios-core/core/synapse/diagnostics/synapse-diagnostics.js +95 -0
  28. package/.aios-core/core/synapse/engine.js +73 -20
  29. package/.aios-core/core/synapse/runtime/hook-runtime.js +60 -0
  30. package/.aios-core/core-config.yaml +6 -0
  31. package/.aios-core/data/agent-config-requirements.yaml +2 -2
  32. package/.aios-core/data/aios-kb.md +4 -4
  33. package/.aios-core/data/entity-registry.yaml +210 -10
  34. package/.aios-core/data/registry-update-log.jsonl +52 -0
  35. package/.aios-core/development/agents/architect.md +10 -10
  36. package/.aios-core/development/agents/devops.md +93 -50
  37. package/.aios-core/development/agents/qa.md +94 -40
  38. package/.aios-core/development/agents/ux-design-expert.md +25 -25
  39. package/.aios-core/development/scripts/activation-runtime.js +63 -0
  40. package/.aios-core/development/scripts/generate-greeting.js +9 -8
  41. package/.aios-core/development/scripts/unified-activation-pipeline.js +102 -2
  42. package/.aios-core/development/tasks/{db-expansion-pack-integration.md → db-squad-integration.md} +5 -5
  43. package/.aios-core/development/tasks/{integrate-expansion-pack.md → integrate-squad.md} +2 -2
  44. package/.aios-core/development/tasks/next.md +3 -3
  45. package/.aios-core/development/tasks/pr-automation.md +2 -2
  46. package/.aios-core/development/tasks/publish-npm.md +257 -0
  47. package/.aios-core/development/tasks/release-management.md +4 -4
  48. package/.aios-core/development/tasks/setup-github.md +1 -1
  49. package/.aios-core/development/tasks/squad-creator-migrate.md +1 -1
  50. package/.aios-core/development/tasks/squad-creator-sync-ide-command.md +14 -14
  51. package/.aios-core/development/tasks/update-aios.md +1 -1
  52. package/.aios-core/development/tasks/validate-next-story.md +99 -2
  53. package/.aios-core/docs/standards/AIOS-COLOR-PALETTE-QUICK-REFERENCE.md +1 -1
  54. package/.aios-core/docs/standards/AIOS-COLOR-PALETTE-V2.1.md +5 -5
  55. package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md +21 -21
  56. package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.2-SUMMARY.md +25 -25
  57. package/.aios-core/docs/standards/OPEN-SOURCE-VS-SERVICE-DIFFERENCES.md +4 -4
  58. package/.aios-core/docs/standards/QUALITY-GATES-SPECIFICATION.md +3 -3
  59. package/.aios-core/docs/standards/STANDARDS-INDEX.md +13 -13
  60. package/.aios-core/docs/standards/STORY-TEMPLATE-V2-SPECIFICATION.md +1 -1
  61. package/.aios-core/framework-config.yaml +4 -0
  62. package/.aios-core/infrastructure/scripts/codex-skills-sync/index.js +182 -0
  63. package/.aios-core/infrastructure/scripts/codex-skills-sync/validate.js +172 -0
  64. package/.aios-core/infrastructure/scripts/ide-sync/README.md +14 -0
  65. package/.aios-core/infrastructure/scripts/ide-sync/index.js +6 -0
  66. package/.aios-core/infrastructure/scripts/tool-resolver.js +4 -4
  67. package/.aios-core/infrastructure/scripts/validate-paths.js +142 -0
  68. package/.aios-core/infrastructure/templates/aios-sync.yaml.template +11 -11
  69. package/.aios-core/infrastructure/templates/github-workflows/README.md +1 -1
  70. package/.aios-core/install-manifest.yaml +193 -109
  71. package/.aios-core/local-config.yaml.template +2 -0
  72. package/.aios-core/manifests/agents.csv +29 -1
  73. package/.aios-core/manifests/tasks.csv +80 -3
  74. package/.aios-core/product/README.md +2 -2
  75. package/.aios-core/product/data/integration-patterns.md +1 -1
  76. package/.aios-core/product/templates/ide-rules/cline-rules.md +1 -1
  77. package/.aios-core/product/templates/ide-rules/codex-rules.md +65 -0
  78. package/.aios-core/product/templates/ide-rules/copilot-rules.md +1 -1
  79. package/.aios-core/product/templates/ide-rules/roo-rules.md +1 -1
  80. package/.aios-core/user-guide.md +15 -14
  81. package/.aios-core/workflow-intelligence/engine/output-formatter.js +1 -1
  82. package/.claude/hooks/synapse-engine.js +9 -20
  83. package/README.md +14 -7
  84. package/bin/aios-init.js +255 -184
  85. package/bin/aios-minimal.js +2 -2
  86. package/bin/aios.js +4 -4
  87. package/package.json +6 -1
  88. package/packages/aios-pro-cli/bin/aios-pro.js +75 -2
  89. package/packages/aios-pro-cli/package.json +5 -1
  90. package/packages/aios-pro-cli/src/recover.js +100 -0
  91. package/packages/installer/src/__tests__/performance-benchmark.js +382 -0
  92. package/packages/installer/src/config/ide-configs.js +12 -1
  93. package/packages/installer/src/config/templates/core-config-template.js +2 -2
  94. package/packages/installer/src/installer/aios-core-installer.js +2 -2
  95. package/packages/installer/src/installer/file-hasher.js +97 -0
  96. package/packages/installer/src/installer/post-install-validator.js +41 -1
  97. package/packages/installer/src/pro/pro-scaffolder.js +335 -0
  98. package/packages/installer/src/utils/aios-colors.js +2 -2
  99. package/packages/installer/src/wizard/feedback.js +1 -1
  100. package/packages/installer/src/wizard/ide-config-generator.js +2 -2
  101. package/packages/installer/src/wizard/index.js +58 -19
  102. package/packages/installer/src/wizard/pro-setup.js +931 -0
  103. package/packages/installer/src/wizard/questions.js +20 -14
  104. package/packages/installer/src/wizard/validators.js +1 -1
  105. package/scripts/code-intel-health-check.js +343 -0
  106. package/scripts/package-synapse.js +323 -0
  107. package/scripts/validate-package-completeness.js +317 -0
@@ -105,7 +105,7 @@ persona:
105
105
  - Integration patterns (event-driven, messaging, webhooks)
106
106
  - Performance optimization (across all layers)
107
107
 
108
- delegate_to_data_architect:
108
+ delegate_to_data_engineer:
109
109
  when:
110
110
  - Database schema design (tables, relationships, indexes)
111
111
  - Query optimization and performance tuning
@@ -123,9 +123,9 @@ persona:
123
123
  collaboration_pattern: |
124
124
  When user asks data-related questions:
125
125
  1. For "which database?" → @architect answers from system perspective
126
- 2. For "design schema" → Delegate to @data-architect
127
- 3. For "optimize queries" → Delegate to @data-architect
128
- 4. For data layer integration → @architect designs, @data-architect provides schema
126
+ 2. For "design schema" → Delegate to @data-engineer
127
+ 3. For "optimize queries" → Delegate to @data-engineer
128
+ 4. For data layer integration → @architect designs, @data-engineer provides schema
129
129
 
130
130
  delegate_to_github_devops:
131
131
  when:
@@ -257,7 +257,7 @@ dependencies:
257
257
  - exa # Research technologies and best practices
258
258
  - context7 # Look up library documentation and technical references
259
259
  - git # Read-only: status, log, diff (NO PUSH - use @github-devops)
260
- - supabase-cli # High-level database architecture (schema design → @data-architect)
260
+ - supabase-cli # High-level database architecture (schema design → @data-engineer)
261
261
  - railway-cli # Infrastructure planning and deployment
262
262
  - coderabbit # Automated code review for architectural patterns and security
263
263
 
@@ -402,7 +402,7 @@ Type `*help` to see all commands, or `*yolo` to skip confirmations.
402
402
 
403
403
  **I collaborate with:**
404
404
 
405
- - **@db-sage (Dara):** For database schema design and query optimization
405
+ - **@data-engineer (Dara):** For database schema design and query optimization
406
406
  - **@ux-design-expert (Uma):** For frontend architecture and user flows
407
407
  - **@pm (Morgan):** Receives requirements and strategic direction from
408
408
 
@@ -412,7 +412,7 @@ Type `*help` to see all commands, or `*yolo` to skip confirmations.
412
412
 
413
413
  **When to use others:**
414
414
 
415
- - Database design → Use @db-sage
415
+ - Database design → Use @data-engineer
416
416
  - UX/UI design → Use @ux-design-expert
417
417
  - Code implementation → Use @dev
418
418
  - Push operations → Use @github-devops
@@ -439,21 +439,21 @@ Type `*help` to see all commands, or `*yolo` to skip confirmations.
439
439
 
440
440
  1. **Requirements analysis** → Review PRD and constraints
441
441
  2. **Architecture design** → `*create-full-stack-architecture` or specific layer
442
- 3. **Collaboration** → Coordinate with @db-sage (database) and @ux-design-expert (frontend)
442
+ 3. **Collaboration** → Coordinate with @data-engineer (database) and @ux-design-expert (frontend)
443
443
  4. **Documentation** → `*document-project` for comprehensive docs
444
444
  5. **Handoff** → Provide architecture to @dev for implementation
445
445
 
446
446
  ### Common Pitfalls
447
447
 
448
448
  - ❌ Designing without understanding NFRs (scalability, security)
449
- - ❌ Not consulting @db-sage for data layer
449
+ - ❌ Not consulting @data-engineer for data layer
450
450
  - ❌ Over-engineering for current requirements
451
451
  - ❌ Skipping architecture checklists
452
452
  - ❌ Not considering brownfield constraints
453
453
 
454
454
  ### Related Agents
455
455
 
456
- - **@db-sage (Dara)** - Database architecture
456
+ - **@data-engineer (Dara)** - Database architecture
457
457
  - **@ux-design-expert (Uma)** - Frontend architecture
458
458
  - **@pm (Morgan)** - Receives requirements from
459
459
 
@@ -129,56 +129,99 @@ persona:
129
129
 
130
130
  # All commands require * prefix when used (e.g., *help)
131
131
  commands:
132
- # Core Commands
133
- - help: Show all available commands with descriptions
134
- - detect-repo: Detect repository context (framework-dev vs project-dev)
135
-
136
- # Quality & Push
137
- - version-check: Analyze version and recommend next
138
- - pre-push: Run all quality checks before push
139
- - push: Execute git push after quality gates pass
140
-
141
- # GitHub Operations
142
- - create-pr: Create pull request from current branch
143
- - configure-ci: Setup/update GitHub Actions workflows
144
- - release: Create versioned release with changelog
145
-
146
- # Repository Management
147
- - cleanup: Identify and remove stale branches/files
148
- - init-project-status: Initialize dynamic project status tracking (Story 6.1.2.4)
149
-
150
- # Environment Setup (Greenfield Phase 0)
151
- - environment-bootstrap: Complete environment setup for new projects (CLIs, auth, Git/GitHub)
152
- - setup-github: Configure DevOps infrastructure for user projects (workflows, CodeRabbit, branch protection, secrets) [Story 5.10]
153
-
154
- # MCP Management (via Docker Gateway) [Story 6.14]
155
- - search-mcp: Search available MCPs in Docker MCP Toolkit catalog
156
- - add-mcp: Add MCP server to Docker MCP Toolkit
157
- - list-mcps: List currently enabled MCPs and their tools
158
- - remove-mcp: Remove MCP server from Docker MCP Toolkit
159
- - setup-mcp-docker: Initial Docker MCP Toolkit configuration [Story 5.11]
160
-
161
- # Documentation Quality
162
- - check-docs: Verify documentation links integrity (broken, incorrect markings)
163
-
164
- # Worktree Management (Story 1.3-1.4 - ADE Infrastructure)
165
- - create-worktree: Create isolated worktree for story development
166
- - list-worktrees: List all active worktrees with status
167
- - remove-worktree: Remove worktree (with safety checks)
168
- - cleanup-worktrees: Remove all stale worktrees (> 30 days)
169
- - merge-worktree: Merge worktree branch back to base
170
-
171
- # Migration Management (Epic 2 - V2→V3 Migration)
172
- - inventory-assets: Generate migration inventory from V2 assets
173
- - analyze-paths: Analyze path dependencies and migration impact
174
- - migrate-agent: Migrate single agent from V2 to V3 format
175
- - migrate-batch: Batch migrate all agents with validation
176
-
177
- # Utilities
178
- - session-info: Show current session details (agent history, commands)
179
- - guide: Show comprehensive usage guide for this agent
180
- - yolo: 'Toggle permission mode (cycle: ask > auto > explore)'
181
- - exit: Exit DevOps mode
132
+ - name: help
133
+ visibility: [full, quick, key]
134
+ description: 'Show all available commands with descriptions'
135
+ - name: detect-repo
136
+ visibility: [full, quick, key]
137
+ description: 'Detect repository context (framework-dev vs project-dev)'
138
+ - name: version-check
139
+ visibility: [full, quick, key]
140
+ description: 'Analyze version and recommend next'
141
+ - name: pre-push
142
+ visibility: [full, quick, key]
143
+ description: 'Run all quality checks before push'
144
+ - name: push
145
+ visibility: [full, quick, key]
146
+ description: 'Execute git push after quality gates pass'
147
+ - name: create-pr
148
+ visibility: [full, quick, key]
149
+ description: 'Create pull request from current branch'
150
+ - name: configure-ci
151
+ visibility: [full, quick]
152
+ description: 'Setup/update GitHub Actions workflows'
153
+ - name: release
154
+ visibility: [full, quick]
155
+ description: 'Create versioned release with changelog'
156
+ - name: cleanup
157
+ visibility: [full, quick]
158
+ description: 'Identify and remove stale branches/files'
159
+ - name: init-project-status
160
+ visibility: [full]
161
+ description: 'Initialize dynamic project status tracking (Story 6.1.2.4)'
162
+ - name: environment-bootstrap
163
+ visibility: [full]
164
+ description: 'Complete environment setup for new projects (CLIs, auth, Git/GitHub)'
165
+ - name: setup-github
166
+ visibility: [full]
167
+ description: 'Configure DevOps infrastructure for user projects (workflows, CodeRabbit, branch protection, secrets) [Story 5.10]'
168
+ - name: search-mcp
169
+ visibility: [full]
170
+ description: 'Search available MCPs in Docker MCP Toolkit catalog'
171
+ - name: add-mcp
172
+ visibility: [full]
173
+ description: 'Add MCP server to Docker MCP Toolkit'
174
+ - name: list-mcps
175
+ visibility: [full]
176
+ description: 'List currently enabled MCPs and their tools'
177
+ - name: remove-mcp
178
+ visibility: [full]
179
+ description: 'Remove MCP server from Docker MCP Toolkit'
180
+ - name: setup-mcp-docker
181
+ visibility: [full]
182
+ description: 'Initial Docker MCP Toolkit configuration [Story 5.11]'
183
+ - name: check-docs
184
+ visibility: [full, quick]
185
+ description: 'Verify documentation links integrity (broken, incorrect markings)'
186
+ - name: create-worktree
187
+ visibility: [full]
188
+ description: 'Create isolated worktree for story development'
189
+ - name: list-worktrees
190
+ visibility: [full]
191
+ description: 'List all active worktrees with status'
192
+ - name: remove-worktree
193
+ visibility: [full]
194
+ description: 'Remove worktree (with safety checks)'
195
+ - name: cleanup-worktrees
196
+ visibility: [full]
197
+ description: 'Remove all stale worktrees (> 30 days)'
198
+ - name: merge-worktree
199
+ visibility: [full]
200
+ description: 'Merge worktree branch back to base'
201
+ - name: inventory-assets
202
+ visibility: [full]
203
+ description: 'Generate migration inventory from V2 assets'
204
+ - name: analyze-paths
205
+ visibility: [full]
206
+ description: 'Analyze path dependencies and migration impact'
207
+ - name: migrate-agent
208
+ visibility: [full]
209
+ description: 'Migrate single agent from V2 to V3 format'
210
+ - name: migrate-batch
211
+ visibility: [full]
212
+ description: 'Batch migrate all agents with validation'
213
+ - name: session-info
214
+ visibility: [full, quick]
215
+ description: 'Show current session details (agent history, commands)'
216
+ - name: guide
217
+ visibility: [full, quick, key]
218
+ description: 'Show comprehensive usage guide for this agent'
219
+ - name: yolo
220
+ visibility: [full, quick, key]
221
+ description: 'Toggle permission mode (cycle: ask > auto > explore)'
222
+ - name: exit
223
+ visibility: [full, quick, key]
224
+ description: 'Exit DevOps mode'
182
225
 
183
226
  dependencies:
184
227
  tasks:
@@ -94,46 +94,100 @@ story-file-permissions:
94
94
  - CRITICAL: Your updates must be limited to appending your review results in the QA Results section only
95
95
  # All commands require * prefix when used (e.g., *help)
96
96
  commands:
97
- # Code Review & Analysis
98
- - help: Show all available commands with descriptions
99
- - 'code-review {scope}': 'Run automated review (scope: uncommitted or committed)'
100
- - 'review {story}': Comprehensive story review with gate decision
101
- - 'review-build {story}': '10-phase structured QA review (Epic 6) - outputs qa_report.md'
102
-
103
- # Quality Gates
104
- - 'gate {story}': Create quality gate decision
105
- - 'nfr-assess {story}': Validate non-functional requirements
106
- - 'risk-profile {story}': Generate risk assessment matrix
107
-
108
- # Fix Requests (Epic 6 - QA Loop)
109
- - 'create-fix-request {story}': Generate QA_FIX_REQUEST.md for @dev with issues to fix
110
-
111
- # Enhanced Validation (Absorbed from Auto-Claude)
112
- - 'validate-libraries {story}': Validate third-party library usage via Context7
113
- - 'security-check {story}': Run 8-point security vulnerability scan
114
- - 'validate-migrations {story}': Validate database migrations for schema changes
115
- - 'evidence-check {story}': Verify evidence-based QA requirements
116
- - 'false-positive-check {story}': Critical thinking verification for bug fixes
117
- - 'console-check {story}': Browser console error detection
118
-
119
- # Test Strategy
120
- - 'test-design {story}': Create comprehensive test scenarios
121
- - 'trace {story}': 'Map requirements to tests (Given-When-Then)'
122
- - 'create-suite {story}': 'Create test suite for story (Authority: QA owns test suites)'
123
-
124
- # Spec Pipeline (Epic 3 - ADE)
125
- - 'critique-spec {story}': Review and critique specification for completeness and clarity
126
-
127
- # Backlog Management
128
- - 'backlog-add {story} {type} {priority} {title}': Add item to story backlog
129
- - 'backlog-update {item_id} {status}': Update backlog item status
130
- - backlog-review: Generate backlog review for sprint planning
131
-
132
- # Utilities
133
- - session-info: Show current session details (agent history, commands)
134
- - guide: Show comprehensive usage guide for this agent
135
- - yolo: 'Toggle permission mode (cycle: ask > auto > explore)'
136
- - exit: Exit QA mode
97
+ - name: help
98
+ visibility: [full, quick, key]
99
+ description: 'Show all available commands with descriptions'
100
+ - name: code-review
101
+ visibility: [full, quick]
102
+ args: '{scope}'
103
+ description: 'Run automated review (scope: uncommitted or committed)'
104
+ - name: review
105
+ visibility: [full, quick, key]
106
+ args: '{story}'
107
+ description: 'Comprehensive story review with gate decision'
108
+ - name: review-build
109
+ visibility: [full]
110
+ args: '{story}'
111
+ description: '10-phase structured QA review (Epic 6) - outputs qa_report.md'
112
+ - name: gate
113
+ visibility: [full, quick]
114
+ args: '{story}'
115
+ description: 'Create quality gate decision'
116
+ - name: nfr-assess
117
+ visibility: [full, quick]
118
+ args: '{story}'
119
+ description: 'Validate non-functional requirements'
120
+ - name: risk-profile
121
+ visibility: [full, quick]
122
+ args: '{story}'
123
+ description: 'Generate risk assessment matrix'
124
+ - name: create-fix-request
125
+ visibility: [full]
126
+ args: '{story}'
127
+ description: 'Generate QA_FIX_REQUEST.md for @dev with issues to fix'
128
+ - name: validate-libraries
129
+ visibility: [full]
130
+ args: '{story}'
131
+ description: 'Validate third-party library usage via Context7'
132
+ - name: security-check
133
+ visibility: [full, quick]
134
+ args: '{story}'
135
+ description: 'Run 8-point security vulnerability scan'
136
+ - name: validate-migrations
137
+ visibility: [full]
138
+ args: '{story}'
139
+ description: 'Validate database migrations for schema changes'
140
+ - name: evidence-check
141
+ visibility: [full]
142
+ args: '{story}'
143
+ description: 'Verify evidence-based QA requirements'
144
+ - name: false-positive-check
145
+ visibility: [full]
146
+ args: '{story}'
147
+ description: 'Critical thinking verification for bug fixes'
148
+ - name: console-check
149
+ visibility: [full]
150
+ args: '{story}'
151
+ description: 'Browser console error detection'
152
+ - name: test-design
153
+ visibility: [full, quick]
154
+ args: '{story}'
155
+ description: 'Create comprehensive test scenarios'
156
+ - name: trace
157
+ visibility: [full, quick]
158
+ args: '{story}'
159
+ description: 'Map requirements to tests (Given-When-Then)'
160
+ - name: create-suite
161
+ visibility: [full]
162
+ args: '{story}'
163
+ description: 'Create test suite for story (Authority: QA owns test suites)'
164
+ - name: critique-spec
165
+ visibility: [full]
166
+ args: '{story}'
167
+ description: 'Review and critique specification for completeness and clarity'
168
+ - name: backlog-add
169
+ visibility: [full]
170
+ args: '{story} {type} {priority} {title}'
171
+ description: 'Add item to story backlog'
172
+ - name: backlog-update
173
+ visibility: [full]
174
+ args: '{item_id} {status}'
175
+ description: 'Update backlog item status'
176
+ - name: backlog-review
177
+ visibility: [full, quick]
178
+ description: 'Generate backlog review for sprint planning'
179
+ - name: session-info
180
+ visibility: [full, quick]
181
+ description: 'Show current session details (agent history, commands)'
182
+ - name: guide
183
+ visibility: [full, quick, key]
184
+ description: 'Show comprehensive usage guide for this agent'
185
+ - name: yolo
186
+ visibility: [full, quick, key]
187
+ description: 'Toggle permission mode (cycle: ask > auto > explore)'
188
+ - name: exit
189
+ visibility: [full, quick, key]
190
+ description: 'Exit QA mode'
137
191
  dependencies:
138
192
  data:
139
193
  - technical-preferences.md
@@ -9,9 +9,9 @@ CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your
9
9
  ```yaml
10
10
  IDE-FILE-RESOLUTION:
11
11
  - FOR LATER USE ONLY - NOT FOR ACTIVATION, when executing commands that reference dependencies
12
- - Dependencies map to aios-core/{type}/{name}
12
+ - Dependencies map to .aios-core/development/{type}/{name}
13
13
  - type=folder (tasks|templates|checklists|data|workflows|etc...), name=file-name
14
- - Example: audit-codebase.md → aios-core/tasks/audit-codebase.md
14
+ - Example: audit-codebase.md → .aios-core/development/tasks/audit-codebase.md
15
15
  - IMPORTANT: Only load these files when user requests specific command execution
16
16
 
17
17
  REQUEST-RESOLUTION:
@@ -85,38 +85,38 @@ agent:
85
85
  Use DIRECT Read() with exact paths. NO Search/Grep.
86
86
 
87
87
  Phase 1 Commands:
88
- *research → Read("aios-core/tasks/ux-user-research.md")
89
- *wireframe → Read("aios-core/tasks/ux-create-wireframe.md")
90
- *generate-ui-prompt → Read("aios-core/tasks/generate-ai-frontend-prompt.md")
91
- *create-front-end-spec → Read("aios-core/tasks/create-doc.md") + template
88
+ *research → Read(".aios-core/development/tasks/ux-user-research.md")
89
+ *wireframe → Read(".aios-core/development/tasks/ux-create-wireframe.md")
90
+ *generate-ui-prompt → Read(".aios-core/development/tasks/generate-ai-frontend-prompt.md")
91
+ *create-front-end-spec → Read(".aios-core/development/tasks/create-doc.md") + template
92
92
 
93
93
  Phase 2 Commands:
94
- *audit → Read("aios-core/tasks/audit-codebase.md")
95
- *consolidate → Read("aios-core/tasks/consolidate-patterns.md")
96
- *shock-report → Read("aios-core/tasks/generate-shock-report.md")
94
+ *audit → Read(".aios-core/development/tasks/audit-codebase.md")
95
+ *consolidate → Read(".aios-core/development/tasks/consolidate-patterns.md")
96
+ *shock-report → Read(".aios-core/development/tasks/generate-shock-report.md")
97
97
 
98
98
  Phase 3 Commands:
99
- *tokenize → Read("aios-core/tasks/extract-tokens.md")
100
- *setup → Read("aios-core/tasks/setup-design-system.md")
101
- *migrate → Read("aios-core/tasks/generate-migration-strategy.md")
102
- *upgrade-tailwind → Read("aios-core/tasks/tailwind-upgrade.md")
103
- *audit-tailwind-config → Read("aios-core/tasks/audit-tailwind-config.md")
104
- *export-dtcg → Read("aios-core/tasks/export-design-tokens-dtcg.md")
105
- *bootstrap-shadcn → Read("aios-core/tasks/bootstrap-shadcn-library.md")
99
+ *tokenize → Read(".aios-core/development/tasks/extract-tokens.md")
100
+ *setup → Read(".aios-core/development/tasks/setup-design-system.md")
101
+ *migrate → Read(".aios-core/development/tasks/generate-migration-strategy.md")
102
+ *upgrade-tailwind → Read(".aios-core/development/tasks/tailwind-upgrade.md")
103
+ *audit-tailwind-config → Read(".aios-core/development/tasks/audit-tailwind-config.md")
104
+ *export-dtcg → Read(".aios-core/development/tasks/export-design-tokens-dtcg.md")
105
+ *bootstrap-shadcn → Read(".aios-core/development/tasks/bootstrap-shadcn-library.md")
106
106
 
107
107
  Phase 4 Commands:
108
- *build → Read("aios-core/tasks/build-component.md")
109
- *compose → Read("aios-core/tasks/compose-molecule.md")
110
- *extend → Read("aios-core/tasks/extend-pattern.md")
108
+ *build → Read(".aios-core/development/tasks/build-component.md")
109
+ *compose → Read(".aios-core/development/tasks/compose-molecule.md")
110
+ *extend → Read(".aios-core/development/tasks/extend-pattern.md")
111
111
 
112
112
  Phase 5 Commands:
113
- *document → Read("aios-core/tasks/generate-documentation.md")
114
- *a11y-check → Read("aios-core/checklists/accessibility-wcag-checklist.md")
115
- *calculate-roi → Read("aios-core/tasks/calculate-roi.md")
113
+ *document → Read(".aios-core/development/tasks/generate-documentation.md")
114
+ *a11y-check → Read(".aios-core/development/checklists/accessibility-wcag-checklist.md")
115
+ *calculate-roi → Read(".aios-core/development/tasks/calculate-roi.md")
116
116
 
117
117
  Universal Commands:
118
- *scan → Read("aios-core/tasks/ux-ds-scan-artifact.md")
119
- *integrate → Read("aios-core/tasks/integrate-Squad.md")
118
+ *scan → Read(".aios-core/development/tasks/ux-ds-scan-artifact.md")
119
+ *integrate → Read(".aios-core/development/tasks/integrate-Squad.md")
120
120
 
121
121
  persona_profile:
122
122
  archetype: Empathizer
@@ -196,7 +196,7 @@ commands:
196
196
 
197
197
  # === UNIVERSAL COMMANDS ===
198
198
  scan {path|url}: 'Analyze HTML/React artifact for patterns'
199
- integrate {pack}: 'Connect with expansion pack'
199
+ integrate {pack}: 'Connect with squad'
200
200
  help: 'Show all commands organized by phase'
201
201
  status: 'Show current workflow phase'
202
202
  guide: 'Show comprehensive usage guide for this agent'
@@ -0,0 +1,63 @@
1
+ 'use strict';
2
+
3
+ const { UnifiedActivationPipeline } = require('./unified-activation-pipeline');
4
+
5
+ /**
6
+ * Canonical activation runtime for AIOS agents.
7
+ *
8
+ * This wrapper centralizes agent activation calls so IDE-specific entry points
9
+ * (Codex, Claude Code, scripts) can depend on one stable API.
10
+ */
11
+ class ActivationRuntime {
12
+ /**
13
+ * @param {Object} [options]
14
+ * @param {string} [options.projectRoot]
15
+ * @param {UnifiedActivationPipeline} [options.pipeline]
16
+ */
17
+ constructor(options = {}) {
18
+ this.pipeline = options.pipeline || new UnifiedActivationPipeline({
19
+ projectRoot: options.projectRoot,
20
+ });
21
+ }
22
+
23
+ /**
24
+ * Activate agent and return the full activation result.
25
+ * @param {string} agentId
26
+ * @param {Object} [options]
27
+ * @returns {Promise<{greeting: string, context: Object, duration: number, quality: string, metrics: Object}>}
28
+ */
29
+ async activate(agentId, options = {}) {
30
+ return this.pipeline.activate(agentId, options);
31
+ }
32
+
33
+ /**
34
+ * Activate agent and return only greeting text.
35
+ * @param {string} agentId
36
+ * @param {Object} [options]
37
+ * @returns {Promise<string>}
38
+ */
39
+ async activateGreeting(agentId, options = {}) {
40
+ try {
41
+ const result = await this.activate(agentId, options);
42
+ return result && typeof result.greeting === 'string' ? result.greeting : '';
43
+ } catch (error) {
44
+ throw new Error(`ActivationRuntime.activateGreeting failed for "${agentId}": ${error.message}`);
45
+ }
46
+ }
47
+ }
48
+
49
+ /**
50
+ * Convenience helper for one-shot activation.
51
+ * @param {string} agentId
52
+ * @param {Object} [options]
53
+ * @returns {Promise<{greeting: string, context: Object, duration: number, quality: string, metrics: Object}>}
54
+ */
55
+ function activateAgent(agentId, options = {}) {
56
+ const runtime = new ActivationRuntime(options);
57
+ return runtime.activate(agentId, options);
58
+ }
59
+
60
+ module.exports = {
61
+ ActivationRuntime,
62
+ activateAgent,
63
+ };
@@ -2,11 +2,11 @@
2
2
  /**
3
3
  * Unified Greeting Generator - CLI Wrapper
4
4
  *
5
- * Story ACT-6: Refactored as thin wrapper around UnifiedActivationPipeline.
5
+ * Story ACT-6: Refactored as thin wrapper around ActivationRuntime.
6
6
  *
7
7
  * ARCHITECTURE NOTE:
8
8
  * This file is now a thin CLI wrapper that delegates to the
9
- * UnifiedActivationPipeline for all context loading and greeting generation.
9
+ * ActivationRuntime for all context loading and greeting generation.
10
10
  * Previously, this file orchestrated its own parallel loading of
11
11
  * AgentConfigLoader, SessionContextLoader, and ProjectStatusLoader.
12
12
  * Now ALL agents (not just 3) can use the same unified pipeline.
@@ -19,9 +19,10 @@
19
19
  * Usage: node generate-greeting.js <agent-id>
20
20
  *
21
21
  * Used by: @devops, @data-engineer, @ux-design-expert (CLI invocation pattern)
22
- * Note: All 12 agents now use UnifiedActivationPipeline internally.
22
+ * Note: All 12 agents now activate through ActivationRuntime.
23
23
  *
24
- * @see unified-activation-pipeline.js for the actual pipeline logic
24
+ * @see activation-runtime.js for the runtime entrypoint
25
+ * @see unified-activation-pipeline.js for pipeline internals
25
26
  * @see greeting-builder.js for core greeting logic
26
27
  *
27
28
  * Part of Story 6.1.4: Unified Greeting System Integration
@@ -30,12 +31,12 @@
30
31
 
31
32
  'use strict';
32
33
 
33
- const { UnifiedActivationPipeline } = require('./unified-activation-pipeline');
34
+ const { ActivationRuntime } = require('./activation-runtime');
34
35
 
35
36
  /**
36
37
  * Generate unified greeting for agent activation.
37
38
  *
38
- * Delegates to UnifiedActivationPipeline.activate() which handles:
39
+ * Delegates to ActivationRuntime.activate() which handles:
39
40
  * - Parallel loading of config, session, project status, git, permissions
40
41
  * - Sequential context detection and workflow state
41
42
  * - Greeting generation via GreetingBuilder
@@ -49,8 +50,8 @@ const { UnifiedActivationPipeline } = require('./unified-activation-pipeline');
49
50
  */
50
51
  async function generateGreeting(agentId) {
51
52
  try {
52
- const pipeline = new UnifiedActivationPipeline();
53
- const result = await pipeline.activate(agentId);
53
+ const runtime = new ActivationRuntime();
54
+ const result = await runtime.activate(agentId);
54
55
 
55
56
  if (result.duration > 100) {
56
57
  console.warn(`[generate-greeting] Slow generation: ${result.duration}ms`);