aios-core 2.1.4 → 2.1.6

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 (27) hide show
  1. package/.aios-core/development/tasks/analyze-brownfield.md +456 -456
  2. package/.aios-core/development/tasks/setup-project-docs.md +440 -444
  3. package/.aios-core/infrastructure/scripts/documentation-integrity/brownfield-analyzer.js +501 -501
  4. package/.aios-core/infrastructure/scripts/documentation-integrity/config-generator.js +368 -329
  5. package/.aios-core/infrastructure/scripts/documentation-integrity/deployment-config-loader.js +308 -282
  6. package/.aios-core/infrastructure/scripts/documentation-integrity/doc-generator.js +331 -331
  7. package/.aios-core/infrastructure/scripts/documentation-integrity/gitignore-generator.js +312 -312
  8. package/.aios-core/infrastructure/scripts/documentation-integrity/index.js +74 -74
  9. package/.aios-core/infrastructure/scripts/documentation-integrity/mode-detector.js +389 -358
  10. package/.aios-core/infrastructure/scripts/llm-routing/install-llm-routing.js +6 -6
  11. package/.aios-core/infrastructure/templates/core-config/core-config-brownfield.tmpl.yaml +176 -182
  12. package/.aios-core/infrastructure/templates/core-config/core-config-greenfield.tmpl.yaml +127 -127
  13. package/.aios-core/infrastructure/templates/project-docs/coding-standards-tmpl.md +346 -346
  14. package/.aios-core/infrastructure/templates/project-docs/source-tree-tmpl.md +177 -177
  15. package/.aios-core/infrastructure/templates/project-docs/tech-stack-tmpl.md +267 -267
  16. package/package.json +1 -1
  17. package/packages/installer/src/config/templates/env-template.js +2 -2
  18. package/packages/installer/src/wizard/wizard.js +1 -1
  19. package/packages/installer/tests/integration/environment-configuration.test.js +2 -1
  20. package/packages/installer/tests/unit/env-template.test.js +3 -2
  21. package/src/wizard/index.js +2 -2
  22. package/.aios-core/development/tasks/validate-structure.md +0 -243
  23. package/.aios-core/infrastructure/scripts/source-tree-guardian/index.js +0 -375
  24. package/.aios-core/infrastructure/scripts/source-tree-guardian/manifest-generator.js +0 -410
  25. package/.aios-core/infrastructure/scripts/source-tree-guardian/rules/naming-rules.yaml +0 -285
  26. package/.aios-core/infrastructure/scripts/source-tree-guardian/rules/placement-rules.yaml +0 -262
  27. package/.aios-core/infrastructure/scripts/source-tree-guardian/validator.js +0 -468
@@ -70,7 +70,7 @@ function installLLMRouting(options = {}) {
70
70
  projectRoot = process.cwd(),
71
71
  templatesDir = path.join(__dirname, 'templates'),
72
72
  onProgress = console.log,
73
- onError = console.error,
73
+ onError = console.error
74
74
  } = options;
75
75
 
