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
|
@@ -43,7 +43,7 @@ npx oneie
|
|
|
43
43
|
║ ║
|
|
44
44
|
╚══════════════════════════════════════════════════════════════════╝
|
|
45
45
|
|
|
46
|
-
✨ Welcome to ONE
|
|
46
|
+
✨ Welcome to ONE!
|
|
47
47
|
|
|
48
48
|
Let's set up your environment with the 6-dimension ontology.
|
|
49
49
|
|
|
@@ -59,21 +59,20 @@ After user enters name:
|
|
|
59
59
|
```
|
|
60
60
|
Great to meet you, Anthony! 👋
|
|
61
61
|
|
|
62
|
-
What's your email address?
|
|
63
|
-
What username would you like? anthony
|
|
64
|
-
What's your website URL? (optional): https://one.ie
|
|
62
|
+
What's your email address? tony@one.ie
|
|
65
63
|
|
|
66
|
-
🏢 Step 2: Organization Setup
|
|
67
64
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
🏢 Step 2: Organisation Setup
|
|
66
|
+
|
|
67
|
+
What's your organization name? (e.g., My Company): Company Name
|
|
68
|
+
Organization slug (URL-friendly): company-name
|
|
69
|
+
Organization Website: https://my-company.com
|
|
71
70
|
|
|
72
71
|
Creating your profile...
|
|
73
72
|
✓ Created one/people/anthony-o-connell.md
|
|
74
|
-
✓ Created one/
|
|
75
|
-
✓ Linked anthony → owns →
|
|
76
|
-
✓ Linked anthony → member_of →
|
|
73
|
+
✓ Created one/groups/my-company.md
|
|
74
|
+
✓ Linked anthony → owns → My Company
|
|
75
|
+
✓ Linked anthony → member_of → My Company (role: group_owner)
|
|
77
76
|
```
|
|
78
77
|
|
|
79
78
|
### Phase 3: Ontology Sync
|
|
@@ -146,11 +145,11 @@ Your ONE environment is ready:
|
|
|
146
145
|
Role: org_owner
|
|
147
146
|
File: one/people/anthony-o-connell.md
|
|
148
147
|
|
|
149
|
-
🏢 Your
|
|
148
|
+
🏢 Your Group:
|
|
150
149
|
Name: ONE Platform
|
|
151
150
|
Slug: one
|
|
152
151
|
Domain: one.ie
|
|
153
|
-
File: one/
|
|
152
|
+
File: one/groups/one.md
|
|
154
153
|
|
|
155
154
|
🚀 Next Steps:
|
|
156
155
|
|
|
@@ -525,9 +524,9 @@ ${profile.website ? `- **Website:** ${profile.website}\n` : ""}
|
|
|
525
524
|
|
|
526
525
|
## See Also
|
|
527
526
|
|
|
528
|
-
- [
|
|
527
|
+
- [Group Profile](../groups/${filename}.md)
|
|
529
528
|
- [People Roles](./people.md)
|
|
530
|
-
- [
|
|
529
|
+
- [Groups](../groups/groups.md)
|
|
531
530
|
`;
|
|
532
531
|
|
|
533
532
|
// Write file
|
|
@@ -539,14 +538,14 @@ ${profile.website ? `- **Website:** ${profile.website}\n` : ""}
|
|
|
539
538
|
}
|
|
540
539
|
```
|
|
541
540
|
|
|
542
|
-
**
|
|
541
|
+
**Group Profile:** `one/groups/{name}.md`
|
|
543
542
|
|
|
544
543
|
```typescript
|
|
545
|
-
// cli/src/create-
|
|
544
|
+
// cli/src/create-group-profile.ts
|
|
546
545
|
import fs from "fs/promises";
|
|
547
546
|
import path from "path";
|
|
548
547
|
|
|
549
|
-
interface
|
|
548
|
+
interface GroupProfile {
|
|
550
549
|
name: string;
|
|
551
550
|
slug: string;
|
|
552
551
|
domain: string;
|
|
@@ -554,10 +553,10 @@ interface OrgProfile {
|
|
|
554
553
|
ownerUsername: string;
|
|
555
554
|
}
|
|
556
555
|
|
|
557
|
-
export async function
|
|
556
|
+
export async function createGroupProfile(profile: GroupProfile) {
|
|
558
557
|
const filePath = path.join(
|
|
559
558
|
process.cwd(),
|
|
560
|
-
`one/
|
|
559
|
+
`one/groups/${profile.slug}.md`
|
|
561
560
|
);
|
|
562
561
|
|
|
563
562
|
// Create directory
|
|
@@ -585,20 +584,21 @@ export async function createOrgProfile(profile: OrgProfile) {
|
|
|
585
584
|
|
|
586
585
|
---
|
|
587
586
|
|
|
588
|
-
## The
|
|
587
|
+
## The Group Entity
|
|
589
588
|
|
|
590
589
|
\`\`\`typescript
|
|
591
590
|
{
|
|
592
|
-
|
|
591
|
+
_id: Id<"groups">,
|
|
593
592
|
name: "${profile.name}",
|
|
593
|
+
type: "organization", // One of 6 group types
|
|
594
|
+
parentGroupId: undefined, // Top-level group
|
|
594
595
|
properties: {
|
|
595
596
|
// Identity
|
|
596
597
|
slug: "${profile.slug}",
|
|
597
598
|
domain: "${profile.domain}",
|
|
598
|
-
description: "
|
|
599
|
+
description: "Group created via ONE CLI",
|
|
599
600
|
|
|
600
601
|
// Status & Plan
|
|
601
|
-
status: "active",
|
|
602
602
|
plan: "enterprise",
|
|
603
603
|
|
|
604
604
|
// Limits & Usage
|
|
@@ -625,7 +625,6 @@ export async function createOrgProfile(profile: OrgProfile) {
|
|
|
625
625
|
|
|
626
626
|
// Public info
|
|
627
627
|
website: "https://${profile.domain}",
|
|
628
|
-
createdAt: Date.now(),
|
|
629
628
|
},
|
|
630
629
|
status: "active",
|
|
631
630
|
createdAt: Date.now(),
|
|
@@ -662,7 +661,7 @@ export async function createOrgProfile(profile: OrgProfile) {
|
|
|
662
661
|
toThingId: ${profile.slug}Id,
|
|
663
662
|
relationshipType: "member_of",
|
|
664
663
|
metadata: {
|
|
665
|
-
role: "
|
|
664
|
+
role: "group_owner",
|
|
666
665
|
permissions: ["*"], // All permissions
|
|
667
666
|
joinedAt: Date.now(),
|
|
668
667
|
},
|
|
@@ -674,17 +673,18 @@ export async function createOrgProfile(profile: OrgProfile) {
|
|
|
674
673
|
|
|
675
674
|
## Key Principles
|
|
676
675
|
|
|
677
|
-
- **Multi-Tenant Isolation** -
|
|
676
|
+
- **Multi-Tenant Isolation** - Group partitions the data space
|
|
678
677
|
- **Owner Control** - ${profile.ownerName} has full control (100% ownership)
|
|
679
678
|
- **Enterprise Plan** - Unlimited resources for growth
|
|
680
|
-
- **Ontology Mapping** - Dimension 1 (
|
|
679
|
+
- **Ontology Mapping** - Dimension 1 (Groups) in the 6-dimension model
|
|
680
|
+
- **6 Group Types** - friend_circle, business, community, dao, government, organization
|
|
681
681
|
|
|
682
682
|
---
|
|
683
683
|
|
|
684
684
|
## See Also
|
|
685
685
|
|
|
686
686
|
- [Owner Profile](../people/${profile.ownerUsername}.md)
|
|
687
|
-
- [
|
|
687
|
+
- [Group Structure](./groups.md)
|
|
688
688
|
- [Multi-Tenancy](../connections/multitenant.md)
|
|
689
689
|
`;
|
|
690
690
|
|
|
@@ -977,22 +977,22 @@ async function main() {
|
|
|
977
977
|
});
|
|
978
978
|
spinner.succeed(`Created ${userProfilePath}`);
|
|
979
979
|
|
|
980
|
-
spinner = ora("Creating
|
|
981
|
-
const
|
|
980
|
+
spinner = ora("Creating group profile...").start();
|
|
981
|
+
const groupProfilePath = await createGroupProfile({
|
|
982
982
|
name: orgAnswers.name,
|
|
983
983
|
slug: orgAnswers.slug,
|
|
984
984
|
domain: orgAnswers.domain,
|
|
985
985
|
ownerName: userAnswers.name,
|
|
986
986
|
ownerUsername: userAnswers.username,
|
|
987
987
|
});
|
|
988
|
-
spinner.succeed(`Created ${
|
|
988
|
+
spinner.succeed(`Created ${groupProfilePath}`);
|
|
989
989
|
|
|
990
|
-
spinner = ora("Linking user to
|
|
990
|
+
spinner = ora("Linking user to group...").start();
|
|
991
991
|
spinner.succeed(
|
|
992
992
|
`Linked ${userAnswers.username} → owns → ${orgAnswers.name}`
|
|
993
993
|
);
|
|
994
994
|
spinner.succeed(
|
|
995
|
-
`Linked ${userAnswers.username} → member_of → ${orgAnswers.name} (role:
|
|
995
|
+
`Linked ${userAnswers.username} → member_of → ${orgAnswers.name} (role: group_owner)`
|
|
996
996
|
);
|
|
997
997
|
|
|
998
998
|
// Step 5: Website setup (optional)
|
|
@@ -1064,11 +1064,11 @@ async function main() {
|
|
|
1064
1064
|
console.log(` Role: org_owner`);
|
|
1065
1065
|
console.log(` File: ${userProfilePath}\n`);
|
|
1066
1066
|
|
|
1067
|
-
console.log(chalk.cyan("🏢 Your
|
|
1067
|
+
console.log(chalk.cyan("🏢 Your Group:"));
|
|
1068
1068
|
console.log(` Name: ${orgAnswers.name}`);
|
|
1069
1069
|
console.log(` Slug: ${orgAnswers.slug}`);
|
|
1070
1070
|
console.log(` Domain: ${orgAnswers.domain}`);
|
|
1071
|
-
console.log(` File: ${
|
|
1071
|
+
console.log(` File: ${groupProfilePath}\n`);
|
|
1072
1072
|
|
|
1073
1073
|
console.log(chalk.bold("🚀 Next Steps:\n"));
|
|
1074
1074
|
if (buildWebsite) {
|
|
@@ -1163,9 +1163,9 @@ main().catch((error) => {
|
|
|
1163
1163
|
# Verify correct formatting and connections
|
|
1164
1164
|
```
|
|
1165
1165
|
|
|
1166
|
-
4. **Test
|
|
1166
|
+
4. **Test group profile creation:**
|
|
1167
1167
|
```bash
|
|
1168
|
-
cat one/
|
|
1168
|
+
cat one/groups/one.md
|
|
1169
1169
|
# Verify correct formatting and connections
|
|
1170
1170
|
```
|
|
1171
1171
|
|
|
@@ -1227,7 +1227,7 @@ npx oneie create --template=marketplace
|
|
|
1227
1227
|
- [CLI Overview](../cli.md) - Complete CLI architecture
|
|
1228
1228
|
- [Ontology](../../knowledge/ontology.md) - 6-dimension ontology
|
|
1229
1229
|
- [People](../../people/people.md) - People & roles
|
|
1230
|
-
- [
|
|
1230
|
+
- [Groups](../../groups/groups.md) - Group structure (6 types, hierarchical)
|
|
1231
1231
|
- [Agents](../agents/agent-director.md) - AI agent definitions
|
|
1232
1232
|
|
|
1233
1233
|
---
|