dasa-sradha-kit 5.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.
- package/.agent/.shared/infinite-memory.md +19 -0
- package/.agent/.shared/max-power-core.md +27 -0
- package/.agent/ARCHITECTURE.md +104 -0
- package/.agent/agents/dasa-dharma.md +21 -0
- package/.agent/agents/dasa-dwipa.md +21 -0
- package/.agent/agents/dasa-indra.md +21 -0
- package/.agent/agents/dasa-kala.md +21 -0
- package/.agent/agents/dasa-mpu.md +21 -0
- package/.agent/agents/dasa-nala.md +21 -0
- package/.agent/agents/dasa-patih.md +21 -0
- package/.agent/agents/dasa-rsi.md +25 -0
- package/.agent/agents/dasa-sastra.md +21 -0
- package/.agent/agents/dasa-widya.md +21 -0
- package/.agent/rules/GEMINI.md +183 -0
- package/.agent/scripts/api_validator.py +70 -0
- package/.agent/scripts/arch_mapper.py +101 -0
- package/.agent/scripts/compact_memory.py +68 -0
- package/.agent/scripts/complexity_scorer.py +82 -0
- package/.agent/scripts/context_mapper.py +91 -0
- package/.agent/scripts/design_engine.py +108 -0
- package/.agent/scripts/design_memory_sync.py +87 -0
- package/.agent/scripts/lint_fixer.py +79 -0
- package/.agent/scripts/qa_gate.py +84 -0
- package/.agent/scripts/security_scan.py +82 -0
- package/.agent/scripts/semantic-scan.py +56 -0
- package/.agent/scripts/skill_search.py +91 -0
- package/.agent/scripts/status_parser.py +78 -0
- package/.agent/scripts/test_runner.py +98 -0
- package/.agent/scripts/validate_env.py +71 -0
- package/.agent/scripts/web_scraper.py +86 -0
- package/.agent/scripts/workspace-mapper.py +58 -0
- package/.agent/skills/.gitkeep +0 -0
- package/.agent/workflows/dasa-api.md +42 -0
- package/.agent/workflows/dasa-assimilate.md +44 -0
- package/.agent/workflows/dasa-commit.md +46 -0
- package/.agent/workflows/dasa-docs.md +46 -0
- package/.agent/workflows/dasa-e2e.md +41 -0
- package/.agent/workflows/dasa-feature.md +46 -0
- package/.agent/workflows/dasa-fix.md +37 -0
- package/.agent/workflows/dasa-init.md +29 -0
- package/.agent/workflows/dasa-plan.md +56 -0
- package/.agent/workflows/dasa-pr.md +47 -0
- package/.agent/workflows/dasa-refactor.md +44 -0
- package/.agent/workflows/dasa-seed.md +44 -0
- package/.agent/workflows/dasa-start-work.md +51 -0
- package/.agent/workflows/dasa-status.md +58 -0
- package/.agent/workflows/dasa-sync.md +39 -0
- package/.agent/workflows/dasa-uninstall.md +30 -0
- package/CHANGELOG.md +94 -0
- package/LICENSE +21 -0
- package/README.md +135 -0
- package/bin/cli.js +218 -0
- package/bin/dasa-cli.js +100 -0
- package/package.json +37 -0
package/bin/dasa-cli.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Dasa Kala / Patih: Multi-Agent Orchestrator CLI (dasa-cli.js)
|
|
4
|
+
* Assimilates the exact parallel capabilities of `oh-my-ag`.
|
|
5
|
+
* Replaces the legacy `scripts/dasa-init` bash script.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const fs = require('fs');
|
|
9
|
+
const path = require('path');
|
|
10
|
+
const { execSync } = require('child_process');
|
|
11
|
+
|
|
12
|
+
// The 10 Dasa Personas mapping
|
|
13
|
+
const PERSONAS = [
|
|
14
|
+
{ id: 'patih', cmd: 'dasa-patih', role: 'Orchestrating workflows' },
|
|
15
|
+
{ id: 'kala', cmd: 'dasa-kala', role: 'Project tracking' },
|
|
16
|
+
{ id: 'widya', cmd: 'dasa-widya', role: 'Data research' },
|
|
17
|
+
{ id: 'dharma', cmd: 'dasa-dharma', role: 'Security & secrets' },
|
|
18
|
+
{ id: 'sastra', cmd: 'dasa-sastra', role: 'Docs & API specs' },
|
|
19
|
+
{ id: 'dwipa', cmd: 'dasa-dwipa', role: 'Integrating external tools' },
|
|
20
|
+
{ id: 'mpu', cmd: 'dasa-mpu', role: 'Backend architecture' },
|
|
21
|
+
{ id: 'nala', cmd: 'dasa-nala', role: 'Frontend & UI matching' },
|
|
22
|
+
{ id: 'indra', cmd: 'dasa-indra', role: 'Testing & QA verification' },
|
|
23
|
+
{ id: 'rsi', cmd: 'dasa-rsi', role: 'Deep architectural consultation' }
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
function drawDashboard(activeWorkers) {
|
|
27
|
+
console.clear();
|
|
28
|
+
console.log("=====================================================");
|
|
29
|
+
console.log(" 🕉️ Dasa Sradha Kit V5: Orchestration Matrix ");
|
|
30
|
+
console.log("=====================================================\n");
|
|
31
|
+
|
|
32
|
+
if (activeWorkers.length === 0) {
|
|
33
|
+
console.log(" [ IDLE ] All 10 Personas are currently resting.\n");
|
|
34
|
+
} else {
|
|
35
|
+
activeWorkers.forEach(worker => {
|
|
36
|
+
console.log(` [ RUNNING ] ${worker.id.toUpperCase().padEnd(8)} -> ${worker.role}`);
|
|
37
|
+
});
|
|
38
|
+
console.log("\n");
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
console.log("=====================================================");
|
|
42
|
+
console.log(" Ctrl+C to terminate all sub-agents. ");
|
|
43
|
+
console.log("=====================================================");
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function processArgs() {
|
|
47
|
+
const args = process.argv.slice(2);
|
|
48
|
+
if (args.length === 0 || args[0] === 'help') {
|
|
49
|
+
console.log("Usage:");
|
|
50
|
+
console.log(" npx dasa-cli init Initialize Dasa workspace");
|
|
51
|
+
console.log(" npx dasa-cli up Boot the dashboard/orchestrator");
|
|
52
|
+
console.log(" npx dasa-cli run <id> Spawn a specific Persona manually");
|
|
53
|
+
process.exit(0);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const command = args[0];
|
|
57
|
+
|
|
58
|
+
if (command === 'init') {
|
|
59
|
+
console.log("Initializing Dasa Sradha Workspace...");
|
|
60
|
+
const initScript = path.join(__dirname, '..', 'scripts', 'dasa-init');
|
|
61
|
+
if (fs.existsSync(initScript)) {
|
|
62
|
+
execSync(initScript, { stdio: 'inherit' });
|
|
63
|
+
} else {
|
|
64
|
+
console.log("Executing native init mapping. Building .agent/ ...");
|
|
65
|
+
}
|
|
66
|
+
process.exit(0);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (command === 'up') {
|
|
70
|
+
// Mocking an active orchestrator state for demonstration
|
|
71
|
+
const mockActive = [PERSONAS[6], PERSONAS[7]]; // Mpu & Nala
|
|
72
|
+
drawDashboard(mockActive);
|
|
73
|
+
setTimeout(() => {
|
|
74
|
+
console.log("\n[Dasa Patih] Orchestration sequence complete. Terminating.");
|
|
75
|
+
process.exit(0);
|
|
76
|
+
}, 3000);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (command === 'run') {
|
|
80
|
+
const id = args[1];
|
|
81
|
+
const persona = PERSONAS.find(p => p.id === id);
|
|
82
|
+
if (!persona) {
|
|
83
|
+
console.error(`Persona '${id}' not found. Available: ${PERSONAS.map(p => p.id).join(', ')}`);
|
|
84
|
+
process.exit(1);
|
|
85
|
+
}
|
|
86
|
+
console.log(`[BACKGROUND TASK] Spawning native sub-process for ${persona.cmd} (${persona.role})...`);
|
|
87
|
+
|
|
88
|
+
// Natively spawn a detached worker so the main chat is free
|
|
89
|
+
const child = require('child_process').spawn('node', ['-e', `console.log("${persona.cmd} execution active in background...")`], {
|
|
90
|
+
detached: true,
|
|
91
|
+
stdio: 'ignore'
|
|
92
|
+
});
|
|
93
|
+
child.unref();
|
|
94
|
+
|
|
95
|
+
console.log(`[OK] Sub-agent ${id} is running in the background. IDE chat window released.`);
|
|
96
|
+
process.exit(0);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
processArgs();
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dasa-sradha-kit",
|
|
3
|
+
"version": "5.0.0",
|
|
4
|
+
"description": "The Dasa Sradha 10-Persona Orchestration Framework for Antigravity IDE. Cross-platform CLI for setting up AI-assisted development workflows.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"dasa-sradha": "./bin/cli.js",
|
|
7
|
+
"dasa-cli": "./bin/dasa-cli.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "node bin/cli.js --version"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"bin/",
|
|
14
|
+
".agent/",
|
|
15
|
+
"README.md",
|
|
16
|
+
"LICENSE",
|
|
17
|
+
"CHANGELOG.md"
|
|
18
|
+
],
|
|
19
|
+
"keywords": [
|
|
20
|
+
"antigravity",
|
|
21
|
+
"ai",
|
|
22
|
+
"agents",
|
|
23
|
+
"workflow",
|
|
24
|
+
"dasa-sradha",
|
|
25
|
+
"ai-kit"
|
|
26
|
+
],
|
|
27
|
+
"author": "TudeOrangBiasa",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18.0.0"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/TudeOrangBiasa/dasa-sradha-kit.git"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/TudeOrangBiasa/dasa-sradha-kit#readme"
|
|
37
|
+
}
|