oneie 1.3.3 → 1.4.0

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 (180) 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/bin/oneie/index.js +733 -64
  66. package/one/cache/benchmark-results.json +43 -0
  67. package/one/cache/file-index.json +12480 -0
  68. package/one/config/agent-routing.yaml +124 -0
  69. package/one/config/agent-skills.yaml +451 -0
  70. package/one/config/cache-config.yaml +304 -0
  71. package/one/config/feedback-templates.yaml +152 -0
  72. package/one/config/performance-config.yaml +281 -0
  73. package/one/config/quality-automation.yaml +405 -0
  74. package/one/config/routing-logic.yaml +292 -0
  75. package/one/data/task-registry.yaml +224 -0
  76. package/one/stories/story-1.10-parallel-task-execution-orchestration.md +119 -0
  77. package/one/stories/story-3.1-external-repository-foundation.md +374 -0
  78. package/one/stories/story-3.2-3-levels-architecture-integration.md +449 -0
  79. package/one/stories/story-3.3-multi-platform-application-development.md +677 -0
  80. package/one/stories/story-3.4-shared-package-system-ui-components.md +854 -0
  81. package/one/stories/story-3.5-backend-integration-production-deployment.md +1034 -0
  82. package/one/tasks/task-1.10.1-design-parallel-execution-architecture.md +108 -0
  83. package/one/tasks/task-1.10.2-create-task-dependency-mapping-system.md +82 -0
  84. package/one/tasks/task-1.10.3-build-agent-spawning-orchestration-engine.md +120 -0
  85. package/one/tasks/task-1.10.4-implement-task-queue-dependency-resolution.md +125 -0
  86. package/one/tasks/task-1.10.5-create-task-numbering-convention-system.md +542 -0
  87. package/one/tasks/task-3.1.1-external-repository-creation.md +303 -0
  88. package/one/tasks/task-3.1.2-turborepo-configuration-optimization.md +402 -0
  89. package/one/tasks/task-3.1.3-shared-configuration-packages.md +571 -0
  90. package/one/tasks/task-3.1.4-bun-package-management-optimization.md +627 -0
  91. package/one/tools/task-numbering-validator.js +429 -0
  92. package/package.json +1 -1
  93. package/quality-gate-optimization-analysis.md +260 -0
  94. package/turbo-benchmark.js +268 -0
  95. package/turbo-optimization-guide.md +163 -0
  96. package/turbo-workspace-template.json +83 -0
  97. package/turbo.json +178 -0
  98. package/.claude/commands/analyst.md +0 -70
  99. package/.claude/commands/architect.md +0 -67
  100. package/.claude/commands/commander.md +0 -78
  101. package/.claude/commands/deploy.md +0 -68
  102. package/.claude/commands/dev.md +0 -60
  103. package/.claude/commands/playbook.md +0 -81
  104. package/.claude/commands/pm.md +0 -64
  105. package/.claude/commands/po.md +0 -68
  106. package/.claude/commands/qa.md +0 -59
  107. package/.claude/commands/taskmaster.md +0 -85
  108. package/.claude/commands/ux-expert.md +0 -58
  109. package/.one/stories/bullstamp-attract-module-complete.md +0 -255
  110. package/.one/stories/bullstamp-deployment-master-plan.md +0 -518
  111. package/.one/stories/bullstamp-executive-implementation-summary.md +0 -254
  112. package/.one/stories/bullstamp-project-status-complete.md +0 -257
  113. package/.one/stories/obsidian-pandoc-config.md +0 -159
  114. package/.one/stories/story-1.1-perfect-filesystem-organization.md +0 -270
  115. package/.one/stories/story-1.1.1.md +0 -136
  116. package/.one/stories/story-1.1.md +0 -131
  117. package/.one/stories/story-1.2.md +0 -420
  118. package/.one/stories/story-1.3.md +0 -177
  119. package/.one/stories/story-1.4.md +0 -356
  120. package/.one/stories/story-1.5.md +0 -572
  121. package/.one/stories/story-1.6.md +0 -481
  122. package/.one/stories/story-1.7.md +0 -923
  123. package/.one/stories/story-1.8.md +0 -404
  124. package/.one/stories/story-2.0.md +0 -132
  125. package/.one/stories/story-2.1.md +0 -110
  126. package/.one/stories/story-2.2.md +0 -110
  127. package/.one/stories/story-2.3.md +0 -112
  128. package/.one/stories/story-2.4.md +0 -116
  129. package/.one/stories/story-2.5.md +0 -114
  130. package/.one/stories/story-3.1.md +0 -298
  131. package/.one/stories/story-3.10.md +0 -302
  132. package/.one/stories/story-3.11.md +0 -167
  133. package/.one/stories/story-3.12.md +0 -235
  134. package/.one/stories/story-3.13.md +0 -235
  135. package/.one/stories/story-3.14.md +0 -225
  136. package/.one/stories/story-3.15.md +0 -238
  137. package/.one/stories/story-3.16.md +0 -244
  138. package/.one/stories/story-3.17.md +0 -245
  139. package/.one/stories/story-3.18.md +0 -248
  140. package/.one/stories/story-3.2.md +0 -226
  141. package/.one/stories/story-3.3.md +0 -226
  142. package/.one/stories/story-3.4.md +0 -226
  143. package/.one/stories/story-3.5.md +0 -167
  144. package/.one/stories/story-3.6.md +0 -167
  145. package/.one/stories/story-3.7.md +0 -181
  146. package/.one/stories/story-3.8.md +0 -198
  147. package/.one/stories/story-3.9.md +0 -169
  148. package/.one/stories/story-4.1.md +0 -245
  149. package/.one/stories/story-4.2.md +0 -314
  150. package/.one/stories/story-4.3.md +0 -610
  151. package/.one/stories/story-4.4.md +0 -931
  152. package/.one/stories/story-4.5.md +0 -727
  153. package/.one/stories/story-4.6-consistency.md +0 -175
  154. package/.one/stories/story-5.1.md +0 -508
  155. package/.one/stories/story-5.2.md +0 -451
  156. package/.one/stories/story-5.3.md +0 -405
  157. package/.one/stories/story-5.4.md +0 -447
  158. package/.one/stories/story-5.5.md +0 -349
  159. package/.one/stories/story-5.6.md +0 -445
  160. package/.one/stories/story-6.1-text-content-engine.md +0 -144
  161. package/.one/stories/story-6.2-audio-content-engine.md +0 -145
  162. package/.one/stories/story-6.3-video-content-engine.md +0 -145
  163. package/.one/stories/story-6.4-visual-content-engine.md +0 -177
  164. package/.one/stories/story-6.5-cross-platform-distribution.md +0 -188
  165. package/.one/stories/story-6.6.ai-content-generation-pipeline.md +0 -196
  166. package/.one/stories/story-6.7-character-consistency-quality-control.md +0 -216
  167. package/.one/stories/story-6.8-claude-code-content-integration.md +0 -181
  168. package/.one/stories/story-6.8-content-production-workflows.md +0 -247
  169. package/.one/stories/story-7.1-implementation.md +0 -128
  170. package/.one/stories/story-7.1.md +0 -203
  171. package/.one/stories/story-7.2-implementation.md +0 -147
  172. package/.one/stories/story-7.2.md +0 -415
  173. package/.one/stories/story-7.3-implementation.md +0 -159
  174. package/.one/stories/story-7.3.md +0 -463
  175. package/.one/stories/story-7.4-implementation.md +0 -154
  176. package/.one/stories/story-7.4.md +0 -500
  177. package/.one/stories/story-validation-report.md +0 -169
  178. package/one/archive-index.json +0 -91
  179. /package/one/stories/{story-3.1-npx-oneie-turbo-enhancement.md → story-2.1.1-npx-oneie-turbo-enhancement.md} +0 -0
  180. /package/one/stories/{story-3.2-npx-connection-implementation.md → story-2.21-npx-connection-implementation.md} +0 -0
