aios-core 2.2.2 → 3.0.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/.session/current-session.json +14 -14
  2. package/.aios-core/cli/commands/migrate/validate.js +1 -1
  3. package/.aios-core/core/docs/session-update-pattern.md +17 -10
  4. package/.aios-core/core/elicitation/elicitation-engine.js +11 -6
  5. package/.aios-core/core/elicitation/session-manager.js +2 -1
  6. package/.aios-core/core/registry/registry-schema.json +166 -166
  7. package/.aios-core/core/registry/service-registry.json +6585 -6585
  8. package/.aios-core/core-config.yaml +66 -1
  9. package/.aios-core/data/agent-config-requirements.yaml +5 -5
  10. package/.aios-core/development/agents/devops.md +12 -0
  11. package/.aios-core/development/scripts/squad/README.md +112 -0
  12. package/.aios-core/development/scripts/squad/index.js +41 -0
  13. package/.aios-core/development/scripts/squad/squad-loader.js +359 -0
  14. package/.aios-core/development/scripts/squad/squad-validator.js +685 -0
  15. package/.aios-core/development/tasks/add-mcp.md +11 -5
  16. package/.aios-core/development/tasks/github-devops-github-pr-automation.md +240 -3
  17. package/.aios-core/development/tasks/search-mcp.md +309 -0
  18. package/.aios-core/development/tasks/setup-mcp-docker.md +11 -8
  19. package/.aios-core/development/tasks/squad-creator-validate.md +151 -0
  20. package/.aios-core/docs/standards/AGENT-PERSONALIZATION-STANDARD-V1.md +3 -3
  21. package/.aios-core/index.d.ts +7 -7
  22. package/.aios-core/index.js +1 -1
  23. package/.aios-core/infrastructure/scripts/batch-creator.js +1 -1
  24. package/.aios-core/infrastructure/scripts/component-generator.js +1 -1
  25. package/.aios-core/infrastructure/templates/coderabbit.yaml.template +279 -279
  26. package/.aios-core/infrastructure/templates/core-config/core-config-greenfield.tmpl.yaml +41 -0
  27. package/.aios-core/infrastructure/templates/github-workflows/ci.yml.template +169 -169
  28. package/.aios-core/infrastructure/templates/github-workflows/pr-automation.yml.template +330 -330
  29. package/.aios-core/infrastructure/templates/github-workflows/release.yml.template +196 -196
  30. package/.aios-core/infrastructure/templates/gitignore/gitignore-aios-base.tmpl +63 -63
  31. package/.aios-core/infrastructure/templates/gitignore/gitignore-brownfield-merge.tmpl +18 -18
  32. package/.aios-core/infrastructure/templates/gitignore/gitignore-node.tmpl +85 -85
  33. package/.aios-core/infrastructure/templates/gitignore/gitignore-python.tmpl +145 -145
  34. package/.aios-core/infrastructure/tests/utilities-audit-results.json +500 -500
  35. package/.aios-core/infrastructure/tools/README.md +1 -1
  36. package/.aios-core/install-manifest.yaml +4 -1
  37. package/.aios-core/manifests/schema/manifest-schema.json +190 -190
  38. package/.aios-core/manifests/workers.csv +203 -203
  39. package/.aios-core/package.json +102 -102
  40. package/.aios-core/product/templates/activation-instructions-template.md +7 -7
  41. package/.aios-core/product/templates/adr.hbs +125 -125
  42. package/.aios-core/product/templates/component-react-tmpl.tsx +98 -98
  43. package/.aios-core/product/templates/dbdr.hbs +241 -241
  44. package/.aios-core/product/templates/engine/schemas/adr.schema.json +102 -102
  45. package/.aios-core/product/templates/engine/schemas/dbdr.schema.json +205 -205
  46. package/.aios-core/product/templates/engine/schemas/epic.schema.json +175 -175
  47. package/.aios-core/product/templates/engine/schemas/pmdr.schema.json +175 -175
  48. package/.aios-core/product/templates/engine/schemas/prd-v2.schema.json +300 -300
  49. package/.aios-core/product/templates/engine/schemas/prd.schema.json +152 -152
  50. package/.aios-core/product/templates/engine/schemas/story.schema.json +222 -222
  51. package/.aios-core/product/templates/engine/schemas/task.schema.json +154 -154
  52. package/.aios-core/product/templates/epic.hbs +212 -212
  53. package/.aios-core/product/templates/eslintrc-security.json +32 -32
  54. package/.aios-core/product/templates/github-actions-cd.yml +212 -212
  55. package/.aios-core/product/templates/github-actions-ci.yml +172 -172
  56. package/.aios-core/product/templates/pmdr.hbs +186 -186
  57. package/.aios-core/product/templates/prd-v2.0.hbs +216 -216
  58. package/.aios-core/product/templates/prd.hbs +201 -201
  59. package/.aios-core/product/templates/shock-report-tmpl.html +502 -502
  60. package/.aios-core/product/templates/story.hbs +263 -263
  61. package/.aios-core/product/templates/task.hbs +170 -170
  62. package/.aios-core/product/templates/tmpl-comment-on-examples.sql +158 -158
  63. package/.aios-core/product/templates/tmpl-migration-script.sql +91 -91
  64. package/.aios-core/product/templates/tmpl-rls-granular-policies.sql +104 -104
  65. package/.aios-core/product/templates/tmpl-rls-kiss-policy.sql +10 -10
  66. package/.aios-core/product/templates/tmpl-rls-roles.sql +135 -135
  67. package/.aios-core/product/templates/tmpl-rls-simple.sql +77 -77
  68. package/.aios-core/product/templates/tmpl-rls-tenant.sql +152 -152
  69. package/.aios-core/product/templates/tmpl-rollback-script.sql +77 -77
  70. package/.aios-core/product/templates/tmpl-seed-data.sql +140 -140
  71. package/.aios-core/product/templates/tmpl-smoke-test.sql +16 -16
  72. package/.aios-core/product/templates/tmpl-staging-copy-merge.sql +139 -139
  73. package/.aios-core/product/templates/tmpl-stored-proc.sql +140 -140
  74. package/.aios-core/product/templates/tmpl-trigger.sql +152 -152
  75. package/.aios-core/product/templates/tmpl-view-materialized.sql +133 -133
  76. package/.aios-core/product/templates/tmpl-view.sql +177 -177
  77. package/.aios-core/product/templates/token-exports-css-tmpl.css +240 -240
  78. package/.aios-core/quality/schemas/quality-metrics.schema.json +233 -233
  79. package/.aios-core/schemas/squad-schema.json +185 -0
  80. package/.aios-core/scripts/README.md +90 -322
  81. package/.aios-core/scripts/migrate-framework-docs.sh +300 -300
  82. package/.claude/rules/mcp-usage.md +116 -100
  83. package/LICENSE +48 -48
  84. package/README.md +3 -4
  85. package/bin/aios.js +2 -1
  86. package/package.json +1 -3
  87. package/packages/installer/package.json +39 -39
  88. package/templates/squad/LICENSE +21 -21
  89. package/templates/squad/README.md +37 -37
  90. package/templates/squad/agents/example-agent.yaml +36 -36
  91. package/templates/squad/package.json +19 -19
  92. package/templates/squad/squad.yaml +25 -25
  93. package/templates/squad/tasks/example-task.yaml +46 -46
  94. package/templates/squad/templates/example-template.md +24 -24
  95. package/templates/squad/tests/example-agent.test.js +53 -53
  96. package/templates/squad/workflows/example-workflow.yaml +54 -54
  97. package/tools/diagnose-npx-issue.ps1 +96 -96
  98. package/tools/quick-diagnose.cmd +85 -85
  99. package/tools/quick-diagnose.ps1 +117 -117
  100. package/.aios-core/core/data/agent-config-requirements.yaml +0 -368
  101. package/.aios-core/core/data/aios-kb.md +0 -924
  102. package/.aios-core/core/data/workflow-patterns.yaml +0 -267
  103. package/.aios-core/product/templates/1mcp-config.yaml +0 -225
  104. package/.aios-core/scripts/context-detector.js +0 -226
  105. package/.aios-core/scripts/elicitation-engine.js +0 -385
  106. package/.aios-core/scripts/elicitation-session-manager.js +0 -300
  107. package/.claude/CLAUDE.md +0 -221
