sinapse-ai 6.0.1 → 6.0.3
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/data/entity-registry.yaml +748 -748
- package/.sinapse-ai/install-manifest.yaml +3 -3
- package/bin/cli.js +29 -19
- 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: 6.0.
|
|
11
|
-
generated_at: "2026-03-25T03:
|
|
10
|
+
version: 6.0.3
|
|
11
|
+
generated_at: "2026-03-25T03:41:18.669Z"
|
|
12
12
|
generator: scripts/generate-install-manifest.js
|
|
13
13
|
file_count: 1090
|
|
14
14
|
files:
|
|
@@ -1217,7 +1217,7 @@ files:
|
|
|
1217
1217
|
type: data
|
|
1218
1218
|
size: 9586
|
|
1219
1219
|
- path: data/entity-registry.yaml
|
|
1220
|
-
hash: sha256:
|
|
1220
|
+
hash: sha256:d7be69ecf0ad65133bc9039070d377321f39b51bb6f4050aaef227b8dbdddcd2
|
|
1221
1221
|
type: data
|
|
1222
1222
|
size: 519845
|
|
1223
1223
|
- path: data/learned-patterns.yaml
|
package/bin/cli.js
CHANGED
|
@@ -31,14 +31,14 @@ const NC = '\x1b[0m';
|
|
|
31
31
|
function header() {
|
|
32
32
|
const W = `${WHITE}${BOLD}`;
|
|
33
33
|
console.log('');
|
|
34
|
-
console.log(`${W} ███████╗██╗███╗ ██╗ █████╗ ██████╗
|
|
35
|
-
console.log(`${W} ██╔════╝██║████╗
|
|
36
|
-
console.log(`${W} ███████╗██║██╔██╗ ██║███████║██████╔╝███████╗█████╗
|
|
37
|
-
console.log(`${W} ╚════██║██║██║╚██╗██║██╔══██║██╔═══╝ ╚════██║██╔══╝
|
|
38
|
-
console.log(`${W} ███████║██║██║ ╚████║██║ ██║██║
|
|
39
|
-
console.log(`${W} ╚══════╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝
|
|
34
|
+
console.log(`${W} ███████╗██╗███╗ ██╗ █████╗ ██████╗ ███████╗███████╗ █████╗ ██╗${NC}`);
|
|
35
|
+
console.log(`${W} ██╔════╝██║████╗ ██║██╔══██╗██╔══██╗██╔════╝██╔════╝ ██╔══██╗██║${NC}`);
|
|
36
|
+
console.log(`${W} ███████╗██║██╔██╗ ██║███████║██████╔╝███████╗█████╗ ███████║██║${NC}`);
|
|
37
|
+
console.log(`${W} ╚════██║██║██║╚██╗██║██╔══██║██╔═══╝ ╚════██║██╔══╝ ██╔══██║██║${NC}`);
|
|
38
|
+
console.log(`${W} ███████║██║██║ ╚████║██║ ██║██║ ███████║███████╗ ██║ ██║██║${NC}`);
|
|
39
|
+
console.log(`${W} ╚══════╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝╚═╝${NC}`);
|
|
40
40
|
console.log('');
|
|
41
|
-
console.log(`${DIM}
|
|
41
|
+
console.log(`${DIM} Seu copiloto de inteligencia artificial${NC}`);
|
|
42
42
|
console.log(`${DIM} v${VERSION}${NC}`);
|
|
43
43
|
console.log('');
|
|
44
44
|
}
|
|
@@ -153,7 +153,7 @@ function cmdInstallGlobal() {
|
|
|
153
153
|
console.log(` ${GREEN}OK${NC} ${squad.name} (${squad.agents} agents)`);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
// Copy sinapse/
|
|
156
|
+
// Copy sinapse/ orqx squad
|
|
157
157
|
const sinapseMasterSrc = path.join(ROOT, 'sinapse');
|
|
158
158
|
const sinapseMasterDest = path.join(SINAPSE_HOME, 'sinapse');
|
|
159
159
|
if (fs.existsSync(sinapseMasterSrc)) {
|
|
@@ -191,13 +191,14 @@ function cmdInstallGlobal() {
|
|
|
191
191
|
console.log(` ${GREEN}OK${NC} Framework agents — ${cmdCount} agents`);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
// Generate commands for
|
|
194
|
+
// Generate commands only for orqx agents (user-facing orchestrators)
|
|
195
195
|
for (const squad of squads) {
|
|
196
196
|
const squadPath = `${sinapseBase}/${squad.name}`;
|
|
197
197
|
const agentsDir = path.join(SINAPSE_HOME, squad.name, 'agents');
|
|
198
198
|
if (!fs.existsSync(agentsDir)) continue;
|
|
199
199
|
|
|
200
|
-
|
|
200
|
+
const orqxAgents = fs.readdirSync(agentsDir).filter(f => f.endsWith('.md') && f.includes('-orqx'));
|
|
201
|
+
for (const file of orqxAgents) {
|
|
201
202
|
const agentId = file.replace('.md', '');
|
|
202
203
|
const meta = extractAgentMeta(path.join(agentsDir, file));
|
|
203
204
|
const cmdContent = generateCommandMd(agentId, meta.name, meta.icon, squad.name, squadPath, file);
|
|
@@ -206,7 +207,7 @@ function cmdInstallGlobal() {
|
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
209
|
|
|
209
|
-
// Generate commands for sinapse/
|
|
210
|
+
// Generate commands for sinapse/ orqx squad agents
|
|
210
211
|
if (fs.existsSync(sinapseMasterDest)) {
|
|
211
212
|
const masterAgentsDir = path.join(sinapseMasterDest, 'agents');
|
|
212
213
|
if (fs.existsSync(masterAgentsDir)) {
|
|
@@ -579,7 +580,7 @@ function cmdUpdateGlobal() {
|
|
|
579
580
|
if (fs.existsSync(sinapseMasterSrc)) {
|
|
580
581
|
rmDirSync(path.join(SINAPSE_HOME, 'sinapse'));
|
|
581
582
|
copyDirSync(sinapseMasterSrc, path.join(SINAPSE_HOME, 'sinapse'));
|
|
582
|
-
console.log(` ${GREEN}OK${NC} sinapse (
|
|
583
|
+
console.log(` ${GREEN}OK${NC} sinapse (orqx)`);
|
|
583
584
|
}
|
|
584
585
|
|
|
585
586
|
// Phase 2: Regenerate commands (reuse install logic)
|
|
@@ -601,21 +602,30 @@ function cmdUpdateGlobal() {
|
|
|
601
602
|
}
|
|
602
603
|
}
|
|
603
604
|
|
|
605
|
+
// Count total agents and generate orqx commands (skip if already copied from framework)
|
|
606
|
+
let totalAgents = 0;
|
|
604
607
|
for (const squad of squads) {
|
|
605
608
|
const agentsDir = path.join(SINAPSE_HOME, squad.name, 'agents');
|
|
606
609
|
if (!fs.existsSync(agentsDir)) continue;
|
|
607
|
-
|
|
610
|
+
const allAgents = fs.readdirSync(agentsDir).filter(f => f.endsWith('.md'));
|
|
611
|
+
totalAgents += allAgents.length;
|
|
612
|
+
const orqxAgents = allAgents.filter(f => f.includes('-orqx'));
|
|
613
|
+
for (const file of orqxAgents) {
|
|
614
|
+
const destPath = path.join(CLAUDE_COMMANDS_DIR, file);
|
|
615
|
+
if (fs.existsSync(destPath)) continue; // skip if already from framework
|
|
608
616
|
const agentId = file.replace('.md', '');
|
|
609
617
|
const meta = extractAgentMeta(path.join(agentsDir, file));
|
|
610
618
|
const squadPath = `${sinapseBase}/${squad.name}`;
|
|
611
|
-
fs.writeFileSync(
|
|
612
|
-
path.join(CLAUDE_COMMANDS_DIR, `${agentId}.md`),
|
|
613
|
-
generateCommandMd(agentId, meta.name, meta.icon, squad.name, squadPath, file)
|
|
614
|
-
);
|
|
619
|
+
fs.writeFileSync(destPath, generateCommandMd(agentId, meta.name, meta.icon, squad.name, squadPath, file));
|
|
615
620
|
cmdCount++;
|
|
616
621
|
}
|
|
617
622
|
}
|
|
618
|
-
|
|
623
|
+
// Also count sinapse/ orqx agents
|
|
624
|
+
const sinapseAgentsDir = path.join(SINAPSE_HOME, 'sinapse', 'agents');
|
|
625
|
+
if (fs.existsSync(sinapseAgentsDir)) {
|
|
626
|
+
totalAgents += fs.readdirSync(sinapseAgentsDir).filter(f => f.endsWith('.md')).length;
|
|
627
|
+
}
|
|
628
|
+
console.log(` ${GREEN}OK${NC} ${cmdCount} command files (${totalAgents} agents total)`);
|
|
619
629
|
|
|
620
630
|
// Phase 3: Regenerate awareness
|
|
621
631
|
console.log(`\n${CYAN}Phase 3:${NC} Updating squad-awareness`);
|
|
@@ -630,7 +640,7 @@ function cmdUpdateGlobal() {
|
|
|
630
640
|
meta.commands = cmdCount;
|
|
631
641
|
fs.writeFileSync(metaPath, JSON.stringify(meta, null, 2));
|
|
632
642
|
|
|
633
|
-
console.log(`\n${GREEN}Update complete!${NC} ${squads.length} squads | ${cmdCount}
|
|
643
|
+
console.log(`\n${GREEN}Update complete!${NC} ${squads.length} squads | ${totalAgents} agents | ${cmdCount} orqx commands\n`);
|
|
634
644
|
}
|
|
635
645
|
|
|
636
646
|
// ── Uninstall ────────────────────────────────────────────────────────────────
|