oneie 3.6.28 → 3.6.32

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.
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Multi Ontology Architecture
2
+ title: ONE Ontology Architecture
3
3
  dimension: things
4
4
  category: plans
5
5
  tags: 6-dimensions, ai, architecture, connections, events, groups, knowledge, ontology, people, system-design
@@ -10,13 +10,13 @@ updated: 2025-11-03
10
10
  version: 1.0.0
11
11
  ai_context: |
12
12
  This document is part of the things dimension in the plans category.
13
- Location: one/things/plans/multi-ontology-architecture.md
14
- Purpose: Documents multi-ontology architecture: feature-specific ontologies
13
+ Location: one/things/plans/ONE Ontology-architecture.md
14
+ Purpose: Documents ONE Ontology architecture: feature-specific ontologies
15
15
  Related dimensions: connections, events, groups, knowledge, people
16
- For AI agents: Read this to understand multi ontology architecture.
16
+ For AI agents: Read this to understand ONE Ontology architecture.
17
17
  ---
18
18
 
19
- # Multi-Ontology Architecture: Feature-Specific Ontologies
19
+ # ONE Ontology Architecture: Feature-Specific Ontologies
20
20
 
21
21
  **Status:** 🎯 Active Plan
22
22
  **Created:** 2025-10-19
@@ -529,7 +529,7 @@ const compositeOntology = composeOntologies(
529
529
  coreOntology,
530
530
  hasFeature("blog") ? blogOntology : null,
531
531
  hasFeature("shop") ? shopOntology : null,
532
- hasFeature("courses") ? coursesOntology : null,
532
+ hasFeature("courses") ? coursesOntology : null
533
533
  );
534
534
 
535
535
  // Result: TypeScript types are generated for enabled features only
