arsenal-agent 0.2.2 → 0.2.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/dist/setup.js +53 -2
- package/package.json +1 -1
- package/src/setup.ts +54 -2
package/dist/setup.js
CHANGED
|
@@ -32,9 +32,60 @@ export function setupBrain() {
|
|
|
32
32
|
run(`cp ${BRAIN_DIR}/agents/*.md ${CLAUDE_DIR}/agents/ 2>/dev/null || true`);
|
|
33
33
|
run(`cp ${BRAIN_DIR}/agents/*.py ${ARSENAL_DIR}/agents/ 2>/dev/null || true`);
|
|
34
34
|
run(`mkdir -p ${ARSENAL_DIR}/scripts && cp ${BRAIN_DIR}/scripts/claude-picker.sh ${ARSENAL_DIR}/scripts/ 2>/dev/null || true`);
|
|
35
|
-
step("
|
|
35
|
+
step("Clonando arsenal-figma-mcp...");
|
|
36
|
+
const figmaDir = join(HOME, "projetos", "arsenal", "git", "projects", "arsenal-figma-mcp");
|
|
37
|
+
if (existsSync(figmaDir)) {
|
|
38
|
+
run(`git -C ${figmaDir} pull --quiet`);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
run(`git clone https://github.com/dbezerra95/arsenal-figma-mcp.git ${figmaDir}`);
|
|
42
|
+
}
|
|
43
|
+
step("Copiando CLAUDE.md...");
|
|
36
44
|
run(`cp ${BRAIN_DIR}/CLAUDE.md ${CLAUDE_DIR}/CLAUDE.md`);
|
|
37
|
-
|
|
45
|
+
step("Gerando settings.json com MCPs...");
|
|
46
|
+
const settings = {
|
|
47
|
+
permissions: {
|
|
48
|
+
allow: [],
|
|
49
|
+
deny: [],
|
|
50
|
+
},
|
|
51
|
+
mcpServers: {
|
|
52
|
+
arsenal: {
|
|
53
|
+
type: "stdio",
|
|
54
|
+
command: join(HOME, "venv", "bin", "python3"),
|
|
55
|
+
args: [join(BRAIN_DIR, "arsenal-mcp", "server.py")],
|
|
56
|
+
description: "Arsenal de tools do Claude Code — busca, lista e instala skills, agents, commands, hooks e MCPs",
|
|
57
|
+
},
|
|
58
|
+
"opencode-delegate": {
|
|
59
|
+
type: "stdio",
|
|
60
|
+
command: join(HOME, "projetos", "arsenal", "venv", "bin", "python3"),
|
|
61
|
+
args: [join(HOME, "projetos", "arsenal", "agents", "opencode_delegate_mcp.py")],
|
|
62
|
+
description: "Delega tasks leves ao OpenCode com modelos free — economiza tokens do Claude para refactor, boilerplate, explicacoes simples",
|
|
63
|
+
},
|
|
64
|
+
figma: {
|
|
65
|
+
type: "stdio",
|
|
66
|
+
command: "python3",
|
|
67
|
+
args: [join(figmaDir, "server.py")],
|
|
68
|
+
description: "Figma MCP leve — acessa design com 60-75% menos tokens que o MCP oficial",
|
|
69
|
+
disabled: true,
|
|
70
|
+
},
|
|
71
|
+
"design-tool": {
|
|
72
|
+
type: "stdio",
|
|
73
|
+
command: "python3",
|
|
74
|
+
args: [join(HOME, "projetos", "arsenal", "projects", "design-tool", "backend", "mcp_server.py")],
|
|
75
|
+
description: "AI-native design tool local — requer backend: cd ~/projetos/arsenal/projects/design-tool && ./start.sh",
|
|
76
|
+
disabled: true,
|
|
77
|
+
},
|
|
78
|
+
docs: {
|
|
79
|
+
type: "stdio",
|
|
80
|
+
command: join(HOME, "venv", "bin", "python3"),
|
|
81
|
+
args: [join(HOME, "projetos", "arsenal", "docs-mcp", "server.py")],
|
|
82
|
+
env: { DOCS_DB_PATH: join(HOME, "projetos", "arsenal", "docs-mcp", "db", "docs.db") },
|
|
83
|
+
description: "Documentação técnica local — Python, Go, Rust, TypeScript, PostgreSQL e mais",
|
|
84
|
+
disabled: true,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
writeFileSync(join(CLAUDE_DIR, "settings.json"), JSON.stringify(settings, null, 2));
|
|
38
89
|
ok("claude-brain sincronizado");
|
|
39
90
|
}
|
|
40
91
|
// ── 2. opencode ──────────────────────────────────────────────────────────────
|
package/package.json
CHANGED
package/src/setup.ts
CHANGED
|
@@ -37,9 +37,61 @@ export function setupBrain() {
|
|
|
37
37
|
run(`cp ${BRAIN_DIR}/agents/*.py ${ARSENAL_DIR}/agents/ 2>/dev/null || true`)
|
|
38
38
|
run(`mkdir -p ${ARSENAL_DIR}/scripts && cp ${BRAIN_DIR}/scripts/claude-picker.sh ${ARSENAL_DIR}/scripts/ 2>/dev/null || true`)
|
|
39
39
|
|
|
40
|
-
step("
|
|
40
|
+
step("Clonando arsenal-figma-mcp...")
|
|
41
|
+
const figmaDir = join(HOME, "projetos", "arsenal", "git", "projects", "arsenal-figma-mcp")
|
|
42
|
+
if (existsSync(figmaDir)) {
|
|
43
|
+
run(`git -C ${figmaDir} pull --quiet`)
|
|
44
|
+
} else {
|
|
45
|
+
run(`git clone https://github.com/dbezerra95/arsenal-figma-mcp.git ${figmaDir}`)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
step("Copiando CLAUDE.md...")
|
|
41
49
|
run(`cp ${BRAIN_DIR}/CLAUDE.md ${CLAUDE_DIR}/CLAUDE.md`)
|
|
42
|
-
|
|
50
|
+
|
|
51
|
+
step("Gerando settings.json com MCPs...")
|
|
52
|
+
const settings = {
|
|
53
|
+
permissions: {
|
|
54
|
+
allow: [],
|
|
55
|
+
deny: [],
|
|
56
|
+
},
|
|
57
|
+
mcpServers: {
|
|
58
|
+
arsenal: {
|
|
59
|
+
type: "stdio",
|
|
60
|
+
command: join(HOME, "venv", "bin", "python3"),
|
|
61
|
+
args: [join(BRAIN_DIR, "arsenal-mcp", "server.py")],
|
|
62
|
+
description: "Arsenal de tools do Claude Code — busca, lista e instala skills, agents, commands, hooks e MCPs",
|
|
63
|
+
},
|
|
64
|
+
"opencode-delegate": {
|
|
65
|
+
type: "stdio",
|
|
66
|
+
command: join(HOME, "projetos", "arsenal", "venv", "bin", "python3"),
|
|
67
|
+
args: [join(HOME, "projetos", "arsenal", "agents", "opencode_delegate_mcp.py")],
|
|
68
|
+
description: "Delega tasks leves ao OpenCode com modelos free — economiza tokens do Claude para refactor, boilerplate, explicacoes simples",
|
|
69
|
+
},
|
|
70
|
+
figma: {
|
|
71
|
+
type: "stdio",
|
|
72
|
+
command: "python3",
|
|
73
|
+
args: [join(figmaDir, "server.py")],
|
|
74
|
+
description: "Figma MCP leve — acessa design com 60-75% menos tokens que o MCP oficial",
|
|
75
|
+
disabled: true,
|
|
76
|
+
},
|
|
77
|
+
"design-tool": {
|
|
78
|
+
type: "stdio",
|
|
79
|
+
command: "python3",
|
|
80
|
+
args: [join(HOME, "projetos", "arsenal", "projects", "design-tool", "backend", "mcp_server.py")],
|
|
81
|
+
description: "AI-native design tool local — requer backend: cd ~/projetos/arsenal/projects/design-tool && ./start.sh",
|
|
82
|
+
disabled: true,
|
|
83
|
+
},
|
|
84
|
+
docs: {
|
|
85
|
+
type: "stdio",
|
|
86
|
+
command: join(HOME, "venv", "bin", "python3"),
|
|
87
|
+
args: [join(HOME, "projetos", "arsenal", "docs-mcp", "server.py")],
|
|
88
|
+
env: { DOCS_DB_PATH: join(HOME, "projetos", "arsenal", "docs-mcp", "db", "docs.db") },
|
|
89
|
+
description: "Documentação técnica local — Python, Go, Rust, TypeScript, PostgreSQL e mais",
|
|
90
|
+
disabled: true,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
}
|
|
94
|
+
writeFileSync(join(CLAUDE_DIR, "settings.json"), JSON.stringify(settings, null, 2))
|
|
43
95
|
ok("claude-brain sincronizado")
|
|
44
96
|
}
|
|
45
97
|
|