sinapse-ai 1.6.0 → 1.6.1

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.
@@ -12,3 +12,4 @@
12
12
  {"timestamp":"2026-05-15T13:00:14.100Z","action":"change","path":".sinapse-ai/core/orchestration/index.js","trigger":"watcher"}
13
13
  {"timestamp":"2026-05-25T16:16:10.949Z","action":"change","path":".sinapse-ai/development/agents/snps-orqx.md","trigger":"watcher"}
14
14
  {"timestamp":"2026-05-25T16:16:10.950Z","action":"change","path":".sinapse-ai/product/templates/activation-instructions-inline-greeting.yaml","trigger":"watcher"}
15
+ {"timestamp":"2026-05-26T07:43:07.070Z","action":"change","path":".sinapse-ai/development/scripts/apply-inline-greeting-all-agents.js","trigger":"watcher"}
@@ -58,7 +58,13 @@ const INLINE_GREETING_LOGIC = `
58
58
 
59
59
  - STEP 4: Display the greeting you generated in STEP 3
60
60
 
61
- - STEP 5: HALT and await user input
61
+ - STEP 5: Check briefing-on-activation behavior
62
+ # Orchestrator detection: agent.id ends with "-orqx" OR persona.role contains "orchestrator"/"Imperator"/"Master"
63
+ - If this agent is an ORCHESTRATOR:
64
+ - If user provided briefing/context with the activation → proceed IMMEDIATELY to ORCHESTRATION PLAN flow (absorb → diagnose → plan with phases + agents + handoffs → execute YOLO). NEVER ask "do you want me to plan?" — the answer is always YES.
65
+ - If bare activation only → await briefing. On receipt, apply same flow automatically.
66
+ - If this agent is a SPECIALIST (developer/architect/analyst/data-engineer/devops/sprint-lead/product-lead/quality-gate/ux-design-expert/squad-creator/domain specialist):
67
+ - HALT and await task assignment from user or upstream orchestrator.
62
68
  `;
63
69
 
64
70
  const OLD_PATTERN = / {2}- STEP 3: Execute \/greet slash command to generate contextual greeting\n {2}- STEP 4: Display the greeting returned by \/greet command\n {2}- STEP 5: HALT and await user input/;
@@ -7,7 +7,7 @@
7
7
  # - SHA256 hashes for change detection
8
8
  # - File types for categorization
9
9
  #
10
- version: 1.6.0
10
+ version: 1.6.1
11
11
  generator: scripts/generate-install-manifest.js
12
12
  file_count: 1167
13
13
  files:
@@ -1572,9 +1572,9 @@ files:
1572
1572
  type: script
1573
1573
  size: 3216
1574
1574
  - path: development/scripts/apply-inline-greeting-all-agents.js
1575
- hash: sha256:4a9c85fcf93005e5d5a89f815f4c1b20df02e4f904bdbbefab60bbd0c2d0e0e4
1575
+ hash: sha256:e58ad5d52b329d335ee73245352ae545df19c8122e23f34750a6a75996ca9dc6
1576
1576
  type: script
1577
- size: 4611
1577
+ size: 5386
1578
1578
  - path: development/scripts/approval-workflow.js
1579
1579
  hash: sha256:3e0874ab55558dd39539dc1da7eea97c60f5797129165c385a01a699b1e98df0
1580
1580
  type: script
@@ -450,6 +450,21 @@ async function cmdInstallGlobal(opts = {}) {
450
450
  }
451
451
 
452
452
  function generateCommandMd(agentId, agentName, agentIcon, squadName, squadPath, agentFile) {
453
+ // Detecta se é orquestrador: id termina em -orqx OU é Imperator (snps-orqx/sinapse-orqx)
454
+ const isOrchestrator = /-orqx$/.test(agentId) || agentId === 'snps-orqx' || agentId === 'sinapse-orqx';
455
+
456
+ const step4 = isOrchestrator
457
+ ? `4. Briefing-on-activation check (this agent is an ORCHESTRATOR):
458
+ - If user provided briefing/context with the activation → proceed IMMEDIATELY: absorb → diagnose → plan with phases + agents + handoffs → execute (YOLO). NEVER ask "do you want me to plan?".
459
+ - If bare activation only → await briefing. On receipt, apply same flow automatically.`
460
+ : `4. HALT and await user input`;
461
+
462
+ const step6 = isOrchestrator
463
+ ? `6. Briefing-on-activation check (ORCHESTRATOR):
464
+ - If user provided briefing → proceed IMMEDIATELY: absorb → diagnose → plan → execute
465
+ - If bare activation → await briefing, then plan automatically. NEVER ask "do you want me to plan?".`
466
+ : `6. HALT and await user input`;
467
+
453
468
  return `# ${agentId}
454
469
 
455
470
  ACTIVATION-NOTICE: This command activates an agent from ${squadName}.
@@ -458,7 +473,7 @@ CRITICAL: Read the agent definition file at \`${squadPath}/agents/${agentFile}\`
458
473
  1. Adopt the persona defined in that file (name: ${agentName}, icon: ${agentIcon})
459
474
  2. Load the squad manifest at \`${squadPath}/squad.yaml\` for context
460
475
  3. Display a greeting showing your agent name, role, and available commands
461
- 4. HALT and await user input
476
+ ${step4}
462
477
 
463
478
  ## Agent Reference
464
479
  - **Agent ID:** ${agentId}
@@ -475,7 +490,7 @@ CRITICAL: Read the agent definition file at \`${squadPath}/agents/${agentFile}\`
475
490
  3. Show greeting: "{icon} {name} — {role} ativado"
476
491
  4. Show: "Squad: ${squadName} | Invoke: /SINAPSE:agents:${agentId}"
477
492
  5. List your key tasks from the agent definition
478
- 6. HALT and await user input
493
+ ${step6}
479
494
 
480
495
  ## How to Execute Tasks
481
496
  When the user requests a task:
@@ -595,7 +610,7 @@ v1.0 · ${squads.length} squads · ${squads.reduce((a, s) => a + s.agents, 0)} a
595
610
  👑 Imperator — Sinapse Master ativado
596
611
  \`\`\`
597
612
 
598
- Then HALT and await user input.
613
+ After the greeting, check if the user provided briefing/context with the activation. If YES → proceed IMMEDIATELY: Initial State Audit → Bootstrap Classification → ORCHESTRATION PLAN (phases + squads + agents + handoffs) → execute (YOLO). NEVER ask "do you want me to plan?" — the answer is always YES for Imperator. If NO (bare activation) → await briefing, then plan automatically on receipt.
599
614
 
600
615
  ## INTELLIGENT ROUTING
601
616
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinapse-ai",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "SINAPSE AI: Framework de orquestracao de IA — 18 squads, 189 agentes especializados",
5
5
  "bin": {
6
6
  "sinapse": "bin/sinapse.js",
@@ -373,7 +373,9 @@ function buildAgentTemplate(agentId, squadName, homedir) {
373
373
  `1. Adopt the persona defined in that file`,
374
374
  `2. Load the squad manifest at \`${squadManifestPath}\` for context`,
375
375
  '3. Display a greeting showing your agent name, role, and available commands',
376
- '4. HALT and await user input',
376
+ '4. Briefing-on-activation check (this agent is an ORCHESTRATOR):',
377
+ ' - If user provided briefing/context with the activation → proceed IMMEDIATELY: absorb → diagnose → plan with phases + agents + handoffs → execute (YOLO). NEVER ask "do you want me to plan?".',
378
+ ' - If bare activation only → await briefing. On receipt, apply same flow automatically.',
377
379
  '',
378
380
  ].join('\n');
379
381
  }