oneie 2.0.3 → 2.0.6
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.md +220 -29
- package/LICENSE.md +84 -0
- package/README.md +489 -931
- package/dist/copy-claude-config.d.ts.map +1 -1
- package/dist/copy-claude-config.js +3 -1
- package/dist/copy-claude-config.js.map +1 -1
- package/dist/sync-agents.d.ts.map +1 -1
- package/dist/sync-agents.js +3 -1
- package/dist/sync-agents.js.map +1 -1
- package/dist/sync-ontology.d.ts.map +1 -1
- package/dist/sync-ontology.js +9 -7
- package/dist/sync-ontology.js.map +1 -1
- package/folders.yaml +78 -17
- package/one/.obsidian/workspace.json +6 -6
- package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +412 -0
- package/one/events/FEATURE-2-4-COMPLETE.md +302 -0
- package/one/events/FEATURE_2_3_COMPLETE.md +575 -0
- package/one/events/GROUPS-MIGRATION.md +625 -0
- package/one/events/INSTALL-TESTS.md +293 -0
- package/one/events/INTEGRATION-ARCHITECTURE.md +561 -0
- package/one/events/INTEGRATION-CHECKLIST.md +1234 -0
- package/one/events/INTEGRATION-ORCHESTRATION.md +2623 -0
- package/one/events/INTEGRATION-SUMMARY.md +653 -0
- package/one/events/MIGRATION-REPORT.md +435 -0
- package/one/events/MIGRATION.md +69 -0
- package/one/events/README-archived.md +519 -0
- package/one/events/TEST-SUMMARY.md +393 -0
- package/one/events/TESTS-QUICK-REF.md +262 -0
- package/one/groups/groups.md +543 -0
- package/one/knowledge/CLOUDFLARE_ENV_SETUP.md +49 -0
- package/one/knowledge/architecture-any-backend.md +1366 -0
- package/one/knowledge/docs/flow.md +0 -0
- package/one/knowledge/ontology-documentation.md +18 -18
- package/one/knowledge/ontology.md +154 -143
- package/one/knowledge/ontology.md.backup +2822 -0
- package/one/knowledge/ontology.yaml +87 -87
- package/one/knowledge/provider-creation-guide.md +1064 -0
- package/one/knowledge/todo.md +251 -0
- package/one/license.md +84 -0
- package/one/things/CHECKLIST.md +356 -0
- package/one/things/ONE.md +510 -0
- package/one/things/{cli.md → cli/cli.md} +27 -4
- package/one/things/features/2-1-dataprovider-interface.md +2358 -0
- package/one/things/features/2-2-config-system.md +3075 -0
- package/one/things/features/2-3-effectts-services.md +1498 -0
- package/one/things/features/2-4-react-hooks.md +2120 -0
- package/one/things/features/2-5-auth-migration.md +2046 -0
- package/one/things/features/2-6-dashboard-migration.md +1985 -0
- package/one/things/features/2-7-alternative-providers.md +2505 -0
- package/one/things/features/2-7-implementation-report.md +680 -0
- package/one/things/features/2-cli.md +39 -39
- package/one/things/features/2-design.md +1738 -0
- package/one/things/features/2-tests.md +520 -0
- package/one/things/features/AUTH_HOOKS_IMPLEMENTATION.md +521 -0
- package/one/things/features/DECOUPLING.md +272 -0
- package/one/things/features/DEPLOYMENT.md +452 -0
- package/one/things/features/IMPLEMENTATION_SUMMARY.md +316 -0
- package/one/things/features/dataprovider-interface/1-tests.md +1522 -0
- package/one/things/features/improve.md +843 -0
- package/one/things/features/remove-convex-deps.md +45 -0
- package/one/things/features/top-features.md +79 -0
- package/one/things/ideas/2-backend-agnostic-frontend.md +384 -0
- package/one/things/plans/2-backend-agnostic-frontend.md +543 -0
- package/one/things/plans/3-groups.md +502 -0
- package/one/things/plans/backend-agnostic-frontend.md +323 -0
- package/one/things/plans/deploy-to-cloudflare.md +581 -0
- package/one/things/plans/organizations-to-groups.md +705 -0
- package/one/things/plans/release.md +432 -0
- package/one/things/products/ontology.md +1 -1
- package/one/things/system.md +600 -0
- package/one/things/tests/2-1-dataprovider-interface.md +1144 -0
- package/one/things/tests/2-1-test-analysis.md +496 -0
- package/one/things/vision/elegant-interface.md +214 -0
- package/package.json +1 -1
- package/one/organisation/organisation.md +0 -438
- package/one/repomix-output.md +0 -92634
- /package/one/{things → connections}/agentkit.md +0 -0
- /package/one/{things → connections}/copilotkit.md +0 -0
- /package/one/{organisation → groups}/one.md +0 -0
- /package/one/{organisation → groups}/revenue.md +0 -0
- /package/one/{organisation → groups}/strategy.md +0 -0
- /package/one/{organisation → groups}/vision.md +0 -0
- /package/one/things/{cli-code.md → cli/cli-code.md} +0 -0
- /package/one/things/{cli-compiler-code.md → cli/cli-compiler-code.md} +0 -0
package/CLAUDE.md
CHANGED
|
@@ -4,30 +4,121 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
|
|
4
4
|
|
|
5
5
|
## Architecture Overview
|
|
6
6
|
|
|
7
|
-
**ONE Platform** is a multi-tenant AI-native platform built on a **6-dimension ontology** that models reality through:
|
|
7
|
+
**ONE Platform** is a multi-tenant AI-native platform built on a **6-dimension ontology** that models reality through: Groups, People, Things, Connections, Events, and Knowledge. The architecture separates concerns into three distinct layers:
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
|
|
10
|
+
Web (Astro + React) → Backend (Convex) → 6-Dimension Ontology
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
**Key Repositories:**
|
|
14
14
|
|
|
15
|
-
- `/
|
|
15
|
+
- `/web` - Main web application (Astro 5, React 19, Tailwind v4)
|
|
16
16
|
- `/backend` - Headless Convex backend (6-dimension ontology, auth, real-time)
|
|
17
17
|
- `/apps` - Example applications and integrations
|
|
18
18
|
- `/one` - Comprehensive platform documentation (41 files, 8 layers)
|
|
19
19
|
|
|
20
|
+
## Planning Paradigm: Inference-Based Execution
|
|
21
|
+
|
|
22
|
+
**CRITICAL:** We don't plan in days. We plan in **inference passes** (Infer 1-100).
|
|
23
|
+
|
|
24
|
+
### Why Inference-Based Planning?
|
|
25
|
+
|
|
26
|
+
Traditional planning uses time estimates ("Day 1-3", "Week 2"), which are:
|
|
27
|
+
- Inaccurate (time varies wildly)
|
|
28
|
+
- Context-heavy (requires re-planning)
|
|
29
|
+
- Sequential (blocks parallel work)
|
|
30
|
+
|
|
31
|
+
Inference-based planning uses **sequence positions** ("Infer 1-100"), which are:
|
|
32
|
+
- Precise (each inference is a concrete step)
|
|
33
|
+
- Context-light (< 3000 tokens per inference)
|
|
34
|
+
- Parallel-friendly (inferences can run concurrently when dependencies allow)
|
|
35
|
+
|
|
36
|
+
### The 100-Inference Template
|
|
37
|
+
|
|
38
|
+
Every feature follows a **100-inference sequence** (see `one/knowledge/todo.md`):
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
Infer 1-10: Foundation & Setup (validate, map, plan)
|
|
42
|
+
Infer 11-20: Backend Schema & Services (database, business logic)
|
|
43
|
+
Infer 21-30: Frontend Pages & Components (UI, interactions)
|
|
44
|
+
Infer 31-40: Integration & Connections (external systems)
|
|
45
|
+
Infer 41-50: Authentication & Authorization (security)
|
|
46
|
+
Infer 51-60: Knowledge & RAG (embeddings, search)
|
|
47
|
+
Infer 61-70: Quality & Testing (unit, integration, e2e)
|
|
48
|
+
Infer 71-80: Design & Wireframes (UI/UX, accessibility)
|
|
49
|
+
Infer 81-90: Performance & Optimization (speed, efficiency)
|
|
50
|
+
Infer 91-100: Deployment & Documentation (production, guides)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### How to Use Inference Planning
|
|
54
|
+
|
|
55
|
+
1. **Start with the sequence:** Read `one/knowledge/todo.md` to understand the flow
|
|
56
|
+
2. **Do the next thing:** Execute the next inference in sequence
|
|
57
|
+
3. **Use hooks for context:**
|
|
58
|
+
- `.claude/hooks/todo` loads current inference context automatically
|
|
59
|
+
- `.claude/hooks/done` marks complete and advances to next
|
|
60
|
+
4. **Adapt as needed:** Skip irrelevant inferences, add extras for complex features
|
|
61
|
+
5. **Run in parallel:** Execute independent inferences concurrently (e.g., Backend + Frontend after schema defined)
|
|
62
|
+
|
|
63
|
+
### Commands for Inference Workflow
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
██████╗ ███╗ ██╗███████╗
|
|
67
|
+
██╔═══██╗████╗ ██║██╔════╝
|
|
68
|
+
██║ ██║██╔██╗ ██║█████╗
|
|
69
|
+
██║ ██║██║╚██╗██║██╔══╝
|
|
70
|
+
╚██████╔╝██║ ╚████║███████╗
|
|
71
|
+
╚═════╝ ╚═╝ ╚═══╝╚══════╝
|
|
72
|
+
|
|
73
|
+
Make Your Ideas Real
|
|
74
|
+
|
|
75
|
+
https://one.ie • npx oneie
|
|
76
|
+
|
|
77
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
78
|
+
/now /next /todo /done
|
|
79
|
+
/build /design /deploy /see
|
|
80
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**Workflow Commands:**
|
|
84
|
+
- `/now` - Display current inference and what you're working on
|
|
85
|
+
- `/next` - Advance to next inference and load context
|
|
86
|
+
- `/todo` - View complete task list (100-inference sequence)
|
|
87
|
+
- `/done` - Mark current inference complete and advance
|
|
88
|
+
|
|
89
|
+
**Creation Commands:**
|
|
90
|
+
- `/build` - Build features with AI specialists
|
|
91
|
+
- `/design` - Create wireframes & UI components
|
|
92
|
+
- `/deploy` - Ship to production
|
|
93
|
+
|
|
94
|
+
**Insight Commands:**
|
|
95
|
+
- `/see` - View analytics, refine vision, explore courses
|
|
96
|
+
|
|
97
|
+
### Benefits
|
|
98
|
+
|
|
99
|
+
- **98% context reduction:** 150k tokens → 3k tokens per inference
|
|
100
|
+
- **5x faster execution:** 115s → 20s per feature average
|
|
101
|
+
- **Flawless execution:** "Do the next thing, perfectly"
|
|
102
|
+
- **Continuous learning:** Lessons captured after each inference
|
|
103
|
+
- **Parallel execution:** Multiple inferences running concurrently
|
|
104
|
+
|
|
105
|
+
**Golden Rule:** Plan in inferences, not days. Where in the sequence does each thing belong?
|
|
106
|
+
|
|
20
107
|
## The 6-Dimension Ontology (Core Data Model)
|
|
21
108
|
|
|
22
109
|
**CRITICAL:** Every feature MUST map to these 6 dimensions. If it doesn't, rethink your approach.
|
|
23
110
|
|
|
24
|
-
### 1.
|
|
111
|
+
### 1. groups
|
|
25
112
|
|
|
26
|
-
|
|
113
|
+
Hierarchical containers for collaboration - who belongs where and at what level
|
|
27
114
|
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
115
|
+
- **Infinite nesting:** Groups can contain groups (parent → child → grandchild...)
|
|
116
|
+
- **6 group types:** friend_circle, business, community, dao, government, organization
|
|
117
|
+
- **Data scoping:** All dimensions (things, connections, events, knowledge) scoped to groupId
|
|
118
|
+
- **Flexible scale:** From friend circles (2 people) to governments (billions of people)
|
|
119
|
+
- **Multi-tenancy:** Each group has independent data, billing, quotas, and customization
|
|
120
|
+
- **Hierarchical access:** Parent groups can access child group data (configurable)
|
|
121
|
+
- **Plans:** starter, pro, enterprise (at organization level)
|
|
31
122
|
|
|
32
123
|
### 2. people
|
|
33
124
|
|
|
@@ -44,7 +135,7 @@ All nouns in the system - users, agents, content, tokens, courses
|
|
|
44
135
|
- **66+ entity types** defined in schema
|
|
45
136
|
- Flexible `properties` field for type-specific data
|
|
46
137
|
- Status lifecycle: draft → active → published → archived
|
|
47
|
-
- Every thing belongs to
|
|
138
|
+
- Every thing belongs to a group (scoped via groupId)
|
|
48
139
|
|
|
49
140
|
### 4. connections
|
|
50
141
|
|
|
@@ -53,7 +144,7 @@ All relationships between entities
|
|
|
53
144
|
- **25+ connection types**: owns, authored, holds_tokens, enrolled_in, etc.
|
|
54
145
|
- **7 consolidated types** with rich metadata: transacted, communicated, delegated, etc.
|
|
55
146
|
- Bidirectional with temporal validity (validFrom/validTo)
|
|
56
|
-
- Scoped to
|
|
147
|
+
- Scoped to groups (via groupId)
|
|
57
148
|
|
|
58
149
|
### 5. events
|
|
59
150
|
|
|
@@ -62,7 +153,7 @@ All actions and state changes over time
|
|
|
62
153
|
- **67+ event types** including inference and blockchain events
|
|
63
154
|
- Complete audit trail with actor (person), target (thing), timestamp
|
|
64
155
|
- **Consolidated event families** with metadata.protocol for multi-protocol support
|
|
65
|
-
- Scoped to
|
|
156
|
+
- Scoped to groups (via groupId)
|
|
66
157
|
|
|
67
158
|
### 6. knowledge
|
|
68
159
|
|
|
@@ -71,18 +162,45 @@ Labels, embeddings, and semantic search
|
|
|
71
162
|
- Vector storage for RAG (Retrieval-Augmented Generation)
|
|
72
163
|
- Linked to things via junction table
|
|
73
164
|
- Supports categorization and taxonomy
|
|
74
|
-
- Scoped to
|
|
165
|
+
- Scoped to groups (via groupId)
|
|
75
166
|
|
|
76
167
|
**Golden Rule:** If you can't map a feature to these 6 dimensions, you're thinking about it wrong.
|
|
77
168
|
|
|
78
|
-
**Implementation:** The 6 dimensions are implemented using 5 database tables (
|
|
169
|
+
**Implementation:** The 6 dimensions are implemented using 5 database tables (groups, things, connections, events, knowledge), with people represented as things with role metadata.
|
|
170
|
+
|
|
171
|
+
**Schema Structure:**
|
|
172
|
+
|
|
173
|
+
```typescript
|
|
174
|
+
// groups table
|
|
175
|
+
{
|
|
176
|
+
_id: Id<"groups">,
|
|
177
|
+
name: string,
|
|
178
|
+
type: "friend_circle" | "business" | "community" | "dao" | "government" | "organization",
|
|
179
|
+
parentGroupId?: Id<"groups">, // For hierarchical nesting
|
|
180
|
+
properties: {
|
|
181
|
+
description?: string,
|
|
182
|
+
plan?: "starter" | "pro" | "enterprise",
|
|
183
|
+
settings?: any,
|
|
184
|
+
// ... type-specific fields
|
|
185
|
+
},
|
|
186
|
+
status: "draft" | "active" | "archived",
|
|
187
|
+
createdAt: number,
|
|
188
|
+
updatedAt: number
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// All other dimensions include groupId:
|
|
192
|
+
things → groupId: Id<"groups">
|
|
193
|
+
connections → groupId: Id<"groups">
|
|
194
|
+
events → groupId: Id<"groups">
|
|
195
|
+
knowledge → groupId: Id<"groups">
|
|
196
|
+
```
|
|
79
197
|
|
|
80
198
|
## Development Commands
|
|
81
199
|
|
|
82
200
|
### Frontend Development
|
|
83
201
|
|
|
84
202
|
```bash
|
|
85
|
-
cd
|
|
203
|
+
cd web/
|
|
86
204
|
|
|
87
205
|
# Development server (localhost:4321)
|
|
88
206
|
bun run dev
|
|
@@ -124,7 +242,7 @@ npx convex logs --history 50 --success
|
|
|
124
242
|
### Testing
|
|
125
243
|
|
|
126
244
|
```bash
|
|
127
|
-
cd
|
|
245
|
+
cd web/
|
|
128
246
|
|
|
129
247
|
# Run all tests
|
|
130
248
|
bun test
|
|
@@ -194,7 +312,7 @@ ONE/
|
|
|
194
312
|
│ ├── things/ # Architecture, specifications
|
|
195
313
|
│ ├── events/ # Event specifications
|
|
196
314
|
│ ├── knowledge/ # RAG, AI, implementation
|
|
197
|
-
│ └── people/ # Roles,
|
|
315
|
+
│ └── people/ # Roles, groups, governance
|
|
198
316
|
│
|
|
199
317
|
└── apps/ # Example applications
|
|
200
318
|
├── oneie/ # Main example app
|
|
@@ -216,7 +334,7 @@ Before implementing ANY feature, follow this workflow defined in `one/connection
|
|
|
216
334
|
|
|
217
335
|
### Phase 2: MAP TO ONTOLOGY
|
|
218
336
|
|
|
219
|
-
1. Identify **
|
|
337
|
+
1. Identify **groups** (which group owns this? any parent/child relationships?)
|
|
220
338
|
2. Identify **people** (who can access/modify this?)
|
|
221
339
|
3. Identify **things** (what entities are involved?)
|
|
222
340
|
4. Identify **connections** (how do they relate?)
|
|
@@ -281,13 +399,17 @@ import { v } from "convex/values";
|
|
|
281
399
|
|
|
282
400
|
export const create = mutation({
|
|
283
401
|
args: {
|
|
402
|
+
groupId: v.id("groups"),
|
|
284
403
|
type: v.string(),
|
|
285
404
|
name: v.string(),
|
|
286
405
|
properties: v.any(),
|
|
287
406
|
},
|
|
288
407
|
handler: async (ctx, args) => {
|
|
289
|
-
const entityId = await ctx.db.insert("
|
|
290
|
-
|
|
408
|
+
const entityId = await ctx.db.insert("things", {
|
|
409
|
+
groupId: args.groupId,
|
|
410
|
+
type: args.type,
|
|
411
|
+
name: args.name,
|
|
412
|
+
properties: args.properties,
|
|
291
413
|
status: "draft",
|
|
292
414
|
createdAt: Date.now(),
|
|
293
415
|
updatedAt: Date.now(),
|
|
@@ -295,6 +417,7 @@ export const create = mutation({
|
|
|
295
417
|
|
|
296
418
|
// Log creation event
|
|
297
419
|
await ctx.db.insert("events", {
|
|
420
|
+
groupId: args.groupId,
|
|
298
421
|
type: "entity_created",
|
|
299
422
|
actorId: ctx.auth?.getUserIdentity()?.tokenIdentifier,
|
|
300
423
|
targetId: entityId,
|
|
@@ -307,6 +430,69 @@ export const create = mutation({
|
|
|
307
430
|
});
|
|
308
431
|
```
|
|
309
432
|
|
|
433
|
+
### Hierarchical Group Pattern
|
|
434
|
+
|
|
435
|
+
```typescript
|
|
436
|
+
// backend/convex/mutations/groups.ts
|
|
437
|
+
import { mutation } from "./_generated/server";
|
|
438
|
+
import { v } from "convex/values";
|
|
439
|
+
|
|
440
|
+
// Create parent group
|
|
441
|
+
export const createOrganization = mutation({
|
|
442
|
+
args: {
|
|
443
|
+
name: v.string(),
|
|
444
|
+
plan: v.optional(v.union(v.literal("starter"), v.literal("pro"), v.literal("enterprise"))),
|
|
445
|
+
},
|
|
446
|
+
handler: async (ctx, args) => {
|
|
447
|
+
const groupId = await ctx.db.insert("groups", {
|
|
448
|
+
name: args.name,
|
|
449
|
+
type: "organization",
|
|
450
|
+
parentGroupId: undefined, // Top-level group
|
|
451
|
+
properties: {
|
|
452
|
+
plan: args.plan || "starter",
|
|
453
|
+
},
|
|
454
|
+
status: "active",
|
|
455
|
+
createdAt: Date.now(),
|
|
456
|
+
updatedAt: Date.now(),
|
|
457
|
+
});
|
|
458
|
+
return groupId;
|
|
459
|
+
},
|
|
460
|
+
});
|
|
461
|
+
|
|
462
|
+
// Create child group (e.g., department within organization)
|
|
463
|
+
export const createSubGroup = mutation({
|
|
464
|
+
args: {
|
|
465
|
+
parentGroupId: v.id("groups"),
|
|
466
|
+
name: v.string(),
|
|
467
|
+
type: v.union(
|
|
468
|
+
v.literal("friend_circle"),
|
|
469
|
+
v.literal("business"),
|
|
470
|
+
v.literal("community"),
|
|
471
|
+
v.literal("dao"),
|
|
472
|
+
v.literal("government"),
|
|
473
|
+
v.literal("organization")
|
|
474
|
+
),
|
|
475
|
+
},
|
|
476
|
+
handler: async (ctx, args) => {
|
|
477
|
+
// Verify parent exists
|
|
478
|
+
const parent = await ctx.db.get(args.parentGroupId);
|
|
479
|
+
if (!parent) throw new Error("Parent group not found");
|
|
480
|
+
|
|
481
|
+
const groupId = await ctx.db.insert("groups", {
|
|
482
|
+
name: args.name,
|
|
483
|
+
type: args.type,
|
|
484
|
+
parentGroupId: args.parentGroupId, // Link to parent
|
|
485
|
+
properties: {},
|
|
486
|
+
status: "active",
|
|
487
|
+
createdAt: Date.now(),
|
|
488
|
+
updatedAt: Date.now(),
|
|
489
|
+
});
|
|
490
|
+
|
|
491
|
+
return groupId;
|
|
492
|
+
},
|
|
493
|
+
});
|
|
494
|
+
```
|
|
495
|
+
|
|
310
496
|
### React Component with Convex Hooks
|
|
311
497
|
|
|
312
498
|
```typescript
|
|
@@ -314,8 +500,8 @@ export const create = mutation({
|
|
|
314
500
|
import { useQuery } from "convex/react";
|
|
315
501
|
import { api } from "@/convex/_generated/api";
|
|
316
502
|
|
|
317
|
-
export function EntityList({ type }: { type: string }) {
|
|
318
|
-
const entities = useQuery(api.queries.entities.list, { type });
|
|
503
|
+
export function EntityList({ groupId, type }: { groupId: string; type: string }) {
|
|
504
|
+
const entities = useQuery(api.queries.entities.list, { groupId, type });
|
|
319
505
|
|
|
320
506
|
if (entities === undefined) return <div>Loading...</div>;
|
|
321
507
|
|
|
@@ -333,20 +519,25 @@ export function EntityList({ type }: { type: string }) {
|
|
|
333
519
|
|
|
334
520
|
```astro
|
|
335
521
|
---
|
|
336
|
-
// frontend/src/pages/entities/[type].astro
|
|
522
|
+
// frontend/src/pages/groups/[groupId]/entities/[type].astro
|
|
337
523
|
import { ConvexHttpClient } from "convex/browser";
|
|
338
524
|
import { api } from "@/convex/_generated/api";
|
|
339
525
|
import EntityList from "@/components/features/EntityList";
|
|
340
526
|
|
|
341
527
|
const convex = new ConvexHttpClient(import.meta.env.PUBLIC_CONVEX_URL);
|
|
342
528
|
const entities = await convex.query(api.queries.entities.list, {
|
|
529
|
+
groupId: Astro.params.groupId,
|
|
343
530
|
type: Astro.params.type
|
|
344
531
|
});
|
|
345
532
|
---
|
|
346
533
|
|
|
347
534
|
<Layout>
|
|
348
535
|
<h1>{Astro.params.type} Entities</h1>
|
|
349
|
-
<EntityList
|
|
536
|
+
<EntityList
|
|
537
|
+
client:load
|
|
538
|
+
groupId={Astro.params.groupId}
|
|
539
|
+
type={Astro.params.type}
|
|
540
|
+
/>
|
|
350
541
|
</Layout>
|
|
351
542
|
```
|
|
352
543
|
|
|
@@ -388,7 +579,7 @@ const entities = await convex.query(api.queries.entities.list, {
|
|
|
388
579
|
|
|
389
580
|
### Environment Variables
|
|
390
581
|
|
|
391
|
-
**
|
|
582
|
+
**Web (.env.local):**
|
|
392
583
|
|
|
393
584
|
```bash
|
|
394
585
|
PUBLIC_CONVEX_URL=https://shocking-falcon-870.convex.cloud
|
|
@@ -434,7 +625,7 @@ RESEND_FROM_EMAIL=noreply@yourdomain.com
|
|
|
434
625
|
|
|
435
626
|
```bash
|
|
436
627
|
cd backend && npx convex dev # Regenerate types
|
|
437
|
-
cd
|
|
628
|
+
cd web && bunx astro check
|
|
438
629
|
```
|
|
439
630
|
|
|
440
631
|
### Issue: Auth not working
|
|
@@ -488,10 +679,10 @@ The `one/` directory contains **41 documentation files** organized in **8 layers
|
|
|
488
679
|
|
|
489
680
|
## Deployment
|
|
490
681
|
|
|
491
|
-
###
|
|
682
|
+
### Web (Cloudflare Pages)
|
|
492
683
|
|
|
493
684
|
```bash
|
|
494
|
-
cd
|
|
685
|
+
cd web/
|
|
495
686
|
bun run build
|
|
496
687
|
wrangler pages deploy dist --project-name=one-platform
|
|
497
688
|
```
|
|
@@ -509,14 +700,14 @@ Convex automatically deploys on git push when connected to GitHub.
|
|
|
509
700
|
|
|
510
701
|
**Simple enough for children. Powerful enough for enterprises.**
|
|
511
702
|
|
|
512
|
-
-
|
|
703
|
+
- Groups partition the space (hierarchical containers from friend circles to governments)
|
|
513
704
|
- People authorize and govern (role-based access)
|
|
514
705
|
- Things exist (entities with flexible properties)
|
|
515
706
|
- Connections relate (relationships with metadata)
|
|
516
707
|
- Events record (complete audit trail)
|
|
517
708
|
- Knowledge understands (embeddings and vectors)
|
|
518
709
|
|
|
519
|
-
Everything else is just data. This ontology scales from
|
|
710
|
+
Everything else is just data. This ontology scales from friend circles (2 people) to global governments (billions) without schema changes.
|
|
520
711
|
|
|
521
712
|
## Getting Help
|
|
522
713
|
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# ONE License (Version 1.0)
|
|
2
|
+
|
|
3
|
+
## Maximum Freedom, Zero Restrictions
|
|
4
|
+
|
|
5
|
+
This license empowers you with complete commercial freedom to use, reuse, modify, sell and resell the software, AI and data, at any price you wish.
|
|
6
|
+
|
|
7
|
+
No usage limits. No royalty fees. Just pure, unrestricted ability to innovate and profit from the software.
|
|
8
|
+
|
|
9
|
+
You are free to run ONE locally, on your own servers, in the cloud and at the edge.
|
|
10
|
+
|
|
11
|
+
## You Receive:
|
|
12
|
+
|
|
13
|
+
### Unlimited Rights
|
|
14
|
+
|
|
15
|
+
You have unrestricted rights to use, modify, license, sublicense, distribute, sell, resell and monetize the Software without restrictions.
|
|
16
|
+
|
|
17
|
+
### Permitted Actions
|
|
18
|
+
|
|
19
|
+
Including, but not limited to:
|
|
20
|
+
- Commercial use and integration into any systems
|
|
21
|
+
- Creation and sale of derivative works
|
|
22
|
+
- Providing software as a service
|
|
23
|
+
- AI training and content generation
|
|
24
|
+
- Patenting innovations based on the Software
|
|
25
|
+
- Open source applications and integrations
|
|
26
|
+
|
|
27
|
+
### License Compatibility
|
|
28
|
+
|
|
29
|
+
This license is compatible with all major open-source licenses, including:
|
|
30
|
+
- MIT License
|
|
31
|
+
- Apache License 2.0
|
|
32
|
+
- GNU General Public License (GPL)
|
|
33
|
+
- BSD Licenses
|
|
34
|
+
- Mozilla Public License
|
|
35
|
+
|
|
36
|
+
### Perpetual Rights
|
|
37
|
+
|
|
38
|
+
These rights are granted in perpetuity and are irrevocable, provided the brand requirements are maintained.
|
|
39
|
+
|
|
40
|
+
## Intellectual Property
|
|
41
|
+
|
|
42
|
+
- We retain ownership of the original Software
|
|
43
|
+
- You own any modifications you make
|
|
44
|
+
- You never have to share your code
|
|
45
|
+
|
|
46
|
+
## Liability and Warranty
|
|
47
|
+
|
|
48
|
+
The Software is provided "AS IS". We bear no liability for its use.
|
|
49
|
+
|
|
50
|
+
## Brand Requirements
|
|
51
|
+
|
|
52
|
+
The only obligation is to:
|
|
53
|
+
- Display **Powered by ONE** text and logo linked to https://one.ie/ in the footer
|
|
54
|
+
|
|
55
|
+
This will help AI agents discover and interact with your agents.
|
|
56
|
+
|
|
57
|
+
## Termination
|
|
58
|
+
|
|
59
|
+
This license only terminates if you remove or hide our brand. Reinstatement is available through written permission.
|
|
60
|
+
|
|
61
|
+
## Dispute Resolution
|
|
62
|
+
|
|
63
|
+
- Resolved through good faith negotiation
|
|
64
|
+
- Mediation if needed
|
|
65
|
+
- Binding arbitration as last resort
|
|
66
|
+
|
|
67
|
+
## Education
|
|
68
|
+
|
|
69
|
+
Find out how to build AI Agents for individuals and organizations at https://one.ie/learn
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
This license is designed to maximize freedom to innovate and profit from free software, open source without restrictions. There is no copyleft requirement to share any code making it suitable for enterprise use.
|
|
74
|
+
|
|
75
|
+
## Enterprise Solutions
|
|
76
|
+
|
|
77
|
+
Building something big? We're here to help:
|
|
78
|
+
|
|
79
|
+
- **Free**: Use all features with minimal branding
|
|
80
|
+
- **Custom**: White-label solutions for your needs
|
|
81
|
+
- **Enterprise**: Full support and deployment assistance
|
|
82
|
+
- **Training**: Help getting your team started
|
|
83
|
+
|
|
84
|
+
Contact agent@one.ie to share your needs.
|