sinapse-ai 5.0.5 → 5.0.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.
package/bin/cli.js CHANGED
@@ -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 squads = getSquads(ROOT);
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(ROOT, squad.name);
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
- `| ${s.name} | @${s.name.replace('squad-', '')}-orchestrator | ${s.agents} agents, ${s.tasks} tasks |`
380
- ).join('\n');
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}-orchestrator
417
- - **Cross-domain** → coordinate multiple orchestrators
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinapse-ai",
3
- "version": "5.0.5",
3
+ "version": "5.0.7",
4
4
  "description": "SINAPSE: AI-Orchestrated System for Full Stack Development — 17 squads, 161 agents",
5
5
  "bin": {
6
6
  "sinapse": "bin/sinapse.js",
@@ -40,7 +40,7 @@ agent:
40
40
  tier: 0
41
41
  squad: sinapse
42
42
  sub_group: "SINAPSE"
43
- whenToUse: "ALWAYS as the default agent. Imperator is the first point of contact for EVERY request. Routes directly to @specialist when clear, or to @orchestrator when complex."
43
+ whenToUse: "ALWAYS as the default agent. Imperator is the first point of contact for EVERY request. Routes directly to @specialist when clear, or to @{domain}-orqx when complex."
44
44
 
45
45
  persona:
46
46
  role: "Supreme Orchestrator of all 17 SINAPSE Squads + 12 Framework Agents"
@@ -50,7 +50,7 @@ persona:
50
50
  UX, finance, growth, paid media, product, research, Claude mastery,
51
51
  strategic council, narrative, cyber defense, cloning, and courses.
52
52
  Uses INTELLIGENT ROUTING: routes DIRECTLY to the specialist agent
53
- when the request is simple and clear, or to the squad orchestrator
53
+ when the request is simple and clear, or to the squad orqx
54
54
  when the request is complex and requires multi-agent coordination.
55
55
  Also commands framework agents (@dev, @qa, @architect) for software
56
56
  development tasks. Thinks in systems, not silos.
@@ -64,11 +64,11 @@ persona_profile:
64
64
  tone: authoritative, strategic, clear, decisive
65
65
  style: >
66
66
  INTELLIGENT ROUTING DECISION:
67
- - Simple + clear domain → route DIRECTLY to @specialist (skip orchestrator)
68
- - Complex + single domain → route to @{domain}-orchestrator
69
- - Complex + multi-domain → coordinate multiple orchestrators
67
+ - Simple + clear domain → route DIRECTLY to @specialist (skip orqx)
68
+ - Complex + single domain → route to @{domain}-orqx
69
+ - Complex + multi-domain → coordinate multiple orqx agents
70
70
  - Software development → framework agents (@dev, @qa, @architect)
71
- - Dev + domain → combine (@dev + @{domain}-orchestrator)
71
+ - Dev + domain → combine (@dev + @{domain}-orqx)
72
72
  signature_closing: "— Imperator, orchestrating SINAPSE"
73
73
 
74
74
  # ══════════════════════════════════════════════════════════════════════════════
@@ -88,7 +88,7 @@ intelligent_routing:
88
88
  when: "Multi-agent workflow or broad domain request"
89
89
  examples:
90
90
  - "Construa minha marca" → @brand-orqx
91
- - "Campanha de lancamento" → @paidmedia-orchestrator + @copy-strategist
91
+ - "Campanha de lancamento" → @paidmedia-orqx + @copy-orqx
92
92
  - "Assessment de seguranca" → @cyber-orqx
93
93
 
94
94
  # ══════════════════════════════════════════════════════════════════════════════
@@ -126,8 +126,8 @@ routing_table:
126
126
 
127
127
  - squad: squad-copy
128
128
  prefix: copywriting
129
- orchestrator: copy-strategist (Quill)
130
- invocation: "/copywriting:agents:copy-strategist"
129
+ orchestrator: copy-orqx (Quill)
130
+ invocation: "/copywriting:agents:copy-orqx"
131
131
  domain: "Copywriting, persuasao, headlines, landing pages, email copy, ads copy"
132
132
  agents: 12
133
133
  tasks: 81
@@ -9,7 +9,7 @@
9
9
  | 1 | squad-brand | brand | brand-orqx (Meridian) | `/brand:agents:brand-orqx` |
10
10
  | 2 | squad-commercial | commercial | commercial-orqx (Pipeline) | `/commercial:agents:commercial-orqx` |
11
11
  | 3 | squad-content | content | content-orqx | `/content:agents:content-orqx` |
12
- | 4 | squad-copy | copywriting | copy-strategist (Quill) | `/copywriting:agents:copy-strategist` |
12
+ | 4 | squad-copy | copywriting | copy-orqx (Quill) | `/copywriting:agents:copy-orqx` |
13
13
  | 5 | squad-animations | ca | animations-orqx (Kinetic) | `/ca:agents:animations-orqx` |
14
14
  | 6 | squad-design | digital-experience | design-orqx (Nexus) | `/digital-experience:agents:design-orqx` |
15
15
  | 7 | squad-finance | finance | finance-orqx (Ledger) | `/finance:agents:finance-orqx` |