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.
- package/.claude/agents/engineering-architect.md +39 -56
- package/.claude/agents/engineering-developer.md +37 -57
- package/.claude/agents/engineering-director.md +37 -144
- package/.claude/agents/engineering-ingestor.md +229 -0
- package/.claude/agents/engineering-quality-assurance.md +40 -206
- package/.claude/agents/engineering-user-experience.md +36 -207
- package/.claude/agents/improver.md +454 -0
- package/.claude/agents/marketing-brand-identity.md +37 -48
- package/.claude/agents/marketing-director.md +9 -0
- package/.claude/agents/one-orchestrator.md +50 -136
- package/.claude/agents/story-teller.md +10 -0
- package/.claude/agents/task-master.md +10 -0
- package/.claude/agents/turbo-repo-builder.md +51 -0
- package/.claude/claude-code-hooks.json +20 -233
- package/.claude/commands/agent-balance +111 -0
- package/.claude/commands/agent.md +24 -7
- package/.claude/commands/cascade-status.md +128 -0
- package/.claude/commands/ingest.md +290 -0
- package/.claude/commands/ingestor.md +136 -0
- package/.claude/commands/mission.md +26 -8
- package/.claude/commands/one.md +351 -14
- package/.claude/commands/quality-check.md +204 -0
- package/.claude/commands/smart-route.md +220 -0
- package/.claude/commands/start.md +9 -8
- package/.claude/commands/story.md +18 -3
- package/.claude/commands/task.md +22 -1
- package/.claude/settings.local.json +18 -3
- package/.obsidian/core-plugins.json +3 -1
- package/.one/checklists/agent-quality-checklist.md +24 -15
- package/.one/checklists/story-quality-checklist.md +24 -15
- package/.one/checklists/task-quality-checklist.md +24 -15
- package/.one/templates/bun-workspace-guide-template.md +188 -0
- package/.one/templates/bunfig-template.toml +95 -0
- package/.one/templates/root-package-template.json +37 -21
- package/.one/templates/turbo-config-template.json +18 -3
- package/.one/tools/bump-core-version.js +0 -0
- package/.one/tools/bump-expansion-version.js +0 -0
- package/.one/tools/code-generators.js +0 -0
- package/.one/tools/compression-engine.js +638 -0
- package/.one/tools/content-deduplicator.js +336 -0
- package/.one/tools/convert-wav-to-mp3.js +0 -0
- package/.one/tools/foundation-wizard.js +0 -0
- package/.one/tools/generate-toc.js +0 -0
- package/.one/tools/ingestor/cascade-integration.js +523 -0
- package/.one/tools/ingestor/cli.ts +234 -0
- package/.one/tools/ingestor/context-mapper.ts +604 -0
- package/.one/tools/ingestor/error-handling-monitor.js +742 -0
- package/.one/tools/ingestor/file-discovery.ts +484 -0
- package/.one/tools/ingestor/file-transformer.ts +524 -0
- package/.one/tools/ingestor/ingestor-orchestrator.ts +416 -0
- package/.one/tools/ingestor/package.json +47 -0
- package/.one/tools/ingestor/usage-examples.md +458 -0
- package/.one/tools/lazy-loader.js +489 -0
- package/.one/tools/minimal-generators.js +0 -0
- package/.one/tools/performance-benchmark.js +300 -0
- package/.one/tools/premium-manager.js +0 -0
- package/.one/tools/semantic-release-sync-installer.js +0 -0
- package/.one/tools/size-memory-optimizer.js +475 -0
- package/.one/tools/sync-installer-version.js +0 -0
- package/.one/tools/text-to-speech.js +0 -0
- package/.one/tools/transformative-ai-engine.js +0 -0
- package/.one/workflows/safe-improvement-deployment.yaml +420 -0
- package/CLAUDE.md +30 -0
- package/README.md +41 -10
- package/bin/oneie/index.js +733 -64
- package/one/cache/benchmark-results.json +43 -0
- package/one/cache/file-index.json +12480 -0
- package/one/config/agent-routing.yaml +124 -0
- package/one/config/agent-skills.yaml +451 -0
- package/one/config/cache-config.yaml +304 -0
- package/one/config/feedback-templates.yaml +152 -0
- package/one/config/performance-config.yaml +281 -0
- package/one/config/quality-automation.yaml +405 -0
- package/one/config/routing-logic.yaml +292 -0
- package/one/data/task-registry.yaml +224 -0
- package/one/stories/story-1.10-parallel-task-execution-orchestration.md +119 -0
- package/one/stories/story-3.1-external-repository-foundation.md +374 -0
- package/one/stories/story-3.2-3-levels-architecture-integration.md +449 -0
- package/one/stories/story-3.3-multi-platform-application-development.md +677 -0
- package/one/stories/story-3.4-shared-package-system-ui-components.md +854 -0
- package/one/stories/story-3.5-backend-integration-production-deployment.md +1034 -0
- package/one/tasks/task-1.10.1-design-parallel-execution-architecture.md +108 -0
- package/one/tasks/task-1.10.2-create-task-dependency-mapping-system.md +82 -0
- package/one/tasks/task-1.10.3-build-agent-spawning-orchestration-engine.md +120 -0
- package/one/tasks/task-1.10.4-implement-task-queue-dependency-resolution.md +125 -0
- package/one/tasks/task-1.10.5-create-task-numbering-convention-system.md +542 -0
- package/one/tasks/task-3.1.1-external-repository-creation.md +303 -0
- package/one/tasks/task-3.1.2-turborepo-configuration-optimization.md +402 -0
- package/one/tasks/task-3.1.3-shared-configuration-packages.md +571 -0
- package/one/tasks/task-3.1.4-bun-package-management-optimization.md +627 -0
- package/one/tools/task-numbering-validator.js +429 -0
- package/package.json +1 -1
- package/quality-gate-optimization-analysis.md +260 -0
- package/turbo-benchmark.js +268 -0
- package/turbo-optimization-guide.md +163 -0
- package/turbo-workspace-template.json +83 -0
- package/turbo.json +178 -0
- package/.claude/commands/analyst.md +0 -70
- package/.claude/commands/architect.md +0 -67
- package/.claude/commands/commander.md +0 -78
- package/.claude/commands/deploy.md +0 -68
- package/.claude/commands/dev.md +0 -60
- package/.claude/commands/playbook.md +0 -81
- package/.claude/commands/pm.md +0 -64
- package/.claude/commands/po.md +0 -68
- package/.claude/commands/qa.md +0 -59
- package/.claude/commands/taskmaster.md +0 -85
- package/.claude/commands/ux-expert.md +0 -58
- package/.one/stories/bullstamp-attract-module-complete.md +0 -255
- package/.one/stories/bullstamp-deployment-master-plan.md +0 -518
- package/.one/stories/bullstamp-executive-implementation-summary.md +0 -254
- package/.one/stories/bullstamp-project-status-complete.md +0 -257
- package/.one/stories/obsidian-pandoc-config.md +0 -159
- package/.one/stories/story-1.1-perfect-filesystem-organization.md +0 -270
- package/.one/stories/story-1.1.1.md +0 -136
- package/.one/stories/story-1.1.md +0 -131
- package/.one/stories/story-1.2.md +0 -420
- package/.one/stories/story-1.3.md +0 -177
- package/.one/stories/story-1.4.md +0 -356
- package/.one/stories/story-1.5.md +0 -572
- package/.one/stories/story-1.6.md +0 -481
- package/.one/stories/story-1.7.md +0 -923
- package/.one/stories/story-1.8.md +0 -404
- package/.one/stories/story-2.0.md +0 -132
- package/.one/stories/story-2.1.md +0 -110
- package/.one/stories/story-2.2.md +0 -110
- package/.one/stories/story-2.3.md +0 -112
- package/.one/stories/story-2.4.md +0 -116
- package/.one/stories/story-2.5.md +0 -114
- package/.one/stories/story-3.1.md +0 -298
- package/.one/stories/story-3.10.md +0 -302
- package/.one/stories/story-3.11.md +0 -167
- package/.one/stories/story-3.12.md +0 -235
- package/.one/stories/story-3.13.md +0 -235
- package/.one/stories/story-3.14.md +0 -225
- package/.one/stories/story-3.15.md +0 -238
- package/.one/stories/story-3.16.md +0 -244
- package/.one/stories/story-3.17.md +0 -245
- package/.one/stories/story-3.18.md +0 -248
- package/.one/stories/story-3.2.md +0 -226
- package/.one/stories/story-3.3.md +0 -226
- package/.one/stories/story-3.4.md +0 -226
- package/.one/stories/story-3.5.md +0 -167
- package/.one/stories/story-3.6.md +0 -167
- package/.one/stories/story-3.7.md +0 -181
- package/.one/stories/story-3.8.md +0 -198
- package/.one/stories/story-3.9.md +0 -169
- package/.one/stories/story-4.1.md +0 -245
- package/.one/stories/story-4.2.md +0 -314
- package/.one/stories/story-4.3.md +0 -610
- package/.one/stories/story-4.4.md +0 -931
- package/.one/stories/story-4.5.md +0 -727
- package/.one/stories/story-4.6-consistency.md +0 -175
- package/.one/stories/story-5.1.md +0 -508
- package/.one/stories/story-5.2.md +0 -451
- package/.one/stories/story-5.3.md +0 -405
- package/.one/stories/story-5.4.md +0 -447
- package/.one/stories/story-5.5.md +0 -349
- package/.one/stories/story-5.6.md +0 -445
- package/.one/stories/story-6.1-text-content-engine.md +0 -144
- package/.one/stories/story-6.2-audio-content-engine.md +0 -145
- package/.one/stories/story-6.3-video-content-engine.md +0 -145
- package/.one/stories/story-6.4-visual-content-engine.md +0 -177
- package/.one/stories/story-6.5-cross-platform-distribution.md +0 -188
- package/.one/stories/story-6.6.ai-content-generation-pipeline.md +0 -196
- package/.one/stories/story-6.7-character-consistency-quality-control.md +0 -216
- package/.one/stories/story-6.8-claude-code-content-integration.md +0 -181
- package/.one/stories/story-6.8-content-production-workflows.md +0 -247
- package/.one/stories/story-7.1-implementation.md +0 -128
- package/.one/stories/story-7.1.md +0 -203
- package/.one/stories/story-7.2-implementation.md +0 -147
- package/.one/stories/story-7.2.md +0 -415
- package/.one/stories/story-7.3-implementation.md +0 -159
- package/.one/stories/story-7.3.md +0 -463
- package/.one/stories/story-7.4-implementation.md +0 -154
- package/.one/stories/story-7.4.md +0 -500
- package/.one/stories/story-validation-report.md +0 -169
- package/one/archive-index.json +0 -91
- /package/one/stories/{story-3.1-npx-oneie-turbo-enhancement.md → story-2.1.1-npx-oneie-turbo-enhancement.md} +0 -0
- /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 };
|