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
|
@@ -1,419 +1,50 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: Task(agent-ops:*)
|
|
3
|
-
description:
|
|
3
|
+
description: Release CLI to npm
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# /release -
|
|
6
|
+
# /release - Release CLI to npm
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Release the CLI to npm registry.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## Usage
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
1.
|
|
16
|
-
|
|
17
|
-
3. File synchronization
|
|
18
|
-
4. Git operations
|
|
19
|
-
5. npm publishing
|
|
20
|
-
6. Cloudflare deployments (using CLOUDFLARE_GLOBAL_API_KEY)
|
|
21
|
-
7. Verification and reporting
|
|
22
|
-
|
|
23
|
-
## Two-Site Architecture
|
|
24
|
-
|
|
25
|
-
**CRITICAL:** ONE Platform uses a two-site architecture:
|
|
26
|
-
|
|
27
|
-
- **oneie/** - Production site (source of truth) deployed to https://one.ie
|
|
28
|
-
- **web/** - Starter template (AUTO-GENERATED) distributed via `npx oneie`
|
|
29
|
-
|
|
30
|
-
**Golden Rule:** NEVER edit web/ directly. It is generated from oneie/ via transform script.
|
|
31
|
-
|
|
32
|
-
**Workflow:**
|
|
33
|
-
```
|
|
34
|
-
oneie/ (edit here)
|
|
35
|
-
↓
|
|
36
|
-
bun run build:starter (generates)
|
|
37
|
-
↓
|
|
38
|
-
web/ (never edit)
|
|
12
|
+
```bash
|
|
13
|
+
/release patch # Bug fix (1.0.0 → 1.0.1)
|
|
14
|
+
/release minor # New feature (1.0.0 → 1.1.0)
|
|
15
|
+
/release major # Breaking change (1.0.0 → 2.0.0)
|
|
16
|
+
/release sync # Sync files without version bump
|
|
39
17
|
```
|
|
40
18
|
|
|
41
|
-
##
|
|
19
|
+
## What It Does
|
|
20
|
+
|
|
21
|
+
Runs `/Users/toc/Server/ONE/scripts/release-cli.sh [type]` which:
|
|
42
22
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
23
|
+
1. Syncs `.claude/*` to `cli/.claude/`
|
|
24
|
+
2. Syncs `/one/*` to `cli/one/`
|
|
25
|
+
3. Syncs root markdown files (CLAUDE.md, README.md, etc.)
|
|
26
|
+
4. Bumps version in `cli/package.json` (if not sync)
|
|
27
|
+
5. Builds the CLI
|
|
28
|
+
6. Publishes to npm registry
|
|
47
29
|
|
|
48
30
|
## Your Task
|
|
49
31
|
|
|
50
|
-
|
|
32
|
+
Delegate to agent-ops to run the script:
|
|
51
33
|
|
|
52
34
|
```typescript
|
|
53
35
|
Task({
|
|
54
36
|
subagent_type: "agent-ops",
|
|
55
|
-
description: "
|
|
56
|
-
prompt: `
|
|
37
|
+
description: "Release CLI to npm",
|
|
38
|
+
prompt: `Run: /Users/toc/Server/ONE/scripts/release-cli.sh ${releaseType}
|
|
57
39
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
3. Publish to npm: cd cli && npm publish --access public
|
|
61
|
-
4. Verify deployment:
|
|
62
|
-
- npm: npx oneie@latest --version
|
|
63
|
-
- Web: Check Cloudflare deployment URL
|
|
64
|
-
- GitHub: Verify tags created
|
|
65
|
-
5. Report summary with all live URLs
|
|
66
|
-
|
|
67
|
-
IMPORTANT: The CLOUDFLARE_GLOBAL_API_KEY is set in .env and provides FULL ACCESS to Cloudflare API for automated deployments.`
|
|
68
|
-
})
|
|
40
|
+
Wait for completion and report success with the new version.`,
|
|
41
|
+
});
|
|
69
42
|
```
|
|
70
43
|
|
|
71
|
-
##
|
|
72
|
-
|
|
73
|
-
### Step 1: Pre-Deployment Validation
|
|
74
|
-
1. Run `./scripts/pre-deployment-check.sh`
|
|
75
|
-
2. Verify all checks pass (0 errors)
|
|
76
|
-
3. If errors found, report to user and STOP
|
|
77
|
-
4. If warnings only, continue
|
|
44
|
+
## After Release
|
|
78
45
|
|
|
79
|
-
|
|
80
|
-
1. Generate web/ from oneie/ source:
|
|
81
|
-
```bash
|
|
82
|
-
cd oneie
|
|
83
|
-
bun run build:starter
|
|
84
|
-
```
|
|
85
|
-
2. This runs `scripts/generate-starter.sh` which:
|
|
86
|
-
- Copies all files from oneie/ to web/
|
|
87
|
-
- Replaces homepage with simple 3-option template chooser
|
|
88
|
-
- Simplifies Sidebar.tsx to 2 navigation items (Stream, License)
|
|
89
|
-
- Reduces blog content to 1 example post
|
|
90
|
-
- Reduces products to 3 examples
|
|
91
|
-
- Updates package.json name to "oneie-starter"
|
|
92
|
-
- Creates AUTO-GENERATED warning in README.md
|
|
93
|
-
3. Commit generated web/ changes
|
|
46
|
+
Install the new version:
|
|
94
47
|
|
|
95
|
-
### Step 3: Version Bump & Sync
|
|
96
|
-
1. Run `./scripts/release.sh [patch|minor|major]`
|
|
97
|
-
2. This will:
|
|
98
|
-
- Bump version in cli/package.json
|
|
99
|
-
- Sync 518+ files to distribution repos:
|
|
100
|
-
- `/one/*` → `cli/one/` and `apps/one/one/`
|
|
101
|
-
- `/.claude/*` → `cli/.claude/` and `apps/one/one/.claude/`
|
|
102
|
-
- `/oneie/*` → `apps/oneie/` (production site)
|
|
103
|
-
- `/web/*` → `apps/one/web/` (starter template)
|
|
104
|
-
- `CLAUDE.md`, `README.md`, `LICENSE.md`, `SECURITY.md` → all targets
|
|
105
|
-
- `oneie/AGENTS.md` → `apps/one/one/AGENTS.md`
|
|
106
|
-
- **AUTOMATICALLY** commit and push to GitHub repos:
|
|
107
|
-
- oneie/ → github.com/one-ie/oneie
|
|
108
|
-
- web/ → github.com/one-ie/web
|
|
109
|
-
- Show git status for review
|
|
110
|
-
3. When prompted for cli/ "Commit and push?", answer 'y'
|
|
111
|
-
4. When prompted "Create tag?", answer 'y'
|
|
112
|
-
|
|
113
|
-
### Step 4: npm Publish
|
|
114
|
-
1. `cd cli`
|
|
115
|
-
2. Run `npm publish --access public`
|
|
116
|
-
3. Wait for completion
|
|
117
|
-
4. Verify: `npm view oneie version`
|
|
118
|
-
5. Report new version to user
|
|
119
|
-
|
|
120
|
-
### Step 5: Build & Deploy to Cloudflare
|
|
121
|
-
|
|
122
|
-
**Two-Site Architecture:**
|
|
123
|
-
- **oneie/** → https://one.ie (Wrangler project: oneie) - Full production site
|
|
124
|
-
- **web/** → https://web.one.ie (Wrangler project: web) - Starter template
|
|
125
|
-
|
|
126
|
-
**Deployment Process:**
|
|
127
|
-
|
|
128
|
-
1. **Deploy Production Site (oneie/):**
|
|
129
|
-
```bash
|
|
130
|
-
cd oneie
|
|
131
|
-
bun run build
|
|
132
|
-
wrangler pages deploy dist --project-name=oneie
|
|
133
|
-
# Deployed to: https://one.ie
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
2. **Deploy Starter Template (web/):**
|
|
137
|
-
```bash
|
|
138
|
-
cd web
|
|
139
|
-
bun run build
|
|
140
|
-
wrangler pages deploy dist --project-name=web
|
|
141
|
-
# Deployed to: https://web.one.ie
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
**Automatic Mode (if CLOUDFLARE_GLOBAL_API_KEY is set):**
|
|
145
|
-
- Scripts automatically use global API key from `.env`
|
|
146
|
-
- Deploys via Cloudflare API without confirmation
|
|
147
|
-
- Shows deployment status and URLs
|
|
148
|
-
- **Zero manual intervention needed**
|
|
149
|
-
|
|
150
|
-
**Standalone Deployment:**
|
|
151
48
|
```bash
|
|
152
|
-
|
|
153
|
-
scripts/cloudflare-deploy.sh deploy oneie oneie/dist production
|
|
154
|
-
|
|
155
|
-
# Deploy starter template (web)
|
|
156
|
-
scripts/cloudflare-deploy.sh deploy web web/dist production
|
|
157
|
-
|
|
158
|
-
# Check deployment status
|
|
159
|
-
scripts/cloudflare-deploy.sh status oneie
|
|
160
|
-
scripts/cloudflare-deploy.sh status web
|
|
161
|
-
|
|
162
|
-
# List recent deployments
|
|
163
|
-
scripts/cloudflare-deploy.sh list oneie 5
|
|
164
|
-
scripts/cloudflare-deploy.sh list web 5
|
|
49
|
+
npx oneie@latest --version
|
|
165
50
|
```
|
|
166
|
-
|
|
167
|
-
### Step 6: Verification
|
|
168
|
-
1. Test npm package: `npx oneie@latest --version`
|
|
169
|
-
2. Report all live URLs:
|
|
170
|
-
- npm: https://www.npmjs.com/package/oneie
|
|
171
|
-
- Production Site: https://one.ie
|
|
172
|
-
- Starter Template: https://web.one.ie
|
|
173
|
-
- GitHub oneie: https://github.com/one-ie/oneie
|
|
174
|
-
- GitHub web: https://github.com/one-ie/web
|
|
175
|
-
- GitHub CLI: https://github.com/one-ie/cli
|
|
176
|
-
|
|
177
|
-
### Step 7: Summary Report
|
|
178
|
-
Provide a concise summary:
|
|
179
|
-
```
|
|
180
|
-
✅ Release v2.0.X Complete!
|
|
181
|
-
|
|
182
|
-
📦 npm: oneie@2.0.X (live)
|
|
183
|
-
🌐 Production: https://one.ie (deployed)
|
|
184
|
-
🎁 Starter: https://web.one.ie (deployed)
|
|
185
|
-
🏷️ GitHub: v2.0.X tagged
|
|
186
|
-
⏱️ Total time: ~X minutes
|
|
187
|
-
|
|
188
|
-
Architecture:
|
|
189
|
-
- oneie/ → one.ie (full production site)
|
|
190
|
-
- web/ → web.one.ie (auto-generated starter)
|
|
191
|
-
|
|
192
|
-
Next steps:
|
|
193
|
-
- Create GitHub releases
|
|
194
|
-
- Test installation: npx oneie@latest
|
|
195
|
-
- Test starter template: npx oneie init my-project
|
|
196
|
-
- Monitor for errors
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
## Important Notes
|
|
200
|
-
|
|
201
|
-
**You MUST:**
|
|
202
|
-
- ✅ Run pre-deployment checks first
|
|
203
|
-
- ✅ Stop if critical errors found
|
|
204
|
-
- ✅ Build web before deploying
|
|
205
|
-
- ✅ Verify npm publish succeeded
|
|
206
|
-
- ✅ Capture and report all URLs
|
|
207
|
-
- ✅ Provide clear success/failure status
|
|
208
|
-
|
|
209
|
-
**You MUST NOT:**
|
|
210
|
-
- ❌ Skip pre-deployment validation
|
|
211
|
-
- ❌ Deploy without building first
|
|
212
|
-
- ❌ Continue if npm publish fails
|
|
213
|
-
- ❌ Forget to report deployment URLs
|
|
214
|
-
|
|
215
|
-
## Error Handling
|
|
216
|
-
|
|
217
|
-
### If pre-deployment check fails:
|
|
218
|
-
1. Report specific errors to user
|
|
219
|
-
2. Suggest fixes
|
|
220
|
-
3. STOP - do not proceed
|
|
221
|
-
|
|
222
|
-
### If npm publish fails:
|
|
223
|
-
1. Check if already published: `npm view oneie@X.X.X`
|
|
224
|
-
2. If version exists, bump patch and retry
|
|
225
|
-
3. Report to user
|
|
226
|
-
|
|
227
|
-
### If Cloudflare deploy fails:
|
|
228
|
-
1. Check if build succeeded
|
|
229
|
-
2. Report wrangler error
|
|
230
|
-
3. Suggest: Check environment variables
|
|
231
|
-
4. Continue (deployment can be done separately)
|
|
232
|
-
|
|
233
|
-
## When to Use
|
|
234
|
-
|
|
235
|
-
Use `/release` when you want to:
|
|
236
|
-
- ✅ Deploy a new version to production
|
|
237
|
-
- ✅ Publish CLI updates to npm
|
|
238
|
-
- ✅ Update web frontend on Cloudflare
|
|
239
|
-
- ✅ Create git tags for version
|
|
240
|
-
- ✅ Execute full release pipeline
|
|
241
|
-
|
|
242
|
-
## When NOT to Use
|
|
243
|
-
|
|
244
|
-
Do NOT use `/release` if:
|
|
245
|
-
- ❌ You're still developing/testing
|
|
246
|
-
- ❌ There are failing tests
|
|
247
|
-
- ❌ You haven't committed changes
|
|
248
|
-
- ❌ You're not ready for production
|
|
249
|
-
|
|
250
|
-
**Instead:** Use individual commands like `/push-cli` or test locally first.
|
|
251
|
-
|
|
252
|
-
## Example Usage
|
|
253
|
-
|
|
254
|
-
**User:** `/release patch`
|
|
255
|
-
|
|
256
|
-
**Claude:**
|
|
257
|
-
1. Runs pre-deployment check
|
|
258
|
-
2. Validates (0 errors, 7 warnings)
|
|
259
|
-
3. Runs release.sh patch
|
|
260
|
-
4. Bumps version 2.0.6 → 2.0.7
|
|
261
|
-
5. Syncs 552 files
|
|
262
|
-
6. Commits and pushes to GitHub
|
|
263
|
-
7. Publishes to npm
|
|
264
|
-
8. Builds web
|
|
265
|
-
9. Deploys to Cloudflare
|
|
266
|
-
10. Reports success with all URLs
|
|
267
|
-
|
|
268
|
-
## Prerequisites
|
|
269
|
-
|
|
270
|
-
Before running `/release`, ensure:
|
|
271
|
-
- ✅ You're in the ONE root directory
|
|
272
|
-
- ✅ All changes are committed (or acceptable)
|
|
273
|
-
- ✅ You're logged in to npm (`npm whoami`)
|
|
274
|
-
- ✅ Wrangler is authenticated
|
|
275
|
-
- ✅ Release scripts exist in `scripts/`
|
|
276
|
-
|
|
277
|
-
**For Automated Cloudflare Deployment:**
|
|
278
|
-
|
|
279
|
-
**Option 1: Global API Key (FULL ACCESS - Recommended for automated deployments):**
|
|
280
|
-
- ✅ Set `CLOUDFLARE_GLOBAL_API_KEY` in root `.env`
|
|
281
|
-
- ✅ Set `CLOUDFLARE_ACCOUNT_ID` in root `.env`
|
|
282
|
-
- ✅ Set `CLOUDFLARE_EMAIL` in root `.env`
|
|
283
|
-
- ✅ Provides complete programmatic access to Cloudflare API
|
|
284
|
-
- ✅ Zero manual intervention needed
|
|
285
|
-
|
|
286
|
-
**Option 2: API Token (Scoped access):**
|
|
287
|
-
- ✅ Set `CLOUDFLARE_API_TOKEN` environment variable
|
|
288
|
-
- ✅ Set `CLOUDFLARE_ACCOUNT_ID` environment variable
|
|
289
|
-
|
|
290
|
-
**Without these credentials:**
|
|
291
|
-
- The script falls back to interactive wrangler CLI deployment
|
|
292
|
-
- Still fully functional, just requires manual confirmation
|
|
293
|
-
|
|
294
|
-
**CRITICAL:** The `CLOUDFLARE_GLOBAL_API_KEY` in `.env` provides **FULL ACCESS** to the Cloudflare API. This is required for fully automated deployments via `/release` command.
|
|
295
|
-
|
|
296
|
-
## Frontend Onboarding Environment Variables
|
|
297
|
-
|
|
298
|
-
**New in v3.6.0:** The frontend now supports organization-specific onboarding via environment variables in `web/.env.local`:
|
|
299
|
-
|
|
300
|
-
```bash
|
|
301
|
-
# Organization Configuration (Frontend Onboarding)
|
|
302
|
-
ORG_NAME=your-org-name # Reserved: "one" for ONE Platform
|
|
303
|
-
ORG_WEBSITE=https://example.com # Reserved: "https://one.ie" for ONE Platform
|
|
304
|
-
ORG_FOLDER=your-org-folder # Reserved: "onegroup", "one" for ONE Platform
|
|
305
|
-
ONE_BACKEND=off # "off" = frontend-only, "on" = full platform
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
**How it works:**
|
|
309
|
-
- `ORG_NAME=one` → Full ONE Platform homepage with complete navigation
|
|
310
|
-
- `ORG_NAME=acme` → Customer org homepage with GetStartedPrompt interface
|
|
311
|
-
- `ONE_BACKEND=off` → Frontend-only mode (no Convex, no auth)
|
|
312
|
-
- `ONE_BACKEND=on` → Full platform with backend features
|
|
313
|
-
|
|
314
|
-
**Reserved values** (protected in CLI via validation):
|
|
315
|
-
- Name: `one`
|
|
316
|
-
- Folders: `onegroup`, `one`
|
|
317
|
-
- Website: `https://one.ie`, `one.ie`
|
|
318
|
-
|
|
319
|
-
**Testing:**
|
|
320
|
-
See `TESTING-ONBOARDING.md` for complete test guide.
|
|
321
|
-
|
|
322
|
-
## MCP Server Configuration
|
|
323
|
-
|
|
324
|
-
**Important:** The `.mcp.json` file configures MCP (Model Context Protocol) servers and is automatically synced to all target repositories:
|
|
325
|
-
|
|
326
|
-
```json
|
|
327
|
-
{
|
|
328
|
-
"mcpServers": {
|
|
329
|
-
"shadcn": {
|
|
330
|
-
"command": "npx",
|
|
331
|
-
"args": ["shadcn@latest", "mcp"]
|
|
332
|
-
},
|
|
333
|
-
"stripe": {
|
|
334
|
-
"url": "https://mcp.stripe.com"
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
```
|
|
339
|
-
|
|
340
|
-
**What it provides:**
|
|
341
|
-
- **shadcn MCP:** Access to shadcn/ui component library via MCP
|
|
342
|
-
- **Stripe MCP:** Stripe API integration via Model Context Protocol
|
|
343
|
-
|
|
344
|
-
**Synced to:**
|
|
345
|
-
- `cli/.mcp.json` - For CLI MCP server access
|
|
346
|
-
- `apps/one/one/.mcp.json` - For assembly repo MCP access
|
|
347
|
-
|
|
348
|
-
## Post-Release Tasks
|
|
349
|
-
|
|
350
|
-
After `/release` succeeds, remind user to:
|
|
351
|
-
1. Create GitHub releases (manual)
|
|
352
|
-
2. Test installation: `npx oneie@latest`
|
|
353
|
-
3. Verify web deployment
|
|
354
|
-
4. Monitor npm downloads
|
|
355
|
-
5. Check for errors in first 24 hours
|
|
356
|
-
|
|
357
|
-
## Installation Folder Sync (Optional)
|
|
358
|
-
|
|
359
|
-
**Note:** `INSTALLATION_NAME` is different from `ORG_NAME`:
|
|
360
|
-
- `INSTALLATION_NAME` - Backend/filesystem identifier for org-specific documentation
|
|
361
|
-
- `ORG_NAME` - Frontend environment variable controlling UI/branding
|
|
362
|
-
- Both can have the same value (e.g., "acme") but serve different purposes
|
|
363
|
-
|
|
364
|
-
If installation folders need to be synced across repositories:
|
|
365
|
-
|
|
366
|
-
```bash
|
|
367
|
-
# Sync installation folder to assembly repo
|
|
368
|
-
if [ -d "/${INSTALLATION_NAME}" ]; then
|
|
369
|
-
echo "📦 Syncing installation folder: ${INSTALLATION_NAME}"
|
|
370
|
-
|
|
371
|
-
# Copy to assembly repo
|
|
372
|
-
rsync -av --delete \
|
|
373
|
-
"/${INSTALLATION_NAME}/" \
|
|
374
|
-
"apps/one/${INSTALLATION_NAME}/"
|
|
375
|
-
|
|
376
|
-
# Commit and push
|
|
377
|
-
cd apps/one
|
|
378
|
-
git add "${INSTALLATION_NAME}/"
|
|
379
|
-
git commit -m "chore: sync installation folder ${INSTALLATION_NAME}"
|
|
380
|
-
git push
|
|
381
|
-
|
|
382
|
-
echo "✅ Installation folder synced"
|
|
383
|
-
fi
|
|
384
|
-
```
|
|
385
|
-
|
|
386
|
-
**Update version bump to include installation folder in changelog:**
|
|
387
|
-
|
|
388
|
-
```bash
|
|
389
|
-
# Generate changelog entry
|
|
390
|
-
cat >> CHANGELOG.md <<EOF
|
|
391
|
-
|
|
392
|
-
## [${NEW_VERSION}] - $(date +%Y-%m-%d)
|
|
393
|
-
|
|
394
|
-
### Added
|
|
395
|
-
- Frontend onboarding system with ORG_NAME/ORG_WEBSITE/ONE_BACKEND
|
|
396
|
-
- Reserved name validation in CLI (prevents use of "one", "one.ie")
|
|
397
|
-
- GetStartedPrompt component for customer organizations
|
|
398
|
-
- MinimalSidebar layout with Blog + License only
|
|
399
|
-
- Installation folder multi-tenancy support
|
|
400
|
-
- Hierarchical file resolution with group support
|
|
401
|
-
- CLI: \`npx oneie init\` to create installation folders
|
|
402
|
-
- Frontend: Auto-resolution of installation-specific files
|
|
403
|
-
|
|
404
|
-
### Changed
|
|
405
|
-
- Frontend conditionally renders based on ORG_NAME environment variable
|
|
406
|
-
- Backend can be disabled with ONE_BACKEND=off for frontend-only development
|
|
407
|
-
- Documentation updated across CLAUDE.md, AGENTS.md, README.md
|
|
408
|
-
|
|
409
|
-
### Security
|
|
410
|
-
- Reserved name protection prevents brand confusion
|
|
411
|
-
- Path traversal prevention in file resolution
|
|
412
|
-
- Symlink validation
|
|
413
|
-
- Audit logging for file access
|
|
414
|
-
EOF
|
|
415
|
-
```
|
|
416
|
-
|
|
417
|
-
---
|
|
418
|
-
|
|
419
|
-
**Full Release Pipeline: npm → GitHub → Cloudflare Pages → Production! 🚀**
|
|
@@ -7,7 +7,7 @@ The knowledge tagging hooks automatically map all created/modified artifacts to
|
|
|
7
7
|
- 📊 Automatic ontology dimension mapping (groups, people, things, connections, events, knowledge)
|
|
8
8
|
- 🏷️ Semantic labeling aligned with Reality-as-DSL architecture
|
|
9
9
|
- 🔍 RAG-ready artifact indexing for AI agent learning
|
|
10
|
-
- 📈 Knowledge tracking per inference (
|
|
10
|
+
- 📈 Knowledge tracking per inference (Cycle 1-100)
|
|
11
11
|
- 🧠 Complete audit trail of created knowledge
|
|
12
12
|
- 🎯 Guided documentation paths for each dimension
|
|
13
13
|
|
|
@@ -96,7 +96,7 @@ Runs **after** Write/Edit operations to create knowledge entries:
|
|
|
96
96
|
|
|
97
97
|
1. 📝 Creates knowledge entry with ontology dimension mapping
|
|
98
98
|
2. 🏷️ Tags with semantic labels (dimension:*, artifact:*, technology:*, etc.)
|
|
99
|
-
3. 🔗 Links to current inference context (
|
|
99
|
+
3. 🔗 Links to current inference context (Cycle 1-100)
|
|
100
100
|
4. 💾 Saves to daily knowledge log (~/.claude/knowledge-log/)
|
|
101
101
|
5. 🔐 Generates content hash for versioning
|
|
102
102
|
6. 📊 Tracks ontology version (3.0.0)
|
|
@@ -374,7 +374,7 @@ These hooks implement **Dimension 6: Knowledge** while mapping all artifacts to
|
|
|
374
374
|
Every artifact created is:
|
|
375
375
|
1. ✅ Mapped to correct **ontology dimension** (1-6)
|
|
376
376
|
2. 🏷️ Tagged with **semantic labels** (dimension:*, artifact:*, etc.)
|
|
377
|
-
3. 🔗 Linked to **inference context** (
|
|
377
|
+
3. 🔗 Linked to **inference context** (Cycle 1-100)
|
|
378
378
|
4. 📊 Indexed for **RAG search** (embeddings ready)
|
|
379
379
|
5. 🎯 Guided to **dimension docs** (ontology alignment)
|
|
380
380
|
|
|
@@ -439,7 +439,7 @@ Remove from `.claude/settings.local.json`:
|
|
|
439
439
|
## See Also
|
|
440
440
|
|
|
441
441
|
- **`validate-ontology-structure.py`**: Validates 6-dimension ontology structure
|
|
442
|
-
- **`todo.py`**: Inference context tracking (
|
|
442
|
+
- **`todo.py`**: Inference context tracking (Cycle 1-100)
|
|
443
443
|
- **`done.py`**: Marks inferences complete
|
|
444
444
|
- **`/one/knowledge/ontology.md`**: Complete 6-dimension ontology spec (Version 3.0.0)
|
|
445
445
|
- **`/one/knowledge/todo.md`**: 100-inference execution sequence
|
package/.claude/hooks/README.md
CHANGED
|
@@ -56,15 +56,15 @@ dimension=$(get_inference_dimension 15)
|
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
**Dimension Mapping:**
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
59
|
+
- Cycle 1-10: `foundation` (setup and validation)
|
|
60
|
+
- Cycle 11-30: `things` (backend schema & frontend components)
|
|
61
|
+
- Cycle 31-40: `connections` (integration & relationships)
|
|
62
|
+
- Cycle 41-50: `people` (authentication & authorization)
|
|
63
|
+
- Cycle 51-60: `knowledge` (RAG & embeddings)
|
|
64
|
+
- Cycle 61-70: `quality` (testing & validation)
|
|
65
|
+
- Cycle 71-80: `design` (wireframes & UI)
|
|
66
|
+
- Cycle 81-90: `events` (performance & optimization)
|
|
67
|
+
- Cycle 91-100: `deployment` (deployment & documentation)
|
|
68
68
|
|
|
69
69
|
#### get_specialist_agent(hook_name)
|
|
70
70
|
Detects specialist agent from hook name patterns.
|
|
@@ -91,7 +91,7 @@ Logs a message with ontology context.
|
|
|
91
91
|
|
|
92
92
|
```bash
|
|
93
93
|
log_message "INFO" "Processing user entities"
|
|
94
|
-
# Output: [2025-11-03 21:32:23] [INFO] [
|
|
94
|
+
# Output: [2025-11-03 21:32:23] [INFO] [Cycle 15] [things] Processing user entities
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
#### log_hook_execution(hook_name, command, start_time, end_time, exit_code)
|
|
@@ -107,7 +107,7 @@ log_hook_execution "backend-mutation" "test" "$start" "$end" 0
|
|
|
107
107
|
**Output:**
|
|
108
108
|
```
|
|
109
109
|
[2025-11-03 21:32:23] [EVENT] hook_executed | hook=backend-mutation | inference=15 | dimension=things | agent=agent-backend | duration=134ms | exit_code=0 | ontology_version=1.0.0
|
|
110
|
-
[2025-11-03 21:32:23] [INFO] [
|
|
110
|
+
[2025-11-03 21:32:23] [INFO] [Cycle 15] [things] Hook completed successfully: backend-mutation
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
#### get_time_ms()
|
|
@@ -122,12 +122,12 @@ start=$(get_time_ms)
|
|
|
122
122
|
|
|
123
123
|
### Standard Log Entry
|
|
124
124
|
```
|
|
125
|
-
[timestamp] [level] [
|
|
125
|
+
[timestamp] [level] [Cycle N] [dimension] message
|
|
126
126
|
```
|
|
127
127
|
|
|
128
128
|
Example:
|
|
129
129
|
```
|
|
130
|
-
[2025-11-03 21:32:23] [INFO] [
|
|
130
|
+
[2025-11-03 21:32:23] [INFO] [Cycle 15] [things] Hook completed successfully: backend-mutation
|
|
131
131
|
```
|
|
132
132
|
|
|
133
133
|
### Event Log Entry
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Clean Markdown Hook - ONE Platform
|
|
4
|
+
# Moves unwanted markdown files to one/events/
|
|
5
|
+
# Root allowed: README.md, CLAUDE.md, AGENTS.md, LICENSE.md, SECURITY.md
|
|
6
|
+
# /web allowed: README.md, CLAUDE.md, AGENTS.md, LICENSE.md, SECURITY.md
|
|
7
|
+
# Everything else moves to one/events/ (6-dimension EVENTS dimension)
|
|
8
|
+
|
|
9
|
+
PROJECT_DIR="${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)}"
|
|
10
|
+
EVENTS_DIR="$PROJECT_DIR/one/events"
|
|
11
|
+
|
|
12
|
+
# Allowed files (same for both root and web)
|
|
13
|
+
ALLOWED_FILES=(
|
|
14
|
+
"README.md"
|
|
15
|
+
"CLAUDE.md"
|
|
16
|
+
"AGENTS.md"
|
|
17
|
+
"LICENSE.md"
|
|
18
|
+
"SECURITY.md"
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
# Create events directory if it doesn't exist
|
|
22
|
+
mkdir -p "$EVENTS_DIR"
|
|
23
|
+
|
|
24
|
+
# Function to clean markdown files in a directory
|
|
25
|
+
clean_directory() {
|
|
26
|
+
local dir="$1"
|
|
27
|
+
local dir_name=$(basename "$dir")
|
|
28
|
+
|
|
29
|
+
if [ ! -d "$dir" ]; then
|
|
30
|
+
return
|
|
31
|
+
fi
|
|
32
|
+
|
|
33
|
+
# Find all markdown files in this directory (max depth 1)
|
|
34
|
+
while IFS= read -r file; do
|
|
35
|
+
filename=$(basename "$file")
|
|
36
|
+
|
|
37
|
+
# Check if file is in allowed list
|
|
38
|
+
is_allowed=0
|
|
39
|
+
for allowed in "${ALLOWED_FILES[@]}"; do
|
|
40
|
+
if [ "$filename" = "$allowed" ]; then
|
|
41
|
+
is_allowed=1
|
|
42
|
+
break
|
|
43
|
+
fi
|
|
44
|
+
done
|
|
45
|
+
|
|
46
|
+
# If not allowed, move it to one/events/
|
|
47
|
+
if [ $is_allowed -eq 0 ]; then
|
|
48
|
+
# Add timestamp and source directory to avoid collisions
|
|
49
|
+
timestamp=$(date +%Y%m%d-%H%M%S)
|
|
50
|
+
|
|
51
|
+
# If root, just use filename; if /web, prefix with "web-"
|
|
52
|
+
if [ "$dir_name" = "web" ]; then
|
|
53
|
+
new_name="web-${filename%.md}-${timestamp}.md"
|
|
54
|
+
else
|
|
55
|
+
new_name="${filename%.md}-${timestamp}.md"
|
|
56
|
+
fi
|
|
57
|
+
|
|
58
|
+
echo "Moving $(basename "$file") → one/events/$new_name"
|
|
59
|
+
mv "$file" "$EVENTS_DIR/$new_name"
|
|
60
|
+
|
|
61
|
+
# Stage the changes for git
|
|
62
|
+
git add -A "$file" "$EVENTS_DIR/$new_name" 2>/dev/null || true
|
|
63
|
+
fi
|
|
64
|
+
done < <(find "$dir" -maxdepth 1 -name "*.md" -type f)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
# Clean root directory
|
|
68
|
+
clean_directory "$PROJECT_DIR"
|
|
69
|
+
|
|
70
|
+
# Clean /web directory
|
|
71
|
+
clean_directory "$PROJECT_DIR/web"
|
|
72
|
+
|
|
73
|
+
exit 0
|