oneie 3.6.33 → 3.6.37

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.
@@ -34,7 +34,29 @@ Let's open the platform for you...
34
34
  ⚡ Server is off. No problem! Let's get you up and running...
35
35
  ```
36
36
 
37
- ### 1.2 Check if Dependencies are Installed
37
+ ### 1.2 Check if Bun is Installed
38
+
39
+ **Check for bun:**
40
+ ```bash
41
+ command -v bun >/dev/null 2>&1 && echo "installed" || echo "missing"
42
+ ```
43
+
44
+ **If missing:**
45
+ ```
46
+ 📦 Installing Bun - the last npm command you'll ever need...
47
+ ```
48
+
49
+ **Install bun globally:**
50
+ ```bash
51
+ npm install -g bun
52
+ ```
53
+
54
+ **After successful install:**
55
+ ```
56
+ ✅ Bun installed successfully!
57
+ ```
58
+
59
+ ### 1.3 Check if Dependencies are Installed
38
60
 
39
61
  **Show to user:**
40
62
  ```
@@ -62,7 +84,7 @@ pwd | grep -q '/web$' && echo "IN_WEB" || echo "IN_ROOT"
62
84
  ```
63
85
  ✅ All dependencies are installed!
64
86
  ```
65
- - Skip to Step 1.3
87
+ - Skip to Step 1.4
66
88
 
67
89
  **If missing:**
68
90
  ```
@@ -96,7 +118,7 @@ bun install
96
118
  ✅ Installation complete! Your development environment is ready.
97
119
  ```
98
120
 
99
- ### 1.3 Start the Server
121
+ ### 1.4 Start the Server
100
122
 
101
123
  **Show to user:**
102
124
  ```
@@ -127,7 +149,7 @@ sleep 3 && lsof -ti:4321 2>/dev/null
127
149
  You're moving fast! 🚀
128
150
  ```
129
151
 
130
- ### 1.4 Open Start Page
152
+ ### 1.5 Open Start Page
131
153
 
132
154
  **Show to user:**
133
155
  ```
@@ -86,13 +86,35 @@ Use /server restart to restart it.
86
86
 
87
87
  Stop here and don't continue.
88
88
 
89
- ### Step 2: Detect Working Directory
89
+ ### Step 2: Check if Bun is Installed
90
+
91
+ **Check for bun:**
92
+ ```bash
93
+ command -v bun >/dev/null 2>&1 && echo "installed" || echo "missing"
94
+ ```
95
+
96
+ **If missing:**
97
+ ```
98
+ 📦 Installing Bun - the last npm command you'll ever need...
99
+ ```
100
+
101
+ **Install bun globally:**
102
+ ```bash
103
+ npm install -g bun
104
+ ```
105
+
106
+ **If install succeeds:**
107
+ ```
108
+ ✅ Bun installed successfully!
109
+ ```
110
+
111
+ ### Step 3: Detect Working Directory
90
112
 
91
113
  ```bash
92
114
  pwd | grep -q '/web$' && echo "IN_WEB" || echo "IN_ROOT"
93
115
  ```
94
116
 
95
- ### Step 3: Check Dependencies Installed
117
+ ### Step 4: Check Dependencies Installed
96
118
 
97
119
  **If IN_ROOT:**
98
120
  ```bash
@@ -104,7 +126,7 @@ pwd | grep -q '/web$' && echo "IN_WEB" || echo "IN_ROOT"
104
126
  [ -d node_modules ] && echo "installed" || echo "missing"
105
127
  ```
106
128
 
107
- ### Step 4: Install Dependencies if Missing
129
+ ### Step 5: Install Dependencies if Missing
108
130
 
109
131
  **If missing, show progress:**
110
132
 
@@ -142,7 +164,7 @@ Common issues:
142
164
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
143
165
  ```
144
166
 
145
- ### Step 5: Start Server in Background
167
+ ### Step 6: Start Server in Background
146
168
 
147
169
  **If IN_ROOT:**
148
170
  ```bash
@@ -154,13 +176,13 @@ cd web && bun run dev > /dev/null 2>&1 &
154
176
  bun run dev > /dev/null 2>&1 &
155
177
  ```
156
178
 
157
- ### Step 6: Wait and Verify (3 seconds)
179
+ ### Step 7: Wait and Verify (3 seconds)
158
180
 
159
181
  ```bash
160
182
  sleep 3 && lsof -ti:4321 2>/dev/null
161
183
  ```
162
184
 
163
- ### Step 7: Open Start Page in Browser
185
+ ### Step 8: Open Start Page in Browser
164
186
 
165
187
  ```bash
166
188
  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
@@ -273,13 +295,35 @@ lsof -ti:4321 | xargs kill 2>/dev/null
273
295
  sleep 1
274
296
  ```
275
297
 
276
- ### Step 2: Detect Working Directory
298
+ ### Step 2: Check if Bun is Installed
299
+
300
+ **Check for bun:**
301
+ ```bash
302
+ command -v bun >/dev/null 2>&1 && echo "installed" || echo "missing"
303
+ ```
304
+
305
+ **If missing:**
306
+ ```
307
+ 📦 Installing Bun - the last npm command you'll ever need...
308
+ ```
309
+
310
+ **Install bun globally:**
311
+ ```bash
312
+ npm install -g bun
313
+ ```
314
+
315
+ **If install succeeds:**
316
+ ```
317
+ ✅ Bun installed successfully!
318
+ ```
319
+
320
+ ### Step 3: Detect Working Directory
277
321
 
