aios-core 4.0.2 → 4.1.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/.aios-core/cli/commands/migrate/analyze.js +6 -6
- package/.aios-core/cli/commands/migrate/backup.js +2 -2
- package/.aios-core/cli/commands/migrate/execute.js +4 -4
- package/.aios-core/cli/commands/migrate/index.js +5 -5
- package/.aios-core/cli/commands/migrate/rollback.js +6 -6
- package/.aios-core/cli/commands/migrate/update-imports.js +2 -2
- package/.aios-core/cli/commands/migrate/validate.js +2 -2
- package/.aios-core/cli/commands/pro/index.js +52 -0
- package/.aios-core/cli/index.js +1 -1
- package/.aios-core/core/ids/registry-updater.js +29 -3
- package/.aios-core/core/migration/migration-config.yaml +2 -2
- package/.aios-core/core/migration/module-mapping.yaml +2 -2
- package/.aios-core/core/registry/README.md +2 -2
- package/.aios-core/core/synapse/context/context-builder.js +34 -0
- package/.aios-core/core/synapse/diagnostics/collectors/consistency-collector.js +168 -0
- package/.aios-core/core/synapse/diagnostics/collectors/hook-collector.js +129 -0
- package/.aios-core/core/synapse/diagnostics/collectors/manifest-collector.js +82 -0
- package/.aios-core/core/synapse/diagnostics/collectors/output-analyzer.js +134 -0
- package/.aios-core/core/synapse/diagnostics/collectors/pipeline-collector.js +75 -0
- package/.aios-core/core/synapse/diagnostics/collectors/quality-collector.js +252 -0
- package/.aios-core/core/synapse/diagnostics/collectors/relevance-matrix.js +174 -0
- package/.aios-core/core/synapse/diagnostics/collectors/safe-read-json.js +31 -0
- package/.aios-core/core/synapse/diagnostics/collectors/session-collector.js +102 -0
- package/.aios-core/core/synapse/diagnostics/collectors/timing-collector.js +126 -0
- package/.aios-core/core/synapse/diagnostics/collectors/uap-collector.js +83 -0
- package/.aios-core/core/synapse/diagnostics/report-formatter.js +484 -0
- package/.aios-core/core/synapse/diagnostics/synapse-diagnostics.js +95 -0
- package/.aios-core/core/synapse/engine.js +73 -20
- package/.aios-core/core/synapse/runtime/hook-runtime.js +60 -0
- package/.aios-core/core-config.yaml +6 -0
- package/.aios-core/data/agent-config-requirements.yaml +2 -2
- package/.aios-core/data/aios-kb.md +4 -4
- package/.aios-core/data/entity-registry.yaml +5 -5
- package/.aios-core/development/agents/architect.md +10 -10
- package/.aios-core/development/agents/devops.md +93 -50
- package/.aios-core/development/agents/qa.md +94 -40
- package/.aios-core/development/agents/ux-design-expert.md +25 -25
- package/.aios-core/development/scripts/activation-runtime.js +63 -0
- package/.aios-core/development/scripts/generate-greeting.js +9 -8
- package/.aios-core/development/scripts/unified-activation-pipeline.js +102 -2
- package/.aios-core/development/tasks/{db-expansion-pack-integration.md → db-squad-integration.md} +5 -5
- package/.aios-core/development/tasks/{integrate-expansion-pack.md → integrate-squad.md} +2 -2
- package/.aios-core/development/tasks/next.md +3 -3
- package/.aios-core/development/tasks/pr-automation.md +2 -2
- package/.aios-core/development/tasks/publish-npm.md +257 -0
- package/.aios-core/development/tasks/release-management.md +4 -4
- package/.aios-core/development/tasks/setup-github.md +1 -1
- package/.aios-core/development/tasks/squad-creator-migrate.md +1 -1
- package/.aios-core/development/tasks/squad-creator-sync-ide-command.md +14 -14
- package/.aios-core/development/tasks/update-aios.md +1 -1
- package/.aios-core/docs/standards/AIOS-COLOR-PALETTE-QUICK-REFERENCE.md +1 -1
- package/.aios-core/docs/standards/AIOS-COLOR-PALETTE-V2.1.md +5 -5
- package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md +21 -21
- package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.2-SUMMARY.md +25 -25
- package/.aios-core/docs/standards/OPEN-SOURCE-VS-SERVICE-DIFFERENCES.md +4 -4
- package/.aios-core/docs/standards/QUALITY-GATES-SPECIFICATION.md +3 -3
- package/.aios-core/docs/standards/STANDARDS-INDEX.md +13 -13
- package/.aios-core/docs/standards/STORY-TEMPLATE-V2-SPECIFICATION.md +1 -1
- package/.aios-core/framework-config.yaml +4 -0
- package/.aios-core/infrastructure/scripts/codex-skills-sync/index.js +182 -0
- package/.aios-core/infrastructure/scripts/codex-skills-sync/validate.js +172 -0
- package/.aios-core/infrastructure/scripts/ide-sync/README.md +14 -0
- package/.aios-core/infrastructure/scripts/ide-sync/index.js +6 -0
- package/.aios-core/infrastructure/scripts/tool-resolver.js +4 -4
- package/.aios-core/infrastructure/scripts/validate-paths.js +142 -0
- package/.aios-core/infrastructure/templates/aios-sync.yaml.template +11 -11
- package/.aios-core/infrastructure/templates/github-workflows/README.md +1 -1
- package/.aios-core/install-manifest.yaml +190 -106
- package/.aios-core/local-config.yaml.template +2 -0
- package/.aios-core/product/README.md +2 -2
- package/.aios-core/product/data/integration-patterns.md +1 -1
- package/.aios-core/product/templates/ide-rules/cline-rules.md +1 -1
- package/.aios-core/product/templates/ide-rules/codex-rules.md +65 -0
- package/.aios-core/product/templates/ide-rules/copilot-rules.md +1 -1
- package/.aios-core/product/templates/ide-rules/roo-rules.md +1 -1
- package/.aios-core/user-guide.md +15 -14
- package/.aios-core/workflow-intelligence/engine/output-formatter.js +1 -1
- package/.claude/hooks/enforce-architecture-first.py +196 -0
- package/.claude/hooks/install-hooks.sh +41 -0
- package/.claude/hooks/mind-clone-governance.py +192 -0
- package/.claude/hooks/pre-commit-mmos-guard.sh +99 -0
- package/.claude/hooks/pre-commit-version-check.sh +156 -0
- package/.claude/hooks/read-protection.py +151 -0
- package/.claude/hooks/slug-validation.py +176 -0
- package/.claude/hooks/sql-governance.py +182 -0
- package/.claude/hooks/synapse-engine.js +9 -20
- package/.claude/hooks/write-path-validation.py +194 -0
- package/README.md +44 -14
- package/bin/aios-init.js +255 -184
- package/bin/aios-minimal.js +2 -2
- package/bin/aios.js +19 -19
- package/package.json +7 -4
- package/packages/aios-pro-cli/bin/aios-pro.js +75 -2
- package/packages/aios-pro-cli/package.json +5 -1
- package/packages/aios-pro-cli/src/recover.js +100 -0
- package/packages/installer/src/__tests__/performance-benchmark.js +382 -0
- package/packages/installer/src/config/ide-configs.js +12 -1
- package/packages/installer/src/config/templates/core-config-template.js +2 -2
- package/packages/installer/src/installer/aios-core-installer.js +2 -2
- package/packages/installer/src/installer/file-hasher.js +97 -0
- package/packages/installer/src/installer/post-install-validator.js +41 -1
- package/packages/installer/src/pro/pro-scaffolder.js +335 -0
- package/packages/installer/src/utils/aios-colors.js +2 -2
- package/packages/installer/src/wizard/feedback.js +1 -1
- package/packages/installer/src/wizard/ide-config-generator.js +2 -2
- package/packages/installer/src/wizard/index.js +58 -19
- package/packages/installer/src/wizard/pro-setup.js +547 -0
- package/packages/installer/src/wizard/questions.js +20 -14
- package/packages/installer/src/wizard/validators.js +1 -1
- package/scripts/package-synapse.js +323 -0
- package/scripts/validate-package-completeness.js +317 -0
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
## 🎯 PURPOSE OF THIS DOCUMENT
|
|
11
11
|
|
|
12
|
-
This is a **delta document** highlighting **ONLY what changed in v2.2** compared to
|
|
12
|
+
This is a **delta document** highlighting **ONLY what changed in v2.2** compared to v4.0.4.
|
|
13
13
|
|
|
14
14
|
For complete content:
|
|
15
15
|
- ✅ **`AIOS-LIVRO-DE-OURO.md`** (v2.0 base)
|
|
16
|
-
- ✅ **`AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md`** (
|
|
16
|
+
- ✅ **`AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md`** (v4.0.4 changes)
|
|
17
17
|
- ✅ **This document** (v2.2 changes ONLY)
|
|
18
18
|
|
|
19
|
-
**Combined reading:** v2.0 base +
|
|
19
|
+
**Combined reading:** v2.0 base + v4.0.4 delta + v2.2 delta = Complete v2.2 understanding
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ For complete content:
|
|
|
24
24
|
|
|
25
25
|
### Memory Layer (The Game Changer)
|
|
26
26
|
|
|
27
|
-
**
|
|
27
|
+
**v4.0.4:** Stateless agents (each execution isolated)
|
|
28
28
|
**v2.2:** Agents remember, learn, and improve
|
|
29
29
|
|
|
30
30
|
```yaml
|
|
@@ -59,7 +59,7 @@ Memory Types:
|
|
|
59
59
|
|
|
60
60
|
### Agent Lightning (RL Optimization)
|
|
61
61
|
|
|
62
|
-
**
|
|
62
|
+
**v4.0.4:** Static workflows
|
|
63
63
|
**v2.2:** Self-optimizing workflows
|
|
64
64
|
|
|
65
65
|
```yaml
|
|
@@ -96,7 +96,7 @@ Result:
|
|
|
96
96
|
|
|
97
97
|
### Advanced Features Matrix
|
|
98
98
|
|
|
99
|
-
| Feature |
|
|
99
|
+
| Feature | v4.0.4 | v2.2 | Impact |
|
|
100
100
|
|---------|------|------|--------|
|
|
101
101
|
| **Memory Layer** | ❌ Stateless | ✅ 4 memory types | Agents learn |
|
|
102
102
|
| **Agent Lightning** | ❌ Static | ✅ RL optimization | 30% faster, 40% cheaper |
|
|
@@ -110,7 +110,7 @@ Result:
|
|
|
110
110
|
|
|
111
111
|
## 🧠 DEEP DIVE: Memory Layer
|
|
112
112
|
|
|
113
|
-
### The Problem (
|
|
113
|
+
### The Problem (v4.0.4)
|
|
114
114
|
|
|
115
115
|
```yaml
|
|
116
116
|
Scenario: Developer asks Dex (Dev Agent) to implement feature
|
|
@@ -298,10 +298,10 @@ Example:
|
|
|
298
298
|
|
|
299
299
|
## ⚡ DEEP DIVE: Agent Lightning
|
|
300
300
|
|
|
301
|
-
### The Problem (
|
|
301
|
+
### The Problem (v4.0.4)
|
|
302
302
|
|
|
303
303
|
```yaml
|
|
304
|
-
Static Workflow (
|
|
304
|
+
Static Workflow (v4.0.4):
|
|
305
305
|
1. Developer creates story
|
|
306
306
|
2. Dex implements (5 min)
|
|
307
307
|
3. Quinn tests (3 min)
|
|
@@ -419,7 +419,7 @@ Result:
|
|
|
419
419
|
|
|
420
420
|
### Impact Metrics
|
|
421
421
|
|
|
422
|
-
**Before Agent Lightning (
|
|
422
|
+
**Before Agent Lightning (v4.0.4):**
|
|
423
423
|
```yaml
|
|
424
424
|
Average workflow time: 11 minutes
|
|
425
425
|
Average cost per story: $0.50 (LLM calls)
|
|
@@ -441,7 +441,7 @@ Learning rate: 10% improvement per week
|
|
|
441
441
|
|
|
442
442
|
### Shared Context
|
|
443
443
|
|
|
444
|
-
**
|
|
444
|
+
**v4.0.4:** Each developer's agents isolated
|
|
445
445
|
**v2.2:** Team-wide shared memory
|
|
446
446
|
|
|
447
447
|
```yaml
|
|
@@ -637,11 +637,11 @@ responsavel_type: Clone
|
|
|
637
637
|
|
|
638
638
|
---
|
|
639
639
|
|
|
640
|
-
## 📊 COMPARATIVE METRICS:
|
|
640
|
+
## 📊 COMPARATIVE METRICS: v4.0.4 vs. v2.2
|
|
641
641
|
|
|
642
642
|
### Development Speed
|
|
643
643
|
|
|
644
|
-
| Metric |
|
|
644
|
+
| Metric | v4.0.4 | v2.2 | Improvement |
|
|
645
645
|
|--------|------|------|-------------|
|
|
646
646
|
| Simple task time | 11 min | 1 min | **91% faster** |
|
|
647
647
|
| Complex task time | 11 min | 26 min | Appropriately slower |
|
|
@@ -650,7 +650,7 @@ responsavel_type: Clone
|
|
|
650
650
|
|
|
651
651
|
### Cost Efficiency
|
|
652
652
|
|
|
653
|
-
| Metric |
|
|
653
|
+
| Metric | v4.0.4 | v2.2 | Improvement |
|
|
654
654
|
|--------|------|------|-------------|
|
|
655
655
|
| Avg cost per story | $0.50 | $0.30 | **40% cheaper** |
|
|
656
656
|
| Wasted LLM calls | 30% | 5% | **83% reduction** |
|
|
@@ -658,7 +658,7 @@ responsavel_type: Clone
|
|
|
658
658
|
|
|
659
659
|
### Quality & Learning
|
|
660
660
|
|
|
661
|
-
| Metric |
|
|
661
|
+
| Metric | v4.0.4 | v2.2 | Improvement |
|
|
662
662
|
|--------|------|------|-------------|
|
|
663
663
|
| Issue catch rate | 80% (3 layers) | 85% (learning) | **+5 percentage points** |
|
|
664
664
|
| False positive rate | 15% | 8% | **47% reduction** |
|
|
@@ -667,7 +667,7 @@ responsavel_type: Clone
|
|
|
667
667
|
|
|
668
668
|
### Team Collaboration
|
|
669
669
|
|
|
670
|
-
| Metric |
|
|
670
|
+
| Metric | v4.0.4 | v2.2 | Improvement |
|
|
671
671
|
|--------|------|------|-------------|
|
|
672
672
|
| Handoff delay | 30 min avg | 0 min | **100% elimination** |
|
|
673
673
|
| Coordination overhead | 2h/day | 15min/day | **87% reduction** |
|
|
@@ -716,7 +716,7 @@ Features:
|
|
|
716
716
|
|
|
717
717
|
## 🎯 SUMMARY: Evolution Path
|
|
718
718
|
|
|
719
|
-
### v2.0 →
|
|
719
|
+
### v2.0 → v4.0.4 (The Foundation)
|
|
720
720
|
|
|
721
721
|
**Focus:** Installation + Discovery + Architecture
|
|
722
722
|
- ✅ 5-minute installation
|
|
@@ -729,7 +729,7 @@ Features:
|
|
|
729
729
|
|
|
730
730
|
---
|
|
731
731
|
|
|
732
|
-
###
|
|
732
|
+
### v4.0.4 → v2.2 (The Intelligence)
|
|
733
733
|
|
|
734
734
|
**Focus:** Memory + Learning + Collaboration
|
|
735
735
|
- ✅ Memory Layer (4 types)
|
|
@@ -756,7 +756,7 @@ Features:
|
|
|
756
756
|
|
|
757
757
|
## 📖 WHERE TO GO FROM HERE
|
|
758
758
|
|
|
759
|
-
### If You're on
|
|
759
|
+
### If You're on v4.0.4
|
|
760
760
|
|
|
761
761
|
1. ✅ Read this summary (done!)
|
|
762
762
|
2. → Review [Memory Layer Architecture](#memory-layer)
|
|
@@ -782,7 +782,7 @@ Features:
|
|
|
782
782
|
|
|
783
783
|
---
|
|
784
784
|
|
|
785
|
-
**Full v2.2 Documentation:** Combine v2.0 base +
|
|
785
|
+
**Full v2.2 Documentation:** Combine v2.0 base + v4.0.4 delta + v2.2 delta
|
|
786
786
|
|
|
787
787
|
**Next Version:** v2.3 (Q3 2026) - Enterprise & Scale
|
|
788
788
|
|
|
@@ -988,7 +988,7 @@ Features:
|
|
|
988
988
|
│ ├── research/
|
|
989
989
|
│ ├── epics/
|
|
990
990
|
│ ├── stories/
|
|
991
|
-
│ │ ├──
|
|
991
|
+
│ │ ├── v4.0.4/ # v4.0.4 stories (completed)
|
|
992
992
|
│ │ ├── v2.2/ # ⭐ v2.2 stories (in progress)
|
|
993
993
|
│ │ │ ├── sprint-1/ # Memory Layer
|
|
994
994
|
│ │ │ ├── sprint-2/ # Agent Lightning
|
|
@@ -1093,7 +1093,7 @@ Features:
|
|
|
1093
1093
|
|
|
1094
1094
|
---
|
|
1095
1095
|
|
|
1096
|
-
### Key Changes from
|
|
1096
|
+
### Key Changes from v4.0.4 → v2.2
|
|
1097
1097
|
|
|
1098
1098
|
**1. Memory Layer:**
|
|
1099
1099
|
```
|
|
@@ -1192,7 +1192,7 @@ ENHANCED: .aios-core/core/validation/learning-feedback-loop.js
|
|
|
1192
1192
|
- False positive reduction
|
|
1193
1193
|
- Accuracy improvement over time
|
|
1194
1194
|
|
|
1195
|
-
Impact: 85% catch rate (vs. 80% in
|
|
1195
|
+
Impact: 85% catch rate (vs. 80% in v4.0.4), 8% false positives (vs. 15%)
|
|
1196
1196
|
```
|
|
1197
1197
|
|
|
1198
1198
|
**7. Local Development Environment:**
|
|
@@ -1221,7 +1221,7 @@ Impact: Never lose institutional knowledge
|
|
|
1221
1221
|
|
|
1222
1222
|
### Storage Requirements Comparison
|
|
1223
1223
|
|
|
1224
|
-
| Component |
|
|
1224
|
+
| Component | v4.0.4 | v2.2 | Additional Storage |
|
|
1225
1225
|
|-----------|------|------|-------------------|
|
|
1226
1226
|
| Base Framework | ~50MB | ~50MB | 0MB |
|
|
1227
1227
|
| Workers | ~5MB | ~5MB | 0MB |
|
|
@@ -1237,7 +1237,7 @@ Impact: Never lose institutional knowledge
|
|
|
1237
1237
|
|
|
1238
1238
|
### Performance Comparison
|
|
1239
1239
|
|
|
1240
|
-
| Metric |
|
|
1240
|
+
| Metric | v4.0.4 | v2.2 | Improvement |
|
|
1241
1241
|
|--------|------|------|-------------|
|
|
1242
1242
|
| Simple task time | 1 min | 30s | **50% faster** |
|
|
1243
1243
|
| Complex task time | 26 min | 22 min | **15% faster** |
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Version:** 2.1.0
|
|
4
4
|
**Date:** 2025-12-09
|
|
5
5
|
**Purpose:** Document differences between AIOS open-source and AIOS service implementations
|
|
6
|
-
**Status:** ⚠️ Needs Review - Updated for
|
|
6
|
+
**Status:** ⚠️ Needs Review - Updated for v4.0.4 Multi-Repo Strategy
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -17,7 +17,7 @@ This document clarifies which features apply to which context.
|
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
## Multi-Repo Strategy (
|
|
20
|
+
## Multi-Repo Strategy (v4.0.4)
|
|
21
21
|
|
|
22
22
|
### Repository Organization
|
|
23
23
|
|
|
@@ -489,7 +489,7 @@ function validateTask(task) {
|
|
|
489
489
|
|
|
490
490
|
## Related Documents
|
|
491
491
|
|
|
492
|
-
- [AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md](./AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md) - Complete
|
|
492
|
+
- [AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md](./AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md) - Complete v4.0.4 framework guide
|
|
493
493
|
- [STANDARDS-INDEX.md](./STANDARDS-INDEX.md) - Standards navigation
|
|
494
494
|
- [TASK-FORMAT-SPECIFICATION-V1.md](./TASK-FORMAT-SPECIFICATION-V1.md) - Complete task format spec
|
|
495
495
|
- [AGENT-PERSONALIZATION-STANDARD-V1.md](./AGENT-PERSONALIZATION-STANDARD-V1.md) - Personality guidelines
|
|
@@ -508,4 +508,4 @@ function validateTask(task) {
|
|
|
508
508
|
|
|
509
509
|
**Last Updated:** 2025-12-09
|
|
510
510
|
**Version:** 2.1.0
|
|
511
|
-
**Applies to:** AIOS
|
|
511
|
+
**Applies to:** AIOS v4.0.4+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Quality Gates Specification
|
|
1
|
+
# Quality Gates Specification v4.0.4
|
|
2
2
|
|
|
3
3
|
**Version:** 2.1.0
|
|
4
4
|
**Last Updated:** 2025-12-09
|
|
@@ -481,7 +481,7 @@ reviews:
|
|
|
481
481
|
Verify:
|
|
482
482
|
- Terminology uses 'Squad' not 'Expansion Pack'
|
|
483
483
|
- All internal links work
|
|
484
|
-
- Version numbers are
|
|
484
|
+
- Version numbers are v4.0.4
|
|
485
485
|
|
|
486
486
|
- path: "squads/**"
|
|
487
487
|
instructions: |
|
|
@@ -512,7 +512,7 @@ reviews:
|
|
|
512
512
|
| Issues escaping to production | ~15% |
|
|
513
513
|
| Developer context switches | High |
|
|
514
514
|
|
|
515
|
-
### After Quality Gates (
|
|
515
|
+
### After Quality Gates (v4.0.4)
|
|
516
516
|
|
|
517
517
|
| Metric | Value | Improvement |
|
|
518
518
|
|--------|-------|-------------|
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
|
|
17
17
|
### For Existing Users
|
|
18
18
|
|
|
19
|
-
- **v2.0 →
|
|
19
|
+
- **v2.0 → v4.0.4 Migration:** See "What's New" section in [AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md](./AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md)
|
|
20
20
|
- **Architecture Changes:** Review [ARCHITECTURE-INDEX.md](../../docs/architecture/ARCHITECTURE-INDEX.md)
|
|
21
21
|
|
|
22
22
|
---
|
|
23
23
|
|
|
24
24
|
## 📚 Standards by Category
|
|
25
25
|
|
|
26
|
-
### Core Framework Standards (Current
|
|
26
|
+
### Core Framework Standards (Current v4.0.4)
|
|
27
27
|
|
|
28
28
|
| Document | Description | Status | Version |
|
|
29
29
|
|----------|-------------|--------|---------|
|
|
30
|
-
| [AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md](./AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md) | **Complete
|
|
30
|
+
| [AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md](./AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md) | **Complete v4.0.4 framework guide** | ✅ Current | 2.1.0 |
|
|
31
31
|
| [QUALITY-GATES-SPECIFICATION.md](./QUALITY-GATES-SPECIFICATION.md) | 3-layer quality gates system | ✅ Current | 2.1.0 |
|
|
32
32
|
| [STORY-TEMPLATE-V2-SPECIFICATION.md](./STORY-TEMPLATE-V2-SPECIFICATION.md) | Story template v2.0 specification | ✅ Current | 2.0.0 |
|
|
33
33
|
| [TASK-FORMAT-SPECIFICATION-V1.md](./TASK-FORMAT-SPECIFICATION-V1.md) | Task-First architecture format | ✅ Current | 1.0.0 |
|
|
@@ -52,21 +52,21 @@
|
|
|
52
52
|
| Document | Description | Status | Superseded By |
|
|
53
53
|
|----------|-------------|--------|---------------|
|
|
54
54
|
| [AIOS-LIVRO-DE-OURO.md](./AIOS-LIVRO-DE-OURO.md) | v2.0.0 base document | ⚠️ Deprecated | AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md |
|
|
55
|
-
| [AIOS-LIVRO-DE-OURO-V2.1.md](./AIOS-LIVRO-DE-OURO-V2.1.md) |
|
|
56
|
-
| [AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md](./AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md) |
|
|
55
|
+
| [AIOS-LIVRO-DE-OURO-V2.1.md](./AIOS-LIVRO-DE-OURO-V2.1.md) | v4.0.4 delta (partial) | ⚠️ Deprecated | AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md |
|
|
56
|
+
| [AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md](./AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md) | v4.0.4 summary | ⚠️ Deprecated | AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md |
|
|
57
57
|
| [AIOS-LIVRO-DE-OURO-V2.2-SUMMARY.md](./AIOS-LIVRO-DE-OURO-V2.2-SUMMARY.md) | Future v2.2 planning | 📋 Draft | N/A |
|
|
58
58
|
| [AIOS-FRAMEWORK-MASTER.md](./AIOS-FRAMEWORK-MASTER.md) | v2.0.0 framework doc | ⚠️ Deprecated | AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md |
|
|
59
59
|
| [V3-ARCHITECTURAL-DECISIONS.md](./V3-ARCHITECTURAL-DECISIONS.md) | Old architectural decisions | 📦 Archive Candidate | Current architecture docs |
|
|
60
60
|
|
|
61
61
|
---
|
|
62
62
|
|
|
63
|
-
## 🔄 What Changed in
|
|
63
|
+
## 🔄 What Changed in v4.0.4
|
|
64
64
|
|
|
65
65
|
### New Documents Created
|
|
66
66
|
|
|
67
67
|
| Document | Purpose |
|
|
68
68
|
|----------|---------|
|
|
69
|
-
| AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md | Consolidated
|
|
69
|
+
| AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md | Consolidated v4.0.4 documentation |
|
|
70
70
|
| QUALITY-GATES-SPECIFICATION.md | 3-layer quality gates |
|
|
71
71
|
| STORY-TEMPLATE-V2-SPECIFICATION.md | Story template v2.0 |
|
|
72
72
|
| STANDARDS-INDEX.md | This navigation document |
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
.aios-core/docs/standards/
|
|
102
102
|
├── STANDARDS-INDEX.md # This file - navigation
|
|
103
103
|
│
|
|
104
|
-
├── Current
|
|
105
|
-
│ ├── AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md # Complete
|
|
104
|
+
├── Current v4.0.4 Standards
|
|
105
|
+
│ ├── AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md # Complete v4.0.4 guide
|
|
106
106
|
│ ├── QUALITY-GATES-SPECIFICATION.md # Quality gates
|
|
107
107
|
│ ├── STORY-TEMPLATE-V2-SPECIFICATION.md # Story template
|
|
108
108
|
│ ├── TASK-FORMAT-SPECIFICATION-V1.md # Task format
|
|
@@ -113,8 +113,8 @@
|
|
|
113
113
|
│
|
|
114
114
|
├── Legacy (Reference Only)
|
|
115
115
|
│ ├── AIOS-LIVRO-DE-OURO.md # v2.0.0 base (deprecated)
|
|
116
|
-
│ ├── AIOS-LIVRO-DE-OURO-V2.1.md #
|
|
117
|
-
│ ├── AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md #
|
|
116
|
+
│ ├── AIOS-LIVRO-DE-OURO-V2.1.md # v4.0.4 delta (deprecated)
|
|
117
|
+
│ ├── AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md # v4.0.4 summary (deprecated)
|
|
118
118
|
│ ├── AIOS-FRAMEWORK-MASTER.md # v2.0.0 (deprecated)
|
|
119
119
|
│ └── V3-ARCHITECTURAL-DECISIONS.md # Archive candidate
|
|
120
120
|
│
|
|
@@ -156,7 +156,7 @@ Located in `docs/`:
|
|
|
156
156
|
|
|
157
157
|
| Status | Meaning | Action |
|
|
158
158
|
|--------|---------|--------|
|
|
159
|
-
| ✅ Current | Up-to-date with
|
|
159
|
+
| ✅ Current | Up-to-date with v4.0.4 | Use as reference |
|
|
160
160
|
| ⚠️ Deprecated | Superseded by newer document | Refer to replacement |
|
|
161
161
|
| ⚠️ Needs Update | Content outdated | Update planned |
|
|
162
162
|
| 📦 Archive Candidate | Should be archived | Move to _archived/ |
|
|
@@ -201,7 +201,7 @@ grep -r "v2.0" .aios-core/docs/standards --include="*.md"
|
|
|
201
201
|
|
|
202
202
|
| Date | Version | Changes | Author |
|
|
203
203
|
|------|---------|---------|--------|
|
|
204
|
-
| 2025-12-09 | 2.1.0 | Initial STANDARDS-INDEX creation for
|
|
204
|
+
| 2025-12-09 | 2.1.0 | Initial STANDARDS-INDEX creation for v4.0.4 | @dev (Dex) |
|
|
205
205
|
|
|
206
206
|
---
|
|
207
207
|
|
|
@@ -123,6 +123,10 @@ ide_sync_system:
|
|
|
123
123
|
enabled: true
|
|
124
124
|
path: ".claude/commands/AIOS/agents"
|
|
125
125
|
format: "full-markdown-yaml"
|
|
126
|
+
codex:
|
|
127
|
+
enabled: true
|
|
128
|
+
path: ".codex/agents"
|
|
129
|
+
format: "full-markdown-yaml"
|
|
126
130
|
cursor:
|
|
127
131
|
enabled: true
|
|
128
132
|
path: ".cursor/rules/agents"
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const fs = require('fs-extra');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
const os = require('os');
|
|
7
|
+
|
|
8
|
+
const {
|
|
9
|
+
parseAllAgents,
|
|
10
|
+
normalizeCommands,
|
|
11
|
+
getVisibleCommands,
|
|
12
|
+
} = require('../ide-sync/agent-parser');
|
|
13
|
+
|
|
14
|
+
function getCodexHome() {
|
|
15
|
+
return process.env.CODEX_HOME || path.join(os.homedir(), '.codex');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function getDefaultOptions() {
|
|
19
|
+
const projectRoot = process.cwd();
|
|
20
|
+
const envLocalDir = process.env.AIOS_CODEX_LOCAL_SKILLS_DIR;
|
|
21
|
+
const envGlobalDir = process.env.AIOS_CODEX_GLOBAL_SKILLS_DIR;
|
|
22
|
+
return {
|
|
23
|
+
projectRoot,
|
|
24
|
+
sourceDir: path.join(projectRoot, '.aios-core', 'development', 'agents'),
|
|
25
|
+
localSkillsDir: envLocalDir || path.join(projectRoot, '.codex', 'skills'),
|
|
26
|
+
globalSkillsDir: envGlobalDir || path.join(getCodexHome(), 'skills'),
|
|
27
|
+
global: false,
|
|
28
|
+
globalOnly: false,
|
|
29
|
+
dryRun: false,
|
|
30
|
+
quiet: false,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function trimText(text, max = 220) {
|
|
35
|
+
const normalized = String(text || '').replace(/\s+/g, ' ').trim();
|
|
36
|
+
if (normalized.length <= max) return normalized;
|
|
37
|
+
return `${normalized.slice(0, max - 3).trim()}...`;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function getSkillId(agentId) {
|
|
41
|
+
const id = String(agentId || '').trim();
|
|
42
|
+
if (id.startsWith('aios-')) return id;
|
|
43
|
+
return `aios-${id}`;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function buildSkillContent(agentData) {
|
|
47
|
+
const agent = agentData.agent || {};
|
|
48
|
+
const name = agent.name || agentData.id;
|
|
49
|
+
const title = agent.title || 'AIOS Agent';
|
|
50
|
+
const whenToUse = trimText(agent.whenToUse || `Use @${agentData.id} for specialized tasks.`);
|
|
51
|
+
|
|
52
|
+
const allCommands = normalizeCommands(agentData.commands || []);
|
|
53
|
+
const quick = getVisibleCommands(allCommands, 'quick');
|
|
54
|
+
const key = getVisibleCommands(allCommands, 'key');
|
|
55
|
+
const commands = [...quick, ...key.filter(k => !quick.some(q => q.name === k.name))]
|
|
56
|
+
.slice(0, 8)
|
|
57
|
+
.map(c => `- \`*${c.name}\` - ${c.description || 'No description'}`)
|
|
58
|
+
.join('\n');
|
|
59
|
+
|
|
60
|
+
const skillName = getSkillId(agentData.id);
|
|
61
|
+
const description = trimText(`${title} (${name}). ${whenToUse}`, 180);
|
|
62
|
+
|
|
63
|
+
return `---
|
|
64
|
+
name: ${skillName}
|
|
65
|
+
description: ${description}
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
# AIOS ${title} Activator
|
|
69
|
+
|
|
70
|
+
## When To Use
|
|
71
|
+
${whenToUse}
|
|
72
|
+
|
|
73
|
+
## Activation Protocol
|
|
74
|
+
1. Load \`.aios-core/development/agents/${agentData.filename}\` as source of truth (fallback: \`.codex/agents/${agentData.filename}\`).
|
|
75
|
+
2. Adopt this agent persona and command system.
|
|
76
|
+
3. Generate greeting via \`node .aios-core/development/scripts/generate-greeting.js ${agentData.id}\` and show it first.
|
|
77
|
+
4. Stay in this persona until the user asks to switch or exit.
|
|
78
|
+
|
|
79
|
+
## Starter Commands
|
|
80
|
+
${commands || '- `*help` - List available commands'}
|
|
81
|
+
|
|
82
|
+
## Non-Negotiables
|
|
83
|
+
- Follow \`.aios-core/constitution.md\`.
|
|
84
|
+
- Execute workflows/tasks only from declared dependencies.
|
|
85
|
+
- Do not invent requirements outside the project artifacts.
|
|
86
|
+
`;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function buildSkillPlan(agents, skillsDir) {
|
|
90
|
+
return agents
|
|
91
|
+
.filter(a => !a.error || a.error === 'YAML parse failed, using fallback extraction')
|
|
92
|
+
.map(agentData => {
|
|
93
|
+
const skillId = getSkillId(agentData.id);
|
|
94
|
+
const targetDir = path.join(skillsDir, skillId);
|
|
95
|
+
const targetFile = path.join(targetDir, 'SKILL.md');
|
|
96
|
+
return {
|
|
97
|
+
agentId: agentData.id,
|
|
98
|
+
skillId,
|
|
99
|
+
targetDir,
|
|
100
|
+
targetFile,
|
|
101
|
+
content: buildSkillContent(agentData),
|
|
102
|
+
};
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function writeSkillPlan(plan, options) {
|
|
107
|
+
for (const item of plan) {
|
|
108
|
+
if (!options.dryRun) {
|
|
109
|
+
try {
|
|
110
|
+
fs.ensureDirSync(item.targetDir);
|
|
111
|
+
fs.writeFileSync(item.targetFile, item.content, 'utf8');
|
|
112
|
+
} catch (error) {
|
|
113
|
+
throw new Error(`Failed to write skill ${item.skillId} at ${item.targetFile}: ${error.message}`);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function syncSkills(options = {}) {
|
|
120
|
+
const resolved = { ...getDefaultOptions(), ...options };
|
|
121
|
+
if (resolved.globalOnly) {
|
|
122
|
+
resolved.global = true;
|
|
123
|
+
}
|
|
124
|
+
const agents = parseAllAgents(resolved.sourceDir);
|
|
125
|
+
const plan = buildSkillPlan(agents, resolved.localSkillsDir);
|
|
126
|
+
|
|
127
|
+
if (!resolved.globalOnly) {
|
|
128
|
+
writeSkillPlan(plan, resolved);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (resolved.global) {
|
|
132
|
+
const globalPlan = buildSkillPlan(agents, resolved.globalSkillsDir);
|
|
133
|
+
writeSkillPlan(globalPlan, resolved);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
return {
|
|
137
|
+
generated: plan.length,
|
|
138
|
+
localSkillsDir: resolved.localSkillsDir,
|
|
139
|
+
globalSkillsDir: resolved.global || resolved.globalOnly ? resolved.globalSkillsDir : null,
|
|
140
|
+
dryRun: resolved.dryRun,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function parseArgs(argv = process.argv.slice(2)) {
|
|
145
|
+
const args = new Set(argv);
|
|
146
|
+
return {
|
|
147
|
+
global: args.has('--global'),
|
|
148
|
+
globalOnly: args.has('--global-only'),
|
|
149
|
+
dryRun: args.has('--dry-run'),
|
|
150
|
+
quiet: args.has('--quiet') || args.has('-q'),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function main() {
|
|
155
|
+
const options = parseArgs();
|
|
156
|
+
const result = syncSkills(options);
|
|
157
|
+
|
|
158
|
+
if (!options.quiet) {
|
|
159
|
+
if (!options.globalOnly) {
|
|
160
|
+
console.log(`✅ Generated ${result.generated} Codex skills in ${result.localSkillsDir}`);
|
|
161
|
+
}
|
|
162
|
+
if (result.globalSkillsDir) {
|
|
163
|
+
console.log(`✅ Installed ${result.generated} Codex skills in ${result.globalSkillsDir}`);
|
|
164
|
+
}
|
|
165
|
+
if (result.dryRun) {
|
|
166
|
+
console.log('ℹ️ Dry-run mode: no files written');
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (require.main === module) {
|
|
172
|
+
main();
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
module.exports = {
|
|
176
|
+
buildSkillContent,
|
|
177
|
+
buildSkillPlan,
|
|
178
|
+
syncSkills,
|
|
179
|
+
parseArgs,
|
|
180
|
+
getCodexHome,
|
|
181
|
+
getSkillId,
|
|
182
|
+
};
|