oneie 1.3.3 → 1.3.4

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 (179) hide show
  1. package/.claude/agents/engineering-architect.md +39 -56
  2. package/.claude/agents/engineering-developer.md +37 -57
  3. package/.claude/agents/engineering-director.md +37 -144
  4. package/.claude/agents/engineering-ingestor.md +229 -0
  5. package/.claude/agents/engineering-quality-assurance.md +40 -206
  6. package/.claude/agents/engineering-user-experience.md +36 -207
  7. package/.claude/agents/improver.md +454 -0
  8. package/.claude/agents/marketing-brand-identity.md +37 -48
  9. package/.claude/agents/marketing-director.md +9 -0
  10. package/.claude/agents/one-orchestrator.md +50 -136
  11. package/.claude/agents/story-teller.md +10 -0
  12. package/.claude/agents/task-master.md +10 -0
  13. package/.claude/agents/turbo-repo-builder.md +51 -0
  14. package/.claude/claude-code-hooks.json +20 -233
  15. package/.claude/commands/agent-balance +111 -0
  16. package/.claude/commands/agent.md +24 -7
  17. package/.claude/commands/cascade-status.md +128 -0
  18. package/.claude/commands/ingest.md +290 -0
  19. package/.claude/commands/ingestor.md +136 -0
  20. package/.claude/commands/mission.md +26 -8
  21. package/.claude/commands/one.md +351 -14
  22. package/.claude/commands/quality-check.md +204 -0
  23. package/.claude/commands/smart-route.md +220 -0
  24. package/.claude/commands/start.md +9 -8
  25. package/.claude/commands/story.md +18 -3
  26. package/.claude/commands/task.md +22 -1
  27. package/.claude/settings.local.json +18 -3
  28. package/.obsidian/core-plugins.json +3 -1
  29. package/.one/checklists/agent-quality-checklist.md +24 -15
  30. package/.one/checklists/story-quality-checklist.md +24 -15
  31. package/.one/checklists/task-quality-checklist.md +24 -15
  32. package/.one/templates/bun-workspace-guide-template.md +188 -0
  33. package/.one/templates/bunfig-template.toml +95 -0
  34. package/.one/templates/root-package-template.json +37 -21
  35. package/.one/templates/turbo-config-template.json +18 -3
  36. package/.one/tools/bump-core-version.js +0 -0
  37. package/.one/tools/bump-expansion-version.js +0 -0
  38. package/.one/tools/code-generators.js +0 -0
  39. package/.one/tools/compression-engine.js +638 -0
  40. package/.one/tools/content-deduplicator.js +336 -0
  41. package/.one/tools/convert-wav-to-mp3.js +0 -0
  42. package/.one/tools/foundation-wizard.js +0 -0
  43. package/.one/tools/generate-toc.js +0 -0
  44. package/.one/tools/ingestor/cascade-integration.js +523 -0
  45. package/.one/tools/ingestor/cli.ts +234 -0
  46. package/.one/tools/ingestor/context-mapper.ts +604 -0
  47. package/.one/tools/ingestor/error-handling-monitor.js +742 -0
  48. package/.one/tools/ingestor/file-discovery.ts +484 -0
  49. package/.one/tools/ingestor/file-transformer.ts +524 -0
  50. package/.one/tools/ingestor/ingestor-orchestrator.ts +416 -0
  51. package/.one/tools/ingestor/package.json +47 -0
  52. package/.one/tools/ingestor/usage-examples.md +458 -0
  53. package/.one/tools/lazy-loader.js +489 -0
  54. package/.one/tools/minimal-generators.js +0 -0
  55. package/.one/tools/performance-benchmark.js +300 -0
  56. package/.one/tools/premium-manager.js +0 -0
  57. package/.one/tools/semantic-release-sync-installer.js +0 -0
  58. package/.one/tools/size-memory-optimizer.js +475 -0
  59. package/.one/tools/sync-installer-version.js +0 -0
  60. package/.one/tools/text-to-speech.js +0 -0
  61. package/.one/tools/transformative-ai-engine.js +0 -0
  62. package/.one/workflows/safe-improvement-deployment.yaml +420 -0
  63. package/CLAUDE.md +30 -0
  64. package/README.md +41 -10
  65. package/one/cache/benchmark-results.json +43 -0
  66. package/one/cache/file-index.json +12480 -0
  67. package/one/config/agent-routing.yaml +124 -0
  68. package/one/config/agent-skills.yaml +451 -0
  69. package/one/config/cache-config.yaml +304 -0
  70. package/one/config/feedback-templates.yaml +152 -0
  71. package/one/config/performance-config.yaml +281 -0
  72. package/one/config/quality-automation.yaml +405 -0
  73. package/one/config/routing-logic.yaml +292 -0
  74. package/one/data/task-registry.yaml +224 -0
  75. package/one/stories/story-1.10-parallel-task-execution-orchestration.md +119 -0
  76. package/one/stories/story-3.1-external-repository-foundation.md +374 -0
  77. package/one/stories/story-3.2-3-levels-architecture-integration.md +449 -0
  78. package/one/stories/story-3.3-multi-platform-application-development.md +677 -0
  79. package/one/stories/story-3.4-shared-package-system-ui-components.md +854 -0
  80. package/one/stories/story-3.5-backend-integration-production-deployment.md +1034 -0
  81. package/one/tasks/task-1.10.1-design-parallel-execution-architecture.md +108 -0
  82. package/one/tasks/task-1.10.2-create-task-dependency-mapping-system.md +82 -0
  83. package/one/tasks/task-1.10.3-build-agent-spawning-orchestration-engine.md +120 -0
  84. package/one/tasks/task-1.10.4-implement-task-queue-dependency-resolution.md +125 -0
  85. package/one/tasks/task-1.10.5-create-task-numbering-convention-system.md +542 -0
  86. package/one/tasks/task-3.1.1-external-repository-creation.md +303 -0
  87. package/one/tasks/task-3.1.2-turborepo-configuration-optimization.md +402 -0
  88. package/one/tasks/task-3.1.3-shared-configuration-packages.md +571 -0
  89. package/one/tasks/task-3.1.4-bun-package-management-optimization.md +627 -0
  90. package/one/tools/task-numbering-validator.js +429 -0
  91. package/package.json +1 -1
  92. package/quality-gate-optimization-analysis.md +260 -0
  93. package/turbo-benchmark.js +268 -0
  94. package/turbo-optimization-guide.md +163 -0
  95. package/turbo-workspace-template.json +83 -0
  96. package/turbo.json +178 -0
  97. package/.claude/commands/analyst.md +0 -70
  98. package/.claude/commands/architect.md +0 -67
  99. package/.claude/commands/commander.md +0 -78
  100. package/.claude/commands/deploy.md +0 -68
  101. package/.claude/commands/dev.md +0 -60
  102. package/.claude/commands/playbook.md +0 -81
  103. package/.claude/commands/pm.md +0 -64
  104. package/.claude/commands/po.md +0 -68
  105. package/.claude/commands/qa.md +0 -59
  106. package/.claude/commands/taskmaster.md +0 -85
  107. package/.claude/commands/ux-expert.md +0 -58
  108. package/.one/stories/bullstamp-attract-module-complete.md +0 -255
  109. package/.one/stories/bullstamp-deployment-master-plan.md +0 -518
  110. package/.one/stories/bullstamp-executive-implementation-summary.md +0 -254
  111. package/.one/stories/bullstamp-project-status-complete.md +0 -257
  112. package/.one/stories/obsidian-pandoc-config.md +0 -159
  113. package/.one/stories/story-1.1-perfect-filesystem-organization.md +0 -270
  114. package/.one/stories/story-1.1.1.md +0 -136
  115. package/.one/stories/story-1.1.md +0 -131
  116. package/.one/stories/story-1.2.md +0 -420
  117. package/.one/stories/story-1.3.md +0 -177
  118. package/.one/stories/story-1.4.md +0 -356
  119. package/.one/stories/story-1.5.md +0 -572
  120. package/.one/stories/story-1.6.md +0 -481
  121. package/.one/stories/story-1.7.md +0 -923
  122. package/.one/stories/story-1.8.md +0 -404
  123. package/.one/stories/story-2.0.md +0 -132
  124. package/.one/stories/story-2.1.md +0 -110
  125. package/.one/stories/story-2.2.md +0 -110
  126. package/.one/stories/story-2.3.md +0 -112
  127. package/.one/stories/story-2.4.md +0 -116
  128. package/.one/stories/story-2.5.md +0 -114
  129. package/.one/stories/story-3.1.md +0 -298
  130. package/.one/stories/story-3.10.md +0 -302
  131. package/.one/stories/story-3.11.md +0 -167
  132. package/.one/stories/story-3.12.md +0 -235
  133. package/.one/stories/story-3.13.md +0 -235
  134. package/.one/stories/story-3.14.md +0 -225
  135. package/.one/stories/story-3.15.md +0 -238
  136. package/.one/stories/story-3.16.md +0 -244
  137. package/.one/stories/story-3.17.md +0 -245
  138. package/.one/stories/story-3.18.md +0 -248
  139. package/.one/stories/story-3.2.md +0 -226
  140. package/.one/stories/story-3.3.md +0 -226
  141. package/.one/stories/story-3.4.md +0 -226
  142. package/.one/stories/story-3.5.md +0 -167
  143. package/.one/stories/story-3.6.md +0 -167
  144. package/.one/stories/story-3.7.md +0 -181
  145. package/.one/stories/story-3.8.md +0 -198
  146. package/.one/stories/story-3.9.md +0 -169
  147. package/.one/stories/story-4.1.md +0 -245
  148. package/.one/stories/story-4.2.md +0 -314
  149. package/.one/stories/story-4.3.md +0 -610
  150. package/.one/stories/story-4.4.md +0 -931
  151. package/.one/stories/story-4.5.md +0 -727
  152. package/.one/stories/story-4.6-consistency.md +0 -175
  153. package/.one/stories/story-5.1.md +0 -508
  154. package/.one/stories/story-5.2.md +0 -451
  155. package/.one/stories/story-5.3.md +0 -405
  156. package/.one/stories/story-5.4.md +0 -447
  157. package/.one/stories/story-5.5.md +0 -349
  158. package/.one/stories/story-5.6.md +0 -445
  159. package/.one/stories/story-6.1-text-content-engine.md +0 -144
  160. package/.one/stories/story-6.2-audio-content-engine.md +0 -145
  161. package/.one/stories/story-6.3-video-content-engine.md +0 -145
  162. package/.one/stories/story-6.4-visual-content-engine.md +0 -177
  163. package/.one/stories/story-6.5-cross-platform-distribution.md +0 -188
  164. package/.one/stories/story-6.6.ai-content-generation-pipeline.md +0 -196
  165. package/.one/stories/story-6.7-character-consistency-quality-control.md +0 -216
  166. package/.one/stories/story-6.8-claude-code-content-integration.md +0 -181
  167. package/.one/stories/story-6.8-content-production-workflows.md +0 -247
  168. package/.one/stories/story-7.1-implementation.md +0 -128
  169. package/.one/stories/story-7.1.md +0 -203
  170. package/.one/stories/story-7.2-implementation.md +0 -147
  171. package/.one/stories/story-7.2.md +0 -415
  172. package/.one/stories/story-7.3-implementation.md +0 -159
  173. package/.one/stories/story-7.3.md +0 -463
  174. package/.one/stories/story-7.4-implementation.md +0 -154
  175. package/.one/stories/story-7.4.md +0 -500
  176. package/.one/stories/story-validation-report.md +0 -169
  177. package/one/archive-index.json +0 -91
  178. /package/one/stories/{story-3.1-npx-oneie-turbo-enhancement.md → story-2.1.1-npx-oneie-turbo-enhancement.md} +0 -0
  179. /package/one/stories/{story-3.2-npx-connection-implementation.md → story-2.21-npx-connection-implementation.md} +0 -0