278
322
  ```bash
279
323
  pwd | grep -q '/web$' && echo "IN_WEB" || echo "IN_ROOT"
280
324
  ```
281
325
 
282
- ### Step 3: Check Dependencies Installed
326
+ ### Step 4: Check Dependencies Installed
283
327
 
284
328
  **If IN_ROOT:**
285
329
  ```bash
@@ -291,7 +335,7 @@ pwd | grep -q '/web$' && echo "IN_WEB" || echo "IN_ROOT"
291
335
  [ -d node_modules ] && echo "installed" || echo "missing"
292
336
  ```
293
337
 
294
- ### Step 4: Install Dependencies if Missing
338
+ ### Step 5: Install Dependencies if Missing
295
339
 
296
340
  **If missing:**
297
341
 
@@ -311,7 +355,7 @@ cd web && bun install
311
355
  bun install
312
356
  ```
313
357
 
314
- ### Step 5: Start Server
358
+ ### Step 6: Start Server
315
359
 
316
360
  **If IN_ROOT:**
317
361
  ```bash
@@ -323,13 +367,13 @@ cd web && bun run dev > /dev/null 2>&1 &
323
367
  bun run dev > /dev/null 2>&1 &
324
368
  ```
325
369
 
326
- ### Step 6: Wait and Verify (3 seconds)
370
+ ### Step 7: Wait and Verify (3 seconds)
327
371
 
328
372
  ```bash
329
373
  sleep 3 && lsof -ti:4321 2>/dev/null
330
374
  ```
331
375
 
332
- ### Step 7: Open Start Page in Browser
376
+ ### Step 8: Open Start Page in Browser
333
377
 
334
378
  ```bash
335
379
  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
@@ -1 +1 @@
1
- /var/folders/ll/3vb8ckfd47dc_pcl31s65xg40000gn/T/tmp.wKY2TX8qGj
1
+ /var/folders/ll/3vb8ckfd47dc_pcl31s65xg40000gn/T/tmp.mIzSJbgmF8
@@ -177,6 +177,28 @@ EXPECTED_STRUCTURE = {
177
177
  # Protocol identifiers that should be in metadata
178
178
  PROTOCOLS = ["a2a", "acp", "ap2", "x402", "ag-ui"]
179
179
 
180
+ def is_in_ontology_directory(file_path):
181
+ """Check if file is in the /one/ ontology directory structure"""
182
+ parts = Path(file_path).parts
183
+
184
+ if 'one' not in parts:
185
+ return False
186
+
187
+ try:
188
+ one_index = parts.index('one')
189
+
190
+ # If file is directly under /one/ (no subdirectory)
191
+ if one_index + 1 >= len(parts):
192
+ return True
193
+
194
+ # Check if next directory after 'one' is a valid dimension
195
+ next_part = parts[one_index + 1]
196
+ valid_dimension_dirs = ['groups', 'people', 'things', 'connections', 'events', 'knowledge']
197
+
198
+ return next_part in valid_dimension_dirs
199
+ except ValueError:
200
+ return False
201
+
180
202
  def get_dimension_from_path(file_path):
181
203
  """Extract dimension from file path"""
182
204
  parts = Path(file_path).parts
@@ -224,13 +246,31 @@ def to_kebab_case(filename):
224
246
 
225
247
  return name + ext
226
248
 
249
+ def is_in_ontology_directory(file_path):
250
+ """Check if file is in the /one ontology directory (not just any path containing 'one')"""
251
+ parts = Path(file_path).parts
252
+
253
+ # Look for 'one' directory in the path
254
+ try:
255
+ one_index = parts.index('one')
256
+ # Must have at least one more part after 'one'
257
+ if one_index + 1 < len(parts):
258
+ next_part = parts[one_index + 1]
259
+ # Check if next part is a valid dimension or allowed root file
260
+ if normalize_dimension(next_part) or next_part in ['LICENSE.md', 'README.md', 'CONTRIBUTING.md', 'CHANGELOG.md', '.gitignore']:
261
+ return True
262
+ except ValueError:
263
+ pass
264
+
265
+ return False
266
+
227
267
  def validate_file_path(file_path):
228
268
  """Validate that file path follows ontology structure"""
229
269
  issues = []
230
270
 
231
271
  # Check if file is in /one directory
232
- if '/one/' not in file_path:
233
- return issues # Not in /one, skip validation
272
+ if not is_in_ontology_directory(file_path):
273
+ return issues # Not in /one ontology, skip validation
234
274
 
235
275
  # Allow certain root-level files in /one
236
276
  parts = Path(file_path).parts
@@ -412,8 +452,8 @@ def main():
412
452
  if not file_path:
413
453
  sys.exit(0)
414
454
 
415
- # Skip validation for non-/one files
416
- if '/one/' not in file_path:
455
+ # Skip validation for files not in /one ontology directory
456
+ if not is_in_ontology_directory(file_path):
417
457
  sys.exit(0)
418
458
 
419
459
  # For PostToolUse, try to auto-fix filename first