oneie 3.5.0 → 3.6.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.
Files changed (141) hide show
  1. package/.claude/agents/agent-director.md +902 -22
  2. package/.claude/agents/agent-onboard-example-output.md +600 -0
  3. package/.claude/agents/agent-onboard.md +576 -0
  4. package/.claude/commands/ONBOARDING_ENHANCEMENT_SUMMARY.md +266 -0
  5. package/.claude/commands/deploy.md +77 -150
  6. package/.claude/commands/one.md +375 -5
  7. package/.claude/commands/release.md +64 -3
  8. package/.mcp.json +57 -0
  9. package/CLAUDE.md +55 -69
  10. package/CREATE-WEBSITE.md +442 -0
  11. package/SECURITY.md +31 -0
  12. package/TESTING-ONBOARDING.md +185 -0
  13. package/dist/commands/create-website.d.ts +19 -0
  14. package/dist/commands/create-website.d.ts.map +1 -0
  15. package/dist/commands/create-website.js +231 -0
  16. package/dist/commands/create-website.js.map +1 -0
  17. package/dist/commands/init.d.ts +5 -6
  18. package/dist/commands/init.d.ts.map +1 -1
  19. package/dist/commands/init.js +213 -103
  20. package/dist/commands/init.js.map +1 -1
  21. package/dist/index.js +7 -5
  22. package/dist/index.js.map +1 -1
  23. package/dist/utils/installation-setup.d.ts +24 -1
  24. package/dist/utils/installation-setup.d.ts.map +1 -1
  25. package/dist/utils/installation-setup.js +85 -1
  26. package/dist/utils/installation-setup.js.map +1 -1
  27. package/dist/utils/launch-claude.d.ts +6 -0
  28. package/dist/utils/launch-claude.d.ts.map +1 -0
  29. package/dist/utils/launch-claude.js +51 -0
  30. package/dist/utils/launch-claude.js.map +1 -0
  31. package/dist/utils/validation.d.ts +48 -0
  32. package/dist/utils/validation.d.ts.map +1 -0
  33. package/dist/utils/validation.js +73 -0
  34. package/dist/utils/validation.js.map +1 -0
  35. package/folders.yaml +1 -1
  36. package/one/.obsidian/core-plugins.json +33 -0
  37. package/one/.obsidian/workspace.json +20 -20
  38. package/one/connections/workflow-onboarding.md +683 -0
  39. package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +354 -0
  40. package/one/events/CRITICAL-FIXES-COMPLETE.md +504 -0
  41. package/one/events/DEPLOYMENT.md +178 -0
  42. package/one/events/ECOMMERCE-DEMO-PLAN.md +225 -0
  43. package/one/events/ECOMMERCE-LIVE-DEMO.md +363 -0
  44. package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +735 -0
  45. package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +923 -0
  46. package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +223 -0
  47. package/one/events/HANDOFF.md +313 -0
  48. package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +503 -0
  49. package/one/events/IMPLEMENTATION_SUMMARY.md +529 -0
  50. package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +666 -0
  51. package/one/events/LANDING-PAGE-IMPLEMENTATION.md +642 -0
  52. package/one/events/LANDING-PAGE-QUICKSTART.md +407 -0
  53. package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +1627 -0
  54. package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +573 -0
  55. package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +398 -0
  56. package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +525 -0
  57. package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +455 -0
  58. package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +486 -0
  59. package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +203 -0
  60. package/one/events/SECURITY-AUDIT-FIXES.md +376 -0
  61. package/one/events/SECURITY-SCAN-COMPLETE.md +281 -0
  62. package/one/events/SHOP-BUILD-STATUS.md +114 -0
  63. package/one/events/SHOP-PREMIUM-UPDATE.md +149 -0
  64. package/one/events/SITE-WIDE-GRADIENT-FIX.md +299 -0
  65. package/one/events/STORE-PRODUCTION-READY-STATUS.md +359 -0
  66. package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +429 -0
  67. package/one/events/agent-director-enhancement-summary.md +386 -0
  68. package/one/events/agent-onboard-implementation-summary.md +457 -0
  69. package/one/events/clean-agent-ontology-cleanup-report.md +353 -0
  70. package/one/events/landing-page-generator.md +458 -0
  71. package/one/events/onboarding-implementation-complete.md +505 -0
  72. package/one/events/release.md +254 -0
  73. package/one/events/separate-implementation-status.md +537 -0
  74. package/one/knowledge/100-inference-quick-reference.md +431 -0
  75. package/one/knowledge/agent-onboard-usage.md +612 -0
  76. package/one/knowledge/cli-claude-handoff.md +718 -0
  77. package/one/knowledge/ontology-blog.yaml +31 -0
  78. package/one/knowledge/ontology-cheatsheet.md +591 -0
  79. package/one/knowledge/ontology-community.yaml +42 -0
  80. package/one/knowledge/ontology-core-universal.md +722 -0
  81. package/one/knowledge/ontology-core.yaml +50 -0
  82. package/one/knowledge/ontology-courses.yaml +53 -0
  83. package/one/knowledge/ontology-creator.md +376 -0
  84. package/one/knowledge/ontology-developer-guide.md +789 -0
  85. package/one/knowledge/ontology-education.md +920 -0
  86. package/one/knowledge/ontology-index.md +354 -0
  87. package/one/knowledge/ontology-migration-guide.md +811 -0
  88. package/one/knowledge/ontology-minimal.yaml +1 -1
  89. package/one/knowledge/ontology-portfolio.yaml +31 -0
  90. package/one/knowledge/ontology-quickstart.md +576 -0
  91. package/one/knowledge/ontology-shop.yaml +121 -0
  92. package/one/knowledge/ontology-tokens.yaml +32 -0
  93. package/one/knowledge/ontology-tutorial.md +434 -0
  94. package/one/knowledge/ontology-video-script.md +890 -0
  95. package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +467 -0
  96. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +408 -0
  97. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +369 -0
  98. package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +396 -0
  99. package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +468 -0
  100. package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +582 -0
  101. package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +449 -0
  102. package/one/things/docs/ecommerce/QUICK-START.md +368 -0
  103. package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +498 -0
  104. package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +237 -0
  105. package/one/things/docs/ecommerce/USAGE-EXAMPLE.astro +171 -0
  106. package/one/things/docs/ecommerce/demo.astro +309 -0
  107. package/one/things/plans/agent-director-100-inference-plans.md +410 -0
  108. package/one/things/plans/dual-website-strategy.md +612 -0
  109. package/one/things/plans/feature-based-sites.md +821 -0
  110. package/one/things/plans/multi-ontology-architecture.md +836 -0
  111. package/one/things/plans/onboarding.md +32 -0
  112. package/one/things/plans/separate.md +15 -17
  113. package/one/things/plans/start-new.md +738 -0
  114. package/package.json +7 -2
  115. package/one/things/claude/hooks/agent-hook-manager.js +0 -525
  116. package/one/things/claude/hooks/agent-load-balancer.js +0 -271
  117. package/one/things/claude/hooks/agent-request-interceptor.js +0 -70
  118. package/one/things/claude/hooks/cascade-feedback.js +0 -297
  119. package/one/things/claude/hooks/cascade-integration-hooks.js +0 -648
  120. package/one/things/claude/hooks/continuous-improvement-monitor.js +0 -510
  121. package/one/things/claude/hooks/file-organization-engine.js +0 -427
  122. package/one/things/claude/hooks/file-organization-monitor.js +0 -269
  123. package/one/things/claude/hooks/hook-config-manager.js +0 -202
  124. package/one/things/claude/hooks/hook-orchestrator.js +0 -662
  125. package/one/things/claude/hooks/hook-performance-report.js +0 -120
  126. package/one/things/claude/hooks/mcp-cascade-integration.js +0 -816
  127. package/one/things/claude/hooks/memory-optimizer.js +0 -510
  128. package/one/things/claude/hooks/ontology-compliance.js +0 -394
  129. package/one/things/claude/hooks/ontology-hook-manager.js +0 -316
  130. package/one/things/claude/hooks/ontology-validation-engine.js +0 -317
  131. package/one/things/claude/hooks/performance-monitoring-hook.js +0 -422
  132. package/one/things/claude/hooks/quality-scoring-engine.js +0 -834
  133. package/one/things/claude/hooks/simple-load-balancer.js +0 -238
  134. package/one/things/claude/hooks/startup-optimizer.js +0 -625
  135. package/one/things/claude/hooks/story-scoring-system.js +0 -445
  136. package/one/things/claude/hooks/story-validation-engine.js +0 -473
  137. package/one/things/claude/hooks/structure-synchronizer.js +0 -194
  138. package/one/things/claude/hooks/sub-agent-output-validator.js +0 -647
  139. package/one/things/claude/hooks/sub-agent-validation-hook.js +0 -343
  140. package/one/things/claude/hooks/trinity-validation-system.js +0 -392
  141. package/one/things/plans/organizations-to-groups.md +0 -705
