Skip to content

Commit 19703b9

Browse files
thiagofinchclaude
andcommitted
security: harden npm package + fix Layer 1 allowlist
- Remove L2-ONLY skills from package.json files whitelist (council, executor, finance-agent, gemini-fallback, jarvis-briefing, etc.) - Exclude voice_mapping.json from npm package (ElevenLabs voice IDs) - Exclude MANIFESTO/EXPLICACAO docs from npm package (Layer 3 only) - Replace broad boardroom/ and system/docs/ includes with specific file paths - Fix layer1-allowlist.txt: remove dead ref to layer-rules.yaml, add layer2-manifest.txt - Add scripts/filter-patterns.txt to .gitignore (security artifact) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2a12e96 commit 19703b9

File tree

4 files changed

+25
-24
lines changed

4 files changed

+25
-24
lines changed

.github/layer1-allowlist.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ README.md
2424
LICENSE
2525

2626
# === GITHUB CONFIG ===
27-
.github/layer-rules.yaml
2827
.github/layer1-allowlist.txt
28+
.github/layer2-manifest.txt
2929

3030
# === CLAUDE CODE INTEGRATION (structure only) ===
3131
.claude/CLAUDE.md

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ build/
230230
_audit.ps1
231231
npm-publish-error.log
232232

233+
# === SECURITY (filter-repo patterns, never commit) ===
234+
scripts/filter-patterns.txt
235+
233236
# === LARGE FILES ===
234237
**/SellTheAgency.com_Presentation.pdf
235238
*.docx

.npmignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ docs/prompts/
8282
# === VOICE MODULE (Layer 3 only, not for package) ===
8383
system/jarvis-voice/
8484

85+
# === VOICE MAPPING (contains ElevenLabs voice IDs) ===
86+
agents/boardroom/config/voice_mapping.json
87+
88+
# === COMPANY-SPECIFIC DOCS (Layer 3 only) ===
89+
system/docs/MEGA-BRAIN-MANIFESTO-COMPLETO.md
90+
system/docs/MOGA-BRAIN-EXPLICACAO-COMPLETA.md
91+
8592
# === IMPORT SCRIPTS WITH CREDENTIALS ===
8693
system/database/import-buyers.mjs
8794
system/database/import-buyers.sh

package.json

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,42 +18,21 @@
1818
".claude/skills/01-SKILL-DOCS-MEGABRAIN/",
1919
".claude/skills/02-SKILL-PYTHON-MEGABRAIN/",
2020
".claude/skills/03-SKILL-AGENT-CREATION/",
21-
".claude/skills/04-SKILL-KNOWLEDGE-EXTRACTION/",
22-
".claude/skills/05-SKILL-PIPELINE-JARVIS/",
2321
".claude/skills/06-SKILL-BRAINSTORMING/",
24-
".claude/skills/07-SKILL-DISPATCHING-PARALLEL-AGENTS/",
2522
".claude/skills/08-SKILL-EXECUTING-PLANS/",
2623
".claude/skills/09-SKILL-WRITING-PLANS/",
2724
".claude/skills/10-SKILL-VERIFICATION-BEFORE-COMPLETION/",
2825
".claude/skills/11-SKILL-USING-SUPERPOWERS/",
2926
".claude/skills/_TEMPLATES/",
30-
".claude/skills/chronicler/",
3127
".claude/skills/code-review/",
32-
".claude/skills/council/",
33-
".claude/skills/executor/",
34-
".claude/skills/fase-2-5-tagging/",
3528
".claude/skills/feature-dev/",
36-
".claude/skills/finance-agent/",
3729
".claude/skills/frontend-design/",
38-
".claude/skills/gdrive-transcription-downloader/",
39-
".claude/skills/gemini-fallback/",
4030
".claude/skills/gha/",
4131
".claude/skills/github-workflow/",
4232
".claude/skills/hookify/",
43-
".claude/skills/hybrid-source-reading/",
44-
".claude/skills/jarvis/",
45-
".claude/skills/jarvis-briefing/",
46-
".claude/skills/ler-planilha/",
4733
".claude/skills/plugin-dev/",
4834
".claude/skills/pr-review-toolkit/",
49-
".claude/skills/resume/",
50-
".claude/skills/save/",
5135
".claude/skills/skill-writer/",
52-
".claude/skills/smart-download-tagger/",
53-
".claude/skills/source-sync/",
54-
".claude/skills/sync-docs/",
55-
".claude/skills/talent-agent/",
56-
".claude/skills/verify/",
5736
".claude/skills/verify-6-levels/",
5837
".claude/skills/DETECTION-PROTOCOL.md",
5938
".claude/skills/README.md",
@@ -62,7 +41,15 @@
6241
".claude/templates/",
6342
".claude/scripts/",
6443
"agents/council/",
65-
"agents/boardroom/",
44+
"agents/boardroom/CHECKLIST-MASTER.md",
45+
"agents/boardroom/INTEGRATION-GUIDE.md",
46+
"agents/boardroom/README.md",
47+
"agents/boardroom/config/BOARDROOM-CONFIG.md",
48+
"agents/boardroom/config/TTS-INTEGRATION.md",
49+
"agents/boardroom/config/VOICE-PROFILES.md",
50+
"agents/boardroom/scripts/",
51+
"agents/boardroom/templates/",
52+
"agents/boardroom/workflows/",
6653
"agents/constitution/",
6754
"agents/protocols/",
6855
"agents/_templates/",
@@ -71,7 +58,11 @@
7158
"agents/sua-empresa/_example/",
7259
"system/protocols/",
7360
"system/database/",
74-
"system/docs/",
61+
"system/docs/HOOK-INSTALLATION.md",
62+
"system/docs/MEGA-BRAIN-DEMO-COMPLETA.md",
63+
"system/docs/STRATEGIC-INTEGRATION-GUIDE.md",
64+
"system/docs/architecture/",
65+
"system/docs/hooks/",
7566
"reference/",
7667
"integrations/",
7768
"inbox/.gitkeep",

0 commit comments

Comments
 (0)