oneie 3.6.0 → 3.6.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-lawyer.md +7 -0
- package/.claude/agents/agent-onboard.md +7 -0
- package/.claude/commands/deploy.md +77 -150
- package/.mcp.json +68 -0
- package/CREATE-WEBSITE.md +442 -0
- package/SECURITY.md +31 -0
- package/TESTING-ONBOARDING.md +185 -0
- package/dist/commands/create-website.d.ts +19 -0
- package/dist/commands/create-website.d.ts.map +1 -0
- package/dist/commands/create-website.js +231 -0
- package/dist/commands/create-website.js.map +1 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +116 -6
- package/dist/commands/init.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/folders.yaml +1 -1
- package/package.json +8 -2
- package/.claude/agents/agent-onboard-example-output.md +0 -600
- package/.claude/commands/ONBOARDING_ENHANCEMENT_SUMMARY.md +0 -266
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
# /one Command Onboarding Enhancement
|
|
2
|
-
|
|
3
|
-
**Date:** 2025-10-20
|
|
4
|
-
**File Modified:** `.claude/commands/one.md`
|
|
5
|
-
**Lines Added:** ~350 lines (original 214 → updated 564)
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Summary of Changes
|
|
10
|
-
|
|
11
|
-
Enhanced the `/one` command to support seamless onboarding flow for users coming from `npx oneie init`.
|
|
12
|
-
|
|
13
|
-
### Key Features Added
|
|
14
|
-
|
|
15
|
-
1. **Onboarding Detection** - Checks for `.onboarding.json` on every `/one` invocation
|
|
16
|
-
2. **State-Based Flow** - Handles 4 states: pending_analysis, building, completed, normal
|
|
17
|
-
3. **Agent Coordination** - Invokes agent-onboard and agent-director via Task tool
|
|
18
|
-
4. **Progress Tracking** - Shows real-time progress during builds
|
|
19
|
-
5. **Resumption Support** - Can resume interrupted onboarding flows
|
|
20
|
-
6. **Backward Compatibility** - Normal /one behavior if no onboarding detected
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Changes in Detail
|
|
25
|
-
|
|
26
|
-
### 1. Updated Initialization Checks (Lines 48-99)
|
|
27
|
-
|
|
28
|
-
**Added Step 1: Onboarding Check**
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
find . -maxdepth 2 -name ".onboarding.json" -type f 2>/dev/null | head -1
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
- Searches for `.onboarding.json` in installation folders
|
|
35
|
-
- Reads file and checks `status` field
|
|
36
|
-
- Routes to appropriate flow based on status:
|
|
37
|
-
- `"pending_analysis"` → Start onboarding flow
|
|
38
|
-
- `"building"` → Show progress summary
|
|
39
|
-
- `"completed"` → Show completion summary + normal menu
|
|
40
|
-
- Other/missing → Normal /one behavior
|
|
41
|
-
|
|
42
|
-
### 2. Added Onboarding Flow Section (Lines 217-564)
|
|
43
|
-
|
|
44
|
-
**8 Steps for Complete Onboarding:**
|
|
45
|
-
|
|
46
|
-
#### Step 1: Display Welcome with Context
|
|
47
|
-
- Shows organization name, website URL, and status
|
|
48
|
-
- Friendly welcome message with user's name
|
|
49
|
-
|
|
50
|
-
#### Step 2: Invoke agent-onboard
|
|
51
|
-
- Uses Task tool (not direct function calls)
|
|
52
|
-
- Delegates website analysis to agent-onboard
|
|
53
|
-
- Passes website URL and organization slug
|
|
54
|
-
|
|
55
|
-
#### Step 3: Wait for Analysis
|
|
56
|
-
- Shows "Analyzing..." message
|
|
57
|
-
- Blocks until agent-onboard completes
|
|
58
|
-
|
|
59
|
-
#### Step 4: Present Recommended Features
|
|
60
|
-
- Reads updated `.onboarding.json`
|
|
61
|
-
- Displays extracted brand identity
|
|
62
|
-
- Shows custom ontology dimensions
|
|
63
|
-
- Lists recommended features in 3 categories:
|
|
64
|
-
- Foundation (always recommended)
|
|
65
|
-
- Detected from site
|
|
66
|
-
- AI & Automation (optional)
|
|
67
|
-
|
|
68
|
-
#### Step 5: Accept User Feature Selection
|
|
69
|
-
- Parses user input (comma-separated, "all foundation", "all")
|
|
70
|
-
- Extracts selected feature IDs
|
|
71
|
-
|
|
72
|
-
#### Step 6: Invoke agent-director
|
|
73
|
-
- Uses Task tool to delegate planning
|
|
74
|
-
- Passes selected features and custom ontology path
|
|
75
|
-
- agent-director creates 100-inference plan
|
|
76
|
-
|
|
77
|
-
#### Step 7: Show Plan Summary
|
|
78
|
-
- Displays total inferences and estimated duration
|
|
79
|
-
- Lists phases with specialist assignments
|
|
80
|
-
- Announces build start
|
|
81
|
-
|
|
82
|
-
#### Step 8: Update Status and Let Specialists Work
|
|
83
|
-
- Updates `.onboarding.json` status to "building"
|
|
84
|
-
- Trusts agent-director to coordinate specialists:
|
|
85
|
-
- agent-backend (backend features)
|
|
86
|
-
- agent-frontend (UI/UX)
|
|
87
|
-
- agent-integrator (external systems)
|
|
88
|
-
- agent-quality (validation)
|
|
89
|
-
- agent-designer (wireframes)
|
|
90
|
-
- agent-documenter (documentation)
|
|
91
|
-
|
|
92
|
-
### 3. Added Progress Check (Lines 417-441)
|
|
93
|
-
|
|
94
|
-
When user runs `/one` during build:
|
|
95
|
-
- Shows current progress (X/Y inferences, Z% complete)
|
|
96
|
-
- Lists phase status with icons (✅ completed, 🔨 in progress, ⏳ pending)
|
|
97
|
-
- Displays completion timestamps and URLs
|
|
98
|
-
- Reminds user building continues in background
|
|
99
|
-
|
|
100
|
-
### 4. Added Completion Summary (Lines 443-483)
|
|
101
|
-
|
|
102
|
-
When user runs `/one` after completion:
|
|
103
|
-
- Congratulates user
|
|
104
|
-
- Lists completed features with URLs
|
|
105
|
-
- Shows documentation locations
|
|
106
|
-
- Suggests next steps (/build, /design, /deploy, /see)
|
|
107
|
-
- Then continues to normal /one menu
|
|
108
|
-
|
|
109
|
-
### 5. Added Critical Rules (Lines 487-497)
|
|
110
|
-
|
|
111
|
-
**8 Critical Rules for Onboarding:**
|
|
112
|
-
|
|
113
|
-
1. ALWAYS check for `.onboarding.json` FIRST
|
|
114
|
-
2. NEVER skip agent-onboard (website analysis is critical)
|
|
115
|
-
3. ALWAYS use Task tool to invoke agents
|
|
116
|
-
4. WAIT for agents to complete before proceeding
|
|
117
|
-
5. UPDATE `.onboarding.json` after each major step
|
|
118
|
-
6. SHOW PROGRESS to user (transparency)
|
|
119
|
-
7. ENABLE RESUMPTION (can restart if interrupted)
|
|
120
|
-
8. BACKWARD COMPATIBLE (normal /one if no onboarding)
|
|
121
|
-
|
|
122
|
-
### 6. Added File Update Patterns (Lines 500-563)
|
|
123
|
-
|
|
124
|
-
Documents how to update `.onboarding.json` at each stage:
|
|
125
|
-
|
|
126
|
-
- **After agent-onboard:** Add brand, ontology, recommended features
|
|
127
|
-
- **After user selection:** Add selected feature IDs
|
|
128
|
-
- **After agent-director planning:** Add plan with phases and inferences
|
|
129
|
-
- **After completion:** Mark plan as completed with timestamp
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
## Integration Points
|
|
134
|
-
|
|
135
|
-
### Works With
|
|
136
|
-
|
|
137
|
-
1. **CLI (`npx oneie init`)** - Creates `.onboarding.json` with user info
|
|
138
|
-
2. **agent-onboard** - Analyzes website, extracts brand, generates ontology
|
|
139
|
-
3. **agent-director** - Creates 100-inference plan, coordinates specialists
|
|
140
|
-
4. **Specialist agents** - Implement features (backend, frontend, integrator, etc.)
|
|
141
|
-
5. **Installation folders** - Custom ontology and documentation stored here
|
|
142
|
-
|
|
143
|
-
### File Dependencies
|
|
144
|
-
|
|
145
|
-
- **Input:** `.onboarding.json` (created by CLI)
|
|
146
|
-
- **Reads:** Installation folder structure, custom ontology
|
|
147
|
-
- **Updates:** `.onboarding.json` (status transitions)
|
|
148
|
-
- **Creates:** Progress tracking, feature documentation
|
|
149
|
-
|
|
150
|
-
---
|
|
151
|
-
|
|
152
|
-
## State Transitions
|
|
153
|
-
|
|
154
|
-
```
|
|
155
|
-
pending_analysis
|
|
156
|
-
↓ (after agent-onboard completes)
|
|
157
|
-
features_presented
|
|
158
|
-
↓ (after user selects features)
|
|
159
|
-
plan_generated
|
|
160
|
-
↓ (after agent-director creates plan)
|
|
161
|
-
building
|
|
162
|
-
↓ (after all phases complete)
|
|
163
|
-
completed
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
---
|
|
167
|
-
|
|
168
|
-
## User Experience Flow
|
|
169
|
-
|
|
170
|
-
```
|
|
171
|
-
$ npx oneie init
|
|
172
|
-
→ Collects name, org, website, email
|
|
173
|
-
→ Creates /[org-slug]/ folder
|
|
174
|
-
→ Generates .onboarding.json
|
|
175
|
-
→ Launches Claude Code
|
|
176
|
-
|
|
177
|
-
$ /one (in Claude)
|
|
178
|
-
→ Detects .onboarding.json (status: pending_analysis)
|
|
179
|
-
→ Displays welcome with context
|
|
180
|
-
→ Invokes agent-onboard
|
|
181
|
-
→ Shows brand extraction results
|
|
182
|
-
→ Presents recommended features
|
|
183
|
-
→ User selects features
|
|
184
|
-
→ Invokes agent-director
|
|
185
|
-
→ Shows plan summary
|
|
186
|
-
→ Starts build
|
|
187
|
-
|
|
188
|
-
$ /one (check progress)
|
|
189
|
-
→ Detects .onboarding.json (status: building)
|
|
190
|
-
→ Shows current progress (X/Y inferences)
|
|
191
|
-
→ Lists phase status
|
|
192
|
-
→ Building continues
|
|
193
|
-
|
|
194
|
-
$ /one (after completion)
|
|
195
|
-
→ Detects .onboarding.json (status: completed)
|
|
196
|
-
→ Shows completion summary
|
|
197
|
-
→ Lists live URLs
|
|
198
|
-
→ Continues to normal /one menu
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
---
|
|
202
|
-
|
|
203
|
-
## Backward Compatibility
|
|
204
|
-
|
|
205
|
-
**No Breaking Changes:**
|
|
206
|
-
|
|
207
|
-
- If `.onboarding.json` doesn't exist → Normal /one behavior
|
|
208
|
-
- All existing functionality preserved
|
|
209
|
-
- New onboarding is opt-in (requires CLI to create file)
|
|
210
|
-
- Normal menu still accessible after onboarding completes
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
## Testing Checklist
|
|
215
|
-
|
|
216
|
-
To test this enhancement:
|
|
217
|
-
|
|
218
|
-
- [ ] Create mock `.onboarding.json` with status "pending_analysis"
|
|
219
|
-
- [ ] Run `/one` and verify onboarding flow triggers
|
|
220
|
-
- [ ] Verify agent-onboard is invoked via Task tool
|
|
221
|
-
- [ ] Check `.onboarding.json` updates after analysis
|
|
222
|
-
- [ ] Verify feature selection works (comma-separated input)
|
|
223
|
-
- [ ] Verify agent-director is invoked with correct params
|
|
224
|
-
- [ ] Test progress check (status: "building")
|
|
225
|
-
- [ ] Test completion summary (status: "completed")
|
|
226
|
-
- [ ] Test normal /one behavior (no .onboarding.json)
|
|
227
|
-
- [ ] Test resumption (interrupt and restart)
|
|
228
|
-
|
|
229
|
-
---
|
|
230
|
-
|
|
231
|
-
## Key Benefits
|
|
232
|
-
|
|
233
|
-
1. **Seamless Handoff** - CLI → Claude coordination is smooth
|
|
234
|
-
2. **Personalized** - Website analysis creates custom ontology
|
|
235
|
-
3. **Transparent** - User sees progress at every step
|
|
236
|
-
4. **Resumable** - Can check status and resume anytime
|
|
237
|
-
5. **Automated** - Minimal user input, maximum automation
|
|
238
|
-
6. **Backward Compatible** - Doesn't break existing /one usage
|
|
239
|
-
|
|
240
|
-
---
|
|
241
|
-
|
|
242
|
-
## Related Files
|
|
243
|
-
|
|
244
|
-
- **CLI Source:** `cli/src/commands/init.ts` (creates .onboarding.json)
|
|
245
|
-
- **Agent Specs:**
|
|
246
|
-
- `.claude/agents/agent-onboard.md` (website analysis)
|
|
247
|
-
- `.claude/agents/agent-director.md` (plan generation)
|
|
248
|
-
- **Documentation:**
|
|
249
|
-
- `one/knowledge/cli-claude-handoff.md` (handoff specification)
|
|
250
|
-
- `one/knowledge/installation-folders.md` (folder structure)
|
|
251
|
-
|
|
252
|
-
---
|
|
253
|
-
|
|
254
|
-
## Next Steps
|
|
255
|
-
|
|
256
|
-
1. **Implement CLI side** - `npx oneie init` command
|
|
257
|
-
2. **Test onboarding flow** - End-to-end with real website
|
|
258
|
-
3. **Enhance agent-onboard** - Website analysis logic
|
|
259
|
-
4. **Add feature library** - Predefined features for recommendations
|
|
260
|
-
5. **Create analytics** - Track onboarding success rates
|
|
261
|
-
|
|
262
|
-
---
|
|
263
|
-
|
|
264
|
-
**Status:** ✅ Implementation Complete
|
|
265
|
-
|
|
266
|
-
The `/one` command now supports full onboarding flow while maintaining 100% backward compatibility!
|