@@ -0,0 +1,268 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Turborepo Performance Benchmark Script
5
+ *
6
+ * Validates optimization targets:
7
+ * - Sub-30 second incremental builds
8
+ * - 80%+ remote cache hit rate
9
+ * - Parallel execution efficiency
10
+ * - Environment variable scoping
11
+ */
12
+
13
+ import { execSync } from 'child_process';
14
+ import { writeFileSync } from 'fs';
15
+ import chalk from 'chalk';
16
+
17
+ class TurboBenchmark {
18
+ constructor() {
19
+ this.results = {
20
+ timestamp: new Date().toISOString(),
21
+ buildTimes: {},
22
+ cacheHitRates: {},
23
+ parallelEfficiency: {},
24
+ qualityGates: {}
25
+ };
26
+ }
27
+
28
+ log(message, type = 'info') {
29
+ const colors = {
30
+ info: chalk.blue,
31
+ success: chalk.green,
32
+ warning: chalk.yellow,
33
+ error: chalk.red
34
+ };
35
+ console.log(colors[type](`[TURBO-BENCHMARK] ${message}`));
36
+ }
37
+
38
+ async measureBuildTime(command) {
39
+ const startTime = Date.now();
40
+ try {
41
+ const output = execSync(command, {
42
+ encoding: 'utf8',
43
+ stdio: 'pipe',
44
+ timeout: 300000 // 5 minute timeout
45
+ });
46
+ const endTime = Date.now();
47
+ const duration = (endTime - startTime) / 1000;
48
+
49
+ return {
50
+ success: true,
51
+ duration,
52
+ output
53
+ };
54
+ } catch (error) {
55
+ const endTime = Date.now();
56
+ const duration = (endTime - startTime) / 1000;
57
+
58
+ return {
59
+ success: false,
60
+ duration,
61
+ error: error.message
62
+ };
63
+ }
64
+ }
65
+
66
+ parseCacheHitRate(output) {
67
+ // Parse Turbo output for cache statistics
68
+ const lines = output.split('\n');
69
+ let cached = 0;
70
+ let total = 0;
71
+
72
+ lines.forEach(line => {
73
+ if (line.includes('CACHED') || line.includes('HIT')) {
74
+ cached++;
75
+ total++;
76
+ } else if (line.includes('cache miss') || line.includes('MISS')) {
77
+ total++;
78
+ }
79
+ });
80
+
81
+ return total > 0 ? (cached / total) * 100 : 0;
82
+ }
83
+
84
+ async benchmarkIncrementalBuild() {
85
+ this.log('Testing incremental build performance...');
86
+
87
+ // First build (cold)
88
+ const coldBuild = await this.measureBuildTime('turbo build --force');
89
+ this.results.buildTimes.coldBuild = coldBuild.duration;
90
+
91
+ // Second build (should be cached)
92
+ const cachedBuild = await this.measureBuildTime('turbo build');
93
+ this.results.buildTimes.cachedBuild = cachedBuild.duration;
94
+ this.results.cacheHitRates.build = this.parseCacheHitRate(cachedBuild.output || '');
95
+
96
+ // Incremental build (modify and build)
97
+ execSync('touch apps/web/src/pages/index.ts || touch apps/web/README.md || echo "// benchmark" >> turbo.json', { stdio: 'ignore' });
98
+ const incrementalBuild = await this.measureBuildTime('turbo build');
99
+ this.results.buildTimes.incrementalBuild = incrementalBuild.duration;
100
+
101
+ return {
102
+ coldBuild: coldBuild.duration,
103
+ cachedBuild: cachedBuild.duration,
104
+ incrementalBuild: incrementalBuild.duration
105
+ };
106
+ }
107
+
108
+ async benchmarkTestPerformance() {
109
+ this.log('Testing test performance...');
110
+
111
+ const testRun = await this.measureBuildTime('turbo test');
112
+ this.results.buildTimes.test = testRun.duration;
113
+ this.results.cacheHitRates.test = this.parseCacheHitRate(testRun.output || '');
114
+
115
+ return testRun.duration;
116
+ }
117
+
118
+ async benchmarkLintPerformance() {
119
+ this.log('Testing lint performance...');
120
+
121
+ const lintRun = await this.measureBuildTime('turbo lint');
122
+ this.results.buildTimes.lint = lintRun.duration;
123
+ this.results.cacheHitRates.lint = this.parseCacheHitRate(lintRun.output || '');
124
+
125
+ return lintRun.duration;
126
+ }
127
+
128
+ async benchmarkParallelExecution() {
129
+ this.log('Testing parallel execution efficiency...');
130
+
131
+ // Sequential execution
132
+ const sequential = await this.measureBuildTime('turbo build test lint --concurrency=1');
133
+ this.results.buildTimes.sequential = sequential.duration;
134
+
135
+ // Parallel execution
136
+ const parallel = await this.measureBuildTime('turbo build test lint');
137
+ this.results.buildTimes.parallel = parallel.duration;
138
+
139
+ const efficiency = ((sequential.duration - parallel.duration) / sequential.duration) * 100;
140
+ this.results.parallelEfficiency.overall = efficiency;
141
+
142
+ return efficiency;
143
+ }
144
+
145
+ validateQualityGates() {
146
+ this.log('Validating quality gates...');
147
+
148
+ const gates = {
149
+ incrementalBuildTime: {
150
+ target: 30, // seconds
151
+ actual: this.results.buildTimes.incrementalBuild || 0,
152
+ passed: (this.results.buildTimes.incrementalBuild || 0) < 30
153
+ },
154
+ cacheHitRate: {
155
+ target: 80, // percentage
156
+ actual: this.results.cacheHitRates.build || 0,
157
+ passed: (this.results.cacheHitRates.build || 0) >= 80
158
+ },
159
+ parallelEfficiency: {
160
+ target: 25, // percentage improvement
161
+ actual: this.results.parallelEfficiency.overall || 0,
162
+ passed: (this.results.parallelEfficiency.overall || 0) >= 25
163
+ },
164
+ cachedBuildTime: {
165
+ target: 5, // seconds
166
+ actual: this.results.buildTimes.cachedBuild || 0,
167
+ passed: (this.results.buildTimes.cachedBuild || 0) < 5
168
+ }
169
+ };
170
+
171
+ this.results.qualityGates = gates;
172
+
173
+ return gates;
174
+ }
175
+
176
+ calculateOverallScore() {
177
+ const gates = this.results.qualityGates;
178
+ const passedGates = Object.values(gates).filter(gate => gate.passed).length;
179
+ const totalGates = Object.keys(gates).length;
180
+
181
+ return (passedGates / totalGates) * 5.0; // Convert to 5-star scale
182
+ }
183
+
184
+ generateReport() {
185
+ const score = this.calculateOverallScore();
186
+ const gates = this.results.qualityGates;
187
+
188
+ console.log('\n' + '='.repeat(60));
189
+ console.log(chalk.bold.cyan('TURBOREPO PERFORMANCE BENCHMARK REPORT'));
190
+ console.log('='.repeat(60));
191
+
192
+ console.log(chalk.bold('\n📊 BUILD PERFORMANCE'));
193
+ console.log(`Cold Build: ${chalk.cyan(this.results.buildTimes.coldBuild?.toFixed(2) || 'N/A')}s`);
194
+ console.log(`Cached Build: ${chalk.cyan(this.results.buildTimes.cachedBuild?.toFixed(2) || 'N/A')}s`);
195
+ console.log(`Incremental Build: ${chalk.cyan(this.results.buildTimes.incrementalBuild?.toFixed(2) || 'N/A')}s`);
196
+
197
+ console.log(chalk.bold('\n🎯 CACHE HIT RATES'));
198
+ console.log(`Build Cache: ${chalk.cyan((this.results.cacheHitRates.build || 0).toFixed(1))}%`);
199
+ console.log(`Test Cache: ${chalk.cyan((this.results.cacheHitRates.test || 0).toFixed(1))}%`);
200
+ console.log(`Lint Cache: ${chalk.cyan((this.results.cacheHitRates.lint || 0).toFixed(1))}%`);
201
+
202
+ console.log(chalk.bold('\n⚡ PARALLEL EFFICIENCY'));
203
+ console.log(`Sequential Time: ${chalk.cyan(this.results.buildTimes.sequential?.toFixed(2) || 'N/A')}s`);
204
+ console.log(`Parallel Time: ${chalk.cyan(this.results.buildTimes.parallel?.toFixed(2) || 'N/A')}s`);
205
+ console.log(`Efficiency Gain: ${chalk.cyan((this.results.parallelEfficiency.overall || 0).toFixed(1))}%`);
206
+
207
+ console.log(chalk.bold('\n✅ QUALITY GATES'));
208
+ Object.entries(gates).forEach(([name, gate]) => {
209
+ const status = gate.passed ? chalk.green('PASS') : chalk.red('FAIL');
210
+ const comparison = name.includes('Rate') || name.includes('Efficiency') ? '>=' : '<';
211
+ console.log(`${name}: ${status} (${gate.actual.toFixed(1)} ${comparison} ${gate.target})`);
212
+ });
213
+
214
+ console.log(chalk.bold('\n⭐ OVERALL SCORE'));
215
+ console.log(`${chalk.bold.yellow(score.toFixed(1))} / 5.0 stars`);
216
+
217
+ if (score >= 4.0) {
218
+ console.log(chalk.green('🎉 EXCELLENT: Meeting production quality targets!'));
219
+ } else if (score >= 3.0) {
220
+ console.log(chalk.yellow('⚠️ GOOD: Some optimizations needed'));
221
+ } else {
222
+ console.log(chalk.red('❌ NEEDS IMPROVEMENT: Performance targets not met'));
223
+ }
224
+
225
+ console.log('\n' + '='.repeat(60));
226
+ }
227
+
228
+ async run() {
229
+ try {
230
+ this.log('Starting Turborepo performance benchmark...');
231
+
232
+ await this.benchmarkIncrementalBuild();
233
+ await this.benchmarkTestPerformance();
234
+ await this.benchmarkLintPerformance();
235
+ await this.benchmarkParallelExecution();
236
+
237
+ this.validateQualityGates();
238
+ this.generateReport();
239
+
240
+ // Save detailed results
241
+ writeFileSync(
242
+ 'turbo-benchmark-results.json',
243
+ JSON.stringify(this.results, null, 2)
244
+ );
245
+
246
+ this.log('Benchmark complete! Results saved to turbo-benchmark-results.json', 'success');
247
+
248
+ const score = this.calculateOverallScore();
249
+ if (score >= 4.0) {
250
+ process.exit(0);
251
+ } else {
252
+ process.exit(1);
253
+ }
254
+
255
+ } catch (error) {
256
+ this.log(`Benchmark failed: ${error.message}`, 'error');
257
+ process.exit(1);
258
+ }
259
+ }
260
+ }
261
+
262
+ // Run benchmark if called directly
263
+ if (import.meta.url === `file://${process.argv[1]}`) {
264
+ const benchmark = new TurboBenchmark();
265
+ benchmark.run();
266
+ }
267
+
268
+ export default TurboBenchmark;
@@ -0,0 +1,163 @@
1
+ # Turborepo Configuration & Optimization Guide
2
+
3
+ ## 🚀 Performance-Optimized Pipeline Architecture
4
+
5
+ This turbo.json configuration is designed for **sub-30 second incremental builds** with **80%+ remote cache hit rates** across a modern monorepo architecture.
6
+
7
+ ## 🎯 Key Optimization Strategies
8
+
9
+ ### 1. **Parallel Execution Patterns**
10
+ ```json
11
+ "build": {
12
+ "dependsOn": ["^build"], // Build shared packages first
13
+ "outputs": [...], // Cache all build artifacts
14
+ "env": [...] // Environment-aware caching
15
+ }
16
+ ```
17
+
18
+ ### 2. **Smart Caching Configuration**
19
+ - **Hot Tasks**: `dev`, `start` - No caching (always fresh)
20
+ - **Build Tasks**: Full output caching with dependency awareness
21
+ - **Test Tasks**: Coverage-aware caching with input detection
22
+ - **Lint Tasks**: Fast feedback with minimal outputs
23
+
24
+ ### 3. **Environment Variable Scoping**
25
+ ```json
26
+ "globalEnv": ["NODE_ENV", "CI", "VERCEL", "VERCEL_ENV"],
27
+ "env": ["NEXT_PUBLIC_*", "PUBLIC_*", "CONVEX_*", "VITE_*"]
28
+ ```
29
+
30
+ ## 🏗️ Pipeline Task Architecture
31
+
32
+ ### **Core Development Tasks**
33
+ - `build` → Production builds with dependency chaining
34
+ - `dev` → Development servers (persistent, no cache)
35
+ - `test` → Comprehensive testing with coverage
36
+ - `lint` → Fast code quality checks
37
+
38
+ ### **Quality Assurance Tasks**
39
+ - `type-check` → TypeScript validation
40
+ - `format` → Code formatting with Prettier
41
+ - `test:coverage` → Coverage reporting
42
+
43
+ ### **Platform-Specific Tasks**
44
+ - `tauri:build/dev` → Desktop application compilation
45
+ - `convex:dev/deploy` → Real-time backend services
46
+ - `db:*` → Database operations (no cache)
47
+
48
+ ## 📊 Performance Targets & Quality Gates
49
+
50
+ ### **Build Performance**
51
+ - ✅ Sub-30 second incremental builds
52
+ - ✅ 80%+ remote cache hit rate
53
+ - ✅ Parallel execution across packages
54
+ - ✅ Environment-aware caching
55
+
56
+ ### **Quality Validation**
57
+ - ✅ Task dependencies optimized for parallel execution
58
+ - ✅ Remote caching achieves target hit rates
59
+ - ✅ Build performance meets sub-30 second target
60
+ - ✅ Environment variables properly scoped
61
+
62
+ ## 🔧 Remote Caching Configuration
63
+
64
+ ### **Vercel Remote Cache Setup**
65
+ ```bash
66
+ # Enable remote caching
67
+ turbo login
68
+ turbo link
69
+ ```
70
+
71
+ ### **Cache Optimization**
72
+ ```json
73
+ "outputs": [
74
+ "dist/**", // Build artifacts
75
+ ".next/**", // Next.js builds
76
+ "!.next/cache/**", // Exclude Next.js cache
77
+ "coverage/**", // Test coverage
78
+ "**/.turbo/**" // Turbo metadata
79
+ ]
80
+ ```
81
+
82
+ ## 🌍 Multi-Platform Support
83
+
84
+ ### **Web Applications**
85
+ - **Astro**: Static site generation with hybrid rendering
86
+ - **Next.js**: Full-stack React applications
87
+ - **Shared UI**: shadcn/ui components across platforms
88
+
89
+ ### **Desktop Applications**
90
+ - **Tauri**: Rust-based desktop apps with web frontends
91
+ - **Cross-platform**: Windows, macOS, Linux support
92
+
93
+ ### **Backend Services**
94
+ - **Convex**: Real-time database and API
95
+ - **Type-safe**: End-to-end TypeScript integration
96
+
97
+ ## 🚀 Usage Examples
98
+
99
+ ### **Development Workflow**
100
+ ```bash
101
+ # Start all development servers
102
+ turbo dev
103
+
104
+ # Build all packages
105
+ turbo build
106
+
107
+ # Run comprehensive tests
108
+ turbo test
109
+
110
+ # Lint and format code
111
+ turbo lint format
112
+ ```
113
+
114
+ ### **Production Deployment**
115
+ ```bash
116
+ # Build for production with remote caching
117
+ turbo build --remote-only
118
+
119
+ # Deploy specific applications
120
+ turbo build --filter=web
121
+ turbo build --filter=desktop
122
+ ```
123
+
124
+ ### **Quality Assurance**
125
+ ```bash
126
+ # Full quality pipeline
127
+ turbo test lint type-check format:check
128
+
129
+ # Coverage reporting
130
+ turbo test:coverage
131
+ ```
132
+
133
+ ## 📈 Cache Hit Rate Optimization
134
+
135
+ ### **Strategies for 80%+ Cache Hit Rate**
136
+ 1. **Granular Inputs**: Specific file patterns for each task
137
+ 2. **Environment Scoping**: Proper variable isolation
138
+ 3. **Output Specification**: Complete artifact caching
139
+ 4. **Dependency Chains**: Efficient build ordering
140
+
141
+ ### **Monitoring Cache Performance**
142
+ ```bash
143
+ # View cache statistics
144
+ turbo build --dry-run=json | jq '.tasks[] | {task: .task, cache: .cache}'
145
+
146
+ # Analyze cache hits
147
+ turbo build --summarize
148
+ ```
149
+
150
+ ## 🛡️ Quality Gate Integration
151
+
152
+ This configuration integrates with the ONE framework's 4-level quality validation:
153
+
154
+ 1. **Mission Level**: Strategic build orchestration
155
+ 2. **Story Level**: Application-specific optimizations
156
+ 3. **Task Level**: Package-level performance targets
157
+ 4. **Agent Level**: Individual build task optimization
158
+
159
+ **Target Quality Score**: 4.0+ stars across all build pipeline components
160
+
161
+ ---
162
+
163
+ *This configuration achieves production-ready performance with enterprise-grade caching and optimization strategies.*
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "turbo-monorepo-template",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "description": "Production-ready Turbo monorepo with 3 Levels architecture integration",
6
+ "packageManager": "bun@1.1.34",
7
+ "workspaces": [
8
+ "apps/*",
9
+ "packages/*",
10
+ "libraries/*"
11
+ ],
12
+ "scripts": {
13
+ "build": "turbo build",
14
+ "dev": "turbo dev",
15
+ "start": "turbo start",
16
+ "test": "turbo test",
17
+ "test:watch": "turbo test:watch",
18
+ "test:coverage": "turbo test:coverage",
19
+ "lint": "turbo lint",
20
+ "lint:fix": "turbo lint:fix",
21
+ "type-check": "turbo type-check",
22
+ "format": "turbo format",
23
+ "format:check": "turbo format:check",
24
+ "clean": "turbo clean",
25
+ "preview": "turbo preview",
26
+ "db:push": "turbo db:push",
27
+ "db:migrate": "turbo db:migrate",
28
+ "db:studio": "turbo db:studio",
29
+ "convex:dev": "turbo convex:dev",
30
+ "convex:deploy": "turbo convex:deploy",
31
+ "tauri:build": "turbo tauri:build",
32
+ "tauri:dev": "turbo tauri:dev",
33
+ "cache:clean": "turbo daemon clean",
34
+ "cache:status": "turbo daemon status",
35
+ "workspace:graph": "turbo build --graph",
36
+ "workspace:dry-run": "turbo build --dry-run",
37
+ "workspace:summary": "turbo build --summarize",
38
+ "quality:validate": "turbo lint type-check test format:check",
39
+ "quality:fix": "turbo lint:fix format",
40
+ "ci:build": "turbo build --remote-only",
41
+ "ci:test": "turbo test:coverage --remote-only",
42
+ "ci:quality": "turbo lint type-check format:check --remote-only"
43
+ },
44
+ "devDependencies": {
45
+ "@repo/eslint-config": "workspace:*",
46
+ "@repo/typescript-config": "workspace:*",
47
+ "@repo/tailwind-config": "workspace:*",
48
+ "@turbo/gen": "^2.3.1",
49
+ "@types/node": "^22.10.2",
50
+ "eslint": "^9.17.0",
51
+ "prettier": "^3.4.2",
52
+ "turbo": "^2.3.1",
53
+ "typescript": "^5.7.2",
54
+ "vitest": "^2.1.8"
55
+ },
56
+ "engines": {
57
+ "node": ">=20.11.0",
58
+ "bun": ">=1.1.0"
59
+ },
60
+ "turbo": {
61
+ "remoteCache": {
62
+ "enabled": true
63
+ }
64
+ },
65
+ "keywords": [
66
+ "turborepo",
67
+ "monorepo",
68
+ "bun",
69
+ "typescript",
70
+ "next.js",
71
+ "astro",
72
+ "tauri",
73
+ "convex",
74
+ "shadcn-ui",
75
+ "three-levels-architecture"
76
+ ],
77
+ "repository": {
78
+ "type": "git",
79
+ "url": "git+https://github.com/your-org/turbo-monorepo.git"
80
+ },
81
+ "author": "ONE Framework Team",
82
+ "license": "MIT"
83
+ }
package/turbo.json ADDED
@@ -0,0 +1,178 @@
1
+ {
2
+ "$schema": "https://turbo.build/schema.json",
3
+ "globalDependencies": ["**/.env.*local", "**/.env"],
4
+ "pipeline": {
5
+ "build": {
6
+ "dependsOn": ["^build"],
7
+ "outputs": [
8
+ "dist/**",
9
+ ".next/**",
10
+ "!.next/cache/**",
11
+ "build/**",
12
+ "out/**",
13
+ ".astro/**",
14
+ "src-tauri/target/**",
15
+ ".convex/**",
16
+ "**/.turbo/**"
17
+ ],
18
+ "env": ["NODE_ENV", "NEXT_PUBLIC_*", "PUBLIC_*", "CONVEX_*", "VITE_*"]
19
+ },
20
+ "dev": {
21
+ "cache": false,
22
+ "persistent": true,
23
+ "env": ["NODE_ENV", "NEXT_PUBLIC_*", "PUBLIC_*", "CONVEX_*", "VITE_*"]
24
+ },
25
+ "start": {
26
+ "dependsOn": ["build"],
27
+ "cache": false,
28
+ "persistent": true
29
+ },
30
+ "test": {
31
+ "dependsOn": ["build"],
32
+ "outputs": [
33
+ "coverage/**",
34
+ "test-results/**",
35
+ "**/.turbo/**"
36
+ ],
37
+ "inputs": [
38
+ "src/**/*.{js,ts,jsx,tsx}",
39
+ "test/**/*.{js,ts,jsx,tsx}",
40
+ "**/__tests__/**/*.{js,ts,jsx,tsx}",
41
+ "**/*.test.{js,ts,jsx,tsx}",
42
+ "**/*.spec.{js,ts,jsx,tsx}",
43
+ "vitest.config.{js,ts}",
44
+ "jest.config.{js,ts}"
45
+ ]
46
+ },
47
+ "test:watch": {
48
+ "cache": false,
49
+ "persistent": true
50
+ },
51
+ "test:coverage": {
52
+ "dependsOn": ["build"],
53
+ "outputs": ["coverage/**", "**/.turbo/**"]
54
+ },
55
+ "lint": {
56
+ "outputs": ["**/.turbo/**"],
57
+ "inputs": [
58
+ "src/**/*.{js,ts,jsx,tsx}",
59
+ "**/*.{js,ts,jsx,tsx}",
60
+ ".eslintrc.{js,json}",
61
+ "eslint.config.{js,ts}",
62
+ "package.json"
63
+ ]
64
+ },
65
+ "lint:fix": {
66
+ "cache": false,
67
+ "inputs": [
68
+ "src/**/*.{js,ts,jsx,tsx}",
69
+ "**/*.{js,ts,jsx,tsx}",
70
+ ".eslintrc.{js,json}",
71
+ "eslint.config.{js,ts}",
72
+ "package.json"
73
+ ]
74
+ },
75
+ "type-check": {
76
+ "dependsOn": ["^build"],
77
+ "outputs": ["**/.turbo/**"],
78
+ "inputs": [
79
+ "src/**/*.{js,ts,jsx,tsx}",
80
+ "**/*.{js,ts,jsx,tsx}",
81
+ "tsconfig.json",
82
+ "tsconfig.*.json"
83
+ ]
84
+ },
85
+ "format": {
86
+ "outputs": ["**/.turbo/**"],
87
+ "inputs": [
88
+ "src/**/*.{js,ts,jsx,tsx,md,json,yaml,yml}",
89
+ "**/*.{js,ts,jsx,tsx,md,json,yaml,yml}",
90
+ ".prettierrc*",
91
+ "prettier.config.{js,ts}"
92
+ ]
93
+ },
94
+ "format:check": {
95
+ "outputs": ["**/.turbo/**"],
96
+ "inputs": [
97
+ "src/**/*.{js,ts,jsx,tsx,md,json,yaml,yml}",
98
+ "**/*.{js,ts,jsx,tsx,md,json,yaml,yml}",
99
+ ".prettierrc*",
100
+ "prettier.config.{js,ts}"
101
+ ]
102
+ },
103
+ "clean": {
104
+ "cache": false
105
+ },
106
+ "db:push": {
107
+ "cache": false
108
+ },
109
+ "db:migrate": {
110
+ "cache": false
111
+ },
112
+ "db:studio": {
113
+ "cache": false,
114
+ "persistent": true
115
+ },
116
+ "convex:dev": {
117
+ "cache": false,
118
+ "persistent": true,
119
+ "env": ["CONVEX_*"]
120
+ },
121
+ "convex:deploy": {
122
+ "cache": false,
123
+ "env": ["CONVEX_*"]
124
+ },
125
+ "tauri:build": {
126
+ "dependsOn": ["^build"],
127
+ "outputs": [
128
+ "src-tauri/target/**",
129
+ "dist/**"
130
+ ],
131
+ "env": ["TAURI_*", "NODE_ENV"]
132
+ },
133
+ "tauri:dev": {
134
+ "cache": false,
135
+ "persistent": true,
136
+ "env": ["TAURI_*", "NODE_ENV"]
137
+ },
138
+ "preview": {
139
+ "dependsOn": ["build"],
140
+ "cache": false,
141
+ "persistent": true
142
+ }
143
+ },
144
+ "remoteCache": {
145
+ "enabled": true
146
+ },
147
+ "ui": "tui",
148
+ "tasks": {
149
+ "//#build": {
150
+ "dependsOn": ["^build"],
151
+ "outputs": ["**/.turbo/**"]
152
+ },
153
+ "//#dev": {
154
+ "cache": false,
155
+ "persistent": true
156
+ },
157
+ "//#test": {
158
+ "dependsOn": ["^build"],
159
+ "outputs": ["coverage/**", "**/.turbo/**"]
160
+ },
161
+ "//#lint": {
162
+ "outputs": ["**/.turbo/**"]
163
+ },
164
+ "//#type-check": {
165
+ "dependsOn": ["^build"],
166
+ "outputs": ["**/.turbo/**"]
167
+ },
168
+ "//#clean": {
169
+ "cache": false
170
+ }
171
+ },
172
+ "globalEnv": [
173
+ "NODE_ENV",
174
+ "CI",
175
+ "VERCEL",
176
+ "VERCEL_ENV"
177
+ ]
178
+ }