oneie 3.6.24 → 3.6.26
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/.claude/agents/agent-backend.md +2 -2
- package/.claude/agents/agent-builder.md +226 -198
- package/.claude/agents/agent-designer.md +167 -11
- package/.claude/agents/agent-director.md +180 -112
- package/.claude/agents/agent-frontend.md +154 -8
- package/.claude/agents/agent-onboard.md +1 -1
- package/.claude/agents/agent-ontology.md +2 -2
- package/.claude/agents/agent-ops.md +58 -38
- package/.claude/agents/agent-quality.md +377 -0
- package/.claude/agents/agent-sales.md +3 -3
- package/.claude/commands/cascade.md +21 -21
- package/.claude/commands/create.md +19 -19
- package/.claude/commands/deploy.md +82 -104
- package/.claude/commands/mcp-on.md +191 -0
- package/.claude/commands/one.md +267 -92
- package/.claude/commands/plan.md +17 -17
- package/.claude/commands/release.md +65 -14
- package/.claude/hooks/PULL-BEFORE-PUSH-GUIDE.md +473 -0
- package/.claude/hooks/README-knowledge-hooks.md +451 -0
- package/.claude/hooks/README-root-cleanup.md +200 -0
- package/.claude/hooks/README.md +284 -0
- package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/.claude/hooks/check-filenames.py +177 -0
- package/.claude/hooks/clean-post.py +468 -0
- package/.claude/hooks/clean-pre.py +393 -0
- package/.claude/hooks/clean-root-markdown.sh +73 -0
- package/.claude/hooks/commit-push.sh +95 -0
- package/.claude/hooks/done.py +236 -0
- package/.claude/hooks/format-hook.sh +163 -0
- package/.claude/hooks/hook-logger.sh +173 -0
- package/.claude/hooks/knowledge-post.py +355 -0
- package/.claude/hooks/knowledge-pre.py +245 -0
- package/.claude/hooks/mcp-on.sh +134 -0
- package/.claude/hooks/notification-hook.sh +279 -0
- package/.claude/hooks/push.sh +101 -0
- package/.claude/hooks/release-cli.sh +16 -8
- package/.claude/hooks/root-cleanup.py +217 -0
- package/.claude/hooks/security-hook.sh +397 -0
- package/.claude/hooks/tag-all-docs.py +464 -0
- package/.claude/hooks/test-validate-ontology.sh +170 -0
- package/.claude/hooks/todo.py +368 -0
- package/.claude/hooks/track-changes.sh +101 -0
- package/.claude/hooks/validate-ontology-structure-summary.md +243 -0
- package/.claude/hooks/validate-ontology-structure.py +518 -0
- package/.claude/skills/INDEX.md +1 -1
- package/.claude/skills/ontology/README.md +1 -1
- package/CLAUDE.md +105 -0
- package/dist/commands/agent.d.ts +18 -0
- package/dist/commands/agent.d.ts.map +1 -0
- package/dist/commands/agent.js +271 -0
- package/dist/commands/agent.js.map +1 -0
- package/dist/commands/init.js +1 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/agent-detection.d.ts +19 -0
- package/dist/lib/agent-detection.d.ts.map +1 -0
- package/dist/lib/agent-detection.js +87 -0
- package/dist/lib/agent-detection.js.map +1 -0
- package/dist/lib/detect.d.ts +45 -0
- package/dist/lib/detect.d.ts.map +1 -0
- package/dist/lib/detect.js +221 -0
- package/dist/lib/detect.js.map +1 -0
- package/llms.txt +257 -0
- package/one/knowledge/games-english.md +691 -0
- package/one/knowledge/games.md +1082 -0
- package/one/things/plans/npx-agent-safety.md +785 -0
- package/one/things/plans/npx-agent.md +1089 -0
- package/one/things/plans/remove-backend-development-from-agents.md +1331 -0
- package/package.json +3 -2
- package/.claude/commands/mcp-toggle.md +0 -93
- package/.claude/commands/npx.md +0 -84
|
@@ -1,98 +1,72 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: Bash(*), Read(*), Edit(*)
|
|
3
|
-
description: Deploy web to Cloudflare Pages
|
|
3
|
+
description: Deploy web to Cloudflare Pages (oneie project)
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# /deploy - Deploy
|
|
6
|
+
# /deploy - Deploy Web to Cloudflare Pages
|
|
7
7
|
|
|
8
|
-
**Purpose:** Build and deploy
|
|
8
|
+
**Purpose:** Build and deploy the web application to Cloudflare Pages using wrangler CLI.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## One-Command Deployment
|
|
11
11
|
|
|
12
|
-
- **oneie/** → https://one.ie (production site - source of truth)
|
|
13
|
-
- **web/** → https://web.one.ie (starter template - AUTO-GENERATED)
|
|
14
|
-
|
|
15
|
-
## Quick Deploy
|
|
16
|
-
|
|
17
|
-
**Deploy Production Site (oneie):**
|
|
18
12
|
```bash
|
|
19
|
-
|
|
13
|
+
cd /Users/toc/Server/ONE/web && bun run build && wrangler pages deploy dist --project-name=oneie
|
|
20
14
|
```
|
|
21
15
|
|
|
22
|
-
**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
**What happens:**
|
|
17
|
+
1. ✅ Build production bundle with Astro + React 19 edge support
|
|
18
|
+
2. ✅ Deploy `/web/dist/` to Cloudflare Pages `oneie` project
|
|
19
|
+
3. ✅ Automatic global CDN distribution
|
|
20
|
+
4. ✅ Live URL generated instantly
|
|
26
21
|
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
./scripts/deploy-oneie.sh && ./scripts/deploy-web.sh
|
|
30
|
-
```
|
|
22
|
+
## Deployment URL
|
|
31
23
|
|
|
32
|
-
|
|
24
|
+
After deployment completes, the site is live at:
|
|
25
|
+
- **Primary:** https://oneie.pages.dev
|
|
26
|
+
- **With subdomain:** https://[deployment-hash].oneie.pages.dev
|
|
33
27
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
4. Deploy to Cloudflare Pages using wrangler
|
|
39
|
-
5. Report deployment URL and status
|
|
40
|
-
|
|
41
|
-
**Deployment Flow:**
|
|
42
|
-
1. Check credentials (CLOUDFLARE_GLOBAL_API_KEY, CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_EMAIL)
|
|
43
|
-
2. Build site with React 19 edge support
|
|
44
|
-
3. Clear CLOUDFLARE_API_TOKEN (avoid conflicts)
|
|
45
|
-
4. Export required credentials
|
|
46
|
-
5. Deploy via wrangler
|
|
47
|
-
6. Confirm success
|
|
28
|
+
View all deployments:
|
|
29
|
+
```bash
|
|
30
|
+
wrangler pages deployment list --project-name=oneie
|
|
31
|
+
```
|
|
48
32
|
|
|
49
33
|
## Requirements
|
|
50
34
|
|
|
51
|
-
**Before deploying
|
|
52
|
-
- ✅
|
|
53
|
-
- ✅ Cloudflare
|
|
54
|
-
- ✅ Cloudflare
|
|
55
|
-
- ✅ React 19 edge alias
|
|
56
|
-
- ✅ Environment variables set in `wrangler.toml`
|
|
57
|
-
|
|
58
|
-
## Deployment URLs
|
|
59
|
-
|
|
60
|
-
**Production:**
|
|
61
|
-
- Primary: https://web.one.ie (custom domain)
|
|
62
|
-
- Cloudflare: https://web-d3d.pages.dev
|
|
63
|
-
|
|
64
|
-
**Preview:**
|
|
65
|
-
- Auto-generated: https://[commit-hash].web-d3d.pages.dev
|
|
66
|
-
|
|
67
|
-
## Environment Configuration
|
|
35
|
+
**Before deploying:**
|
|
36
|
+
- ✅ Wrangler CLI installed: `npm install -g wrangler`
|
|
37
|
+
- ✅ Cloudflare Global API Key: `$CLOUDFLARE_GLOBAL_API_KEY`
|
|
38
|
+
- ✅ Cloudflare Account ID: `$CLOUDFLARE_ACCOUNT_ID`
|
|
39
|
+
- ✅ React 19 edge alias configured in `astro.config.mjs`
|
|
68
40
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
ORG_FOLDER = "onegroup"
|
|
76
|
-
ONE_BACKEND = "on"
|
|
41
|
+
**Environment Setup:**
|
|
42
|
+
```bash
|
|
43
|
+
# Root .env must contain:
|
|
44
|
+
CLOUDFLARE_GLOBAL_API_KEY=your-api-key
|
|
45
|
+
CLOUDFLARE_ACCOUNT_ID=your-account-id
|
|
46
|
+
CLOUDFLARE_EMAIL=your-email@example.com
|
|
77
47
|
```
|
|
78
48
|
|
|
79
|
-
|
|
49
|
+
## How It Works
|
|
80
50
|
|
|
81
|
-
|
|
51
|
+
1. **Build Phase:** `bun run build`
|
|
52
|
+
- Compiles Astro + React 19 to static files + edge functions
|
|
53
|
+
- Outputs to `/web/dist/`
|
|
54
|
+
- Time: ~25-30 seconds
|
|
82
55
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
ONE_BACKEND = "off" # Frontend-only
|
|
89
|
-
```
|
|
56
|
+
2. **Deploy Phase:** `wrangler pages deploy dist --project-name=oneie`
|
|
57
|
+
- Uploads 600+ files to Cloudflare Pages
|
|
58
|
+
- Provisions edge runtime
|
|
59
|
+
- Propagates to 330+ global data centers
|
|
60
|
+
- Time: ~10-15 seconds
|
|
90
61
|
|
|
91
|
-
**
|
|
62
|
+
3. **Activation Phase:** Auto-live
|
|
63
|
+
- URL immediately accessible
|
|
64
|
+
- Cache warming across regions
|
|
65
|
+
- Real-time analytics enabled
|
|
92
66
|
|
|
93
|
-
## React 19 + Cloudflare Edge
|
|
67
|
+
## React 19 + Cloudflare Edge
|
|
94
68
|
|
|
95
|
-
**Critical:**
|
|
69
|
+
**Critical Config:** `astro.config.mjs` must have:
|
|
96
70
|
|
|
97
71
|
```javascript
|
|
98
72
|
resolve: {
|
|
@@ -104,58 +78,62 @@ resolve: {
|
|
|
104
78
|
|
|
105
79
|
Without this, deployment fails with `MessageChannel is not defined`.
|
|
106
80
|
|
|
107
|
-
##
|
|
81
|
+
## Troubleshooting
|
|
108
82
|
|
|
109
|
-
**Authentication
|
|
83
|
+
**Authentication Failed**
|
|
110
84
|
```bash
|
|
111
|
-
#
|
|
85
|
+
# Verify credentials are set:
|
|
112
86
|
echo $CLOUDFLARE_GLOBAL_API_KEY
|
|
113
87
|
echo $CLOUDFLARE_ACCOUNT_ID
|
|
114
88
|
echo $CLOUDFLARE_EMAIL
|
|
115
89
|
|
|
116
|
-
#
|
|
117
|
-
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
**MessageChannel error:**
|
|
121
|
-
```bash
|
|
122
|
-
# Fix: Add edge alias to astro.config.mjs
|
|
123
|
-
'react-dom/server': 'react-dom/server.edge'
|
|
90
|
+
# Check wrangler auth:
|
|
91
|
+
wrangler auth login
|
|
124
92
|
```
|
|
125
93
|
|
|
126
|
-
**Build
|
|
94
|
+
**Build Errors**
|
|
127
95
|
```bash
|
|
96
|
+
# Check Astro build:
|
|
128
97
|
cd web && bun run check
|
|
98
|
+
|
|
99
|
+
# View detailed errors:
|
|
100
|
+
cd web && bun run build --verbose
|
|
129
101
|
```
|
|
130
102
|
|
|
131
|
-
**
|
|
103
|
+
**Deploy Timeout**
|
|
132
104
|
```bash
|
|
133
|
-
#
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
CLOUDFLARE_EMAIL=...
|
|
105
|
+
# Retry deployment:
|
|
106
|
+
wrangler pages deploy dist --project-name=oneie
|
|
107
|
+
|
|
108
|
+
# Or use direct git integration for auto-deploy on push
|
|
138
109
|
```
|
|
139
110
|
|
|
140
|
-
##
|
|
111
|
+
## Rollback
|
|
141
112
|
|
|
142
|
-
|
|
113
|
+
To rollback to a previous deployment:
|
|
143
114
|
|
|
144
115
|
```bash
|
|
145
|
-
#
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
#
|
|
149
|
-
|
|
150
|
-
ORG_WEBSITE=https://acme.com
|
|
151
|
-
ONE_BACKEND=off
|
|
152
|
-
|
|
153
|
-
# 3. Deploy
|
|
154
|
-
cd web
|
|
155
|
-
bun run build
|
|
156
|
-
wrangler pages deploy dist --project-name=acme-web
|
|
116
|
+
# View deployment history
|
|
117
|
+
wrangler pages deployment list --project-name=oneie
|
|
118
|
+
|
|
119
|
+
# Promote previous deployment to production
|
|
120
|
+
wrangler pages deployments rollback --project-name=oneie
|
|
157
121
|
```
|
|
158
122
|
|
|
123
|
+
## Performance Metrics
|
|
124
|
+
|
|
125
|
+
**Typical Deployment:**
|
|
126
|
+
- Build time: 25-30s
|
|
127
|
+
- Upload time: 10-15s
|
|
128
|
+
- Total time: 35-45s
|
|
129
|
+
- Files deployed: 600+
|
|
130
|
+
- Global rollout: <2 minutes
|
|
131
|
+
|
|
132
|
+
**Monitoring:**
|
|
133
|
+
- View live logs: `wrangler pages tail --project-name=oneie`
|
|
134
|
+
- Check analytics: Cloudflare Dashboard → Pages → oneie
|
|
135
|
+
- Status page: https://www.cloudflarestatus.com
|
|
136
|
+
|
|
159
137
|
---
|
|
160
138
|
|
|
161
|
-
**
|
|
139
|
+
**Ready to deploy!** 🚀
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: Bash(.claude/hooks/mcp-on.sh:*)
|
|
3
|
+
description: Toggle MCP servers on/off to manage context tokens
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /mcp-on - MCP Server Management
|
|
7
|
+
|
|
8
|
+
**Purpose:** Enable/disable MCP (Model Context Protocol) servers to control context token usage.
|
|
9
|
+
|
|
10
|
+
## Quick Commands
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
# Check MCP status
|
|
14
|
+
./.claude/hooks/mcp-on.sh status
|
|
15
|
+
|
|
16
|
+
# Turn MCPs ON (all servers enabled)
|
|
17
|
+
./.claude/hooks/mcp-on.sh on
|
|
18
|
+
|
|
19
|
+
# Turn MCPs OFF (saves ~10k tokens)
|
|
20
|
+
./.claude/hooks/mcp-on.sh off
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## MCP Servers
|
|
24
|
+
|
|
25
|
+
**Available:**
|
|
26
|
+
- **shadcn** - Component registry (UI component access)
|
|
27
|
+
- **cloudflare-builds** - Cloudflare Workers build logs
|
|
28
|
+
- **cloudflare-observability** - Analytics & monitoring
|
|
29
|
+
- **cloudflare-docs** - Cloudflare API documentation
|
|
30
|
+
- **chrome-devtools** - Browser debugging & profiling
|
|
31
|
+
- **framelink-figma** - Figma design integration
|
|
32
|
+
- **astro-docs** - Astro framework documentation
|
|
33
|
+
- **stripe** - Stripe API integration
|
|
34
|
+
|
|
35
|
+
## Token Impact
|
|
36
|
+
|
|
37
|
+
**MCPs ON:** ~15k tokens
|
|
38
|
+
- Full access to all MCP tools
|
|
39
|
+
- For intensive development tasks
|
|
40
|
+
- Use when building/designing
|
|
41
|
+
|
|
42
|
+
**MCPs OFF:** ~10k tokens saved
|
|
43
|
+
- No MCP server access
|
|
44
|
+
- For general development
|
|
45
|
+
- Recommended for daily work
|
|
46
|
+
|
|
47
|
+
## Why Turn Off MCPs?
|
|
48
|
+
|
|
49
|
+
MCPs consume significant context tokens (~10k) even when not actively used. By turning them off:
|
|
50
|
+
|
|
51
|
+
1. **Save tokens:** ~10k context tokens freed per session
|
|
52
|
+
2. **Focus tools:** Only core tools available (Bash, Read, Edit, Grep, Glob)
|
|
53
|
+
3. **Faster inference:** Smaller context = faster response time
|
|
54
|
+
4. **Recommended default:** Turn off unless actively building features
|
|
55
|
+
|
|
56
|
+
## Usage Examples
|
|
57
|
+
|
|
58
|
+
### Daily Development (Recommended)
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Start of day: Turn MCPs off
|
|
62
|
+
./.claude/hooks/mcp-on.sh off
|
|
63
|
+
|
|
64
|
+
# Work on features using core tools only
|
|
65
|
+
# ... code ... commit ... push ...
|
|
66
|
+
|
|
67
|
+
# End of day: Optional - keep off
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Building Features (Agent-Frontend)
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
# Building UI components? Turn on for shadcn + chrome-devtools
|
|
74
|
+
./.claude/hooks/mcp-on.sh on
|
|
75
|
+
|
|
76
|
+
# Build components with full MCP access
|
|
77
|
+
# ... design ... test ... optimize ...
|
|
78
|
+
|
|
79
|
+
# When done: Turn off
|
|
80
|
+
./.claude/hooks/mcp-on.sh off
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Deploying to Cloudflare (Agent-Ops)
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Deploying? Turn on for cloudflare MCP access
|
|
87
|
+
./.claude/hooks/mcp-on.sh on
|
|
88
|
+
|
|
89
|
+
# Deploy with full Cloudflare tool access
|
|
90
|
+
/deploy
|
|
91
|
+
|
|
92
|
+
# When done: Turn off
|
|
93
|
+
./.claude/hooks/mcp-on.sh off
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Designing (Agent-Designer)
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
# Designing? Turn on for figma + chrome-devtools
|
|
100
|
+
./.claude/hooks/mcp-on.sh on
|
|
101
|
+
|
|
102
|
+
# Design with Figma integration and performance profiling
|
|
103
|
+
# ... design ... iterate ... measure ...
|
|
104
|
+
|
|
105
|
+
# When done: Turn off
|
|
106
|
+
./.claude/hooks/mcp-on.sh off
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Configuration Files
|
|
110
|
+
|
|
111
|
+
**Active configuration:** `.mcp.json`
|
|
112
|
+
- Enables all MCP servers
|
|
113
|
+
- `"disabled": false` for each server
|
|
114
|
+
|
|
115
|
+
**Disabled backup:** `.mcp.json.off`
|
|
116
|
+
- All servers marked disabled
|
|
117
|
+
- `"disabled": true` for each server
|
|
118
|
+
|
|
119
|
+
**Last enabled config:** `.mcp.json.on`
|
|
120
|
+
- Backed up when switching states
|
|
121
|
+
- Allows quick restoration
|
|
122
|
+
|
|
123
|
+
## How It Works
|
|
124
|
+
|
|
125
|
+
### Turn Off MCPs
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
./.claude/hooks/mcp-on.sh off
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
1. Backs up current `.mcp.json` to `.mcp.json.on`
|
|
132
|
+
2. Removes `.mcp.json` (disables all MCPs)
|
|
133
|
+
3. Freed tokens: ~10k (saved per session)
|
|
134
|
+
|
|
135
|
+
### Turn On MCPs
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
./.claude/hooks/mcp-on.sh on
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
1. Copies `.mcp.json.off` to `.mcp.json`
|
|
142
|
+
2. Enables all servers (`disabled: false`)
|
|
143
|
+
3. Restores functionality: all MCPs available
|
|
144
|
+
|
|
145
|
+
### Check Status
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
./.claude/hooks/mcp-on.sh status
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Shows:
|
|
152
|
+
- Current MCP state (ON or OFF)
|
|
153
|
+
- Active/available servers
|
|
154
|
+
- Token usage impact
|
|
155
|
+
|
|
156
|
+
## After Toggling
|
|
157
|
+
|
|
158
|
+
**IMPORTANT:** Restart Claude Code after toggling MCPs
|
|
159
|
+
|
|
160
|
+
1. Run command: `./.claude/hooks/mcp-on.sh on` or `off`
|
|
161
|
+
2. See message: "Action Required: Restart Claude Code to apply"
|
|
162
|
+
3. Close Claude Code completely
|
|
163
|
+
4. Reopen Claude Code
|
|
164
|
+
5. New session will use new MCP configuration
|
|
165
|
+
|
|
166
|
+
## Recommendation
|
|
167
|
+
|
|
168
|
+
**Default: MCPs OFF**
|
|
169
|
+
|
|
170
|
+
- Turn off at start of day
|
|
171
|
+
- Turn on only when needed (building UI, deploying, designing)
|
|
172
|
+
- Turn off when done
|
|
173
|
+
- Saves tokens and speeds up inference
|
|
174
|
+
|
|
175
|
+
**When to turn ON:**
|
|
176
|
+
- Building UI components (agent-frontend)
|
|
177
|
+
- Deploying to Cloudflare (agent-ops)
|
|
178
|
+
- Designing with Figma (agent-designer)
|
|
179
|
+
- Performance profiling (chrome-devtools)
|
|
180
|
+
- Researching documentation
|
|
181
|
+
|
|
182
|
+
**When to keep OFF:**
|
|
183
|
+
- General development
|
|
184
|
+
- Writing business logic
|
|
185
|
+
- Refactoring code
|
|
186
|
+
- Testing
|
|
187
|
+
- Documentation
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
**Token-optimized development** 🚀
|