oneie 3.3.1 → 3.3.4
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 +378 -0
- package/.claude/agents/agent-builder.md +552 -0
- package/.claude/agents/agent-clean.md +469 -0
- package/.claude/agents/agent-clone.md +499 -0
- package/.claude/agents/agent-designer.md +566 -0
- package/.claude/agents/agent-director.md +561 -0
- package/.claude/agents/agent-documenter.md +558 -0
- package/.claude/agents/agent-frontend.md +468 -0
- package/.claude/agents/agent-integrator.md +663 -0
- package/.claude/agents/agent-lawyer.md +1266 -0
- package/.claude/agents/agent-ops.md +955 -0
- package/.claude/agents/agent-problem-solver.md +486 -0
- package/.claude/agents/agent-quality.md +521 -0
- package/.claude/agents/agent-sales.md +485 -0
- package/.claude/agents/backend-specialist.md +169 -0
- package/.claude/agents/designer.md +216 -0
- package/.claude/agents/frontend-specialist.md +236 -0
- package/.claude/commands/cascade.md +609 -0
- package/.claude/commands/done.md +35 -0
- package/.claude/commands/infer.md +138 -0
- package/.claude/commands/next.md +53 -0
- package/.claude/commands/npx.md +133 -0
- package/.claude/commands/one-template.md +106 -0
- package/.claude/commands/one-v1.md +609 -0
- package/.claude/commands/one.md +141 -0
- package/.claude/commands/plan.md +128 -0
- package/.claude/commands/release.md +272 -0
- package/folders.yaml +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
**DISPLAY THIS TO USER - START**
|
|
2
|
+
|
|
3
|
+
# Welcome to ONE Platform
|
|
4
|
+
|
|
5
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
██████╗ ███╗ ██╗███████╗
|
|
9
|
+
██╔═══██╗████╗ ██║██╔════╝
|
|
10
|
+
██║ ██║██╔██╗ ██║█████╗
|
|
11
|
+
██║ ██║██║╚██╗██║██╔══╝
|
|
12
|
+
╚██████╔╝██║ ╚████║███████╗
|
|
13
|
+
╚═════╝ ╚═╝ ╚═══╝╚══════╝
|
|
14
|
+
|
|
15
|
+
Make Your Ideas Real
|
|
16
|
+
https://one.ie • npx oneie
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Control Your AI. Build Anything.**
|
|
20
|
+
|
|
21
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
22
|
+
/now /next /todo /done
|
|
23
|
+
/build /design /deploy /see
|
|
24
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
25
|
+
|
|
26
|
+
**What would you like to do?**
|
|
27
|
+
|
|
28
|
+
**1-5:** Quick Start | **6-D:** AI Agents | **?:** Help
|
|
29
|
+
|
|
30
|
+
**DISPLAY THIS TO USER - END**
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## INSTRUCTIONS FOR CLAUDE (DO NOT DISPLAY TO USER)
|
|
35
|
+
|
|
36
|
+
You are ONE, an AI Agent helping users build apps, websites, and agent teams.
|
|
37
|
+
|
|
38
|
+
**CRITICAL:** Always display the logo and menu above (between "DISPLAY THIS TO USER" markers) FIRST before any other response.
|
|
39
|
+
|
|
40
|
+
**Progressive Disclosure:**
|
|
41
|
+
|
|
42
|
+
If user types **"1-5"** or **"Quick Start"**, show:
|
|
43
|
+
```
|
|
44
|
+
🚀 QUICK START
|
|
45
|
+
|
|
46
|
+
1. Start New Idea → Transform any idea into working code
|
|
47
|
+
2. Build Your Plan → Create feature collections & assign work
|
|
48
|
+
3. Launch Big Feature → Specifications with quality gates
|
|
49
|
+
4. Create Tests & Design → User flows that drive implementation
|
|
50
|
+
5. Get Things Done → Execute with 8 AI agents in parallel
|
|
51
|
+
|
|
52
|
+
Type a number or /one to go back
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
If user types **"6-D"** or **"Agents"**, show:
|
|
56
|
+
```
|
|
57
|
+
🤖 AI AGENTS
|
|
58
|
+
|
|
59
|
+
6. Engineering Director → Validates ideas, creates plans
|
|
60
|
+
7. Backend Specialist → Services, mutations, queries
|
|
61
|
+
8. Frontend Specialist → Pages, components, UI/UX
|
|
62
|
+
9. Integration Specialist → Connections, data flows
|
|
63
|
+
A. Quality Agent → Tests, validation, criteria
|
|
64
|
+
B. Design Agent → Wireframes, components
|
|
65
|
+
C. Problem Solver → Ultrathink mode, root cause
|
|
66
|
+
D. Documenter → Feature docs, guides
|
|
67
|
+
|
|
68
|
+
Type a number/letter or /one to go back
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
If user types **"?"** or **"Help"**, show:
|
|
72
|
+
```
|
|
73
|
+
📖 HELP
|
|
74
|
+
|
|
75
|
+
Commands: /now /next /todo /done /build /design /deploy /see
|
|
76
|
+
Features: Type 1-5 for Quick Start, 6-D for AI Agents
|
|
77
|
+
|
|
78
|
+
Type /one to go back to main menu
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**For specific selections (1, 2, 3... 6, 7... A, B, C, D):**
|
|
82
|
+
- Guide user through that specific flow
|
|
83
|
+
- Use context from one/knowledge/ontology.yaml and one/things/todo.md as needed
|
|
84
|
+
|
|
85
|
+
### 2. Breadcrumb System
|
|
86
|
+
Always show current location:
|
|
87
|
+
```
|
|
88
|
+
ONE > Engineering Director > Create Plan > Course Platform
|
|
89
|
+
↑ Current Location
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### 3. Progressive Disclosure
|
|
93
|
+
- **Level 1**: Show most common actions (1-5)
|
|
94
|
+
- **Level 2**: Show AI agents (6-9, A-D)
|
|
95
|
+
- **Level 3**: Show advanced features (T, W, S)
|
|
96
|
+
- **Level 4**: Show help and reference (H, ?)
|
|
97
|
+
|
|
98
|
+
## Menu Handlers
|
|
99
|
+
|
|
100
|
+
### Quick Start Actions (1-5)
|
|
101
|
+
|
|
102
|
+
#### 1. Start New Idea
|
|
103
|
+
```yaml
|
|
104
|
+
action: launch_idea_creation_flow
|
|
105
|
+
display: |
|
|
106
|
+
💡 **TURN YOUR IDEA INTO REALITY**
|
|
107
|
+
|
|
108
|
+
Agent ONE validates your idea against the 6-dimension ontology:
|
|
109
|
+
|
|
110
|
+
🌟 What's your idea?
|
|
111
|
+
|
|
112
|
+
1. Tech & Software → Apps, websites, digital products
|
|
113
|
+
2. Business & Services → Companies, consulting, coaching
|
|
114
|
+
3. Creative & Content → Art, writing, videos, courses
|
|
115
|
+
4. Custom Project → Tell me about your unique vision
|
|
116
|
+
|
|
117
|
+
Behind the scenes: Engineering Director automatically validates against
|
|
118
|
+
ontology (organizations, people, things, connections, events, knowledge).
|
|
119
|
+
|
|
120
|
+
B. Back to Main Menu
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
next_actions:
|
|
124
|
+
1: tech_software_idea_flow
|
|
125
|
+
2: business_services_idea_flow
|
|
126
|
+
3: creative_content_idea_flow
|
|
127
|
+
4: custom_idea_flow
|
|
128
|
+
|
|
129
|
+
Essential Commands:
|
|
130
|
+
1. /one → Main CASCADE interface (you are here)
|
|
131
|
+
2. /start → Quick idea start with 6-level workflow
|
|
132
|
+
3. /plan → Plan creation with feature assignments
|
|
133
|
+
4. /feature → Feature specification with quality gates
|
|
134
|
+
5. /task → Parallel task execution management
|
|
135
|
+
6. /agent → Direct access to 8 AI agents
|
|
136
|
+
|
|
137
|
+
CASCADE-Specific Commands:
|
|
138
|
+
7. /test → Execute Quality Agent (define tests)
|
|
139
|
+
8. /design → Run Design Agent (create wireframes)
|
|
140
|
+
9. /solve → Launch Problem Solver (ultrathink mode)
|
|
141
|
+
10. /document → Run Documenter Agent (auto-generation)
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# /plan - View Complete Inference Plan
|
|
2
|
+
|
|
3
|
+
**Purpose:** Display the complete 100-inference plan with progress, dependencies, and filtering options.
|
|
4
|
+
|
|
5
|
+
## Basic Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
/plan
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Shows complete 100-inference plan with:
|
|
12
|
+
- Current inference highlighted
|
|
13
|
+
- Completed inferences (✅)
|
|
14
|
+
- Skipped inferences (⏭️)
|
|
15
|
+
- Pending inferences (⏹️)
|
|
16
|
+
- Progress percentage
|
|
17
|
+
|
|
18
|
+
## Filtering Options
|
|
19
|
+
|
|
20
|
+
### By Dimension
|
|
21
|
+
```bash
|
|
22
|
+
/plan --dimension=organizations # Show only org-related inferences
|
|
23
|
+
/plan --dimension=people # Show only people/auth inferences
|
|
24
|
+
/plan --dimension=things # Show only entity inferences
|
|
25
|
+
/plan --dimension=connections # Show only relationship inferences
|
|
26
|
+
/plan --dimension=events # Show only event inferences
|
|
27
|
+
/plan --dimension=knowledge # Show only knowledge/RAG inferences
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### By Specialist
|
|
31
|
+
```bash
|
|
32
|
+
/plan --specialist=backend # Show backend inferences (11-20, 41-50)
|
|
33
|
+
/plan --specialist=frontend # Show frontend inferences (21-30, 71-80)
|
|
34
|
+
/plan --specialist=integration # Show integration inferences (31-40)
|
|
35
|
+
/plan --specialist=quality # Show testing inferences (61-70)
|
|
36
|
+
/plan --specialist=design # Show design inferences (71-80)
|
|
37
|
+
/plan --specialist=documenter # Show documentation inferences (95-100)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### By Status
|
|
41
|
+
```bash
|
|
42
|
+
/plan --status=completed # Show only completed inferences
|
|
43
|
+
/plan --status=skipped # Show only skipped inferences
|
|
44
|
+
/plan --status=pending # Show only pending inferences
|
|
45
|
+
/plan --status=blocked # Show inferences with unmet dependencies
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### By Range
|
|
49
|
+
```bash
|
|
50
|
+
/plan --range=1-10 # Show inferences 1-10 (Foundation)
|
|
51
|
+
/plan --range=11-20 # Show inferences 11-20 (Backend)
|
|
52
|
+
/plan --range=21-30 # Show inferences 21-30 (Frontend)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Combined Filters
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
/plan --specialist=backend --status=pending
|
|
59
|
+
/plan --dimension=knowledge --range=51-60
|
|
60
|
+
/plan --status=skipped --show-dependencies
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Output Format
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
67
|
+
📋 INFERENCE PLAN: Feature Name
|
|
68
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
69
|
+
|
|
70
|
+
Progress: 23/100 (23%) | Completed: 22 | Skipped: 1 | Pending: 77
|
|
71
|
+
|
|
72
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
73
|
+
📦 INFER 1-10: FOUNDATION & SETUP
|
|
74
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
75
|
+
|
|
76
|
+
✅ Infer 1: Validate idea against 6-dimension ontology
|
|
77
|
+
└─ Dimensions: foundation | Specialist: director
|
|
78
|
+
|
|
79
|
+
✅ Infer 2: Map idea to specific entity types
|
|
80
|
+
└─ Dimensions: things | Specialist: director
|
|
81
|
+
|
|
82
|
+
⏸️ Infer 3: Identify connection types needed
|
|
83
|
+
└─ Dimensions: connections | Specialist: director
|
|
84
|
+
|
|
85
|
+
⏹️ Infer 4: List event types that will be triggered
|
|
86
|
+
└─ Dimensions: events | Specialist: director
|
|
87
|
+
|
|
88
|
+
[... continues through 100 ...]
|
|
89
|
+
|
|
90
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Legend
|
|
94
|
+
|
|
95
|
+
- ✅ = Completed
|
|
96
|
+
- ⏸️ = Current (in progress)
|
|
97
|
+
- ⏭️ = Skipped (not applicable)
|
|
98
|
+
- ⏹️ = Pending
|
|
99
|
+
- 🚫 = Blocked (dependencies not met)
|
|
100
|
+
|
|
101
|
+
## Dependencies View
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
/plan --show-dependencies
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Shows dependency graph:
|
|
108
|
+
```
|
|
109
|
+
Infer 21 (Create Astro page)
|
|
110
|
+
├─ Requires: Infer 12 (schema.ts updated)
|
|
111
|
+
├─ Requires: Infer 13 (Effect.ts service)
|
|
112
|
+
└─ Requires: Infer 15 (Convex queries)
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Export Plan
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
/plan --export=markdown # Export to one/plans/current-feature.md
|
|
119
|
+
/plan --export=json # Export to .claude/state/plan.json
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Use Cases
|
|
123
|
+
|
|
124
|
+
1. **Starting a feature:** Review complete plan before beginning
|
|
125
|
+
2. **Mid-feature:** Check progress and what's remaining
|
|
126
|
+
3. **Blocked:** See dependencies for current inference
|
|
127
|
+
4. **Skipped review:** Verify skipped inferences were correct
|
|
128
|
+
5. **Handoff:** Share plan with team members
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: Bash(./scripts/release.sh:*), Bash(./scripts/pre-deployment-check.sh:*), Bash(./scripts/cloudflare-deploy.sh:*), Bash(cd web && bun run build:*), Bash(cd web && wrangler pages deploy:*), Bash(cd cli && npm publish:*), Bash(git status:*), Bash(git add:*), Bash(git commit:*), Bash(git push:*), Bash(git tag:*), Bash(npm view oneie:*)
|
|
3
|
+
description: Execute full ONE Platform release with automated Cloudflare deployment via API
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /release - Full ONE Platform Release
|
|
7
|
+
|
|
8
|
+
**Purpose:** Execute the complete 13-step release process including npm publish, GitHub pushes, and Cloudflare Pages deployment.
|
|
9
|
+
|
|
10
|
+
## Context
|
|
11
|
+
|
|
12
|
+
Before starting the release, gather this information:
|
|
13
|
+
1. Run `pwd` to verify current directory
|
|
14
|
+
2. Check `ls -lah scripts/release.sh` to verify release script exists
|
|
15
|
+
3. Run `git status --short` to check for uncommitted changes
|
|
16
|
+
4. Check `ls -lah web/dist/` to see if a build already exists
|
|
17
|
+
|
|
18
|
+
## Release Options
|
|
19
|
+
|
|
20
|
+
### Option 1: Patch Release (Recommended for Hotfixes)
|
|
21
|
+
```
|
|
22
|
+
/release patch
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Option 2: Minor Release (New Features)
|
|
26
|
+
```
|
|
27
|
+
/release minor
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Option 3: Major Release (Breaking Changes)
|
|
31
|
+
```
|
|
32
|
+
/release major
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Option 4: Sync Only (No Version Bump)
|
|
36
|
+
```
|
|
37
|
+
/release sync
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Your Task
|
|
41
|
+
|
|
42
|
+
Based on the release type requested:
|
|
43
|
+
|
|
44
|
+
### Step 1: Pre-Deployment Validation
|
|
45
|
+
1. Run `./scripts/pre-deployment-check.sh`
|
|
46
|
+
2. Verify all checks pass (0 errors)
|
|
47
|
+
3. If errors found, report to user and STOP
|
|
48
|
+
4. If warnings only, continue
|
|
49
|
+
|
|
50
|
+
### Step 2: Version Bump & Sync (if not "sync")
|
|
51
|
+
1. Run `./scripts/release.sh [patch|minor|major]`
|
|
52
|
+
2. This will:
|
|
53
|
+
- Bump version in cli/package.json
|
|
54
|
+
- Sync 518+ files to cli/ and apps/one/:
|
|
55
|
+
- `/one/*` → `cli/one/` and `apps/one/one/`
|
|
56
|
+
- `/.claude/*` → `cli/.claude/` and `apps/one/one/.claude/`
|
|
57
|
+
- `/web/*` → `apps/one/web/` (git subtree)
|
|
58
|
+
- `CLAUDE.md`, `README.md`, `LICENSE.md`, `SECURITY.md` → all targets
|
|
59
|
+
- `web/AGENTS.md` → `apps/one/one/AGENTS.md`
|
|
60
|
+
- **AUTOMATICALLY** commit and push apps/one/ to one-ie/one (no confirmation needed)
|
|
61
|
+
- Show git status for review
|
|
62
|
+
3. When prompted for cli/ "Commit and push?", answer 'y'
|
|
63
|
+
4. When prompted "Create tag?", answer 'y'
|
|
64
|
+
|
|
65
|
+
### Step 3: npm Publish
|
|
66
|
+
1. `cd cli`
|
|
67
|
+
2. Run `npm publish --access public`
|
|
68
|
+
3. Wait for completion
|
|
69
|
+
4. Verify: `npm view oneie version`
|
|
70
|
+
5. Report new version to user
|
|
71
|
+
|
|
72
|
+
### Step 4: Build & Deploy Web to Cloudflare
|
|
73
|
+
|
|
74
|
+
**Automatic Mode (if CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID are set):**
|
|
75
|
+
1. The release script automatically detects credentials
|
|
76
|
+
2. Builds web with `cd web && bun run build`
|
|
77
|
+
3. Deploys via `scripts/cloudflare-deploy.sh` using Cloudflare API
|
|
78
|
+
4. Shows deployment status and URLs
|
|
79
|
+
5. **Zero confirmation needed** - fully automated!
|
|
80
|
+
|
|
81
|
+
**Manual Mode (if credentials not set):**
|
|
82
|
+
1. `cd web`
|
|
83
|
+
2. Run `bun run build`
|
|
84
|
+
3. When prompted "Deploy web to Cloudflare Pages via wrangler?", answer 'y'
|
|
85
|
+
4. Script runs `wrangler pages deploy dist --project-name=web`
|
|
86
|
+
5. Capture deployment URL and report to user
|
|
87
|
+
|
|
88
|
+
**Standalone Deployment:**
|
|
89
|
+
```bash
|
|
90
|
+
# Deploy directly via Cloudflare module
|
|
91
|
+
scripts/cloudflare-deploy.sh deploy web web/dist production
|
|
92
|
+
|
|
93
|
+
# Check deployment status
|
|
94
|
+
scripts/cloudflare-deploy.sh status web
|
|
95
|
+
|
|
96
|
+
# List recent deployments
|
|
97
|
+
scripts/cloudflare-deploy.sh list web 5
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Step 5: Verification
|
|
101
|
+
1. Test npm package: `npx oneie@latest --version`
|
|
102
|
+
2. Report all live URLs:
|
|
103
|
+
- npm: https://www.npmjs.com/package/oneie
|
|
104
|
+
- Web: https://web.one.ie (or Cloudflare URL)
|
|
105
|
+
- GitHub CLI: https://github.com/one-ie/cli
|
|
106
|
+
- GitHub One: https://github.com/one-ie/one
|
|
107
|
+
|
|
108
|
+
### Step 6: Summary Report
|
|
109
|
+
Provide a concise summary:
|
|
110
|
+
```
|
|
111
|
+
✅ Release v2.0.X Complete!
|
|
112
|
+
|
|
113
|
+
📦 npm: oneie@2.0.X (live)
|
|
114
|
+
🌐 Web: https://web.one.ie (deployed)
|
|
115
|
+
🏷️ GitHub: v2.0.X tagged
|
|
116
|
+
⏱️ Total time: ~X minutes
|
|
117
|
+
|
|
118
|
+
Next steps:
|
|
119
|
+
- Create GitHub releases
|
|
120
|
+
- Test installation: npx oneie@latest
|
|
121
|
+
- Monitor for errors
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Important Notes
|
|
125
|
+
|
|
126
|
+
**You MUST:**
|
|
127
|
+
- ✅ Run pre-deployment checks first
|
|
128
|
+
- ✅ Stop if critical errors found
|
|
129
|
+
- ✅ Build web before deploying
|
|
130
|
+
- ✅ Verify npm publish succeeded
|
|
131
|
+
- ✅ Capture and report all URLs
|
|
132
|
+
- ✅ Provide clear success/failure status
|
|
133
|
+
|
|
134
|
+
**You MUST NOT:**
|
|
135
|
+
- ❌ Skip pre-deployment validation
|
|
136
|
+
- ❌ Deploy without building first
|
|
137
|
+
- ❌ Continue if npm publish fails
|
|
138
|
+
- ❌ Forget to report deployment URLs
|
|
139
|
+
|
|
140
|
+
## Error Handling
|
|
141
|
+
|
|
142
|
+
### If pre-deployment check fails:
|
|
143
|
+
1. Report specific errors to user
|
|
144
|
+
2. Suggest fixes
|
|
145
|
+
3. STOP - do not proceed
|
|
146
|
+
|
|
147
|
+
### If npm publish fails:
|
|
148
|
+
1. Check if already published: `npm view oneie@X.X.X`
|
|
149
|
+
2. If version exists, bump patch and retry
|
|
150
|
+
3. Report to user
|
|
151
|
+
|
|
152
|
+
### If Cloudflare deploy fails:
|
|
153
|
+
1. Check if build succeeded
|
|
154
|
+
2. Report wrangler error
|
|
155
|
+
3. Suggest: Check environment variables
|
|
156
|
+
4. Continue (deployment can be done separately)
|
|
157
|
+
|
|
158
|
+
## When to Use
|
|
159
|
+
|
|
160
|
+
Use `/release` when you want to:
|
|
161
|
+
- ✅ Deploy a new version to production
|
|
162
|
+
- ✅ Publish CLI updates to npm
|
|
163
|
+
- ✅ Update web frontend on Cloudflare
|
|
164
|
+
- ✅ Create git tags for version
|
|
165
|
+
- ✅ Execute full release pipeline
|
|
166
|
+
|
|
167
|
+
## When NOT to Use
|
|
168
|
+
|
|
169
|
+
Do NOT use `/release` if:
|
|
170
|
+
- ❌ You're still developing/testing
|
|
171
|
+
- ❌ There are failing tests
|
|
172
|
+
- ❌ You haven't committed changes
|
|
173
|
+
- ❌ You're not ready for production
|
|
174
|
+
|
|
175
|
+
**Instead:** Use individual commands like `/push-cli` or test locally first.
|
|
176
|
+
|
|
177
|
+
## Example Usage
|
|
178
|
+
|
|
179
|
+
**User:** `/release patch`
|
|
180
|
+
|
|
181
|
+
**Claude:**
|
|
182
|
+
1. Runs pre-deployment check
|
|
183
|
+
2. Validates (0 errors, 7 warnings)
|
|
184
|
+
3. Runs release.sh patch
|
|
185
|
+
4. Bumps version 2.0.6 → 2.0.7
|
|
186
|
+
5. Syncs 552 files
|
|
187
|
+
6. Commits and pushes to GitHub
|
|
188
|
+
7. Publishes to npm
|
|
189
|
+
8. Builds web
|
|
190
|
+
9. Deploys to Cloudflare
|
|
191
|
+
10. Reports success with all URLs
|
|
192
|
+
|
|
193
|
+
## Prerequisites
|
|
194
|
+
|
|
195
|
+
Before running `/release`, ensure:
|
|
196
|
+
- ✅ You're in the ONE root directory
|
|
197
|
+
- ✅ All changes are committed (or acceptable)
|
|
198
|
+
- ✅ You're logged in to npm (`npm whoami`)
|
|
199
|
+
- ✅ Wrangler is authenticated
|
|
200
|
+
- ✅ Release scripts exist in `scripts/`
|
|
201
|
+
|
|
202
|
+
**For Automated Cloudflare Deployment (Optional):**
|
|
203
|
+
- ✅ Set `CLOUDFLARE_API_TOKEN` environment variable
|
|
204
|
+
- ✅ Set `CLOUDFLARE_ACCOUNT_ID` environment variable
|
|
205
|
+
|
|
206
|
+
**Without these credentials:**
|
|
207
|
+
- The script falls back to interactive wrangler CLI deployment
|
|
208
|
+
- Still fully functional, just requires manual confirmation
|
|
209
|
+
|
|
210
|
+
## Post-Release Tasks
|
|
211
|
+
|
|
212
|
+
After `/release` succeeds, remind user to:
|
|
213
|
+
1. Create GitHub releases (manual)
|
|
214
|
+
2. Test installation: `npx oneie@latest`
|
|
215
|
+
3. Verify web deployment
|
|
216
|
+
4. Monitor npm downloads
|
|
217
|
+
5. Check for errors in first 24 hours
|
|
218
|
+
|
|
219
|
+
## Installation Folder Sync (Optional)
|
|
220
|
+
|
|
221
|
+
If installation folders need to be synced across repositories:
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
# Sync installation folder to assembly repo
|
|
225
|
+
if [ -d "/${INSTALLATION_NAME}" ]; then
|
|
226
|
+
echo "📦 Syncing installation folder: ${INSTALLATION_NAME}"
|
|
227
|
+
|
|
228
|
+
# Copy to assembly repo
|
|
229
|
+
rsync -av --delete \
|
|
230
|
+
"/${INSTALLATION_NAME}/" \
|
|
231
|
+
"apps/one/${INSTALLATION_NAME}/"
|
|
232
|
+
|
|
233
|
+
# Commit and push
|
|
234
|
+
cd apps/one
|
|
235
|
+
git add "${INSTALLATION_NAME}/"
|
|
236
|
+
git commit -m "chore: sync installation folder ${INSTALLATION_NAME}"
|
|
237
|
+
git push
|
|
238
|
+
|
|
239
|
+
echo "✅ Installation folder synced"
|
|
240
|
+
fi
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
**Update version bump to include installation folder in changelog:**
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
# Generate changelog entry
|
|
247
|
+
cat >> CHANGELOG.md <<EOF
|
|
248
|
+
|
|
249
|
+
## [${NEW_VERSION}] - $(date +%Y-%m-%d)
|
|
250
|
+
|
|
251
|
+
### Added
|
|
252
|
+
- Installation folder multi-tenancy support
|
|
253
|
+
- Hierarchical file resolution with group support
|
|
254
|
+
- CLI: \`npx oneie init\` to create installation folders
|
|
255
|
+
- Frontend: Auto-resolution of installation-specific files
|
|
256
|
+
- Deployment: Cloudflare Pages integration for installation folders
|
|
257
|
+
|
|
258
|
+
### Changed
|
|
259
|
+
- Terminology: "group folder" → "installation folder"
|
|
260
|
+
- Environment: \`GROUP_NAME\` → \`INSTALLATION_NAME\`
|
|
261
|
+
- Documentation updated across CLAUDE.md, AGENTS.md, README.md
|
|
262
|
+
|
|
263
|
+
### Security
|
|
264
|
+
- Path traversal prevention in file resolution
|
|
265
|
+
- Symlink validation
|
|
266
|
+
- Audit logging for file access
|
|
267
|
+
EOF
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
**Full Release Pipeline: npm → GitHub → Cloudflare Pages → Production! 🚀**
|
package/folders.yaml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oneie",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Build apps, websites, and AI agents in English. Download to your computer, run in the cloud, deploy to the edge. Open source and free forever.",
|
|
6
6
|
"bin": {
|
|
@@ -60,6 +60,8 @@
|
|
|
60
60
|
"folders.yaml",
|
|
61
61
|
"CLAUDE.md",
|
|
62
62
|
"AGENTS.md",
|
|
63
|
-
"one"
|
|
63
|
+
"one",
|
|
64
|
+
".claude/agents",
|
|
65
|
+
".claude/commands"
|
|
64
66
|
]
|
|
65
67
|
}
|