musubix 3.4.5 → 3.4.7

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 (95) hide show
  1. package/.github/AGENTS.md +949 -0
  2. package/.github/prompts/sdd-change-apply.prompt.md +283 -0
  3. package/.github/prompts/sdd-change-archive.prompt.md +241 -0
  4. package/.github/prompts/sdd-change-init.prompt.md +269 -0
  5. package/.github/prompts/sdd-design.prompt.md +250 -0
  6. package/.github/prompts/sdd-implement.prompt.md +387 -0
  7. package/.github/prompts/sdd-requirements.prompt.md +193 -0
  8. package/.github/prompts/sdd-review.prompt.md +155 -0
  9. package/.github/prompts/sdd-security.prompt.md +228 -0
  10. package/.github/prompts/sdd-steering.prompt.md +269 -0
  11. package/.github/prompts/sdd-tasks.prompt.md +255 -0
  12. package/.github/prompts/sdd-test.prompt.md +230 -0
  13. package/.github/prompts/sdd-validate.prompt.md +304 -0
  14. package/.github/skills/musubix-adr-generation/SKILL.md +209 -0
  15. package/.github/skills/musubix-best-practices/SKILL.md +315 -0
  16. package/.github/skills/musubix-c4-design/SKILL.md +162 -0
  17. package/.github/skills/musubix-code-generation/SKILL.md +237 -0
  18. package/.github/skills/musubix-domain-inference/SKILL.md +196 -0
  19. package/.github/skills/musubix-ears-validation/SKILL.md +161 -0
  20. package/.github/skills/musubix-sdd-workflow/SKILL.md +217 -0
  21. package/.github/skills/musubix-technical-writing/SKILL.md +444 -0
  22. package/.github/skills/musubix-test-generation/SKILL.md +212 -0
  23. package/.github/skills/musubix-traceability/SKILL.md +141 -0
  24. package/AGENTS.md +1134 -0
  25. package/LICENSE +21 -0
  26. package/README.ja.md +313 -0
  27. package/README.md +315 -50
  28. package/bin/musubix-mcp.js +15 -0
  29. package/bin/musubix.js +9 -1
  30. package/docs/API-REFERENCE.md +1425 -0
  31. package/docs/GITHUB-ACTIONS-NPM-SETUP.md +132 -0
  32. package/docs/INSTALL-GUIDE.ja.md +459 -0
  33. package/docs/INSTALL-GUIDE.md +459 -0
  34. package/docs/MIGRATION-v3.0.md +324 -0
  35. package/docs/MUSUBI-enhancement_roadmap_20260105.md +651 -0
  36. package/docs/MUSUBIX-v3.0-User-Guide.md +1357 -0
  37. package/docs/MUSUBIXv2.2.0-Manual-outline.md +136 -0
  38. package/docs/MUSUBIXv2.2.0-Manual.md +3123 -0
  39. package/docs/MUSUBIXv2.3.5-Refactering.md +1310 -0
  40. package/docs/MUSUBIv1.6.1-enhancement_roadmap_20260105.md +291 -0
  41. package/docs/MUSUBIv2.2.0-USERGUIDE.md +2079 -0
  42. package/docs/ROADMAP-v1.5.md +116 -0
  43. package/docs/SwarmCoding.md +1284 -0
  44. package/docs/Test-prompt.md +105 -0
  45. package/docs/USER-GUIDE-v1.8.0.md +2371 -0
  46. package/docs/USER-GUIDE.ja.md +2147 -0
  47. package/docs/USER-GUIDE.md +3022 -0
  48. package/docs/YATA-GLOBAL-GUIDE.ja.md +750 -0
  49. package/docs/YATA-GLOBAL-GUIDE.md +595 -0
  50. package/docs/YATA-LOCAL-GUIDE.ja.md +989 -0
  51. package/docs/YATA-LOCAL-GUIDE.md +730 -0
  52. package/docs/adr/0001-real-time-pattern-learning-architecture-for-v1-5-0.md +75 -0
  53. package/docs/adr/0002-pattern-sharing-protocol-for-cross-team-collaborat.md +79 -0
  54. package/docs/adr/0003-owl-2-rl-implementation-strategy-for-advanced-infe.md +90 -0
  55. package/docs/adr/ADR-v3.4.0-001-deep-research-architecture.md +217 -0
  56. package/docs/adr/ADR-v3.4.0-002-search-provider-selection.md +308 -0
  57. package/docs/adr/ADR-v3.4.0-003-lm-api-integration.md +475 -0
  58. package/docs/enterprise-knowledge-management.md +1737 -0
  59. package/docs/evolution-from-musubi-to-musubix.md +2170 -0
  60. package/docs/getting-started-with-sdd.md +1602 -0
  61. package/docs/moodle-refactering-codegraph-musubix.md +391 -0
  62. package/docs/moodle-refactering-codegraph.md +278 -0
  63. package/docs/overview/MUSUBIX-CodeGraph.md +322 -0
  64. package/docs/overview/MUSUBIX-Core.md +671 -0
  65. package/docs/overview/MUSUBIX-Decisions.md +494 -0
  66. package/docs/overview/MUSUBIX-FormalVerify.md +566 -0
  67. package/docs/overview/MUSUBIX-Knowledge.md +1231 -0
  68. package/docs/overview/MUSUBIX-Learning.md +837 -0
  69. package/docs/overview/MUSUBIX-MCP-Server.md +535 -0
  70. package/docs/overview/MUSUBIX-Overview.md +264 -0
  71. package/docs/overview/MUSUBIX-Phase1-Complete.md +271 -0
  72. package/docs/overview/MUSUBIX-Phase2-Complete.md +310 -0
  73. package/docs/overview/MUSUBIX-Policy.md +477 -0
  74. package/docs/overview/MUSUBIX-Roadmap-v2.md +399 -0
  75. package/docs/overview/MUSUBIX-Security-Plan.md +939 -0
  76. package/docs/overview/MUSUBIX-Security-v2.1.md +668 -0
  77. package/docs/overview/MUSUBIX-Security.md +891 -0
  78. package/docs/overview/MUSUBIX-YATA.md +666 -0
  79. package/docs/overview/MUSUBIX-v2.2.0-Advanced-Learning.md +513 -0
  80. package/docs/overview/Neuro-SymbolicAI.md +159 -0
  81. package/docs/packages/knowledge.md +594 -0
  82. package/docs/qiita-linux-kernel-knowledge-graph.md +596 -0
  83. package/package.json +58 -51
  84. package/scripts/generate-quality-gate-report.ts +106 -0
  85. package/scripts/postinstall.js +94 -0
  86. package/steering/.musubi-version +1 -0
  87. package/steering/product.ja.md +572 -0
  88. package/steering/project.yml +66 -0
  89. package/steering/rules/constitution.md +491 -0
  90. package/steering/structure.ja.md +503 -0
  91. package/steering/tech.ja.md +208 -0
  92. package/dist/index.d.ts +0 -25
  93. package/dist/index.d.ts.map +0 -1
  94. package/dist/index.js +0 -74
  95. package/dist/index.js.map +0 -1
