sinapse-ai 5.0.6 → 5.0.8
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/.sinapse-ai/install-manifest.yaml +2 -2
- package/bin/cli.js +18 -9
- package/package.json +1 -1
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
# - SHA256 hashes for change detection
|
|
8
8
|
# - File types for categorization
|
|
9
9
|
#
|
|
10
|
-
version: 5.0.
|
|
11
|
-
generated_at: "2026-03-
|
|
10
|
+
version: 5.0.8
|
|
11
|
+
generated_at: "2026-03-23T22:04:39.261Z"
|
|
12
12
|
generator: scripts/generate-install-manifest.js
|
|
13
13
|
file_count: 1090
|
|
14
14
|
files:
|
package/bin/cli.js
CHANGED
|
@@ -10,7 +10,7 @@ const os = require('os');
|
|
|
10
10
|
// ══════════════════════════════════════════════════════════════════════════════
|
|
11
11
|
|
|
12
12
|
const ROOT = path.resolve(__dirname, '..');
|
|
13
|
-
const VERSION = '
|
|
13
|
+
const VERSION = require(path.join(__dirname, '..', 'package.json')).version;
|
|
14
14
|
const HOME = os.homedir();
|
|
15
15
|
const SINAPSE_HOME = path.join(HOME, '.sinapse');
|
|
16
16
|
const CLAUDE_COMMANDS_DIR = path.join(HOME, '.claude', 'commands', 'SINAPSE', 'agents');
|
|
@@ -130,8 +130,9 @@ function cmdInstallGlobal() {
|
|
|
130
130
|
header();
|
|
131
131
|
console.log(`${BOLD}Installing Sinapse globally...${NC}\n`);
|
|
132
132
|
|
|
133
|
-
// Validate package
|
|
134
|
-
const
|
|
133
|
+
// Validate package — squads live in squads/ subdirectory
|
|
134
|
+
const squadsDir = path.join(ROOT, 'squads');
|
|
135
|
+
const squads = getSquads(fs.existsSync(squadsDir) ? squadsDir : ROOT);
|
|
135
136
|
if (squads.length === 0) {
|
|
136
137
|
console.error(`${RED}ERROR: No squad directories found in package.${NC}`);
|
|
137
138
|
process.exit(1);
|
|
@@ -141,9 +142,10 @@ function cmdInstallGlobal() {
|
|
|
141
142
|
console.log(`${CYAN}Phase 1:${NC} Copying squads to ~/.sinapse/`);
|
|
142
143
|
fs.mkdirSync(SINAPSE_HOME, { recursive: true });
|
|
143
144
|
|
|
145
|
+
const squadsSrcBase = fs.existsSync(squadsDir) ? squadsDir : ROOT;
|
|
144
146
|
let totalAgents = 0;
|
|
145
147
|
for (const squad of squads) {
|
|
146
|
-
const src = path.join(
|
|
148
|
+
const src = path.join(squadsSrcBase, squad.name);
|
|
147
149
|
const dest = path.join(SINAPSE_HOME, squad.name);
|
|
148
150
|
rmDirSync(dest);
|
|
149
151
|
copyDirSync(src, dest);
|
|
@@ -375,9 +377,16 @@ See \`.claude/rules/squad-awareness.md\` for the full delegation map.
|
|
|
375
377
|
const agentsDir = path.join(claudeDir, 'agents');
|
|
376
378
|
fs.mkdirSync(agentsDir, { recursive: true });
|
|
377
379
|
|
|
378
|
-
const routingTable = squads.map(s =>
|
|
379
|
-
|
|
380
|
-
|
|
380
|
+
const routingTable = squads.map(s => {
|
|
381
|
+
// Find actual orqx agent name from squad's agents dir
|
|
382
|
+
const sAgentsDir = path.join(SINAPSE_HOME, s.name, 'agents');
|
|
383
|
+
let orqxName = `${s.name.replace('squad-', '')}-orqx`;
|
|
384
|
+
try {
|
|
385
|
+
const orqxFile = fs.readdirSync(sAgentsDir).find(f => f.endsWith('-orqx.md'));
|
|
386
|
+
if (orqxFile) orqxName = orqxFile.replace('.md', '');
|
|
387
|
+
} catch {}
|
|
388
|
+
return `| ${s.name} | @${orqxName} | ${s.agents} agents, ${s.tasks} tasks |`;
|
|
389
|
+
}).join('\n');
|
|
381
390
|
|
|
382
391
|
fs.writeFileSync(path.join(agentsDir, 'sinapse-master.md'), `---
|
|
383
392
|
name: sinapse-master
|
|
@@ -413,8 +422,8 @@ Then HALT and await user input.
|
|
|
413
422
|
## INTELLIGENT ROUTING
|
|
414
423
|
|
|
415
424
|
- **Simple request** → route DIRECTLY to @specialist
|
|
416
|
-
- **Complex request** → route to @{domain}-
|
|
417
|
-
- **Cross-domain** → coordinate multiple
|
|
425
|
+
- **Complex request** → route to @{domain}-orqx
|
|
426
|
+
- **Cross-domain** → coordinate multiple orqx agents
|
|
418
427
|
- **Dev/code** → use @dev, @qa, @architect
|
|
419
428
|
- NEVER execute domain work yourself — ALWAYS delegate
|
|
420
429
|
|