@@ -573,7 +573,7 @@ export default defineSchema({
573
573
  status: v.union(
574
574
  v.literal("draft"),
575
575
  v.literal("active"),
576
- v.literal("archived"),
576
+ v.literal("archived")
577
577
  ),
578
578
  createdAt: v.number(),
579
579
  updatedAt: v.number(),
@@ -585,7 +585,7 @@ export default defineSchema({
585
585
  fromThingId: v.id("things"),
586
586
  toThingId: v.id("things"),
587
587
  relationshipType: v.union(
588
- ...ontologies.connectionTypes.map((t) => v.literal(t)),
588
+ ...ontologies.connectionTypes.map((t) => v.literal(t))
589
589
  ),
590
590
  metadata: v.optional(v.any()),
591
591
  createdAt: v.number(),
@@ -34,6 +34,7 @@ ai_context: |
34
34
  **✅ HIGH COMPLIANCE: 78/100 files (78%)**
35
35
 
36
36
  **Breakdown:**
37
+
37
38
  - ✅ Fully Aligned (45 files, 45%)
38
39
  - ⚠️ Partially Aligned (33 files, 33%)
39
40
  - ❌ Misaligned/Scattered (22 files, 22%)
@@ -63,16 +64,19 @@ ai_context: |
63
64
  ### GROUPS Dimension (Multi-Tenant Isolation)
64
65
 
65
66
  **Fully Aligned (✅):**
67
+
66
68
  - `3-groups.md` ✅ - Hierarchical groups, nesting, parent-child relationships
67
69
  - `group-folder-multi-tenancy.md` ✅ - Installation folders with group hierarchy
68
70
  - `backend-ontology-conformance.md` ✅ - Groups as first-class dimension
69
71
 
70
72
  **Partially Aligned (⚠️):**
73
+
71
74
  - `backend-status.md` ⚠️ - Mentions groups but lacks explicit mapping
72
75
  - `deployment-architecture.md` ⚠️ - Assumes group scoping but doesn't explain
73
76
  - `backend-target-structure.md` ⚠️ - References groupId but missing dimension context
74
77
 
75
78
  **Missing Groups Context:**
79
+
76
80
  - `app.md` ❌ - No mention of group isolation
77
81
  - `components.md` ❌ - UI components don't reference group scoping
78
82
  - `frontend-effects.md` ❌ - No group-aware state management
@@ -84,11 +88,13 @@ ai_context: |
84
88
  ### PEOPLE Dimension (Authorization & Governance)
85
89
 
86
90
  **Fully Aligned (✅):**
91
+
87
92
  - `backend-ontology-conformance.md` ✅ - Role-based access (platform_owner, group_owner, group_user, customer)
88
93
  - `backend.md` ✅ - Complete authentication flows with 6 methods
89
94
  - `phase-1-foundation.md` ✅ - Authorization via Effect Context
90
95
 
91
96
  **Partially Aligned (⚠️):**
97
+
92
98
  - `convex-better-auth.md` ⚠️ - Better Auth implementation, but missing authorization patterns
93
99
  - `enhance-auth.md` ⚠️ - Auth enhancements without role governance
94
100
  - `better-auth-any-backend.md` ⚠️ - Generic auth without ontology roles
@@ -97,6 +103,7 @@ ai_context: |
97
103
  - `mcp-simple.md` ⚠️ - MCP server without authorization context
98
104
 
99
105
  **Missing People Context:**
106
+
100
107
  - `ai-elements.md` ❌ - No authorization for AI operations
101
108
  - `ai-integration.md` ❌ - Missing actor context for AI actions
102
109
  - `ai-sdk.md` ❌ - No role-based execution patterns
@@ -109,12 +116,14 @@ ai_context: |
109
116
  ### THINGS Dimension (Entities)
110
117
 
111
118
  **Fully Aligned (✅):**
119
+
112
120
  - `ontology-6-dimensions.md` ✅ - Complete 66+ thing types enumerated
113
121
  - `backend-ontology-conformance.md` ✅ - Entity types with properties
114
122
  - `3-groups.md` ✅ - Groups as entities with hierarchical support
115
123
  - `phase-1-foundation.md` ✅ - Service layer entities defined
116
124
 
117
125
  **Partially Aligned (⚠️):**
126
+
118
127
  - `backend.md` ⚠️ - References "things" but uses generic naming (entities vs things)
119
128
  - `ontology-refine.md` ⚠️ - Discusses thing types without full enumeration
120
129
  - `ontology-driven-strategy.md` ⚠️ - Strategy but missing entity type examples
@@ -122,6 +131,7 @@ ai_context: |
122
131
  - `data-quality-metrics.md` ⚠️ - Metrics for things without ontology context
123
132
 
124
133
  **Missing Things Context:**
134
+
125
135
  - `app.md` ❌ - No entity modeling
126
136
  - `components.md` ❌ - Components for things without type awareness
127
137
  - `ai-elements.md` ❌ - AI elements undefined as thing types
@@ -136,17 +146,20 @@ ai_context: |
136
146
  ### CONNECTIONS Dimension (Relationships)
137
147
 
138
148
  **Fully Aligned (✅):**
149
+
139
150
  - `ontology-6-dimensions.md` ✅ - 25 connection types with semantic meaning
140
151
  - `backend-ontology-conformance.md` ✅ - Connection types for dependencies
141
152
  - `phase-1-foundation.md` ✅ - Service dependency connections
142
153
 
143
154
  **Partially Aligned (⚠️):**
155
+
144
156
  - `backend.md` ⚠️ - References connections but limited example types
145
- - `multi-ontology-architecture.md` ⚠️ - Multiple ontologies but connection mapping unclear
157
+ - `ONE Ontology-architecture.md` ⚠️ - Multiple ontologies but connection mapping unclear
146
158
  - `integration-guide.md` ⚠️ - Integration connections without semantic types
147
159
  - `workflow.md` ⚠️ - Workflow steps as connections (not explicit)
148
160
 
149
161
  **Missing Connections Context:**
162
+
150
163
  - `components.md` ❌ - Component relationships undefined
151
164
  - `frontend-effects.md` ❌ - State relationships without connection types
152
165
  - `ai-integration.md` ❌ - AI service connections undefined
@@ -160,17 +173,20 @@ ai_context: |
160
173
  ### EVENTS Dimension (Actions & Audit Trail)
161
174
 
162
175
  **Fully Aligned (✅):**
176
+
163
177
  - `ontology-6-dimensions.md` ✅ - 67 event types with complete taxonomy
164
178
  - `backend-ontology-conformance.md` ✅ - Event logging with actor + target + timestamp
165
179
  - `phase-1-foundation.md` ✅ - Service observability events
166
180
 
167
181
  **Partially Aligned (⚠️):**
182
+
168
183
  - `backend.md` ⚠️ - Event logging examples but incomplete coverage
169
184
  - `deployment-architecture.md` ⚠️ - Deployment events without ontology typing
170
185
  - `development-plan.md` ⚠️ - Development workflow without event logging
171
186
  - `wave1-onboarding-vision.md` ⚠️ - Onboarding without action event tracking
172
187
 
173
188
  **Missing Events Context:**
189
+
174
190
  - `ai-integration.md` ❌ - AI operations without event logging
175
191
  - `async-ai-agents.md` ❌ - Agent execution without events
176
192
  - `convex-agents.md` ❌ - Agent operations without audit trail
@@ -186,17 +202,20 @@ ai_context: |
186
202
  ### KNOWLEDGE Dimension (Understanding & RAG)
187
203
 
188
204
  **Fully Aligned (✅):**
205
+
189
206
  - `ontology-6-dimensions.md` ✅ - Knowledge types (label, document, chunk, vector_only)
190
207
  - `backend-ontology-conformance.md` ✅ - Knowledge indexing and search
191
208
  - `phase-1-foundation.md` ✅ - Service documentation via RAG
192
209
 
193
210
  **Partially Aligned (⚠️):**
211
+
194
212
  - `backend.md` ⚠️ - RAG implementation but limited knowledge structuring
195
213
  - `implementation-guide.md` ⚠️ - Implementation patterns without knowledge indexing
196
214
  - `ai-sdk.md` ⚠️ - AI SDK without RAG patterns
197
215
  - `effect-patterns-reference.md` ⚠️ - Effect patterns without knowledge base
198
216
 
199
217
  **Missing Knowledge Context:**
218
+
200
219
  - `ai-integration.md` ❌ - AI without context awareness
201
220
  - `improve-codebase.md` ❌ - Improvements without knowledge base
202
221
  - `deep-researcher-agent.md` ❌ - Research without knowledge indexing
@@ -219,31 +238,34 @@ ai_context: |
219
238
 
220
239
  ### Dimension Coverage
221
240
 
222
- | Dimension | Files Aware | % Coverage |
223
- | ------------ | ----------- | ---------- |
224
- | Groups | 12 | 12% |
225
- | People | 10 | 10% |
226
- | Things | 18 | 18% |
227
- | Connections | 8 | 8% |
228
- | Events | 10 | 10% |
229
- | Knowledge | 7 | 7% |
241
+ | Dimension | Files Aware | % Coverage |
242
+ | ----------- | ----------- | ---------- |
243
+ | Groups | 12 | 12% |
244
+ | People | 10 | 10% |
245
+ | Things | 18 | 18% |
246
+ | Connections | 8 | 8% |
247
+ | Events | 10 | 10% |
248
+ | Knowledge | 7 | 7% |
230
249
 
231
250
  ---
232
251
 
233
252
  ## Consolidation Candidates
234
253
 
235
254
  ### DELETE (Exact Duplicates - 3 files)
255
+
236
256
  - `separate-copy.md`
237
257
  - `separate-copy-2.md`
238
258
  - `separate-copy-3.md`
239
259
 
240
260
  ### CONSOLIDATE (Near-Duplicates - 9 files into 4 primary)
261
+
241
262
  - `separate.md` ← `2-backend-agnostic-frontend.md`, `separate-demo.md`
242
263
  - `workflow.md` ← `1-create-workflow.md`, `1-create-workflow-status.md`
243
264
  - `feature-based-sites.md` ← `2-sites.md`
244
265
  - `backend.md` ← `use-our-backend.md`
245
266
 
246
267
  ### ARCHIVE (Obsolete - 5 files)
268
+
247
269
  - `convex-on-off.md`
248
270
  - `desktop.md`
249
271
  - `onboarding.md`
@@ -255,16 +277,19 @@ ai_context: |
255
277
  ## Remediation Roadmap
256
278
 
257
279
  ### Phase 1: Quick Wins (1 week)
280
+
258
281
  - Delete 3 exact duplicates
259
282
  - Create dimension-mapping template
260
283
  - Update agent instructions
261
284
 
262
285
  ### Phase 2: Consolidation (1 week)
286
+
263
287
  - Merge 9 near-duplicate files
264
288
  - Archive 5 obsolete files
265
289
  - Restructure 5 meta-docs
266
290
 
267
291
  ### Phase 3: Dimension Mapping (2-3 weeks)
292
+
268
293
  - Add dimension sections to 33 partially-aligned files
269
294
  - Validate all changes
270
295
  - Sync findings globally
@@ -298,11 +323,13 @@ ai_context: |
298
323
  **The ONE Platform's `/one/things/plans/` directory has strong foundational ontology alignment (45 files, 45%) but needs explicit dimension mapping for the remaining 55 files.**
299
324
 
300
325
  **Immediate Actions:**
326
+
301
327
  1. Delete 3 duplicate files (5 minutes)
302
328
  2. Create dimension-mapping template (1 hour)
303
329
  3. Add enforcement to agent instructions (2 hours)
304
330
 
305
331
  **Impact of Full Remediation:**
332
+
306
333
  - 100% of plans will map to 6-dimension ontology
307
334
  - AI agents will have clearer context for code generation
308
335
  - 98% code generation accuracy will improve further
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneie",
3
- "version": "3.6.28",
3
+ "version": "3.6.32",
4
4
  "type": "module",
5
5
  "description": "Build apps, websites, and AI agents in English. Zero-interaction setup for AI agents (Claude Code, Cursor, Windsurf). Download to your computer, run in the cloud, deploy to the edge. Open source and free forever.",
6
6
  "bin": {
package/.mcp.json DELETED
@@ -1,95 +0,0 @@
1
- {
2
- "mcpServers": {
3
- "shadcn": {
4
- "command": "npx",
5
- "args": [
6
- "shadcn@latest",
7
- "mcp"
8
- ]
9
- },
10
- "cloudflare-builds": {
11
- "command": "npx",
12
- "args": [
13
- "-y",
14
- "mcp-remote",
15
- "https://builds.mcp.cloudflare.com/mcp"
16
- ],
17
- "env": {
18
- "CLOUDFLARE_ACCOUNT_ID": "${CLOUDFLARE_ACCOUNT_ID}",
19
- "CLOUDFLARE_API_TOKEN": "${CLOUDFLARE_GLOBAL_API_KEY}",
20
- "CLOUDFLARE_EMAIL": "${CLOUDFLARE_EMAIL}"
21
- }
22
- },
23
- "cloudflare-observability": {
24
- "command": "npx",
25
- "args": [
26
- "-y",
27
- "mcp-remote",
28
- "https://observability.mcp.cloudflare.com/mcp"
29
- ],
30
- "env": {
31
- "CLOUDFLARE_ACCOUNT_ID": "${CLOUDFLARE_ACCOUNT_ID}",
32
- "CLOUDFLARE_API_TOKEN": "${CLOUDFLARE_GLOBAL_API_KEY}",
33
- "CLOUDFLARE_EMAIL": "${CLOUDFLARE_EMAIL}"
34
- }
35
- },
36
- "cloudflare-docs": {
37
- "command": "npx",
38
- "args": [
39
- "-y",
40
- "mcp-remote",
41
- "https://docs.mcp.cloudflare.com/mcp"
42
- ],
43
- "env": {
44
- "CLOUDFLARE_ACCOUNT_ID": "${CLOUDFLARE_ACCOUNT_ID}",
45
- "CLOUDFLARE_API_TOKEN": "${CLOUDFLARE_GLOBAL_API_KEY}",
46
- "CLOUDFLARE_EMAIL": "${CLOUDFLARE_EMAIL}"
47
- }
48
- },
49
- "chrome-devtools": {
50
- "command": "npx",
51
- "args": [
52
- "-y",
53
- "chrome-devtools-mcp@latest"
54
- ]
55
- },
56
- "claude": {
57
- "command": "npx",
58
- "args": [
59
- "-y",
60
- "@anthropic-ai/mcp-server-claude"
61
- ],
62
- "env": {
63
- "ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}"
64
- }
65
- },
66
- "framelink-figma": {
67
- "command": "npx",
68
- "args": [
69
- "-y",
70
- "figma-developer-mcp",
71
- "--figma-api-key=${FIGMA_ACCESS_TOKEN}",
72
- "--stdio"
73
- ]
74
- },
75
- "astro-docs": {
76
- "command": "npx",
77
- "args": [
78
- "-y",
79
- "mcp-remote",
80
- "https://mcp.docs.astro.build/mcp"
81
- ]
82
- },
83
- "stripe": {
84
- "command": "npx",
85
- "args": [
86
- "-y",
87
- "mcp-remote",
88
- "https://mcp.stripe.com/"
89
- ],
90
- "env": {
91
- "STRIPE_API_KEY": "${STRIPE_API_KEY}"
92
- }
93
- }
94
- }
95
- }