oneie 3.6.6 → 3.6.11
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 +83 -0
- package/.claude/agents/agent-designer.md +97 -0
- package/.claude/agents/agent-director.md +118 -7
- package/.claude/agents/agent-documenter.md +93 -0
- package/.claude/agents/agent-frontend.md +96 -0
- package/.claude/agents/agent-ops.md +182 -25
- package/.claude/agents/agent-problem-solver.md +166 -0
- package/.claude/agents/agent-quality.md +127 -0
- package/.claude/commands/build.md +293 -0
- package/.claude/commands/cascade.md +231 -127
- package/.claude/commands/mcp-toggle.md +93 -0
- package/.claude/commands/onboard.md +179 -0
- package/.claude/commands/one.md +236 -516
- package/.claude/commands/plan.md +394 -80
- package/.claude/commands/release.md +41 -19
- package/.claude/commands/server.md +335 -0
- package/.claude/hooks/root-cleanup.py +75 -0
- package/.claude/skills/INDEX.md +523 -0
- package/.claude/skills/REGISTRY.md +529 -0
- package/.claude/skills/agent-backend-create-mutation.md +319 -0
- package/.claude/skills/agent-designer-create-wireframe.md +341 -0
- package/.claude/skills/agent-frontend-create-page.md +413 -0
- package/.claude/skills/agents/README.md +238 -0
- package/dist/clone-web.js +1 -1
- package/dist/clone-web.js.map +1 -1
- package/folders.yaml +1 -1
- package/one/.obsidian/workspace.json +38 -38
- package/one/connections/api/queries-reference.md +842 -0
- package/one/connections/api-reference.md +1011 -0
- package/one/connections/integration-examples.md +875 -0
- package/one/connections/integration-guide.md +869 -0
- package/one/connections/integration-phase2.md +736 -0
- package/one/events/API_ROUTES_FIXES_SUMMARY.md +262 -0
- package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +636 -0
- package/one/events/BEFORE_AFTER_COMPARISON.md +960 -0
- package/one/events/CONNECTIONS_DEMO.md +501 -0
- package/one/events/DELIVERABLES.md +432 -0
- package/one/events/DEMO-GROUPS-PAGE.md +392 -0
- package/one/events/DEMO-TESTING-SUMMARY.md +518 -0
- package/one/events/DEMO_COMPONENTS.md +487 -0
- package/one/events/DEMO_HOOKS_INDEX.md +334 -0
- package/one/events/DEMO_INFRASTRUCTURE.md +905 -0
- package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +570 -0
- package/one/events/DEMO_INTEGRATION_CHECKLIST.md +431 -0
- package/one/events/DEMO_QUICK_REFERENCE.md +441 -0
- package/one/events/DEMO_SETUP.md +476 -0
- package/one/events/EFFECT_TS_API_PATTERN.md +478 -0
- package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +414 -0
- package/one/events/HOOKS-DEMO.md +441 -0
- package/one/events/ONTOLOGY-HOOKS-README.md +700 -0
- package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +365 -0
- package/one/events/QA-CHECKLIST.md +674 -0
- package/one/events/QUICK-START-ONTOLOGY.md +408 -0
- package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +639 -0
- package/one/events/SEARCH_DEMO_DELIVERY.md +415 -0
- package/one/events/SEARCH_DEMO_SUMMARY.md +303 -0
- package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +381 -0
- package/one/events/TEST-PLAN-INDEX.md +346 -0
- package/one/events/TEST-PLAN.md +1417 -0
- package/one/events/TESTING-DELIVERY.txt +372 -0
- package/one/events/TRANSITIONS-QUICK-START.md +141 -0
- package/one/events/TYPESCRIPT_FIXES.md +152 -0
- package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +412 -0
- package/one/events/TYPESCRIPT_FIXES_INDEX.md +341 -0
- package/one/events/VIEW-TRANSITIONS.md +428 -0
- package/one/events/backend-integration-tests.md +606 -0
- package/one/events/backend-structure-diagram.txt +393 -0
- package/one/events/backend-structure-summary.txt +269 -0
- package/one/events/cloudflare-pages-infrastructure-setup.md +264 -0
- package/one/events/convex-analysis-index.md +304 -0
- package/one/events/convex-structure-analysis.md +700 -0
- package/one/events/design-spec-complete.md +208 -0
- package/one/events/ontology-test-examples.md +562 -0
- package/one/events/phase1-backend-implementation-complete.md +518 -0
- package/one/events/test-dashboard.md +345 -0
- package/one/events/test-index.md +361 -0
- package/one/events/test-report-ontology.md +582 -0
- package/one/events/testing-summary.md +344 -0
- package/one/groups/features.md +2878 -0
- package/one/groups/strategy copy.md +869 -0
- package/one/knowledge/backend-api-reference.md +710 -0
- package/one/knowledge/documentation-summary.md +285 -0
- package/one/knowledge/lessons-learned.md +294 -4
- package/one/knowledge/ontology-visual-guide.md +360 -0
- package/one/knowledge/ontology.md +9 -17
- package/one/things/demo-accessibility-animations.md +999 -0
- package/one/things/demo-components.md +1304 -0
- package/one/things/demo-design-summary.md +629 -0
- package/one/things/demo-design-system.md +919 -0
- package/one/things/demo-page-layouts.md +989 -0
- package/one/things/designs/accessibility-audit.md +790 -0
- package/one/things/designs/component-specifications.md +757 -0
- package/one/things/designs/design-overview.md +318 -0
- package/one/things/designs/design-tokens.md +414 -0
- package/one/things/designs/wireframes-dashboard.md +653 -0
- package/one/things/docs/api-requests.md +923 -0
- package/one/things/features/0 All Features.md +2 -0
- package/one/things/implementation/backend-guide.md +412 -0
- package/one/things/plans/2-backend-agnostic-frontend.md +11 -8
- package/one/things/plans/ai-elements.md +1259 -0
- package/one/things/plans/ai-integration.md +947 -0
- package/one/things/plans/ai-sdk.md +761 -0
- package/one/things/plans/app.md +1 -1
- package/one/things/plans/architecture-summary.md +283 -0
- package/one/things/plans/async-ai-agents.md +215 -0
- package/one/things/plans/backend-agnostic-frontend.md +11 -6
- package/one/things/plans/backend-cleanup-quickstart.md +346 -0
- package/one/things/plans/backend-ontology-conformance.md +416 -0
- package/one/things/plans/backend-status.md +541 -0
- package/one/things/plans/backend-structure.md +799 -0
- package/one/things/plans/backend-target-structure.md +438 -0
- package/one/things/plans/backend.md +1133 -0
- package/one/things/plans/better-auth-any-backend.md +11 -11
- package/one/things/plans/cli-updates-required.md +280 -0
- package/one/things/plans/complete-step-by-step.md +1302 -0
- package/one/things/plans/convex-agents.md +1005 -0
- package/one/things/plans/deployment-architecture.md +426 -0
- package/one/things/plans/development-plan.md +1220 -0
- package/one/things/plans/effect.md +808 -48
- package/one/things/plans/integrate-frontend-and-backend.md +579 -0
- package/one/things/plans/mcp-clear-context-prompt.md +60 -0
- package/one/things/plans/mcp-simple.md +228 -0
- package/one/things/plans/one.md +8 -7
- package/one/things/plans/ontology-6-dimensions.md +20 -14
- package/one/things/plans/quick-wins.md +1273 -0
- package/one/things/plans/readme-backend-cleanup.md +361 -0
- package/one/things/plans/separate-demo.md +830 -0
- package/one/things/plans/separate.md +3 -3
- package/one/things/plans/sequence.md +1897 -0
- package/one/things/plans/sync-checklist.md +321 -0
- package/one/things/plans/unified-implementation-plan.md +3 -3
- package/one/things/plans/update-demos.md +513 -0
- package/package.json +1 -1
- package/.claude/agents/backend-specialist.md +0 -169
- package/.claude/agents/designer.md +0 -216
- package/.claude/agents/frontend-specialist.md +0 -236
- package/.claude/commands/done.md +0 -35
- package/.claude/commands/infer.md +0 -138
- package/.claude/commands/next.md +0 -53
- package/.claude/commands/one copy.md +0 -565
- package/.claude/commands/one-template.md +0 -106
- package/.claude/commands/one-v1.md +0 -609
- package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/one/groups/nine-padel-customers.md +0 -138
- package/one/groups/nine-padel-data-structure.md +0 -167
- package/one/groups/nine-padel-ontology-specification.md +0 -359
- package/one/groups/nine-padel-ontology.md +0 -143
- package/one/groups/nine-padel-strategy.md +0 -234
- package/one/groups/nine-padel.md +0 -211
- package/one/groups/nine-padle-contents.baked.md +0 -1252
- package/one/groups/nine-padle-contents.md +0 -6
- package/one/things/features/1-1-agent-prompts/design.md +0 -470
- package/one/things/features/1-1-agent-prompts/tests.md +0 -264
- package/one/things/features/1-2-yaml-orchestrator/design.md +0 -497
- package/one/things/features/1-2-yaml-orchestrator/tests.md +0 -227
- package/one/things/features/1-3-event-coordination/design.md +0 -544
- package/one/things/features/1-3-event-coordination/tests.md +0 -223
- package/one/things/features/1-4-knowledge-management/design.md +0 -609
- package/one/things/features/1-4-knowledge-management/tests.md +0 -195
- package/one/things/features/1-5-quality-loops/design.md +0 -797
- package/one/things/features/1-5-quality-loops/tests.md +0 -212
- package/one/things/features/1-6-numbering-structure/design.md +0 -610
- package/one/things/features/1-6-numbering-structure/tests.md +0 -213
- package/one/things/features/dataprovider-interface/1-tests.md +0 -1522
|
@@ -0,0 +1,335 @@
|
|
|
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
|
+
IMPORTANT: Check if cd web && bun install
|
|
8
|
+
|
|
9
|
+
### Supported Actions
|
|
10
|
+
|
|
11
|
+
- `/server` or `/server status` - Check server status
|
|
12
|
+
- `/server start` - Start development server
|
|
13
|
+
- `/server stop` - Stop development server
|
|
14
|
+
- `/server restart` - Restart development server
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Action: Status (Default)
|
|
19
|
+
|
|
20
|
+
Check if server is running on port 4321:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
lsof -ti:4321 2>/dev/null
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**If running (PID returned):**
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
30
|
+
✅ Dev Server Running
|
|
31
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
32
|
+
|
|
33
|
+
URL: http://localhost:4321
|
|
34
|
+
PID: [process-id]
|
|
35
|
+
|
|
36
|
+
Commands:
|
|
37
|
+
• /server stop - Stop server
|
|
38
|
+
• /server restart - Restart server
|
|
39
|
+
|
|
40
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**If not running:**
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
47
|
+
⭕ Dev Server Not Running
|
|
48
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
49
|
+
|
|
50
|
+
Start it with:
|
|
51
|
+
• /server start
|
|
52
|
+
|
|
53
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Action: Start
|
|
59
|
+
|
|
60
|
+
Start the development server if not already running.
|
|
61
|
+
|
|
62
|
+
### Step 1: Check if Already Running
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
lsof -ti:4321 2>/dev/null
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
If running, show:
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
⚠️ Server already running on port 4321
|
|
72
|
+
|
|
73
|
+
URL: http://localhost:4321
|
|
74
|
+
|
|
75
|
+
Use /server restart to restart it.
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Step 2: Verify web Directory Exists
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
[ -d web ] && echo "exists" || echo "missing"
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
If missing, show error:
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
❌ web/ directory not found
|
|
88
|
+
|
|
89
|
+
Are you in the ONE Platform root directory?
|
|
90
|
+
|
|
91
|
+
Current directory: [pwd]
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Step 3: Start Server in Background
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
cd web && bun run dev > /dev/null 2>&1 &
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Step 4: Wait and Verify (2 seconds)
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
sleep 2 && lsof -ti:4321 2>/dev/null
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Step 5: Open Start Page in Browser
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
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
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
**If started successfully:**
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
116
|
+
🚀 Dev Server Started!
|
|
117
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
118
|
+
|
|
119
|
+
URL: http://localhost:4321/start
|
|
120
|
+
PID: [process-id]
|
|
121
|
+
|
|
122
|
+
Opening start page in your browser...
|
|
123
|
+
|
|
124
|
+
The server is running in the background.
|
|
125
|
+
|
|
126
|
+
Commands:
|
|
127
|
+
• /server stop - Stop server
|
|
128
|
+
• /server restart - Restart server
|
|
129
|
+
• /server status - Check status
|
|
130
|
+
|
|
131
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**If failed to start:**
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
❌ Failed to start dev server
|
|
138
|
+
|
|
139
|
+
Check for errors:
|
|
140
|
+
cd web && bun run dev
|
|
141
|
+
|
|
142
|
+
Possible issues:
|
|
143
|
+
• Port 4321 already in use
|
|
144
|
+
• Missing dependencies (run: bun install)
|
|
145
|
+
• Build errors in web/
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Action: Stop
|
|
151
|
+
|
|
152
|
+
Stop the development server if running.
|
|
153
|
+
|
|
154
|
+
### Step 1: Find Process
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
lsof -ti:4321 2>/dev/null
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**If not running:**
|
|
161
|
+
|
|
162
|
+
```
|
|
163
|
+
⚠️ No server running on port 4321
|
|
164
|
+
|
|
165
|
+
Nothing to stop!
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Step 2: Kill Process
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
lsof -ti:4321 | xargs kill 2>/dev/null
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### Step 3: Verify Stopped
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
sleep 1 && lsof -ti:4321 2>/dev/null || echo "stopped"
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**If stopped successfully:**
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
184
|
+
⭕ Dev Server Stopped
|
|
185
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
186
|
+
|
|
187
|
+
Start it again with:
|
|
188
|
+
• /server start
|
|
189
|
+
|
|
190
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**If failed to stop:**
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
❌ Failed to stop server gracefully
|
|
197
|
+
|
|
198
|
+
Force kill with:
|
|
199
|
+
lsof -ti:4321 | xargs kill -9
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## Action: Restart
|
|
205
|
+
|
|
206
|
+
Restart the development server (stop then start).
|
|
207
|
+
|
|
208
|
+
### Step 1: Stop Server
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
lsof -ti:4321 | xargs kill 2>/dev/null
|
|
212
|
+
sleep 1
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Step 2: Start Server
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
cd web && bun run dev > /dev/null 2>&1 &
|
|
219
|
+
sleep 2
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Step 3: Verify Running
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
lsof -ti:4321 2>/dev/null
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
### Step 4: Open Start Page in Browser
|
|
229
|
+
|
|
230
|
+
```bash
|
|
231
|
+
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
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
**If restarted successfully:**
|
|
235
|
+
|
|
236
|
+
```
|
|
237
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
238
|
+
🔄 Dev Server Restarted!
|
|
239
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
240
|
+
|
|
241
|
+
URL: http://localhost:4321/start
|
|
242
|
+
PID: [process-id]
|
|
243
|
+
|
|
244
|
+
Fresh server instance running.
|
|
245
|
+
Opening start page in your browser...
|
|
246
|
+
|
|
247
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
**If restart failed:**
|
|
251
|
+
|
|
252
|
+
```
|
|
253
|
+
❌ Failed to restart server
|
|
254
|
+
|
|
255
|
+
Try manually:
|
|
256
|
+
1. /server stop
|
|
257
|
+
2. /server start
|
|
258
|
+
|
|
259
|
+
Or check logs:
|
|
260
|
+
cd web && bun run dev
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Backend Server (Convex)
|
|
266
|
+
|
|
267
|
+
If user mentions "backend server" or "convex dev":
|
|
268
|
+
|
|
269
|
+
```
|
|
270
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
271
|
+
🔧 Backend Server (Convex)
|
|
272
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
273
|
+
|
|
274
|
+
The backend runs on Convex Cloud:
|
|
275
|
+
URL: https://shocking-falcon-870.convex.cloud
|
|
276
|
+
|
|
277
|
+
For local backend development:
|
|
278
|
+
cd backend && npx convex dev
|
|
279
|
+
|
|
280
|
+
For production deployment:
|
|
281
|
+
cd backend && npx convex deploy
|
|
282
|
+
|
|
283
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
## Key Principles
|
|
289
|
+
|
|
290
|
+
1. **FAST** - Server starts in < 3 seconds
|
|
291
|
+
2. **BACKGROUND** - Run server in background, don't block user
|
|
292
|
+
3. **RELIABLE** - Always verify server status before/after actions
|
|
293
|
+
4. **CLEAR** - Show clear status and actionable commands
|
|
294
|
+
5. **SAFE** - Graceful shutdown, verify before killing processes
|
|
295
|
+
6. **HELPFUL** - Auto-open start page (http://localhost:4321/start) after successful start/restart
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## Error Handling
|
|
300
|
+
|
|
301
|
+
**Port already in use:**
|
|
302
|
+
|
|
303
|
+
```
|
|
304
|
+
❌ Port 4321 is already in use
|
|
305
|
+
|
|
306
|
+
Kill the process:
|
|
307
|
+
lsof -ti:4321 | xargs kill
|
|
308
|
+
|
|
309
|
+
Or use a different port:
|
|
310
|
+
cd web && bun run dev -- --port 4322
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
**Missing dependencies:**
|
|
314
|
+
|
|
315
|
+
```
|
|
316
|
+
❌ Server failed to start - missing dependencies
|
|
317
|
+
|
|
318
|
+
Install dependencies:
|
|
319
|
+
cd web && bun install
|
|
320
|
+
|
|
321
|
+
Then try again:
|
|
322
|
+
/server start
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
**Build errors:**
|
|
326
|
+
|
|
327
|
+
```
|
|
328
|
+
❌ Server failed to start - build errors
|
|
329
|
+
|
|
330
|
+
Check for TypeScript errors:
|
|
331
|
+
cd web && bunx astro check
|
|
332
|
+
|
|
333
|
+
View detailed output:
|
|
334
|
+
cd web && bun run dev
|
|
335
|
+
```
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Automatically move demo/deliverable markdown files from root to /one/events/
|
|
4
|
+
Keeps root clean with only essential documentation files.
|
|
5
|
+
"""
|
|
6
|
+
import os
|
|
7
|
+
import shutil
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
|
|
10
|
+
# Root directory
|
|
11
|
+
root_dir = Path("/Users/toc/Server/ONE")
|
|
12
|
+
|
|
13
|
+
# Files allowed to stay in root
|
|
14
|
+
ALLOWED_ROOT_FILES = {
|
|
15
|
+
"README.md",
|
|
16
|
+
"CLAUDE.md",
|
|
17
|
+
"LICENSE.md",
|
|
18
|
+
"SECURITY.md",
|
|
19
|
+
"AGENTS.md",
|
|
20
|
+
"release.md",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
# Target directory for demo/deliverable files
|
|
24
|
+
events_dir = root_dir / "one" / "events"
|
|
25
|
+
events_dir.mkdir(parents=True, exist_ok=True)
|
|
26
|
+
|
|
27
|
+
# Find all markdown and text files in root that should be moved
|
|
28
|
+
files_moved = []
|
|
29
|
+
files_skipped = []
|
|
30
|
+
|
|
31
|
+
for file_path in root_dir.glob("*.md"):
|
|
32
|
+
filename = file_path.name
|
|
33
|
+
|
|
34
|
+
# Skip allowed files
|
|
35
|
+
if filename in ALLOWED_ROOT_FILES:
|
|
36
|
+
files_skipped.append(filename)
|
|
37
|
+
continue
|
|
38
|
+
|
|
39
|
+
# Move file to events
|
|
40
|
+
try:
|
|
41
|
+
dest = events_dir / filename
|
|
42
|
+
shutil.move(str(file_path), str(dest))
|
|
43
|
+
files_moved.append(filename)
|
|
44
|
+
except Exception as e:
|
|
45
|
+
print(f"❌ Failed to move {filename}: {e}")
|
|
46
|
+
|
|
47
|
+
# Also move .txt files that look like deliverables
|
|
48
|
+
for file_path in root_dir.glob("*.txt"):
|
|
49
|
+
filename = file_path.name
|
|
50
|
+
|
|
51
|
+
# Skip if it's a git-related file
|
|
52
|
+
if filename in {"package-lock.txt", ".gitignore"}:
|
|
53
|
+
continue
|
|
54
|
+
|
|
55
|
+
try:
|
|
56
|
+
dest = events_dir / filename
|
|
57
|
+
shutil.move(str(file_path), str(dest))
|
|
58
|
+
files_moved.append(filename)
|
|
59
|
+
except Exception as e:
|
|
60
|
+
print(f"❌ Failed to move {filename}: {e}")
|
|
61
|
+
|
|
62
|
+
# Report
|
|
63
|
+
if files_moved:
|
|
64
|
+
print(f"✅ Root cleanup complete!")
|
|
65
|
+
print(f" Moved {len(files_moved)} files to /one/events/:")
|
|
66
|
+
for f in sorted(files_moved):
|
|
67
|
+
print(f" • {f}")
|
|
68
|
+
print()
|
|
69
|
+
|
|
70
|
+
if files_skipped:
|
|
71
|
+
print(f"✅ Kept {len(files_skipped)} essential files in root:")
|
|
72
|
+
for f in sorted(files_skipped):
|
|
73
|
+
print(f" • {f}")
|
|
74
|
+
else:
|
|
75
|
+
print("✅ Root is clean - all essential files preserved!")
|