oneie 3.6.6 → 3.6.7
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/commands/onboard.md +179 -0
- package/.claude/commands/one.md +125 -487
- package/.claude/commands/server.md +333 -0
- package/folders.yaml +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# /onboard - Analyze Website & Extract Brand Identity
|
|
2
|
+
|
|
3
|
+
## Instructions for Claude
|
|
4
|
+
|
|
5
|
+
When user types `/onboard`, analyze their website and extract brand identity for ONE Platform customization.
|
|
6
|
+
|
|
7
|
+
### Step 1: Get Website URL
|
|
8
|
+
|
|
9
|
+
If `.onboarding.json` exists, read it for `website.url`.
|
|
10
|
+
|
|
11
|
+
Otherwise, ask user:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
15
|
+
🤖 Website Analysis & Onboarding
|
|
16
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
17
|
+
|
|
18
|
+
Please provide your website URL:
|
|
19
|
+
|
|
20
|
+
Example: https://example.com
|
|
21
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Step 2: Launch agent-onboard (Background)
|
|
25
|
+
|
|
26
|
+
**IMPORTANT:** Use Task tool with `subagent_type=agent-onboard` in BACKGROUND mode.
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
Analyze website [website.url] for ONE Platform onboarding:
|
|
30
|
+
|
|
31
|
+
1. Extract brand identity:
|
|
32
|
+
- Colors (primary, secondary, accent)
|
|
33
|
+
- Typography (fonts, sizes, weights)
|
|
34
|
+
- Logo and imagery
|
|
35
|
+
- Brand voice and tone
|
|
36
|
+
|
|
37
|
+
2. Detect existing features:
|
|
38
|
+
- Content types (blog, products, services)
|
|
39
|
+
- Navigation structure
|
|
40
|
+
- Key pages and sections
|
|
41
|
+
- Interactive elements
|
|
42
|
+
|
|
43
|
+
3. Map to 6-dimension ontology:
|
|
44
|
+
- Things: What entities exist? (products, posts, users)
|
|
45
|
+
- Connections: What relationships? (owns, authored, purchased)
|
|
46
|
+
- Events: What actions? (created, updated, viewed)
|
|
47
|
+
- Knowledge: What content? (blog posts, docs, FAQs)
|
|
48
|
+
|
|
49
|
+
4. Create installation documentation:
|
|
50
|
+
- Save to: /[org-slug]/knowledge/brand-guide.md
|
|
51
|
+
- Save to: /[org-slug]/knowledge/features.md
|
|
52
|
+
- Save to: /[org-slug]/knowledge/ontology-mapping.md
|
|
53
|
+
|
|
54
|
+
5. Recommend ONE Platform features:
|
|
55
|
+
- Based on detected patterns
|
|
56
|
+
- Aligned with 6-dimension ontology
|
|
57
|
+
- Prioritized by impact
|
|
58
|
+
|
|
59
|
+
6. Update .onboarding.json with results
|
|
60
|
+
|
|
61
|
+
Website URL: [website.url]
|
|
62
|
+
Organization: [organization.name]
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Step 3: Show Progress to User
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
69
|
+
🤖 Analyzing your website...
|
|
70
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
71
|
+
|
|
72
|
+
Website: [website.url]
|
|
73
|
+
|
|
74
|
+
I'm extracting:
|
|
75
|
+
✓ Brand colors, fonts, and style
|
|
76
|
+
✓ Existing features and content
|
|
77
|
+
✓ Ontology mapping (Things, Connections, Events)
|
|
78
|
+
✓ Feature recommendations
|
|
79
|
+
|
|
80
|
+
This takes ~2 minutes. Continue working while it runs!
|
|
81
|
+
|
|
82
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
83
|
+
✨ While you wait...
|
|
84
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
85
|
+
|
|
86
|
+
Try these commands:
|
|
87
|
+
• /server - Manage dev server (start/stop/restart)
|
|
88
|
+
• /build - Start building features
|
|
89
|
+
• /see - View your platform
|
|
90
|
+
|
|
91
|
+
I'll notify you when analysis is complete!
|
|
92
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Step 4: Monitor agent-onboard
|
|
96
|
+
|
|
97
|
+
Use `AgentOutputTool` to periodically check progress (every 30 seconds).
|
|
98
|
+
|
|
99
|
+
When complete, show results:
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
103
|
+
✅ Website Analysis Complete!
|
|
104
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
105
|
+
|
|
106
|
+
Brand Identity Extracted:
|
|
107
|
+
• Colors: [primary], [secondary], [accent]
|
|
108
|
+
• Fonts: [font-family]
|
|
109
|
+
• Voice: [brand-tone]
|
|
110
|
+
|
|
111
|
+
Features Detected:
|
|
112
|
+
• [feature-1]
|
|
113
|
+
• [feature-2]
|
|
114
|
+
• [feature-3]
|
|
115
|
+
|
|
116
|
+
Ontology Mapping:
|
|
117
|
+
• Things: [entity-types]
|
|
118
|
+
• Connections: [relationship-types]
|
|
119
|
+
• Events: [action-types]
|
|
120
|
+
|
|
121
|
+
Documentation Created:
|
|
122
|
+
✓ /[org-slug]/knowledge/brand-guide.md
|
|
123
|
+
✓ /[org-slug]/knowledge/features.md
|
|
124
|
+
✓ /[org-slug]/knowledge/ontology-mapping.md
|
|
125
|
+
|
|
126
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
127
|
+
🎨 Next Steps
|
|
128
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
129
|
+
|
|
130
|
+
1. Customize homepage:
|
|
131
|
+
"Update the hero section with our brand colors"
|
|
132
|
+
|
|
133
|
+
2. Build new features:
|
|
134
|
+
/build [feature-name]
|
|
135
|
+
|
|
136
|
+
3. Deploy to production:
|
|
137
|
+
/deploy
|
|
138
|
+
|
|
139
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Key Principles
|
|
145
|
+
|
|
146
|
+
1. **BACKGROUND** - Don't block user, run agent-onboard async
|
|
147
|
+
2. **THOROUGH** - Extract complete brand identity and features
|
|
148
|
+
3. **MAPPED** - Always map to 6-dimension ontology
|
|
149
|
+
4. **DOCUMENTED** - Save everything to installation folder
|
|
150
|
+
5. **ACTIONABLE** - Provide clear next steps
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## Error Handling
|
|
155
|
+
|
|
156
|
+
If website URL is invalid or unreachable:
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
❌ Could not access website: [website.url]
|
|
160
|
+
|
|
161
|
+
Please check:
|
|
162
|
+
• URL is publicly accessible
|
|
163
|
+
• No authentication required
|
|
164
|
+
• Website is online
|
|
165
|
+
|
|
166
|
+
Try again with: /onboard
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
If agent-onboard fails:
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
❌ Website analysis failed
|
|
173
|
+
|
|
174
|
+
Please try:
|
|
175
|
+
1. /onboard - Retry analysis
|
|
176
|
+
2. Manual setup in /[org-slug]/knowledge/
|
|
177
|
+
|
|
178
|
+
Need help? Ask me questions!
|
|
179
|
+
```
|
package/.claude/commands/one.md
CHANGED
|
@@ -1,565 +1,203 @@
|
|
|
1
|
-
|
|
1
|
+
# /one - ONE Platform Quick Start
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Instructions for Claude
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
.
|
|
9
|
-
██████╗ ███╗ ██╗███████╗
|
|
10
|
-
██╔═══██╗████╗ ██║██╔════╝
|
|
11
|
-
██║ ██║██╔██╗ ██║█████╗
|
|
12
|
-
██║ ██║██║╚██╗██║██╔══╝
|
|
13
|
-
╚██████╔╝██║ ╚████║███████╗
|
|
14
|
-
╚═════╝ ╚═╝ ╚═══╝╚══════╝
|
|
5
|
+
When user types `/one`, display the ONE Platform welcome screen and provide quick access to all commands.
|
|
15
6
|
|
|
16
|
-
|
|
17
|
-
https://one.ie • npx oneie
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
**Control Your AI. Build Anything.**
|
|
21
|
-
|
|
22
|
-
Server Started at http://localhost:4321
|
|
23
|
-
|
|
24
|
-
[If account owner found from .oneie/installation.json, display:]
|
|
25
|
-
Account: [owner name]
|
|
26
|
-
|
|
27
|
-
[If organization found from .oneie/installation.json, display:]
|
|
28
|
-
Organization: [org name] - [org url]
|
|
29
|
-
|
|
30
|
-
Type:
|
|
31
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
32
|
-
now next todo done
|
|
33
|
-
build design deploy see
|
|
34
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
7
|
+
### Step 1: Check Status (< 1 second)
|
|
35
8
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
or type anything...
|
|
39
|
-
|
|
40
|
-
**DISPLAY THIS TO USER - END**
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
## INSTRUCTIONS FOR CLAUDE (DO NOT DISPLAY TO USER)
|
|
45
|
-
|
|
46
|
-
You are ONE, an AI Agent helping users build apps, websites, and agent teams.
|
|
47
|
-
|
|
48
|
-
**CRITICAL - Initialization Checks:** Before displaying anything, run these checks in order:
|
|
49
|
-
|
|
50
|
-
1. **Onboarding Check (NEW):**
|
|
51
|
-
- Check ALL installation folders for `.onboarding.json`
|
|
52
|
-
- Use Bash: `find . -maxdepth 2 -name ".onboarding.json" -type f 2>/dev/null | head -1`
|
|
53
|
-
- If found:
|
|
54
|
-
- Read the file
|
|
55
|
-
- Check `status` field
|
|
56
|
-
- If status is `"pending_analysis"`:
|
|
57
|
-
- **START ONBOARDING FLOW** (see "Onboarding Flow" section below)
|
|
58
|
-
- DO NOT continue to normal /one menu
|
|
59
|
-
- If status is `"building"`:
|
|
60
|
-
- Show progress summary (see "Progress Check" section)
|
|
61
|
-
- DO NOT continue to normal /one menu
|
|
62
|
-
- If status is `"completed"`:
|
|
63
|
-
- Show completion summary (see "Completion Summary" section)
|
|
64
|
-
- Then continue to normal /one menu
|
|
65
|
-
- If not found or status is anything else:
|
|
66
|
-
- Continue to normal /one behavior (steps 2-5 below)
|
|
67
|
-
|
|
68
|
-
2. **Git Repository Check:**
|
|
69
|
-
- Use Bash: `[ -d .git ] && echo "exists" || echo ""`
|
|
70
|
-
- If empty output (no .git):
|
|
71
|
-
- Output to user: "📦 Initializing git repository..."
|
|
72
|
-
- Run: `git init`
|
|
73
|
-
- Run: `git add .`
|
|
74
|
-
- Run: `git commit -m "chore: initialize ONE Platform repository"`
|
|
75
|
-
- Output: "✓ Git repository initialized"
|
|
76
|
-
- DO NOT show bash output or errors
|
|
77
|
-
|
|
78
|
-
3. **Account Owner Check:**
|
|
79
|
-
- Check for CLI installation metadata: `[ -f .oneie/installation.json ] && cat .oneie/installation.json || echo "{}"`
|
|
80
|
-
- Extract owner info from installation.json (if exists)
|
|
81
|
-
- Store owner name for display
|
|
82
|
-
|
|
83
|
-
4. **Organization Check:**
|
|
84
|
-
- Check for organization metadata in installation.json
|
|
85
|
-
- Extract org name and URL (if exists)
|
|
86
|
-
- Store org info for display
|
|
87
|
-
|
|
88
|
-
5. **Dev Server Check:**
|
|
89
|
-
- Use Bash: `lsof -ti:4321 2>/dev/null || echo ""`
|
|
90
|
-
- If empty output (server not running):
|
|
91
|
-
- Output to user: "🚀 Starting dev server..."
|
|
92
|
-
- Start server in background: `cd /Users/toc/Server/ONE/web && bun run dev`
|
|
93
|
-
- DO NOT show bash output or errors
|
|
94
|
-
|
|
95
|
-
6. **Then display the welcome screen with:**
|
|
96
|
-
- Logo and menu
|
|
97
|
-
- Account owner (if found): "Account: [owner name]"
|
|
98
|
-
- Organization (if found): "Organization: [org name] - [org url]"
|
|
99
|
-
- Server URL: http://localhost:4321
|
|
100
|
-
|
|
101
|
-
**CRITICAL:** Always display the logo and menu above (between "DISPLAY THIS TO USER" markers) FIRST before any other response.
|
|
102
|
-
|
|
103
|
-
**Progressive Disclosure:**
|
|
104
|
-
|
|
105
|
-
If user types **"1-5"** or **"Quick Start"**, show:
|
|
9
|
+
Run quick parallel checks:
|
|
106
10
|
|
|
11
|
+
```bash
|
|
12
|
+
find . -maxdepth 2 -name ".onboarding.json" -type f 2>/dev/null | head -1 && \
|
|
13
|
+
lsof -ti:4321 2>/dev/null
|
|
107
14
|
```
|
|
108
|
-
🚀 QUICK START
|
|
109
|
-
|
|
110
|
-
1. Start New Idea → Transform any idea into working code
|
|
111
|
-
2. Build Your Plan → Create feature collections & assign work
|
|
112
|
-
3. Launch Big Feature → Specifications with quality gates
|
|
113
|
-
4. Create Tests & Design → User flows that drive implementation
|
|
114
|
-
5. Get Things Done → Execute with 8 AI agents in parallel
|
|
115
|
-
|
|
116
|
-
Type a number or /one to go back
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
If user types **"6-D"** or **"Agents"**, show:
|
|
120
15
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
6. Engineering Director → Validates ideas, creates plans
|
|
125
|
-
7. Backend Specialist → Services, mutations, queries
|
|
126
|
-
8. Frontend Specialist → Pages, components, UI/UX
|
|
127
|
-
9. Integration Specialist → Connections, data flows
|
|
128
|
-
A. Quality Agent → Tests, validation, criteria
|
|
129
|
-
B. Design Agent → Wireframes, components
|
|
130
|
-
C. Problem Solver → Ultrathink mode, root cause
|
|
131
|
-
D. Documenter → Feature docs, guides
|
|
132
|
-
|
|
133
|
-
Type a number/letter or /one to go back
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
If user types **"?"** or **"Help"**, show:
|
|
137
|
-
|
|
138
|
-
```
|
|
139
|
-
📖 HELP
|
|
140
|
-
|
|
141
|
-
Commands: /now /next /todo /done /build /design /deploy /see
|
|
142
|
-
Features: Type 1-5 for Quick Start, 6-D for AI Agents
|
|
143
|
-
|
|
144
|
-
Type /one to go back to main menu
|
|
145
|
-
```
|
|
16
|
+
**Parse output:**
|
|
17
|
+
- Line 1: Path to `.onboarding.json` (if exists)
|
|
18
|
+
- Line 2: Server PID (if running)
|
|
146
19
|
|
|
147
|
-
|
|
20
|
+
### Step 2: Read Onboarding Data (if exists)
|
|
148
21
|
|
|
149
|
-
|
|
150
|
-
-
|
|
22
|
+
If `.onboarding.json` found, read to extract:
|
|
23
|
+
- `user.name`
|
|
24
|
+
- `organization.name`
|
|
25
|
+
- `website.url`
|
|
151
26
|
|
|
152
|
-
###
|
|
27
|
+
### Step 3: Display Welcome Screen
|
|
153
28
|
|
|
154
|
-
|
|
29
|
+
**WITH onboarding data:**
|
|
155
30
|
|
|
156
31
|
```
|
|
157
|
-
|
|
158
|
-
↑ Current Location
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
### 3. Progressive Disclosure
|
|
162
|
-
|
|
163
|
-
- **Level 1**: Show most common actions (1-5)
|
|
164
|
-
- **Level 2**: Show AI agents (6-9, A-D)
|
|
165
|
-
- **Level 3**: Show advanced features (T, W, S)
|
|
166
|
-
- **Level 4**: Show help and reference (H, ?)
|
|
167
|
-
|
|
168
|
-
## Menu Handlers
|
|
169
|
-
|
|
170
|
-
### Quick Start Actions (1-5)
|
|
171
|
-
|
|
172
|
-
#### 1. Start New Idea
|
|
173
|
-
|
|
174
|
-
```yaml
|
|
175
|
-
action: launch_idea_creation_flow
|
|
176
|
-
display: |
|
|
177
|
-
💡 **TURN YOUR IDEA INTO REALITY**
|
|
178
|
-
|
|
179
|
-
Agent ONE validates your idea against the 6-dimension ontology:
|
|
180
|
-
|
|
181
|
-
🌟 What's your idea?
|
|
182
|
-
|
|
183
|
-
1. Tech & Software → Apps, websites, digital products
|
|
184
|
-
2. Business & Services → Companies, consulting, coaching
|
|
185
|
-
3. Creative & Content → Art, writing, videos, courses
|
|
186
|
-
4. Custom Project → Tell me about your unique vision
|
|
187
|
-
|
|
188
|
-
Behind the scenes: Engineering Director automatically validates against
|
|
189
|
-
ontology (organizations, people, things, connections, events, knowledge).
|
|
190
|
-
|
|
191
|
-
B. Back to Main Menu
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
next_actions:
|
|
195
|
-
1: tech_software_idea_flow
|
|
196
|
-
2: business_services_idea_flow
|
|
197
|
-
3: creative_content_idea_flow
|
|
198
|
-
4: custom_idea_flow
|
|
199
|
-
|
|
200
|
-
Essential Commands:
|
|
201
|
-
1. /one → Main CASCADE interface (you are here)
|
|
202
|
-
2. /start → Quick idea start with 6-level workflow
|
|
203
|
-
3. /plan → Plan creation with feature assignments
|
|
204
|
-
4. /feature → Feature specification with quality gates
|
|
205
|
-
5. /task → Parallel task execution management
|
|
206
|
-
6. /agent → Direct access to 8 AI agents
|
|
207
|
-
|
|
208
|
-
CASCADE-Specific Commands:
|
|
209
|
-
7. /test → Execute Quality Agent (define tests)
|
|
210
|
-
8. /design → Run Design Agent (create wireframes)
|
|
211
|
-
9. /solve → Launch Problem Solver (ultrathink mode)
|
|
212
|
-
10. /document → Run Documenter Agent (auto-generation)
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
---
|
|
216
|
-
|
|
217
|
-
## ONBOARDING FLOW (NEW)
|
|
218
|
-
|
|
219
|
-
This section describes how to handle users coming from `npx oneie init` with `.onboarding.json`.
|
|
220
|
-
|
|
221
|
-
### When to Trigger Onboarding
|
|
32
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
222
33
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
34
|
+
██████╗ ███╗ ██╗███████╗
|
|
35
|
+
██╔═══██╗████╗ ██║██╔════╝
|
|
36
|
+
██║ ██║██╔██╗ ██║█████╗
|
|
37
|
+
██║ ██║██║╚██╗██║██╔══╝
|
|
38
|
+
╚██████╔╝██║ ╚████║███████╗
|
|
39
|
+
╚═════╝ ╚═╝ ╚═══╝╚══════╝
|
|
226
40
|
|
|
227
|
-
|
|
41
|
+
Make Your Ideas Real
|
|
228
42
|
|
|
229
|
-
|
|
43
|
+
https://one.ie • npx oneie
|
|
230
44
|
|
|
231
|
-
```
|
|
232
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
233
|
-
🚀 ONE PLATFORM ONBOARDING
|
|
234
45
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
235
46
|
|
|
236
|
-
Welcome, [user.name]!
|
|
47
|
+
Welcome back, [user.name]!
|
|
237
48
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
• Status: Pending analysis
|
|
242
|
-
|
|
243
|
-
Let's analyze your website and build your platform!
|
|
49
|
+
Organization: [organization.name]
|
|
50
|
+
Website: [website.url]
|
|
51
|
+
Dev Server: http://localhost:4321 [✓ Running / ⭕ Stopped]
|
|
244
52
|
|
|
245
53
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
246
|
-
|
|
54
|
+
🚀 Quick Commands
|
|
247
55
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
248
|
-
```
|
|
249
|
-
|
|
250
|
-
#### Step 2: Invoke agent-onboard
|
|
251
|
-
|
|
252
|
-
**CRITICAL:** Use the Task tool to invoke agent-onboard (DO NOT use direct function calls).
|
|
253
56
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
57
|
+
Server Management:
|
|
58
|
+
• /server - Check server status
|
|
59
|
+
• /server start - Start development server
|
|
60
|
+
• /server stop - Stop development server
|
|
61
|
+
• /server restart - Restart development server
|
|
257
62
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
3. Map detected features to universal 6-dimension ontology
|
|
261
|
-
4. Create installation-specific branding documentation
|
|
262
|
-
5. Recommend features based on analysis
|
|
63
|
+
Onboarding & Setup:
|
|
64
|
+
• /onboard - Analyze website & extract brand
|
|
263
65
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
66
|
+
Feature Development:
|
|
67
|
+
• /build - Build features with AI specialists
|
|
68
|
+
• /design - Create wireframes & UI components
|
|
69
|
+
• /deploy - Deploy to production
|
|
268
70
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
#### Step 3: Wait for Analysis
|
|
275
|
-
|
|
276
|
-
While agent-onboard is running, show:
|
|
277
|
-
|
|
278
|
-
```
|
|
279
|
-
Analyzing [website.url]...
|
|
280
|
-
|
|
281
|
-
[Wait for agent-onboard to complete]
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
**DO NOT proceed until agent-onboard completes.**
|
|
285
|
-
|
|
286
|
-
#### Step 4: Present Recommended Features
|
|
287
|
-
|
|
288
|
-
After agent-onboard completes, read updated `.onboarding.json` and display:
|
|
289
|
-
|
|
290
|
-
```
|
|
291
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
292
|
-
✨ ANALYSIS COMPLETE
|
|
293
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
71
|
+
Workflow Management:
|
|
72
|
+
• /now - View current task
|
|
73
|
+
• /next - Advance to next inference
|
|
74
|
+
• /todo - View complete task list
|
|
75
|
+
• /done - Mark task complete
|
|
294
76
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
• Secondary color: [brand.colors.secondary]
|
|
298
|
-
• Logo: [brand.logo]
|
|
299
|
-
• Voice: [brand.voice]
|
|
300
|
-
• Audience: [brand.audience]
|
|
301
|
-
|
|
302
|
-
✅ Ontology mapping created:
|
|
303
|
-
• Groups: [mapping.groups] (which group types apply)
|
|
304
|
-
• People: [mapping.people] (which roles apply)
|
|
305
|
-
• Things: [mapping.things] (which thing types apply)
|
|
306
|
-
• Connections: [mapping.connections] (which relationships apply)
|
|
307
|
-
• Events: [mapping.events] (which events tracked)
|
|
308
|
-
• Knowledge: [mapping.knowledge] (which knowledge types used)
|
|
309
|
-
|
|
310
|
-
📄 Documentation saved:
|
|
311
|
-
• /[org-slug]/knowledge/ontology-mapping.md
|
|
312
|
-
• /[org-slug]/knowledge/brand-guide.md
|
|
313
|
-
• /[org-slug]/knowledge/features.md
|
|
77
|
+
Analytics & Insights:
|
|
78
|
+
• /see - View analytics & explore courses
|
|
314
79
|
|
|
315
80
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
316
|
-
|
|
81
|
+
💡 Quick Start
|
|
317
82
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
318
83
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
[... for each required feature ...]
|
|
324
|
-
|
|
325
|
-
DETECTED FROM YOUR SITE
|
|
326
|
-
[ ] [feature.name] (Infer [feature.inferences[0]]-[feature.inferences[1]], [feature.duration])
|
|
327
|
-
[... for each detected feature ...]
|
|
84
|
+
1. Start server: /server start
|
|
85
|
+
2. Analyze website: /onboard
|
|
86
|
+
3. Build features: /build [feature-name]
|
|
87
|
+
4. Deploy: /deploy
|
|
328
88
|
|
|
329
|
-
|
|
330
|
-
[ ] [feature.name] (Infer [feature.inferences[0]]-[feature.inferences[1]], [feature.duration])
|
|
331
|
-
[... for each AI feature ...]
|
|
89
|
+
Or just tell me what you want to build!
|
|
332
90
|
|
|
333
91
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
334
|
-
|
|
335
|
-
Which features would you like to build?
|
|
336
|
-
|
|
337
|
-
Type feature names (comma-separated) or "all foundation" or "all":
|
|
338
92
|
```
|
|
339
93
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
User responds with selections like:
|
|
343
|
-
- `landing page, authentication, multi-tenant`
|
|
344
|
-
- `all foundation`
|
|
345
|
-
- `all`
|
|
346
|
-
- Feature IDs: `landing-page, authentication, multi-tenant, ai-agents`
|
|
347
|
-
|
|
348
|
-
Parse the response and extract selected feature IDs.
|
|
349
|
-
|
|
350
|
-
#### Step 6: Invoke agent-director
|
|
351
|
-
|
|
352
|
-
**CRITICAL:** Use the Task tool to invoke agent-director.
|
|
94
|
+
**WITHOUT onboarding data:**
|
|
353
95
|
|
|
354
|
-
```yaml
|
|
355
|
-
Task to delegate: |
|
|
356
|
-
Create 100-inference plan for selected features:
|
|
357
|
-
[list of selected feature IDs]
|
|
358
|
-
|
|
359
|
-
Based on universal 6-dimension ontology.
|
|
360
|
-
Reference ontology mapping at:
|
|
361
|
-
/[org-slug]/knowledge/ontology-mapping.md
|
|
362
|
-
|
|
363
|
-
Generate:
|
|
364
|
-
1. Feature collection (plan document)
|
|
365
|
-
2. 100-inference sequence
|
|
366
|
-
3. Specialist assignments
|
|
367
|
-
4. Dependency mapping
|
|
368
|
-
5. Timeline estimates
|
|
369
|
-
|
|
370
|
-
Update .onboarding.json with plan details.
|
|
371
|
-
|
|
372
|
-
Start execution immediately after plan created.
|
|
373
|
-
|
|
374
|
-
Agent: agent-director
|
|
375
96
|
```
|
|
97
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
98
|
+
|
|
99
|
+
██████╗ ███╗ ██╗███████╗
|
|
100
|
+
██╔═══██╗████╗ ██║██╔════╝
|
|
101
|
+
██║ ██║██╔██╗ ██║█████╗
|
|
102
|
+
██║ ██║██║╚██╗██║██╔══╝
|
|
103
|
+
╚██████╔╝██║ ╚████║███████╗
|
|
104
|
+
╚═════╝ ╚═╝ ╚═══╝╚══════╝
|
|
376
105
|
|
|
377
|
-
|
|
106
|
+
Make Your Ideas Real
|
|
378
107
|
|
|
379
|
-
|
|
108
|
+
https://one.ie • npx oneie
|
|
380
109
|
|
|
381
|
-
```
|
|
382
110
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
383
|
-
✅ PLAN GENERATED
|
|
384
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
385
|
-
|
|
386
|
-
Total inferences: [plan.totalInferences]
|
|
387
|
-
Estimated duration: [plan.estimatedDuration]
|
|
388
111
|
|
|
389
|
-
|
|
390
|
-
[for each phase:]
|
|
391
|
-
[phase.name] (Infer [phase.inferences[0]]-[phase.inferences[1]])
|
|
392
|
-
Specialist: [phase.specialist]
|
|
393
|
-
Status: [phase.status]
|
|
112
|
+
Dev Server: http://localhost:4321 [✓ Running / ⭕ Stopped]
|
|
394
113
|
|
|
395
114
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
396
|
-
🚀
|
|
115
|
+
🚀 Essential Commands
|
|
397
116
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
398
117
|
|
|
399
|
-
|
|
400
|
-
|
|
118
|
+
Get Started:
|
|
119
|
+
• /server start - Start development server
|
|
120
|
+
• /onboard - Analyze your website & extract brand
|
|
401
121
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
#### Step 8: Update Status and Let Specialists Work
|
|
406
|
-
|
|
407
|
-
1. Update `.onboarding.json` status to `"building"`
|
|
408
|
-
2. Let agent-director coordinate specialist agents
|
|
409
|
-
3. DO NOT micromanage - trust the workflow system
|
|
410
|
-
4. Specialist agents will:
|
|
411
|
-
- agent-backend: Implement backend features
|
|
412
|
-
- agent-frontend: Build UI/UX
|
|
413
|
-
- agent-integrator: Connect external systems
|
|
414
|
-
- agent-quality: Validate and test
|
|
415
|
-
- agent-designer: Create wireframes
|
|
416
|
-
- agent-documenter: Write documentation
|
|
417
|
-
|
|
418
|
-
### Progress Check
|
|
122
|
+
Build & Deploy:
|
|
123
|
+
• /build - Build features with AI specialists
|
|
124
|
+
• /deploy - Deploy to production
|
|
419
125
|
|
|
420
|
-
|
|
126
|
+
Need Help?
|
|
127
|
+
• /server - Full server management commands
|
|
128
|
+
• /now - View current workflow state
|
|
129
|
+
• /see - Explore platform capabilities
|
|
421
130
|
|
|
422
|
-
```
|
|
423
131
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
424
|
-
|
|
132
|
+
✨ What would you like to build?
|
|
425
133
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
426
134
|
|
|
427
|
-
|
|
428
|
-
|
|
135
|
+
Examples:
|
|
136
|
+
• "Build a landing page for my product"
|
|
137
|
+
• "Create a blog with content management"
|
|
138
|
+
• "Add user authentication"
|
|
139
|
+
• "Set up payment processing"
|
|
429
140
|
|
|
430
|
-
|
|
431
|
-
[for each phase:]
|
|
432
|
-
[✅/🔨/⏳] [phase.name]
|
|
433
|
-
Status: [phase.status]
|
|
434
|
-
[if completed:] Completed: [phase.completedAt formatted]
|
|
435
|
-
[if completed and has URL:] URL: [phase.url]
|
|
436
|
-
[if in_progress:] Started: [phase.startedAt formatted]
|
|
141
|
+
Just tell me what you want!
|
|
437
142
|
|
|
438
143
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
439
|
-
|
|
440
|
-
Building continues in background.
|
|
441
|
-
Check back later for updates, or type /see for live URLs.
|
|
442
144
|
```
|
|
443
145
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
If user runs `/one` again while status is `"completed"`:
|
|
146
|
+
---
|
|
447
147
|
|
|
448
|
-
|
|
449
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
450
|
-
✨ ONBOARDING COMPLETE!
|
|
451
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
148
|
+
## Command Reference
|
|
452
149
|
|
|
453
|
-
|
|
150
|
+
### Server Commands
|
|
454
151
|
|
|
455
|
-
|
|
152
|
+
Use `/server` for all development server management:
|
|
153
|
+
- `/server` - Check if server is running
|
|
154
|
+
- `/server start` - Start server in background
|
|
155
|
+
- `/server stop` - Stop running server
|
|
156
|
+
- `/server restart` - Restart server
|
|
456
157
|
|
|
457
|
-
|
|
458
|
-
[for each completed phase:]
|
|
459
|
-
✅ [phase.name]
|
|
460
|
-
[if has URL:] 🌐 [phase.url]
|
|
158
|
+
See `.claude/commands/server.md` for implementation details.
|
|
461
159
|
|
|
462
|
-
|
|
463
|
-
📖 Ontology mapping: /[org-slug]/knowledge/ontology-mapping.md
|
|
464
|
-
🎨 Brand guide: /[org-slug]/knowledge/brand-guide.md
|
|
465
|
-
📚 Knowledge base: /[org-slug]/knowledge/
|
|
160
|
+
### Onboarding Commands
|
|
466
161
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
162
|
+
Use `/onboard` to analyze websites and extract brand identity:
|
|
163
|
+
- Analyzes website structure and content
|
|
164
|
+
- Extracts brand colors, fonts, and voice
|
|
165
|
+
- Maps features to 6-dimension ontology
|
|
166
|
+
- Creates installation-specific documentation
|
|
472
167
|
|
|
473
|
-
|
|
474
|
-
/build → Add more features
|
|
475
|
-
/design → Create custom UI components
|
|
476
|
-
/deploy → Deploy updates
|
|
168
|
+
See `.claude/commands/onboard.md` for implementation details.
|
|
477
169
|
|
|
478
|
-
|
|
479
|
-
/see → View analytics and insights
|
|
170
|
+
### Workflow Commands
|
|
480
171
|
|
|
481
|
-
|
|
482
|
-
|
|
172
|
+
Use workflow commands for inference-based development:
|
|
173
|
+
- `/now` - Display current inference and progress
|
|
174
|
+
- `/next` - Advance to next inference
|
|
175
|
+
- `/todo` - View complete 100-inference sequence
|
|
176
|
+
- `/done` - Mark current inference complete
|
|
483
177
|
|
|
484
|
-
|
|
178
|
+
See `one/knowledge/todo.md` for the 100-inference template.
|
|
485
179
|
|
|
486
180
|
---
|
|
487
181
|
|
|
488
|
-
##
|
|
182
|
+
## Key Principles
|
|
489
183
|
|
|
490
|
-
1. **
|
|
491
|
-
2. **
|
|
492
|
-
3. **
|
|
493
|
-
4. **
|
|
494
|
-
5. **
|
|
495
|
-
6. **SHOW PROGRESS** to user - be transparent about what's happening
|
|
496
|
-
7. **ENABLE RESUMPTION** - if interrupted, user can run /one again to see status
|
|
497
|
-
8. **BACKWARD COMPATIBLE** - if no `.onboarding.json`, use normal /one menu
|
|
184
|
+
1. **FAST** - Show welcome screen instantly (< 1 second)
|
|
185
|
+
2. **CLEAR** - Display server status and available commands
|
|
186
|
+
3. **MODULAR** - Each feature has dedicated command
|
|
187
|
+
4. **ACTIONABLE** - Provide specific next steps
|
|
188
|
+
5. **HELPFUL** - Guide users to right command for their needs
|
|
498
189
|
|
|
499
190
|
---
|
|
500
191
|
|
|
501
|
-
##
|
|
502
|
-
|
|
503
|
-
### After agent-onboard Completes
|
|
504
|
-
|
|
505
|
-
Update `.onboarding.json` with:
|
|
506
|
-
```json
|
|
507
|
-
{
|
|
508
|
-
"status": "features_presented",
|
|
509
|
-
"website": {
|
|
510
|
-
"analyzed": true,
|
|
511
|
-
"analyzedAt": [timestamp],
|
|
512
|
-
"brandExtracted": true,
|
|
513
|
-
"ontologyGenerated": true
|
|
514
|
-
},
|
|
515
|
-
"brand": { ... },
|
|
516
|
-
"ontology": { ... },
|
|
517
|
-
"features": {
|
|
518
|
-
"recommended": [ ... ]
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
```
|
|
522
|
-
|
|
523
|
-
### After User Selects Features
|
|
524
|
-
|
|
525
|
-
Update `.onboarding.json` with:
|
|
526
|
-
```json
|
|
527
|
-
{
|
|
528
|
-
"status": "plan_generated",
|
|
529
|
-
"features": {
|
|
530
|
-
"selected": ["landing-page", "authentication", ...]
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
```
|
|
192
|
+
## Implementation Notes
|
|
534
193
|
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
{
|
|
540
|
-
"status": "building",
|
|
541
|
-
"plan": {
|
|
542
|
-
"status": "in_progress",
|
|
543
|
-
"totalInferences": 70,
|
|
544
|
-
"estimatedDuration": "~50 min",
|
|
545
|
-
"currentInference": 0,
|
|
546
|
-
"progress": 0,
|
|
547
|
-
"phases": [ ... ]
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
```
|
|
551
|
-
|
|
552
|
-
### After All Phases Complete
|
|
553
|
-
|
|
554
|
-
Update `.onboarding.json` with:
|
|
555
|
-
```json
|
|
556
|
-
{
|
|
557
|
-
"status": "completed",
|
|
558
|
-
"plan": {
|
|
559
|
-
"status": "completed",
|
|
560
|
-
"completedAt": [timestamp]
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
```
|
|
194
|
+
**DO NOT:**
|
|
195
|
+
- Start server automatically (let user control with `/server start`)
|
|
196
|
+
- Launch agent-onboard automatically (let user run `/onboard`)
|
|
197
|
+
- Block waiting for background processes
|
|
564
198
|
|
|
565
|
-
|
|
199
|
+
**DO:**
|
|
200
|
+
- Display current status (server running/stopped, onboarding complete/pending)
|
|
201
|
+
- Show relevant commands based on context
|
|
202
|
+
- Guide users to specific commands for detailed operations
|
|
203
|
+
- Keep welcome screen fast and lightweight
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
# /server - Development Server Management
|
|
2
|
+
|
|
3
|
+
## Instructions for Claude
|
|
4
|
+
|
|
5
|
+
When user types `/server [action]`, manage the ONE Platform development server.
|
|
6
|
+
|
|
7
|
+
### Supported Actions
|
|
8
|
+
|
|
9
|
+
- `/server` or `/server status` - Check server status
|
|
10
|
+
- `/server start` - Start development server
|
|
11
|
+
- `/server stop` - Stop development server
|
|
12
|
+
- `/server restart` - Restart development server
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Action: Status (Default)
|
|
17
|
+
|
|
18
|
+
Check if server is running on port 4321:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
lsof -ti:4321 2>/dev/null
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**If running (PID returned):**
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
28
|
+
✅ Dev Server Running
|
|
29
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
30
|
+
|
|
31
|
+
URL: http://localhost:4321
|
|
32
|
+
PID: [process-id]
|
|
33
|
+
|
|
34
|
+
Commands:
|
|
35
|
+
• /server stop - Stop server
|
|
36
|
+
• /server restart - Restart server
|
|
37
|
+
|
|
38
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**If not running:**
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
45
|
+
⭕ Dev Server Not Running
|
|
46
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
47
|
+
|
|
48
|
+
Start it with:
|
|
49
|
+
• /server start
|
|
50
|
+
|
|
51
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Action: Start
|
|
57
|
+
|
|
58
|
+
Start the development server if not already running.
|
|
59
|
+
|
|
60
|
+
### Step 1: Check if Already Running
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
lsof -ti:4321 2>/dev/null
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
If running, show:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
⚠️ Server already running on port 4321
|
|
70
|
+
|
|
71
|
+
URL: http://localhost:4321
|
|
72
|
+
|
|
73
|
+
Use /server restart to restart it.
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Step 2: Verify web Directory Exists
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
[ -d web ] && echo "exists" || echo "missing"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
If missing, show error:
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
❌ web/ directory not found
|
|
86
|
+
|
|
87
|
+
Are you in the ONE Platform root directory?
|
|
88
|
+
|
|
89
|
+
Current directory: [pwd]
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Step 3: Start Server in Background
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
cd web && bun run dev > /dev/null 2>&1 &
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Step 4: Wait and Verify (2 seconds)
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
sleep 2 && lsof -ti:4321 2>/dev/null
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Step 5: Open Start Page in Browser
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
open http://localhost:4321/start 2>/dev/null || xdg-open http://localhost:4321/start 2>/dev/null || start http://localhost:4321/start 2>/dev/null
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**If started successfully:**
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
114
|
+
🚀 Dev Server Started!
|
|
115
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
116
|
+
|
|
117
|
+
URL: http://localhost:4321/start
|
|
118
|
+
PID: [process-id]
|
|
119
|
+
|
|
120
|
+
Opening start page in your browser...
|
|
121
|
+
|
|
122
|
+
The server is running in the background.
|
|
123
|
+
|
|
124
|
+
Commands:
|
|
125
|
+
• /server stop - Stop server
|
|
126
|
+
• /server restart - Restart server
|
|
127
|
+
• /server status - Check status
|
|
128
|
+
|
|
129
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**If failed to start:**
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
❌ Failed to start dev server
|
|
136
|
+
|
|
137
|
+
Check for errors:
|
|
138
|
+
cd web && bun run dev
|
|
139
|
+
|
|
140
|
+
Possible issues:
|
|
141
|
+
• Port 4321 already in use
|
|
142
|
+
• Missing dependencies (run: bun install)
|
|
143
|
+
• Build errors in web/
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Action: Stop
|
|
149
|
+
|
|
150
|
+
Stop the development server if running.
|
|
151
|
+
|
|
152
|
+
### Step 1: Find Process
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
lsof -ti:4321 2>/dev/null
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**If not running:**
|
|
159
|
+
|
|
160
|
+
```
|
|
161
|
+
⚠️ No server running on port 4321
|
|
162
|
+
|
|
163
|
+
Nothing to stop!
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Step 2: Kill Process
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
lsof -ti:4321 | xargs kill 2>/dev/null
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Step 3: Verify Stopped
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
sleep 1 && lsof -ti:4321 2>/dev/null || echo "stopped"
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
**If stopped successfully:**
|
|
179
|
+
|
|
180
|
+
```
|
|
181
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
182
|
+
⭕ Dev Server Stopped
|
|
183
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
184
|
+
|
|
185
|
+
Start it again with:
|
|
186
|
+
• /server start
|
|
187
|
+
|
|
188
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
**If failed to stop:**
|
|
192
|
+
|
|
193
|
+
```
|
|
194
|
+
❌ Failed to stop server gracefully
|
|
195
|
+
|
|
196
|
+
Force kill with:
|
|
197
|
+
lsof -ti:4321 | xargs kill -9
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## Action: Restart
|
|
203
|
+
|
|
204
|
+
Restart the development server (stop then start).
|
|
205
|
+
|
|
206
|
+
### Step 1: Stop Server
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
lsof -ti:4321 | xargs kill 2>/dev/null
|
|
210
|
+
sleep 1
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Step 2: Start Server
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
cd web && bun run dev > /dev/null 2>&1 &
|
|
217
|
+
sleep 2
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### Step 3: Verify Running
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
lsof -ti:4321 2>/dev/null
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### Step 4: Open Start Page in Browser
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
open http://localhost:4321/start 2>/dev/null || xdg-open http://localhost:4321/start 2>/dev/null || start http://localhost:4321/start 2>/dev/null
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
**If restarted successfully:**
|
|
233
|
+
|
|
234
|
+
```
|
|
235
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
236
|
+
🔄 Dev Server Restarted!
|
|
237
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
238
|
+
|
|
239
|
+
URL: http://localhost:4321/start
|
|
240
|
+
PID: [process-id]
|
|
241
|
+
|
|
242
|
+
Fresh server instance running.
|
|
243
|
+
Opening start page in your browser...
|
|
244
|
+
|
|
245
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
**If restart failed:**
|
|
249
|
+
|
|
250
|
+
```
|
|
251
|
+
❌ Failed to restart server
|
|
252
|
+
|
|
253
|
+
Try manually:
|
|
254
|
+
1. /server stop
|
|
255
|
+
2. /server start
|
|
256
|
+
|
|
257
|
+
Or check logs:
|
|
258
|
+
cd web && bun run dev
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
## Backend Server (Convex)
|
|
264
|
+
|
|
265
|
+
If user mentions "backend server" or "convex dev":
|
|
266
|
+
|
|
267
|
+
```
|
|
268
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
269
|
+
🔧 Backend Server (Convex)
|
|
270
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
271
|
+
|
|
272
|
+
The backend runs on Convex Cloud:
|
|
273
|
+
URL: https://shocking-falcon-870.convex.cloud
|
|
274
|
+
|
|
275
|
+
For local backend development:
|
|
276
|
+
cd backend && npx convex dev
|
|
277
|
+
|
|
278
|
+
For production deployment:
|
|
279
|
+
cd backend && npx convex deploy
|
|
280
|
+
|
|
281
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## Key Principles
|
|
287
|
+
|
|
288
|
+
1. **FAST** - Server starts in < 3 seconds
|
|
289
|
+
2. **BACKGROUND** - Run server in background, don't block user
|
|
290
|
+
3. **RELIABLE** - Always verify server status before/after actions
|
|
291
|
+
4. **CLEAR** - Show clear status and actionable commands
|
|
292
|
+
5. **SAFE** - Graceful shutdown, verify before killing processes
|
|
293
|
+
6. **HELPFUL** - Auto-open start page (http://localhost:4321/start) after successful start/restart
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
## Error Handling
|
|
298
|
+
|
|
299
|
+
**Port already in use:**
|
|
300
|
+
|
|
301
|
+
```
|
|
302
|
+
❌ Port 4321 is already in use
|
|
303
|
+
|
|
304
|
+
Kill the process:
|
|
305
|
+
lsof -ti:4321 | xargs kill
|
|
306
|
+
|
|
307
|
+
Or use a different port:
|
|
308
|
+
cd web && bun run dev -- --port 4322
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
**Missing dependencies:**
|
|
312
|
+
|
|
313
|
+
```
|
|
314
|
+
❌ Server failed to start - missing dependencies
|
|
315
|
+
|
|
316
|
+
Install dependencies:
|
|
317
|
+
cd web && bun install
|
|
318
|
+
|
|
319
|
+
Then try again:
|
|
320
|
+
/server start
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
**Build errors:**
|
|
324
|
+
|
|
325
|
+
```
|
|
326
|
+
❌ Server failed to start - build errors
|
|
327
|
+
|
|
328
|
+
Check for TypeScript errors:
|
|
329
|
+
cd web && bunx astro check
|
|
330
|
+
|
|
331
|
+
View detailed output:
|
|
332
|
+
cd web && bun run dev
|
|
333
|
+
```
|
package/folders.yaml
CHANGED
package/package.json
CHANGED