oneie 2.0.1 ā 2.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/AGENTS.md +245 -0
- package/CLAUDE.md +534 -0
- package/README.md +61 -4
- package/one/.obsidian/app.json +1 -0
- package/one/.obsidian/appearance.json +1 -0
- package/one/.obsidian/core-plugins.json +33 -0
- package/one/.obsidian/workspace.json +211 -0
- package/one/connections/a2a.md +551 -0
- package/one/connections/acp.md +761 -0
- package/one/connections/acps.md +731 -0
- package/one/connections/agui.md +767 -0
- package/one/connections/any-backend.md +1702 -0
- package/one/connections/ap2.md +998 -0
- package/one/connections/api-docs.md +1891 -0
- package/one/connections/api.md +2190 -0
- package/one/connections/architecture-diagram.md +94 -0
- package/one/connections/communications.md +449 -0
- package/one/connections/connections.md +339 -0
- package/one/connections/cryptonetworks.md +781 -0
- package/one/connections/documentation.md +1120 -0
- package/one/connections/effect.md +279 -0
- package/one/connections/elizaos.md +1290 -0
- package/one/connections/inference.md +58 -0
- package/one/connections/kyc.md +632 -0
- package/one/connections/mcp.md +842 -0
- package/one/connections/membership.md +1152 -0
- package/one/connections/middleware.md +1067 -0
- package/one/connections/multitenant.md +1341 -0
- package/one/connections/n8n.md +1015 -0
- package/one/connections/patterns.md +89 -0
- package/one/connections/protocols.md +279 -0
- package/one/connections/relationships.md +107 -0
- package/one/connections/schema.md +587 -0
- package/one/connections/service-layer.md +550 -0
- package/one/connections/structure.md +0 -0
- package/one/connections/vectors.md +207 -0
- package/one/connections/wordpress.md +1302 -0
- package/one/connections/workflow-copy.md +905 -0
- package/one/connections/workflow-examples.md +741 -0
- package/one/connections/workflow.md +905 -0
- package/one/connections/workflows/delegation.md +885 -0
- package/one/connections/workflows/frontend.md +1037 -0
- package/one/connections/workflows/strategy.md +903 -0
- package/one/connections/workflows/tasks.md +698 -0
- package/one/connections/x402.md +1249 -0
- package/one/events/events.md +545 -0
- package/one/knowledge/ai-platform.md +305 -0
- package/one/knowledge/architecture-diagram.md +94 -0
- package/one/knowledge/architecture-frontend.md +930 -0
- package/one/knowledge/architecture.md +2077 -0
- package/one/knowledge/crypto.md +960 -0
- package/one/knowledge/dsl.md +1660 -0
- package/one/knowledge/files.md +2471 -0
- package/one/knowledge/frontend.md +1038 -0
- package/one/knowledge/hono.md +2109 -0
- package/one/knowledge/implementation-examples.md +2536 -0
- package/one/knowledge/inference-score.md +159 -0
- package/one/knowledge/knowledge.md +642 -0
- package/one/knowledge/language.md +980 -0
- package/one/knowledge/lessons-learned.md +70 -0
- package/one/knowledge/ontology-6-dimensions.md +0 -0
- package/one/knowledge/ontology-documentation.md +356 -0
- package/one/knowledge/ontology-engineering-specification.md +1292 -0
- package/one/knowledge/ontology-engineering.md +1652 -0
- package/one/knowledge/ontology-frontend-copy-2.md +1492 -0
- package/one/knowledge/ontology-frontend-copy.md +753 -0
- package/one/knowledge/ontology-frontend-specifications.md +2188 -0
- package/one/knowledge/ontology-frontend.md +2427 -0
- package/one/knowledge/ontology-minimal.yaml +299 -0
- package/one/knowledge/ontology.md +2819 -0
- package/one/knowledge/ontology.yaml +1165 -0
- package/one/knowledge/patterns/backend/convex-mutation-pattern.md +100 -0
- package/one/knowledge/patterns/backend/convex-query-pattern.md +88 -0
- package/one/knowledge/patterns/backend/mutation-template.md +231 -0
- package/one/knowledge/patterns/backend/query-template.md +267 -0
- package/one/knowledge/patterns/backend/service-template.md +237 -0
- package/one/knowledge/patterns/design/component-architecture.md +399 -0
- package/one/knowledge/patterns/design/test-driven-design-pattern.md +162 -0
- package/one/knowledge/patterns/design/wireframe-template.md +216 -0
- package/one/knowledge/patterns/frontend/component-template.md +195 -0
- package/one/knowledge/patterns/frontend/form-template.md +276 -0
- package/one/knowledge/patterns/frontend/page-template.md +178 -0
- package/one/knowledge/patterns/frontend/react-component-pattern.md +128 -0
- package/one/knowledge/patterns/test/acceptance-criteria-template.md +378 -0
- package/one/knowledge/patterns/test/technical-test-template.md +544 -0
- package/one/knowledge/patterns/test/test-driven-pattern.md +140 -0
- package/one/knowledge/patterns/test/user-flow-template.md +254 -0
- package/one/knowledge/quality-loop.md +401 -0
- package/one/knowledge/readme.md +131 -0
- package/one/knowledge/rules.md +626 -0
- package/one/knowledge/score.md +67 -0
- package/one/knowledge/specifications.md +855 -0
- package/one/knowledge/tags.md +130 -0
- package/one/organisation/one.md +599 -0
- package/one/organisation/organisation.md +438 -0
- package/one/organisation/revenue.md +673 -0
- package/one/organisation/strategy.md +869 -0
- package/one/organisation/vision.md +98 -0
- package/one/people/anthony-o-connell.md +440 -0
- package/one/people/people.md +567 -0
- package/one/repomix-output.md +92634 -0
- package/one/things/agentkit.md +349 -0
- package/one/things/agents/agent-backend.md +1401 -0
- package/one/things/agents/agent-builder.md +955 -0
- package/one/things/agents/agent-clean.md +709 -0
- package/one/things/agents/agent-clone.md +1341 -0
- package/one/things/agents/agent-designer.md +2177 -0
- package/one/things/agents/agent-director.md +1508 -0
- package/one/things/agents/agent-documenter.md +1049 -0
- package/one/things/agents/agent-frontend.md +1119 -0
- package/one/things/agents/agent-integrator.md +1192 -0
- package/one/things/agents/agent-problem-solver.md +1379 -0
- package/one/things/agents/agent-quality.md +1353 -0
- package/one/things/agents/agent-sales.md +986 -0
- package/one/things/cascade/cascade.yaml +464 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +470 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +264 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts.md +486 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +497 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +227 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +516 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +544 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +223 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination.md +508 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +609 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +195 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management.md +577 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +797 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +212 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops.md +641 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +610 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +213 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure.md +575 -0
- package/one/things/cascade/docs/examples/readme.md +222 -0
- package/one/things/cascade/docs/getting-started.md +515 -0
- package/one/things/cascade/docs/workflow.md +1372 -0
- package/one/things/cascade/readme.md +336 -0
- package/one/things/cascade/templates/feature-template.md +267 -0
- package/one/things/claude/agents/advocacy-activation-manager.md +685 -0
- package/one/things/claude/agents/advocacy-campaign-designer.md +663 -0
- package/one/things/claude/agents/analyst.md +483 -0
- package/one/things/claude/agents/architect.md +480 -0
- package/one/things/claude/agents/brand-identity-specialist.md +513 -0
- package/one/things/claude/agents/bstp-token-strategist.md +667 -0
- package/one/things/claude/agents/builder-repo.md +489 -0
- package/one/things/claude/agents/bullstamp-community-builder.md +574 -0
- package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +506 -0
- package/one/things/claude/agents/bulltilt-platform-growth.md +567 -0
- package/one/things/claude/agents/company-bullstamp-character.md +587 -0
- package/one/things/claude/agents/company-bullstamp-community.md +292 -0
- package/one/things/claude/agents/company-bullstamp-marketing.md +292 -0
- package/one/things/claude/agents/company-bullstamp-token.md +292 -0
- package/one/things/claude/agents/company-bulltilt-growth.md +292 -0
- package/one/things/claude/agents/content-bibliography-formatter.md +381 -0
- package/one/things/claude/agents/content-calendar-planner.md +448 -0
- package/one/things/claude/agents/content-chapter-formatter.md +488 -0
- package/one/things/claude/agents/content-formatter.md +546 -0
- package/one/things/claude/agents/content-hook-specialist.md +462 -0
- package/one/things/claude/agents/content-image-formatter.md +535 -0
- package/one/things/claude/agents/content-introduction-formatter.md +485 -0
- package/one/things/claude/agents/content-multiplication-engine.md +556 -0
- package/one/things/claude/agents/content-playbook-writer.md +448 -0
- package/one/things/claude/agents/content-team-manager.md +622 -0
- package/one/things/claude/agents/content-toc-formatter.md +522 -0
- package/one/things/claude/agents/convex-backend-specialist.md +2561 -0
- package/one/things/claude/agents/core-manager.md +582 -0
- package/one/things/claude/agents/core-master.md +403 -0
- package/one/things/claude/agents/cross-functional-manager.md +471 -0
- package/one/things/claude/agents/crypto-airdrop-strategist.md +602 -0
- package/one/things/claude/agents/crypto-analytics-educator.md +553 -0
- package/one/things/claude/agents/crypto-architecture-specialist.md +466 -0
- package/one/things/claude/agents/crypto-community-analyst.md +298 -0
- package/one/things/claude/agents/crypto-community-psychologist.md +509 -0
- package/one/things/claude/agents/crypto-dex-optimization-expert.md +538 -0
- package/one/things/claude/agents/crypto-dex-optimizer.md +292 -0
- package/one/things/claude/agents/crypto-diamond-formation-specialist.md +513 -0
- package/one/things/claude/agents/crypto-diamond-hands.md +292 -0
- package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +554 -0
- package/one/things/claude/agents/crypto-engagement-specialist.md +540 -0
- package/one/things/claude/agents/crypto-market-researcher.md +292 -0
- package/one/things/claude/agents/crypto-marketing-orchestrator.md +523 -0
- package/one/things/claude/agents/crypto-network-effect-amplifier.md +569 -0
- package/one/things/claude/agents/crypto-optimization-analyst.md +554 -0
- package/one/things/claude/agents/crypto-strategic-synthesizer.md +517 -0
- package/one/things/claude/agents/crypto-team-manager.md +387 -0
- package/one/things/claude/agents/crypto-token-analyst.md +278 -0
- package/one/things/claude/agents/crypto-viral-content-creator.md +546 -0
- package/one/things/claude/agents/crypto-wallet-identification-expert.md +517 -0
- package/one/things/claude/agents/crypto-wallet-identifier.md +292 -0
- package/one/things/claude/agents/customer-journey-designer.md +481 -0
- package/one/things/claude/agents/customer-success-manager.md +581 -0
- package/one/things/claude/agents/dev.md +413 -0
- package/one/things/claude/agents/documenter.md +546 -0
- package/one/things/claude/agents/elevate-marketing-orchestrator.md +410 -0
- package/one/things/claude/agents/engagement-specialist.md +509 -0
- package/one/things/claude/agents/engineering-architect.md +387 -0
- package/one/things/claude/agents/engineering-business-analyst.md +537 -0
- package/one/things/claude/agents/engineering-developer.md +387 -0
- package/one/things/claude/agents/engineering-director.md +282 -0
- package/one/things/claude/agents/engineering-ingestor.md +649 -0
- package/one/things/claude/agents/engineering-product-manager.md +537 -0
- package/one/things/claude/agents/engineering-product-owner.md +537 -0
- package/one/things/claude/agents/engineering-project-coordinator.md +537 -0
- package/one/things/claude/agents/engineering-quality-assurance.md +393 -0
- package/one/things/claude/agents/engineering-team-manager.md +512 -0
- package/one/things/claude/agents/engineering-user-experience.md +387 -0
- package/one/things/claude/agents/framework-elevate-manager.md +294 -0
- package/one/things/claude/agents/improver.md +763 -0
- package/one/things/claude/agents/intelligence-team-manager.md +385 -0
- package/one/things/claude/agents/lead-capture-expert.md +466 -0
- package/one/things/claude/agents/lead-magnet-creator.md +453 -0
- package/one/things/claude/agents/market-research-analyst.md +412 -0
- package/one/things/claude/agents/marketing-brand-identity.md +314 -0
- package/one/things/claude/agents/marketing-content-hooks.md +450 -0
- package/one/things/claude/agents/marketing-content-multiplier.md +326 -0
- package/one/things/claude/agents/marketing-content-poster.md +361 -0
- package/one/things/claude/agents/marketing-customer-journey.md +326 -0
- package/one/things/claude/agents/marketing-director.md +397 -0
- package/one/things/claude/agents/marketing-engagement.md +326 -0
- package/one/things/claude/agents/marketing-lead-capture.md +326 -0
- package/one/things/claude/agents/marketing-lead-magnet.md +326 -0
- package/one/things/claude/agents/marketing-network-effects.md +326 -0
- package/one/things/claude/agents/marketing-nurture-campaigns.md +326 -0
- package/one/things/claude/agents/marketing-share-optimizer.md +326 -0
- package/one/things/claude/agents/marketing-team-manager.md +446 -0
- package/one/things/claude/agents/marketing-viral-growth.md +201 -0
- package/one/things/claude/agents/mission-commander.md +373 -0
- package/one/things/claude/agents/network-effect-analyst.md +587 -0
- package/one/things/claude/agents/nextjs-15-specialist.md +1547 -0
- package/one/things/claude/agents/npx.md +890 -0
- package/one/things/claude/agents/nurture-campaign-manager.md +531 -0
- package/one/things/claude/agents/one-master.md +355 -0
- package/one/things/claude/agents/one-orchestrator.md +315 -0
- package/one/things/claude/agents/one.md +601 -0
- package/one/things/claude/agents/playbook-generator.md +503 -0
- package/one/things/claude/agents/pm.md +326 -0
- package/one/things/claude/agents/po.md +345 -0
- package/one/things/claude/agents/qa.md +336 -0
- package/one/things/claude/agents/research-foundation-analyst.md +307 -0
- package/one/things/claude/agents/research-intelligence-gatherer.md +408 -0
- package/one/things/claude/agents/research-market-analyst.md +307 -0
- package/one/things/claude/agents/research-team-manager.md +482 -0
- package/one/things/claude/agents/sales-environment-optimizer.md +494 -0
- package/one/things/claude/agents/sales-team-manager.md +400 -0
- package/one/things/claude/agents/sales-upsell-strategist.md +307 -0
- package/one/things/claude/agents/service-advocacy-campaigns.md +307 -0
- package/one/things/claude/agents/service-advocacy-manager.md +307 -0
- package/one/things/claude/agents/service-success-manager.md +307 -0
- package/one/things/claude/agents/service-team-manager.md +400 -0
- package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +2302 -0
- package/one/things/claude/agents/share-optimization-specialist.md +551 -0
- package/one/things/claude/agents/sm.md +327 -0
- package/one/things/claude/agents/story-teller.md +473 -0
- package/one/things/claude/agents/task-master.md +596 -0
- package/one/things/claude/agents/tauri-cross-platform-specialist.md +1827 -0
- package/one/things/claude/agents/tester.md +556 -0
- package/one/things/claude/agents/the-bull-character-manager.md +580 -0
- package/one/things/claude/agents/tools-playbook-generator.md +489 -0
- package/one/things/claude/agents/turbo-repo-builder.md +316 -0
- package/one/things/claude/agents/upsell-strategist.md +480 -0
- package/one/things/claude/agents/ux-expert.md +335 -0
- package/one/things/claude/agents/viral-growth-orchestrator.md +497 -0
- package/one/things/claude/claude-code-hooks-development.json +21 -0
- package/one/things/claude/claude-code-hooks-production.json +21 -0
- package/one/things/claude/claude-code-hooks.json +25 -0
- package/one/things/claude/commands/agent.md +104 -0
- package/one/things/claude/commands/cascade-status.md +128 -0
- package/one/things/claude/commands/ingest.md +290 -0
- package/one/things/claude/commands/ingestor.md +136 -0
- package/one/things/claude/commands/mission.md +83 -0
- package/one/things/claude/commands/npx.md +133 -0
- package/one/things/claude/commands/one.md +440 -0
- package/one/things/claude/commands/quality-check.md +204 -0
- package/one/things/claude/commands/smart-route.md +220 -0
- package/one/things/claude/commands/start.md +121 -0
- package/one/things/claude/commands/story.md +83 -0
- package/one/things/claude/commands/task.md +173 -0
- package/one/things/claude/hook-bypass.json +32 -0
- package/one/things/claude/hooks/agent-hook-config.json +427 -0
- package/one/things/claude/hooks/agent-hook-manager.js +525 -0
- package/one/things/claude/hooks/agent-load-balancer.js +271 -0
- package/one/things/claude/hooks/agent-request-interceptor.js +70 -0
- package/one/things/claude/hooks/build-hook.sh +156 -0
- package/one/things/claude/hooks/cascade-feedback.js +297 -0
- package/one/things/claude/hooks/cascade-integration-hooks.js +648 -0
- package/one/things/claude/hooks/cleanup-hook.sh +201 -0
- package/one/things/claude/hooks/continuous-improvement-monitor.js +510 -0
- package/one/things/claude/hooks/file-organization-engine.js +427 -0
- package/one/things/claude/hooks/file-organization-hook.sh +80 -0
- package/one/things/claude/hooks/file-organization-monitor.js +269 -0
- package/one/things/claude/hooks/format-hook.sh +43 -0
- package/one/things/claude/hooks/hook-bypass.sh +293 -0
- package/one/things/claude/hooks/hook-config-manager.js +202 -0
- package/one/things/claude/hooks/hook-debouncer.sh +62 -0
- package/one/things/claude/hooks/hook-logger.sh +89 -0
- package/one/things/claude/hooks/hook-orchestrator.js +662 -0
- package/one/things/claude/hooks/hook-performance-report.js +120 -0
- package/one/things/claude/hooks/lint-hook.sh +140 -0
- package/one/things/claude/hooks/mcp-cascade-integration.js +816 -0
- package/one/things/claude/hooks/memory-optimizer.js +510 -0
- package/one/things/claude/hooks/notification-hook.sh +204 -0
- package/one/things/claude/hooks/ontology-compliance.js +394 -0
- package/one/things/claude/hooks/ontology-hook-manager.js +316 -0
- package/one/things/claude/hooks/ontology-validation-engine.js +317 -0
- package/one/things/claude/hooks/ontology-validation-hook.sh +86 -0
- package/one/things/claude/hooks/performance-metrics.json +25 -0
- package/one/things/claude/hooks/performance-monitoring-hook.js +422 -0
- package/one/things/claude/hooks/quality-scoring-engine.js +834 -0
- package/one/things/claude/hooks/security-hook.sh +256 -0
- package/one/things/claude/hooks/simple-load-balancer.js +238 -0
- package/one/things/claude/hooks/startup-optimizer.js +625 -0
- package/one/things/claude/hooks/story-scoring-system.js +445 -0
- package/one/things/claude/hooks/story-validation-engine.js +473 -0
- package/one/things/claude/hooks/story-validation-hook-enhanced.sh +210 -0
- package/one/things/claude/hooks/story-validation-hook.sh +145 -0
- package/one/things/claude/hooks/structure-synchronizer.js +194 -0
- package/one/things/claude/hooks/sub-agent-output-validator.js +647 -0
- package/one/things/claude/hooks/sub-agent-validation-hook.js +343 -0
- package/one/things/claude/hooks/test-hook.sh +145 -0
- package/one/things/claude/hooks/test-story-validation.sh +170 -0
- package/one/things/claude/hooks/trinity-validation-system.js +392 -0
- package/one/things/claude/settings-local.json +86 -0
- package/one/things/cli-code.md +652 -0
- package/one/things/cli-compiler-code.md +652 -0
- package/one/things/cli.md +1045 -0
- package/one/things/components/card-shadcn.md +929 -0
- package/one/things/components/card.md +1050 -0
- package/one/things/components.md +1669 -0
- package/one/things/componets.md +4 -0
- package/one/things/copilotkit.md +1559 -0
- package/one/things/creator-diagram.md +166 -0
- package/one/things/examples/children/lemonade-stand.md +366 -0
- package/one/things/examples/enterprise/crm-saas.md +1429 -0
- package/one/things/features/1-1-agent-prompts/design.md +470 -0
- package/one/things/features/1-1-agent-prompts/tests.md +264 -0
- package/one/things/features/1-1-agent-prompts.md +486 -0
- package/one/things/features/1-2-yaml-orchestrator/design.md +497 -0
- package/one/things/features/1-2-yaml-orchestrator/tests.md +227 -0
- package/one/things/features/1-2-yaml-orchestrator.md +516 -0
- package/one/things/features/1-3-event-coordination/design.md +544 -0
- package/one/things/features/1-3-event-coordination/tests.md +223 -0
- package/one/things/features/1-3-event-coordination.md +508 -0
- package/one/things/features/1-4-knowledge-management/design.md +609 -0
- package/one/things/features/1-4-knowledge-management/tests.md +195 -0
- package/one/things/features/1-4-knowledge-management.md +577 -0
- package/one/things/features/1-5-quality-loops/design.md +797 -0
- package/one/things/features/1-5-quality-loops/tests.md +212 -0
- package/one/things/features/1-5-quality-loops.md +641 -0
- package/one/things/features/1-6-numbering-structure/design.md +610 -0
- package/one/things/features/1-6-numbering-structure/tests.md +213 -0
- package/one/things/features/1-6-numbering-structure.md +575 -0
- package/one/things/features/2-cli.md +1235 -0
- package/one/things/features/use-one-backend.md +1180 -0
- package/one/things/ideas/1-create-workflow.md +189 -0
- package/one/things/plans/1-create-workflow-status.md +555 -0
- package/one/things/plans/1-create-workflow.md +713 -0
- package/one/things/plans/app.md +761 -0
- package/one/things/plans/better-auth-any-backend-revised.md +1065 -0
- package/one/things/plans/better-auth-any-backend.md +1852 -0
- package/one/things/plans/better-auth-available-features.md +235 -0
- package/one/things/plans/big-plan.md +38 -0
- package/one/things/plans/convex-better-auth.md +1109 -0
- package/one/things/plans/convex-on-off.md +389 -0
- package/one/things/plans/desktop.md +1121 -0
- package/one/things/plans/effect-components.md +1669 -0
- package/one/things/plans/effect.md +973 -0
- package/one/things/plans/email.md +953 -0
- package/one/things/plans/enhance-auth.md +1669 -0
- package/one/things/plans/install-components.md +198 -0
- package/one/things/plans/landing.md +728 -0
- package/one/things/plans/layout.md +205 -0
- package/one/things/plans/mail-backend.md +1308 -0
- package/one/things/plans/mail.md +2624 -0
- package/one/things/plans/next-features.md +83 -0
- package/one/things/plans/one.md +658 -0
- package/one/things/plans/ontology-6-dimensions.md +2216 -0
- package/one/things/plans/ontology-driven-strategy.md +866 -0
- package/one/things/plans/ontology-ui-approach.md +357 -0
- package/one/things/plans/open-agent.md +785 -0
- package/one/things/plans/performace.md +90 -0
- package/one/things/plans/releases.md +809 -0
- package/one/things/plans/repos.md +76 -0
- package/one/things/plans/separate-copy-2.md +1293 -0
- package/one/things/plans/separate-copy-3.md +2458 -0
- package/one/things/plans/separate-copy.md +1293 -0
- package/one/things/plans/separate.md +1983 -0
- package/one/things/plans/shadcn-integration-summary.md +450 -0
- package/one/things/plans/sidebar.md +172 -0
- package/one/things/plans/small-fixes.md +5 -0
- package/one/things/plans/test-backend-connection.md +476 -0
- package/one/things/plans/workflow-files.md +1196 -0
- package/one/things/plans/workflow.md +1372 -0
- package/one/things/products/cascade-landing-page.md +737 -0
- package/one/things/products/cascade.md +1518 -0
- package/one/things/products/context-engineering.md +1427 -0
- package/one/things/products/onthology.md +0 -0
- package/one/things/products/ontology-ui-shadcn.md +1280 -0
- package/one/things/products/ontology-ui.md +1387 -0
- package/one/things/products/ontology.md +717 -0
- package/one/things/products/sdk.md +557 -0
- package/one/things/promptkit.md +903 -0
- package/one/things/service-providers-new.md +982 -0
- package/one/things/service-providers.md +1092 -0
- package/one/things/things.md +349 -0
- package/one/things/todo.md +1248 -0
- package/package.json +5 -2
|
@@ -0,0 +1,1235 @@
|
|
|
1
|
+
# Feature 2: ONE CLI - Bootstrap & Ontology Sync
|
|
2
|
+
|
|
3
|
+
**Version:** 2.0.0
|
|
4
|
+
**Package:** `npx oneie`
|
|
5
|
+
**Status:** In Development
|
|
6
|
+
**Priority:** Critical
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Overview
|
|
11
|
+
|
|
12
|
+
The ONE CLI is a bootstrap and synchronization tool that:
|
|
13
|
+
|
|
14
|
+
1. **Copies ontology files** from the ONE framework to user projects
|
|
15
|
+
2. **Syncs agent definitions** to Claude Code integration
|
|
16
|
+
3. **Creates user & organization profiles** with ontology mappings
|
|
17
|
+
4. **Clones frontend repository** for website building
|
|
18
|
+
5. **Clones third-party documentation** for AI context
|
|
19
|
+
|
|
20
|
+
**Core Command:** `npx oneie`
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## User Flow
|
|
25
|
+
|
|
26
|
+
### Phase 1: Initial Bootstrap
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npx oneie
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**What happens:**
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
36
|
+
ā ā
|
|
37
|
+
ā āāāāāāā āāāā āāāāāāāāāāā Turn ideas into reality ā
|
|
38
|
+
ā āāāāāāāāāāāāāā āāāāāāāāāāā ā
|
|
39
|
+
ā āāā āāāāāāāāā āāāāāāāāā https://one.ie ā
|
|
40
|
+
ā āāā āāāāāāāāāāāāāāāāāāā ā
|
|
41
|
+
ā āāāāāāāāāāāā āāāāāāāāāāāāāā npx oneie ā
|
|
42
|
+
ā āāāāāāā āāā āāāāāāāāāāāāā ā
|
|
43
|
+
ā ā
|
|
44
|
+
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
45
|
+
|
|
46
|
+
⨠Welcome to ONE Platform!
|
|
47
|
+
|
|
48
|
+
Let's set up your environment with the 6-dimension ontology.
|
|
49
|
+
|
|
50
|
+
š§ Step 1: Tell us about yourself
|
|
51
|
+
|
|
52
|
+
What's your name? (e.g., Anthony O'Connell): _
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Phase 2: User Profile Creation
|
|
56
|
+
|
|
57
|
+
After user enters name:
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
Great to meet you, Anthony! š
|
|
61
|
+
|
|
62
|
+
What's your email address? anthony@one.ie
|
|
63
|
+
What username would you like? anthony
|
|
64
|
+
What's your website URL? (optional): https://one.ie
|
|
65
|
+
|
|
66
|
+
š¢ Step 2: Organization Setup
|
|
67
|
+
|
|
68
|
+
What's your organization name? (e.g., ONE Platform): ONE Platform
|
|
69
|
+
Organization slug (URL-friendly): one
|
|
70
|
+
Organization domain: one.ie
|
|
71
|
+
|
|
72
|
+
Creating your profile...
|
|
73
|
+
ā Created one/people/anthony-o-connell.md
|
|
74
|
+
ā Created one/organisation/one.md
|
|
75
|
+
ā Linked anthony ā owns ā ONE Platform
|
|
76
|
+
ā Linked anthony ā member_of ā ONE Platform (role: org_owner)
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Phase 3: Ontology Sync
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
š Step 3: Syncing ONE Ontology
|
|
83
|
+
|
|
84
|
+
Copying ontology files from ONE framework...
|
|
85
|
+
|
|
86
|
+
ā Copied 100+ .md files from /one/* to your project
|
|
87
|
+
ā Updated cli/folders.yaml with all /one/* paths
|
|
88
|
+
ā Synced 12 agent definitions: one/things/agents/* ā .claude/agents/*
|
|
89
|
+
ā Synced Claude Code hooks: .claude/hooks/*
|
|
90
|
+
ā Synced Claude Code commands: .claude/commands/*
|
|
91
|
+
|
|
92
|
+
Ontology sync complete! š
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Phase 4: Website Setup (Optional)
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
š Step 4: Website Setup
|
|
99
|
+
|
|
100
|
+
Would you like to build a website? (yes/no): yes
|
|
101
|
+
|
|
102
|
+
Cloning frontend repository...
|
|
103
|
+
ā git clone https://github.com/one-ie/frontend.git ā /frontend
|
|
104
|
+
ā Installed dependencies (bun install)
|
|
105
|
+
ā Created frontend/.env.local with your organization details
|
|
106
|
+
|
|
107
|
+
Your website is ready at: http://localhost:4321
|
|
108
|
+
Run: cd frontend && bun run dev
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Phase 5: Third-Party Docs (Optional)
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
š Step 5: Third-Party Documentation
|
|
115
|
+
|
|
116
|
+
Would you like to clone third-party docs for AI context? (yes/no): yes
|
|
117
|
+
|
|
118
|
+
Cloning documentation repositories...
|
|
119
|
+
ā Astro docs ā /docs/astro
|
|
120
|
+
ā Convex docs ā /docs/convex
|
|
121
|
+
ā Effect.ts docs ā /docs/effect
|
|
122
|
+
ā React docs ā /docs/react
|
|
123
|
+
ā Tailwind CSS docs ā /docs/tailwind
|
|
124
|
+
|
|
125
|
+
Documentation cloned! AI agents can now reference these offline.
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Phase 6: Complete
|
|
129
|
+
|
|
130
|
+
```
|
|
131
|
+
ā
Setup Complete!
|
|
132
|
+
|
|
133
|
+
Your ONE environment is ready:
|
|
134
|
+
|
|
135
|
+
š Project Structure:
|
|
136
|
+
/one/ ā 6-dimension ontology (100+ files)
|
|
137
|
+
/frontend/ ā Astro + React website
|
|
138
|
+
/docs/ ā Third-party documentation
|
|
139
|
+
/.claude/ ā AI agent integration
|
|
140
|
+
/cli/ ā CLI configuration
|
|
141
|
+
|
|
142
|
+
š§ Your Profile:
|
|
143
|
+
Name: Anthony O'Connell
|
|
144
|
+
Email: anthony@one.ie
|
|
145
|
+
Username: anthony
|
|
146
|
+
Role: org_owner
|
|
147
|
+
File: one/people/anthony-o-connell.md
|
|
148
|
+
|
|
149
|
+
š¢ Your Organization:
|
|
150
|
+
Name: ONE Platform
|
|
151
|
+
Slug: one
|
|
152
|
+
Domain: one.ie
|
|
153
|
+
File: one/organisation/one.md
|
|
154
|
+
|
|
155
|
+
š Next Steps:
|
|
156
|
+
|
|
157
|
+
1. Start building:
|
|
158
|
+
cd frontend && bun run dev
|
|
159
|
+
|
|
160
|
+
2. Use AI agents:
|
|
161
|
+
claude
|
|
162
|
+
|
|
163
|
+
3. Read the docs:
|
|
164
|
+
cat one/knowledge/ontology.md
|
|
165
|
+
|
|
166
|
+
4. Create your first feature:
|
|
167
|
+
/one
|
|
168
|
+
|
|
169
|
+
Happy building! š
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## Technical Implementation
|
|
175
|
+
|
|
176
|
+
### 1. Copy Ontology Files (folders.yaml)
|
|
177
|
+
|
|
178
|
+
**File:** `cli/folders.yaml`
|
|
179
|
+
|
|
180
|
+
**Current state:**
|
|
181
|
+
```yaml
|
|
182
|
+
# ONE Framework - Folder Copy Configuration
|
|
183
|
+
claude_folders:
|
|
184
|
+
- .claude/agents
|
|
185
|
+
- .claude/commands
|
|
186
|
+
- .claude/hooks
|
|
187
|
+
|
|
188
|
+
one_platform_folders:
|
|
189
|
+
- .one/checklists
|
|
190
|
+
- .one/data
|
|
191
|
+
- .one/missions
|
|
192
|
+
- .one/ontology
|
|
193
|
+
- .one/stories
|
|
194
|
+
- .one/tasks
|
|
195
|
+
- .one/teams
|
|
196
|
+
- .one/templates
|
|
197
|
+
- .one/workflows
|
|
198
|
+
|
|
199
|
+
one_user_folders:
|
|
200
|
+
- one/agents
|
|
201
|
+
- one/brand
|
|
202
|
+
- one/checklists
|
|
203
|
+
- one/company
|
|
204
|
+
- one/data
|
|
205
|
+
- one/docs
|
|
206
|
+
- one/engineering
|
|
207
|
+
- one/guides
|
|
208
|
+
- one/me
|
|
209
|
+
- one/missions
|
|
210
|
+
- one/prompts
|
|
211
|
+
- one/stories
|
|
212
|
+
- one/tasks
|
|
213
|
+
- one/templates
|
|
214
|
+
- one/workflows
|
|
215
|
+
|
|
216
|
+
root_files:
|
|
217
|
+
- .one/interface.md
|
|
218
|
+
- .one/one-command.js
|
|
219
|
+
- .one/structure.yaml
|
|
220
|
+
- one/core-config.yaml
|
|
221
|
+
- one/manifest.md
|
|
222
|
+
- one/one.md
|
|
223
|
+
- one/ontology.md
|
|
224
|
+
- one/plan.md
|
|
225
|
+
- one/structure.yaml
|
|
226
|
+
- one/workflow.md
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
**Simplified configuration:**
|
|
230
|
+
```yaml
|
|
231
|
+
# ONE CLI - Folder Copy Configuration
|
|
232
|
+
# Simple: Copy everything from /one/* to user's project
|
|
233
|
+
|
|
234
|
+
# Claude Code Integration
|
|
235
|
+
claude_folders:
|
|
236
|
+
- .claude/agents
|
|
237
|
+
- .claude/commands
|
|
238
|
+
- .claude/hooks
|
|
239
|
+
|
|
240
|
+
# ONE Ontology (copy ALL files from /one/*)
|
|
241
|
+
# No need to list individual folders - CLI discovers them automatically
|
|
242
|
+
one_folders:
|
|
243
|
+
- one/**/*
|
|
244
|
+
|
|
245
|
+
# File extensions to copy
|
|
246
|
+
allowed_extensions:
|
|
247
|
+
- .md
|
|
248
|
+
- .yaml
|
|
249
|
+
- .yml
|
|
250
|
+
- .sh
|
|
251
|
+
|
|
252
|
+
# Files/folders to exclude
|
|
253
|
+
exclude_patterns:
|
|
254
|
+
- "*/node_modules/*"
|
|
255
|
+
- "*/.git/*"
|
|
256
|
+
- "*/dist/*"
|
|
257
|
+
- "*/build/*"
|
|
258
|
+
- "*/.DS_Store"
|
|
259
|
+
- "*/package-lock.json"
|
|
260
|
+
- "*/bun.lockb"
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
**Implementation (Simplified):**
|
|
264
|
+
|
|
265
|
+
```typescript
|
|
266
|
+
// cli/src/sync-ontology.ts
|
|
267
|
+
import fs from "fs/promises";
|
|
268
|
+
import path from "path";
|
|
269
|
+
import yaml from "yaml";
|
|
270
|
+
import { glob } from "glob";
|
|
271
|
+
|
|
272
|
+
interface FoldersConfig {
|
|
273
|
+
claude_folders: string[];
|
|
274
|
+
one_folders: string[];
|
|
275
|
+
allowed_extensions: string[];
|
|
276
|
+
exclude_patterns: string[];
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export async function syncOntologyFiles() {
|
|
280
|
+
// 1. Read config
|
|
281
|
+
const configPath = path.join(__dirname, "../../cli/folders.yaml");
|
|
282
|
+
const configContent = await fs.readFile(configPath, "utf-8");
|
|
283
|
+
const config: FoldersConfig = yaml.parse(configContent);
|
|
284
|
+
|
|
285
|
+
// 2. Build glob pattern for all allowed extensions
|
|
286
|
+
const patterns = config.allowed_extensions.map(
|
|
287
|
+
(ext) => `one/**/*${ext}`
|
|
288
|
+
);
|
|
289
|
+
|
|
290
|
+
// 3. Find all matching files
|
|
291
|
+
const oneFiles: string[] = [];
|
|
292
|
+
for (const pattern of patterns) {
|
|
293
|
+
const files = await glob(pattern, {
|
|
294
|
+
cwd: path.join(__dirname, "../.."),
|
|
295
|
+
ignore: config.exclude_patterns,
|
|
296
|
+
});
|
|
297
|
+
oneFiles.push(...files);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
// 4. Copy all files to user directory
|
|
301
|
+
for (const file of oneFiles) {
|
|
302
|
+
const sourcePath = path.join(__dirname, "../..", file);
|
|
303
|
+
const targetPath = path.join(process.cwd(), file);
|
|
304
|
+
|
|
305
|
+
// Create directory if needed
|
|
306
|
+
await fs.mkdir(path.dirname(targetPath), { recursive: true });
|
|
307
|
+
|
|
308
|
+
// Copy file
|
|
309
|
+
await fs.copyFile(sourcePath, targetPath);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
console.log(`ā Copied ${oneFiles.length} ontology files`);
|
|
313
|
+
|
|
314
|
+
return {
|
|
315
|
+
filesCopied: oneFiles.length,
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
### 2. Sync Agent Definitions
|
|
323
|
+
|
|
324
|
+
**Sync:** `one/things/agents/* ā .claude/agents/*`
|
|
325
|
+
|
|
326
|
+
**Implementation:**
|
|
327
|
+
|
|
328
|
+
```typescript
|
|
329
|
+
// cli/src/sync-agents.ts
|
|
330
|
+
import fs from "fs/promises";
|
|
331
|
+
import path from "path";
|
|
332
|
+
import { glob } from "glob";
|
|
333
|
+
|
|
334
|
+
export async function syncAgentDefinitions() {
|
|
335
|
+
const sourceDir = path.join(__dirname, "../../one/things/agents");
|
|
336
|
+
const targetDir = path.join(process.cwd(), ".claude/agents");
|
|
337
|
+
|
|
338
|
+
// Create target directory
|
|
339
|
+
await fs.mkdir(targetDir, { recursive: true });
|
|
340
|
+
|
|
341
|
+
// Find all agent files
|
|
342
|
+
const agentFiles = await glob("*.md", { cwd: sourceDir });
|
|
343
|
+
|
|
344
|
+
// Copy each agent file
|
|
345
|
+
for (const file of agentFiles) {
|
|
346
|
+
const sourcePath = path.join(sourceDir, file);
|
|
347
|
+
const targetPath = path.join(targetDir, file);
|
|
348
|
+
await fs.copyFile(sourcePath, targetPath);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
console.log(`ā Synced ${agentFiles.length} agent definitions`);
|
|
352
|
+
|
|
353
|
+
return {
|
|
354
|
+
agentsSynced: agentFiles.length,
|
|
355
|
+
agents: agentFiles.map((f) => path.basename(f, ".md")),
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
**Also copy .claude/* to user:**
|
|
361
|
+
|
|
362
|
+
```typescript
|
|
363
|
+
// cli/src/copy-claude-config.ts
|
|
364
|
+
import fs from "fs/promises";
|
|
365
|
+
import path from "path";
|
|
366
|
+
|
|
367
|
+
export async function copyClaudeConfig() {
|
|
368
|
+
const sourceDir = path.join(__dirname, "../../.claude");
|
|
369
|
+
const targetDir = path.join(process.cwd(), ".claude");
|
|
370
|
+
|
|
371
|
+
// Create target directory
|
|
372
|
+
await fs.mkdir(targetDir, { recursive: true });
|
|
373
|
+
|
|
374
|
+
// Copy hooks/
|
|
375
|
+
await fs.cp(
|
|
376
|
+
path.join(sourceDir, "hooks"),
|
|
377
|
+
path.join(targetDir, "hooks"),
|
|
378
|
+
{ recursive: true }
|
|
379
|
+
);
|
|
380
|
+
|
|
381
|
+
// Copy commands/
|
|
382
|
+
await fs.cp(
|
|
383
|
+
path.join(sourceDir, "commands"),
|
|
384
|
+
path.join(targetDir, "commands"),
|
|
385
|
+
{ recursive: true }
|
|
386
|
+
);
|
|
387
|
+
|
|
388
|
+
// Copy agents/ (already done by syncAgentDefinitions)
|
|
389
|
+
// Copy settings if exists
|
|
390
|
+
const settingsPath = path.join(sourceDir, "settings.json");
|
|
391
|
+
if (await fs.stat(settingsPath).catch(() => null)) {
|
|
392
|
+
await fs.copyFile(
|
|
393
|
+
settingsPath,
|
|
394
|
+
path.join(targetDir, "settings.json")
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
console.log("ā Copied Claude Code configuration");
|
|
399
|
+
}
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
---
|
|
403
|
+
|
|
404
|
+
### 3. Create User & Organization Profiles
|
|
405
|
+
|
|
406
|
+
**User Profile:** `one/people/{name}.md`
|
|
407
|
+
|
|
408
|
+
**Template:**
|
|
409
|
+
|
|
410
|
+
```typescript
|
|
411
|
+
// cli/src/create-user-profile.ts
|
|
412
|
+
import fs from "fs/promises";
|
|
413
|
+
import path from "path";
|
|
414
|
+
|
|
415
|
+
interface UserProfile {
|
|
416
|
+
name: string;
|
|
417
|
+
email: string;
|
|
418
|
+
username: string;
|
|
419
|
+
website?: string;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export async function createUserProfile(profile: UserProfile) {
|
|
423
|
+
// Generate filename from name (lowercase, hyphenated)
|
|
424
|
+
const filename = profile.name
|
|
425
|
+
.toLowerCase()
|
|
426
|
+
.replace(/[^a-z0-9]+/g, "-")
|
|
427
|
+
.replace(/^-|-$/g, "");
|
|
428
|
+
|
|
429
|
+
const filePath = path.join(process.cwd(), `one/people/${filename}.md`);
|
|
430
|
+
|
|
431
|
+
// Create directory
|
|
432
|
+
await fs.mkdir(path.dirname(filePath), { recursive: true });
|
|
433
|
+
|
|
434
|
+
// Generate content
|
|
435
|
+
const content = `# ${profile.name}
|
|
436
|
+
|
|
437
|
+
**Role:** Organization Owner (\`org_owner\`)
|
|
438
|
+
**Email:** ${profile.email}
|
|
439
|
+
**Username:** ${profile.username}
|
|
440
|
+
${profile.website ? `**Website:** ${profile.website}\n` : ""}
|
|
441
|
+
---
|
|
442
|
+
|
|
443
|
+
## Identity
|
|
444
|
+
|
|
445
|
+
- **Name:** ${profile.name}
|
|
446
|
+
- **Email:** ${profile.email}
|
|
447
|
+
- **Username:** ${profile.username}
|
|
448
|
+
- **Role:** \`org_owner\`
|
|
449
|
+
${profile.website ? `- **Website:** ${profile.website}\n` : ""}
|
|
450
|
+
---
|
|
451
|
+
|
|
452
|
+
## The Person Entity
|
|
453
|
+
|
|
454
|
+
\`\`\`typescript
|
|
455
|
+
{
|
|
456
|
+
type: "creator",
|
|
457
|
+
name: "${profile.name}",
|
|
458
|
+
properties: {
|
|
459
|
+
role: "org_owner",
|
|
460
|
+
email: "${profile.email}",
|
|
461
|
+
username: "${profile.username}",
|
|
462
|
+
displayName: "${profile.name}",
|
|
463
|
+
bio: "Organization owner",
|
|
464
|
+
${profile.website ? `website: "${profile.website}",` : ""}
|
|
465
|
+
|
|
466
|
+
// Permissions
|
|
467
|
+
permissions: ["*"], // All permissions as org owner
|
|
468
|
+
|
|
469
|
+
// Organization context
|
|
470
|
+
organizationId: null, // Set when linked to organization
|
|
471
|
+
},
|
|
472
|
+
status: "active",
|
|
473
|
+
createdAt: Date.now(),
|
|
474
|
+
updatedAt: Date.now(),
|
|
475
|
+
}
|
|
476
|
+
\`\`\`
|
|
477
|
+
|
|
478
|
+
---
|
|
479
|
+
|
|
480
|
+
## Ownership Connections
|
|
481
|
+
|
|
482
|
+
### Owns Organization
|
|
483
|
+
\`${profile.username}\` ā \`org\` via \`owns\`
|
|
484
|
+
|
|
485
|
+
\`\`\`typescript
|
|
486
|
+
{
|
|
487
|
+
fromThingId: ${profile.username}Id,
|
|
488
|
+
toThingId: orgId,
|
|
489
|
+
relationshipType: "owns",
|
|
490
|
+
metadata: {
|
|
491
|
+
ownershipPercentage: 100,
|
|
492
|
+
since: "${new Date().toISOString().split("T")[0]}",
|
|
493
|
+
},
|
|
494
|
+
createdAt: Date.now(),
|
|
495
|
+
}
|
|
496
|
+
\`\`\`
|
|
497
|
+
|
|
498
|
+
### Member of Organization
|
|
499
|
+
\`${profile.username}\` ā \`org\` via \`member_of\`
|
|
500
|
+
|
|
501
|
+
\`\`\`typescript
|
|
502
|
+
{
|
|
503
|
+
fromThingId: ${profile.username}Id,
|
|
504
|
+
toThingId: orgId,
|
|
505
|
+
relationshipType: "member_of",
|
|
506
|
+
metadata: {
|
|
507
|
+
role: "org_owner",
|
|
508
|
+
permissions: ["*"], // All permissions
|
|
509
|
+
joinedAt: Date.now(),
|
|
510
|
+
},
|
|
511
|
+
createdAt: Date.now(),
|
|
512
|
+
}
|
|
513
|
+
\`\`\`
|
|
514
|
+
|
|
515
|
+
---
|
|
516
|
+
|
|
517
|
+
## Key Principles
|
|
518
|
+
|
|
519
|
+
- **Organization Owner** - Has full control over the organization
|
|
520
|
+
- **All Permissions** - \`permissions: ["*"]\` grants access to everything
|
|
521
|
+
- **Ontology Mapping** - Represented as a \`creator\` thing with role metadata
|
|
522
|
+
- **Connection-Based Access** - Access granted via \`member_of\` connection
|
|
523
|
+
|
|
524
|
+
---
|
|
525
|
+
|
|
526
|
+
## See Also
|
|
527
|
+
|
|
528
|
+
- [Organization Profile](../organisation/${filename}.md)
|
|
529
|
+
- [People Roles](./people.md)
|
|
530
|
+
- [Organizations](../organisation/organisation.md)
|
|
531
|
+
`;
|
|
532
|
+
|
|
533
|
+
// Write file
|
|
534
|
+
await fs.writeFile(filePath, content, "utf-8");
|
|
535
|
+
|
|
536
|
+
console.log(`ā Created ${filePath}`);
|
|
537
|
+
|
|
538
|
+
return filePath;
|
|
539
|
+
}
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
**Organization Profile:** `one/organisation/{name}.md`
|
|
543
|
+
|
|
544
|
+
```typescript
|
|
545
|
+
// cli/src/create-org-profile.ts
|
|
546
|
+
import fs from "fs/promises";
|
|
547
|
+
import path from "path";
|
|
548
|
+
|
|
549
|
+
interface OrgProfile {
|
|
550
|
+
name: string;
|
|
551
|
+
slug: string;
|
|
552
|
+
domain: string;
|
|
553
|
+
ownerName: string;
|
|
554
|
+
ownerUsername: string;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
export async function createOrgProfile(profile: OrgProfile) {
|
|
558
|
+
const filePath = path.join(
|
|
559
|
+
process.cwd(),
|
|
560
|
+
`one/organisation/${profile.slug}.md`
|
|
561
|
+
);
|
|
562
|
+
|
|
563
|
+
// Create directory
|
|
564
|
+
await fs.mkdir(path.dirname(filePath), { recursive: true });
|
|
565
|
+
|
|
566
|
+
// Generate content
|
|
567
|
+
const content = `# ${profile.name}
|
|
568
|
+
|
|
569
|
+
**Slug:** \`${profile.slug}\`
|
|
570
|
+
**Domain:** ${profile.domain}
|
|
571
|
+
**Owner:** ${profile.ownerName} (100%)
|
|
572
|
+
**Status:** Active
|
|
573
|
+
**Plan:** Enterprise
|
|
574
|
+
|
|
575
|
+
---
|
|
576
|
+
|
|
577
|
+
## Identity
|
|
578
|
+
|
|
579
|
+
- **Name:** ${profile.name}
|
|
580
|
+
- **Slug:** \`${profile.slug}\`
|
|
581
|
+
- **Domain:** ${profile.domain}
|
|
582
|
+
- **Owner:** ${profile.ownerName}
|
|
583
|
+
- **Status:** Active
|
|
584
|
+
- **Plan:** Enterprise
|
|
585
|
+
|
|
586
|
+
---
|
|
587
|
+
|
|
588
|
+
## The Organization Entity
|
|
589
|
+
|
|
590
|
+
\`\`\`typescript
|
|
591
|
+
{
|
|
592
|
+
type: "organization",
|
|
593
|
+
name: "${profile.name}",
|
|
594
|
+
properties: {
|
|
595
|
+
// Identity
|
|
596
|
+
slug: "${profile.slug}",
|
|
597
|
+
domain: "${profile.domain}",
|
|
598
|
+
description: "Organization created via ONE CLI",
|
|
599
|
+
|
|
600
|
+
// Status & Plan
|
|
601
|
+
status: "active",
|
|
602
|
+
plan: "enterprise",
|
|
603
|
+
|
|
604
|
+
// Limits & Usage
|
|
605
|
+
limits: {
|
|
606
|
+
users: 1000,
|
|
607
|
+
storage: 100000,
|
|
608
|
+
apiCalls: -1, // Unlimited
|
|
609
|
+
inferences: -1, // Unlimited
|
|
610
|
+
},
|
|
611
|
+
usage: {
|
|
612
|
+
users: 0,
|
|
613
|
+
storage: 0,
|
|
614
|
+
apiCalls: 0,
|
|
615
|
+
inferences: 0,
|
|
616
|
+
},
|
|
617
|
+
|
|
618
|
+
// Settings
|
|
619
|
+
settings: {
|
|
620
|
+
allowSignups: true,
|
|
621
|
+
requireEmailVerification: true,
|
|
622
|
+
enableTwoFactor: true,
|
|
623
|
+
inferenceEnabled: true,
|
|
624
|
+
},
|
|
625
|
+
|
|
626
|
+
// Public info
|
|
627
|
+
website: "https://${profile.domain}",
|
|
628
|
+
createdAt: Date.now(),
|
|
629
|
+
},
|
|
630
|
+
status: "active",
|
|
631
|
+
createdAt: Date.now(),
|
|
632
|
+
updatedAt: Date.now(),
|
|
633
|
+
}
|
|
634
|
+
\`\`\`
|
|
635
|
+
|
|
636
|
+
---
|
|
637
|
+
|
|
638
|
+
## Ownership Connections
|
|
639
|
+
|
|
640
|
+
### ${profile.ownerName} Owns ${profile.name}
|
|
641
|
+
\`${profile.ownerUsername}\` ā \`${profile.slug}\` via \`owns\`
|
|
642
|
+
|
|
643
|
+
\`\`\`typescript
|
|
644
|
+
{
|
|
645
|
+
fromThingId: ${profile.ownerUsername}Id,
|
|
646
|
+
toThingId: ${profile.slug}Id,
|
|
647
|
+
relationshipType: "owns",
|
|
648
|
+
metadata: {
|
|
649
|
+
ownershipPercentage: 100,
|
|
650
|
+
since: "${new Date().toISOString().split("T")[0]}",
|
|
651
|
+
},
|
|
652
|
+
createdAt: Date.now(),
|
|
653
|
+
}
|
|
654
|
+
\`\`\`
|
|
655
|
+
|
|
656
|
+
### ${profile.ownerName} is Member of ${profile.name}
|
|
657
|
+
\`${profile.ownerUsername}\` ā \`${profile.slug}\` via \`member_of\`
|
|
658
|
+
|
|
659
|
+
\`\`\`typescript
|
|
660
|
+
{
|
|
661
|
+
fromThingId: ${profile.ownerUsername}Id,
|
|
662
|
+
toThingId: ${profile.slug}Id,
|
|
663
|
+
relationshipType: "member_of",
|
|
664
|
+
metadata: {
|
|
665
|
+
role: "org_owner",
|
|
666
|
+
permissions: ["*"], // All permissions
|
|
667
|
+
joinedAt: Date.now(),
|
|
668
|
+
},
|
|
669
|
+
createdAt: Date.now(),
|
|
670
|
+
}
|
|
671
|
+
\`\`\`
|
|
672
|
+
|
|
673
|
+
---
|
|
674
|
+
|
|
675
|
+
## Key Principles
|
|
676
|
+
|
|
677
|
+
- **Multi-Tenant Isolation** - Organization partitions the data space
|
|
678
|
+
- **Owner Control** - ${profile.ownerName} has full control (100% ownership)
|
|
679
|
+
- **Enterprise Plan** - Unlimited resources for growth
|
|
680
|
+
- **Ontology Mapping** - Dimension 1 (Organizations) in the 6-dimension model
|
|
681
|
+
|
|
682
|
+
---
|
|
683
|
+
|
|
684
|
+
## See Also
|
|
685
|
+
|
|
686
|
+
- [Owner Profile](../people/${profile.ownerUsername}.md)
|
|
687
|
+
- [Organization Structure](./organisation.md)
|
|
688
|
+
- [Multi-Tenancy](../connections/multitenant.md)
|
|
689
|
+
`;
|
|
690
|
+
|
|
691
|
+
// Write file
|
|
692
|
+
await fs.writeFile(filePath, content, "utf-8");
|
|
693
|
+
|
|
694
|
+
console.log(`ā Created ${filePath}`);
|
|
695
|
+
|
|
696
|
+
return filePath;
|
|
697
|
+
}
|
|
698
|
+
```
|
|
699
|
+
|
|
700
|
+
---
|
|
701
|
+
|
|
702
|
+
### 4. Clone Frontend Repository
|
|
703
|
+
|
|
704
|
+
```typescript
|
|
705
|
+
// cli/src/clone-frontend.ts
|
|
706
|
+
import { exec } from "child_process";
|
|
707
|
+
import { promisify } from "util";
|
|
708
|
+
import fs from "fs/promises";
|
|
709
|
+
import path from "path";
|
|
710
|
+
|
|
711
|
+
const execAsync = promisify(exec);
|
|
712
|
+
|
|
713
|
+
export async function cloneFrontend(orgProfile: {
|
|
714
|
+
name: string;
|
|
715
|
+
slug: string;
|
|
716
|
+
domain: string;
|
|
717
|
+
}) {
|
|
718
|
+
const targetDir = path.join(process.cwd(), "frontend");
|
|
719
|
+
|
|
720
|
+
// Check if frontend already exists
|
|
721
|
+
if (await fs.stat(targetDir).catch(() => null)) {
|
|
722
|
+
console.log("ā ļø Frontend directory already exists, skipping clone");
|
|
723
|
+
return { alreadyExists: true };
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// Clone repository
|
|
727
|
+
console.log("Cloning frontend repository...");
|
|
728
|
+
await execAsync(
|
|
729
|
+
"git clone https://github.com/one-ie/frontend.git frontend",
|
|
730
|
+
{
|
|
731
|
+
cwd: process.cwd(),
|
|
732
|
+
}
|
|
733
|
+
);
|
|
734
|
+
|
|
735
|
+
console.log("ā Cloned frontend repository");
|
|
736
|
+
|
|
737
|
+
// Install dependencies
|
|
738
|
+
console.log("Installing dependencies...");
|
|
739
|
+
await execAsync("bun install", { cwd: targetDir });
|
|
740
|
+
console.log("ā Installed dependencies");
|
|
741
|
+
|
|
742
|
+
// Create .env.local with organization details
|
|
743
|
+
const envContent = `# ONE Platform Configuration
|
|
744
|
+
# Generated by CLI on ${new Date().toISOString()}
|
|
745
|
+
|
|
746
|
+
# Organization
|
|
747
|
+
PUBLIC_ORG_NAME="${orgProfile.name}"
|
|
748
|
+
PUBLIC_ORG_SLUG="${orgProfile.slug}"
|
|
749
|
+
PUBLIC_ORG_DOMAIN="${orgProfile.domain}"
|
|
750
|
+
|
|
751
|
+
# Convex Backend (update with your deployment)
|
|
752
|
+
PUBLIC_CONVEX_URL=https://your-deployment.convex.cloud
|
|
753
|
+
CONVEX_DEPLOYMENT=dev:your-deployment
|
|
754
|
+
|
|
755
|
+
# Better Auth
|
|
756
|
+
BETTER_AUTH_SECRET=
|
|
757
|
+
BETTER_AUTH_URL=http://localhost:4321
|
|
758
|
+
|
|
759
|
+
# OAuth (optional)
|
|
760
|
+
GITHUB_CLIENT_ID=
|
|
761
|
+
GITHUB_CLIENT_SECRET=
|
|
762
|
+
GOOGLE_CLIENT_ID=
|
|
763
|
+
GOOGLE_CLIENT_SECRET=
|
|
764
|
+
`;
|
|
765
|
+
|
|
766
|
+
await fs.writeFile(path.join(targetDir, ".env.local"), envContent, "utf-8");
|
|
767
|
+
console.log("ā Created .env.local");
|
|
768
|
+
|
|
769
|
+
return { cloned: true };
|
|
770
|
+
}
|
|
771
|
+
```
|
|
772
|
+
|
|
773
|
+
---
|
|
774
|
+
|
|
775
|
+
### 5. Clone Third-Party Documentation
|
|
776
|
+
|
|
777
|
+
```typescript
|
|
778
|
+
// cli/src/clone-docs.ts
|
|
779
|
+
import { exec } from "child_process";
|
|
780
|
+
import { promisify } from "util";
|
|
781
|
+
import fs from "fs/promises";
|
|
782
|
+
import path from "path";
|
|
783
|
+
|
|
784
|
+
const execAsync = promisify(exec);
|
|
785
|
+
|
|
786
|
+
interface DocRepo {
|
|
787
|
+
name: string;
|
|
788
|
+
repo: string;
|
|
789
|
+
branch?: string;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
const DOC_REPOS: DocRepo[] = [
|
|
793
|
+
{
|
|
794
|
+
name: "astro",
|
|
795
|
+
repo: "https://github.com/withastro/docs.git",
|
|
796
|
+
branch: "main",
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
name: "convex",
|
|
800
|
+
repo: "https://github.com/get-convex/convex-docs.git",
|
|
801
|
+
branch: "main",
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
name: "effect",
|
|
805
|
+
repo: "https://github.com/Effect-TS/website.git",
|
|
806
|
+
branch: "main",
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
name: "react",
|
|
810
|
+
repo: "https://github.com/reactjs/react.dev.git",
|
|
811
|
+
branch: "main",
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
name: "tailwind",
|
|
815
|
+
repo: "https://github.com/tailwindlabs/tailwindcss.com.git",
|
|
816
|
+
branch: "main",
|
|
817
|
+
},
|
|
818
|
+
];
|
|
819
|
+
|
|
820
|
+
export async function cloneThirdPartyDocs() {
|
|
821
|
+
const docsDir = path.join(process.cwd(), "docs");
|
|
822
|
+
|
|
823
|
+
// Create docs directory
|
|
824
|
+
await fs.mkdir(docsDir, { recursive: true });
|
|
825
|
+
|
|
826
|
+
const results = [];
|
|
827
|
+
|
|
828
|
+
for (const doc of DOC_REPOS) {
|
|
829
|
+
const targetDir = path.join(docsDir, doc.name);
|
|
830
|
+
|
|
831
|
+
// Check if already exists
|
|
832
|
+
if (await fs.stat(targetDir).catch(() => null)) {
|
|
833
|
+
console.log(`ā ļø ${doc.name} docs already exist, skipping`);
|
|
834
|
+
results.push({ name: doc.name, skipped: true });
|
|
835
|
+
continue;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
// Clone repository
|
|
839
|
+
const cloneCmd = doc.branch
|
|
840
|
+
? `git clone --depth 1 --branch ${doc.branch} ${doc.repo} ${doc.name}`
|
|
841
|
+
: `git clone --depth 1 ${doc.repo} ${doc.name}`;
|
|
842
|
+
|
|
843
|
+
try {
|
|
844
|
+
await execAsync(cloneCmd, { cwd: docsDir });
|
|
845
|
+
console.log(`ā ${doc.name} docs ā /docs/${doc.name}`);
|
|
846
|
+
results.push({ name: doc.name, cloned: true });
|
|
847
|
+
} catch (error) {
|
|
848
|
+
console.error(`ā Failed to clone ${doc.name}: ${error.message}`);
|
|
849
|
+
results.push({ name: doc.name, error: error.message });
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
return results;
|
|
854
|
+
}
|
|
855
|
+
```
|
|
856
|
+
|
|
857
|
+
---
|
|
858
|
+
|
|
859
|
+
## CLI Entry Point
|
|
860
|
+
|
|
861
|
+
**File:** `cli/src/index.ts`
|
|
862
|
+
|
|
863
|
+
```typescript
|
|
864
|
+
#!/usr/bin/env node
|
|
865
|
+
import prompts from "prompts";
|
|
866
|
+
import chalk from "chalk";
|
|
867
|
+
import ora from "ora";
|
|
868
|
+
import { syncOntologyFiles } from "./sync-ontology";
|
|
869
|
+
import { syncAgentDefinitions } from "./sync-agents";
|
|
870
|
+
import { copyClaudeConfig } from "./copy-claude-config";
|
|
871
|
+
import { createUserProfile } from "./create-user-profile";
|
|
872
|
+
import { createOrgProfile } from "./create-org-profile";
|
|
873
|
+
import { cloneFrontend } from "./clone-frontend";
|
|
874
|
+
import { cloneThirdPartyDocs } from "./clone-docs";
|
|
875
|
+
import { displayBanner } from "./banner";
|
|
876
|
+
|
|
877
|
+
async function main() {
|
|
878
|
+
// Display welcome banner
|
|
879
|
+
displayBanner();
|
|
880
|
+
|
|
881
|
+
console.log(chalk.cyan("\n⨠Welcome to ONE Platform!\n"));
|
|
882
|
+
console.log(
|
|
883
|
+
"Let's set up your environment with the 6-dimension ontology.\n"
|
|
884
|
+
);
|
|
885
|
+
|
|
886
|
+
// Step 1: User profile
|
|
887
|
+
console.log(chalk.bold("š§ Step 1: Tell us about yourself\n"));
|
|
888
|
+
|
|
889
|
+
const userAnswers = await prompts([
|
|
890
|
+
{
|
|
891
|
+
type: "text",
|
|
892
|
+
name: "name",
|
|
893
|
+
message: "What's your name?",
|
|
894
|
+
validate: (value) =>
|
|
895
|
+
value.length > 0 ? true : "Name cannot be empty",
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
type: "text",
|
|
899
|
+
name: "email",
|
|
900
|
+
message: "What's your email address?",
|
|
901
|
+
validate: (value) =>
|
|
902
|
+
value.includes("@") ? true : "Please enter a valid email",
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
type: "text",
|
|
906
|
+
name: "username",
|
|
907
|
+
message: "What username would you like?",
|
|
908
|
+
validate: (value) =>
|
|
909
|
+
/^[a-z0-9_-]+$/.test(value)
|
|
910
|
+
? true
|
|
911
|
+
: "Username must be lowercase letters, numbers, hyphens, or underscores",
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
type: "text",
|
|
915
|
+
name: "website",
|
|
916
|
+
message: "What's your website URL? (optional)",
|
|
917
|
+
initial: "",
|
|
918
|
+
},
|
|
919
|
+
]);
|
|
920
|
+
|
|
921
|
+
// Step 2: Organization profile
|
|
922
|
+
console.log(chalk.bold("\nš¢ Step 2: Organization Setup\n"));
|
|
923
|
+
|
|
924
|
+
const orgAnswers = await prompts([
|
|
925
|
+
{
|
|
926
|
+
type: "text",
|
|
927
|
+
name: "name",
|
|
928
|
+
message: "What's your organization name?",
|
|
929
|
+
validate: (value) =>
|
|
930
|
+
value.length > 0 ? true : "Organization name cannot be empty",
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
type: "text",
|
|
934
|
+
name: "slug",
|
|
935
|
+
message: "Organization slug (URL-friendly)?",
|
|
936
|
+
validate: (value) =>
|
|
937
|
+
/^[a-z0-9-]+$/.test(value)
|
|
938
|
+
? true
|
|
939
|
+
: "Slug must be lowercase letters, numbers, and hyphens",
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
type: "text",
|
|
943
|
+
name: "domain",
|
|
944
|
+
message: "Organization domain?",
|
|
945
|
+
validate: (value) =>
|
|
946
|
+
value.includes(".") ? true : "Please enter a valid domain",
|
|
947
|
+
},
|
|
948
|
+
]);
|
|
949
|
+
|
|
950
|
+
// Step 3: Sync ontology
|
|
951
|
+
console.log(chalk.bold("\nš Step 3: Syncing ONE Ontology\n"));
|
|
952
|
+
|
|
953
|
+
let spinner = ora("Copying ontology files from /one/*...").start();
|
|
954
|
+
const ontologyResult = await syncOntologyFiles();
|
|
955
|
+
spinner.succeed(`Copied ${ontologyResult.filesCopied} ontology files`);
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
spinner = ora("Syncing agent definitions...").start();
|
|
959
|
+
const agentsResult = await syncAgentDefinitions();
|
|
960
|
+
spinner.succeed(
|
|
961
|
+
`Synced ${agentsResult.agentsSynced} agent definitions to .claude/agents/`
|
|
962
|
+
);
|
|
963
|
+
|
|
964
|
+
spinner = ora("Copying Claude Code configuration...").start();
|
|
965
|
+
await copyClaudeConfig();
|
|
966
|
+
spinner.succeed("Synced .claude/hooks/ and .claude/commands/");
|
|
967
|
+
|
|
968
|
+
// Step 4: Create profiles
|
|
969
|
+
console.log(chalk.bold("\nCreating your profile...\n"));
|
|
970
|
+
|
|
971
|
+
spinner = ora("Creating user profile...").start();
|
|
972
|
+
const userProfilePath = await createUserProfile({
|
|
973
|
+
name: userAnswers.name,
|
|
974
|
+
email: userAnswers.email,
|
|
975
|
+
username: userAnswers.username,
|
|
976
|
+
website: userAnswers.website || undefined,
|
|
977
|
+
});
|
|
978
|
+
spinner.succeed(`Created ${userProfilePath}`);
|
|
979
|
+
|
|
980
|
+
spinner = ora("Creating organization profile...").start();
|
|
981
|
+
const orgProfilePath = await createOrgProfile({
|
|
982
|
+
name: orgAnswers.name,
|
|
983
|
+
slug: orgAnswers.slug,
|
|
984
|
+
domain: orgAnswers.domain,
|
|
985
|
+
ownerName: userAnswers.name,
|
|
986
|
+
ownerUsername: userAnswers.username,
|
|
987
|
+
});
|
|
988
|
+
spinner.succeed(`Created ${orgProfilePath}`);
|
|
989
|
+
|
|
990
|
+
spinner = ora("Linking user to organization...").start();
|
|
991
|
+
spinner.succeed(
|
|
992
|
+
`Linked ${userAnswers.username} ā owns ā ${orgAnswers.name}`
|
|
993
|
+
);
|
|
994
|
+
spinner.succeed(
|
|
995
|
+
`Linked ${userAnswers.username} ā member_of ā ${orgAnswers.name} (role: org_owner)`
|
|
996
|
+
);
|
|
997
|
+
|
|
998
|
+
// Step 5: Website setup (optional)
|
|
999
|
+
console.log(chalk.bold("\nš Step 4: Website Setup\n"));
|
|
1000
|
+
|
|
1001
|
+
const { buildWebsite } = await prompts({
|
|
1002
|
+
type: "confirm",
|
|
1003
|
+
name: "buildWebsite",
|
|
1004
|
+
message: "Would you like to build a website?",
|
|
1005
|
+
initial: true,
|
|
1006
|
+
});
|
|
1007
|
+
|
|
1008
|
+
if (buildWebsite) {
|
|
1009
|
+
spinner = ora("Cloning frontend repository...").start();
|
|
1010
|
+
const frontendResult = await cloneFrontend({
|
|
1011
|
+
name: orgAnswers.name,
|
|
1012
|
+
slug: orgAnswers.slug,
|
|
1013
|
+
domain: orgAnswers.domain,
|
|
1014
|
+
});
|
|
1015
|
+
|
|
1016
|
+
if (frontendResult.alreadyExists) {
|
|
1017
|
+
spinner.warn("Frontend directory already exists");
|
|
1018
|
+
} else {
|
|
1019
|
+
spinner.succeed("Cloned and configured frontend");
|
|
1020
|
+
console.log(
|
|
1021
|
+
chalk.gray("\nYour website is ready at: http://localhost:4321")
|
|
1022
|
+
);
|
|
1023
|
+
console.log(chalk.gray("Run: cd frontend && bun run dev\n"));
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
// Step 6: Third-party docs (optional)
|
|
1028
|
+
console.log(chalk.bold("\nš Step 5: Third-Party Documentation\n"));
|
|
1029
|
+
|
|
1030
|
+
const { cloneDocs } = await prompts({
|
|
1031
|
+
type: "confirm",
|
|
1032
|
+
name: "cloneDocs",
|
|
1033
|
+
message: "Would you like to clone third-party docs for AI context?",
|
|
1034
|
+
initial: true,
|
|
1035
|
+
});
|
|
1036
|
+
|
|
1037
|
+
if (cloneDocs) {
|
|
1038
|
+
spinner = ora("Cloning documentation repositories...").start();
|
|
1039
|
+
const docsResults = await cloneThirdPartyDocs();
|
|
1040
|
+
const clonedCount = docsResults.filter((r) => r.cloned).length;
|
|
1041
|
+
spinner.succeed(`Cloned ${clonedCount} documentation repositories`);
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
// Step 7: Complete
|
|
1045
|
+
console.log(chalk.bold.green("\nā
Setup Complete!\n"));
|
|
1046
|
+
|
|
1047
|
+
console.log(chalk.bold("Your ONE environment is ready:\n"));
|
|
1048
|
+
|
|
1049
|
+
console.log(chalk.cyan("š Project Structure:"));
|
|
1050
|
+
console.log(" /one/ ā 6-dimension ontology (100+ files)");
|
|
1051
|
+
if (buildWebsite) {
|
|
1052
|
+
console.log(" /frontend/ ā Astro + React website");
|
|
1053
|
+
}
|
|
1054
|
+
if (cloneDocs) {
|
|
1055
|
+
console.log(" /docs/ ā Third-party documentation");
|
|
1056
|
+
}
|
|
1057
|
+
console.log(" /.claude/ ā AI agent integration");
|
|
1058
|
+
console.log(" /cli/ ā CLI configuration\n");
|
|
1059
|
+
|
|
1060
|
+
console.log(chalk.cyan("š§ Your Profile:"));
|
|
1061
|
+
console.log(` Name: ${userAnswers.name}`);
|
|
1062
|
+
console.log(` Email: ${userAnswers.email}`);
|
|
1063
|
+
console.log(` Username: ${userAnswers.username}`);
|
|
1064
|
+
console.log(` Role: org_owner`);
|
|
1065
|
+
console.log(` File: ${userProfilePath}\n`);
|
|
1066
|
+
|
|
1067
|
+
console.log(chalk.cyan("š¢ Your Organization:"));
|
|
1068
|
+
console.log(` Name: ${orgAnswers.name}`);
|
|
1069
|
+
console.log(` Slug: ${orgAnswers.slug}`);
|
|
1070
|
+
console.log(` Domain: ${orgAnswers.domain}`);
|
|
1071
|
+
console.log(` File: ${orgProfilePath}\n`);
|
|
1072
|
+
|
|
1073
|
+
console.log(chalk.bold("š Next Steps:\n"));
|
|
1074
|
+
if (buildWebsite) {
|
|
1075
|
+
console.log("1. Start building:");
|
|
1076
|
+
console.log(chalk.gray(" cd frontend && bun run dev\n"));
|
|
1077
|
+
}
|
|
1078
|
+
console.log("2. Use AI agents:");
|
|
1079
|
+
console.log(chalk.gray(" claude\n"));
|
|
1080
|
+
console.log("3. Read the docs:");
|
|
1081
|
+
console.log(chalk.gray(" cat one/knowledge/ontology.md\n"));
|
|
1082
|
+
console.log("4. Create your first feature:");
|
|
1083
|
+
console.log(chalk.gray(" /one\n"));
|
|
1084
|
+
|
|
1085
|
+
console.log(chalk.bold.green("Happy building! š\n"));
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
main().catch((error) => {
|
|
1089
|
+
console.error(chalk.red("\nā Error:"), error.message);
|
|
1090
|
+
process.exit(1);
|
|
1091
|
+
});
|
|
1092
|
+
```
|
|
1093
|
+
|
|
1094
|
+
---
|
|
1095
|
+
|
|
1096
|
+
## Package Configuration
|
|
1097
|
+
|
|
1098
|
+
**File:** `cli/package.json`
|
|
1099
|
+
|
|
1100
|
+
```json
|
|
1101
|
+
{
|
|
1102
|
+
"name": "oneie",
|
|
1103
|
+
"version": "2.0.0",
|
|
1104
|
+
"description": "ONE CLI - Bootstrap & Ontology Sync",
|
|
1105
|
+
"bin": {
|
|
1106
|
+
"oneie": "./dist/index.js"
|
|
1107
|
+
},
|
|
1108
|
+
"scripts": {
|
|
1109
|
+
"build": "tsc",
|
|
1110
|
+
"dev": "tsc --watch",
|
|
1111
|
+
"prepublishOnly": "npm run build"
|
|
1112
|
+
},
|
|
1113
|
+
"keywords": [
|
|
1114
|
+
"one",
|
|
1115
|
+
"ontology",
|
|
1116
|
+
"cli",
|
|
1117
|
+
"bootstrap",
|
|
1118
|
+
"6-dimension"
|
|
1119
|
+
],
|
|
1120
|
+
"author": "Anthony O'Connell <anthony@one.ie>",
|
|
1121
|
+
"license": "MIT",
|
|
1122
|
+
"dependencies": {
|
|
1123
|
+
"prompts": "^2.4.2",
|
|
1124
|
+
"chalk": "^5.3.0",
|
|
1125
|
+
"ora": "^8.0.1",
|
|
1126
|
+
"yaml": "^2.3.4",
|
|
1127
|
+
"glob": "^10.3.10"
|
|
1128
|
+
},
|
|
1129
|
+
"devDependencies": {
|
|
1130
|
+
"@types/node": "^20.11.0",
|
|
1131
|
+
"@types/prompts": "^2.4.9",
|
|
1132
|
+
"typescript": "^5.3.3"
|
|
1133
|
+
},
|
|
1134
|
+
"files": [
|
|
1135
|
+
"dist",
|
|
1136
|
+
"README.md"
|
|
1137
|
+
]
|
|
1138
|
+
}
|
|
1139
|
+
```
|
|
1140
|
+
|
|
1141
|
+
---
|
|
1142
|
+
|
|
1143
|
+
## Testing
|
|
1144
|
+
|
|
1145
|
+
### Manual Test Plan
|
|
1146
|
+
|
|
1147
|
+
1. **Test ontology sync:**
|
|
1148
|
+
```bash
|
|
1149
|
+
npx oneie
|
|
1150
|
+
# Verify all /one/* files copied
|
|
1151
|
+
# Verify folders.yaml updated
|
|
1152
|
+
```
|
|
1153
|
+
|
|
1154
|
+
2. **Test agent sync:**
|
|
1155
|
+
```bash
|
|
1156
|
+
ls .claude/agents/
|
|
1157
|
+
# Should see: agent-director.md, agent-backend.md, etc.
|
|
1158
|
+
```
|
|
1159
|
+
|
|
1160
|
+
3. **Test user profile creation:**
|
|
1161
|
+
```bash
|
|
1162
|
+
cat one/people/anthony-o-connell.md
|
|
1163
|
+
# Verify correct formatting and connections
|
|
1164
|
+
```
|
|
1165
|
+
|
|
1166
|
+
4. **Test org profile creation:**
|
|
1167
|
+
```bash
|
|
1168
|
+
cat one/organisation/one.md
|
|
1169
|
+
# Verify correct formatting and connections
|
|
1170
|
+
```
|
|
1171
|
+
|
|
1172
|
+
5. **Test frontend clone:**
|
|
1173
|
+
```bash
|
|
1174
|
+
cd frontend && bun run dev
|
|
1175
|
+
# Should start on localhost:4321
|
|
1176
|
+
```
|
|
1177
|
+
|
|
1178
|
+
6. **Test docs clone:**
|
|
1179
|
+
```bash
|
|
1180
|
+
ls docs/
|
|
1181
|
+
# Should see: astro/, convex/, effect/, react/, tailwind/
|
|
1182
|
+
```
|
|
1183
|
+
|
|
1184
|
+
---
|
|
1185
|
+
|
|
1186
|
+
## Success Metrics
|
|
1187
|
+
|
|
1188
|
+
- ā
All 100+ ontology files copied from `/one/*`
|
|
1189
|
+
- ā
`cli/folders.yaml` auto-updated with discovered paths
|
|
1190
|
+
- ā
12 agent definitions synced to `.claude/agents/`
|
|
1191
|
+
- ā
User profile created with correct ontology mapping
|
|
1192
|
+
- ā
Organization profile created with ownership connections
|
|
1193
|
+
- ā
Frontend cloned and configured with org details
|
|
1194
|
+
- ā
Third-party docs cloned for offline AI context
|
|
1195
|
+
- ā
Complete setup in < 5 minutes
|
|
1196
|
+
|
|
1197
|
+
---
|
|
1198
|
+
|
|
1199
|
+
## Future Enhancements
|
|
1200
|
+
|
|
1201
|
+
### Phase 2: Incremental Sync
|
|
1202
|
+
|
|
1203
|
+
```bash
|
|
1204
|
+
npx oneie sync
|
|
1205
|
+
# Sync only changed files from upstream
|
|
1206
|
+
```
|
|
1207
|
+
|
|
1208
|
+
### Phase 3: Multi-User Support
|
|
1209
|
+
|
|
1210
|
+
```bash
|
|
1211
|
+
npx oneie add-user
|
|
1212
|
+
# Add additional users to existing organization
|
|
1213
|
+
```
|
|
1214
|
+
|
|
1215
|
+
### Phase 4: Template Selection
|
|
1216
|
+
|
|
1217
|
+
```bash
|
|
1218
|
+
npx oneie create --template=creator-platform
|
|
1219
|
+
npx oneie create --template=saas
|
|
1220
|
+
npx oneie create --template=marketplace
|
|
1221
|
+
```
|
|
1222
|
+
|
|
1223
|
+
---
|
|
1224
|
+
|
|
1225
|
+
## Related Documentation
|
|
1226
|
+
|
|
1227
|
+
- [CLI Overview](../cli.md) - Complete CLI architecture
|
|
1228
|
+
- [Ontology](../../knowledge/ontology.md) - 6-dimension ontology
|
|
1229
|
+
- [People](../../people/people.md) - People & roles
|
|
1230
|
+
- [Organizations](../../organisation/organisation.md) - Organization structure
|
|
1231
|
+
- [Agents](../agents/agent-director.md) - AI agent definitions
|
|
1232
|
+
|
|
1233
|
+
---
|
|
1234
|
+
|
|
1235
|
+
**This is the ONE CLI. Simple, powerful, ontology-driven.**
|