@@ -1,103 +1,103 @@
1
- {
2
- "name": "@aios-fullstack/core",
3
- "version": "4.31.0",
4
- "description": "AIOS-FullStack Core - Meta-agent and component generation system",
5
- "main": "index.js",
6
- "module": "index.esm.js",
7
- "types": "index.d.ts",
8
- "bin": {
9
- "aios-core": "bin/aios-core.js"
10
- },
11
- "files": [
12
- "lib/",
13
- "bin/",
14
- "templates/",
15
- "utils/",
16
- "tasks/",
17
- "docs/",
18
- "elicitation/",
19
- "index.js",
20
- "index.esm.js",
21
- "index.d.ts",
22
- "README.md",
23
- "LICENSE"
24
- ],
25
- "scripts": {
26
- "build": "node ../tools/build-core.js",
27
- "test": "npm run test:unit && npm run test:integration",
28
- "test:unit": "jest tests/unit",
29
- "test:integration": "jest tests/integration",
30
- "lint": "eslint .",
31
- "typecheck": "tsc --noEmit"
32
- },
33
- "dependencies": {
34
- "chalk": "^4.1.2",
35
- "commander": "^14.0.0",
36
- "fs-extra": "^11.3.0",
37
- "glob": "^11.0.3",
38
- "js-yaml": "^4.1.0",
39
- "inquirer": "^8.2.6",
40
- "validator": "^13.15.15",
41
- "diff": "^5.2.0",
42
- "highlight.js": "^11.9.0"
43
- },
44
- "peerDependencies": {
45
- "@aios-fullstack/memory": "^4.31.0",
46
- "@aios-fullstack/security": "^4.31.0",
47
- "@aios-fullstack/performance": "^4.31.0",
48
- "@aios-fullstack/telemetry": "^4.31.0"
49
- },
50
- "peerDependenciesMeta": {
51
- "@aios-fullstack/memory": {
52
- "optional": true
53
- },
54
- "@aios-fullstack/security": {
55
- "optional": true
56
- },
57
- "@aios-fullstack/performance": {
58
- "optional": true
59
- },
60
- "@aios-fullstack/telemetry": {
61
- "optional": true
62
- }
63
- },
64
- "keywords": [
65
- "aios",
66
- "meta-agent",
67
- "component-generation",
68
- "ai-orchestration",
69
- "fullstack",
70
- "development-tools"
71
- ],
72
- "author": "AIOS Fullstack Team",
73
- "license": "MIT",
74
- "repository": {
75
- "type": "git",
76
- "url": "git+https://github.com/allfluenceinc/aios-fullstack.git",
77
- "directory": "aios-core"
78
- },
79
- "bugs": {
80
- "url": "https://github.com/allfluenceinc/aios-fullstack/issues"
81
- },
82
- "homepage": "https://github.com/allfluenceinc/aios-fullstack/tree/main/aios-core#readme",
83
- "engines": {
84
- "node": ">=20.0.0",
85
- "npm": ">=9.0.0"
86
- },
87
- "publishConfig": {
88
- "access": "public",
89
- "registry": "https://registry.npmjs.org/"
90
- },
91
- "exports": {
92
- ".": {
93
- "types": "./index.d.ts",
94
- "import": "./index.esm.js",
95
- "require": "./index.js"
96
- },
97
- "./templates": "./templates/",
98
- "./utils": "./utils/",
99
- "./tasks": "./tasks/",
100
- "./docs": "./docs/",
101
- "./elicitation": "./elicitation/"
102
- }
1
+ {
2
+ "name": "@aios-fullstack/core",
3
+ "version": "4.31.0",
4
+ "description": "AIOS-FullStack Core - Meta-agent and component generation system",
5
+ "main": "index.js",
6
+ "module": "index.esm.js",
7
+ "types": "index.d.ts",
8
+ "bin": {
9
+ "aios-core": "bin/aios-core.js"
10
+ },
11
+ "files": [
12
+ "lib/",
13
+ "bin/",
14
+ "templates/",
15
+ "utils/",
16
+ "tasks/",
17
+ "docs/",
18
+ "elicitation/",
19
+ "index.js",
20
+ "index.esm.js",
21
+ "index.d.ts",
22
+ "README.md",
23
+ "LICENSE"
24
+ ],
25
+ "scripts": {
26
+ "build": "node ../tools/build-core.js",
27
+ "test": "npm run test:unit && npm run test:integration",
28
+ "test:unit": "jest tests/unit",
29
+ "test:integration": "jest tests/integration",
30
+ "lint": "eslint .",
31
+ "typecheck": "tsc --noEmit"
32
+ },
33
+ "dependencies": {
34
+ "chalk": "^4.1.2",
35
+ "commander": "^14.0.0",
36
+ "fs-extra": "^11.3.0",
37
+ "glob": "^11.0.3",
38
+ "js-yaml": "^4.1.0",
39
+ "inquirer": "^8.2.6",
40
+ "validator": "^13.15.15",
41
+ "diff": "^5.2.0",
42
+ "highlight.js": "^11.9.0"
43
+ },
44
+ "peerDependencies": {
45
+ "@aios-fullstack/memory": "^4.31.0",
46
+ "@aios-fullstack/security": "^4.31.0",
47
+ "@aios-fullstack/performance": "^4.31.0",
48
+ "@aios-fullstack/telemetry": "^4.31.0"
49
+ },
50
+ "peerDependenciesMeta": {
51
+ "@aios-fullstack/memory": {
52
+ "optional": true
53
+ },
54
+ "@aios-fullstack/security": {
55
+ "optional": true
56
+ },
57
+ "@aios-fullstack/performance": {
58
+ "optional": true
59
+ },
60
+ "@aios-fullstack/telemetry": {
61
+ "optional": true
62
+ }
63
+ },
64
+ "keywords": [
65
+ "aios",
66
+ "meta-agent",
67
+ "component-generation",
68
+ "ai-orchestration",
69
+ "fullstack",
70
+ "development-tools"
71
+ ],
72
+ "author": "AIOS Fullstack Team",
73
+ "license": "MIT",
74
+ "repository": {
75
+ "type": "git",
76
+ "url": "git+https://github.com/allfluenceinc/aios-fullstack.git",
77
+ "directory": "aios-core"
78
+ },
79
+ "bugs": {
80
+ "url": "https://github.com/allfluenceinc/aios-fullstack/issues"
81
+ },
82
+ "homepage": "https://github.com/allfluenceinc/aios-fullstack/tree/main/aios-core#readme",
83
+ "engines": {
84
+ "node": ">=20.0.0",
85
+ "npm": ">=9.0.0"
86
+ },
87
+ "publishConfig": {
88
+ "access": "public",
89
+ "registry": "https://registry.npmjs.org/"
90
+ },
91
+ "exports": {
92
+ ".": {
93
+ "types": "./index.d.ts",
94
+ "import": "./index.esm.js",
95
+ "require": "./index.js"
96
+ },
97
+ "./templates": "./templates/",
98
+ "./utils": "./utils/",
99
+ "./tasks": "./tasks/",
100
+ "./docs": "./docs/",
101
+ "./elicitation": "./elicitation/"
102
+ }
103
103
  }
@@ -15,7 +15,7 @@ This template defines the canonical activation-instructions format for AIOS agen
15
15
  activation-instructions:
16
16
  - STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
17
17
  - STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
18
- - STEP 3: Build intelligent greeting using .aios-core/scripts/greeting-builder.js
18
+ - STEP 3: Build intelligent greeting using .aios-core/development/scripts/greeting-builder.js
19
19
  Call buildGreeting(agentDefinition, conversationHistory) which:
20
20
  - Detects session type (new/existing/workflow) via context analysis
21
21
  - Checks git configuration status (with 5min cache)
@@ -40,7 +40,7 @@ activation-instructions:
40
40
 
41
41
  ### BEFORE (Manual/Mechanical)
42
42
  ```yaml
43
- - STEP 2.5: Load project status using .aios-core/scripts/project-status-loader.js
43
+ - STEP 2.5: Load project status using .aios-core/infrastructure/scripts/project-status-loader.js
44
44
  - STEP 2.6: Load session context using .aios-core/scripts/session-context-loader.js
45
45
  - STEP 3: Greet user with EXACTLY the text from greeting_levels.named
46
46
  - STEP 3.5: Introduce yourself using format: "I'm {agent.name}..."
@@ -217,11 +217,11 @@ commands:
217
217
 
218
218
  ## Related Files
219
219
 
220
- - **GreetingBuilder**: `.aios-core/scripts/greeting-builder.js`
221
- - **Context Detector**: `.aios-core/scripts/context-detector.js`
222
- - **Git Config Detector**: `.aios-core/scripts/git-config-detector.js`
223
- - **Workflow Navigator**: `.aios-core/scripts/workflow-navigator.js`
224
- - **Project Status Loader**: `.aios-core/scripts/project-status-loader.js`
220
+ - **GreetingBuilder**: `.aios-core/development/scripts/greeting-builder.js`
221
+ - **Context Detector**: `.aios-core/core/session/context-detector.js`
222
+ - **Git Config Detector**: `.aios-core/infrastructure/scripts/git-config-detector.js`
223
+ - **Workflow Navigator**: `.aios-core/development/scripts/workflow-navigator.js`
224
+ - **Project Status Loader**: `.aios-core/infrastructure/scripts/project-status-loader.js`
225
225
  - **Workflow Patterns**: `.aios-core/data/workflow-patterns.yaml`
226
226
 
227
227
  ## Troubleshooting
@@ -1,125 +1,125 @@
1
- ---
2
- template_id: adr
3
- template_name: Architecture Decision Record
4
- version: 1.0
5
- variables:
6
- - name: number
7
- type: number
8
- required: true
9
- auto: next_adr_number
10
- - name: title
11
- type: string
12
- required: true
13
- prompt: "Title of the architectural decision:"
14
- - name: status
15
- type: choice
16
- required: true
17
- choices: [Proposed, Accepted, Deprecated, Superseded]
18
- default: Proposed
19
- - name: deciders
20
- type: string
21
- required: true
22
- prompt: "Who participated in this decision? (comma-separated names):"
23
- - name: context
24
- type: text
25
- required: true
26
- prompt: "What is the context and problem that led to this decision?"
27
- - name: decision
28
- type: text
29
- required: true
30
- prompt: "What is the decision being made?"
31
- - name: positiveConsequences
32
- type: array
33
- required: true
34
- prompt: "What are the positive consequences? (comma-separated):"
35
- - name: negativeConsequences
36
- type: array
37
- required: false
38
- prompt: "What are the negative consequences/trade-offs? (comma-separated):"
39
- ---
40
-
41
- # ADR {{padNumber number 3}}: {{title}}
42
-
43
- **Status:** {{status}}
44
- **Date:** {{formatDate now "YYYY-MM-DD"}}
45
- **Deciders:** {{deciders}}
46
-
47
- ---
48
-
49
- ## Context
50
-
51
- {{context}}
52
-
53
- ---
54
-
55
- ## Decision
56
-
57
- {{decision}}
58
-
59
- ---
60
-
61
- ## Consequences
62
-
63
- ### Positive
64
-
65
- {{#each positiveConsequences}}
66
- - ✅ {{this}}
67
- {{/each}}
68
-
69
- ### Negative
70
-
71
- {{#if negativeConsequences}}
72
- {{#each negativeConsequences}}
73
- - ⚠️ {{this}}
74
- {{/each}}
75
- {{else}}
76
- _No significant negative consequences identified._
77
- {{/if}}
78
-
79
- ---
80
-
81
- {{#if alternatives}}
82
- ## Alternatives Considered
83
-
84
- {{#each alternatives}}
85
- ### Option {{add @index 1}}: {{this.name}}
86
-
87
- {{this.description}}
88
-
89
- | Aspect | Details |
90
- |--------|---------|
91
- | **Pros** | {{this.pros}} |
92
- | **Cons** | {{this.cons}} |
93
- | **Why Not Chosen** | {{this.whyNot}} |
94
-
95
- {{/each}}
96
- {{/if}}
97
-
98
- ---
99
-
100
- ## Related Decisions
101
-
102
- {{#if relatedADRs}}
103
- {{#each relatedADRs}}
104
- - [ADR {{this.number}}](./adr-{{padNumber this.number 3}}.md): {{this.title}}
105
- {{/each}}
106
- {{else}}
107
- _No related decisions._
108
- {{/if}}
109
-
110
- ---
111
-
112
- ## References
113
-
114
- {{#if references}}
115
- {{#each references}}
116
- - {{this}}
117
- {{/each}}
118
- {{else}}
119
- _No external references._
120
- {{/if}}
121
-
122
- ---
123
-
124
- **Generated by:** AIOS Template Engine v2.0
125
- **Template Version:** adr-1.0
1
+ ---
2
+ template_id: adr
3
+ template_name: Architecture Decision Record
4
+ version: 1.0
5
+ variables:
6
+ - name: number
7
+ type: number
8
+ required: true
9
+ auto: next_adr_number
10
+ - name: title
11
+ type: string
12
+ required: true
13
+ prompt: "Title of the architectural decision:"
14
+ - name: status
15
+ type: choice
16
+ required: true
17
+ choices: [Proposed, Accepted, Deprecated, Superseded]
18
+ default: Proposed
19
+ - name: deciders
20
+ type: string
21
+ required: true
22
+ prompt: "Who participated in this decision? (comma-separated names):"
23
+ - name: context
24
+ type: text
25
+ required: true
26
+ prompt: "What is the context and problem that led to this decision?"
27
+ - name: decision
28
+ type: text
29
+ required: true
30
+ prompt: "What is the decision being made?"
31
+ - name: positiveConsequences
32
+ type: array
33
+ required: true
34
+ prompt: "What are the positive consequences? (comma-separated):"
35
+ - name: negativeConsequences
36
+ type: array
37
+ required: false
38
+ prompt: "What are the negative consequences/trade-offs? (comma-separated):"
39
+ ---
40
+
41
+ # ADR {{padNumber number 3}}: {{title}}
42
+
43
+ **Status:** {{status}}
44
+ **Date:** {{formatDate now "YYYY-MM-DD"}}
45
+ **Deciders:** {{deciders}}
46
+
47
+ ---
48
+
49
+ ## Context
50
+
51
+ {{context}}
52
+
53
+ ---
54
+
55
+ ## Decision
56
+
57
+ {{decision}}
58
+
59
+ ---
60
+
61
+ ## Consequences
62
+
63
+ ### Positive
64
+
65
+ {{#each positiveConsequences}}
66
+ - ✅ {{this}}
67
+ {{/each}}
68
+
69
+ ### Negative
70
+
71
+ {{#if negativeConsequences}}
72
+ {{#each negativeConsequences}}
73
+ - ⚠️ {{this}}
74
+ {{/each}}
75
+ {{else}}
76
+ _No significant negative consequences identified._
77
+ {{/if}}
78
+
79
+ ---
80
+
81
+ {{#if alternatives}}
82
+ ## Alternatives Considered
83
+
84
+ {{#each alternatives}}
85
+ ### Option {{add @index 1}}: {{this.name}}
86
+
87
+ {{this.description}}
88
+
89
+ | Aspect | Details |
90
+ |--------|---------|
91
+ | **Pros** | {{this.pros}} |
92
+ | **Cons** | {{this.cons}} |
93
+ | **Why Not Chosen** | {{this.whyNot}} |
94
+
95
+ {{/each}}
96
+ {{/if}}
97
+
98
+ ---
99
+
100
+ ## Related Decisions
101
+
102
+ {{#if relatedADRs}}
103
+ {{#each relatedADRs}}
104
+ - [ADR {{this.number}}](./adr-{{padNumber this.number 3}}.md): {{this.title}}
105
+ {{/each}}
106
+ {{else}}
107
+ _No related decisions._
108
+ {{/if}}
109
+
110
+ ---
111
+
112
+ ## References
113
+
114
+ {{#if references}}
115
+ {{#each references}}
116
+ - {{this}}
117
+ {{/each}}
118
+ {{else}}
119
+ _No external references._
120
+ {{/if}}
121
+
122
+ ---
123
+
124
+ **Generated by:** AIOS Template Engine v2.0
125
+ **Template Version:** adr-1.0