@@ -0,0 +1,234 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { IngestorOrchestrator, type IngestorConfig, type FrameworkType } from './ingestor-orchestrator';
4
+ import { join } from 'path';
5
+
6
+ interface CLIArgs {
7
+ source?: string;
8
+ framework?: FrameworkType;
9
+ mission?: string;
10
+ story?: string;
11
+ task?: string;
12
+ dryRun?: boolean;
13
+ interactive?: boolean;
14
+ componentsOnly?: boolean;
15
+ include?: string[];
16
+ exclude?: string[];
17
+ maxSize?: number;
18
+ help?: boolean;
19
+ }
20
+
21
+ function parseArgs(args: string[]): CLIArgs {
22
+ const parsed: CLIArgs = {};
23
+
24
+ for (let i = 0; i < args.length; i++) {
25
+ const arg = args[i];
26
+
27
+ switch (arg) {
28
+ case '--source':
29
+ parsed.source = args[++i];
30
+ break;
31
+ case '--framework':
32
+ parsed.framework = args[++i] as FrameworkType;
33
+ break;
34
+ case '--mission':
35
+ parsed.mission = args[++i];
36
+ break;
37
+ case '--story':
38
+ parsed.story = args[++i];
39
+ break;
40
+ case '--task':
41
+ parsed.task = args[++i];
42
+ break;
43
+ case '--dry-run':
44
+ parsed.dryRun = true;
45
+ break;
46
+ case '--interactive':
47
+ parsed.interactive = true;
48
+ break;
49
+ case '--components-only':
50
+ parsed.componentsOnly = true;
51
+ break;
52
+ case '--include':
53
+ parsed.include = args[++i]?.split(',') || [];
54
+ break;
55
+ case '--exclude':
56
+ parsed.exclude = args[++i]?.split(',') || [];
57
+ break;
58
+ case '--max-size':
59
+ parsed.maxSize = parseInt(args[++i]) || 1024 * 1024;
60
+ break;
61
+ case '--help':
62
+ case '-h':
63
+ parsed.help = true;
64
+ break;
65
+ }
66
+ }
67
+
68
+ return parsed;
69
+ }
70
+
71
+ function showHelp(): void {
72
+ console.log(`
73
+ 🔄 ONE Framework Ingestor Agent
74
+
75
+ Intelligently crawl and import TypeScript/React code from local projects.
76
+
77
+ USAGE:
78
+ ingestor --source="/path/to/projects" [OPTIONS]
79
+
80
+ OPTIONS:
81
+ --source <path> Source directory to crawl (required)
82
+ --framework <type> Target framework (nextjs, astro, vite, tanstack-start)
83
+ --mission <name> Current mission context for relevance scoring
84
+ --story <name> Current story context for relevance scoring
85
+ --task <name> Current task context for relevance scoring
86
+ --dry-run Preview mode - show what would be imported
87
+ --interactive Step-by-step selection of files to import
88
+ --components-only Only import component files
89
+ --include <patterns> Comma-separated patterns to include
90
+ --exclude <patterns> Comma-separated patterns to exclude
91
+ --max-size <bytes> Maximum file size to import (default: 1MB)
92
+ --help, -h Show this help message
93
+
94
+ EXAMPLES:
95
+ # Basic ingestion
96
+ ingestor --source="/Users/dev/projects" --framework="nextjs"
97
+
98
+ # Interactive mode
99
+ ingestor --source="/Users/dev/projects" --interactive
100
+
101
+ # Dry run
102
+ ingestor --source="/Users/dev/projects" --dry-run
103
+
104
+ # Mission-focused
105
+ ingestor --source="/Users/dev/projects" --mission="dashboard"
106
+
107
+ # Components only
108
+ ingestor --source="/Users/dev/projects" --components-only
109
+
110
+ FRAMEWORK SUPPORT:
111
+ ✅ Next.js (App Router & Pages Router)
112
+ ✅ Astro (Island Architecture & Content Collections)
113
+ ✅ Vite (React, Vue, Svelte, Vanilla)
114
+ ✅ TanStack Start (File-based Routing)
115
+
116
+ PROCESSING TYPES:
117
+ 📋 Direct Copy - Assets, configs copied as-is
118
+ 🔧 Smart Modify - Code files with import/path updates
119
+ ⚙️ Config Adapt - Framework configs adapted for target
120
+ 👁️ Manual Review - Complex files flagged for review
121
+
122
+ OUTPUT:
123
+ Generated files are organized in your project structure:
124
+ src/components/, src/hooks/, src/lib/utils/, etc.
125
+
126
+ A detailed ingestion-report.md is created with full results.
127
+ `);
128
+ }
129
+
130
+ async function main(): Promise<void> {
131
+ const args = parseArgs(process.argv.slice(2));
132
+
133
+ if (args.help) {
134
+ showHelp();
135
+ process.exit(0);
136
+ }
137
+
138
+ if (!args.source) {
139
+ console.error('❌ Error: --source parameter is required');
140
+ console.log('Use --help for usage information');
141
+ process.exit(1);
142
+ }
143
+
144
+ console.log('🚀 ONE Framework Ingestor Agent');
145
+ console.log('================================');
146
+
147
+ const config: IngestorConfig = {
148
+ sourceDirectory: args.source,
149
+ targetDirectory: process.cwd(),
150
+ targetFramework: args.framework || 'nextjs',
151
+ missionContext: args.mission,
152
+ storyContext: args.story,
153
+ taskContext: args.task,
154
+ dryRun: args.dryRun || false,
155
+ selectiveMode: args.interactive || false,
156
+ maxFileSize: args.maxSize || 1024 * 1024
157
+ };
158
+
159
+ // Apply filters
160
+ if (args.include) {
161
+ config.includePatterns = args.include;
162
+ }
163
+
164
+ if (args.exclude) {
165
+ config.excludePatterns = args.exclude;
166
+ }
167
+
168
+ if (args.componentsOnly) {
169
+ config.includePatterns = ['component', 'Component', '.tsx', '.jsx'];
170
+ }
171
+
172
+ try {
173
+ const orchestrator = new IngestorOrchestrator();
174
+ const result = await orchestrator.ingest(config);
175
+
176
+ console.log('\n📊 INGESTION SUMMARY');
177
+ console.log('===================');
178
+ console.log(`Projects Scanned: ${result.projectsScanned}`);
179
+ console.log(`Files Processed: ${result.filesProcessed}`);
180
+ console.log(`Files Skipped: ${result.filesSkipped}`);
181
+ console.log(`Warnings: ${result.warnings.length}`);
182
+ console.log(`Errors: ${result.errors.length}`);
183
+
184
+ console.log('\n📋 PROCESSING BREAKDOWN');
185
+ console.log('======================');
186
+ console.log(`Direct Copies: ${result.summary.directCopies}`);
187
+ console.log(`Smart Modifications: ${result.summary.smartModifications}`);
188
+ console.log(`Config Adaptations: ${result.summary.configAdaptations}`);
189
+ console.log(`Manual Reviews: ${result.summary.manualReviews}`);
190
+
191
+ if (result.warnings.length > 0) {
192
+ console.log('\n⚠️ WARNINGS');
193
+ console.log('============');
194
+ result.warnings.slice(0, 5).forEach(warning => {
195
+ console.log(` • ${warning}`);
196
+ });
197
+ if (result.warnings.length > 5) {
198
+ console.log(` ... and ${result.warnings.length - 5} more (see ingestion-report.md)`);
199
+ }
200
+ }
201
+
202
+ if (result.errors.length > 0) {
203
+ console.log('\n❌ ERRORS');
204
+ console.log('=========');
205
+ result.errors.forEach(error => {
206
+ console.log(` • ${error}`);
207
+ });
208
+ }
209
+
210
+ if (result.success) {
211
+ console.log('\n✅ Ingestion completed successfully!');
212
+ if (!config.dryRun) {
213
+ console.log(`📄 Detailed report: ${join(config.targetDirectory, 'ingestion-report.md')}`);
214
+ }
215
+ } else {
216
+ console.log('\n❌ Ingestion completed with errors');
217
+ process.exit(1);
218
+ }
219
+
220
+ } catch (error) {
221
+ console.error('\n💥 Fatal Error:', error);
222
+ process.exit(1);
223
+ }
224
+ }
225
+
226
+ // Handle CLI execution
227
+ if (require.main === module) {
228
+ main().catch((error) => {
229
+ console.error('💥 Unexpected error:', error);
230
+ process.exit(1);
231
+ });
232
+ }
233
+
234
+ export { main as runIngestorCLI };