76
76
  const result = {
@@ -78,7 +78,7 @@ function installLLMRouting(options = {}) {
78
78
  installDir: null,
79
79
  filesInstalled: [],
80
80
  envCreated: false,
81
- errors: [],
81
+ errors: []
82
82
  };
83
83
 
84
84
  // Check templates exist
@@ -143,7 +143,7 @@ function installLLMRouting(options = {}) {
143
143
  try {
144
144
  fs.copyFileSync(envExample, envFile);
145
145
  result.envCreated = true;
146
- onProgress('✅ Created .env from .env.example');
146
+ onProgress(`✅ Created .env from .env.example`);
147
147
  } catch (error) {
148
148
  result.success = false;
149
149
  result.errors.push(`Failed to create .env: ${error.message}`);
@@ -180,7 +180,7 @@ function updateClaudeConfig() {
180
180
  config.aiosLLMRouting = {
181
181
  version: LLM_ROUTING_VERSION,
182
182
  installedAt: new Date().toISOString(),
183
- commands: ['claude-max', 'claude-free'],
183
+ commands: ['claude-max', 'claude-free']
184
184
  };
185
185
 
186
186
  fs.writeFileSync(claudeConfigPath, JSON.stringify(config, null, 2));
@@ -250,7 +250,7 @@ module.exports = {
250
250
  isLLMRoutingInstalled,
251
251
  getInstallDir,
252
252
  getInstallationSummary,
253
- LLM_ROUTING_VERSION,
253
+ LLM_ROUTING_VERSION
254
254
  };
255
255
 
256
256
  // Run if executed directly
@@ -259,7 +259,7 @@ if (require.main === module) {
259
259
 
260
260
  const result = installLLMRouting({
261
261
  projectRoot: process.cwd(),
262
- templatesDir: path.join(__dirname, 'templates'),
262
+ templatesDir: path.join(__dirname, 'templates')
263
263
  });
264
264
 
265
265
  const summary = getInstallationSummary(result);
@@ -1,182 +1,176 @@
1
- # AIOS Core Configuration
2
- # Generated by AIOS Documentation Integrity System
3
- # Mode: Brownfield (Existing Project Integration)
4
- # Date: {{GENERATED_DATE}}
5
-
6
- # =============================================================================
7
- # PROJECT CONFIGURATION
8
- # =============================================================================
9
- project:
10
- type: USER_PROJECT
11
- mode: brownfield
12
- name: "{{PROJECT_NAME}}"
13
- analyzed: "{{GENERATED_DATE}}"
14
- version: "{{PROJECT_VERSION}}"
15
-
16
- # Analysis metadata from brownfield analyzer
17
- analysis:
18
- existing_structure: {{HAS_EXISTING_STRUCTURE}}
19
- existing_workflows: {{HAS_EXISTING_WORKFLOWS}}
20
- existing_standards: {{HAS_EXISTING_STANDARDS}}
21
- merge_strategy: "{{MERGE_STRATEGY}}" # parallel | replace | manual
22
-
23
- # Detected configurations (for reference)
24
- detected:
25
- tech_stack: {{DETECTED_TECH_STACK}}
26
- frameworks: {{DETECTED_FRAMEWORKS}}
27
- linting: {{DETECTED_LINTING}}
28
- formatting: {{DETECTED_FORMATTING}}
29
- testing: {{DETECTED_TESTING}}
30
-
31
- # =============================================================================
32
- # DEV CONTEXT LOADING
33
- # Files loaded automatically when @dev agent activates
34
- # =============================================================================
35
- devLoadAlwaysFiles:
36
- - docs/architecture/coding-standards.md
37
- - docs/architecture/tech-stack.md
38
- - docs/architecture/source-tree.md
39
-
40
- # =============================================================================
41
- # DEPLOYMENT CONFIGURATION
42
- # All @devops agent tasks read from this section
43
- # Analyzed from existing workflows + user confirmation
44
- # =============================================================================
45
- deployment:
46
- # Workflow type (detected or user-selected)
47
- workflow: {{DEPLOYMENT_WORKFLOW}}
48
-
49
- # Branch routing configuration (analyzed from existing PR patterns)
50
- branches:
51
- staging_targets:
52
- - "feature/*"
53
- - "fix/*"
54
- - "docs/*"
55
- - "chore/*"
56
- - "refactor/*"
57
- - "test/*"
58
-
59
- production_targets:
60
- - "hotfix/*"
61
-
62
- # Detected branch names (may differ from defaults)
63
- staging_branch: {{STAGING_BRANCH}}
64
- production_branch: {{PRODUCTION_BRANCH}}
65
- default_target: {{DEFAULT_TARGET}}
66
-
67
- # Environment configuration (detected from existing deploy configs)
68
- environments:
69
- staging:
70
- name: "{{STAGING_ENV_NAME}}"
71
- branch: {{STAGING_BRANCH}}
72
- auto_deploy: {{STAGING_AUTO_DEPLOY}}
73
- platform: "{{DEPLOYMENT_PLATFORM}}"
74
- url: "${STAGING_URL}"
75
- promotion_message: "After validation, create PR to {{PRODUCTION_BRANCH}} for production"
76
-
77
- production:
78
- name: "{{PRODUCTION_ENV_NAME}}"
79
- branch: {{PRODUCTION_BRANCH}}
80
- auto_deploy: {{PRODUCTION_AUTO_DEPLOY}}
81
- platform: "{{DEPLOYMENT_PLATFORM}}"
82
- url: "${PRODUCTION_URL}"
83
- promotion_message: "This is the final production deployment"
84
-
85
- # Quality gates (detected from existing CI)
86
- quality_gates:
87
- lint: {{QUALITY_LINT}}
88
- typecheck: {{QUALITY_TYPECHECK}}
89
- tests: {{QUALITY_TESTS}}
90
- security_scan: {{QUALITY_SECURITY}}
91
- min_coverage: {{MIN_COVERAGE}}
92
-
93
- # PR defaults
94
- pr_defaults:
95
- auto_assign_reviewers: {{AUTO_ASSIGN_REVIEWERS}}
96
- draft_by_default: {{DRAFT_BY_DEFAULT}}
97
- include_deployment_info: true
98
-
99
- # =============================================================================
100
- # EXISTING CONFIGURATION PRESERVATION
101
- # References to existing config files that should be respected
102
- # =============================================================================
103
- existing_configs:
104
- # Linting/Formatting (don't override these)
105
- eslint: {{ESLINT_CONFIG_PATH}}
106
- prettier: {{PRETTIER_CONFIG_PATH}}
107
- tsconfig: {{TSCONFIG_PATH}}
108
- flake8: {{FLAKE8_CONFIG_PATH}}
109
-
110
- # CI/CD (may need merge)
111
- github_workflows: {{GITHUB_WORKFLOWS_PATH}}
112
- gitlab_ci: {{GITLAB_CI_PATH}}
113
-
114
- # Package management
115
- package_json: {{PACKAGE_JSON_PATH}}
116
- requirements_txt: {{REQUIREMENTS_PATH}}
117
- go_mod: {{GO_MOD_PATH}}
118
-
119
- # =============================================================================
120
- # AGENT CONFIGURATION
121
- # =============================================================================
122
- agents:
123
- dev:
124
- auto_load_context: true
125
- story_tracking: true
126
- respect_existing_standards: true
127
-
128
- qa:
129
- run_on_pr: true
130
- coverage_threshold: {{MIN_COVERAGE}}
131
-
132
- devops:
133
- auto_detect_workflow: true
134
- merge_with_existing: {{MERGE_WORKFLOWS}}
135
-
136
- # =============================================================================
137
- # FEATURES
138
- # =============================================================================
139
- features:
140
- documentation_integrity: true
141
- source_tree_guardian: true
142
- quality_metrics: true
143
-
144
- documentation_integrity_options:
145
- generate_source_tree: true
146
- generate_coding_standards: true
147
- generate_tech_stack: true
148
- brownfield_analysis: true
149
- gitignore_generation: true
150
- merge_gitignore: true # Merge with existing instead of replace
151
-
152
- # =============================================================================
153
- # MIGRATION NOTES
154
- # Auto-generated notes from brownfield analysis
155
- # =============================================================================
156
- migration_notes:
157
- # Summary of what was detected vs generated
158
- summary: "{{MIGRATION_SUMMARY}}"
159
-
160
- # Items requiring manual review
161
- manual_review_items:
162
- {{#each MANUAL_REVIEW_ITEMS}}
163
- - "{{this}}"
164
- {{/each}}
165
-
166
- # Potential conflicts detected
167
- conflicts:
168
- {{#each CONFLICTS}}
169
- - "{{this}}"
170
- {{/each}}
171
-
172
- # Recommendations
173
- recommendations:
174
- {{#each RECOMMENDATIONS}}
175
- - "{{this}}"
176
- {{/each}}
177
-
178
- # =============================================================================
179
- # CUSTOM CONFIGURATION
180
- # Project-specific settings
181
- # =============================================================================
182
- custom: {}
1
+ # AIOS Core Configuration
2
+ # Generated by AIOS Documentation Integrity System
3
+ # Mode: Brownfield (Existing Project Integration)
4
+ # Date: {{GENERATED_DATE}}
5
+ #
6
+ # NOTE: This is a template file (.tmpl.yaml) - not raw YAML.
7
+ # Placeholders are processed by the documentation-integrity generator.
8
+
9
+ # =============================================================================
10
+ # PROJECT CONFIGURATION
11
+ # =============================================================================
12
+ project:
13
+ type: USER_PROJECT
14
+ mode: brownfield
15
+ name: "{{PROJECT_NAME}}"
16
+ analyzed: "{{GENERATED_DATE}}"
17
+ version: "{{PROJECT_VERSION}}"
18
+
19
+ # Analysis metadata from brownfield analyzer
20
+ analysis:
21
+ existing_structure: {{HAS_EXISTING_STRUCTURE}}
22
+ existing_workflows: {{HAS_EXISTING_WORKFLOWS}}
23
+ existing_standards: {{HAS_EXISTING_STANDARDS}}
24
+ merge_strategy: "{{MERGE_STRATEGY}}" # parallel | replace | manual
25
+
26
+ # Detected configurations (for reference)
27
+ detected:
28
+ tech_stack: {{DETECTED_TECH_STACK}}
29
+ frameworks: {{DETECTED_FRAMEWORKS}}
30
+ linting: {{DETECTED_LINTING}}
31
+ formatting: {{DETECTED_FORMATTING}}
32
+ testing: {{DETECTED_TESTING}}
33
+
34
+ # =============================================================================
35
+ # DEV CONTEXT LOADING
36
+ # Files loaded automatically when @dev agent activates
37
+ # =============================================================================
38
+ devLoadAlwaysFiles:
39
+ - docs/architecture/coding-standards.md
40
+ - docs/architecture/tech-stack.md
41
+ - docs/architecture/source-tree.md
42
+
43
+ # =============================================================================
44
+ # DEPLOYMENT CONFIGURATION
45
+ # All @devops agent tasks read from this section
46
+ # Analyzed from existing workflows + user confirmation
47
+ # =============================================================================
48
+ deployment:
49
+ # Workflow type (detected or user-selected)
50
+ workflow: {{DEPLOYMENT_WORKFLOW}}
51
+
52
+ # Branch routing configuration (analyzed from existing PR patterns)
53
+ branches:
54
+ staging_targets:
55
+ - "feature/*"
56
+ - "fix/*"
57
+ - "docs/*"
58
+ - "chore/*"
59
+ - "refactor/*"
60
+ - "test/*"
61
+
62
+ production_targets:
63
+ - "hotfix/*"
64
+
65
+ # Detected branch names (may differ from defaults)
66
+ staging_branch: {{STAGING_BRANCH}}
67
+ production_branch: {{PRODUCTION_BRANCH}}
68
+ default_target: {{DEFAULT_TARGET}}
69
+
70
+ # Environment configuration (detected from existing deploy configs)
71
+ environments:
72
+ staging:
73
+ name: "{{STAGING_ENV_NAME}}"
74
+ branch: {{STAGING_BRANCH}}
75
+ auto_deploy: {{STAGING_AUTO_DEPLOY}}
76
+ platform: "{{DEPLOYMENT_PLATFORM}}"
77
+ url: "${STAGING_URL}"
78
+ promotion_message: "After validation, create PR to {{PRODUCTION_BRANCH}} for production"
79
+
80
+ production:
81
+ name: "{{PRODUCTION_ENV_NAME}}"
82
+ branch: {{PRODUCTION_BRANCH}}
83
+ auto_deploy: {{PRODUCTION_AUTO_DEPLOY}}
84
+ platform: "{{DEPLOYMENT_PLATFORM}}"
85
+ url: "${PRODUCTION_URL}"
86
+ promotion_message: "This is the final production deployment"
87
+
88
+ # Quality gates (detected from existing CI)
89
+ quality_gates:
90
+ lint: {{QUALITY_LINT}}
91
+ typecheck: {{QUALITY_TYPECHECK}}
92
+ tests: {{QUALITY_TESTS}}
93
+ security_scan: {{QUALITY_SECURITY}}
94
+ min_coverage: {{MIN_COVERAGE}}
95
+
96
+ # PR defaults
97
+ pr_defaults:
98
+ auto_assign_reviewers: {{AUTO_ASSIGN_REVIEWERS}}
99
+ draft_by_default: {{DRAFT_BY_DEFAULT}}
100
+ include_deployment_info: true
101
+
102
+ # =============================================================================
103
+ # EXISTING CONFIGURATION PRESERVATION
104
+ # References to existing config files that should be respected
105
+ # =============================================================================
106
+ existing_configs:
107
+ # Linting/Formatting (don't override these)
108
+ eslint: {{ESLINT_CONFIG_PATH}}
109
+ prettier: {{PRETTIER_CONFIG_PATH}}
110
+ tsconfig: {{TSCONFIG_PATH}}
111
+ flake8: {{FLAKE8_CONFIG_PATH}}
112
+
113
+ # CI/CD (may need merge)
114
+ github_workflows: {{GITHUB_WORKFLOWS_PATH}}
115
+ gitlab_ci: {{GITLAB_CI_PATH}}
116
+
117
+ # Package management
118
+ package_json: {{PACKAGE_JSON_PATH}}
119
+ requirements_txt: {{REQUIREMENTS_PATH}}
120
+ go_mod: {{GO_MOD_PATH}}
121
+
122
+ # =============================================================================
123
+ # AGENT CONFIGURATION
124
+ # =============================================================================
125
+ agents:
126
+ dev:
127
+ auto_load_context: true
128
+ story_tracking: true
129
+ respect_existing_standards: true
130
+
131
+ qa:
132
+ run_on_pr: true
133
+ coverage_threshold: {{MIN_COVERAGE}}
134
+
135
+ devops:
136
+ auto_detect_workflow: true
137
+ merge_with_existing: {{MERGE_WORKFLOWS}}
138
+
139
+ # =============================================================================
140
+ # FEATURES
141
+ # =============================================================================
142
+ features:
143
+ documentation_integrity: true
144
+ source_tree_guardian: true
145
+ quality_metrics: true
146
+
147
+ documentation_integrity_options:
148
+ generate_source_tree: true
149
+ generate_coding_standards: true
150
+ generate_tech_stack: true
151
+ brownfield_analysis: true
152
+ gitignore_generation: true
153
+ merge_gitignore: true # Merge with existing instead of replace
154
+
155
+ # =============================================================================
156
+ # MIGRATION NOTES
157
+ # Auto-generated notes from brownfield analysis
158
+ # =============================================================================
159
+ migration_notes:
160
+ # Summary of what was detected vs generated
161
+ summary: "{{MIGRATION_SUMMARY}}"
162
+
163
+ # Items requiring manual review
164
+ manual_review_items: {{MANUAL_REVIEW_ITEMS_YAML}}
165
+
166
+ # Potential conflicts detected
167
+ conflicts: {{CONFLICTS_YAML}}
168
+
169
+ # Recommendations
170
+ recommendations: {{RECOMMENDATIONS_YAML}}
171
+
172
+ # =============================================================================
173
+ # CUSTOM CONFIGURATION
174
+ # Project-specific settings
175
+ # =============================================================================
176
+ custom: {}
@@ -1,127 +1,127 @@
1
- # AIOS Core Configuration
2
- # Generated by AIOS Documentation Integrity System
3
- # Mode: Greenfield (New Project)
4
- # Date: {{GENERATED_DATE}}
5
-
6
- # =============================================================================
7
- # PROJECT CONFIGURATION
8
- # =============================================================================
9
- project:
10
- type: USER_PROJECT
11
- mode: greenfield
12
- name: "{{PROJECT_NAME}}"
13
- created: "{{GENERATED_DATE}}"
14
- version: "0.1.0"
15
-
16
- # =============================================================================
17
- # DEV CONTEXT LOADING
18
- # Files loaded automatically when @dev agent activates
19
- # =============================================================================
20
- devLoadAlwaysFiles:
21
- - docs/architecture/coding-standards.md
22
- - docs/architecture/tech-stack.md
23
- - docs/architecture/source-tree.md
24
-
25
- # =============================================================================
26
- # DEPLOYMENT CONFIGURATION
27
- # All @devops agent tasks read from this section
28
- # See docs/guides/DEPLOYMENT-GUIDE.md for details
29
- # =============================================================================
30
- deployment:
31
- # Workflow type: staging-first (with staging branch) or direct-to-main
32
- workflow: {{DEPLOYMENT_WORKFLOW}}
33
-
34
- # Branch routing configuration
35
- branches:
36
- # These branch patterns will target staging (if staging-first workflow)
37
- staging_targets:
38
- - "feature/*"
39
- - "fix/*"
40
- - "docs/*"
41
- - "chore/*"
42
- - "refactor/*"
43
- - "test/*"
44
-
45
- # These branch patterns will target production directly (emergency fixes)
46
- production_targets:
47
- - "hotfix/*"
48
-
49
- # Branch names
50
- staging_branch: {{STAGING_BRANCH}}
51
- production_branch: {{PRODUCTION_BRANCH}}
52
-
53
- # Default PR target for ambiguous cases
54
- default_target: {{DEFAULT_TARGET}}
55
-
56
- # Environment configuration
57
- environments:
58
- staging:
59
- name: "{{STAGING_ENV_NAME}}"
60
- branch: {{STAGING_BRANCH}}
61
- auto_deploy: true
62
- platform: "{{DEPLOYMENT_PLATFORM}}"
63
- url: "${STAGING_URL}"
64
- promotion_message: "After validation, create PR to {{PRODUCTION_BRANCH}} for production"
65
-
66
- production:
67
- name: "{{PRODUCTION_ENV_NAME}}"
68
- branch: {{PRODUCTION_BRANCH}}
69
- auto_deploy: true
70
- platform: "{{DEPLOYMENT_PLATFORM}}"
71
- url: "${PRODUCTION_URL}"
72
- promotion_message: "This is the final production deployment"
73
-
74
- # Quality gates for PRs
75
- quality_gates:
76
- lint: {{QUALITY_LINT}}
77
- typecheck: {{QUALITY_TYPECHECK}}
78
- tests: {{QUALITY_TESTS}}
79
- security_scan: {{QUALITY_SECURITY}}
80
- min_coverage: {{MIN_COVERAGE}}
81
-
82
- # PR defaults
83
- pr_defaults:
84
- auto_assign_reviewers: false
85
- draft_by_default: false
86
- include_deployment_info: true
87
- labels:
88
- staging: ["staging", "needs-review"]
89
- production: ["production", "promotion"]
90
-
91
- # =============================================================================
92
- # AGENT CONFIGURATION
93
- # Agent-specific settings
94
- # =============================================================================
95
- agents:
96
- dev:
97
- auto_load_context: true
98
- story_tracking: true
99
-
100
- qa:
101
- run_on_pr: true
102
- coverage_threshold: {{MIN_COVERAGE}}
103
-
104
- devops:
105
- auto_detect_workflow: true
106
-
107
- # =============================================================================
108
- # FEATURES
109
- # Feature flags for optional functionality
110
- # =============================================================================
111
- features:
112
- documentation_integrity: true
113
- source_tree_guardian: true
114
- quality_metrics: true
115
-
116
- documentation_integrity_options:
117
- generate_source_tree: true
118
- generate_coding_standards: true
119
- generate_tech_stack: true
120
- brownfield_analysis: false
121
- gitignore_generation: true
122
-
123
- # =============================================================================
124
- # CUSTOM CONFIGURATION
125
- # Project-specific settings
126
- # =============================================================================
127
- custom: {}
1
+ # AIOS Core Configuration
2
+ # Generated by AIOS Documentation Integrity System
3
+ # Mode: Greenfield (New Project)
4
+ # Date: {{GENERATED_DATE}}
5
+
6
+ # =============================================================================
7
+ # PROJECT CONFIGURATION
8
+ # =============================================================================
9
+ project:
10
+ type: USER_PROJECT
11
+ mode: greenfield
12
+ name: "{{PROJECT_NAME}}"
13
+ created: "{{GENERATED_DATE}}"
14
+ version: "0.1.0"
15
+
16
+ # =============================================================================
17
+ # DEV CONTEXT LOADING
18
+ # Files loaded automatically when @dev agent activates
19
+ # =============================================================================
20
+ devLoadAlwaysFiles:
21
+ - docs/architecture/coding-standards.md
22
+ - docs/architecture/tech-stack.md
23
+ - docs/architecture/source-tree.md
24
+
25
+ # =============================================================================
26
+ # DEPLOYMENT CONFIGURATION
27
+ # All @devops agent tasks read from this section
28
+ # See docs/guides/DEPLOYMENT-GUIDE.md for details
29
+ # =============================================================================
30
+ deployment:
31
+ # Workflow type: staging-first (with staging branch) or direct-to-main
32
+ workflow: {{DEPLOYMENT_WORKFLOW}}
33
+
34
+ # Branch routing configuration
35
+ branches:
36
+ # These branch patterns will target staging (if staging-first workflow)
37
+ staging_targets:
38
+ - "feature/*"
39
+ - "fix/*"
40
+ - "docs/*"
41
+ - "chore/*"
42
+ - "refactor/*"
43
+ - "test/*"
44
+
45
+ # These branch patterns will target production directly (emergency fixes)
46
+ production_targets:
47
+ - "hotfix/*"
48
+
49
+ # Branch names
50
+ staging_branch: {{STAGING_BRANCH}}
51
+ production_branch: {{PRODUCTION_BRANCH}}
52
+
53
+ # Default PR target for ambiguous cases
54
+ default_target: {{DEFAULT_TARGET}}
55
+
56
+ # Environment configuration
57
+ environments:
58
+ staging:
59
+ name: "{{STAGING_ENV_NAME}}"
60
+ branch: {{STAGING_BRANCH}}
61
+ auto_deploy: true
62
+ platform: "{{DEPLOYMENT_PLATFORM}}"
63
+ url: "${STAGING_URL}"
64
+ promotion_message: "After validation, create PR to {{PRODUCTION_BRANCH}} for production"
65
+
66
+ production:
67
+ name: "{{PRODUCTION_ENV_NAME}}"
68
+ branch: {{PRODUCTION_BRANCH}}
69
+ auto_deploy: true
70
+ platform: "{{DEPLOYMENT_PLATFORM}}"
71
+ url: "${PRODUCTION_URL}"
72
+ promotion_message: "This is the final production deployment"
73
+
74
+ # Quality gates for PRs
75
+ quality_gates:
76
+ lint: {{QUALITY_LINT}}
77
+ typecheck: {{QUALITY_TYPECHECK}}
78
+ tests: {{QUALITY_TESTS}}
79
+ security_scan: {{QUALITY_SECURITY}}
80
+ min_coverage: {{MIN_COVERAGE}}
81
+
82
+ # PR defaults
83
+ pr_defaults:
84
+ auto_assign_reviewers: false
85
+ draft_by_default: false
86
+ include_deployment_info: true
87
+ labels:
88
+ staging: ["staging", "needs-review"]
89
+ production: ["production", "promotion"]
90
+
91
+ # =============================================================================
92
+ # AGENT CONFIGURATION
93
+ # Agent-specific settings
94
+ # =============================================================================
95
+ agents:
96
+ dev:
97
+ auto_load_context: true
98
+ story_tracking: true
99
+
100
+ qa:
101
+ run_on_pr: true
102
+ coverage_threshold: {{MIN_COVERAGE}}
103
+
104
+ devops:
105
+ auto_detect_workflow: true
106
+
107
+ # =============================================================================
108
+ # FEATURES
109
+ # Feature flags for optional functionality
110
+ # =============================================================================
111
+ features:
112
+ documentation_integrity: true
113
+ source_tree_guardian: true
114
+ quality_metrics: true
115
+
116
+ documentation_integrity_options:
117
+ generate_source_tree: true
118
+ generate_coding_standards: true
119
+ generate_tech_stack: true
120
+ brownfield_analysis: false
121
+ gitignore_generation: true
122
+
123
+ # =============================================================================
124
+ # CUSTOM CONFIGURATION
125
+ # Project-specific settings
126
+ # =============================================================================
127
+ custom: {}