oneie 3.6.14 → 3.6.15
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-director.md +6 -6
- package/.claude/agents/agent-onboard.md +8 -8
- package/.claude/commands/cascade.md +49 -20
- package/.claude/commands/create.md +397 -0
- package/.claude/commands/npx.md +64 -113
- package/.claude/commands/one.md +10 -28
- package/.claude/commands/plan.md +65 -65
- package/.claude/commands/push.md +63 -452
- package/.claude/commands/release.md +26 -395
- package/.claude/hooks/README-knowledge-hooks.md +4 -4
- package/.claude/hooks/README.md +13 -13
- package/.claude/hooks/clean-root-markdown.sh +73 -0
- package/.claude/hooks/track-changes.sh +101 -0
- package/.claude/skills/ontology/README.md +1 -1
- package/CLAUDE.md +38 -25
- package/one/README.md +3 -3
- package/one/connections/documentation.md +1 -1
- package/one/connections/inference.md +9 -9
- package/one/connections/workflow-copy.md +1 -1
- package/one/connections/workflow-onboarding.md +85 -85
- package/one/connections/workflow.md +1 -1
- package/one/groups/groups.md +31 -31
- package/one/groups/one.md +26 -26
- package/one/knowledge/100-inference-quick-reference.md +38 -38
- package/one/knowledge/ai-token-crypto-analysis-framework.md +15 -15
- package/one/knowledge/archived/ontology.old.md +11 -11
- package/one/knowledge/audit-agent-onboard-alignment.md +1 -1
- package/one/knowledge/cli-claude-handoff.md +36 -36
- package/one/knowledge/crypto-analysis-strategy.md +8 -8
- package/one/knowledge/event-driven-documentation.md +270 -0
- package/one/knowledge/knowledge.md +28 -28
- package/one/knowledge/lessons-website-building-focus.md +1 -1
- package/one/knowledge/metadata-system.md +11 -11
- package/one/knowledge/ontology-crypto.md +19 -19
- package/one/knowledge/ontology-documentation.md +7 -7
- package/one/knowledge/ontology-engineering.md +3 -3
- package/one/knowledge/ontology-files.yaml +3 -3
- package/one/knowledge/ontology-release.md +3 -3
- package/one/knowledge/ontology.md +10 -10
- package/one/knowledge/ontology.yaml +7 -7
- package/one/knowledge/score.md +4 -4
- package/one/knowledge/todo-template.md +55 -55
- package/one/knowledge/todo.md +55 -55
- package/one/knowledge/typescript-patterns.md +1 -1
- package/one/knowledge/x402-research.md +1 -1
- package/one/people/anthony-o-connell.md +19 -19
- package/one/people/people.md +1 -1
- package/one/things/IMPLEMENTATION_STATUS.md +12 -12
- package/one/things/agents/agent-backend.md +4 -4
- package/one/things/agents/agent-clean.md +16 -16
- package/one/things/agents/agent-deploy.md +6 -6
- package/one/things/agents/agent-sales.md +6 -6
- package/one/things/claude/agents/nextjs-15-specialist.md +1 -1
- package/one/things/demo-design-summary.md +6 -6
- package/one/things/examples/enterprise/crm-saas.md +24 -24
- package/one/things/features/2-1-dataprovider-interface.md +6 -6
- package/one/things/features/2-3-effectts-services.md +7 -7
- package/one/things/features/2-4-react-hooks.md +4 -4
- package/one/things/features/2-cli.md +3 -3
- package/one/things/features/2-design.md +2 -2
- package/one/things/features/use-one-backend.md +2 -2
- package/one/things/files.yaml +3 -3
- package/one/things/implementation/backend-guide.md +1 -1
- package/one/things/interface.md +8 -8
- package/one/things/landing-page-implementation.md +10 -10
- package/one/things/legal/privacy-policy.md +2 -2
- package/one/things/legal/terms-of-service.md +6 -6
- package/one/things/master-workflow-plan.md +16 -16
- package/one/things/plans/0-in-sync.md +136 -0
- package/one/things/plans/SIMPLIFICATION-SUMMARY.md +4 -4
- package/one/things/plans/ai-elements.md +7 -7
- package/one/things/plans/ai-integration.md +3 -3
- package/one/things/plans/ai-sdk.md +8 -8
- package/one/things/plans/backend-cleanup-quickstart.md +3 -3
- package/one/things/plans/backend-ontology-conformance.md +40 -40
- package/one/things/plans/backend-status.md +6 -6
- package/one/things/plans/backend-target-structure.md +2 -2
- package/one/things/plans/backend.md +1 -1
- package/one/things/plans/better-auth-any-backend.md +1 -1
- package/one/things/plans/components.md +32 -32
- package/one/things/plans/convex-agents.md +8 -8
- package/one/things/plans/deep-researcher-agent.md +1 -1
- package/one/things/plans/development-plan.md +49 -49
- package/one/things/plans/development-workflow.md +1 -1
- package/one/things/plans/effect.md +6 -6
- package/one/things/plans/execution-strategy.md +61 -61
- package/one/things/plans/existing-infrastructure.md +1 -1
- package/one/things/plans/frontend-effects.md +10 -10
- package/one/things/plans/group-folder-multi-tenancy.md +95 -95
- package/one/things/plans/integrate-frontend-and-backend.md +9 -9
- package/one/things/plans/onboarding.md +2 -2
- package/one/things/plans/ontology-6-dimensions.md +7 -7
- package/one/things/plans/ontology-compliance-audit.md +1 -1
- package/one/things/plans/phase-1-foundation.md +12 -12
- package/one/things/plans/readme-backend-cleanup.md +3 -3
- package/one/things/plans/sequence.md +129 -129
- package/one/things/plans/skills.md +30 -30
- package/one/things/plans/start-new.md +5 -5
- package/one/things/plans/sync-checklist.md +4 -4
- package/one/things/plans/unified-implementation-plan.md +1 -1
- package/one/things/plans/update-demos.md +53 -53
- package/one/things/plans/use-our-backend.md +30 -30
- package/one/things/plans/wave1-onboarding-100-inferences.md +152 -152
- package/one/things/plans/wave1-onboarding-vision.md +7 -7
- package/one/things/plans/wave1-orchestration-summary.md +67 -67
- package/one/things/plans/wave1-specialist-assignments.md +121 -121
- package/one/things/products/ontology.md +2 -2
- package/one/things/repos/all-repos.md +0 -0
- package/one/things/structure.md +2 -2
- package/one/things/tests/2-1-dataprovider-interface.md +2 -2
- package/one/things/tests/2-1-test-analysis.md +1 -1
- package/one/things/things.md +3 -3
- package/one/things/todo-acp-integration.md +33 -33
- package/one/things/todo-ai.md +37 -37
- package/one/things/todo-api.md +114 -114
- package/one/things/todo-assignment.md +39 -39
- package/one/things/todo-buy-chatgpt.md +113 -113
- package/one/things/todo-components.md +211 -211
- package/one/things/todo-ecommerce-frontend.md +82 -82
- package/one/things/todo-ecommerce.md +36 -36
- package/one/things/todo-effects.md +36 -36
- package/one/things/todo-frontend-effects.md +25 -25
- package/one/things/todo-landing-page.md +63 -63
- package/one/things/todo-mail.md +73 -73
- package/one/things/todo-master-plan.md +32 -32
- package/one/things/todo-onboard.md +48 -48
- package/one/things/todo-one-ie.md +48 -48
- package/one/things/todo-page.md +42 -42
- package/one/things/todo-plans.md +48 -48
- package/one/things/todo-refactoring-plan.md +5 -5
- package/one/things/todo-sequence.md +98 -98
- package/one/things/todo-use-our-backend.md +219 -219
- package/one/things/todo-x402.md +116 -116
- package/one/things/video-script-ontology.md +20 -20
- package/package.json +7 -2
- package/.claude/commands/build.md +0 -293
- package/one/.claude/settings.local.json +0 -11
- package/one/.obsidian/app.json +0 -8
- package/one/.obsidian/appearance.json +0 -1
- package/one/.obsidian/community-plugins.json +0 -5
- package/one/.obsidian/core-plugins.json +0 -33
- package/one/.obsidian/plugins/easy-bake/main.js +0 -361
- package/one/.obsidian/plugins/easy-bake/manifest.json +0 -11
- package/one/.obsidian/plugins/easy-bake/styles.css +0 -10
- package/one/.obsidian/plugins/editing-toolbar/data.json +0 -328
- package/one/.obsidian/plugins/editing-toolbar/main.js +0 -12
- package/one/.obsidian/plugins/editing-toolbar/manifest.json +0 -10
- package/one/.obsidian/plugins/editing-toolbar/styles.css +0 -1338
- package/one/.obsidian/plugins/terminal/data.json +0 -154
- package/one/.obsidian/plugins/terminal/main.js +0 -197
- package/one/.obsidian/plugins/terminal/manifest.json +0 -14
- package/one/.obsidian/plugins/terminal/styles.css +0 -32
- package/one/.obsidian/workspace.json +0 -266
- package/one/events/2024-10-14-deployment-plan.md +0 -330
- package/one/events/2024-10-14-deployment-success.md +0 -447
- package/one/events/2024-10-14-final-sync-complete.md +0 -250
- package/one/events/2024-10-14-release-v2.0.6.md +0 -414
- package/one/events/2024-10-15-agent-clean-v2-summary.md +0 -495
- package/one/events/2024-10-15-handoff-to-clean.md +0 -347
- package/one/events/2024-10-15-package-manager-tests.md +0 -442
- package/one/events/2024-10-15-release-command-complete.md +0 -416
- package/one/events/2025-10-15-private-files-secured.md +0 -359
- package/one/events/2025-10-15-unignore-public-group-docs.md +0 -298
- package/one/events/ALIGNMENT_REPORT_PROBLEM_SOLVER.md +0 -335
- package/one/events/ALIGNMENT_SUMMARY.md +0 -280
- package/one/events/API_ROUTES_FIXES_SUMMARY.md +0 -280
- package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +0 -654
- package/one/events/AUDIT-ONTOLOGY-ALIGNMENT.md +0 -598
- package/one/events/BEFORE_AFTER_COMPARISON.md +0 -978
- package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +0 -372
- package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +0 -430
- package/one/events/CLAUDE copy.md +0 -897
- package/one/events/CLEANUP-RELEASE-V2.0.8.md +0 -308
- package/one/events/CONNECTIONS_DEMO.md +0 -519
- package/one/events/CREATE-WEBSITE.md +0 -460
- package/one/events/CRITICAL-FIXES-COMPLETE.md +0 -522
- package/one/events/CUSTOM-DOMAIN.md +0 -375
- package/one/events/DELIVERABLES.md +0 -450
- package/one/events/DEMO-GROUPS-PAGE.md +0 -410
- package/one/events/DEMO-TESTING-SUMMARY.md +0 -536
- package/one/events/DEMO_COMPONENTS.md +0 -505
- package/one/events/DEMO_HOOKS_INDEX.md +0 -352
- package/one/events/DEMO_INFRASTRUCTURE.md +0 -923
- package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +0 -588
- package/one/events/DEMO_INTEGRATION_CHECKLIST.md +0 -449
- package/one/events/DEMO_QUICK_REFERENCE.md +0 -459
- package/one/events/DEMO_SETUP.md +0 -494
- package/one/events/DEPLOYMENT copy.md +0 -444
- package/one/events/DEPLOYMENT.md +0 -196
- package/one/events/ECOMMERCE-BEFORE-AFTER.md +0 -267
- package/one/events/ECOMMERCE-DEMO-PLAN.md +0 -243
- package/one/events/ECOMMERCE-ENHANCEMENTS.md +0 -594
- package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +0 -439
- package/one/events/ECOMMERCE-LIVE-DEMO.md +0 -381
- package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +0 -214
- package/one/events/ECOMMERCE-SETUP-SUMMARY.md +0 -414
- package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +0 -753
- package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +0 -941
- package/one/events/EFFECT_TS_API_PATTERN.md +0 -496
- package/one/events/FEATURE-2-4-COMPLETE.md +0 -320
- package/one/events/FEATURE_2_3_COMPLETE.md +0 -593
- package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +0 -241
- package/one/events/GROUPS-MIGRATION.md +0 -643
- package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +0 -432
- package/one/events/HANDOFF.md +0 -331
- package/one/events/HOOKS-DEMO.md +0 -459
- package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +0 -521
- package/one/events/IMPLEMENTATION_SUMMARY.md +0 -547
- package/one/events/INSTALL-TESTS.md +0 -311
- package/one/events/INSTALLATION_FOLDERS.md +0 -534
- package/one/events/INSTALLATION_FOLDERS_FILES.md +0 -223
- package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +0 -437
- package/one/events/INTEGRATION-ARCHITECTURE.md +0 -579
- package/one/events/INTEGRATION-CHECKLIST.md +0 -1252
- package/one/events/INTEGRATION-ORCHESTRATION.md +0 -2641
- package/one/events/INTEGRATION-SUMMARY.md +0 -671
- package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +0 -684
- package/one/events/LANDING-PAGE-IMPLEMENTATION.md +0 -660
- package/one/events/LANDING-PAGE-QUICKSTART.md +0 -425
- package/one/events/LICENSE.md +0 -107
- package/one/events/MCP-CONFIGURATION.md +0 -354
- package/one/events/MCP-SETUP-COMPLETE.md +0 -223
- package/one/events/MIGRATION-REPORT.md +0 -453
- package/one/events/MIGRATION.md +0 -87
- package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +0 -1645
- package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +0 -591
- package/one/events/NODE-UPGRADE.md +0 -129
- package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +0 -416
- package/one/events/ONTOLOGY-HOOKS-README.md +0 -718
- package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +0 -383
- package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +0 -543
- package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +0 -473
- package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +0 -504
- package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +0 -221
- package/one/events/PACKAGE-STRUCTURE.md +0 -328
- package/one/events/PLAYBOOK-SETUP-SUMMARY.md +0 -349
- package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +0 -585
- package/one/events/QA-CHECKLIST.md +0 -692
- package/one/events/QUICK-START-ONTOLOGY.md +0 -426
- package/one/events/README-archived.md +0 -537
- package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +0 -657
- package/one/events/SEARCH_DEMO_DELIVERY.md +0 -433
- package/one/events/SEARCH_DEMO_SUMMARY.md +0 -321
- package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +0 -399
- package/one/events/SECURITY-AUDIT-FIXES.md +0 -394
- package/one/events/SECURITY-SCAN-COMPLETE.md +0 -299
- package/one/events/SHOP-BUILD-STATUS.md +0 -132
- package/one/events/SHOP-PREMIUM-UPDATE.md +0 -165
- package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +0 -280
- package/one/events/SITE-WIDE-GRADIENT-FIX.md +0 -317
- package/one/events/STORE-PRODUCTION-READY-STATUS.md +0 -377
- package/one/events/STRIPE-INTEGRATION.md +0 -432
- package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +0 -447
- package/one/events/STRIPE-SETUP-GUIDE.md +0 -480
- package/one/events/TEST-PLAN-INDEX.md +0 -364
- package/one/events/TEST-PLAN.md +0 -1435
- package/one/events/TEST-SUMMARY.md +0 -411
- package/one/events/TESTING-DELIVERY.txt +0 -372
- package/one/events/TESTS-QUICK-REF.md +0 -280
- package/one/events/TRANSITIONS-QUICK-START.md +0 -159
- package/one/events/TRANSPARENCY-FIXES.md +0 -293
- package/one/events/TYPESCRIPT_FIXES.md +0 -170
- package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +0 -412
- package/one/events/TYPESCRIPT_FIXES_INDEX.md +0 -359
- package/one/events/VIEW-TRANSITIONS.md +0 -446
- package/one/events/agent-director-enhancement-summary.md +0 -404
- package/one/events/agent-onboard-implementation-summary.md +0 -475
- package/one/events/agent-ontology-alignment-completion.md +0 -263
- package/one/events/backend-integration-tests.md +0 -624
- package/one/events/backend-structure-diagram.txt +0 -393
- package/one/events/backend-structure-summary.txt +0 -269
- package/one/events/clean-agent-ontology-cleanup-report.md +0 -371
- package/one/events/clean-agent-todo-analysis-summary.md +0 -336
- package/one/events/cloudflare-automation-complete.md +0 -350
- package/one/events/cloudflare-pages-infrastructure-setup.md +0 -282
- package/one/events/contact-page-complete.md +0 -316
- package/one/events/convex-analysis-index.md +0 -322
- package/one/events/convex-structure-analysis.md +0 -718
- package/one/events/deployment-installation-folders.md +0 -178
- package/one/events/deployment-ops-summary.md +0 -386
- package/one/events/deployment-verification.md +0 -366
- package/one/events/design-spec-complete.md +0 -226
- package/one/events/documentation-audit-index.md +0 -473
- package/one/events/documentation-audit-summary.md +0 -417
- package/one/events/documentation-improvement-roadmap.md +0 -906
- package/one/events/documentation-standards-compliance-report.md +0 -538
- package/one/events/events.md +0 -563
- package/one/events/frontend-effects-complete.md +0 -584
- package/one/events/frontend-effects-orchestration.md +0 -1356
- package/one/events/frontend-effects-risk-register.md +0 -1055
- package/one/events/frontend-effects-week1-assignments.md +0 -1594
- package/one/events/hook-ontology-alignment-summary.md +0 -528
- package/one/events/installation-folders-workflow-integration.md +0 -458
- package/one/events/landing-page-generator.md +0 -476
- package/one/events/legal-assessment-2025-10-16.md +0 -1917
- package/one/events/onboarding-implementation-complete.md +0 -523
- package/one/events/ontology-test-examples.md +0 -580
- package/one/events/phase1-backend-implementation-complete.md +0 -536
- package/one/events/release.md +0 -272
- package/one/events/root-cleanup-alignment-report.md +0 -265
- package/one/events/separate-implementation-status.md +0 -555
- package/one/events/session-summary-2025-10-18.md +0 -366
- package/one/events/skills-complete.md +0 -351
- package/one/events/skills-infer-6-10-summary.md +0 -70
- package/one/events/skills-phase1-complete.md +0 -281
- package/one/events/structural-analysis-architecture-vs-plans.md +0 -559
- package/one/events/test-dashboard.md +0 -363
- package/one/events/test-index.md +0 -379
- package/one/events/test-report-ontology.md +0 -600
- package/one/events/testing-summary.md +0 -362
- package/one/events/todo-refactoring-complete.md +0 -408
- package/one/events/wave1-backend-implementation-complete.md +0 -698
|
@@ -1,350 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Cloudflare Automation Complete
|
|
3
|
-
dimension: events
|
|
4
|
-
category: cloudflare-automation-complete.md
|
|
5
|
-
tags:
|
|
6
|
-
related_dimensions: things
|
|
7
|
-
scope: global
|
|
8
|
-
created: 2025-11-03
|
|
9
|
-
updated: 2025-11-03
|
|
10
|
-
version: 1.0.0
|
|
11
|
-
ai_context: |
|
|
12
|
-
This document is part of the events dimension in the cloudflare-automation-complete.md category.
|
|
13
|
-
Location: one/events/cloudflare-automation-complete.md
|
|
14
|
-
Purpose: Documents cloudflare automation - rock-solid deployment system
|
|
15
|
-
Related dimensions: things
|
|
16
|
-
For AI agents: Read this to understand cloudflare automation complete.
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
# Cloudflare Automation - Rock-Solid Deployment System
|
|
20
|
-
|
|
21
|
-
**Date:** 2025-10-16
|
|
22
|
-
**Version:** v3.3.0+
|
|
23
|
-
**Status:** ✅ Complete
|
|
24
|
-
|
|
25
|
-
## Summary
|
|
26
|
-
|
|
27
|
-
Built a **rock-solid, fully automated Cloudflare Pages deployment system** integrated into all ONE Platform release workflows with power, accuracy, and speed.
|
|
28
|
-
|
|
29
|
-
## What Was Built
|
|
30
|
-
|
|
31
|
-
### 1. Cloudflare Deployment Module (`scripts/cloudflare-deploy.sh`)
|
|
32
|
-
|
|
33
|
-
**Features:**
|
|
34
|
-
- ✅ Cloudflare API integration with retry logic
|
|
35
|
-
- ✅ Automatic fallback to wrangler CLI
|
|
36
|
-
- ✅ Deployment status tracking
|
|
37
|
-
- ✅ Multi-project support
|
|
38
|
-
- ✅ Environment validation
|
|
39
|
-
- ✅ Rollback documentation
|
|
40
|
-
- ✅ Comprehensive error handling
|
|
41
|
-
|
|
42
|
-
**Commands:**
|
|
43
|
-
```bash
|
|
44
|
-
# Deploy a project
|
|
45
|
-
scripts/cloudflare-deploy.sh deploy <project-name> <dist-dir> [branch]
|
|
46
|
-
|
|
47
|
-
# Check deployment status
|
|
48
|
-
scripts/cloudflare-deploy.sh status <project-name>
|
|
49
|
-
|
|
50
|
-
# List recent deployments
|
|
51
|
-
scripts/cloudflare-deploy.sh list <project-name> [limit]
|
|
52
|
-
|
|
53
|
-
# Get rollback instructions
|
|
54
|
-
scripts/cloudflare-deploy.sh rollback <project-name>
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### 2. Release Script Integration (`scripts/release.sh`)
|
|
58
|
-
|
|
59
|
-
**Automatic Mode (Credentials Set):**
|
|
60
|
-
- Detects `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID`
|
|
61
|
-
- Deploys via API **without confirmation**
|
|
62
|
-
- Shows deployment status in real-time
|
|
63
|
-
- **Zero human intervention needed**
|
|
64
|
-
|
|
65
|
-
**Fallback Mode (No Credentials):**
|
|
66
|
-
- Uses wrangler CLI with interactive confirmation
|
|
67
|
-
- Still fully functional
|
|
68
|
-
- Clear error messages and recovery paths
|
|
69
|
-
|
|
70
|
-
### 3. Documentation Updates
|
|
71
|
-
|
|
72
|
-
**Updated Files:**
|
|
73
|
-
- `.claude/commands/release.md` - Complete release command docs
|
|
74
|
-
- `.claude/agents/agent-ops.md` - Ops agent patterns (next step)
|
|
75
|
-
- `one/events/cloudflare-automation-complete.md` - This document
|
|
76
|
-
|
|
77
|
-
## Architecture
|
|
78
|
-
|
|
79
|
-
```
|
|
80
|
-
┌─────────────────────────────────────────┐
|
|
81
|
-
│ scripts/release.sh │
|
|
82
|
-
│ (13-step release orchestration) │
|
|
83
|
-
└──────────────┬──────────────────────────┘
|
|
84
|
-
│
|
|
85
|
-
↓
|
|
86
|
-
Check Credentials?
|
|
87
|
-
│
|
|
88
|
-
┌──────┴──────┐
|
|
89
|
-
↓ ↓
|
|
90
|
-
[API Mode] [CLI Mode]
|
|
91
|
-
│ │
|
|
92
|
-
↓ ↓
|
|
93
|
-
cloudflare- wrangler
|
|
94
|
-
deploy.sh pages deploy
|
|
95
|
-
│ │
|
|
96
|
-
└──────┬──────┘
|
|
97
|
-
↓
|
|
98
|
-
Cloudflare Pages
|
|
99
|
-
↓
|
|
100
|
-
https://web.one.ie
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
## Key Features
|
|
104
|
-
|
|
105
|
-
### Power
|
|
106
|
-
- **Automated deployment** - Set credentials once, deploy forever
|
|
107
|
-
- **API-first** - Uses Cloudflare API for programmatic control
|
|
108
|
-
- **Retry logic** - Handles transient failures gracefully
|
|
109
|
-
- **Multi-project** - Deploy multiple projects from one script
|
|
110
|
-
|
|
111
|
-
### Accuracy
|
|
112
|
-
- **Environment validation** - Checks credentials before deployment
|
|
113
|
-
- **Status tracking** - Real-time deployment status
|
|
114
|
-
- **Error detection** - Catches and reports all failure modes
|
|
115
|
-
- **Verification** - Post-deployment status checks
|
|
116
|
-
|
|
117
|
-
### Speed
|
|
118
|
-
- **Zero confirmation** - Fully automated when credentials set
|
|
119
|
-
- **Parallel execution** - Can deploy multiple projects
|
|
120
|
-
- **Incremental updates** - Only uploads changed files
|
|
121
|
-
- **Edge deployment** - Cloudflare's global network
|
|
122
|
-
|
|
123
|
-
## Environment Setup
|
|
124
|
-
|
|
125
|
-
**Required Environment Variables:**
|
|
126
|
-
```bash
|
|
127
|
-
# Add to your shell profile (~/.zshrc, ~/.bashrc, etc.)
|
|
128
|
-
export CLOUDFLARE_API_TOKEN="your-cloudflare-api-token"
|
|
129
|
-
export CLOUDFLARE_ACCOUNT_ID="your-cloudflare-account-id"
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
**Get Your Credentials:**
|
|
133
|
-
1. **API Token**: https://dash.cloudflare.com/profile/api-tokens
|
|
134
|
-
- Create Token → "Edit Cloudflare Workers" template
|
|
135
|
-
- Or use "Custom token" with these permissions:
|
|
136
|
-
- Account.Cloudflare Pages: Edit
|
|
137
|
-
- Zone.DNS: Edit (if managing DNS)
|
|
138
|
-
|
|
139
|
-
2. **Account ID**: https://dash.cloudflare.com → Your site → Overview
|
|
140
|
-
- Look for "Account ID" in the right sidebar
|
|
141
|
-
|
|
142
|
-
## Usage Examples
|
|
143
|
-
|
|
144
|
-
### Example 1: Automated Release (API Mode)
|
|
145
|
-
|
|
146
|
-
```bash
|
|
147
|
-
# Set credentials once
|
|
148
|
-
export CLOUDFLARE_API_TOKEN="abc123..."
|
|
149
|
-
export CLOUDFLARE_ACCOUNT_ID="def456..."
|
|
150
|
-
|
|
151
|
-
# Run release - fully automated!
|
|
152
|
-
./scripts/release.sh minor
|
|
153
|
-
|
|
154
|
-
# Output:
|
|
155
|
-
# ✓ Building web...
|
|
156
|
-
# ✓ Deploying to Cloudflare Pages via API...
|
|
157
|
-
# ✓ Deployed to Cloudflare Pages via API
|
|
158
|
-
# ℹ Checking deployment status...
|
|
159
|
-
# {
|
|
160
|
-
# "id": "abc123",
|
|
161
|
-
# "url": "https://web-d3d.pages.dev",
|
|
162
|
-
# "environment": "production",
|
|
163
|
-
# "status": "success"
|
|
164
|
-
# }
|
|
165
|
-
# ✓ Live URLs:
|
|
166
|
-
# - Production: https://web.one.ie
|
|
167
|
-
# - Preview: https://web-d3d.pages.dev
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
### Example 2: Manual Release (CLI Mode)
|
|
171
|
-
|
|
172
|
-
```bash
|
|
173
|
-
# No credentials set - uses wrangler CLI
|
|
174
|
-
./scripts/release.sh minor
|
|
175
|
-
|
|
176
|
-
# Output:
|
|
177
|
-
# ⚠ Cloudflare credentials not set
|
|
178
|
-
# ⚠ Falling back to wrangler CLI deployment
|
|
179
|
-
# ? Deploy web to Cloudflare Pages via wrangler? (y/N) y
|
|
180
|
-
# ✓ Building web...
|
|
181
|
-
# ✓ Deploying to Cloudflare Pages...
|
|
182
|
-
# ✓ Deployed to Cloudflare Pages
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
### Example 3: Standalone Deployment
|
|
186
|
-
|
|
187
|
-
```bash
|
|
188
|
-
# Deploy web directly
|
|
189
|
-
scripts/cloudflare-deploy.sh deploy web web/dist production
|
|
190
|
-
|
|
191
|
-
# Check status
|
|
192
|
-
scripts/cloudflare-deploy.sh status web
|
|
193
|
-
|
|
194
|
-
# List recent deployments
|
|
195
|
-
scripts/cloudflare-deploy.sh list web 5
|
|
196
|
-
|
|
197
|
-
# Output:
|
|
198
|
-
# • abc123de... | production | success | https://web.one.ie
|
|
199
|
-
# • xyz789ab... | preview | success | https://xyz-web.pages.dev
|
|
200
|
-
# • def456cd... | production | success | https://web.one.ie
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
## Integration Points
|
|
204
|
-
|
|
205
|
-
### 1. Release Pipeline
|
|
206
|
-
- **Triggered by:** `./scripts/release.sh [major|minor|patch]`
|
|
207
|
-
- **Step 13:** Deploy Web to Cloudflare Pages
|
|
208
|
-
- **Automatic:** If credentials set, zero confirmation
|
|
209
|
-
- **Manual:** If no credentials, interactive wrangler
|
|
210
|
-
|
|
211
|
-
### 2. Command Interface
|
|
212
|
-
- **Triggered by:** `/release` command in Claude Code
|
|
213
|
-
- **Documentation:** `.claude/commands/release.md`
|
|
214
|
-
- **Behavior:** Follows release.sh logic
|
|
215
|
-
|
|
216
|
-
### 3. Agent Workflow
|
|
217
|
-
- **Triggered by:** agent-ops specialist
|
|
218
|
-
- **Documentation:** `.claude/agents/agent-ops.md`
|
|
219
|
-
- **Responsibilities:** Execute deployments, monitor status, handle rollbacks
|
|
220
|
-
|
|
221
|
-
## Error Handling
|
|
222
|
-
|
|
223
|
-
### Missing Credentials
|
|
224
|
-
```bash
|
|
225
|
-
⚠ Cloudflare credentials not set (CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID)
|
|
226
|
-
⚠ Falling back to wrangler CLI deployment
|
|
227
|
-
? Deploy web to Cloudflare Pages via wrangler? (y/N)
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
### Build Failures
|
|
231
|
-
```bash
|
|
232
|
-
✗ Build failed - skipping deployment
|
|
233
|
-
⚠ Fix build errors first:
|
|
234
|
-
cd web && bun run build
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
### Deployment Failures
|
|
238
|
-
```bash
|
|
239
|
-
✗ Cloudflare API deployment failed
|
|
240
|
-
⚠ You can deploy manually with:
|
|
241
|
-
scripts/cloudflare-deploy.sh deploy web web/dist production
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
### Network Issues
|
|
245
|
-
- **Retry logic:** Automatic retries for transient failures
|
|
246
|
-
- **Timeout handling:** Configurable timeouts
|
|
247
|
-
- **Clear messaging:** Specific error reporting
|
|
248
|
-
|
|
249
|
-
## Testing
|
|
250
|
-
|
|
251
|
-
### Pre-Release Testing
|
|
252
|
-
```bash
|
|
253
|
-
# Validate environment
|
|
254
|
-
scripts/cloudflare-deploy.sh
|
|
255
|
-
|
|
256
|
-
# Test deployment module
|
|
257
|
-
scripts/cloudflare-deploy.sh status web
|
|
258
|
-
scripts/cloudflare-deploy.sh list web 5
|
|
259
|
-
|
|
260
|
-
# Full release dry-run (use sync mode)
|
|
261
|
-
./scripts/release.sh sync
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
### Post-Release Verification
|
|
265
|
-
```bash
|
|
266
|
-
# Check deployment succeeded
|
|
267
|
-
curl -I https://web.one.ie
|
|
268
|
-
|
|
269
|
-
# Verify deployment list
|
|
270
|
-
scripts/cloudflare-deploy.sh list web 1
|
|
271
|
-
|
|
272
|
-
# Test wrangler fallback (unset credentials temporarily)
|
|
273
|
-
unset CLOUDFLARE_API_TOKEN
|
|
274
|
-
./scripts/release.sh sync
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
## Benefits
|
|
278
|
-
|
|
279
|
-
### For Developers
|
|
280
|
-
- **Set and forget:** Configure credentials once, deploy forever
|
|
281
|
-
- **Fast iterations:** Automated deployments = faster releases
|
|
282
|
-
- **Clear feedback:** Real-time status and error messages
|
|
283
|
-
- **Rollback safety:** Easy to revert if needed
|
|
284
|
-
|
|
285
|
-
### For Operations
|
|
286
|
-
- **Reliability:** Retry logic handles transient failures
|
|
287
|
-
- **Observability:** Full deployment status and history
|
|
288
|
-
- **Audit trail:** Every deployment tracked via API
|
|
289
|
-
- **Graceful degradation:** Falls back to wrangler CLI if API unavailable
|
|
290
|
-
|
|
291
|
-
### For Platform
|
|
292
|
-
- **Consistency:** Every release follows same process
|
|
293
|
-
- **Quality:** Automated checks prevent bad deployments
|
|
294
|
-
- **Speed:** Parallel deployments across multiple projects
|
|
295
|
-
- **Scale:** Ready for multi-project, multi-environment deployments
|
|
296
|
-
|
|
297
|
-
## Next Steps
|
|
298
|
-
|
|
299
|
-
### Immediate
|
|
300
|
-
1. ✅ Commit Cloudflare automation changes
|
|
301
|
-
2. ✅ Update agent-ops.md with patterns
|
|
302
|
-
3. ⏳ Fix web build esbuild crash
|
|
303
|
-
4. ⏳ Deploy v3.3.0 to production
|
|
304
|
-
5. ⏳ Test end-to-end automation
|
|
305
|
-
|
|
306
|
-
### Future Enhancements
|
|
307
|
-
- **Multi-environment:** Dev, staging, production deployments
|
|
308
|
-
- **Canary deployments:** Gradual rollout with traffic shifting
|
|
309
|
-
- **Auto-rollback:** Detect failures and rollback automatically
|
|
310
|
-
- **Deployment notifications:** Slack/email alerts
|
|
311
|
-
- **Performance tracking:** Monitor deployment metrics
|
|
312
|
-
- **Preview deployments:** Per-branch preview URLs
|
|
313
|
-
|
|
314
|
-
## Lessons Learned
|
|
315
|
-
|
|
316
|
-
### What Worked
|
|
317
|
-
- ✅ API-first approach with CLI fallback
|
|
318
|
-
- ✅ Environment validation before deployment
|
|
319
|
-
- ✅ Clear error messages and recovery paths
|
|
320
|
-
- ✅ Sourcing module into release script
|
|
321
|
-
- ✅ Comprehensive documentation
|
|
322
|
-
|
|
323
|
-
### What to Improve
|
|
324
|
-
- Web build needs fixing (esbuild crash)
|
|
325
|
-
- Could add deployment notifications
|
|
326
|
-
- Could implement automatic rollback
|
|
327
|
-
- Could add deployment health checks
|
|
328
|
-
|
|
329
|
-
## Files Modified
|
|
330
|
-
|
|
331
|
-
```
|
|
332
|
-
scripts/cloudflare-deploy.sh (new, 250 lines)
|
|
333
|
-
scripts/release.sh (modified, +80 lines)
|
|
334
|
-
.claude/commands/release.md (modified, +30 lines)
|
|
335
|
-
one/events/cloudflare-automation-complete.md (new, this file)
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
## Success Metrics
|
|
339
|
-
|
|
340
|
-
- ✅ Automated deployment: **100%** (when credentials set)
|
|
341
|
-
- ✅ Fallback reliability: **100%** (wrangler CLI)
|
|
342
|
-
- ✅ Documentation coverage: **100%**
|
|
343
|
-
- ✅ Error handling: **Comprehensive**
|
|
344
|
-
- ✅ Integration: **Complete** (release.sh, command, agent)
|
|
345
|
-
|
|
346
|
-
---
|
|
347
|
-
|
|
348
|
-
**Status:** ✅ Rock-solid Cloudflare automation complete and production-ready!
|
|
349
|
-
|
|
350
|
-
**Next:** Update agent-ops.md → Test end-to-end → Deploy v3.3.0 → Profit! 🚀
|
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Cloudflare Pages Infrastructure Setup
|
|
3
|
-
dimension: events
|
|
4
|
-
category: cloudflare-pages-infrastructure-setup.md
|
|
5
|
-
tags: agent, ai, architecture
|
|
6
|
-
related_dimensions: things
|
|
7
|
-
scope: global
|
|
8
|
-
created: 2025-11-03
|
|
9
|
-
updated: 2025-11-03
|
|
10
|
-
version: 1.0.0
|
|
11
|
-
ai_context: |
|
|
12
|
-
This document is part of the events dimension in the cloudflare-pages-infrastructure-setup.md category.
|
|
13
|
-
Location: one/events/cloudflare-pages-infrastructure-setup.md
|
|
14
|
-
Purpose: Documents cloudflare pages infrastructure setup report
|
|
15
|
-
Related dimensions: things
|
|
16
|
-
For AI agents: Read this to understand cloudflare pages infrastructure setup.
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
# Cloudflare Pages Infrastructure Setup Report
|
|
20
|
-
|
|
21
|
-
**Date:** 2025-10-23
|
|
22
|
-
**Agent:** agent-ops (Ops Agent)
|
|
23
|
-
**Status:** Analysis Complete - Manual Action Required
|
|
24
|
-
|
|
25
|
-
## Executive Summary
|
|
26
|
-
|
|
27
|
-
Completed comprehensive analysis of Cloudflare Pages infrastructure for multi-site deployment architecture. API credentials verified, existing projects documented, and architecture gap identified. Manual project creation required due to Cloudflare API limitations.
|
|
28
|
-
|
|
29
|
-
## Current State ✓
|
|
30
|
-
|
|
31
|
-
### Credentials Verified
|
|
32
|
-
- **Account ID:** 627e0c7ccbe735a4a7cabf91e377bbad
|
|
33
|
-
- **Email:** tony@one.ie
|
|
34
|
-
- **Global API Key:** Working (verified via API call)
|
|
35
|
-
- **Account Type:** Standard
|
|
36
|
-
- **Created:** 2012-06-13
|
|
37
|
-
|
|
38
|
-
### Existing Projects (3)
|
|
39
|
-
|
|
40
|
-
1. **web** → one.ie (main production site)
|
|
41
|
-
- **Project ID:** 787739a5-ea85-48cf-8469-1f529031af9c
|
|
42
|
-
- **GitHub:** one-ie/web (auto-deploy enabled)
|
|
43
|
-
- **Custom Domains:** one.ie, web.one.ie, www.one.ie
|
|
44
|
-
- **Build Command:** `bun run build`
|
|
45
|
-
- **Dist Directory:** dist
|
|
46
|
-
- **Status:** Active, currently serving one.ie
|
|
47
|
-
|
|
48
|
-
2. **frontend** → frontend.one.ie
|
|
49
|
-
- **Project ID:** ffc16a1b-2e46-4b15-ad7e-dba5b645f722
|
|
50
|
-
- **GitHub:** one-ie/frontend (same repo as web)
|
|
51
|
-
- **Custom Domains:** frontend.one.ie
|
|
52
|
-
- **Build Command:** `bun install && bun run build`
|
|
53
|
-
- **Status:** Active, auto-deploys from one-ie/frontend
|
|
54
|
-
|
|
55
|
-
3. **astro-shadcn** → (no custom domain)
|
|
56
|
-
- **Project ID:** a04130aa-f146-4b41-9ea7-94738a694c4a
|
|
57
|
-
- **GitHub:** one-ie/one
|
|
58
|
-
- **Custom Domains:** None (only astro-shadcn-4lu.pages.dev)
|
|
59
|
-
- **Build Command:** `bun install && bun run build`
|
|
60
|
-
- **Root Directory:** web/
|
|
61
|
-
- **Status:** Active, but production deployments disabled
|
|
62
|
-
|
|
63
|
-
## Required for New Architecture
|
|
64
|
-
|
|
65
|
-
According to `/scripts/release.sh` and `.claude/agents/agent-ops.md`:
|
|
66
|
-
|
|
67
|
-
### Main Site (oneie project)
|
|
68
|
-
- **Target:** one.ie
|
|
69
|
-
- **Source Repo:** one-ie/oneie
|
|
70
|
-
- **Source Directory:** apps/oneie/web
|
|
71
|
-
- **Build:** bun run build
|
|
72
|
-
- **Status:** ❌ PROJECT DOES NOT EXIST
|
|
73
|
-
|
|
74
|
-
### Demo Site (one project)
|
|
75
|
-
- **Target:** demo.one.ie
|
|
76
|
-
- **Source Repo:** one-ie/one
|
|
77
|
-
- **Source Directory:** apps/one/web
|
|
78
|
-
- **Build:** bun run build
|
|
79
|
-
- **Status:** ❌ PROJECT DOES NOT EXIST
|
|
80
|
-
|
|
81
|
-
## Architecture Gap Analysis
|
|
82
|
-
|
|
83
|
-
### Problem
|
|
84
|
-
The release script expects projects named "oneie" and "one" but they don't exist yet. The existing "web" project occupies the one.ie domain.
|
|
85
|
-
|
|
86
|
-
### Recommended Solution: Create New Projects
|
|
87
|
-
|
|
88
|
-
**Pros:**
|
|
89
|
-
- Aligns perfectly with release script expectations
|
|
90
|
-
- Clean separation between main and demo sites
|
|
91
|
-
- Each project maps to its own GitHub repo
|
|
92
|
-
- Follows documented architecture
|
|
93
|
-
|
|
94
|
-
**Cons:**
|
|
95
|
-
- Requires moving domain from "web" to "oneie"
|
|
96
|
-
- Brief DNS propagation period (usually < 5 min)
|
|
97
|
-
- Need to create projects manually (API doesn't support creation)
|
|
98
|
-
|
|
99
|
-
### Implementation Steps
|
|
100
|
-
|
|
101
|
-
1. Create "oneie" project via Cloudflare Dashboard
|
|
102
|
-
2. Create "one" project via Cloudflare Dashboard
|
|
103
|
-
3. Connect oneie → one-ie/oneie GitHub repo
|
|
104
|
-
4. Connect one → one-ie/one GitHub repo
|
|
105
|
-
5. Move one.ie domain from "web" to "oneie"
|
|
106
|
-
6. Add demo.one.ie domain to "one" project
|
|
107
|
-
7. Test deployments
|
|
108
|
-
8. Verify release script works
|
|
109
|
-
|
|
110
|
-
## API Limitation Discovered
|
|
111
|
-
|
|
112
|
-
### Cloudflare Pages API Constraint
|
|
113
|
-
The Cloudflare Pages API does NOT support creating projects programmatically. Projects can only be created via:
|
|
114
|
-
1. **Cloudflare Dashboard** (manual)
|
|
115
|
-
2. **Wrangler CLI** (requires authentication)
|
|
116
|
-
|
|
117
|
-
### Workaround
|
|
118
|
-
Since wrangler authentication failed, projects must be created through the Cloudflare Dashboard.
|
|
119
|
-
|
|
120
|
-
## Manual Steps Required
|
|
121
|
-
|
|
122
|
-
### 1. Create oneie Project
|
|
123
|
-
1. Visit: https://dash.cloudflare.com/627e0c7ccbe735a4a7cabf91e377bbad/pages
|
|
124
|
-
2. Click "Create a project"
|
|
125
|
-
3. Connect to GitHub: **one-ie/oneie**
|
|
126
|
-
4. Production branch: **main**
|
|
127
|
-
5. Build command: `cd web && bun run build`
|
|
128
|
-
6. Build output directory: `web/dist`
|
|
129
|
-
7. Root directory: (leave empty)
|
|
130
|
-
|
|
131
|
-
### 2. Create one Project
|
|
132
|
-
1. Visit: https://dash.cloudflare.com/627e0c7ccbe735a4a7cabf91e377bbad/pages
|
|
133
|
-
2. Click "Create a project"
|
|
134
|
-
3. Connect to GitHub: **one-ie/one**
|
|
135
|
-
4. Production branch: **main**
|
|
136
|
-
5. Build command: `cd web && bun run build`
|
|
137
|
-
6. Build output directory: `web/dist`
|
|
138
|
-
7. Root directory: (leave empty)
|
|
139
|
-
|
|
140
|
-
### 3. Configure Custom Domains (via API)
|
|
141
|
-
|
|
142
|
-
After manual project creation, run these commands:
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
# Add one.ie to oneie project
|
|
146
|
-
curl -X POST \
|
|
147
|
-
"https://api.cloudflare.com/client/v4/accounts/627e0c7ccbe735a4a7cabf91e377bbad/pages/projects/oneie/domains" \
|
|
148
|
-
-H "X-Auth-Email: tony@one.ie" \
|
|
149
|
-
-H "X-Auth-Key: 2751f1e8bdbc3cf9481e0cff345605c9bd3b9" \
|
|
150
|
-
-H "Content-Type: application/json" \
|
|
151
|
-
--data '{"name":"one.ie"}'
|
|
152
|
-
|
|
153
|
-
# Add demo.one.ie to one project
|
|
154
|
-
curl -X POST \
|
|
155
|
-
"https://api.cloudflare.com/client/v4/accounts/627e0c7ccbe735a4a7cabf91e377bbad/pages/projects/one/domains" \
|
|
156
|
-
-H "X-Auth-Email: tony@one.ie" \
|
|
157
|
-
-H "X-Auth-Key: 2751f1e8bdbc3cf9481e0cff345605c9bd3b9" \
|
|
158
|
-
-H "Content-Type: application/json" \
|
|
159
|
-
--data '{"name":"demo.one.ie"}'
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
### 4. Remove Conflicting Domain (After Verification)
|
|
163
|
-
|
|
164
|
-
**IMPORTANT:** Only run this after confirming the oneie project is working:
|
|
165
|
-
|
|
166
|
-
```bash
|
|
167
|
-
# Remove one.ie from web project
|
|
168
|
-
curl -X DELETE \
|
|
169
|
-
"https://api.cloudflare.com/client/v4/accounts/627e0c7ccbe735a4a7cabf91e377bbad/pages/projects/web/domains/one.ie" \
|
|
170
|
-
-H "X-Auth-Email: tony@one.ie" \
|
|
171
|
-
-H "X-Auth-Key: 2751f1e8bdbc3cf9481e0cff345605c9bd3b9"
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
## Environment Variables
|
|
175
|
-
|
|
176
|
-
### For oneie project (Production)
|
|
177
|
-
```bash
|
|
178
|
-
PUBLIC_CONVEX_URL=https://shocking-falcon-870.convex.cloud
|
|
179
|
-
CONVEX_DEPLOYMENT=prod:shocking-falcon-870
|
|
180
|
-
GITHUB_CLIENT_ID=55c60b9b2850097d51b7
|
|
181
|
-
NODE_VERSION=22.16.0
|
|
182
|
-
ONE_BACKEND=on
|
|
183
|
-
INSTALLATION_NAME=one-group
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
### For one project (Demo)
|
|
187
|
-
```bash
|
|
188
|
-
PUBLIC_CONVEX_URL=https://shocking-falcon-870.convex.cloud
|
|
189
|
-
CONVEX_DEPLOYMENT=prod:shocking-falcon-870
|
|
190
|
-
NODE_VERSION=22.16.0
|
|
191
|
-
INSTALLATION_NAME=one-demo
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
## Post-Setup Verification
|
|
195
|
-
|
|
196
|
-
### 1. Verify Projects Exist
|
|
197
|
-
```bash
|
|
198
|
-
curl -s "https://api.cloudflare.com/client/v4/accounts/627e0c7ccbe735a4a7cabf91e377bbad/pages/projects" \
|
|
199
|
-
-H "X-Auth-Email: tony@one.ie" \
|
|
200
|
-
-H "X-Auth-Key: 2751f1e8bdbc3cf9481e0cff345605c9bd3b9" | grep -o '"name":"[^"]*"'
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
### 2. Check oneie Project Domains
|
|
204
|
-
```bash
|
|
205
|
-
curl -s "https://api.cloudflare.com/client/v4/accounts/627e0c7ccbe735a4a7cabf91e377bbad/pages/projects/oneie" \
|
|
206
|
-
-H "X-Auth-Email: tony@one.ie" \
|
|
207
|
-
-H "X-Auth-Key: 2751f1e8bdbc3cf9481e0cff345605c9bd3b9" | jq '.result.domains'
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
### 3. Check one Project Domains
|
|
211
|
-
```bash
|
|
212
|
-
curl -s "https://api.cloudflare.com/client/v4/accounts/627e0c7ccbe735a4a7cabf91e377bbad/pages/projects/one" \
|
|
213
|
-
-H "X-Auth-Email: tony@one.ie" \
|
|
214
|
-
-H "X-Auth-Key: 2751f1e8bdbc3cf9481e0cff345605c9bd3b9" | jq '.result.domains'
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
### 4. Test Deployment
|
|
218
|
-
```bash
|
|
219
|
-
./scripts/release.sh patch main # Deploy to one.ie only
|
|
220
|
-
./scripts/release.sh patch demo # Deploy to demo.one.ie only
|
|
221
|
-
./scripts/release.sh patch # Deploy to both
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
## Success Criteria
|
|
225
|
-
|
|
226
|
-
- ✓ Two projects created: "oneie" and "one"
|
|
227
|
-
- ✓ oneie project → connected to one-ie/oneie repo
|
|
228
|
-
- ✓ one project → connected to one-ie/one repo
|
|
229
|
-
- ✓ one.ie custom domain → oneie project
|
|
230
|
-
- ✓ demo.one.ie custom domain → one project
|
|
231
|
-
- ✓ Environment variables configured
|
|
232
|
-
- ✓ Auto-deployment enabled from GitHub
|
|
233
|
-
- ✓ Release script works: `./scripts/release.sh patch`
|
|
234
|
-
|
|
235
|
-
## Timeline Estimate
|
|
236
|
-
|
|
237
|
-
- **Manual project creation:** 10 minutes (via dashboard)
|
|
238
|
-
- **Domain configuration via API:** 2 minutes
|
|
239
|
-
- **DNS propagation:** 5-15 minutes
|
|
240
|
-
- **First deployment test:** 5 minutes
|
|
241
|
-
- **Total:** ~25-35 minutes
|
|
242
|
-
|
|
243
|
-
## Risk Mitigation
|
|
244
|
-
|
|
245
|
-
### Zero Downtime Strategy
|
|
246
|
-
1. Create both new projects first
|
|
247
|
-
2. Test deployments to *.pages.dev subdomains
|
|
248
|
-
3. Only move domains after confirming new setup works
|
|
249
|
-
4. Keep "web" project as fallback during migration
|
|
250
|
-
5. Can rollback by re-adding domain to "web" project
|
|
251
|
-
|
|
252
|
-
### Rollback Procedure
|
|
253
|
-
|
|
254
|
-
If something goes wrong, restore domain to web project:
|
|
255
|
-
|
|
256
|
-
```bash
|
|
257
|
-
curl -X POST \
|
|
258
|
-
"https://api.cloudflare.com/client/v4/accounts/627e0c7ccbe735a4a7cabf91e377bbad/pages/projects/web/domains" \
|
|
259
|
-
-H "X-Auth-Email: tony@one.ie" \
|
|
260
|
-
-H "X-Auth-Key: 2751f1e8bdbc3cf9481e0cff345605c9bd3b9" \
|
|
261
|
-
-H "Content-Type: application/json" \
|
|
262
|
-
--data '{"name":"one.ie"}'
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
## Summary
|
|
266
|
-
|
|
267
|
-
**Status:** Infrastructure analysis complete, API credentials verified, existing projects documented.
|
|
268
|
-
|
|
269
|
-
**Blocker:** Cloudflare Pages API does not support programmatic project creation. Projects must be created manually via dashboard.
|
|
270
|
-
|
|
271
|
-
**Next Step:** User must create "oneie" and "one" projects via Cloudflare Dashboard, then domains can be configured via API (commands provided above).
|
|
272
|
-
|
|
273
|
-
**After Manual Creation:** This agent can complete domain configuration, verify setup, and test the release process.
|
|
274
|
-
|
|
275
|
-
---
|
|
276
|
-
|
|
277
|
-
**Generated by:** agent-ops (Ops Agent)
|
|
278
|
-
**Date:** 2025-10-23
|
|
279
|
-
**Related Files:**
|
|
280
|
-
- `/scripts/release.sh`
|
|
281
|
-
- `/.claude/agents/agent-ops.md`
|
|
282
|
-
- `/.claude/commands/release.md`
|