oneie 3.6.14 → 3.6.15
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/agents/agent-director.md +6 -6
- package/.claude/agents/agent-onboard.md +8 -8
- package/.claude/commands/cascade.md +49 -20
- package/.claude/commands/create.md +397 -0
- package/.claude/commands/npx.md +64 -113
- package/.claude/commands/one.md +10 -28
- package/.claude/commands/plan.md +65 -65
- package/.claude/commands/push.md +63 -452
- package/.claude/commands/release.md +26 -395
- package/.claude/hooks/README-knowledge-hooks.md +4 -4
- package/.claude/hooks/README.md +13 -13
- package/.claude/hooks/clean-root-markdown.sh +73 -0
- package/.claude/hooks/track-changes.sh +101 -0
- package/.claude/skills/ontology/README.md +1 -1
- package/CLAUDE.md +38 -25
- package/one/README.md +3 -3
- package/one/connections/documentation.md +1 -1
- package/one/connections/inference.md +9 -9
- package/one/connections/workflow-copy.md +1 -1
- package/one/connections/workflow-onboarding.md +85 -85
- package/one/connections/workflow.md +1 -1
- package/one/groups/groups.md +31 -31
- package/one/groups/one.md +26 -26
- package/one/knowledge/100-inference-quick-reference.md +38 -38
- package/one/knowledge/ai-token-crypto-analysis-framework.md +15 -15
- package/one/knowledge/archived/ontology.old.md +11 -11
- package/one/knowledge/audit-agent-onboard-alignment.md +1 -1
- package/one/knowledge/cli-claude-handoff.md +36 -36
- package/one/knowledge/crypto-analysis-strategy.md +8 -8
- package/one/knowledge/event-driven-documentation.md +270 -0
- package/one/knowledge/knowledge.md +28 -28
- package/one/knowledge/lessons-website-building-focus.md +1 -1
- package/one/knowledge/metadata-system.md +11 -11
- package/one/knowledge/ontology-crypto.md +19 -19
- package/one/knowledge/ontology-documentation.md +7 -7
- package/one/knowledge/ontology-engineering.md +3 -3
- package/one/knowledge/ontology-files.yaml +3 -3
- package/one/knowledge/ontology-release.md +3 -3
- package/one/knowledge/ontology.md +10 -10
- package/one/knowledge/ontology.yaml +7 -7
- package/one/knowledge/score.md +4 -4
- package/one/knowledge/todo-template.md +55 -55
- package/one/knowledge/todo.md +55 -55
- package/one/knowledge/typescript-patterns.md +1 -1
- package/one/knowledge/x402-research.md +1 -1
- package/one/people/anthony-o-connell.md +19 -19
- package/one/people/people.md +1 -1
- package/one/things/IMPLEMENTATION_STATUS.md +12 -12
- package/one/things/agents/agent-backend.md +4 -4
- package/one/things/agents/agent-clean.md +16 -16
- package/one/things/agents/agent-deploy.md +6 -6
- package/one/things/agents/agent-sales.md +6 -6
- package/one/things/claude/agents/nextjs-15-specialist.md +1 -1
- package/one/things/demo-design-summary.md +6 -6
- package/one/things/examples/enterprise/crm-saas.md +24 -24
- package/one/things/features/2-1-dataprovider-interface.md +6 -6
- package/one/things/features/2-3-effectts-services.md +7 -7
- package/one/things/features/2-4-react-hooks.md +4 -4
- package/one/things/features/2-cli.md +3 -3
- package/one/things/features/2-design.md +2 -2
- package/one/things/features/use-one-backend.md +2 -2
- package/one/things/files.yaml +3 -3
- package/one/things/implementation/backend-guide.md +1 -1
- package/one/things/interface.md +8 -8
- package/one/things/landing-page-implementation.md +10 -10
- package/one/things/legal/privacy-policy.md +2 -2
- package/one/things/legal/terms-of-service.md +6 -6
- package/one/things/master-workflow-plan.md +16 -16
- package/one/things/plans/0-in-sync.md +136 -0
- package/one/things/plans/SIMPLIFICATION-SUMMARY.md +4 -4
- package/one/things/plans/ai-elements.md +7 -7
- package/one/things/plans/ai-integration.md +3 -3
- package/one/things/plans/ai-sdk.md +8 -8
- package/one/things/plans/backend-cleanup-quickstart.md +3 -3
- package/one/things/plans/backend-ontology-conformance.md +40 -40
- package/one/things/plans/backend-status.md +6 -6
- package/one/things/plans/backend-target-structure.md +2 -2
- package/one/things/plans/backend.md +1 -1
- package/one/things/plans/better-auth-any-backend.md +1 -1
- package/one/things/plans/components.md +32 -32
- package/one/things/plans/convex-agents.md +8 -8
- package/one/things/plans/deep-researcher-agent.md +1 -1
- package/one/things/plans/development-plan.md +49 -49
- package/one/things/plans/development-workflow.md +1 -1
- package/one/things/plans/effect.md +6 -6
- package/one/things/plans/execution-strategy.md +61 -61
- package/one/things/plans/existing-infrastructure.md +1 -1
- package/one/things/plans/frontend-effects.md +10 -10
- package/one/things/plans/group-folder-multi-tenancy.md +95 -95
- package/one/things/plans/integrate-frontend-and-backend.md +9 -9
- package/one/things/plans/onboarding.md +2 -2
- package/one/things/plans/ontology-6-dimensions.md +7 -7
- package/one/things/plans/ontology-compliance-audit.md +1 -1
- package/one/things/plans/phase-1-foundation.md +12 -12
- package/one/things/plans/readme-backend-cleanup.md +3 -3
- package/one/things/plans/sequence.md +129 -129
- package/one/things/plans/skills.md +30 -30
- package/one/things/plans/start-new.md +5 -5
- package/one/things/plans/sync-checklist.md +4 -4
- package/one/things/plans/unified-implementation-plan.md +1 -1
- package/one/things/plans/update-demos.md +53 -53
- package/one/things/plans/use-our-backend.md +30 -30
- package/one/things/plans/wave1-onboarding-100-inferences.md +152 -152
- package/one/things/plans/wave1-onboarding-vision.md +7 -7
- package/one/things/plans/wave1-orchestration-summary.md +67 -67
- package/one/things/plans/wave1-specialist-assignments.md +121 -121
- package/one/things/products/ontology.md +2 -2
- package/one/things/repos/all-repos.md +0 -0
- package/one/things/structure.md +2 -2
- package/one/things/tests/2-1-dataprovider-interface.md +2 -2
- package/one/things/tests/2-1-test-analysis.md +1 -1
- package/one/things/things.md +3 -3
- package/one/things/todo-acp-integration.md +33 -33
- package/one/things/todo-ai.md +37 -37
- package/one/things/todo-api.md +114 -114
- package/one/things/todo-assignment.md +39 -39
- package/one/things/todo-buy-chatgpt.md +113 -113
- package/one/things/todo-components.md +211 -211
- package/one/things/todo-ecommerce-frontend.md +82 -82
- package/one/things/todo-ecommerce.md +36 -36
- package/one/things/todo-effects.md +36 -36
- package/one/things/todo-frontend-effects.md +25 -25
- package/one/things/todo-landing-page.md +63 -63
- package/one/things/todo-mail.md +73 -73
- package/one/things/todo-master-plan.md +32 -32
- package/one/things/todo-onboard.md +48 -48
- package/one/things/todo-one-ie.md +48 -48
- package/one/things/todo-page.md +42 -42
- package/one/things/todo-plans.md +48 -48
- package/one/things/todo-refactoring-plan.md +5 -5
- package/one/things/todo-sequence.md +98 -98
- package/one/things/todo-use-our-backend.md +219 -219
- package/one/things/todo-x402.md +116 -116
- package/one/things/video-script-ontology.md +20 -20
- package/package.json +7 -2
- package/.claude/commands/build.md +0 -293
- package/one/.claude/settings.local.json +0 -11
- package/one/.obsidian/app.json +0 -8
- package/one/.obsidian/appearance.json +0 -1
- package/one/.obsidian/community-plugins.json +0 -5
- package/one/.obsidian/core-plugins.json +0 -33
- package/one/.obsidian/plugins/easy-bake/main.js +0 -361
- package/one/.obsidian/plugins/easy-bake/manifest.json +0 -11
- package/one/.obsidian/plugins/easy-bake/styles.css +0 -10
- package/one/.obsidian/plugins/editing-toolbar/data.json +0 -328
- package/one/.obsidian/plugins/editing-toolbar/main.js +0 -12
- package/one/.obsidian/plugins/editing-toolbar/manifest.json +0 -10
- package/one/.obsidian/plugins/editing-toolbar/styles.css +0 -1338
- package/one/.obsidian/plugins/terminal/data.json +0 -154
- package/one/.obsidian/plugins/terminal/main.js +0 -197
- package/one/.obsidian/plugins/terminal/manifest.json +0 -14
- package/one/.obsidian/plugins/terminal/styles.css +0 -32
- package/one/.obsidian/workspace.json +0 -266
- package/one/events/2024-10-14-deployment-plan.md +0 -330
- package/one/events/2024-10-14-deployment-success.md +0 -447
- package/one/events/2024-10-14-final-sync-complete.md +0 -250
- package/one/events/2024-10-14-release-v2.0.6.md +0 -414
- package/one/events/2024-10-15-agent-clean-v2-summary.md +0 -495
- package/one/events/2024-10-15-handoff-to-clean.md +0 -347
- package/one/events/2024-10-15-package-manager-tests.md +0 -442
- package/one/events/2024-10-15-release-command-complete.md +0 -416
- package/one/events/2025-10-15-private-files-secured.md +0 -359
- package/one/events/2025-10-15-unignore-public-group-docs.md +0 -298
- package/one/events/ALIGNMENT_REPORT_PROBLEM_SOLVER.md +0 -335
- package/one/events/ALIGNMENT_SUMMARY.md +0 -280
- package/one/events/API_ROUTES_FIXES_SUMMARY.md +0 -280
- package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +0 -654
- package/one/events/AUDIT-ONTOLOGY-ALIGNMENT.md +0 -598
- package/one/events/BEFORE_AFTER_COMPARISON.md +0 -978
- package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +0 -372
- package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +0 -430
- package/one/events/CLAUDE copy.md +0 -897
- package/one/events/CLEANUP-RELEASE-V2.0.8.md +0 -308
- package/one/events/CONNECTIONS_DEMO.md +0 -519
- package/one/events/CREATE-WEBSITE.md +0 -460
- package/one/events/CRITICAL-FIXES-COMPLETE.md +0 -522
- package/one/events/CUSTOM-DOMAIN.md +0 -375
- package/one/events/DELIVERABLES.md +0 -450
- package/one/events/DEMO-GROUPS-PAGE.md +0 -410
- package/one/events/DEMO-TESTING-SUMMARY.md +0 -536
- package/one/events/DEMO_COMPONENTS.md +0 -505
- package/one/events/DEMO_HOOKS_INDEX.md +0 -352
- package/one/events/DEMO_INFRASTRUCTURE.md +0 -923
- package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +0 -588
- package/one/events/DEMO_INTEGRATION_CHECKLIST.md +0 -449
- package/one/events/DEMO_QUICK_REFERENCE.md +0 -459
- package/one/events/DEMO_SETUP.md +0 -494
- package/one/events/DEPLOYMENT copy.md +0 -444
- package/one/events/DEPLOYMENT.md +0 -196
- package/one/events/ECOMMERCE-BEFORE-AFTER.md +0 -267
- package/one/events/ECOMMERCE-DEMO-PLAN.md +0 -243
- package/one/events/ECOMMERCE-ENHANCEMENTS.md +0 -594
- package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +0 -439
- package/one/events/ECOMMERCE-LIVE-DEMO.md +0 -381
- package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +0 -214
- package/one/events/ECOMMERCE-SETUP-SUMMARY.md +0 -414
- package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +0 -753
- package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +0 -941
- package/one/events/EFFECT_TS_API_PATTERN.md +0 -496
- package/one/events/FEATURE-2-4-COMPLETE.md +0 -320
- package/one/events/FEATURE_2_3_COMPLETE.md +0 -593
- package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +0 -241
- package/one/events/GROUPS-MIGRATION.md +0 -643
- package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +0 -432
- package/one/events/HANDOFF.md +0 -331
- package/one/events/HOOKS-DEMO.md +0 -459
- package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +0 -521
- package/one/events/IMPLEMENTATION_SUMMARY.md +0 -547
- package/one/events/INSTALL-TESTS.md +0 -311
- package/one/events/INSTALLATION_FOLDERS.md +0 -534
- package/one/events/INSTALLATION_FOLDERS_FILES.md +0 -223
- package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +0 -437
- package/one/events/INTEGRATION-ARCHITECTURE.md +0 -579
- package/one/events/INTEGRATION-CHECKLIST.md +0 -1252
- package/one/events/INTEGRATION-ORCHESTRATION.md +0 -2641
- package/one/events/INTEGRATION-SUMMARY.md +0 -671
- package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +0 -684
- package/one/events/LANDING-PAGE-IMPLEMENTATION.md +0 -660
- package/one/events/LANDING-PAGE-QUICKSTART.md +0 -425
- package/one/events/LICENSE.md +0 -107
- package/one/events/MCP-CONFIGURATION.md +0 -354
- package/one/events/MCP-SETUP-COMPLETE.md +0 -223
- package/one/events/MIGRATION-REPORT.md +0 -453
- package/one/events/MIGRATION.md +0 -87
- package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +0 -1645
- package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +0 -591
- package/one/events/NODE-UPGRADE.md +0 -129
- package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +0 -416
- package/one/events/ONTOLOGY-HOOKS-README.md +0 -718
- package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +0 -383
- package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +0 -543
- package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +0 -473
- package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +0 -504
- package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +0 -221
- package/one/events/PACKAGE-STRUCTURE.md +0 -328
- package/one/events/PLAYBOOK-SETUP-SUMMARY.md +0 -349
- package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +0 -585
- package/one/events/QA-CHECKLIST.md +0 -692
- package/one/events/QUICK-START-ONTOLOGY.md +0 -426
- package/one/events/README-archived.md +0 -537
- package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +0 -657
- package/one/events/SEARCH_DEMO_DELIVERY.md +0 -433
- package/one/events/SEARCH_DEMO_SUMMARY.md +0 -321
- package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +0 -399
- package/one/events/SECURITY-AUDIT-FIXES.md +0 -394
- package/one/events/SECURITY-SCAN-COMPLETE.md +0 -299
- package/one/events/SHOP-BUILD-STATUS.md +0 -132
- package/one/events/SHOP-PREMIUM-UPDATE.md +0 -165
- package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +0 -280
- package/one/events/SITE-WIDE-GRADIENT-FIX.md +0 -317
- package/one/events/STORE-PRODUCTION-READY-STATUS.md +0 -377
- package/one/events/STRIPE-INTEGRATION.md +0 -432
- package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +0 -447
- package/one/events/STRIPE-SETUP-GUIDE.md +0 -480
- package/one/events/TEST-PLAN-INDEX.md +0 -364
- package/one/events/TEST-PLAN.md +0 -1435
- package/one/events/TEST-SUMMARY.md +0 -411
- package/one/events/TESTING-DELIVERY.txt +0 -372
- package/one/events/TESTS-QUICK-REF.md +0 -280
- package/one/events/TRANSITIONS-QUICK-START.md +0 -159
- package/one/events/TRANSPARENCY-FIXES.md +0 -293
- package/one/events/TYPESCRIPT_FIXES.md +0 -170
- package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +0 -412
- package/one/events/TYPESCRIPT_FIXES_INDEX.md +0 -359
- package/one/events/VIEW-TRANSITIONS.md +0 -446
- package/one/events/agent-director-enhancement-summary.md +0 -404
- package/one/events/agent-onboard-implementation-summary.md +0 -475
- package/one/events/agent-ontology-alignment-completion.md +0 -263
- package/one/events/backend-integration-tests.md +0 -624
- package/one/events/backend-structure-diagram.txt +0 -393
- package/one/events/backend-structure-summary.txt +0 -269
- package/one/events/clean-agent-ontology-cleanup-report.md +0 -371
- package/one/events/clean-agent-todo-analysis-summary.md +0 -336
- package/one/events/cloudflare-automation-complete.md +0 -350
- package/one/events/cloudflare-pages-infrastructure-setup.md +0 -282
- package/one/events/contact-page-complete.md +0 -316
- package/one/events/convex-analysis-index.md +0 -322
- package/one/events/convex-structure-analysis.md +0 -718
- package/one/events/deployment-installation-folders.md +0 -178
- package/one/events/deployment-ops-summary.md +0 -386
- package/one/events/deployment-verification.md +0 -366
- package/one/events/design-spec-complete.md +0 -226
- package/one/events/documentation-audit-index.md +0 -473
- package/one/events/documentation-audit-summary.md +0 -417
- package/one/events/documentation-improvement-roadmap.md +0 -906
- package/one/events/documentation-standards-compliance-report.md +0 -538
- package/one/events/events.md +0 -563
- package/one/events/frontend-effects-complete.md +0 -584
- package/one/events/frontend-effects-orchestration.md +0 -1356
- package/one/events/frontend-effects-risk-register.md +0 -1055
- package/one/events/frontend-effects-week1-assignments.md +0 -1594
- package/one/events/hook-ontology-alignment-summary.md +0 -528
- package/one/events/installation-folders-workflow-integration.md +0 -458
- package/one/events/landing-page-generator.md +0 -476
- package/one/events/legal-assessment-2025-10-16.md +0 -1917
- package/one/events/onboarding-implementation-complete.md +0 -523
- package/one/events/ontology-test-examples.md +0 -580
- package/one/events/phase1-backend-implementation-complete.md +0 -536
- package/one/events/release.md +0 -272
- package/one/events/root-cleanup-alignment-report.md +0 -265
- package/one/events/separate-implementation-status.md +0 -555
- package/one/events/session-summary-2025-10-18.md +0 -366
- package/one/events/skills-complete.md +0 -351
- package/one/events/skills-infer-6-10-summary.md +0 -70
- package/one/events/skills-phase1-complete.md +0 -281
- package/one/events/structural-analysis-architecture-vs-plans.md +0 -559
- package/one/events/test-dashboard.md +0 -363
- package/one/events/test-index.md +0 -379
- package/one/events/test-report-ontology.md +0 -600
- package/one/events/testing-summary.md +0 -362
- package/one/events/todo-refactoring-complete.md +0 -408
- package/one/events/wave1-backend-implementation-complete.md +0 -698
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: Workflow Onboarding
|
|
3
3
|
dimension: connections
|
|
4
4
|
category: workflow-onboarding.md
|
|
5
|
-
tags: ai,
|
|
5
|
+
tags: ai, cycle, ontology
|
|
6
6
|
related_dimensions: events, groups, people, things
|
|
7
7
|
scope: global
|
|
8
8
|
created: 2025-11-03
|
|
@@ -20,7 +20,7 @@ ai_context: |
|
|
|
20
20
|
|
|
21
21
|
**Version:** 1.0.0
|
|
22
22
|
**Purpose:** Complete user journey from `npx oneie init` to deployed website
|
|
23
|
-
**Paradigm:**
|
|
23
|
+
**Paradigm:** Cycle-based execution (not time-based)
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
@@ -37,11 +37,11 @@ ai_context: |
|
|
|
37
37
|
↓
|
|
38
38
|
5. Feature Selection (2 min)
|
|
39
39
|
↓
|
|
40
|
-
6.
|
|
40
|
+
6. Cycle Plan Generation (10 sec)
|
|
41
41
|
↓
|
|
42
|
-
7. Landing Page Deploy (
|
|
42
|
+
7. Landing Page Deploy (Cycle 1-10, ~5 min)
|
|
43
43
|
↓
|
|
44
|
-
8. Full Site Build (
|
|
44
|
+
8. Full Site Build (Cycle 11-100, ~30-60 min)
|
|
45
45
|
↓
|
|
46
46
|
9. Live Production Site ✨
|
|
47
47
|
```
|
|
@@ -193,24 +193,24 @@ KNOWLEDGE (What's learned):
|
|
|
193
193
|
Based on your ontology, here are recommended features:
|
|
194
194
|
|
|
195
195
|
FOUNDATION (Recommended)
|
|
196
|
-
[x] Landing page (
|
|
197
|
-
[x] Authentication (
|
|
198
|
-
[x] Multi-tenant groups (
|
|
196
|
+
[x] Landing page (Cycle 1-10, ~5 min)
|
|
197
|
+
[x] Authentication (Cycle 11-20, ~10 min)
|
|
198
|
+
[x] Multi-tenant groups (Cycle 21-30, ~10 min)
|
|
199
199
|
|
|
200
200
|
CREATOR FEATURES
|
|
201
|
-
[ ] Content publishing (
|
|
202
|
-
[ ] Membership tiers (
|
|
203
|
-
[ ] Revenue tracking (
|
|
201
|
+
[ ] Content publishing (Cycle 31-40, ~15 min)
|
|
202
|
+
[ ] Membership tiers (Cycle 41-50, ~15 min)
|
|
203
|
+
[ ] Revenue tracking (Cycle 51-60, ~10 min)
|
|
204
204
|
|
|
205
205
|
DEVELOPER FEATURES
|
|
206
|
-
[ ] Project management (
|
|
207
|
-
[ ] Code repositories (
|
|
208
|
-
[ ] Deployment pipeline (
|
|
206
|
+
[ ] Project management (Cycle 31-40, ~15 min)
|
|
207
|
+
[ ] Code repositories (Cycle 41-50, ~15 min)
|
|
208
|
+
[ ] Deployment pipeline (Cycle 51-60, ~20 min)
|
|
209
209
|
|
|
210
210
|
AI FEATURES
|
|
211
|
-
[ ] AI agents (
|
|
212
|
-
[ ] RAG knowledge base (
|
|
213
|
-
[ ] Semantic search (
|
|
211
|
+
[ ] AI agents (Cycle 61-70, ~20 min)
|
|
212
|
+
[ ] RAG knowledge base (Cycle 71-80, ~15 min)
|
|
213
|
+
[ ] Semantic search (Cycle 81-90, ~10 min)
|
|
214
214
|
|
|
215
215
|
? Select features to build: › (Space to select)
|
|
216
216
|
```
|
|
@@ -219,13 +219,13 @@ AI FEATURES
|
|
|
219
219
|
|
|
220
220
|
```bash
|
|
221
221
|
✅ Selected Features:
|
|
222
|
-
1. Landing page (
|
|
223
|
-
2. Authentication (
|
|
224
|
-
3. Multi-tenant groups (
|
|
225
|
-
4. Project management (
|
|
226
|
-
5. AI agents (
|
|
222
|
+
1. Landing page (Cycle 1-10)
|
|
223
|
+
2. Authentication (Cycle 11-20)
|
|
224
|
+
3. Multi-tenant groups (Cycle 21-30)
|
|
225
|
+
4. Project management (Cycle 31-40)
|
|
226
|
+
5. AI agents (Cycle 61-70)
|
|
227
227
|
|
|
228
|
-
📊 Total
|
|
228
|
+
📊 Total Cycles: 50/100
|
|
229
229
|
⏱️ Estimated Time: ~60 minutes
|
|
230
230
|
💰 Estimated Cost: $0 (free tier)
|
|
231
231
|
|
|
@@ -237,72 +237,72 @@ AI FEATURES
|
|
|
237
237
|
|
|
238
238
|
Strategy: Landing page first, then iterate
|
|
239
239
|
|
|
240
|
-
Step 1: Deploy landing page (
|
|
241
|
-
Step 2: Add authentication (
|
|
242
|
-
Step 3: Add multi-tenancy (
|
|
243
|
-
Step 4: Add project management (
|
|
244
|
-
Step 5: Add AI agents (
|
|
245
|
-
Step 6: Final deploy & docs (
|
|
240
|
+
Step 1: Deploy landing page (Cycle 1-10)
|
|
241
|
+
Step 2: Add authentication (Cycle 11-20)
|
|
242
|
+
Step 3: Add multi-tenancy (Cycle 21-30)
|
|
243
|
+
Step 4: Add project management (Cycle 31-40)
|
|
244
|
+
Step 5: Add AI agents (Cycle 61-70)
|
|
245
|
+
Step 6: Final deploy & docs (Cycle 91-100)
|
|
246
246
|
```
|
|
247
247
|
|
|
248
248
|
---
|
|
249
249
|
|
|
250
|
-
## Phase 3: Landing Page Deploy (
|
|
250
|
+
## Phase 3: Landing Page Deploy (Cycle 1-10)
|
|
251
251
|
|
|
252
|
-
###
|
|
252
|
+
### Cycle Sequence
|
|
253
253
|
|
|
254
254
|
```bash
|
|
255
|
-
🤖 Starting
|
|
255
|
+
🤖 Starting Cycle 1-10: Landing Page MVP
|
|
256
256
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
257
257
|
|
|
258
|
-
|
|
258
|
+
Cycle 1/10: Validate ontology and create installation folder
|
|
259
259
|
✅ Created /one-platform/
|
|
260
260
|
✅ Created /one-platform/knowledge/ontology.md
|
|
261
261
|
✅ Validated 6-dimension structure
|
|
262
262
|
|
|
263
|
-
|
|
263
|
+
Cycle 2/10: Map landing page to ontology
|
|
264
264
|
✅ Thing: "landing_page" entity
|
|
265
265
|
✅ Properties: { hero, features, cta, footer }
|
|
266
266
|
✅ Scoped to: groupId (ONE Platform)
|
|
267
267
|
|
|
268
|
-
|
|
268
|
+
Cycle 3/10: Design landing page wireframe
|
|
269
269
|
✅ Hero: Logo, tagline, CTA
|
|
270
270
|
✅ Features: 3-column grid
|
|
271
271
|
✅ Footer: Links, social
|
|
272
272
|
✅ Colors: #FF6B6B, #4ECDC4
|
|
273
273
|
|
|
274
|
-
|
|
274
|
+
Cycle 4/10: Generate Astro page
|
|
275
275
|
✅ Created: /web/src/pages/index.astro
|
|
276
276
|
✅ Using: Brand colors, logo
|
|
277
277
|
✅ Components: Hero, Features, CTA
|
|
278
278
|
|
|
279
|
-
|
|
279
|
+
Cycle 5/10: Add Tailwind styling
|
|
280
280
|
✅ Theme: Custom colors from website
|
|
281
281
|
✅ Responsive: Mobile-first
|
|
282
282
|
✅ Typography: From brand guide
|
|
283
283
|
|
|
284
|
-
|
|
284
|
+
Cycle 6/10: Build and test locally
|
|
285
285
|
✅ Build: Success (0 errors)
|
|
286
286
|
✅ Lighthouse: 100/100/100/100
|
|
287
287
|
✅ Test: Responsive design works
|
|
288
288
|
|
|
289
|
-
|
|
289
|
+
Cycle 7/10: Deploy to Cloudflare Pages
|
|
290
290
|
✅ Build: Production ready
|
|
291
291
|
✅ Deploy: https://one-platform.pages.dev
|
|
292
292
|
✅ SSL: Enabled
|
|
293
293
|
✅ Edge: 330+ locations
|
|
294
294
|
|
|
295
|
-
|
|
295
|
+
Cycle 8/10: Add custom domain
|
|
296
296
|
✅ DNS: CNAME configured
|
|
297
297
|
✅ Domain: https://one-platform.com
|
|
298
298
|
✅ SSL: Auto-provisioned
|
|
299
299
|
|
|
300
|
-
|
|
300
|
+
Cycle 9/10: Test production deployment
|
|
301
301
|
✅ URL: Live and working
|
|
302
302
|
✅ Speed: <330ms globally
|
|
303
303
|
✅ SEO: Meta tags added
|
|
304
304
|
|
|
305
|
-
|
|
305
|
+
Cycle 10/10: Document and notify
|
|
306
306
|
✅ Created: /one-platform/events/deploy-landing.md
|
|
307
307
|
✅ Screenshot: Saved to knowledge
|
|
308
308
|
✅ Email: Sent to tom@one.ie
|
|
@@ -316,7 +316,7 @@ Infer 10/10: Document and notify
|
|
|
316
316
|
📱 100/100/100/100 Lighthouse scores
|
|
317
317
|
🌍 Live on Cloudflare Edge (330+ locations)
|
|
318
318
|
|
|
319
|
-
Next: Add authentication (
|
|
319
|
+
Next: Add authentication (Cycle 11-20)
|
|
320
320
|
Time: ~10 minutes
|
|
321
321
|
|
|
322
322
|
? Continue to next phase? (y/n) › y
|
|
@@ -326,72 +326,72 @@ Time: ~10 minutes
|
|
|
326
326
|
|
|
327
327
|
## Phase 4: Iterative Feature Building
|
|
328
328
|
|
|
329
|
-
###
|
|
329
|
+
### Cycle 11-20: Authentication
|
|
330
330
|
|
|
331
331
|
```bash
|
|
332
|
-
🤖 Starting
|
|
332
|
+
🤖 Starting Cycle 11-20: Authentication
|
|
333
333
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
334
334
|
|
|
335
|
-
|
|
335
|
+
Cycle 11: Map auth to ontology
|
|
336
336
|
✅ People: user accounts
|
|
337
337
|
✅ Events: signin, signup, signout
|
|
338
338
|
✅ Knowledge: Sessions, tokens
|
|
339
339
|
|
|
340
|
-
|
|
340
|
+
Cycle 12-14: Backend schema & mutations
|
|
341
341
|
✅ Better Auth + Convex adapter
|
|
342
342
|
✅ Mutations: signup, signin, signout
|
|
343
343
|
✅ Queries: getSession, getUser
|
|
344
344
|
|
|
345
|
-
|
|
345
|
+
Cycle 15-17: Frontend pages
|
|
346
346
|
✅ /account/signin
|
|
347
347
|
✅ /account/signup
|
|
348
348
|
✅ /account/settings
|
|
349
349
|
|
|
350
|
-
|
|
350
|
+
Cycle 18-19: Test & deploy
|
|
351
351
|
✅ Tests: 15/15 passing
|
|
352
352
|
✅ Deploy: Live at https://one-platform.com/account
|
|
353
353
|
|
|
354
|
-
|
|
354
|
+
Cycle 20: Document
|
|
355
355
|
✅ Updated: /one-platform/events/auth-deployed.md
|
|
356
356
|
|
|
357
357
|
✨ Authentication LIVE!
|
|
358
358
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
359
359
|
|
|
360
|
-
Next: Multi-tenant groups (
|
|
360
|
+
Next: Multi-tenant groups (Cycle 21-30)
|
|
361
361
|
```
|
|
362
362
|
|
|
363
|
-
###
|
|
363
|
+
### Cycle 21-30: Multi-Tenant Groups
|
|
364
364
|
|
|
365
365
|
```bash
|
|
366
|
-
🤖 Starting
|
|
366
|
+
🤖 Starting Cycle 21-30: Multi-Tenant Groups
|
|
367
367
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
368
368
|
|
|
369
|
-
|
|
369
|
+
Cycle 21: Map groups to ontology
|
|
370
370
|
✅ Groups: Hierarchical (parent/child)
|
|
371
371
|
✅ Types: organization, team, project
|
|
372
372
|
✅ Data scoping: All entities → groupId
|
|
373
373
|
|
|
374
|
-
|
|
374
|
+
Cycle 22-25: Backend implementation
|
|
375
375
|
✅ Schema: groups table with parentGroupId
|
|
376
376
|
✅ Mutations: createGroup, updateGroup
|
|
377
377
|
✅ Queries: listGroups, getGroupHierarchy
|
|
378
378
|
|
|
379
|
-
|
|
379
|
+
Cycle 26-28: Frontend dashboard
|
|
380
380
|
✅ /dashboard/groups
|
|
381
381
|
✅ /dashboard/groups/[id]
|
|
382
382
|
✅ Group switcher in nav
|
|
383
383
|
|
|
384
|
-
|
|
384
|
+
Cycle 29: Test & deploy
|
|
385
385
|
✅ Tests: 25/25 passing
|
|
386
386
|
✅ Deploy: Live
|
|
387
387
|
|
|
388
|
-
|
|
388
|
+
Cycle 30: Document
|
|
389
389
|
✅ Updated: /one-platform/events/groups-deployed.md
|
|
390
390
|
|
|
391
391
|
✨ Multi-Tenancy LIVE!
|
|
392
392
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
393
393
|
|
|
394
|
-
Next: Project management (
|
|
394
|
+
Next: Project management (Cycle 31-40)
|
|
395
395
|
```
|
|
396
396
|
|
|
397
397
|
---
|
|
@@ -433,40 +433,40 @@ const AGENT_MAPPING = {
|
|
|
433
433
|
|
|
434
434
|
---
|
|
435
435
|
|
|
436
|
-
## Phase 6: Complete Build (
|
|
436
|
+
## Phase 6: Complete Build (Cycle 31-100)
|
|
437
437
|
|
|
438
438
|
### Example: Project Management Feature
|
|
439
439
|
|
|
440
440
|
```bash
|
|
441
|
-
🤖 Starting
|
|
441
|
+
🤖 Starting Cycle 31-40: Project Management
|
|
442
442
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
443
443
|
|
|
444
444
|
Assigned to: agent-backend, agent-frontend
|
|
445
445
|
|
|
446
|
-
|
|
446
|
+
Cycle 31: Map to ontology
|
|
447
447
|
✅ Things: projects, tasks, milestones
|
|
448
448
|
✅ Connections: assigned_to, depends_on
|
|
449
449
|
✅ Events: project_created, task_completed
|
|
450
450
|
|
|
451
|
-
|
|
451
|
+
Cycle 32-34: Backend (agent-backend)
|
|
452
452
|
✅ Schema: things table extensions
|
|
453
453
|
✅ Mutations: createProject, updateTask
|
|
454
454
|
✅ Queries: listProjects, getProjectTasks
|
|
455
455
|
|
|
456
|
-
|
|
456
|
+
Cycle 35-37: Frontend (agent-frontend)
|
|
457
457
|
✅ Pages: /projects, /projects/[id]
|
|
458
458
|
✅ Components: ProjectCard, TaskList
|
|
459
459
|
✅ Islands: Interactive task board
|
|
460
460
|
|
|
461
|
-
|
|
461
|
+
Cycle 38: Tests (agent-quality)
|
|
462
462
|
✅ Unit: 20/20 passing
|
|
463
463
|
✅ Integration: 10/10 passing
|
|
464
464
|
|
|
465
|
-
|
|
465
|
+
Cycle 39: Deploy (agent-ops)
|
|
466
466
|
✅ Backend: Convex deployed
|
|
467
467
|
✅ Frontend: Cloudflare deployed
|
|
468
468
|
|
|
469
|
-
|
|
469
|
+
Cycle 40: Document (agent-documenter)
|
|
470
470
|
✅ Updated: /one-platform/events/projects-deployed.md
|
|
471
471
|
✅ Knowledge: Usage patterns captured
|
|
472
472
|
|
|
@@ -479,7 +479,7 @@ Infer 40: Document (agent-documenter)
|
|
|
479
479
|
|
|
480
480
|
### 1. Immediate Value
|
|
481
481
|
- **Landing page in 5 minutes** - User sees progress immediately
|
|
482
|
-
- **Live URL from
|
|
482
|
+
- **Live URL from Cycle 10** - Something to share right away
|
|
483
483
|
- **Iterative deployment** - Each feature goes live as it's built
|
|
484
484
|
|
|
485
485
|
### 2. AI-Driven Personalization
|
|
@@ -488,13 +488,13 @@ Infer 40: Document (agent-documenter)
|
|
|
488
488
|
- **Smart feature recommendations** - Based on detected patterns
|
|
489
489
|
|
|
490
490
|
### 3. Transparent Progress
|
|
491
|
-
- **
|
|
491
|
+
- **Cycle-based** - Clear progress (Cycle 23/100)
|
|
492
492
|
- **Time estimates** - Per-feature and total
|
|
493
493
|
- **Real-time updates** - See what's happening
|
|
494
494
|
|
|
495
495
|
### 4. Modular & Extensible
|
|
496
496
|
- **Pick features** - Only build what you need
|
|
497
|
-
- **Add later** - Resume from any
|
|
497
|
+
- **Add later** - Resume from any cycle
|
|
498
498
|
- **Custom features** - Extend with your own ontology
|
|
499
499
|
|
|
500
500
|
### 5. Multi-Agent Coordination
|
|
@@ -541,8 +541,8 @@ Infer 40: Document (agent-documenter)
|
|
|
541
541
|
```typescript
|
|
542
542
|
// Add to agent-director responsibilities:
|
|
543
543
|
- Coordinate with agent-onboard for initial setup
|
|
544
|
-
- Map user feature selections to
|
|
545
|
-
- Generate 100-
|
|
544
|
+
- Map user feature selections to cycle ranges
|
|
545
|
+
- Generate 100-cycle plan based on selections
|
|
546
546
|
- Assign features to appropriate specialists
|
|
547
547
|
- Track progress and notify user
|
|
548
548
|
```
|
|
@@ -570,7 +570,7 @@ program
|
|
|
570
570
|
|
|
571
571
|
program
|
|
572
572
|
.command('build')
|
|
573
|
-
.description('Build features using 100-
|
|
573
|
+
.description('Build features using 100-cycle plan')
|
|
574
574
|
.option('-f, --features <features...>', 'Features to build')
|
|
575
575
|
.action(build);
|
|
576
576
|
|
|
@@ -590,7 +590,7 @@ export const FEATURES = {
|
|
|
590
590
|
"landing-page": {
|
|
591
591
|
name: "Landing Page",
|
|
592
592
|
description: "Beautiful landing page with hero, features, CTA",
|
|
593
|
-
|
|
593
|
+
cycles: [1, 10],
|
|
594
594
|
duration: "~5 min",
|
|
595
595
|
cost: "$0",
|
|
596
596
|
requires: [],
|
|
@@ -599,7 +599,7 @@ export const FEATURES = {
|
|
|
599
599
|
"authentication": {
|
|
600
600
|
name: "Authentication",
|
|
601
601
|
description: "Email/password + OAuth (6 methods)",
|
|
602
|
-
|
|
602
|
+
cycles: [11, 20],
|
|
603
603
|
duration: "~10 min",
|
|
604
604
|
cost: "$0",
|
|
605
605
|
requires: ["landing-page"],
|
|
@@ -608,7 +608,7 @@ export const FEATURES = {
|
|
|
608
608
|
"multi-tenant": {
|
|
609
609
|
name: "Multi-Tenant Groups",
|
|
610
610
|
description: "Hierarchical groups with data scoping",
|
|
611
|
-
|
|
611
|
+
cycles: [21, 30],
|
|
612
612
|
duration: "~10 min",
|
|
613
613
|
cost: "$0",
|
|
614
614
|
requires: ["authentication"],
|
|
@@ -625,11 +625,11 @@ export const FEATURES = {
|
|
|
625
625
|
- [ ] `npx oneie init` creates installation folder
|
|
626
626
|
- [ ] agent-onboard extracts brand from website
|
|
627
627
|
- [ ] Custom ontology generated automatically
|
|
628
|
-
- [ ] Feature selection UI shows
|
|
628
|
+
- [ ] Feature selection UI shows cycles + time
|
|
629
629
|
- [ ] Landing page deploys in <10 minutes
|
|
630
630
|
- [ ] Each feature goes live incrementally
|
|
631
631
|
- [ ] User receives email after each phase
|
|
632
|
-
- [ ] Full site built via 100-
|
|
632
|
+
- [ ] Full site built via 100-cycle plan
|
|
633
633
|
|
|
634
634
|
---
|
|
635
635
|
|
|
@@ -651,13 +651,13 @@ $ npx oneie init
|
|
|
651
651
|
✅ Features recommended
|
|
652
652
|
|
|
653
653
|
# User selects features
|
|
654
|
-
[x] Landing page (
|
|
655
|
-
[x] Authentication (
|
|
656
|
-
[x] Multi-tenant (
|
|
657
|
-
[x] Project management (
|
|
654
|
+
[x] Landing page (Cycle 1-10)
|
|
655
|
+
[x] Authentication (Cycle 11-20)
|
|
656
|
+
[x] Multi-tenant (Cycle 21-30)
|
|
657
|
+
[x] Project management (Cycle 31-40)
|
|
658
658
|
|
|
659
659
|
# Build starts automatically
|
|
660
|
-
🚀 Starting 40-
|
|
660
|
+
🚀 Starting 40-cycle build...
|
|
661
661
|
|
|
662
662
|
# 5 minutes later
|
|
663
663
|
✨ Landing page live: https://one-platform.com
|
|
@@ -682,7 +682,7 @@ $ npx oneie init
|
|
|
682
682
|
📊 /projects - Project management
|
|
683
683
|
|
|
684
684
|
📊 Stats:
|
|
685
|
-
•
|
|
685
|
+
• Cycles: 40/100 complete
|
|
686
686
|
• Time: 35 minutes
|
|
687
687
|
• Cost: $0
|
|
688
688
|
• Speed: <330ms globally
|
|
@@ -696,6 +696,6 @@ $ npx oneie build --features ai-agents rag-knowledge
|
|
|
696
696
|
|
|
697
697
|
---
|
|
698
698
|
|
|
699
|
-
**This is
|
|
699
|
+
**This is cycle-based onboarding done right!** 🚀
|
|
700
700
|
|
|
701
701
|
Fast. Transparent. Incremental. Personal. Perfect.
|
|
@@ -66,7 +66,7 @@ Phase 6: TEST & DOCUMENT
|
|
|
66
66
|
**For specific features, also read:**
|
|
67
67
|
|
|
68
68
|
- **Blockchain features:** `one/things/Sui.md`, `one/connections/cryptonetworks.md`
|
|
69
|
-
- **
|
|
69
|
+
- **Cycle features:** `one/events/CycleRevenue.md`
|
|
70
70
|
- **Protocol features:** `one/connections/protocols.md` + specific protocol doc
|
|
71
71
|
- **Integration features:** `one/connections/communications.md` + specific integration doc
|
|
72
72
|
- **Agent features:** `one/things/AgentKit.md`, `one/things/CopilotKit.md`
|
package/one/groups/groups.md
CHANGED
|
@@ -56,13 +56,13 @@ The ONE Platform operates as a multi-tenant system where:
|
|
|
56
56
|
users: number,
|
|
57
57
|
storage: number, // GB
|
|
58
58
|
apiCalls: number, // Per month
|
|
59
|
-
|
|
59
|
+
cycles: number, // Per month
|
|
60
60
|
},
|
|
61
61
|
usage?: {
|
|
62
62
|
users: number,
|
|
63
63
|
storage: number,
|
|
64
64
|
apiCalls: number,
|
|
65
|
-
|
|
65
|
+
cycles: number,
|
|
66
66
|
},
|
|
67
67
|
|
|
68
68
|
// Billing (mainly for organizations)
|
|
@@ -85,9 +85,9 @@ The ONE Platform operates as a multi-tenant system where:
|
|
|
85
85
|
requireEmailVerification?: boolean,
|
|
86
86
|
enableTwoFactor?: boolean,
|
|
87
87
|
allowedDomains?: string[],
|
|
88
|
-
//
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
// Cycle settings
|
|
89
|
+
cycleEnabled?: boolean,
|
|
90
|
+
cycleModels?: string[], // ["gpt-4", "claude-3.5", "llama-3"]
|
|
91
91
|
},
|
|
92
92
|
|
|
93
93
|
// Revenue share (if group generates platform revenue)
|
|
@@ -188,11 +188,11 @@ Large-scale multi-tenant business entities
|
|
|
188
188
|
- `payment_event` - Subscription payments (Stripe or crypto)
|
|
189
189
|
- `subscription_event` - Plan changes (starter → pro → enterprise)
|
|
190
190
|
|
|
191
|
-
**
|
|
191
|
+
**Cycle Events:**
|
|
192
192
|
|
|
193
|
-
- `
|
|
194
|
-
- `
|
|
195
|
-
- `
|
|
193
|
+
- `cycle_request` - Group member requests cycle
|
|
194
|
+
- `cycle_completed` - Result delivered
|
|
195
|
+
- `cycle_quota_exceeded` - Monthly limit hit
|
|
196
196
|
|
|
197
197
|
**Revenue Events:**
|
|
198
198
|
|
|
@@ -217,13 +217,13 @@ const oneGroupId = await db.insert("groups", {
|
|
|
217
217
|
users: 1000000, // Unlimited for platform
|
|
218
218
|
storage: 1000000, // 1PB
|
|
219
219
|
apiCalls: -1, // Unlimited
|
|
220
|
-
|
|
220
|
+
cycles: -1, // Unlimited
|
|
221
221
|
},
|
|
222
222
|
usage: {
|
|
223
223
|
users: 0,
|
|
224
224
|
storage: 0,
|
|
225
225
|
apiCalls: 0,
|
|
226
|
-
|
|
226
|
+
cycles: 0,
|
|
227
227
|
},
|
|
228
228
|
billing: {
|
|
229
229
|
cryptoEnabled: true,
|
|
@@ -237,8 +237,8 @@ const oneGroupId = await db.insert("groups", {
|
|
|
237
237
|
allowSignups: true,
|
|
238
238
|
requireEmailVerification: true,
|
|
239
239
|
enableTwoFactor: true,
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
cycleEnabled: true,
|
|
241
|
+
cycleModels: ["gpt-4", "claude-3.5", "llama-3"],
|
|
242
242
|
},
|
|
243
243
|
revenueShare: 0, // Anthony keeps 100% of revenue
|
|
244
244
|
},
|
|
@@ -302,13 +302,13 @@ const customerGroupId = await db.insert("groups", {
|
|
|
302
302
|
users: 50,
|
|
303
303
|
storage: 100, // GB
|
|
304
304
|
apiCalls: 100000,
|
|
305
|
-
|
|
305
|
+
cycles: 10000, // 10K cycles/month
|
|
306
306
|
},
|
|
307
307
|
usage: {
|
|
308
308
|
users: 0,
|
|
309
309
|
storage: 0,
|
|
310
310
|
apiCalls: 0,
|
|
311
|
-
|
|
311
|
+
cycles: 0,
|
|
312
312
|
},
|
|
313
313
|
billing: {
|
|
314
314
|
customerId: "cus_stripe123",
|
|
@@ -319,8 +319,8 @@ const customerGroupId = await db.insert("groups", {
|
|
|
319
319
|
allowSignups: false,
|
|
320
320
|
requireEmailVerification: true,
|
|
321
321
|
enableTwoFactor: false,
|
|
322
|
-
|
|
323
|
-
|
|
322
|
+
cycleEnabled: true,
|
|
323
|
+
cycleModels: ["gpt-4", "claude-3.5"],
|
|
324
324
|
},
|
|
325
325
|
revenueShare: 0.1, // Customer gets 10% revenue share if they refer users
|
|
326
326
|
},
|
|
@@ -386,15 +386,15 @@ const squadId = await db.insert("groups", {
|
|
|
386
386
|
});
|
|
387
387
|
```
|
|
388
388
|
|
|
389
|
-
### Track Group
|
|
389
|
+
### Track Group Cycle Usage
|
|
390
390
|
|
|
391
391
|
```typescript
|
|
392
|
-
// User in group requests
|
|
392
|
+
// User in group requests cycle
|
|
393
393
|
await db.insert("events", {
|
|
394
394
|
groupId: customerGroupId,
|
|
395
|
-
type: "
|
|
395
|
+
type: "cycle_request",
|
|
396
396
|
actorId: userId,
|
|
397
|
-
targetId:
|
|
397
|
+
targetId: cycleRequestId,
|
|
398
398
|
timestamp: Date.now(),
|
|
399
399
|
metadata: {
|
|
400
400
|
model: "gpt-4",
|
|
@@ -410,23 +410,23 @@ await db.patch(customerGroupId, {
|
|
|
410
410
|
...group.properties,
|
|
411
411
|
usage: {
|
|
412
412
|
...group.properties.usage,
|
|
413
|
-
|
|
413
|
+
cycles: group.properties.usage.cycles + 1,
|
|
414
414
|
},
|
|
415
415
|
},
|
|
416
416
|
updatedAt: Date.now(),
|
|
417
417
|
});
|
|
418
418
|
|
|
419
419
|
// Check if quota exceeded
|
|
420
|
-
if (group.properties.usage.
|
|
420
|
+
if (group.properties.usage.cycles >= group.properties.limits.cycles) {
|
|
421
421
|
await db.insert("events", {
|
|
422
422
|
groupId: customerGroupId,
|
|
423
|
-
type: "
|
|
423
|
+
type: "cycle_quota_exceeded",
|
|
424
424
|
actorId: "system",
|
|
425
425
|
targetId: customerGroupId,
|
|
426
426
|
timestamp: Date.now(),
|
|
427
427
|
metadata: {
|
|
428
|
-
limit: group.properties.limits.
|
|
429
|
-
usage: group.properties.usage.
|
|
428
|
+
limit: group.properties.limits.cycles,
|
|
429
|
+
usage: group.properties.usage.cycles,
|
|
430
430
|
},
|
|
431
431
|
});
|
|
432
432
|
}
|
|
@@ -505,12 +505,12 @@ const childGroups = await db
|
|
|
505
505
|
.collect();
|
|
506
506
|
```
|
|
507
507
|
|
|
508
|
-
**Get group
|
|
508
|
+
**Get group cycle usage:**
|
|
509
509
|
|
|
510
510
|
```typescript
|
|
511
511
|
const group = await db.get(groupId);
|
|
512
|
-
const usage = group.properties.usage?.
|
|
513
|
-
const limit = group.properties.limits?.
|
|
512
|
+
const usage = group.properties.usage?.cycles || 0;
|
|
513
|
+
const limit = group.properties.limits?.cycles || 0;
|
|
514
514
|
const percentageUsed = (usage / limit) * 100;
|
|
515
515
|
```
|
|
516
516
|
|
|
@@ -579,9 +579,9 @@ export const canAccess = async (
|
|
|
579
579
|
- **Hierarchical** - Groups can nest infinitely (friend circles → businesses → organizations)
|
|
580
580
|
- **6 group types** - friend_circle, business, community, dao, government, organization
|
|
581
581
|
- **Protocol-agnostic** - Blockchain interactions via `metadata.network`
|
|
582
|
-
- **
|
|
582
|
+
- **Cycle quotas** - Monthly limits enforced per group (mainly organizations)
|
|
583
583
|
- **Revenue share** - Optional revenue split for referring groups (configurable 0-100%)
|
|
584
584
|
- **Blockchain billing** - Groups can pay via crypto (SUI/Solana/Base)
|
|
585
|
-
- **Usage tracking** - All
|
|
585
|
+
- **Usage tracking** - All cycle/API usage tracked in group properties
|
|
586
586
|
- **Event history** - Complete audit trail of group activity
|
|
587
587
|
- **Flexible scale** - From friend circles (2 people) to governments (billions) without schema changes
|