aios-core 2.2.1 → 2.3.1
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/.aios-core/.session/current-session.json +14 -14
- package/.aios-core/cli/commands/migrate/validate.js +1 -1
- package/.aios-core/core/docs/session-update-pattern.md +17 -10
- package/.aios-core/core/elicitation/elicitation-engine.js +11 -6
- package/.aios-core/core/elicitation/session-manager.js +2 -1
- package/.aios-core/core/registry/registry-schema.json +166 -166
- package/.aios-core/core/registry/service-registry.json +6585 -6585
- package/.aios-core/core-config.yaml +12 -1
- package/.aios-core/data/agent-config-requirements.yaml +5 -5
- package/.aios-core/development/agents/devops.md +12 -0
- package/.aios-core/development/scripts/squad/README.md +112 -0
- package/.aios-core/development/scripts/squad/index.js +41 -0
- package/.aios-core/development/scripts/squad/squad-loader.js +359 -0
- package/.aios-core/development/scripts/squad/squad-validator.js +685 -0
- package/.aios-core/development/tasks/add-mcp.md +11 -5
- package/.aios-core/development/tasks/search-mcp.md +309 -0
- package/.aios-core/development/tasks/setup-mcp-docker.md +11 -8
- package/.aios-core/development/tasks/squad-creator-validate.md +151 -0
- package/.aios-core/docs/standards/AGENT-PERSONALIZATION-STANDARD-V1.md +3 -3
- package/.aios-core/index.d.ts +7 -7
- package/.aios-core/index.js +1 -1
- package/.aios-core/infrastructure/scripts/batch-creator.js +1 -1
- package/.aios-core/infrastructure/scripts/component-generator.js +1 -1
- package/.aios-core/infrastructure/templates/coderabbit.yaml.template +279 -279
- package/.aios-core/infrastructure/templates/github-workflows/ci.yml.template +169 -169
- package/.aios-core/infrastructure/templates/github-workflows/pr-automation.yml.template +330 -330
- package/.aios-core/infrastructure/templates/github-workflows/release.yml.template +196 -196
- package/.aios-core/infrastructure/templates/gitignore/gitignore-aios-base.tmpl +63 -63
- package/.aios-core/infrastructure/templates/gitignore/gitignore-brownfield-merge.tmpl +18 -18
- package/.aios-core/infrastructure/templates/gitignore/gitignore-node.tmpl +85 -85
- package/.aios-core/infrastructure/templates/gitignore/gitignore-python.tmpl +145 -145
- package/.aios-core/infrastructure/tests/utilities-audit-results.json +500 -500
- package/.aios-core/infrastructure/tools/README.md +1 -1
- package/.aios-core/install-manifest.yaml +4 -1
- package/.aios-core/manifests/schema/manifest-schema.json +190 -190
- package/.aios-core/manifests/workers.csv +203 -203
- package/.aios-core/package.json +102 -102
- package/.aios-core/product/templates/activation-instructions-template.md +7 -7
- package/.aios-core/product/templates/adr.hbs +125 -125
- package/.aios-core/product/templates/component-react-tmpl.tsx +98 -98
- package/.aios-core/product/templates/dbdr.hbs +241 -241
- package/.aios-core/product/templates/engine/schemas/adr.schema.json +102 -102
- package/.aios-core/product/templates/engine/schemas/dbdr.schema.json +205 -205
- package/.aios-core/product/templates/engine/schemas/epic.schema.json +175 -175
- package/.aios-core/product/templates/engine/schemas/pmdr.schema.json +175 -175
- package/.aios-core/product/templates/engine/schemas/prd-v2.schema.json +300 -300
- package/.aios-core/product/templates/engine/schemas/prd.schema.json +152 -152
- package/.aios-core/product/templates/engine/schemas/story.schema.json +222 -222
- package/.aios-core/product/templates/engine/schemas/task.schema.json +154 -154
- package/.aios-core/product/templates/epic.hbs +212 -212
- package/.aios-core/product/templates/eslintrc-security.json +32 -32
- package/.aios-core/product/templates/github-actions-cd.yml +212 -212
- package/.aios-core/product/templates/github-actions-ci.yml +172 -172
- package/.aios-core/product/templates/pmdr.hbs +186 -186
- package/.aios-core/product/templates/prd-v2.0.hbs +216 -216
- package/.aios-core/product/templates/prd.hbs +201 -201
- package/.aios-core/product/templates/shock-report-tmpl.html +502 -502
- package/.aios-core/product/templates/story.hbs +263 -263
- package/.aios-core/product/templates/task.hbs +170 -170
- package/.aios-core/product/templates/tmpl-comment-on-examples.sql +158 -158
- package/.aios-core/product/templates/tmpl-migration-script.sql +91 -91
- package/.aios-core/product/templates/tmpl-rls-granular-policies.sql +104 -104
- package/.aios-core/product/templates/tmpl-rls-kiss-policy.sql +10 -10
- package/.aios-core/product/templates/tmpl-rls-roles.sql +135 -135
- package/.aios-core/product/templates/tmpl-rls-simple.sql +77 -77
- package/.aios-core/product/templates/tmpl-rls-tenant.sql +152 -152
- package/.aios-core/product/templates/tmpl-rollback-script.sql +77 -77
- package/.aios-core/product/templates/tmpl-seed-data.sql +140 -140
- package/.aios-core/product/templates/tmpl-smoke-test.sql +16 -16
- package/.aios-core/product/templates/tmpl-staging-copy-merge.sql +139 -139
- package/.aios-core/product/templates/tmpl-stored-proc.sql +140 -140
- package/.aios-core/product/templates/tmpl-trigger.sql +152 -152
- package/.aios-core/product/templates/tmpl-view-materialized.sql +133 -133
- package/.aios-core/product/templates/tmpl-view.sql +177 -177
- package/.aios-core/product/templates/token-exports-css-tmpl.css +240 -240
- package/.aios-core/quality/schemas/quality-metrics.schema.json +233 -233
- package/.aios-core/schemas/squad-schema.json +185 -0
- package/.aios-core/scripts/README.md +90 -322
- package/.aios-core/scripts/migrate-framework-docs.sh +300 -300
- package/.claude/rules/mcp-usage.md +116 -100
- package/LICENSE +48 -48
- package/README.md +3 -4
- package/bin/aios-init.js +11 -6
- package/bin/aios.js +2 -1
- package/package.json +2 -3
- package/packages/installer/package.json +39 -39
- package/packages/installer/tests/integration/environment-configuration.test.js +2 -2
- package/packages/installer/tests/unit/env-template.test.js +4 -3
- package/templates/squad/LICENSE +21 -21
- package/templates/squad/README.md +37 -37
- package/templates/squad/agents/example-agent.yaml +36 -36
- package/templates/squad/package.json +19 -19
- package/templates/squad/squad.yaml +25 -25
- package/templates/squad/tasks/example-task.yaml +46 -46
- package/templates/squad/templates/example-template.md +24 -24
- package/templates/squad/tests/example-agent.test.js +53 -53
- package/templates/squad/workflows/example-workflow.yaml +54 -54
- package/tools/diagnose-npx-issue.ps1 +96 -96
- package/tools/quick-diagnose.cmd +85 -85
- package/tools/quick-diagnose.ps1 +117 -117
- package/.aios-core/core/data/agent-config-requirements.yaml +0 -368
- package/.aios-core/core/data/aios-kb.md +0 -924
- package/.aios-core/core/data/workflow-patterns.yaml +0 -267
- package/.aios-core/product/templates/1mcp-config.yaml +0 -225
- package/.aios-core/scripts/context-detector.js +0 -226
- package/.aios-core/scripts/elicitation-engine.js +0 -385
- package/.aios-core/scripts/elicitation-session-manager.js +0 -300
- package/.claude/CLAUDE.md +0 -221
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
# Workflow Patterns Definition
|
|
2
|
-
# Defines common AIOS workflow sequences for context detection
|
|
3
|
-
#
|
|
4
|
-
# Version: 1.0
|
|
5
|
-
# Created: 2025-01-15
|
|
6
|
-
# Story: 6.1.2.5 - Contextual Agent Load System
|
|
7
|
-
#
|
|
8
|
-
# Format:
|
|
9
|
-
# - workflow_name: Unique identifier
|
|
10
|
-
# - description: Human-readable workflow description
|
|
11
|
-
# - agent_sequence: Expected sequence of agents used
|
|
12
|
-
# - key_commands: Commands that signal this workflow
|
|
13
|
-
# - trigger_threshold: Minimum matching commands to detect pattern (default: 2)
|
|
14
|
-
|
|
15
|
-
workflows:
|
|
16
|
-
# Story Development Workflow (Most Common)
|
|
17
|
-
story_development:
|
|
18
|
-
description: "Complete story lifecycle from validation to deployment"
|
|
19
|
-
agent_sequence:
|
|
20
|
-
- po # Story validation
|
|
21
|
-
- dev # Implementation
|
|
22
|
-
- qa # Quality assurance
|
|
23
|
-
- devops # Deployment
|
|
24
|
-
key_commands:
|
|
25
|
-
- validate-story-draft
|
|
26
|
-
- validate-next-story
|
|
27
|
-
- develop
|
|
28
|
-
- develop-yolo
|
|
29
|
-
- develop-interactive
|
|
30
|
-
- develop-preflight
|
|
31
|
-
- review-qa
|
|
32
|
-
- apply-qa-fixes
|
|
33
|
-
- pre-push-quality-gate
|
|
34
|
-
- github-pr-automation
|
|
35
|
-
trigger_threshold: 2
|
|
36
|
-
typical_duration: "1-5 days"
|
|
37
|
-
success_indicators:
|
|
38
|
-
- "Story status: Ready for Review"
|
|
39
|
-
- "All tests passing"
|
|
40
|
-
- "PR created and merged"
|
|
41
|
-
# Workflow transitions (Story 6.1.2.5 - Workflow Navigation)
|
|
42
|
-
transitions:
|
|
43
|
-
validated:
|
|
44
|
-
trigger: "validate-story-draft completed successfully"
|
|
45
|
-
greeting_message: "Story validated! Ready to implement."
|
|
46
|
-
next_steps:
|
|
47
|
-
- command: develop-yolo
|
|
48
|
-
args_template: "${story_path}"
|
|
49
|
-
description: "Autonomous YOLO mode (no interruptions)"
|
|
50
|
-
- command: develop-interactive
|
|
51
|
-
args_template: "${story_path}"
|
|
52
|
-
description: "Interactive mode with checkpoints (default)"
|
|
53
|
-
- command: develop-preflight
|
|
54
|
-
args_template: "${story_path}"
|
|
55
|
-
description: "Plan everything upfront, then execute"
|
|
56
|
-
in_development:
|
|
57
|
-
trigger: "develop completed successfully"
|
|
58
|
-
greeting_message: "Development complete! Ready for QA review."
|
|
59
|
-
next_steps:
|
|
60
|
-
- command: review-qa
|
|
61
|
-
args_template: "${story_path}"
|
|
62
|
-
description: "Run QA review and tests"
|
|
63
|
-
- command: run-tests
|
|
64
|
-
args_template: ""
|
|
65
|
-
description: "Execute test suite manually"
|
|
66
|
-
qa_reviewed:
|
|
67
|
-
trigger: "review-qa completed successfully"
|
|
68
|
-
greeting_message: "QA review complete!"
|
|
69
|
-
next_steps:
|
|
70
|
-
- command: apply-qa-fixes
|
|
71
|
-
args_template: ""
|
|
72
|
-
description: "Apply QA feedback and fixes"
|
|
73
|
-
- command: pre-push-quality-gate
|
|
74
|
-
args_template: ""
|
|
75
|
-
description: "Run final quality checks before push"
|
|
76
|
-
|
|
77
|
-
# Epic Creation Workflow
|
|
78
|
-
epic_creation:
|
|
79
|
-
description: "Create and organize epics with initial stories"
|
|
80
|
-
agent_sequence:
|
|
81
|
-
- po # Epic planning
|
|
82
|
-
- sm # Story creation
|
|
83
|
-
- architect # Technical review
|
|
84
|
-
key_commands:
|
|
85
|
-
- create-epic
|
|
86
|
-
- brownfield-create-epic
|
|
87
|
-
- create-story
|
|
88
|
-
- brownfield-create-story
|
|
89
|
-
- create-next-story
|
|
90
|
-
- validate-story-draft
|
|
91
|
-
- analyze-impact
|
|
92
|
-
trigger_threshold: 2
|
|
93
|
-
typical_duration: "0.5-2 days"
|
|
94
|
-
success_indicators:
|
|
95
|
-
- "Epic documented"
|
|
96
|
-
- "Initial stories created"
|
|
97
|
-
- "Stories validated"
|
|
98
|
-
|
|
99
|
-
# Backlog Management Workflow
|
|
100
|
-
backlog_management:
|
|
101
|
-
description: "Review, prioritize, and schedule backlog items"
|
|
102
|
-
agent_sequence:
|
|
103
|
-
- qa # Backlog review
|
|
104
|
-
- po # Prioritization
|
|
105
|
-
- pm # Scheduling
|
|
106
|
-
key_commands:
|
|
107
|
-
- backlog-add
|
|
108
|
-
- backlog-update
|
|
109
|
-
- backlog-review
|
|
110
|
-
- backlog-debt
|
|
111
|
-
- backlog-summary
|
|
112
|
-
- backlog-prioritize
|
|
113
|
-
- backlog-schedule
|
|
114
|
-
trigger_threshold: 2
|
|
115
|
-
typical_duration: "0.5-1 day"
|
|
116
|
-
success_indicators:
|
|
117
|
-
- "Backlog items prioritized"
|
|
118
|
-
- "Sprint planned"
|
|
119
|
-
|
|
120
|
-
# Architecture Review Workflow
|
|
121
|
-
architecture_review:
|
|
122
|
-
description: "Design review and documentation of architectural decisions"
|
|
123
|
-
agent_sequence:
|
|
124
|
-
- architect # Design and review
|
|
125
|
-
- qa # Review validation
|
|
126
|
-
- dev # Implementation planning
|
|
127
|
-
key_commands:
|
|
128
|
-
- analyze-impact
|
|
129
|
-
- analyze-framework
|
|
130
|
-
- create-doc
|
|
131
|
-
- shard-doc
|
|
132
|
-
- review-proposal
|
|
133
|
-
- review-story
|
|
134
|
-
- architect-analyze-impact
|
|
135
|
-
trigger_threshold: 2
|
|
136
|
-
typical_duration: "1-3 days"
|
|
137
|
-
success_indicators:
|
|
138
|
-
- "Architecture documented"
|
|
139
|
-
- "Decision reviewed"
|
|
140
|
-
- "Implementation plan approved"
|
|
141
|
-
|
|
142
|
-
# Git Workflow (DevOps)
|
|
143
|
-
git_workflow:
|
|
144
|
-
description: "Version control and deployment workflow"
|
|
145
|
-
agent_sequence:
|
|
146
|
-
- dev # Code changes
|
|
147
|
-
- devops # Git operations
|
|
148
|
-
key_commands:
|
|
149
|
-
- pre-push-quality-gate
|
|
150
|
-
- github-pr-automation
|
|
151
|
-
- repository-cleanup
|
|
152
|
-
- version-management
|
|
153
|
-
trigger_threshold: 2
|
|
154
|
-
typical_duration: "0.5-1 day"
|
|
155
|
-
success_indicators:
|
|
156
|
-
- "Changes committed"
|
|
157
|
-
- "PR created"
|
|
158
|
-
- "Code merged"
|
|
159
|
-
|
|
160
|
-
# Database Development Workflow
|
|
161
|
-
database_workflow:
|
|
162
|
-
description: "Database schema design and migration workflow"
|
|
163
|
-
agent_sequence:
|
|
164
|
-
- data-engineer # Schema design
|
|
165
|
-
- dev # Migration implementation
|
|
166
|
-
- qa # Testing
|
|
167
|
-
key_commands:
|
|
168
|
-
- db-domain-modeling
|
|
169
|
-
- db-schema-audit
|
|
170
|
-
- db-dry-run
|
|
171
|
-
- db-apply-migration
|
|
172
|
-
- db-rollback
|
|
173
|
-
- db-smoke-test
|
|
174
|
-
- db-rls-audit
|
|
175
|
-
- db-verify-order
|
|
176
|
-
trigger_threshold: 2
|
|
177
|
-
typical_duration: "1-3 days"
|
|
178
|
-
success_indicators:
|
|
179
|
-
- "Schema designed"
|
|
180
|
-
- "Migrations tested"
|
|
181
|
-
- "RLS policies validated"
|
|
182
|
-
|
|
183
|
-
# Code Quality Improvement Workflow
|
|
184
|
-
code_quality_workflow:
|
|
185
|
-
description: "Refactoring and code quality improvements"
|
|
186
|
-
agent_sequence:
|
|
187
|
-
- qa # Quality assessment
|
|
188
|
-
- dev # Refactoring
|
|
189
|
-
key_commands:
|
|
190
|
-
- improve-code-quality
|
|
191
|
-
- suggest-refactoring
|
|
192
|
-
- optimize-performance
|
|
193
|
-
- security-scan
|
|
194
|
-
- generate-tests
|
|
195
|
-
- nfr-assess
|
|
196
|
-
trigger_threshold: 2
|
|
197
|
-
typical_duration: "0.5-2 days"
|
|
198
|
-
success_indicators:
|
|
199
|
-
- "Code refactored"
|
|
200
|
-
- "Tests added"
|
|
201
|
-
- "Quality metrics improved"
|
|
202
|
-
|
|
203
|
-
# Documentation Workflow
|
|
204
|
-
documentation_workflow:
|
|
205
|
-
description: "Create and synchronize project documentation"
|
|
206
|
-
agent_sequence:
|
|
207
|
-
- analyst # Research and analysis
|
|
208
|
-
- architect # Documentation creation
|
|
209
|
-
- po # Review
|
|
210
|
-
key_commands:
|
|
211
|
-
- document-project
|
|
212
|
-
- sync-documentation
|
|
213
|
-
- create-doc
|
|
214
|
-
- shard-doc
|
|
215
|
-
- index-docs
|
|
216
|
-
- generate-documentation
|
|
217
|
-
trigger_threshold: 2
|
|
218
|
-
typical_duration: "0.5-2 days"
|
|
219
|
-
success_indicators:
|
|
220
|
-
- "Documentation created"
|
|
221
|
-
- "Documentation synchronized"
|
|
222
|
-
- "Documentation indexed"
|
|
223
|
-
|
|
224
|
-
# UX Design Workflow
|
|
225
|
-
ux_workflow:
|
|
226
|
-
description: "User experience design and validation"
|
|
227
|
-
agent_sequence:
|
|
228
|
-
- ux-design-expert # Design
|
|
229
|
-
- dev # Implementation
|
|
230
|
-
- qa # Validation
|
|
231
|
-
key_commands:
|
|
232
|
-
- ux-create-wireframe
|
|
233
|
-
- ux-user-research
|
|
234
|
-
- ux-ds-scan-artifact
|
|
235
|
-
- build-component
|
|
236
|
-
- audit-codebase
|
|
237
|
-
trigger_threshold: 2
|
|
238
|
-
typical_duration: "1-3 days"
|
|
239
|
-
success_indicators:
|
|
240
|
-
- "Wireframes created"
|
|
241
|
-
- "Components implemented"
|
|
242
|
-
- "UX validated"
|
|
243
|
-
|
|
244
|
-
# Brainstorming and Research Workflow
|
|
245
|
-
research_workflow:
|
|
246
|
-
description: "Facilitated brainstorming and research sessions"
|
|
247
|
-
agent_sequence:
|
|
248
|
-
- analyst # Research
|
|
249
|
-
- architect # Analysis
|
|
250
|
-
- po # Documentation
|
|
251
|
-
key_commands:
|
|
252
|
-
- analyst-facilitate-brainstorming
|
|
253
|
-
- advanced-elicitation
|
|
254
|
-
- create-deep-research-prompt
|
|
255
|
-
- kb-mode-interaction
|
|
256
|
-
trigger_threshold: 2
|
|
257
|
-
typical_duration: "0.5-1 day"
|
|
258
|
-
success_indicators:
|
|
259
|
-
- "Research completed"
|
|
260
|
-
- "Ideas documented"
|
|
261
|
-
- "Action items created"
|
|
262
|
-
|
|
263
|
-
# Validation Notes:
|
|
264
|
-
# - Patterns cross-referenced with Epic 6.1 workflow analysis
|
|
265
|
-
# - Commands verified against actual project usage in .aios-core/agents/*.md
|
|
266
|
-
# - Agent sequences match actual workflow patterns from recent stories
|
|
267
|
-
# - Threshold of 2 ensures workflow detection is accurate but not overly sensitive
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
# 1MCP Configuration Template for AIOS
|
|
2
|
-
# Purpose: Define MCP servers and presets for AIOS agents
|
|
3
|
-
# Location: ~/.1mcp/config.json (generated from this template)
|
|
4
|
-
|
|
5
|
-
# ==============================================================================
|
|
6
|
-
# MCP SERVERS
|
|
7
|
-
# ==============================================================================
|
|
8
|
-
mcps:
|
|
9
|
-
# Documentation & Research MCP
|
|
10
|
-
context7:
|
|
11
|
-
command: "npx"
|
|
12
|
-
args: ["-y", "@upstash/context7-mcp"]
|
|
13
|
-
enabled: true
|
|
14
|
-
description: "Library/framework documentation lookup"
|
|
15
|
-
use_cases:
|
|
16
|
-
- "Architecture research"
|
|
17
|
-
- "API reference lookup"
|
|
18
|
-
- "Learning new frameworks"
|
|
19
|
-
agents: ["architect", "analyst", "dev"]
|
|
20
|
-
|
|
21
|
-
# GitHub Operations MCP
|
|
22
|
-
github:
|
|
23
|
-
command: "npx"
|
|
24
|
-
args: ["-y", "@modelcontextprotocol/server-github"]
|
|
25
|
-
enabled: true
|
|
26
|
-
environment:
|
|
27
|
-
GITHUB_TOKEN: "${GITHUB_TOKEN}" # Set in environment
|
|
28
|
-
description: "GitHub API operations (repos, issues, PRs)"
|
|
29
|
-
use_cases:
|
|
30
|
-
- "Story implementation"
|
|
31
|
-
- "Pull request creation"
|
|
32
|
-
- "Issue tracking"
|
|
33
|
-
- "Code review"
|
|
34
|
-
agents: ["dev", "qa", "sm", "po"]
|
|
35
|
-
|
|
36
|
-
# Browser Automation MCP
|
|
37
|
-
browser:
|
|
38
|
-
command: "npx"
|
|
39
|
-
args: ["-y", "@modelcontextprotocol/server-puppeteer"]
|
|
40
|
-
enabled: true
|
|
41
|
-
description: "Browser automation and web scraping"
|
|
42
|
-
use_cases:
|
|
43
|
-
- "UI testing"
|
|
44
|
-
- "Web scraping"
|
|
45
|
-
- "Screenshot generation"
|
|
46
|
-
- "Integration testing"
|
|
47
|
-
agents: ["qa", "dev", "analyst"]
|
|
48
|
-
|
|
49
|
-
# Docker & Containers MCP (disabled by default)
|
|
50
|
-
docker:
|
|
51
|
-
command: "npx"
|
|
52
|
-
args: ["-y", "@docker/mcp-server-docker-desktop"]
|
|
53
|
-
enabled: false # Enable only when needed
|
|
54
|
-
description: "Docker container management"
|
|
55
|
-
use_cases:
|
|
56
|
-
- "Container operations"
|
|
57
|
-
- "Docker Compose management"
|
|
58
|
-
- "Image building"
|
|
59
|
-
- "Deployment automation"
|
|
60
|
-
agents: ["devops", "sm"]
|
|
61
|
-
|
|
62
|
-
# ==============================================================================
|
|
63
|
-
# PRESETS (Agent-Specific Configurations)
|
|
64
|
-
# ==============================================================================
|
|
65
|
-
presets:
|
|
66
|
-
# Development Preset (Default)
|
|
67
|
-
aios-dev:
|
|
68
|
-
filter: ["github", "browser"]
|
|
69
|
-
description: "Story implementation, PRs, development tasks"
|
|
70
|
-
token_budget: "25-40K"
|
|
71
|
-
agents: ["dev", "qa", "sm"]
|
|
72
|
-
use_cases:
|
|
73
|
-
- "Story implementation (docs/stories/*.md)"
|
|
74
|
-
- "Pull request creation"
|
|
75
|
-
- "Code review and validation"
|
|
76
|
-
- "Issue tracking and management"
|
|
77
|
-
- "Sprint planning"
|
|
78
|
-
recommended: true
|
|
79
|
-
|
|
80
|
-
# Research Preset
|
|
81
|
-
aios-research:
|
|
82
|
-
filter: ["context7", "browser"]
|
|
83
|
-
description: "Documentation-heavy research and learning"
|
|
84
|
-
token_budget: "40-60K"
|
|
85
|
-
agents: ["architect", "analyst"]
|
|
86
|
-
use_cases:
|
|
87
|
-
- "Architecture design and research"
|
|
88
|
-
- "Framework evaluation"
|
|
89
|
-
- "API reference lookup"
|
|
90
|
-
- "Best practices research"
|
|
91
|
-
- "Documentation writing"
|
|
92
|
-
recommended: false
|
|
93
|
-
|
|
94
|
-
# Docker Preset (On-Demand)
|
|
95
|
-
aios-docker:
|
|
96
|
-
filter: ["docker", "browser"]
|
|
97
|
-
description: "Container management and deployment"
|
|
98
|
-
token_budget: "15-20K"
|
|
99
|
-
agents: ["devops"]
|
|
100
|
-
use_cases:
|
|
101
|
-
- "Docker container operations"
|
|
102
|
-
- "Deployment automation"
|
|
103
|
-
- "Integration testing with containers"
|
|
104
|
-
- "Service orchestration"
|
|
105
|
-
recommended: false
|
|
106
|
-
enable_only_when_needed: true
|
|
107
|
-
|
|
108
|
-
# Full Preset (Rare Use)
|
|
109
|
-
aios-full:
|
|
110
|
-
filter: ["context7", "github", "browser"]
|
|
111
|
-
description: "Complex multi-domain tasks requiring all tools"
|
|
112
|
-
token_budget: "60-80K"
|
|
113
|
-
agents: ["all"]
|
|
114
|
-
use_cases:
|
|
115
|
-
- "Complex exploratory work"
|
|
116
|
-
- "Emergency debugging (need all tools)"
|
|
117
|
-
- "Multi-domain integration tasks"
|
|
118
|
-
recommended: false
|
|
119
|
-
warning: "Use sparingly - higher token cost"
|
|
120
|
-
|
|
121
|
-
# ==============================================================================
|
|
122
|
-
# SERVER CONFIGURATION
|
|
123
|
-
# ==============================================================================
|
|
124
|
-
server:
|
|
125
|
-
port: 3050
|
|
126
|
-
host: "127.0.0.1" # Localhost only (security)
|
|
127
|
-
timeout: 30000 # 30 seconds
|
|
128
|
-
max_retries: 3
|
|
129
|
-
|
|
130
|
-
# ==============================================================================
|
|
131
|
-
# MONITORING & LOGGING
|
|
132
|
-
# ==============================================================================
|
|
133
|
-
monitoring:
|
|
134
|
-
enabled: true
|
|
135
|
-
metrics:
|
|
136
|
-
track_token_usage: true
|
|
137
|
-
track_preset_usage: true
|
|
138
|
-
track_mcp_errors: true
|
|
139
|
-
logging:
|
|
140
|
-
level: "info" # "debug" | "info" | "warn" | "error"
|
|
141
|
-
file: "~/.1mcp/logs/server.log"
|
|
142
|
-
|
|
143
|
-
# ==============================================================================
|
|
144
|
-
# AIOS INTEGRATION
|
|
145
|
-
# ==============================================================================
|
|
146
|
-
aios_integration:
|
|
147
|
-
# Automatic preset selection based on agent
|
|
148
|
-
auto_preset_selection:
|
|
149
|
-
enabled: true
|
|
150
|
-
mappings:
|
|
151
|
-
dev: "aios-dev"
|
|
152
|
-
qa: "aios-dev"
|
|
153
|
-
sm: "aios-dev"
|
|
154
|
-
po: "aios-dev"
|
|
155
|
-
architect: "aios-research"
|
|
156
|
-
analyst: "aios-research"
|
|
157
|
-
devops: "aios-docker"
|
|
158
|
-
|
|
159
|
-
# Token budget alerts
|
|
160
|
-
token_budget_alerts:
|
|
161
|
-
enabled: true
|
|
162
|
-
warn_threshold: 50000 # Warn if > 50K tokens
|
|
163
|
-
error_threshold: 80000 # Error if > 80K tokens
|
|
164
|
-
|
|
165
|
-
# Automatic fallback
|
|
166
|
-
fallback:
|
|
167
|
-
enabled: true
|
|
168
|
-
if_preset_fails: "aios-dev" # Fallback to dev preset
|
|
169
|
-
if_server_down: "direct_mcp" # Fallback to direct MCPs
|
|
170
|
-
|
|
171
|
-
# ==============================================================================
|
|
172
|
-
# USAGE EXAMPLES
|
|
173
|
-
# ==============================================================================
|
|
174
|
-
examples:
|
|
175
|
-
# Example 1: Story Implementation (@dev agent)
|
|
176
|
-
story_implementation:
|
|
177
|
-
agent: "dev"
|
|
178
|
-
preset: "aios-dev"
|
|
179
|
-
mcps_used: ["github", "browser"]
|
|
180
|
-
token_budget: "~35K"
|
|
181
|
-
workflow:
|
|
182
|
-
- "Read story file (filesystem)"
|
|
183
|
-
- "Search related code (github.search_code)"
|
|
184
|
-
- "Implement changes (filesystem.write)"
|
|
185
|
-
- "Create PR (github.create_pr)"
|
|
186
|
-
- "Update story progress (filesystem.write)"
|
|
187
|
-
|
|
188
|
-
# Example 2: Architecture Research (@architect agent)
|
|
189
|
-
architecture_research:
|
|
190
|
-
agent: "architect"
|
|
191
|
-
preset: "aios-research"
|
|
192
|
-
mcps_used: ["context7", "browser"]
|
|
193
|
-
token_budget: "~50K"
|
|
194
|
-
workflow:
|
|
195
|
-
- "Look up framework docs (context7)"
|
|
196
|
-
- "Browse examples (browser.navigate)"
|
|
197
|
-
- "Research best practices (context7 + browser)"
|
|
198
|
-
- "Document findings (filesystem.write)"
|
|
199
|
-
|
|
200
|
-
# Example 3: Docker Deployment (@devops)
|
|
201
|
-
docker_deployment:
|
|
202
|
-
agent: "devops"
|
|
203
|
-
preset: "aios-docker"
|
|
204
|
-
mcps_used: ["docker", "browser"]
|
|
205
|
-
token_budget: "~18K"
|
|
206
|
-
workflow:
|
|
207
|
-
- "Build Docker image (docker.build)"
|
|
208
|
-
- "Run container (docker.run)"
|
|
209
|
-
- "Test deployment (browser.navigate)"
|
|
210
|
-
- "Verify health (browser.screenshot)"
|
|
211
|
-
|
|
212
|
-
# ==============================================================================
|
|
213
|
-
# NOTES
|
|
214
|
-
# ==============================================================================
|
|
215
|
-
notes:
|
|
216
|
-
token_reduction: "85% (280K → 40K with aios-dev)"
|
|
217
|
-
production_ready: true
|
|
218
|
-
validated_by: "AIOS Roundtable 2025-01-14"
|
|
219
|
-
experts:
|
|
220
|
-
- "Pedro Valério (Systems Architecture)"
|
|
221
|
-
- "Mitchell Hashimoto (Infrastructure)"
|
|
222
|
-
- "Andrej Karpathy (AI Systems)"
|
|
223
|
-
- "Guillermo Rauch (Developer Experience)"
|
|
224
|
-
decision: "Use 1MCP (Phase 1), defer TOON to Phase 2 pending benchmark"
|
|
225
|
-
documentation: "docs/guides/1mcp-implementation.md"
|