oneie 2.0.10 → 3.0.3
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/LICENSE.md +16 -11
- package/README.md +110 -128
- package/folders.yaml +1 -1
- package/one/.obsidian/workspace.json +6 -6
- package/one/README.md +88 -19
- package/one/knowledge/ontology-frontend.md +76 -46
- package/one/license.md +16 -11
- package/one/things/ONE.md +22 -21
- package/one/things/plans/5-build-frontend.md +0 -0
- package/one/things/plans/switch-off-auth.md +20 -0
- package/package.json +1 -1
- /package/one/things/{vision/elegant-interface.md → interface.md} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Frontend Development Ontology
|
|
2
2
|
|
|
3
|
-
**Version:**
|
|
3
|
+
**Version:** 2.0.0
|
|
4
4
|
**Type System:** Formal ontology for backend-agnostic Astro website development
|
|
5
5
|
**Paradigm:** Pure declarative type theory + Provider pattern + Context engineering
|
|
6
6
|
|
|
@@ -31,42 +31,49 @@
|
|
|
31
31
|
## Core Axioms
|
|
32
32
|
|
|
33
33
|
### Axiom 1: Everything is a Thing
|
|
34
|
+
|
|
34
35
|
```
|
|
35
36
|
∀x ∈ Frontend → x : Thing
|
|
36
37
|
Thing ::= Page | Component | Content | Service | Provider | Configuration
|
|
37
38
|
```
|
|
38
39
|
|
|
39
40
|
### Axiom 2: All Things Have Type
|
|
41
|
+
|
|
40
42
|
```
|
|
41
43
|
type : Thing → TypeID
|
|
42
44
|
TypeID ::= String ∈ ontology.things.types
|
|
43
45
|
```
|
|
44
46
|
|
|
45
47
|
### Axiom 3: Things Connect
|
|
48
|
+
|
|
46
49
|
```
|
|
47
50
|
connect : Thing × Thing → Connection
|
|
48
51
|
Connection ::= { from: Thing, to: Thing, type: RelationType, metadata: Object }
|
|
49
52
|
```
|
|
50
53
|
|
|
51
54
|
### Axiom 4: Actions Emit Events
|
|
55
|
+
|
|
52
56
|
```
|
|
53
57
|
action : Thing → Event
|
|
54
58
|
Event ::= { type: EventType, actor: Thing, target: Thing, timestamp: Time, metadata: Object }
|
|
55
59
|
```
|
|
56
60
|
|
|
57
61
|
### Axiom 5: Patterns Compose
|
|
62
|
+
|
|
58
63
|
```
|
|
59
64
|
compose : Pattern × Pattern → Pattern
|
|
60
65
|
Pattern ::= { type: PatternType, inputs: [Thing], outputs: [Thing], transform: Function }
|
|
61
66
|
```
|
|
62
67
|
|
|
63
68
|
### Axiom 6: Backend Agnosticism
|
|
69
|
+
|
|
64
70
|
```
|
|
65
71
|
∀Provider. Provider implements DataProviderInterface → Frontend works with Provider
|
|
66
72
|
DataProviderInterface ::= { organizations, people, things, connections, events, knowledge }
|
|
67
73
|
```
|
|
68
74
|
|
|
69
75
|
### Axiom 7: Context Minimalism
|
|
76
|
+
|
|
70
77
|
```
|
|
71
78
|
∀Operation. Load only required types, not implementations
|
|
72
79
|
ContextUsed << ContextAvailable
|
|
@@ -178,6 +185,7 @@ target_reduction: 98%+
|
|
|
178
185
|
## Type Hierarchy
|
|
179
186
|
|
|
180
187
|
### Base Types
|
|
188
|
+
|
|
181
189
|
```
|
|
182
190
|
Thing
|
|
183
191
|
├── Artifact // Code artifacts (what agents create)
|
|
@@ -234,25 +242,42 @@ Thing
|
|
|
234
242
|
## Critical Distinctions
|
|
235
243
|
|
|
236
244
|
### What Frontend IS
|
|
245
|
+
|
|
237
246
|
```typescript
|
|
238
247
|
type FrontendResponsibility =
|
|
239
|
-
| { type: "render"; data: any }
|
|
248
|
+
| { type: "render"; data: any } // Display UI from data
|
|
240
249
|
| { type: "call_provider"; operation: DataOperation } // Call DataProvider (not direct backend)
|
|
241
|
-
| { type: "manage_ui_state"; state: UIState }
|
|
242
|
-
| { type: "route"; path: Path }
|
|
243
|
-
| { type: "cache_display"; data: CachedData }
|
|
250
|
+
| { type: "manage_ui_state"; state: UIState } // Form inputs, modals, loading (component-local)
|
|
251
|
+
| { type: "route"; path: Path } // Client-side navigation
|
|
252
|
+
| { type: "cache_display"; data: CachedData }; // Cache UI data (not business data)
|
|
244
253
|
```
|
|
245
254
|
|
|
246
255
|
### What Frontend IS NOT
|
|
256
|
+
|
|
247
257
|
```typescript
|
|
248
258
|
type FrontendProhibition =
|
|
249
259
|
| { type: "database_access"; reason: "Backend-only (provider abstracts)" }
|
|
250
|
-
| {
|
|
260
|
+
| {
|
|
261
|
+
type: "business_logic";
|
|
262
|
+
reason: "Backend validates (frontend calls provider)";
|
|
263
|
+
}
|
|
251
264
|
| { type: "event_logging"; reason: "Backend logs (frontend just triggers)" }
|
|
252
|
-
| {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
265
|
+
| {
|
|
266
|
+
type: "authorization";
|
|
267
|
+
reason: "Backend authorizes (frontend just checks state)";
|
|
268
|
+
}
|
|
269
|
+
| {
|
|
270
|
+
type: "data_validation";
|
|
271
|
+
reason: "Backend validates (frontend UX hints only)";
|
|
272
|
+
}
|
|
273
|
+
| {
|
|
274
|
+
type: "org_filtering";
|
|
275
|
+
reason: "Provider handles (frontend never filters by org)";
|
|
276
|
+
}
|
|
277
|
+
| {
|
|
278
|
+
type: "backend_specific_code";
|
|
279
|
+
reason: "Provider abstracts (frontend uses interface)";
|
|
280
|
+
};
|
|
256
281
|
```
|
|
257
282
|
|
|
258
283
|
---
|
|
@@ -395,6 +420,7 @@ type FrontendProhibition =
|
|
|
395
420
|
## DataProvider Interface (Universal API)
|
|
396
421
|
|
|
397
422
|
### Core Contract
|
|
423
|
+
|
|
398
424
|
```typescript
|
|
399
425
|
// ALL backends must implement this interface
|
|
400
426
|
interface DataProviderInterface {
|
|
@@ -452,6 +478,7 @@ interface DataProviderInterface {
|
|
|
452
478
|
```
|
|
453
479
|
|
|
454
480
|
### Provider Algebra
|
|
481
|
+
|
|
455
482
|
```typescript
|
|
456
483
|
// Provider composition
|
|
457
484
|
implement : Backend × DataProviderInterface → Provider
|
|
@@ -662,44 +689,44 @@ type NotionProvider = Provider & {
|
|
|
662
689
|
```typescript
|
|
663
690
|
// Display Configuration (UI only, NOT business logic)
|
|
664
691
|
type DisplayConfig = Configuration & {
|
|
665
|
-
purpose: "ui_presentation"
|
|
666
|
-
scope: ThingType[]
|
|
692
|
+
purpose: "ui_presentation";
|
|
693
|
+
scope: ThingType[];
|
|
667
694
|
|
|
668
695
|
properties: {
|
|
669
|
-
displayName: string
|
|
670
|
-
displayNamePlural: string
|
|
671
|
-
icon: LucideIconName
|
|
672
|
-
color: TailwindColor
|
|
673
|
-
primaryField: string
|
|
674
|
-
secondaryField: string
|
|
675
|
-
imageField: string
|
|
676
|
-
fields: FieldConfig[]
|
|
677
|
-
}
|
|
696
|
+
displayName: string; // "Course" (singular)
|
|
697
|
+
displayNamePlural: string; // "Courses" (plural)
|
|
698
|
+
icon: LucideIconName; // "BookOpen"
|
|
699
|
+
color: TailwindColor; // "green"
|
|
700
|
+
primaryField: string; // Which property to show as title
|
|
701
|
+
secondaryField: string; // Which property to show as subtitle
|
|
702
|
+
imageField: string; // Which property is the image
|
|
703
|
+
fields: FieldConfig[]; // Form fields for UI
|
|
704
|
+
};
|
|
678
705
|
|
|
679
706
|
invariant: {
|
|
680
|
-
ui_only: true
|
|
681
|
-
backend_agnostic: true
|
|
682
|
-
display_hints: true
|
|
683
|
-
}
|
|
684
|
-
}
|
|
707
|
+
ui_only: true; // NO business logic
|
|
708
|
+
backend_agnostic: true; // Works with any provider
|
|
709
|
+
display_hints: true; // Labels, placeholders, icons
|
|
710
|
+
};
|
|
711
|
+
};
|
|
685
712
|
|
|
686
713
|
// Provider Configuration (backend connection)
|
|
687
714
|
type ProviderConfig = Configuration & {
|
|
688
|
-
purpose: "backend_connection"
|
|
715
|
+
purpose: "backend_connection";
|
|
689
716
|
|
|
690
717
|
properties: {
|
|
691
|
-
provider: ProviderType
|
|
692
|
-
url: string
|
|
693
|
-
apiKey?: string
|
|
694
|
-
databaseId?: string
|
|
718
|
+
provider: ProviderType; // "convex" | "wordpress" | "notion" | etc
|
|
719
|
+
url: string; // Backend URL
|
|
720
|
+
apiKey?: string; // API key (if needed)
|
|
721
|
+
databaseId?: string; // Database ID (for Notion)
|
|
695
722
|
// ... other backend-specific config
|
|
696
|
-
}
|
|
723
|
+
};
|
|
697
724
|
|
|
698
725
|
invariant: {
|
|
699
|
-
one_line_swap: true
|
|
700
|
-
environment_vars: true
|
|
701
|
-
}
|
|
702
|
-
}
|
|
726
|
+
one_line_swap: true; // Change provider in ONE line
|
|
727
|
+
environment_vars: true; // Use .env for secrets
|
|
728
|
+
};
|
|
729
|
+
};
|
|
703
730
|
```
|
|
704
731
|
|
|
705
732
|
---
|
|
@@ -2336,6 +2363,7 @@ type ProviderConfig = Configuration & {
|
|
|
2336
2363
|
### Ontology Evolution
|
|
2337
2364
|
|
|
2338
2365
|
**Version 4.0.0 Additions:**
|
|
2366
|
+
|
|
2339
2367
|
- **Provider as Context Loader** - 99.9% context reduction via interface abstraction
|
|
2340
2368
|
- **Multi-Tenant Architecture** - Subdomain-based org isolation enforced by provider
|
|
2341
2369
|
- **4-Tier Caching** - Type definitions, interface, SSR data, real-time subscriptions
|
|
@@ -2349,16 +2377,16 @@ type ProviderConfig = Configuration & {
|
|
|
2349
2377
|
|
|
2350
2378
|
### Key Metrics
|
|
2351
2379
|
|
|
2352
|
-
| Metric
|
|
2353
|
-
|
|
2354
|
-
| **Context per request** | 50k-300k tokens
|
|
2355
|
-
| **Backend coupling**
|
|
2356
|
-
| **Caching strategy**
|
|
2357
|
-
| **Error handling**
|
|
2358
|
-
| **Testing strategy**
|
|
2359
|
-
| **State management**
|
|
2360
|
-
| **Observability**
|
|
2361
|
-
| **Agent coordination**
|
|
2380
|
+
| Metric | v3.0.0 | v4.0.0 | Improvement |
|
|
2381
|
+
| ----------------------- | ---------------------- | -------------------------------------- | ---------------------- |
|
|
2382
|
+
| **Context per request** | 50k-300k tokens | 300-5k tokens | **99%+ reduction** |
|
|
2383
|
+
| **Backend coupling** | High (Convex-specific) | Zero (provider abstraction) | **Infinite backends** |
|
|
2384
|
+
| **Caching strategy** | Undefined | 4-tier (L1-L4) | **80-95% fewer calls** |
|
|
2385
|
+
| **Error handling** | Basic | Full propagation | **100% coverage** |
|
|
2386
|
+
| **Testing strategy** | Ad-hoc | 3-layer (unit/int/e2e) | **Systematic** |
|
|
2387
|
+
| **State management** | Unclear | 4-layer hierarchy | **No duplication** |
|
|
2388
|
+
| **Observability** | None | 4-pillar (calls, context, cache, perf) | **Full visibility** |
|
|
2389
|
+
| **Agent coordination** | Sequential | Parallel (event-driven) | **5x faster** |
|
|
2362
2390
|
|
|
2363
2391
|
### Derivation Power
|
|
2364
2392
|
|
|
@@ -2378,12 +2406,14 @@ From minimal axioms:
|
|
|
2378
2406
|
### Context Engineering Results
|
|
2379
2407
|
|
|
2380
2408
|
**Traditional approach:**
|
|
2409
|
+
|
|
2381
2410
|
- Load: 50k-300k tokens per request
|
|
2382
2411
|
- Cost: $0.50-$3.00 per request
|
|
2383
2412
|
- Speed: 30-60 seconds
|
|
2384
2413
|
- Backends: 1 (tightly coupled)
|
|
2385
2414
|
|
|
2386
2415
|
**Ontology-driven approach (v4.0.0):**
|
|
2416
|
+
|
|
2387
2417
|
- Load: 300-5k tokens per request (98-99% reduction)
|
|
2388
2418
|
- Cost: $0.003-$0.05 per request (100x cheaper)
|
|
2389
2419
|
- Speed: 2-5 seconds (10x faster)
|
package/one/license.md
CHANGED
|
@@ -17,6 +17,7 @@ You have unrestricted rights to use, modify, license, sublicense, distribute, se
|
|
|
17
17
|
### Permitted Actions
|
|
18
18
|
|
|
19
19
|
Including, but not limited to:
|
|
20
|
+
|
|
20
21
|
- Commercial use and integration into any systems
|
|
21
22
|
- Creation and sale of derivative works
|
|
22
23
|
- Providing software as a service
|
|
@@ -27,8 +28,9 @@ Including, but not limited to:
|
|
|
27
28
|
### License Compatibility
|
|
28
29
|
|
|
29
30
|
This license is compatible with all major open-source licenses, including:
|
|
31
|
+
|
|
30
32
|
- MIT License
|
|
31
|
-
- Apache License
|
|
33
|
+
- Apache License
|
|
32
34
|
- GNU General Public License (GPL)
|
|
33
35
|
- BSD Licenses
|
|
34
36
|
- Mozilla Public License
|
|
@@ -39,24 +41,23 @@ These rights are granted in perpetuity and are irrevocable, provided the brand r
|
|
|
39
41
|
|
|
40
42
|
## Intellectual Property
|
|
41
43
|
|
|
42
|
-
- We retain ownership of the original
|
|
43
|
-
- You own any modifications you make
|
|
44
|
-
- You never have to share your code
|
|
44
|
+
- We retain ownership of the original data.
|
|
45
|
+
- You own any modifications you make.
|
|
46
|
+
- You never have to share your code or data.
|
|
45
47
|
|
|
46
48
|
## Liability and Warranty
|
|
47
49
|
|
|
48
|
-
The
|
|
50
|
+
The data and code is provided "AS IS". We bear no liability for its use.
|
|
49
51
|
|
|
50
52
|
## Brand Requirements
|
|
51
53
|
|
|
52
|
-
The only obligation is
|
|
53
|
-
- Display **Powered by ONE** text and logo linked to https://one.ie/ in the footer
|
|
54
|
+
The only obligation is:
|
|
54
55
|
|
|
55
|
-
|
|
56
|
+
- Don't remove ONE brand, logo and link to https://one.ie/.
|
|
56
57
|
|
|
57
58
|
## Termination
|
|
58
59
|
|
|
59
|
-
This license
|
|
60
|
+
This license terminates if you remove or hide our brand.
|
|
60
61
|
|
|
61
62
|
## Dispute Resolution
|
|
62
63
|
|
|
@@ -66,7 +67,11 @@ This license only terminates if you remove or hide our brand. Reinstatement is a
|
|
|
66
67
|
|
|
67
68
|
## Education
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
Learn how to build AI Agents at https://one.ie/learn
|
|
71
|
+
|
|
72
|
+
## Agents
|
|
73
|
+
|
|
74
|
+
Connect to https://one.ie/llms.txt
|
|
70
75
|
|
|
71
76
|
---
|
|
72
77
|
|
|
@@ -76,7 +81,7 @@ This license is designed to maximize freedom to innovate and profit from free so
|
|
|
76
81
|
|
|
77
82
|
Building something big? We're here to help:
|
|
78
83
|
|
|
79
|
-
- **Free**: Use all features with minimal branding
|
|
84
|
+
- **Free**: Use all features with minimal branding - compliant with your enterprise
|
|
80
85
|
- **Custom**: White-label solutions for your needs
|
|
81
86
|
- **Enterprise**: Full support and deployment assistance
|
|
82
87
|
- **Training**: Help getting your team started
|
package/one/things/ONE.md
CHANGED
|
@@ -20,7 +20,7 @@ ONE separates concerns while enabling exponential growth:
|
|
|
20
20
|
├── .claude/ # Shared Claude Code commands, hooks, and agents
|
|
21
21
|
│ ├── commands/ # Slash commands: /push-ontology, /push-frontend, etc.
|
|
22
22
|
│ └── hooks/ # Shared git hooks and automations
|
|
23
|
-
├── one/ # Universal Schema - Ontology documentation (git: one-ie/one
|
|
23
|
+
├── one/ # Universal Schema - Ontology documentation (git: one-ie/one)
|
|
24
24
|
│ ├── people/ # Individuals, teams, organizations
|
|
25
25
|
│ ├── things/ # Products, tools, assets, agents, plans
|
|
26
26
|
│ ├── connections/ # Relationships, workflows, integrations
|
|
@@ -31,6 +31,7 @@ ONE separates concerns while enabling exponential growth:
|
|
|
31
31
|
├── apps/ # Application repos
|
|
32
32
|
│ ├── bullfm/ # (git: bull-fm/bullfm)
|
|
33
33
|
│ ├── stack/ # (git: one-ie/stack)
|
|
34
|
+
│ ├── one/ # (git: one-ie/one)
|
|
34
35
|
│ └── ...
|
|
35
36
|
└── ONE.md # This file - Architecture documentation
|
|
36
37
|
```
|
|
@@ -43,14 +44,14 @@ npm install -g oneie
|
|
|
43
44
|
|
|
44
45
|
# Or use directly with npx
|
|
45
46
|
npx oneie init # Creates .claude/ and one/ structure
|
|
46
|
-
npx oneie clone frontend # Clones one-ie/frontend into
|
|
47
|
-
npx oneie clone backend # Clones one-ie/backend into
|
|
47
|
+
npx oneie clone frontend # Clones one-ie/frontend into /web
|
|
48
|
+
npx oneie clone backend # Clones one-ie/backend into /backend (later)
|
|
48
49
|
```
|
|
49
50
|
|
|
50
51
|
### Repository Structure
|
|
51
52
|
|
|
52
53
|
- **Root workspace**: NOT a git repo - just a workspace directory
|
|
53
|
-
- **Independent repos**: Each subdirectory (`one/`, `
|
|
54
|
+
- **Independent repos**: Each subdirectory (`one/`, `web/`, `backend/`) is its own git repo
|
|
54
55
|
- **Shared tooling**: `.claude/` contains commands and hooks used across all repos
|
|
55
56
|
- **No submodules**: Simple, elegant - just clone repos where needed
|
|
56
57
|
|
|
@@ -58,12 +59,12 @@ npx oneie clone backend # Clones one-ie/backend into ./backend
|
|
|
58
59
|
|
|
59
60
|
### Core Systems
|
|
60
61
|
|
|
61
|
-
| Path
|
|
62
|
-
|
|
|
63
|
-
| `.claude/`
|
|
64
|
-
| `one/`
|
|
65
|
-
| `
|
|
66
|
-
| `backend/`
|
|
62
|
+
| Path | Repository | Visibility | Purpose | URLs |
|
|
63
|
+
| ---------- | --------------------- | ---------- | ---------------------------------------------------- | ------------------ |
|
|
64
|
+
| `.claude/` | Shared tooling | Private | Claude Code commands, hooks, agents (not a git repo) | - |
|
|
65
|
+
| `one/` | `one-ie/one-ontology` | Private | Canonical ontology and knowledge graph | - |
|
|
66
|
+
| `web/` | `one-ie/one` | Public | Demo of ONE experience | https://web.one.ie |
|
|
67
|
+
| `backend/` | `one-ie/backend` | Private | Knowledge API (Convex + Hono) | https://api.one.ie |
|
|
67
68
|
|
|
68
69
|
### Applications
|
|
69
70
|
|
|
@@ -77,7 +78,7 @@ npx oneie clone backend # Clones one-ie/backend into ./backend
|
|
|
77
78
|
### Access Model
|
|
78
79
|
|
|
79
80
|
- **Private**: Ontology (`one/`), backend (`backend/`), Bull FM, Stack starter
|
|
80
|
-
- **Public**:
|
|
81
|
+
- **Public**: Web (`web/`), Astro Shadcn, Astro Email
|
|
81
82
|
- **Shared Tooling**: `.claude/` directory contains commands and hooks used across all repos
|
|
82
83
|
|
|
83
84
|
### Git Workflow
|
|
@@ -89,14 +90,14 @@ Each repo has its own git remote and can be pushed independently:
|
|
|
89
90
|
cd one && git push
|
|
90
91
|
|
|
91
92
|
# Push frontend changes
|
|
92
|
-
cd
|
|
93
|
+
cd web && git push
|
|
93
94
|
|
|
94
95
|
# Push backend changes
|
|
95
96
|
cd backend && git push
|
|
96
97
|
|
|
97
98
|
# Or use Claude Code commands
|
|
98
99
|
/push-ontology # Pushes one/ to one-ie/one-ontology
|
|
99
|
-
/push-
|
|
100
|
+
/push-web # Pushes frontend/ to one-ie/frontend
|
|
100
101
|
/push-backend # Pushes backend/ to one-ie/backend
|
|
101
102
|
```
|
|
102
103
|
|
|
@@ -118,7 +119,8 @@ cd backend && git push
|
|
|
118
119
|
|
|
119
120
|
```
|
|
120
121
|
one/
|
|
121
|
-
├──
|
|
122
|
+
├── groups/ # Friends or governments
|
|
123
|
+
├── people/ # Individuals
|
|
122
124
|
├── things/ # Products, tools, assets, resources, technologies
|
|
123
125
|
├── connections/ # Relationships, links, associations between entities
|
|
124
126
|
├── events/ # Milestones, triggers, moments, achievements
|
|
@@ -311,7 +313,7 @@ ontology: {
|
|
|
311
313
|
### 1. Knowledge Import (ONE-Import → ONE)
|
|
312
314
|
|
|
313
315
|
```
|
|
314
|
-
ONE-Import
|
|
316
|
+
ONE-Import
|
|
315
317
|
├── /one → /Users/toc/Server/ONE/one (Universal Schema)
|
|
316
318
|
├── /.claude/agents → backend/convex/agents table
|
|
317
319
|
├── /one/prompts → backend/convex/prompts table
|
|
@@ -353,6 +355,8 @@ The ONE system implements the **Test-Driven Vision CASCADE** methodology:
|
|
|
353
355
|
4. STORIES: Engineering narratives → Acceptance testing
|
|
354
356
|
5. EVENTS: Milestones & triggers → Completion validation
|
|
355
357
|
6. TASKS: Concrete actions → Quality gates
|
|
358
|
+
7. RESULTS: Evaluations
|
|
359
|
+
8. PROPERTY: Intellectual property and content, software and data
|
|
356
360
|
```
|
|
357
361
|
|
|
358
362
|
### How It Maps to ONE
|
|
@@ -377,10 +381,7 @@ The ONE system implements the **Test-Driven Vision CASCADE** methodology:
|
|
|
377
381
|
|
|
378
382
|
### Phase 1: Core Structure ✅
|
|
379
383
|
|
|
380
|
-
- [x]
|
|
381
|
-
- [x] Move astro-shadcn/one → /one
|
|
382
|
-
- [x] Move astro-shadcn → /frontend
|
|
383
|
-
- [x] Copy convex → /backend
|
|
384
|
+
- [x] Map to trinity directories (one, web, backend)
|
|
384
385
|
|
|
385
386
|
### Phase 2: Knowledge Import (Next)
|
|
386
387
|
|
|
@@ -428,7 +429,7 @@ one-import foundation /Users/toc/Server/ONE-Import/one/me
|
|
|
428
429
|
### Frontend (Edge)
|
|
429
430
|
|
|
430
431
|
```bash
|
|
431
|
-
cd
|
|
432
|
+
cd web
|
|
432
433
|
bun install
|
|
433
434
|
bun run build
|
|
434
435
|
wrangler pages deploy dist
|
|
@@ -488,7 +489,7 @@ bunx convex deploy
|
|
|
488
489
|
|
|
489
490
|
## Source Data
|
|
490
491
|
|
|
491
|
-
**Import Source**: `/Users/toc/Server/ONE-Import`
|
|
492
|
+
**Import Source**: `/Users/toc/Server/ONE-Import` a `/Users/toc/Server/ONE/apps/oneie` and bull-fm
|
|
492
493
|
|
|
493
494
|
- 15GB total (826 knowledge files)
|
|
494
495
|
- 112+ specialized AI agents
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Switch Off Auth
|
|
2
|
+
|
|
3
|
+
## TL;DR
|
|
4
|
+
- Set `PUBLIC_BACKEND_PROVIDER=one` to keep authentication features active when the frontend talks to the ONE backend.
|
|
5
|
+
- Remove the value or set it to anything other than `one` to suppress auth surfaces and skip session fetches in `web/src/components/Sidebar.tsx`.
|
|
6
|
+
|
|
7
|
+
## Why
|
|
8
|
+
- The sidebar now reads the backend identifier from `import.meta.env.PUBLIC_BACKEND_PROVIDER`.
|
|
9
|
+
- Only the ONE backend currently supports the Better Auth APIs that power account menus.
|
|
10
|
+
- Guarding on the env flag prevents broken sign-in links when experimenting with other data providers.
|
|
11
|
+
|
|
12
|
+
## How
|
|
13
|
+
1. Edit the project `.env`.
|
|
14
|
+
2. For ONE backend: `PUBLIC_BACKEND_PROVIDER=one`.
|
|
15
|
+
3. For other backends or static demos: leave the variable unset or change its value.
|
|
16
|
+
4. Reload the site so the Astro build picks up the new environment value.
|
|
17
|
+
|
|
18
|
+
## Notes
|
|
19
|
+
- When auth is off the sidebar shows a passive “Authentication disabled” state and no calls are made to `/api/auth/get-session`.
|
|
20
|
+
- The flag is evaluated at build time, so restart the dev server after changes.
|
package/package.json
CHANGED
|
File without changes
|