@bookedsolid/reagent 0.3.0 → 0.4.0
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/README.md +163 -82
- package/agents/ai-platforms/ai-anthropic-specialist.md +1 -1
- package/agents/ai-platforms/ai-fine-tuning-specialist.md +1 -1
- package/agents/ai-platforms/ai-gemini-specialist.md +1 -1
- package/agents/ai-platforms/ai-mcp-developer.md +1 -1
- package/agents/ai-platforms/ai-multi-modal-specialist.md +1 -1
- package/agents/ai-platforms/ai-open-source-models-specialist.md +1 -1
- package/agents/ai-platforms/ai-openai-specialist.md +1 -1
- package/agents/ai-platforms/ai-platform-strategist.md +1 -1
- package/agents/ai-platforms/ai-prompt-engineer.md +1 -1
- package/agents/ai-platforms/ai-rag-architect.md +1 -1
- package/agents/ai-platforms/ai-rea.md +2 -2
- package/agents/ai-platforms/ai-safety-reviewer.md +1 -1
- package/agents/engineering/accessibility-engineer.md +1 -1
- package/agents/engineering/aws-architect.md +1 -1
- package/agents/engineering/backend-engineer-payments.md +1 -1
- package/agents/engineering/backend-engineering-manager.md +1 -1
- package/agents/engineering/code-reviewer.md +1 -1
- package/agents/engineering/css3-animation-purist.md +1 -1
- package/agents/engineering/data-engineer.md +1 -1
- package/agents/engineering/database-architect.md +1 -1
- package/agents/engineering/design-system-developer.md +1 -1
- package/agents/engineering/design-systems-animator.md +1 -1
- package/agents/engineering/devops-engineer.md +1 -1
- package/agents/engineering/drupal-integration-specialist.md +1 -1
- package/agents/engineering/drupal-specialist.md +1 -1
- package/agents/engineering/engineering-manager-frontend.md +1 -1
- package/agents/engineering/frontend-specialist.md +1 -1
- package/agents/engineering/infrastructure-engineer.md +1 -1
- package/agents/engineering/lit-specialist.md +1 -1
- package/agents/engineering/migration-specialist.md +1 -1
- package/agents/engineering/ml-engineer.md +1 -1
- package/agents/engineering/mobile-engineer.md +1 -1
- package/agents/engineering/motion-designer-interactive.md +1 -1
- package/agents/engineering/nextjs-specialist.md +1 -1
- package/agents/engineering/open-source-specialist.md +1 -1
- package/agents/engineering/performance-engineer.md +1 -1
- package/agents/engineering/performance-qa-engineer.md +1 -1
- package/agents/engineering/pr-maintainer.md +1 -1
- package/agents/engineering/principal-engineer.md +1 -1
- package/agents/engineering/privacy-engineer.md +1 -1
- package/agents/engineering/qa-engineer.md +1 -1
- package/agents/engineering/security-engineer.md +1 -1
- package/agents/engineering/security-qa-engineer.md +1 -1
- package/agents/engineering/senior-backend-engineer.md +1 -1
- package/agents/engineering/senior-database-engineer.md +1 -1
- package/agents/engineering/senior-frontend-engineer.md +1 -1
- package/agents/engineering/senior-product-manager-platform.md +1 -1
- package/agents/engineering/senior-technical-project-manager.md +1 -1
- package/agents/engineering/site-reliability-engineer-2.md +1 -1
- package/agents/engineering/solutions-architect.md +1 -1
- package/agents/engineering/sre-lead.md +1 -1
- package/agents/engineering/staff-engineer-platform.md +1 -1
- package/agents/engineering/staff-software-engineer.md +1 -1
- package/agents/engineering/storybook-specialist.md +1 -1
- package/agents/engineering/supabase-specialist.md +1 -1
- package/agents/engineering/technical-project-manager.md +1 -1
- package/agents/engineering/technical-writer.md +1 -1
- package/agents/engineering/test-architect.md +1 -1
- package/agents/engineering/typescript-specialist.md +1 -1
- package/agents/engineering/ux-researcher.md +1 -1
- package/agents/engineering/vp-engineering.md +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +52 -3
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/config/gateway-config.d.ts.map +1 -1
- package/dist/config/gateway-config.js +5 -1
- package/dist/config/gateway-config.js.map +1 -1
- package/dist/config/policy-loader.d.ts.map +1 -1
- package/dist/config/policy-loader.js +15 -1
- package/dist/config/policy-loader.js.map +1 -1
- package/dist/config/tier-map.d.ts +1 -1
- package/dist/config/tier-map.d.ts.map +1 -1
- package/dist/config/tier-map.js +38 -5
- package/dist/config/tier-map.js.map +1 -1
- package/dist/gateway/client-manager.d.ts.map +1 -1
- package/dist/gateway/client-manager.js +9 -3
- package/dist/gateway/client-manager.js.map +1 -1
- package/dist/gateway/middleware/audit.d.ts +2 -1
- package/dist/gateway/middleware/audit.d.ts.map +1 -1
- package/dist/gateway/middleware/audit.js +57 -46
- package/dist/gateway/middleware/audit.js.map +1 -1
- package/dist/gateway/middleware/blocked-paths.d.ts +13 -0
- package/dist/gateway/middleware/blocked-paths.d.ts.map +1 -0
- package/dist/gateway/middleware/blocked-paths.js +118 -0
- package/dist/gateway/middleware/blocked-paths.js.map +1 -0
- package/dist/gateway/middleware/policy.d.ts +3 -1
- package/dist/gateway/middleware/policy.d.ts.map +1 -1
- package/dist/gateway/middleware/policy.js +22 -3
- package/dist/gateway/middleware/policy.js.map +1 -1
- package/dist/gateway/middleware/redact.d.ts.map +1 -1
- package/dist/gateway/middleware/redact.js +18 -5
- package/dist/gateway/middleware/redact.js.map +1 -1
- package/dist/gateway/server.d.ts.map +1 -1
- package/dist/gateway/server.js +7 -4
- package/dist/gateway/server.js.map +1 -1
- package/dist/gateway/tool-proxy.d.ts.map +1 -1
- package/dist/gateway/tool-proxy.js +18 -6
- package/dist/gateway/tool-proxy.js.map +1 -1
- package/dist/types/enums.d.ts +0 -4
- package/dist/types/enums.d.ts.map +1 -1
- package/dist/types/enums.js +0 -5
- package/dist/types/enums.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/hooks/attribution-advisory.sh +1 -1
- package/hooks/dangerous-bash-interceptor.sh +1 -1
- package/hooks/env-file-protection.sh +1 -1
- package/hooks/secret-scanner.sh +1 -1
- package/package.json +16 -1
- package/profiles/bst-internal.json +1 -1
- package/templates/CLAUDE.md +14 -1
|
@@ -65,7 +65,7 @@ CONSTRAINTS:
|
|
|
65
65
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
66
66
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
67
67
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
68
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
68
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
69
69
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
70
70
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
71
71
|
|
|
@@ -73,7 +73,7 @@ CONSTRAINTS:
|
|
|
73
73
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
74
74
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
75
75
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
76
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
76
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
77
77
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
78
78
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
79
79
|
|
|
@@ -138,7 +138,7 @@ Discover the project's branching strategy from existing branches and configurati
|
|
|
138
138
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
139
139
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
140
140
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
141
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
141
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
142
142
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
143
143
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
144
144
|
|
|
@@ -202,7 +202,7 @@ CONSTRAINTS:
|
|
|
202
202
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
203
203
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
204
204
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
205
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
205
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
206
206
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
207
207
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
208
208
|
|
|
@@ -99,7 +99,7 @@ You are the Drupal specialist for this project. The team has deep Drupal roots a
|
|
|
99
99
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
100
100
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
101
101
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
102
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
102
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
103
103
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
104
104
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
105
105
|
|
|
@@ -109,7 +109,7 @@ You lead the frontend team to build beautiful, fast, accessible UIs.
|
|
|
109
109
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
110
110
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
111
111
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
112
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
112
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
113
113
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
114
114
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
115
115
|
|
|
@@ -54,7 +54,7 @@ Follow existing patterns in the codebase for:
|
|
|
54
54
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
55
55
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
56
56
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
57
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
57
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
58
58
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
59
59
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
60
60
|
|
|
@@ -50,7 +50,7 @@ Adapt your patterns to what the project actually uses.
|
|
|
50
50
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
51
51
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
52
52
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
53
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
53
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
54
54
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
55
55
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
56
56
|
|
|
@@ -57,7 +57,7 @@ Web components in SSR require special handling:
|
|
|
57
57
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
58
58
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
59
59
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
60
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
60
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
61
61
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
62
62
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
63
63
|
|
|
@@ -100,7 +100,7 @@ CREATE INDEX CONCURRENTLY idx_table_column
|
|
|
100
100
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
101
101
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
102
102
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
103
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
103
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
104
104
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
105
105
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
106
106
|
|
|
@@ -90,7 +90,7 @@ DON'T USE THIS AGENT FOR:
|
|
|
90
90
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
91
91
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
92
92
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
93
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
93
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
94
94
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
95
95
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
96
96
|
|
|
@@ -164,7 +164,7 @@ You are the Mobile Engineer Lead for this project. You lead mobile strategy, dev
|
|
|
164
164
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
165
165
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
166
166
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
167
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
167
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
168
168
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
169
169
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
170
170
|
|
|
@@ -91,7 +91,7 @@ You create motion that users remember.
|
|
|
91
91
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
92
92
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
93
93
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
94
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
94
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
95
95
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
96
96
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
97
97
|
|
|
@@ -119,7 +119,7 @@ export async function POST(request: NextRequest) {
|
|
|
119
119
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
120
120
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
121
121
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
122
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
122
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
123
123
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
124
124
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
125
125
|
|
|
@@ -82,7 +82,7 @@ You are the Open Source specialist for this project. You advise on OSS strategy,
|
|
|
82
82
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
83
83
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
84
84
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
85
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
85
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
86
86
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
87
87
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
88
88
|
|
|
@@ -78,7 +78,7 @@ Adapt your patterns to what the project actually uses.
|
|
|
78
78
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
79
79
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
80
80
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
81
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
81
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
82
82
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
83
83
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
84
84
|
|
|
@@ -90,7 +90,7 @@ DON'T USE THIS AGENT FOR:
|
|
|
90
90
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
91
91
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
92
92
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
93
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
93
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
94
94
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
95
95
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
96
96
|
|
|
@@ -66,7 +66,7 @@ git -C /path/to/.worktrees/branch-name merge origin/dev
|
|
|
66
66
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
67
67
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
68
68
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
69
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
69
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
70
70
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
71
71
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
72
72
|
|
|
@@ -71,7 +71,7 @@ Key integration challenge: Ensure all rendering strategies coexist correctly wit
|
|
|
71
71
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
72
72
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
73
73
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
74
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
74
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
75
75
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
76
76
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
77
77
|
|
|
@@ -84,7 +84,7 @@ DON'T USE THIS AGENT FOR:
|
|
|
84
84
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
85
85
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
86
86
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
87
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
87
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
88
88
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
89
89
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
90
90
|
|
|
@@ -149,7 +149,7 @@ it('dispatches click event when clicked', async () => {
|
|
|
149
149
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
150
150
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
151
151
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
152
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
152
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
153
153
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
154
154
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
155
155
|
|
|
@@ -122,7 +122,7 @@ Adapt your patterns to what the project actually uses.
|
|
|
122
122
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
123
123
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
124
124
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
125
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
125
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
126
126
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
127
127
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
128
128
|
|
|
@@ -83,7 +83,7 @@ DON'T USE THIS AGENT FOR:
|
|
|
83
83
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
84
84
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
85
85
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
86
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
86
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
87
87
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
88
88
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
89
89
|
|
|
@@ -291,7 +291,7 @@ When assigned backend work, you assess the domain (API, auth, data pipeline, med
|
|
|
291
291
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
292
292
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
293
293
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
294
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
294
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
295
295
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
296
296
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
297
297
|
|
|
@@ -43,7 +43,7 @@ You execute the Database Architect's vision with precision and reliability.
|
|
|
43
43
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
44
44
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
45
45
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
46
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
46
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
47
47
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
48
48
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
49
49
|
|
|
@@ -106,7 +106,7 @@ DON'T USE THIS AGENT FOR:
|
|
|
106
106
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
107
107
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
108
108
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
109
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
109
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
110
110
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
111
111
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
112
112
|
|
|
@@ -20,7 +20,7 @@ Core product/marketing role supporting growth and user experience.
|
|
|
20
20
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
21
21
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
22
22
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
23
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
23
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
24
24
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
25
25
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
26
26
|
|
|
@@ -42,7 +42,7 @@ You keep infrastructure projects on track.
|
|
|
42
42
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
43
43
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
44
44
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
45
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
45
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
46
46
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
47
47
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
48
48
|
|
|
@@ -43,7 +43,7 @@ You support the SRE Lead in maintaining 99.9%+ uptime.
|
|
|
43
43
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
44
44
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
45
45
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
46
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
46
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
47
47
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
48
48
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
49
49
|
|
|
@@ -59,7 +59,7 @@ When evaluating technology:
|
|
|
59
59
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
60
60
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
61
61
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
62
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
62
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
63
63
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
64
64
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
65
65
|
|
|
@@ -114,7 +114,7 @@ You are the guardian of platform reliability.
|
|
|
114
114
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
115
115
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
116
116
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
117
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
117
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
118
118
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
119
119
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
120
120
|
|
|
@@ -219,7 +219,7 @@ Every system you design supports the project's users. Every standard you set pro
|
|
|
219
219
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
220
220
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
221
221
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
222
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
222
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
223
223
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
224
224
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
225
225
|
|
|
@@ -51,7 +51,7 @@ CONSTRAINTS:
|
|
|
51
51
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
52
52
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
53
53
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
54
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
54
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
55
55
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
56
56
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
57
57
|
|
|
@@ -133,7 +133,7 @@ CONSTRAINTS:
|
|
|
133
133
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
134
134
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
135
135
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
136
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
136
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
137
137
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
138
138
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
139
139
|
|
|
@@ -86,7 +86,7 @@ const channel = supabase
|
|
|
86
86
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
87
87
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
88
88
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
89
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
89
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
90
90
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
91
91
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
92
92
|
|
|
@@ -41,7 +41,7 @@ You ensure product features ship on time and on quality.
|
|
|
41
41
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
42
42
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
43
43
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
44
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
44
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
45
45
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
46
46
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
47
47
|
|
|
@@ -120,7 +120,7 @@ Remember: You are creating authoritative reference documentation. Every page mus
|
|
|
120
120
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
121
121
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
122
122
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
123
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
123
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
124
124
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
125
125
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
126
126
|
|
|
@@ -84,7 +84,7 @@ CONSTRAINTS:
|
|
|
84
84
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
85
85
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
86
86
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
87
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
87
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
88
88
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
89
89
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
90
90
|
|
|
@@ -84,7 +84,7 @@ declare namespace astroHTML.JSX {
|
|
|
84
84
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
85
85
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
86
86
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
87
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
87
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
88
88
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
89
89
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
90
90
|
|
|
@@ -26,7 +26,7 @@ UX Researcher, reporting to Senior Product Designer.
|
|
|
26
26
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
27
27
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
28
28
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
29
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
29
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
30
30
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
31
31
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
32
32
|
|
|
@@ -63,7 +63,7 @@ Every deliverable must pass ALL gates before merge:
|
|
|
63
63
|
2. **Never trust LLM memory** — Verify current state via tools, git, and file reads. Programmatic project memory (`.claude/MEMORY.md`, `.reagent/`) is OK
|
|
64
64
|
3. **Verify before claiming** — Check actual state (build output, test results, git status) before reporting status
|
|
65
65
|
4. **Validate dependencies** — Verify packages exist (`npm view`) before installing; check version compatibility
|
|
66
|
-
5. **Graduated autonomy** — Respect reagent L0-
|
|
66
|
+
5. **Graduated autonomy** — Respect reagent L0-L3 levels from `.reagent/policy.yaml`
|
|
67
67
|
6. **HALT compliance** — Check `.reagent/HALT` before any action; if present, stop immediately
|
|
68
68
|
7. **Audit awareness** — All tool invocations may be logged; behave as if every action is observed
|
|
69
69
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init.ts"],"names":[],"mappings":"AASA,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init.ts"],"names":[],"mappings":"AASA,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CA0H5C"}
|
|
@@ -62,9 +62,11 @@ export function runInit(args) {
|
|
|
62
62
|
}
|
|
63
63
|
// Step 8: Policy
|
|
64
64
|
results.push(...installPolicy(targetDir, profileName, profile, dryRun));
|
|
65
|
-
// Step 9:
|
|
65
|
+
// Step 9: Gateway config
|
|
66
|
+
results.push(...installGatewayConfig(targetDir, dryRun));
|
|
67
|
+
// Step 10: Agent team
|
|
66
68
|
results.push(...installAgents(targetDir, dryRun));
|
|
67
|
-
// Step
|
|
69
|
+
// Step 11: Claude commands
|
|
68
70
|
results.push(...installClaudeCommands(targetDir, dryRun));
|
|
69
71
|
// Summary
|
|
70
72
|
console.log('');
|
|
@@ -91,7 +93,7 @@ export function runInit(args) {
|
|
|
91
93
|
if (!dryRun) {
|
|
92
94
|
console.log('\n✓ reagent init complete');
|
|
93
95
|
console.log('\nCommit these files (safe to commit):');
|
|
94
|
-
console.log(' git add .cursor/rules/ .husky/ .claude/commands/ CLAUDE.md .reagent/policy.yaml && git commit -m "chore: add reagent zero-trust config"');
|
|
96
|
+
console.log(' git add .cursor/rules/ .husky/ .claude/commands/ CLAUDE.md .reagent/policy.yaml .reagent/gateway.yaml && git commit -m "chore: add reagent zero-trust config"');
|
|
95
97
|
console.log('');
|
|
96
98
|
console.log('Do NOT commit (gitignored — stays on your machine):');
|
|
97
99
|
console.log(' .claude/hooks/');
|
|
@@ -369,6 +371,53 @@ notification_channel: ""
|
|
|
369
371
|
}
|
|
370
372
|
return [{ file: '.reagent/policy.yaml', status: 'installed' }];
|
|
371
373
|
}
|
|
374
|
+
function installGatewayConfig(targetDir, dryRun) {
|
|
375
|
+
const PKG_VERSION = getPkgVersion();
|
|
376
|
+
const reagentDir = path.join(targetDir, '.reagent');
|
|
377
|
+
const gatewayPath = path.join(reagentDir, 'gateway.yaml');
|
|
378
|
+
// Idempotent: skip if gateway.yaml already exists
|
|
379
|
+
if (fs.existsSync(gatewayPath)) {
|
|
380
|
+
return [{ file: '.reagent/gateway.yaml', status: 'skipped' }];
|
|
381
|
+
}
|
|
382
|
+
if (!dryRun) {
|
|
383
|
+
fs.mkdirSync(reagentDir, { recursive: true });
|
|
384
|
+
const content = `# .reagent/gateway.yaml — generated by @bookedsolid/reagent v${PKG_VERSION}
|
|
385
|
+
# Defines downstream MCP servers that reagent proxies through its middleware chain.
|
|
386
|
+
#
|
|
387
|
+
# Usage:
|
|
388
|
+
# reagent serve
|
|
389
|
+
#
|
|
390
|
+
# Each server entry spawns a child process and communicates over stdio MCP.
|
|
391
|
+
# Tool names are namespaced as: <server-name>__<tool-name>
|
|
392
|
+
#
|
|
393
|
+
# Tier classification (convention-based, overridable):
|
|
394
|
+
# read: get_*, list_*, search_*, query_*, read_*, fetch_*, check_*, health_*, describe_*, show_*, count_*
|
|
395
|
+
# destructive: delete_*, drop_*, purge_*, remove_*, destroy_*, ban_*, kick_*, revoke_*, truncate_*
|
|
396
|
+
# write: everything else (default)
|
|
397
|
+
|
|
398
|
+
version: "1"
|
|
399
|
+
|
|
400
|
+
# To add a server, replace "servers: {}" with:
|
|
401
|
+
#
|
|
402
|
+
# servers:
|
|
403
|
+
# my-server:
|
|
404
|
+
# command: npx
|
|
405
|
+
# args: ['-y', 'my-mcp-server@latest']
|
|
406
|
+
# env:
|
|
407
|
+
# API_KEY: '\${MY_API_KEY}'
|
|
408
|
+
# tool_overrides:
|
|
409
|
+
# dangerous_action:
|
|
410
|
+
# tier: destructive
|
|
411
|
+
# admin_delete:
|
|
412
|
+
# tier: destructive
|
|
413
|
+
# blocked: true
|
|
414
|
+
|
|
415
|
+
servers: {}
|
|
416
|
+
`;
|
|
417
|
+
fs.writeFileSync(gatewayPath, content, 'utf8');
|
|
418
|
+
}
|
|
419
|
+
return [{ file: '.reagent/gateway.yaml', status: 'installed' }];
|
|
420
|
+
}
|
|
372
421
|
function installAgents(targetDir, dryRun) {
|
|
373
422
|
const agentsSrcDir = path.join(PKG_ROOT, 'agents');
|
|
374
423
|
const agentsDestDir = path.join(targetDir, '.claude', 'agents');
|