package/package.json CHANGED
@@ -1,66 +1,73 @@
1
1
  {
2
2
  "name": "musubix",
3
- "version": "3.4.5",
4
- "description": "MUSUBIX - Neuro-Symbolic AI Integration System for Software Development",
5
- "keywords": [
6
- "ai",
7
- "neuro-symbolic",
8
- "knowledge-graph",
9
- "sdd",
10
- "software-development",
11
- "code-generation",
12
- "ears",
13
- "requirements",
14
- "design-patterns",
15
- "codegraph",
16
- "git-native"
3
+ "version": "3.4.7",
4
+ "description": "Neuro-Symbolic AI Coding System - Git-Native Knowledge Integration",
5
+ "type": "module",
6
+ "workspaces": [
7
+ "packages/*"
17
8
  ],
18
- "author": "nahisaho",
19
- "license": "MIT",
20
- "repository": {
21
- "type": "git",
22
- "url": "https://github.com/nahisaho/MUSUBIX.git"
23
- },
24
- "homepage": "https://github.com/nahisaho/MUSUBIX#readme",
25
- "bugs": {
26
- "url": "https://github.com/nahisaho/MUSUBIX/issues"
27
- },
28
- "main": "dist/index.js",
29
- "types": "dist/index.d.ts",
30
9
  "bin": {
31
- "musubix": "./bin/musubix.js"
10
+ "musubix": "bin/musubix.js",
11
+ "musubix-mcp": "bin/musubix-mcp.js"
32
12
  },
33
13
  "files": [
34
- "dist",
35
- "bin"
14
+ "bin/",
15
+ "AGENTS.md",
16
+ "README.md",
17
+ "README.ja.md",
18
+ "LICENSE",
19
+ "docs/",
20
+ "steering/",
21
+ "templates/",
22
+ ".github/",
23
+ "scripts/"
36
24
  ],
37
25
  "scripts": {
38
- "build": "tsc",
26
+ "postinstall": "node scripts/postinstall.js",
27
+ "build": "npm run build --workspaces --if-present",
28
+ "test": "vitest run",
29
+ "test:unit": "vitest run --dir packages/*/src/__tests__",
30
+ "test:integration": "vitest run --dir packages/*/__tests__",
31
+ "test:coverage": "vitest run --coverage",
32
+ "lint": "eslint packages/*/src --ext .ts",
33
+ "lint:fix": "eslint packages/*/src --ext .ts --fix",
34
+ "clean": "npm run clean --workspaces --if-present",
35
+ "typecheck": "npm run typecheck --workspaces --if-present",
39
36
  "prepublishOnly": "npm run build"
40
37
  },
41
- "dependencies": {
42
- "@musubix/decisions": "^3.4.0",
43
- "@musubix/knowledge": "^3.4.0",
44
- "@musubix/policy": "^3.4.0",
45
- "@nahisaho/musubix-codegraph": "^3.4.1",
46
- "@nahisaho/musubix-core": "^3.4.1",
47
- "@nahisaho/musubix-dfg": "^3.4.0",
48
- "@nahisaho/musubix-formal-verify": "^3.4.0",
49
- "@nahisaho/musubix-lean": "^3.4.0",
50
- "@nahisaho/musubix-library-learner": "^3.4.0",
51
- "@nahisaho/musubix-mcp-server": "^3.4.0",
52
- "@nahisaho/musubix-neural-search": "^3.4.0",
53
- "@nahisaho/musubix-ontology-mcp": "^3.4.0",
54
- "@nahisaho/musubix-pattern-mcp": "^3.4.0",
55
- "@nahisaho/musubix-sdd-ontology": "^3.4.0",
56
- "@nahisaho/musubix-security": "^3.4.0",
57
- "@nahisaho/musubix-synthesis": "^3.4.0",
58
- "@nahisaho/musubix-wake-sleep": "^3.4.0"
59
- },
60
- "devDependencies": {
61
- "typescript": "^5.3.3"
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/nahisaho/MUSUBIX.git"
62
41
  },
42
+ "keywords": [
43
+ "ai",
44
+ "neuro-symbolic",
45
+ "coding-assistant",
46
+ "mcp",
47
+ "musubi",
48
+ "sdd",
49
+ "git-native"
50
+ ],
51
+ "author": "nahisaho",
52
+ "license": "MIT",
63
53
  "engines": {
64
54
  "node": ">=20.0.0"
55
+ },
56
+ "devDependencies": {
57
+ "@playwright/test": "^1.57.0",
58
+ "@types/node": "^20.10.0",
59
+ "@typescript-eslint/eslint-plugin": "^6.13.0",
60
+ "@typescript-eslint/parser": "^6.13.0",
61
+ "@vitest/coverage-v8": "^4.0.16",
62
+ "eslint": "^8.55.0",
63
+ "typescript": "^5.3.0",
64
+ "vitest": "^4.0.16"
65
+ },
66
+ "dependencies": {
67
+ "@modelcontextprotocol/sdk": "^1.25.2",
68
+ "@nahisaho/musubix-core": "^3.3.0",
69
+ "@nahisaho/musubix-mcp-server": "^3.3.0",
70
+ "@nahisaho/musubix-security": "^3.3.8",
71
+ "musubix": "^3.4.5"
65
72
  }
66
73
  }
@@ -0,0 +1,106 @@
1
+ /**
2
+ * Quality Gate Report Generator
3
+ *
4
+ * Generates an approval report for the Neuro-Symbolic Integration implementation.
5
+ *
6
+ * Usage: npx tsx scripts/generate-quality-gate-report.ts
7
+ */
8
+
9
+ import { QualityGateValidator, createComponentValidation } from '../packages/core/src/symbolic/quality-gate.js';
10
+ import type { TraceabilityCoverage } from '../packages/core/src/symbolic/quality-gate.js';
11
+ import * as fs from 'fs';
12
+ import * as path from 'path';
13
+
14
+ // Traceability data based on REQ-SYMB-001 and DES-SYMB-001
15
+ const traceabilityData: TraceabilityCoverage[] = [
16
+ // Semantic Filter requirements (REQ-SF-001〜003)
17
+ { requirementId: 'REQ-SF-001', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-001'], testIds: ['semantic-filter.test.ts'], coveragePercent: 100 },
18
+ { requirementId: 'REQ-SF-002', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-001'], testIds: ['semantic-filter.test.ts'], coveragePercent: 100 },
19
+ { requirementId: 'REQ-SF-003', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-002'], testIds: ['hallucination-detector.test.ts'], coveragePercent: 100 },
20
+
21
+ // Formal Verification requirements (REQ-FV-001〜005)
22
+ { requirementId: 'REQ-FV-001', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-009'], testIds: ['ears-to-formal.test.ts'], coveragePercent: 100 },
23
+ { requirementId: 'REQ-FV-002', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-010'], testIds: ['vc-generator.test.ts'], coveragePercent: 100 },
24
+ { requirementId: 'REQ-FV-003', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-011'], testIds: ['z3-adapter.test.ts'], coveragePercent: 100 },
25
+ { requirementId: 'REQ-FV-004', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-012'], testIds: ['z3-adapter.test.ts'], coveragePercent: 100 },
26
+ { requirementId: 'REQ-FV-005', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-013'], testIds: ['security-scanner.test.ts'], coveragePercent: 100 },
27
+
28
+ // Constitution requirements (REQ-CONST-001〜010)
29
+ { requirementId: 'REQ-CONST-001', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-003'], testIds: ['constitution-registry.test.ts'], coveragePercent: 100 },
30
+ { requirementId: 'REQ-CONST-002', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-003'], testIds: ['constitution-registry.test.ts'], coveragePercent: 100 },
31
+ { requirementId: 'REQ-CONST-003', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-003'], testIds: ['constitution-registry.test.ts'], coveragePercent: 100 },
32
+ { requirementId: 'REQ-CONST-004', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-003', 'TSK-SYMB-019'], testIds: ['constitution-registry.test.ts', 'quality-gate.test.ts'], coveragePercent: 100 },
33
+ { requirementId: 'REQ-CONST-005', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-003'], testIds: ['constitution-registry.test.ts'], coveragePercent: 100 },
34
+ { requirementId: 'REQ-CONST-006', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-003'], testIds: ['constitution-registry.test.ts'], coveragePercent: 100 },
35
+ { requirementId: 'REQ-CONST-007', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-003'], testIds: ['constitution-registry.test.ts'], coveragePercent: 100 },
36
+ { requirementId: 'REQ-CONST-008', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-003'], testIds: ['constitution-registry.test.ts'], coveragePercent: 100 },
37
+ { requirementId: 'REQ-CONST-009', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-003', 'TSK-SYMB-019'], testIds: ['constitution-registry.test.ts', 'quality-gate.test.ts'], coveragePercent: 100 },
38
+ { requirementId: 'REQ-CONST-010', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-004', 'TSK-SYMB-019'], testIds: ['confidence-estimator.test.ts', 'quality-gate.test.ts'], coveragePercent: 100 },
39
+
40
+ // Routing requirements (REQ-ROUTE-001〜003)
41
+ { requirementId: 'REQ-ROUTE-001', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-005'], testIds: ['confidence-router.test.ts'], coveragePercent: 100 },
42
+ { requirementId: 'REQ-ROUTE-002', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-005'], testIds: ['confidence-router.test.ts'], coveragePercent: 100 },
43
+ { requirementId: 'REQ-ROUTE-003', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-006'], testIds: ['error-handler.test.ts'], coveragePercent: 100 },
44
+
45
+ // Non-functional requirements (REQ-NFR-001〜006)
46
+ { requirementId: 'REQ-NFR-001', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-018'], testIds: ['performance-budget.test.ts'], coveragePercent: 100 },
47
+ { requirementId: 'REQ-NFR-002', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-016'], testIds: ['rule-config.test.ts'], coveragePercent: 100 },
48
+ { requirementId: 'REQ-NFR-003', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-001', 'TSK-SYMB-003', 'TSK-SYMB-006', 'TSK-SYMB-008', 'TSK-SYMB-012', 'TSK-SYMB-019'], testIds: ['multiple'], coveragePercent: 100 },
49
+ { requirementId: 'REQ-NFR-004', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-014'], testIds: ['candidate-ranker.test.ts'], coveragePercent: 100 },
50
+ { requirementId: 'REQ-NFR-005', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-013'], testIds: ['security-scanner.test.ts'], coveragePercent: 100 },
51
+ { requirementId: 'REQ-NFR-006', designIds: ['DES-SYMB-001'], taskIds: ['TSK-SYMB-017'], testIds: ['audit-logger.test.ts'], coveragePercent: 100 },
52
+ ];
53
+
54
+ // Component validation based on implemented modules
55
+ const componentValidation = createComponentValidation({
56
+ // Phase 3 Components
57
+ performanceBudgetDefined: true, // TSK-SYMB-018: PerformanceBudget implemented
58
+ extensibleConfigDefined: true, // TSK-SYMB-016: ExtensibleRuleConfig implemented
59
+ explanationGeneratorDefined: true, // All components have Explanation support
60
+ securityMaskingDefined: true, // TSK-SYMB-013: SecurityScanner with masking
61
+ auditLoggingDefined: true, // TSK-SYMB-017: AuditLogger with hash-chain
62
+
63
+ // Constitution Compliance
64
+ libraryFirstCompliant: true, // Article I: All modules are independent libraries
65
+ cliInterfaceDefined: true, // Article II: CLI available via musubix command
66
+ testFirstCompliant: true, // Article III: 598 tests written first
67
+ earsFormatCompliant: true, // Article IV: REQ-SYMB-001 uses EARS format
68
+ traceabilityCompliant: true, // Article V: Full traceability matrix
69
+ projectMemoryCompliant: true, // Article VI: steering/ directory maintained
70
+ designPatternsDocumented: true, // Article VII: DES-SYMB-001 documents patterns
71
+ adrCompliant: true, // Article VIII: Decision records in design doc
72
+ qualityGatesConfigured: true, // Article IX: QualityGateValidator implemented
73
+ });
74
+
75
+ // Generate report
76
+ const validator = new QualityGateValidator();
77
+ const result = validator.validate(traceabilityData, componentValidation);
78
+ const report = validator.generateApprovalReport(result);
79
+
80
+ // Output paths
81
+ const outputDir = path.join(process.cwd(), 'storage', 'reviews');
82
+ const outputPath = path.join(outputDir, `quality-gate-report-${new Date().toISOString().split('T')[0]}.md`);
83
+
84
+ // Ensure directory exists
85
+ if (!fs.existsSync(outputDir)) {
86
+ fs.mkdirSync(outputDir, { recursive: true });
87
+ }
88
+
89
+ // Write report
90
+ fs.writeFileSync(outputPath, report);
91
+
92
+ console.log('\n' + '='.repeat(60));
93
+ console.log('Quality Gate Validation Complete');
94
+ console.log('='.repeat(60));
95
+ console.log(`\nStatus: ${result.passed ? '✅ PASSED' : '❌ FAILED'}`);
96
+ console.log(`\nSummary:`);
97
+ console.log(` Total Checks: ${result.summary.totalChecks}`);
98
+ console.log(` Passed: ${result.summary.passedChecks}`);
99
+ console.log(` Failed: ${result.summary.failedChecks}`);
100
+ console.log(` Blockers: ${result.summary.blockerCount}`);
101
+ console.log(` Critical: ${result.summary.criticalCount}`);
102
+ console.log(`\nReport saved to: ${outputPath}`);
103
+ console.log('='.repeat(60) + '\n');
104
+
105
+ // Also print the report
106
+ console.log(report);
@@ -0,0 +1,94 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * MUSUBIX Postinstall Script
4
+ *
5
+ * Copies .github/ and AGENTS.md to the project root after npm install.
6
+ * This enables GitHub Copilot and other AI agents to use MUSUBIX prompts and skills.
7
+ */
8
+
9
+ import { existsSync, cpSync, copyFileSync, mkdirSync } from 'fs';
10
+ import { dirname, join, resolve } from 'path';
11
+ import { fileURLToPath } from 'url';
12
+
13
+ const __filename = fileURLToPath(import.meta.url);
14
+ const __dirname = dirname(__filename);
15
+
16
+ // Source: where musubix is installed (node_modules/musubix)
17
+ const packageRoot = resolve(__dirname, '..');
18
+
19
+ // Target: project root (where npm install was run)
20
+ // When installed as dependency: process.env.INIT_CWD points to project root
21
+ // When running in musubix repo itself: skip
22
+ const projectRoot = process.env.INIT_CWD || process.cwd();
23
+
24
+ // Skip if we're in the musubix package itself
25
+ if (projectRoot === packageRoot || projectRoot.includes('node_modules/musubix')) {
26
+ console.log('musubix: Skipping postinstall (running in package directory)');
27
+ process.exit(0);
28
+ }
29
+
30
+ const sourceGithub = join(packageRoot, '.github');
31
+ const sourceAgents = join(packageRoot, 'AGENTS.md');
32
+ const targetGithub = join(projectRoot, '.github');
33
+ const targetAgents = join(projectRoot, 'AGENTS.md');
34
+
35
+ let copied = false;
36
+
37
+ // Copy .github directory
38
+ if (existsSync(sourceGithub)) {
39
+ // Only copy musubix-specific files, don't overwrite existing .github
40
+ const musubixPrompts = join(sourceGithub, 'prompts');
41
+ const musubixSkills = join(sourceGithub, 'skills');
42
+ const musubixAgents = join(sourceGithub, 'AGENTS.md');
43
+
44
+ // Create .github if not exists
45
+ if (!existsSync(targetGithub)) {
46
+ mkdirSync(targetGithub, { recursive: true });
47
+ }
48
+
49
+ // Copy prompts
50
+ if (existsSync(musubixPrompts)) {
51
+ const targetPrompts = join(targetGithub, 'prompts');
52
+ if (!existsSync(targetPrompts)) {
53
+ mkdirSync(targetPrompts, { recursive: true });
54
+ }
55
+ cpSync(musubixPrompts, targetPrompts, { recursive: true, force: false });
56
+ console.log('musubix: Copied .github/prompts/');
57
+ copied = true;
58
+ }
59
+
60
+ // Copy skills
61
+ if (existsSync(musubixSkills)) {
62
+ const targetSkills = join(targetGithub, 'skills');
63
+ if (!existsSync(targetSkills)) {
64
+ mkdirSync(targetSkills, { recursive: true });
65
+ }
66
+ cpSync(musubixSkills, targetSkills, { recursive: true, force: false });
67
+ console.log('musubix: Copied .github/skills/');
68
+ copied = true;
69
+ }
70
+
71
+ // Copy .github/AGENTS.md
72
+ if (existsSync(musubixAgents)) {
73
+ const targetGithubAgents = join(targetGithub, 'AGENTS.md');
74
+ if (!existsSync(targetGithubAgents)) {
75
+ copyFileSync(musubixAgents, targetGithubAgents);
76
+ console.log('musubix: Copied .github/AGENTS.md');
77
+ copied = true;
78
+ }
79
+ }
80
+ }
81
+
82
+ // Copy AGENTS.md to project root
83
+ if (existsSync(sourceAgents) && !existsSync(targetAgents)) {
84
+ copyFileSync(sourceAgents, targetAgents);
85
+ console.log('musubix: Copied AGENTS.md');
86
+ copied = true;
87
+ }
88
+
89
+ if (copied) {
90
+ console.log('musubix: AI agent configuration files installed successfully!');
91
+ console.log('musubix: GitHub Copilot can now use MUSUBIX SDD prompts and skills.');
92
+ } else {
93
+ console.log('musubix: Configuration files already exist, skipping.');
94
+ }
@@ -0,0 +1 @@
1
+ 6.2.1