Skip to content

Commit 509c5a4

Browse files
committed
refactor(cloudflare): implement comprehensive McpAgent constraint system
- Add constraint-utils for access verification and regional URL detection - Implement new MCP agent with immutable constraint handling - Add comprehensive Makefile clean target for development workflow - Update architecture docs with constraint verification details - Simplify subpath constraints documentation for end users - Add test infrastructure and constraint utilities tests - Remove obsolete transport and documentation files - Update types and API client for proper constraint support This refactoring improves security by validating org/project access upfront and ensures constraints remain immutable throughout the DO lifecycle, addressing issues from the previous implementation.
1 parent cdd51a5 commit 509c5a4

22 files changed

Lines changed: 822 additions & 908 deletions

File tree

‎Makefile‎

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,37 @@
1-
.PHONY: setup-env
1+
.PHONY: setup-env clean
2+
3+
# Clean all generated files, caches, and dependencies
4+
clean:
5+
@echo "🧹 Cleaning build outputs, caches, and dependencies..."
6+
@echo ""
7+
8+
@# Remove all node_modules directories
9+
@echo "Removing node_modules..."
10+
@find . -name "node_modules" -type d -prune -exec rm -rf {} + 2>/dev/null || true
11+
12+
@# Remove all dist directories (build outputs)
13+
@echo "Removing dist directories..."
14+
@find . -name "dist" -type d -prune -exec rm -rf {} + 2>/dev/null || true
15+
16+
@# Remove all .turbo directories (turbo cache)
17+
@echo "Removing .turbo cache directories..."
18+
@find . -name ".turbo" -type d -prune -exec rm -rf {} + 2>/dev/null || true
19+
20+
@# Remove coverage directories
21+
@echo "Removing coverage directories..."
22+
@find . -name "coverage" -type d -prune -exec rm -rf {} + 2>/dev/null || true
23+
24+
@# Remove Cloudflare wrangler cache
25+
@echo "Removing .wrangler cache directories..."
26+
@find . -name ".wrangler" -type d -prune -exec rm -rf {} + 2>/dev/null || true
27+
28+
@# Remove pnpm store (optional - uncomment if you want to clean the global pnpm cache too)
29+
@# pnpm store prune
30+
31+
@echo ""
32+
@echo "✅ Clean complete!"
33+
@echo ""
34+
@echo "To reinstall dependencies, run: pnpm install"
235

336
# Set up environment files for local development
437
setup-env:

‎docs/cloudflare/constraint-flow-verification.md‎

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)