@@ -1,392 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * Trinity Validation System
5
- * Comprehensive validation and maintenance for the .claude/.one/one trinity structure
6
- * Part of Mission-1: Trinity Harmonization
7
- */
8
-
9
- import { readFileSync, existsSync, writeFileSync, readdirSync, statSync } from 'fs';
10
- import { join, basename, dirname, extname, relative } from 'path';
11
- import { execSync } from 'child_process';
12
-
13
- const TRINITY_VALIDATION_CONFIG = {
14
- structure: {
15
- claude: {
16
- path: '.claude',
17
- required_dirs: ['agents', 'commands', 'hooks'],
18
- optional_dirs: [],
19
- file_types: ['.js', '.json', '.md'],
20
- purpose: 'Claude Code Integration & Execution'
21
- },
22
- platform: {
23
- path: '.one',
24
- required_dirs: ['agents', 'workflows', 'templates', 'tasks', 'checklists', 'tools', 'data'],
25
- optional_dirs: ['playbooks', 'stories', 'teams', 'missions', 'ontology', 'infrastructure', 'hooks'],
26
- file_types: ['.md', '.yaml', '.yml', '.json'],
27
- purpose: 'Immutable Platform Foundation'
28
- },
29
- user: {
30
- path: 'one',
31
- required_dirs: ['missions', 'stories'],
32
- optional_dirs: ['playbooks', 'guides', 'prompts', 'research', 'tests', 'docs', 'architecture', 'brand', 'assets', 'data', 'archive'],
33
- file_types: ['.md', '.yaml', '.yml', '.json', '.js', '.css', '.html', '.png', '.jpg', '.jpeg', '.gif', '.svg'],
34
- purpose: 'Active User Workspace'
35
- }
36
- },
37
-
38
- quality_gates: {
39
- file_organization: {
40
- max_misplaced_files: 0,
41
- required_compliance_score: 4.0,
42
- naming_convention_adherence: 0.95
43
- },
44
- structure_integrity: {
45
- required_directories_present: 1.0,
46
- directory_purpose_alignment: 1.0,
47
- cross_trinity_harmony: 0.98
48
- },
49
- automation_health: {
50
- hook_functionality: 1.0,
51
- real_time_monitoring: true,
52
- auto_correction_rate: 0.95
53
- }
54
- }
55
- };
56
-
57
- /**
58
- * Comprehensive Trinity Validation System
59
- */
60
- class TrinityValidationSystem {
61
- constructor() {
62
- this.validationResults = {
63
- claude: { score: 0, issues: [], files: 0 },
64
- platform: { score: 0, issues: [], files: 0 },
65
- user: { score: 0, issues: [], files: 0 },
66
- overall: { score: 0, total_files: 0, organized_files: 0 }
67
- };
68
- }
69
-
70
- /**
71
- * Main validation execution
72
- */
73
- async validateTrinityStructure() {
74
- console.log('šŸŽÆ Trinity Validation System Activated');
75
- console.log('šŸ“Š Comprehensive validation of .claude/.one/one structure...\n');
76
-
77
- // Validate each trinity
78
- await this.validateTrinity('claude');
79
- await this.validateTrinity('platform');
80
- await this.validateTrinity('user');
81
-
82
- // Cross-trinity harmony analysis
83
- this.validateCrossTrinityHarmony();
84
-
85
- // Generate comprehensive report
86
- this.generateValidationReport();
87
-
88
- return this.validationResults;
89
- }
90
-
91
- /**
92
- * Validates individual trinity structure
93
- */
94
- async validateTrinity(trinityKey) {
95
- const config = TRINITY_VALIDATION_CONFIG.structure[trinityKey];
96
- const trinityPath = join(process.cwd(), config.path);
97
-
98
- console.log(`šŸ” Validating ${config.path}/ - ${config.purpose}`);
99
-
100
- if (!existsSync(trinityPath)) {
101
- this.validationResults[trinityKey].issues.push(`āŒ Missing trinity directory: ${config.path}/`);
102
- this.validationResults[trinityKey].score = 0;
103
- return;
104
- }
105
-
106
- // Validate required directories
107
- const missingDirs = this.validateRequiredDirectories(trinityPath, config);
108
- if (missingDirs.length > 0) {
109
- this.validationResults[trinityKey].issues.push(`šŸ“ Missing directories: ${missingDirs.join(', ')}`);
110
- }
111
-
112
- // Validate file organization
113
- const orgResults = this.validateFileOrganization(trinityPath, config);
114
- this.validationResults[trinityKey].files = orgResults.total_files;
115
- this.validationResults[trinityKey].issues.push(...orgResults.issues);
116
-
117
- // Calculate trinity score
118
- this.validationResults[trinityKey].score = this.calculateTrinityScore(trinityKey);
119
-
120
- console.log(`āœ… ${config.path}/: ${this.validationResults[trinityKey].score.toFixed(1)}/5.0 stars`);
121
- console.log(`šŸ“ Files: ${this.validationResults[trinityKey].files}`);
122
-
123
- if (this.validationResults[trinityKey].issues.length > 0) {
124
- console.log(`āš ļø Issues: ${this.validationResults[trinityKey].issues.length}`);
125
- }
126
- console.log('');
127
- }
128
-
129
- /**
130
- * Validates required directories exist
131
- */
132
- validateRequiredDirectories(trinityPath, config) {
133
- const missingDirs = [];
134
-
135
- config.required_dirs.forEach(dir => {
136
- const dirPath = join(trinityPath, dir);
137
- if (!existsSync(dirPath)) {
138
- missingDirs.push(dir);
139
- }
140
- });
141
-
142
- return missingDirs;
143
- }
144
-
145
- /**
146
- * Validates file organization within trinity
147
- */
148
- validateFileOrganization(trinityPath, config) {
149
- const results = {
150
- total_files: 0,
151
- organized_files: 0,
152
- issues: []
153
- };
154
-
155
- try {
156
- const items = this.getAllFiles(trinityPath);
157
- results.total_files = items.length;
158
-
159
- items.forEach(filePath => {
160
- const relativePath = relative(trinityPath, filePath);
161
- const ext = extname(filePath);
162
-
163
- // Validate file type
164
- if (!config.file_types.includes(ext)) {
165
- results.issues.push(`🚫 Unexpected file type '${ext}' in ${relativePath}`);
166
- } else {
167
- results.organized_files++;
168
- }
169
-
170
- // Validate naming convention
171
- const filename = basename(filePath, ext);
172
- if (!this.validateFilename(filename)) {
173
- results.issues.push(`šŸ“ Non-standard naming: ${relativePath}`);
174
- }
175
- });
176
-
177
- } catch (error) {
178
- results.issues.push(`āŒ Error scanning directory: ${error.message}`);
179
- }
180
-
181
- return results;
182
- }
183
-
184
- /**
185
- * Gets all files recursively from directory
186
- */
187
- getAllFiles(dirPath, files = []) {
188
- try {
189
- const items = readdirSync(dirPath);
190
-
191
- items.forEach(item => {
192
- const fullPath = join(dirPath, item);
193
- const stat = statSync(fullPath);
194
-
195
- if (stat.isDirectory()) {
196
- this.getAllFiles(fullPath, files);
197
- } else {
198
- files.push(fullPath);
199
- }
200
- });
201
- } catch (error) {
202
- // Directory not accessible
203
- }
204
-
205
- return files;
206
- }
207
-
208
- /**
209
- * Validates filename against naming conventions
210
- */
211
- validateFilename(filename) {
212
- // Kebab-case validation
213
- const kebabCase = /^[a-z0-9]+(-[a-z0-9]+)*$/;
214
- return kebabCase.test(filename);
215
- }
216
-
217
- /**
218
- * Validates cross-trinity harmony
219
- */
220
- validateCrossTrinityHarmony() {
221
- console.log('šŸ”„ Validating Cross-Trinity Harmony...');
222
-
223
- // Check for consistent directory structures
224
- const claudeDirs = this.getDirectories('.claude');
225
- const platformDirs = this.getDirectories('.one');
226
- const userDirs = this.getDirectories('one');
227
-
228
- // Find common directories
229
- const commonDirs = claudeDirs.filter(dir =>
230
- platformDirs.includes(dir) || userDirs.includes(dir)
231
- );
232
-
233
- if (commonDirs.length === 0) {
234
- this.validationResults.overall.issues = this.validationResults.overall.issues || [];
235
- this.validationResults.overall.issues.push('āš ļø No common directory patterns found across trinity');
236
- } else {
237
- console.log(`āœ… Common directories: ${commonDirs.join(', ')}`);
238
- }
239
-
240
- // Validate synchronized structure patterns
241
- const structureScore = this.calculateStructureHarmonyScore();
242
- console.log(`šŸŽÆ Structure Harmony: ${structureScore.toFixed(1)}/5.0 stars\n`);
243
- }
244
-
245
- /**
246
- * Gets directories in a path
247
- */
248
- getDirectories(path) {
249
- try {
250
- if (!existsSync(path)) return [];
251
-
252
- return readdirSync(path).filter(item => {
253
- const itemPath = join(path, item);
254
- return statSync(itemPath).isDirectory();
255
- });
256
- } catch (error) {
257
- return [];
258
- }
259
- }
260
-
261
- /**
262
- * Calculates structure harmony score
263
- */
264
- calculateStructureHarmonyScore() {
265
- const totalIssues = Object.values(this.validationResults)
266
- .reduce((sum, result) => sum + (result.issues?.length || 0), 0);
267
-
268
- if (totalIssues === 0) return 5.0;
269
- if (totalIssues <= 3) return 4.5;
270
- if (totalIssues <= 6) return 4.0;
271
- if (totalIssues <= 10) return 3.5;
272
- return 3.0;
273
- }
274
-
275
- /**
276
- * Calculates individual trinity score
277
- */
278
- calculateTrinityScore(trinityKey) {
279
- const result = this.validationResults[trinityKey];
280
- const issues = result.issues.length;
281
-
282
- if (issues === 0) return 5.0;
283
- if (issues <= 2) return 4.5;
284
- if (issues <= 4) return 4.0;
285
- if (issues <= 6) return 3.5;
286
- return 3.0;
287
- }
288
-
289
- /**
290
- * Generates comprehensive validation report
291
- */
292
- generateValidationReport() {
293
- console.log('šŸ“Š Trinity Validation Report');
294
- console.log('═'.repeat(50));
295
-
296
- // Trinity scores
297
- Object.entries(this.validationResults).forEach(([key, result]) => {
298
- if (key === 'overall') return;
299
-
300
- const config = TRINITY_VALIDATION_CONFIG.structure[key];
301
- console.log(`${config.path.padEnd(8)} │ ⭐${result.score.toFixed(1)} │ šŸ“${result.files.toString().padStart(3)} files │ ${config.purpose}`);
302
-
303
- if (result.issues.length > 0) {
304
- result.issues.slice(0, 3).forEach(issue => {
305
- console.log(` │ │ │ ${issue}`);
306
- });
307
- if (result.issues.length > 3) {
308
- console.log(` │ │ │ ...and ${result.issues.length - 3} more`);
309
- }
310
- }
311
- });
312
-
313
- // Overall statistics
314
- const totalFiles = Object.values(this.validationResults)
315
- .reduce((sum, result) => sum + (result.files || 0), 0);
316
-
317
- const avgScore = Object.entries(this.validationResults)
318
- .filter(([key]) => key !== 'overall')
319
- .reduce((sum, [, result]) => sum + result.score, 0) / 3;
320
-
321
- const totalIssues = Object.values(this.validationResults)
322
- .reduce((sum, result) => sum + (result.issues?.length || 0), 0);
323
-
324
- console.log('─'.repeat(50));
325
- console.log(`šŸ“ˆ Overall Score: ⭐${avgScore.toFixed(1)}/5.0 stars`);
326
- console.log(`šŸ“ Total Files: ${totalFiles}`);
327
- console.log(`šŸŽÆ Issues Found: ${totalIssues}`);
328
-
329
- if (avgScore >= 4.0) {
330
- console.log('\nšŸŽ‰ Trinity structure harmony achieved!');
331
- console.log('✨ Beautiful organization maintained across all directories');
332
- } else {
333
- console.log('\nšŸ”§ Trinity structure needs attention');
334
- console.log('šŸ“– See one/docs/harmonized-structure-design.md for guidance');
335
- }
336
-
337
- // Update overall results
338
- this.validationResults.overall = {
339
- score: avgScore,
340
- total_files: totalFiles,
341
- issues_count: totalIssues,
342
- harmony_achieved: avgScore >= 4.0
343
- };
344
- }
345
-
346
- /**
347
- * Exports validation results for monitoring
348
- */
349
- exportValidationResults() {
350
- const reportPath = join(process.cwd(), 'one/docs/trinity-validation-report.json');
351
-
352
- const report = {
353
- timestamp: new Date().toISOString(),
354
- mission: 'Mission-1: Trinity Harmonization',
355
- results: this.validationResults,
356
- quality_gates: TRINITY_VALIDATION_CONFIG.quality_gates,
357
- next_validation: new Date(Date.now() + 24 * 60 * 60 * 1000).toISOString() // 24 hours
358
- };
359
-
360
- try {
361
- writeFileSync(reportPath, JSON.stringify(report, null, 2));
362
- console.log(`\nšŸ“„ Validation report saved: ${reportPath}`);
363
- } catch (error) {
364
- console.log(`āš ļø Could not save validation report: ${error.message}`);
365
- }
366
-
367
- return report;
368
- }
369
- }
370
-
371
- /**
372
- * Main execution
373
- */
374
- async function main() {
375
- const validator = new TrinityValidationSystem();
376
- const results = await validator.validateTrinityStructure();
377
- const report = validator.exportValidationResults();
378
-
379
- // Exit with appropriate code
380
- if (results.overall.harmony_achieved) {
381
- process.exit(0);
382
- } else {
383
- process.exit(1);
384
- }
385
- }
386
-
387
- // Execute if called directly
388
- if (import.meta.url === `file://${process.argv[1]}`) {
389
- main();
390
- }
391
-
392
- export { TrinityValidationSystem };