oneie 1.8.1 → 2.0.1

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 (663) hide show
  1. package/README.md +913 -567
  2. package/dist/banner.d.ts +2 -0
  3. package/dist/banner.d.ts.map +1 -0
  4. package/dist/banner.js +15 -0
  5. package/dist/banner.js.map +1 -0
  6. package/dist/clone-docs.d.ts +17 -0
  7. package/dist/clone-docs.d.ts.map +1 -0
  8. package/dist/clone-docs.js +62 -0
  9. package/dist/clone-docs.js.map +1 -0
  10. package/dist/clone-frontend.d.ts +12 -0
  11. package/dist/clone-frontend.d.ts.map +1 -0
  12. package/dist/clone-frontend.js +50 -0
  13. package/dist/clone-frontend.js.map +1 -0
  14. package/dist/copy-claude-config.d.ts +2 -0
  15. package/dist/copy-claude-config.d.ts.map +1 -0
  16. package/dist/copy-claude-config.js +30 -0
  17. package/dist/copy-claude-config.js.map +1 -0
  18. package/dist/create-org-profile.d.ts +10 -0
  19. package/dist/create-org-profile.d.ts.map +1 -0
  20. package/dist/create-org-profile.js +136 -0
  21. package/dist/create-org-profile.js.map +1 -0
  22. package/dist/create-user-profile.d.ts +9 -0
  23. package/dist/create-user-profile.d.ts.map +1 -0
  24. package/dist/create-user-profile.js +115 -0
  25. package/dist/create-user-profile.js.map +1 -0
  26. package/dist/index.d.ts +3 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +177 -0
  29. package/dist/index.js.map +1 -0
  30. package/dist/sync-agents.d.ts +5 -0
  31. package/dist/sync-agents.d.ts.map +1 -0
  32. package/dist/sync-agents.js +26 -0
  33. package/dist/sync-agents.js.map +1 -0
  34. package/dist/sync-ontology.d.ts +4 -0
  35. package/dist/sync-ontology.d.ts.map +1 -0
  36. package/dist/sync-ontology.js +38 -0
  37. package/dist/sync-ontology.js.map +1 -0
  38. package/folders.yaml +31 -0
  39. package/package.json +41 -131
  40. package/.claude/.hookignore +0 -67
  41. package/.claude/agents/advocacy-activation-manager.md +0 -685
  42. package/.claude/agents/advocacy-campaign-designer.md +0 -663
  43. package/.claude/agents/analyst.md +0 -483
  44. package/.claude/agents/architect.md +0 -480
  45. package/.claude/agents/bstp-token-strategist.md +0 -667
  46. package/.claude/agents/builder-repo.md +0 -489
  47. package/.claude/agents/builder.md +0 -1182
  48. package/.claude/agents/bullstamp-community-builder.md +0 -574
  49. package/.claude/agents/bullstamp-marketing-orchestrator.md +0 -506
  50. package/.claude/agents/bulltilt-platform-growth.md +0 -567
  51. package/.claude/agents/company-bullstamp-character.md +0 -587
  52. package/.claude/agents/company-bullstamp-community.md +0 -292
  53. package/.claude/agents/company-bullstamp-marketing.md +0 -292
  54. package/.claude/agents/company-bullstamp-token.md +0 -292
  55. package/.claude/agents/company-bulltilt-growth.md +0 -292
  56. package/.claude/agents/content-bibliography-formatter.md +0 -381
  57. package/.claude/agents/content-calendar-planner.md +0 -448
  58. package/.claude/agents/content-chapter-formatter.md +0 -488
  59. package/.claude/agents/content-formatter.md +0 -546
  60. package/.claude/agents/content-image-formatter.md +0 -535
  61. package/.claude/agents/content-introduction-formatter.md +0 -485
  62. package/.claude/agents/content-multiplication-engine.md +0 -556
  63. package/.claude/agents/content-playbook-writer.md +0 -448
  64. package/.claude/agents/content-team-manager.md +0 -622
  65. package/.claude/agents/content-toc-formatter.md +0 -522
  66. package/.claude/agents/core-manager.md +0 -582
  67. package/.claude/agents/core-master.md +0 -403
  68. package/.claude/agents/cross-functional-manager.md +0 -471
  69. package/.claude/agents/crypto-airdrop-strategist.md +0 -602
  70. package/.claude/agents/crypto-analytics-educator.md +0 -553
  71. package/.claude/agents/crypto-community-analyst.md +0 -298
  72. package/.claude/agents/crypto-community-psychologist.md +0 -509
  73. package/.claude/agents/crypto-dex-optimization-expert.md +0 -538
  74. package/.claude/agents/crypto-dex-optimizer.md +0 -292
  75. package/.claude/agents/crypto-diamond-hands.md +0 -292
  76. package/.claude/agents/crypto-ecosystem-expansion-manager.md +0 -554
  77. package/.claude/agents/crypto-market-researcher.md +0 -292
  78. package/.claude/agents/crypto-marketing-orchestrator.md +0 -523
  79. package/.claude/agents/crypto-network-effect-amplifier.md +0 -569
  80. package/.claude/agents/crypto-optimization-analyst.md +0 -554
  81. package/.claude/agents/crypto-strategic-synthesizer.md +0 -517
  82. package/.claude/agents/crypto-team-manager.md +0 -387
  83. package/.claude/agents/crypto-token-analyst.md +0 -278
  84. package/.claude/agents/crypto-viral-content-creator.md +0 -546
  85. package/.claude/agents/crypto-wallet-identification-expert.md +0 -517
  86. package/.claude/agents/crypto-wallet-identifier.md +0 -292
  87. package/.claude/agents/customer-journey-designer.md +0 -481
  88. package/.claude/agents/customer-success-manager.md +0 -581
  89. package/.claude/agents/dev.md +0 -413
  90. package/.claude/agents/documenter.md +0 -546
  91. package/.claude/agents/elevate-marketing-orchestrator.md +0 -410
  92. package/.claude/agents/engineering-architect.md +0 -387
  93. package/.claude/agents/engineering-business-analyst.md +0 -537
  94. package/.claude/agents/engineering-developer.md +0 -387
  95. package/.claude/agents/engineering-director.md +0 -282
  96. package/.claude/agents/engineering-ingestor.md +0 -649
  97. package/.claude/agents/engineering-product-manager.md +0 -537
  98. package/.claude/agents/engineering-product-owner.md +0 -537
  99. package/.claude/agents/engineering-project-coordinator.md +0 -537
  100. package/.claude/agents/engineering-quality-assurance.md +0 -393
  101. package/.claude/agents/engineering-team-manager.md +0 -512
  102. package/.claude/agents/engineering-user-experience.md +0 -387
  103. package/.claude/agents/framework-elevate-manager.md +0 -294
  104. package/.claude/agents/improver.md +0 -763
  105. package/.claude/agents/intelligence-team-manager.md +0 -385
  106. package/.claude/agents/lead-capture-expert.md +0 -466
  107. package/.claude/agents/lead-magnet-creator.md +0 -453
  108. package/.claude/agents/market-research-analyst.md +0 -412
  109. package/.claude/agents/marketing-brand-identity.md +0 -314
  110. package/.claude/agents/marketing-content-hooks.md +0 -450
  111. package/.claude/agents/marketing-content-multiplier.md +0 -326
  112. package/.claude/agents/marketing-content-poster.md +0 -361
  113. package/.claude/agents/marketing-customer-journey.md +0 -326
  114. package/.claude/agents/marketing-director.md +0 -397
  115. package/.claude/agents/marketing-engagement.md +0 -326
  116. package/.claude/agents/marketing-lead-capture.md +0 -326
  117. package/.claude/agents/marketing-lead-magnet.md +0 -326
  118. package/.claude/agents/marketing-network-effects.md +0 -326
  119. package/.claude/agents/marketing-nurture-campaigns.md +0 -326
  120. package/.claude/agents/marketing-share-optimizer.md +0 -326
  121. package/.claude/agents/marketing-team-manager.md +0 -446
  122. package/.claude/agents/marketing-viral-growth.md +0 -201
  123. package/.claude/agents/network-effect-analyst.md +0 -587
  124. package/.claude/agents/npx.md +0 -890
  125. package/.claude/agents/nurture-campaign-manager.md +0 -531
  126. package/.claude/agents/one-master.md +0 -355
  127. package/.claude/agents/one-orchestrator.md +0 -315
  128. package/.claude/agents/one.md +0 -601
  129. package/.claude/agents/playbook-generator.md +0 -503
  130. package/.claude/agents/pm.md +0 -326
  131. package/.claude/agents/po.md +0 -345
  132. package/.claude/agents/qa.md +0 -336
  133. package/.claude/agents/research-foundation-analyst.md +0 -307
  134. package/.claude/agents/research-intelligence-gatherer.md +0 -408
  135. package/.claude/agents/research-market-analyst.md +0 -307
  136. package/.claude/agents/research-team-manager.md +0 -482
  137. package/.claude/agents/sales-environment-optimizer.md +0 -494
  138. package/.claude/agents/sales-team-manager.md +0 -400
  139. package/.claude/agents/sales-upsell-strategist.md +0 -307
  140. package/.claude/agents/service-advocacy-campaigns.md +0 -307
  141. package/.claude/agents/service-advocacy-manager.md +0 -307
  142. package/.claude/agents/service-success-manager.md +0 -307
  143. package/.claude/agents/service-team-manager.md +0 -400
  144. package/.claude/agents/sm.md +0 -327
  145. package/.claude/agents/story-teller.md +0 -473
  146. package/.claude/agents/task-master.md +0 -596
  147. package/.claude/agents/the-bull-character-manager.md +0 -580
  148. package/.claude/agents/tools-playbook-generator.md +0 -489
  149. package/.claude/agents/turbo-repo-builder.md +0 -316
  150. package/.claude/agents/upsell-strategist.md +0 -480
  151. package/.claude/agents/ux-expert.md +0 -335
  152. package/.claude/agents/viral-growth-orchestrator.md +0 -497
  153. package/.claude/claude-code-hooks.development.json +0 -21
  154. package/.claude/claude-code-hooks.json +0 -25
  155. package/.claude/claude-code-hooks.production.json +0 -21
  156. package/.claude/commands/agent.md +0 -104
  157. package/.claude/commands/cascade-status.md +0 -128
  158. package/.claude/commands/ingest.md +0 -290
  159. package/.claude/commands/ingestor.md +0 -136
  160. package/.claude/commands/mission.md +0 -83
  161. package/.claude/commands/npx.md +0 -133
  162. package/.claude/commands/one.md +0 -440
  163. package/.claude/commands/quality-check.md +0 -204
  164. package/.claude/commands/smart-route.md +0 -220
  165. package/.claude/commands/start.md +0 -121
  166. package/.claude/commands/story.md +0 -83
  167. package/.claude/commands/task.md +0 -173
  168. package/.claude/hook-bypass.json +0 -32
  169. package/.claude/one-hook.js +0 -16
  170. package/.claude/settings.local.json +0 -86
  171. package/.mcp.json.disabled +0 -48
  172. package/.obsidian/app.json +0 -10
  173. package/.obsidian/appearance.json +0 -1
  174. package/.obsidian/community-plugins.json +0 -17
  175. package/.obsidian/core-plugins.json +0 -33
  176. package/.obsidian/hotkeys.json +0 -11
  177. package/.obsidian/plugins/copilot/data.json +0 -335
  178. package/.obsidian/plugins/copilot/main.js +0 -1738
  179. package/.obsidian/plugins/copilot/manifest.json +0 -13
  180. package/.obsidian/plugins/copilot/styles.css +0 -1
  181. package/.obsidian/plugins/easy-bake/main.js +0 -361
  182. package/.obsidian/plugins/easy-bake/manifest.json +0 -11
  183. package/.obsidian/plugins/easy-bake/styles.css +0 -10
  184. package/.obsidian/plugins/editing-toolbar/data.json +0 -328
  185. package/.obsidian/plugins/editing-toolbar/main.js +0 -12
  186. package/.obsidian/plugins/editing-toolbar/manifest.json +0 -10
  187. package/.obsidian/plugins/editing-toolbar/styles.css +0 -1338
  188. package/.obsidian/plugins/obsidian-enhancing-export/data.json +0 -60
  189. package/.obsidian/plugins/obsidian-enhancing-export/lua/citefilter.lua +0 -6
  190. package/.obsidian/plugins/obsidian-enhancing-export/lua/markdown+hugo.lua +0 -5
  191. package/.obsidian/plugins/obsidian-enhancing-export/lua/markdown.lua +0 -237
  192. package/.obsidian/plugins/obsidian-enhancing-export/lua/math_block.lua +0 -68
  193. package/.obsidian/plugins/obsidian-enhancing-export/lua/pdf.lua +0 -12
  194. package/.obsidian/plugins/obsidian-enhancing-export/lua/polyfill.lua +0 -61
  195. package/.obsidian/plugins/obsidian-enhancing-export/lua/url.lua +0 -18
  196. package/.obsidian/plugins/obsidian-enhancing-export/main.js +0 -32
  197. package/.obsidian/plugins/obsidian-enhancing-export/manifest.json +0 -10
  198. package/.obsidian/plugins/obsidian-enhancing-export/styles.css +0 -1
  199. package/.obsidian/plugins/obsidian-enhancing-export/textemplate/dissertation.tex +0 -1210
  200. package/.obsidian/plugins/obsidian-enhancing-export/textemplate/neurips.sty +0 -373
  201. package/.obsidian/plugins/obsidian-enhancing-export/textemplate/neurips.tex +0 -187
  202. package/.obsidian/plugins/obsidian-git/data.json +0 -61
  203. package/.obsidian/plugins/obsidian-git/obsidian_askpass.sh +0 -23
  204. package/.obsidian/plugins/terminal/data.json +0 -147
  205. package/.obsidian/plugins/terminal/main.js +0 -192
  206. package/.obsidian/plugins/terminal/manifest.json +0 -14
  207. package/.obsidian/plugins/terminal/styles.css +0 -32
  208. package/.one/checklists/agent-quality-checklist.md +0 -302
  209. package/.one/checklists/architect-checklist.md +0 -443
  210. package/.one/checklists/attract-campaign-checklist.md +0 -444
  211. package/.one/checklists/brand-alignment-checklist.md +0 -191
  212. package/.one/checklists/brand-consistency-checklist.md +0 -378
  213. package/.one/checklists/change-checklist.md +0 -182
  214. package/.one/checklists/channel-coordination-checklist.md +0 -217
  215. package/.one/checklists/content-calendar-checklist.md +0 -190
  216. package/.one/checklists/convert-campaign-checklist.md +0 -426
  217. package/.one/checklists/crypto-ai-influencer-consistency.md +0 -221
  218. package/.one/checklists/crypto-diamond-formation-quality.md +0 -285
  219. package/.one/checklists/crypto-rocket-framework-validation.md +0 -244
  220. package/.one/checklists/done-checklist.md +0 -103
  221. package/.one/checklists/foundation-completeness-checklist.md +0 -222
  222. package/.one/checklists/grow-campaign-checklist.md +0 -380
  223. package/.one/checklists/idea-quality-checklist.md +0 -225
  224. package/.one/checklists/parallel-mission-quality-checklist.md +0 -243
  225. package/.one/checklists/pm-checklist.md +0 -375
  226. package/.one/checklists/po-master-checklist.md +0 -441
  227. package/.one/checklists/product-checklist.md +0 -375
  228. package/.one/checklists/professional-grade-checklist.md +0 -127
  229. package/.one/checklists/story-1-2-implementation-validation-checklist.md +0 -288
  230. package/.one/checklists/story-1-2-quality-assurance-controller.yaml +0 -397
  231. package/.one/checklists/story-as-idea-quality-checklist.md +0 -246
  232. package/.one/checklists/story-dod-checklist.md +0 -101
  233. package/.one/checklists/story-draft-checklist.md +0 -130
  234. package/.one/checklists/story-quality-checklist.md +0 -275
  235. package/.one/checklists/strategic-framework-checklist.md +0 -182
  236. package/.one/checklists/task-quality-checklist.md +0 -296
  237. package/.one/hooks/file-organization-monitor.js +0 -196
  238. package/.one/interface.md +0 -63
  239. package/.one/one-command.js +0 -43
  240. package/.one/ontology/ontology.yaml +0 -501
  241. package/.one/structure.yaml +0 -135
  242. package/.one/tasks/advanced-elicitation.md +0 -119
  243. package/.one/tasks/advocacy-system-design.md +0 -1065
  244. package/.one/tasks/automated-quality-gates.md +0 -282
  245. package/.one/tasks/bull-character-content-calendar.md +0 -241
  246. package/.one/tasks/bullstamp-foundation-synthesis.md +0 -204
  247. package/.one/tasks/capture-page-optimization.md +0 -623
  248. package/.one/tasks/cascade-task-spawning.md +0 -178
  249. package/.one/tasks/company-context-workshop.md +0 -228
  250. package/.one/tasks/completion-validation-system.md +0 -389
  251. package/.one/tasks/conflict-prevention-orchestration.md +0 -133
  252. package/.one/tasks/correct-course.md +0 -73
  253. package/.one/tasks/create-brownfield-story.md +0 -376
  254. package/.one/tasks/create-deep-research-prompt.md +0 -301
  255. package/.one/tasks/create-doc 1.md +0 -79
  256. package/.one/tasks/create-doc.md +0 -79
  257. package/.one/tasks/create-mission-brief.md +0 -94
  258. package/.one/tasks/create-mission.md +0 -181
  259. package/.one/tasks/create-next-story.md +0 -113
  260. package/.one/tasks/create-story.md +0 -147
  261. package/.one/tasks/create-workflow-plan.md +0 -299
  262. package/.one/tasks/crypto-bookwriter-enhancement.md +0 -193
  263. package/.one/tasks/crypto-chapter-content-creation.md +0 -278
  264. package/.one/tasks/crypto-foundation-development.md +0 -155
  265. package/.one/tasks/crypto-multi-format-publishing.md +0 -286
  266. package/.one/tasks/crypto-quality-validation.md +0 -225
  267. package/.one/tasks/customer-avatar-development.md +0 -353
  268. package/.one/tasks/customer-success-program.md +0 -984
  269. package/.one/tasks/doc-migration-task.md +0 -151
  270. package/.one/tasks/document-project.md +0 -350
  271. package/.one/tasks/engagement-sequence-design.md +0 -846
  272. package/.one/tasks/execute-checklist 1.md +0 -93
  273. package/.one/tasks/execute-checklist.md +0 -93
  274. package/.one/tasks/facilitate-brainstorming-session.md +0 -136
  275. package/.one/tasks/foundation-analysis.md +0 -149
  276. package/.one/tasks/generate-ai-frontend-prompt.md +0 -51
  277. package/.one/tasks/hook-content-creation.md +0 -555
  278. package/.one/tasks/index-docs.md +0 -178
  279. package/.one/tasks/kb-mode-interaction.md +0 -77
  280. package/.one/tasks/lead-magnet-development.md +0 -479
  281. package/.one/tasks/market-intelligence-research.md +0 -255
  282. package/.one/tasks/multi-agent-coordination.md +0 -224
  283. package/.one/tasks/nurture-campaign-creation.md +0 -781
  284. package/.one/tasks/parallel-agent-launcher.md +0 -336
  285. package/.one/tasks/parallel-task-decomposition.md +0 -74
  286. package/.one/tasks/performance-metrics-dashboard.md +0 -550
  287. package/.one/tasks/progress-monitoring-dashboard.md +0 -414
  288. package/.one/tasks/quality-failure-prevention.md +0 -507
  289. package/.one/tasks/quality-scoring-framework.md +0 -122
  290. package/.one/tasks/refinement-cycle-automation.md +0 -493
  291. package/.one/tasks/review-story.md +0 -164
  292. package/.one/tasks/sales-environment-audit.md +0 -806
  293. package/.one/tasks/scoring-automation-engine.md +0 -358
  294. package/.one/tasks/shard-doc.md +0 -191
  295. package/.one/tasks/story-quality.md +0 -219
  296. package/.one/tasks/story-qualtiy.md +0 -225
  297. package/.one/tasks/strategic-alignment-synthesis.md +0 -414
  298. package/.one/tasks/task-dependency-resolver.md +0 -301
  299. package/.one/tasks/task-quality.md +0 -232
  300. package/.one/tasks/task-queue-management.md +0 -373
  301. package/.one/tasks/update-workflow-plan.md +0 -252
  302. package/.one/tasks/upsell-strategy-development.md +0 -1139
  303. package/.one/tasks/validate-next-story.md +0 -134
  304. package/.one/tasks/version-control-coordinator.md +0 -354
  305. package/.one/teams/team-all.yaml +0 -14
  306. package/.one/teams/team-bullstamp.yaml +0 -12
  307. package/.one/teams/team-crypto-marketing.yaml +0 -56
  308. package/.one/teams/team-fullstack.yaml +0 -18
  309. package/.one/teams/team-ide-minimal.yaml +0 -10
  310. package/.one/teams/team-marketing.yaml +0 -21
  311. package/.one/teams/team-no-ui.yaml +0 -13
  312. package/.one/templates/advocacy-campaign-blueprint-tmpl.yaml +0 -1400
  313. package/.one/templates/ai-influencer-methodology.yaml +0 -299
  314. package/.one/templates/architecture-tmpl.yaml +0 -650
  315. package/.one/templates/brainstorming-output-tmpl.yaml +0 -156
  316. package/.one/templates/brownfield-architecture-tmpl.yaml +0 -476
  317. package/.one/templates/brownfield-prd-tmpl.yaml +0 -280
  318. package/.one/templates/bullstamp-playbook-config.yaml +0 -251
  319. package/.one/templates/bun-workspace-guide-template.md +0 -188
  320. package/.one/templates/bunfig-template.toml +0 -95
  321. package/.one/templates/capture-page-template-tmpl.yaml +0 -1498
  322. package/.one/templates/channel-content-framework-tmpl.yaml +0 -289
  323. package/.one/templates/company-foundation-brief-tmpl.yaml +0 -782
  324. package/.one/templates/competitor-analysis-tmpl.yaml +0 -293
  325. package/.one/templates/content-theme-planning-tmpl.yaml +0 -319
  326. package/.one/templates/crypto-chapter-structure.yaml +0 -331
  327. package/.one/templates/customer-avatar-profile-tmpl.yaml +0 -1055
  328. package/.one/templates/customer-success-program-tmpl.yaml +0 -1360
  329. package/.one/templates/daily-content-calendar-tmpl.yaml +0 -169
  330. package/.one/templates/diamond-formation-protocol.yaml +0 -293
  331. package/.one/templates/doc-template.md +0 -325
  332. package/.one/templates/engagement-sequence-plan-tmpl.yaml +0 -2126
  333. package/.one/templates/front-end-architecture-tmpl.yaml +0 -206
  334. package/.one/templates/fullstack-architecture-tmpl.yaml +0 -805
  335. package/.one/templates/hook-content-framework-tmpl.yaml +0 -1409
  336. package/.one/templates/lead-magnet-blueprint-tmpl.yaml +0 -1051
  337. package/.one/templates/market-analysis-report-tmpl.yaml +0 -1052
  338. package/.one/templates/market-research-tmpl.yaml +0 -252
  339. package/.one/templates/mission-tmpl.yaml +0 -203
  340. package/.one/templates/monthly-strategy-calendar-tmpl.yaml +0 -302
  341. package/.one/templates/nurture-campaign-architecture-tmpl.yaml +0 -1202
  342. package/.one/templates/product-tmpl.yaml +0 -202
  343. package/.one/templates/project-brief-tmpl.yaml +0 -221
  344. package/.one/templates/repository-template-architecture.yaml +0 -556
  345. package/.one/templates/sales-optimization-audit-tmpl.yaml +0 -1094
  346. package/.one/templates/story-rocket-tmpl.yaml +0 -244
  347. package/.one/templates/story-tmpl.yaml +0 -153
  348. package/.one/templates/strategic-alignment-blueprint-tmpl.yaml +0 -752
  349. package/.one/templates/turbo-monorepo-template.yaml +0 -260
  350. package/.one/templates/upsell-strategy-framework-tmpl.yaml +0 -1274
  351. package/.one/templates/weekly-campaign-calendar-tmpl.yaml +0 -277
  352. package/.one/tools/README-bull-character-formats.md +0 -272
  353. package/.one/tools/advanced-quality-optimizer.js +0 -519
  354. package/.one/tools/agent-optimization-engine.js +0 -727
  355. package/.one/tools/bin/one-agent.js +0 -25
  356. package/.one/tools/bin/one-mission.js +0 -25
  357. package/.one/tools/bin/one-playbook.js +0 -25
  358. package/.one/tools/bin/one-story.js +0 -25
  359. package/.one/tools/bin/one-team.js +0 -25
  360. package/.one/tools/bin/one-tools.js +0 -25
  361. package/.one/tools/builders/web-builder.js +0 -681
  362. package/.one/tools/bull-character-complete-pdf.py +0 -534
  363. package/.one/tools/bull-character-docx-epub.py +0 -245
  364. package/.one/tools/bull-character-master-pdf.py +0 -521
  365. package/.one/tools/bull-character-multi-format.py +0 -340
  366. package/.one/tools/bump-all-versions.js +0 -107
  367. package/.one/tools/bump-core-version.js +0 -57
  368. package/.one/tools/bump-expansion-version.js +0 -78
  369. package/.one/tools/calendar-management.md +0 -281
  370. package/.one/tools/claude-one-command.md +0 -36
  371. package/.one/tools/cli.js +0 -2294
  372. package/.one/tools/code-generators.js +0 -1110
  373. package/.one/tools/community/claudelog-pattern-analyzer.js +0 -515
  374. package/.one/tools/community/claudelog-pattern-library.json +0 -370
  375. package/.one/tools/community/community-validation-loops.js +0 -872
  376. package/.one/tools/community/plan-mode-orchestrator.js +0 -848
  377. package/.one/tools/community/terminal-native-integration.js +0 -659
  378. package/.one/tools/compression-engine.js +0 -638
  379. package/.one/tools/consciousness/system-consciousness-engine.js +0 -684
  380. package/.one/tools/content/claude-code-content-generator.js +0 -474
  381. package/.one/tools/content/one-content-command.js +0 -289
  382. package/.one/tools/content-deduplicator.js +0 -336
  383. package/.one/tools/context/story-1-2-context-intelligence-engine.yaml +0 -354
  384. package/.one/tools/convert-wav-to-mp3.js +0 -195
  385. package/.one/tools/convert_book.py +0 -331
  386. package/.one/tools/coordination/agent-mesh-networks.js +0 -851
  387. package/.one/tools/debug/debug-naming.mjs +0 -7
  388. package/.one/tools/debug/debug-rules.mjs +0 -6
  389. package/.one/tools/demo/bull-content-engine-demo.js +0 -273
  390. package/.one/tools/demo/claude-code-integration-demo.js +0 -222
  391. package/.one/tools/demo/live-demo.js +0 -285
  392. package/.one/tools/demo/showcase-demo.js +0 -302
  393. package/.one/tools/demo/simple-bull-demo.js +0 -186
  394. package/.one/tools/enhanced-pdf-converter.py +0 -449
  395. package/.one/tools/final-optimization-report.js +0 -235
  396. package/.one/tools/foundation-wizard.js +0 -331
  397. package/.one/tools/frictionless-installer.js +0 -230
  398. package/.one/tools/generate-toc.js +0 -113
  399. package/.one/tools/hooks/claude-code-hooks-validation-pattern.md +0 -211
  400. package/.one/tools/html_to_pdf.py +0 -178
  401. package/.one/tools/ingestor/cascade-integration.js +0 -523
  402. package/.one/tools/ingestor/cli.ts +0 -234
  403. package/.one/tools/ingestor/context-mapper.ts +0 -604
  404. package/.one/tools/ingestor/error-handling-monitor.js +0 -742
  405. package/.one/tools/ingestor/file-discovery.ts +0 -484
  406. package/.one/tools/ingestor/file-transformer.ts +0 -524
  407. package/.one/tools/ingestor/ingestor-orchestrator.ts +0 -416
  408. package/.one/tools/ingestor/package.json +0 -47
  409. package/.one/tools/ingestor/usage-examples.md +0 -458
  410. package/.one/tools/installer/README.md +0 -8
  411. package/.one/tools/installer/bin/one.js +0 -438
  412. package/.one/tools/installer/config/ide-agent-config.yaml +0 -58
  413. package/.one/tools/installer/config/install.config.yaml +0 -92
  414. package/.one/tools/installer/lib/config-loader.js +0 -253
  415. package/.one/tools/installer/lib/file-manager.js +0 -379
  416. package/.one/tools/installer/lib/ide-setup.js +0 -829
  417. package/.one/tools/installer/lib/installer.js +0 -1764
  418. package/.one/tools/installer/package-lock.json +0 -906
  419. package/.one/tools/installer/package.json +0 -43
  420. package/.one/tools/intelligence/mission-intelligence-engine.js +0 -955
  421. package/.one/tools/lazy-loader.js +0 -489
  422. package/.one/tools/lib/dependency-resolver.js +0 -179
  423. package/.one/tools/lib/template-processor.js +0 -748
  424. package/.one/tools/lib/yaml-utils.js +0 -29
  425. package/.one/tools/md-assets/web-agent-startup-instructions.md +0 -39
  426. package/.one/tools/merge-bull-pdfs.py +0 -127
  427. package/.one/tools/minimal-generators.js +0 -714
  428. package/.one/tools/monitoring/monitoring-config.json +0 -31
  429. package/.one/tools/monitoring/performance-dashboard.js +0 -96
  430. package/.one/tools/monitoring/real-time-dashboard.js +0 -610
  431. package/.one/tools/npx.js +0 -41
  432. package/.one/tools/one-cli.js +0 -270
  433. package/.one/tools/package-bull-character.py +0 -238
  434. package/.one/tools/pdf-merger.py +0 -94
  435. package/.one/tools/performance/context-sharing-optimizer.js +0 -584
  436. package/.one/tools/performance/coordination-latency-optimizer.js +0 -617
  437. package/.one/tools/performance/intelligent-caching-system.js +0 -683
  438. package/.one/tools/performance/parallel-execution-optimizer.js +0 -524
  439. package/.one/tools/performance/performance-benchmark.js +0 -743
  440. package/.one/tools/performance/performance-optimization-summary.md +0 -264
  441. package/.one/tools/performance/resource-usage-optimizer.js +0 -634
  442. package/.one/tools/performance-benchmark.js +0 -300
  443. package/.one/tools/pilot-community-launch.js +0 -487
  444. package/.one/tools/playbook-generator/PRODUCTION-SUMMARY.md +0 -138
  445. package/.one/tools/playbook-generator/README.md +0 -314
  446. package/.one/tools/playbook-generator/apple-book-style.css +0 -129
  447. package/.one/tools/playbook-generator/bin/analyze-folder.js +0 -259
  448. package/.one/tools/playbook-generator/bin/contents-based-generator.js +0 -116
  449. package/.one/tools/playbook-generator/bin/debug-generator.js +0 -74
  450. package/.one/tools/playbook-generator/bin/generate-books.js +0 -308
  451. package/.one/tools/playbook-generator/bin/generate-chapters.js +0 -74
  452. package/.one/tools/playbook-generator/bin/generate-clean.js +0 -281
  453. package/.one/tools/playbook-generator/bin/generate-contents.js +0 -287
  454. package/.one/tools/playbook-generator/bin/playbook-gen +0 -322
  455. package/.one/tools/playbook-generator/bin/playbook-gen.js +0 -279
  456. package/.one/tools/playbook-generator/book-generation-system.md +0 -363
  457. package/.one/tools/playbook-generator/commands/contents.js +0 -198
  458. package/.one/tools/playbook-generator/commands/generate-chapters.js +0 -216
  459. package/.one/tools/playbook-generator/commands/generate-complete-package.js +0 -93
  460. package/.one/tools/playbook-generator/commands/generate-from-chapters.js +0 -49
  461. package/.one/tools/playbook-generator/commands/generate.js +0 -275
  462. package/.one/tools/playbook-generator/docs/API.md +0 -579
  463. package/.one/tools/playbook-generator/docs/MIGRATION.md +0 -404
  464. package/.one/tools/playbook-generator/docs/README.md +0 -502
  465. package/.one/tools/playbook-generator/index.js +0 -102
  466. package/.one/tools/playbook-generator/install.sh +0 -107
  467. package/.one/tools/playbook-generator/lib/apple-book-generator.js +0 -552
  468. package/.one/tools/playbook-generator/lib/book-generator.js +0 -414
  469. package/.one/tools/playbook-generator/lib/chapters-generator.js +0 -292
  470. package/.one/tools/playbook-generator/lib/contents-generator.js +0 -465
  471. package/.one/tools/playbook-generator/lib/cover-integrator.js +0 -373
  472. package/.one/tools/playbook-generator/lib/errors.js +0 -198
  473. package/.one/tools/playbook-generator/lib/flat-generator.js +0 -998
  474. package/.one/tools/playbook-generator/lib/folder-analyzer.js +0 -429
  475. package/.one/tools/playbook-generator/lib/generator.js +0 -1268
  476. package/.one/tools/playbook-generator/lib/manager.js +0 -322
  477. package/.one/tools/playbook-generator/lib/pdf-cover-generator.js +0 -145
  478. package/.one/tools/playbook-generator/lib/processor.js +0 -816
  479. package/.one/tools/playbook-generator/lib/security.js +0 -199
  480. package/.one/tools/playbook-generator/lib/utils.js +0 -173
  481. package/.one/tools/playbook-generator/lib/wizard.js +0 -448
  482. package/.one/tools/playbook-generator/package.json +0 -51
  483. package/.one/tools/playbook-generator/templates/apple-book.tex +0 -249
  484. package/.one/tools/playbook-generator/templates/beautiful-book.tex +0 -136
  485. package/.one/tools/playbook-generator/templates/book-config-template.yaml +0 -24
  486. package/.one/tools/playbook-generator/templates/industry-template-structure.md +0 -156
  487. package/.one/tools/playbook-generator/templates/universal-book.tex +0 -157
  488. package/.one/tools/premium-manager.js +0 -371
  489. package/.one/tools/professional-community-manager.js +0 -505
  490. package/.one/tools/quality/emergent-quality-systems.js +0 -743
  491. package/.one/tools/reports/mission-3-task-4-final-report-2025-08-31T06-33-55-208Z.json +0 -76
  492. package/.one/tools/scripts/setup-bull-engine.sh +0 -321
  493. package/.one/tools/semantic-release-sync-installer.js +0 -31
  494. package/.one/tools/simple-pdf-merge.py +0 -48
  495. package/.one/tools/simple_convert.py +0 -381
  496. package/.one/tools/size-memory-optimizer.js +0 -475
  497. package/.one/tools/spiral-automation/README.md +0 -204
  498. package/.one/tools/spiral-automation/agents/customer-intelligence-agent.js +0 -887
  499. package/.one/tools/spiral-automation/agents/foundation-synthesizer.js +0 -731
  500. package/.one/tools/spiral-automation/agents/market-research-agent.js +0 -915
  501. package/.one/tools/spiral-automation/agents/web-scraper-agent.js +0 -759
  502. package/.one/tools/spiral-automation/cli.js +0 -183
  503. package/.one/tools/spiral-automation/dashboard/analytics-visualizer.js +0 -780
  504. package/.one/tools/spiral-automation/dashboard/dashboard-orchestrator.js +0 -582
  505. package/.one/tools/spiral-automation/dashboard/progress-dashboard.js +0 -425
  506. package/.one/tools/spiral-automation/dashboard/progress-tracker.js +0 -576
  507. package/.one/tools/spiral-automation/engine/spiral-automation-engine.js +0 -1016
  508. package/.one/tools/spiral-automation/spiral-demo.js +0 -483
  509. package/.one/tools/spiral-automation/templates/game-levels.yaml +0 -903
  510. package/.one/tools/story-1-2-story-generation-orchestrator.yaml +0 -538
  511. package/.one/tools/story-generation-orchestrator-validation.md +0 -430
  512. package/.one/tools/story-writer.sh +0 -13
  513. package/.one/tools/sync-installer-version.js +0 -34
  514. package/.one/tools/task-completion-summary.md +0 -143
  515. package/.one/tools/templates/apple-book-parts.css +0 -367
  516. package/.one/tools/templates/apple-book-parts.tex +0 -180
  517. package/.one/tools/templates/apple-book-simple.tex +0 -144
  518. package/.one/tools/templates/apple-book.css +0 -390
  519. package/.one/tools/templates/apple-book.tex +0 -207
  520. package/.one/tools/templates/enhanced-epub.css +0 -231
  521. package/.one/tools/templates/universal-book.tex +0 -240
  522. package/.one/tools/text-to-speech.js +0 -343
  523. package/.one/tools/transformative-ai-engine.js +0 -805
  524. package/.one/tools/update-expansion-version.js +0 -54
  525. package/.one/tools/upgraders/v3-to-v4-upgrader.js +0 -763
  526. package/.one/tools/version-bump.js +0 -79
  527. package/.one/tools/viral-growth/analytics-dashboard.js +0 -934
  528. package/.one/tools/viral-growth/cli.js +0 -459
  529. package/.one/tools/viral-growth/content-multiplier.js +0 -349
  530. package/.one/tools/viral-growth/scientific-validation.js +0 -1010
  531. package/.one/tools/yaml-format.js +0 -240
  532. package/.one/workflows/automated-completion-loops.yaml +0 -392
  533. package/.one/workflows/bullfm.yaml +0 -303
  534. package/.one/workflows/cascade-coordination.yaml +0 -382
  535. package/.one/workflows/cascade-orchestration-system.yaml +0 -417
  536. package/.one/workflows/cascade-story-spawning-protocol.yaml +0 -104
  537. package/.one/workflows/cascade-workflow-implementation.yaml +0 -456
  538. package/.one/workflows/concurrent-task-orchestration-system.yaml +0 -375
  539. package/.one/workflows/content-engine.yaml +0 -340
  540. package/.one/workflows/continuous-validation-system.yaml +0 -322
  541. package/.one/workflows/coordination-rules.yaml +0 -124
  542. package/.one/workflows/coordination.yaml +0 -437
  543. package/.one/workflows/crypto-chapter-enhancement-workflow.yaml +0 -163
  544. package/.one/workflows/crypto-playbook-generation.yaml +0 -158
  545. package/.one/workflows/dependency-manager.yaml +0 -222
  546. package/.one/workflows/design.yaml +0 -197
  547. package/.one/workflows/developer-experience-optimization.yaml +0 -283
  548. package/.one/workflows/diamond-formation-implementation.yaml +0 -189
  549. package/.one/workflows/dynamic-personalization-matrix.yaml +0 -197
  550. package/.one/workflows/elastic-agent-pool-management.yaml +0 -344
  551. package/.one/workflows/elevate-brownfield-workflow.yaml +0 -372
  552. package/.one/workflows/elevate-greenfield-workflow.yaml +0 -211
  553. package/.one/workflows/engineering.yaml +0 -431
  554. package/.one/workflows/enhance-service.yaml +0 -187
  555. package/.one/workflows/enter-existing.yaml +0 -297
  556. package/.one/workflows/execution-engine.yaml +0 -267
  557. package/.one/workflows/fallback-rules.yaml +0 -192
  558. package/.one/workflows/foundation-workflow.yaml +0 -192
  559. package/.one/workflows/greenfield-fullstack.yaml +0 -240
  560. package/.one/workflows/greenfield-service.yaml +0 -206
  561. package/.one/workflows/greenfield-ui.yaml +0 -235
  562. package/.one/workflows/mission-to-story-spawning.yaml +0 -207
  563. package/.one/workflows/optimization-report.yaml +0 -249
  564. package/.one/workflows/parallel-cascade-architecture.yaml +0 -460
  565. package/.one/workflows/parallel-cascade-orchestration.yaml +0 -516
  566. package/.one/workflows/parallel-deployment-system.yaml +0 -363
  567. package/.one/workflows/parallel-story-orchestration.yaml +0 -359
  568. package/.one/workflows/performance-metrics.yaml +0 -238
  569. package/.one/workflows/quality-gate-integration-strategy.yaml +0 -431
  570. package/.one/workflows/resource-optimizer.yaml +0 -236
  571. package/.one/workflows/safe-improvement-deployment.yaml +0 -420
  572. package/.one/workflows/speed-patterns.yaml +0 -266
  573. package/.one/workflows/speed-router.yaml +0 -223
  574. package/.one/workflows/story-1-2-task-master-handoff.yaml +0 -316
  575. package/.one/workflows/story-1-2-team-coordination-hub.yaml +0 -301
  576. package/.one/workflows/story-to-mission-spawning-engine.yaml +0 -364
  577. package/.one/workflows/story-to-task-decomposition.yaml +0 -226
  578. package/.one/workflows/success-metrics.yaml +0 -196
  579. package/.one/workflows/task-to-agent-assignment.yaml +0 -247
  580. package/.one/workflows/track-configs.yaml +0 -225
  581. package/.one/workflows/validation-suite.yaml +0 -233
  582. package/.one/workflows/workflow-engineering.md +0 -283
  583. package/.one/workflows/workflow-marketing.md +0 -265
  584. package/.one/workflows/working-in-the-brownfield.md +0 -361
  585. package/.prettierignore +0 -21
  586. package/.prettierrc +0 -23
  587. package/.releaserc.json +0 -18
  588. package/.repomixignore +0 -102
  589. package/.vscode/settings.json +0 -50
  590. package/CLAUDE.md +0 -833
  591. package/CLI-UPGRADE.md +0 -266
  592. package/CONTRIBUTING.md +0 -323
  593. package/INSTALL.md +0 -151
  594. package/bin/folders.yaml +0 -52
  595. package/bin/oneie/index.js +0 -187
  596. package/one/checklists/mission.md +0 -239
  597. package/one/company/brand.md +0 -36
  598. package/one/company/company.md +0 -141
  599. package/one/config/agent-routing.yaml +0 -124
  600. package/one/config/agent-skills.yaml +0 -451
  601. package/one/config/cache-config.yaml +0 -304
  602. package/one/config/feedback-templates.yaml +0 -152
  603. package/one/config/performance-config.yaml +0 -281
  604. package/one/config/quality-automation.yaml +0 -405
  605. package/one/config/routing-logic.yaml +0 -292
  606. package/one/data/spiral-ontology.md +0 -461
  607. package/one/data/task-registry.yaml +0 -224
  608. package/one/diagram.md +0 -232
  609. package/one/dsl.md +0 -605
  610. package/one/manifest.md +0 -143
  611. package/one/mcp.md +0 -212
  612. package/one/me/me.md +0 -135
  613. package/one/missions/mission-4.yaml +0 -343
  614. package/one/one.md +0 -549
  615. package/one/one.yaml +0 -589
  616. package/one/ontology.md +0 -687
  617. package/one/prompts/-SystemPrompt.md +0 -121
  618. package/one/prompts/BookChapterStructure.md +0 -181
  619. package/one/prompts/BookRewriter.md +0 -106
  620. package/one/prompts/Company 1.md +0 -225
  621. package/one/prompts/Company.md +0 -188
  622. package/one/prompts/Customer.md +0 -96
  623. package/one/prompts/CustomerDeepResearch.md +0 -86
  624. package/one/prompts/DeepResearch.md +0 -96
  625. package/one/prompts/Educate.md +0 -100
  626. package/one/prompts/Engage - Copywriter.md +0 -72
  627. package/one/prompts/Engage - Pages.md +0 -125
  628. package/one/prompts/Engage.md +0 -76
  629. package/one/prompts/Foundation.md +0 -132
  630. package/one/prompts/Gift.md +0 -173
  631. package/one/prompts/Identify.md +0 -97
  632. package/one/prompts/Market.md +0 -96
  633. package/one/prompts/MarketDeepResearch.md +0 -175
  634. package/one/prompts/Nurture.md +0 -130
  635. package/one/prompts/Optimize.md +0 -134
  636. package/one/prompts/Prompts.md +0 -167
  637. package/one/prompts/Sell.md +0 -101
  638. package/one/prompts/SellPrompts.md +0 -184
  639. package/one/prompts/Share.md +0 -143
  640. package/one/prompts/Stop.md +0 -214
  641. package/one/prompts/StopElements.md +0 -131
  642. package/one/prompts/Upsell.md +0 -95
  643. package/one/prompts/business.md +0 -1
  644. package/one/prompts/content-playbook-writer-prompts.md +0 -250
  645. package/one/prompts/rocket.md +0 -1664
  646. package/one/prompts/system.md +0 -418
  647. package/one/stories/story-1.1-agent-one-mission-system.md +0 -365
  648. package/one/stories/story-1.2-engineering-director-system.md +0 -430
  649. package/one/stories/story-1.3-quality-refinement-system.md +0 -367
  650. package/one/stories/story-1.4-parallel-execution-framework.md +0 -578
  651. package/one/stories/story-1.5-completion-system.md +0 -676
  652. package/one/stories/story-1.6-engineering-agents-cascade-integration.md +0 -531
  653. package/one/stories/story-3.1-agent-ontology-systematic-update.md +0 -267
  654. package/one/stories/story-3.2-agent-enhancement-rocket-integration.md +0 -148
  655. package/one/tasks/mission-3-task-4-optimization-report.json +0 -1225
  656. package/one/tasks/task-1.1-1-enhance-framework-overview.md +0 -197
  657. package/one/tasks/task-1.1-2-user-configuration-template.md +0 -225
  658. package/one/tasks/task-1.1-3-company-profile-structure.md +0 -304
  659. package/one/tasks/task-1.1-4-mission-creation-automation.md +0 -312
  660. package/one/tasks/task-1.1-5-mission-template-enhancement.md +0 -447
  661. package/one/tasks/task-1.1-6-mission-quality-gate.md +0 -359
  662. package/one/tasks/task-1.1-7-mission-quality-checklist.md +0 -555
  663. package/one/workflow.md +0 -69
package/.one/tools/cli.js DELETED
@@ -1,2294 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { Command } from 'commander';
4
- import { promises as fs } from 'fs';
5
- import path from 'path';
6
- import { fileURLToPath } from 'url';
7
- import process from 'process';
8
-
9
- const __filename = fileURLToPath(import.meta.url);
10
- const __dirname = path.dirname(__filename);
11
- const program = new Command();
12
-
13
- // Responsive Display Functions
14
- function getTerminalWidth() {
15
- // Check environment variable first, then stdout.columns, then default to 80
16
- return parseInt(process.env.COLUMNS) || process.stdout.columns || 80;
17
- }
18
-
19
- function createResponsiveLogo() {
20
- const width = getTerminalWidth();
21
-
22
- if (width < 70) {
23
- // Compact logo for small screens
24
- return `
25
- 🌟 ONE Universal AI System v1.0.2
26
- Simple blocks. Infinite possibilities.
27
-
28
- From homework to world domination - same system, infinite scale.
29
-
30
- ╔══════════════════════════════════════════════════╗
31
- ║ ║
32
- ║ ██████ ███ ██ █████ 🎯 ONE ║
33
- ║ ██ ██ ████ ██ ██ Still Hiring ║
34
- ║ ██ ██ ██ ██ ██ █████ Humans? ║
35
- ║ ██ ██ ██ ████ ██ ║
36
- ║ ██████ ██ ███ █████ ATTRACT>CONVERT>GROW║
37
- ║ With AI Agents ║
38
- ║ https://one.ie/ ║
39
- ║ ║
40
- ╚══════════════════════════════════════════════════╝`;
41
- } else if (width < 120) {
42
- // Medium logo for standard screens
43
- return `
44
- 🌟 ONE Universal AI System v1.0.2
45
- Simple blocks. Infinite possibilities.
46
-
47
- From homework to world domination - same system, infinite scale.
48
-
49
- ╔══════════════════════════════════════════════════════════════════╗
50
- ║ ║
51
- ║ ██████╗ ███╗ ██╗███████╗ 🎯 ONE Framework ║
52
- ║ ██╔═══██╗████╗ ██║██╔════╝ Still Hiring Humans? ║
53
- ║ ██║ ██║██╔██╗ ██║█████╗ ║
54
- ║ ██║ ██║██║╚██╗██║██╔══╝ ATTRACT > CONVERT > GROW ║
55
- ║ ╚██████╔╝██║ ╚████║███████╗ With AI Agents ║
56
- ║ ╚═════╝ ╚═╝ ╚═══╝╚══════╝ https://one.ie/ ║
57
- ║ ║
58
- ╚══════════════════════════════════════════════════════════════════╝`;
59
- } else {
60
- // Full logo for large screens
61
- return `
62
- ╔══════════════════════════════════════════════════════════════════════════════╗
63
- ║ ║
64
- ║ 🌟 ONE Universal AI System v1.0.2 ║
65
- ║ Simple blocks. Infinite possibilities. ║
66
- ║ ║
67
- ║ From homework to world domination - same system, infinite scale. ║
68
- ║ ║
69
- ╚══════════════════════════════════════════════════════════════════════════════╝
70
-
71
- ╔════════════════════════════════════════════════════════════════════╗
72
- ║ ║
73
- ║ ██████╗ ███╗ ██╗███████╗ ┌─────────────────────────┐ ║
74
- ║ ██╔═══██╗████╗ ██║██╔════╝ │ Still Hiring Humans? │ ║
75
- ║ ██║ ██║██╔██╗ ██║█████╗ │ │ ║
76
- ║ ██║ ██║██║╚██╗██║██╔══╝ └─────────────────────────┘ ║
77
- ║ ╚██████╔╝██║ ╚████║███████╗ 🎯 ATTRACT > CONVERT > GROW ║
78
- ║ ╚═════╝ ╚═╝ ╚═══╝╚══════╝ With AI Agents ║
79
- ║ https://one.ie/ ║
80
- ║ ║
81
- ╚════════════════════════════════════════════════════════════════════╝`;
82
- }
83
- }
84
-
85
- function createResponsiveMenu() {
86
- const width = getTerminalWidth();
87
-
88
- if (width < 70) {
89
- // Compact menu for small screens
90
- return `
91
- ┌─────────────────────────────────────────────────┐
92
- │ 🤝 JOIN AI AGENT TEAMS │
93
- ├─────────────────────────────────────────────────┤
94
- │ │
95
- │ 💼 TEAMS: │
96
- │ [1] 🔬 Research [2] 📝 Content │
97
- │ [3] 📈 Marketing [4] 💰 Sales │
98
- │ [5] 🤝 Service [6] 🎨 Design │
99
- │ [7] 🛠️ Engineering [8] 🎓 Education │
100
- │ [9] 🧠 Intelligence │
101
- │ │
102
- │ 🏗️ MENU: │
103
- │ [H] 👥 Humans [A] 🤖 Agents │
104
- │ [T] 🏢 Teams [t] 🛠️ Tools │
105
- │ [L] 📚 Stories [W] 🔄 Workflows │
106
- │ │
107
- │ 📚 STUDIO: │
108
- │ [i] 💡 Ideas [w] 📄 Stories │
109
- │ [P] 📊 Playbooks [B] 📖 Books │
110
- │ [D] 📋 Templates │
111
- │ │
112
- │ 🎯 MISSION: │
113
- │ [O] 🎭 Coordinate [M] 🧙 Tasks │
114
- │ [F] 🌊 Flows │
115
- │ │
116
- │ ℹ️ PLATFORM: │
117
- │ [?] ❓ Help [K] 📚 Knowledge │
118
- │ [S] 📈 Status [Q] 🚪 Exit │
119
- │ │
120
- └─────────────────────────────────────────────────┘`;
121
- } else {
122
- // Full menu for larger screens
123
- return `
124
- ┌─────────────────────────────────────────────────────────────────┐
125
- │ 🤝 JOIN EXPERT TEAMS OF AI AGENTS AND HUMANS │
126
- ├─────────────────────────────────────────────────────────────────┤
127
- │ │
128
- │ 💼 TEAMS: │
129
- │ [1] 🔬 Research - Deep insights & market intelligence │
130
- │ [2] 📝 Content - Stories, books & compelling copy │
131
- │ [3] 📈 Marketing - Viral growth & brand strategies │
132
- │ [4] 💰 Sales - Revenue acceleration & deal closing │
133
- │ [5] 🤝 Service - Customer success & experience design │
134
- │ [6] 🎨 Design - Beautiful interfaces & visual identity │
135
- │ [7] 🛠️ Engineering - Full-stack development & architecture │
136
- │ [8] 🎓 Education - Learning experiences & knowledge scale │
137
- │ [9] 🧠 Intelligence - Data science & predictive modeling │
138
- │ │
139
- │ 🏗️ MENU: │
140
- │ [H] 👥 Humans - Connect with our global community │
141
- │ [A] 🤖 Agents - 18 specialized AI personalities │
142
- │ [T] 🏢 Teams - Cross-functional collaboration hubs │
143
- │ [t] 🛠️ Tools - CLI, GitHub, shadcn/ui, Convex, IDE │
144
- │ [L] 📚 Listen to Stories - Tell stories │
145
- │ [W] 🔄 Workflows - Proven business methodologies │
146
- │ │
147
- │ 📚 STUDIO: │
148
- │ [i] 💡 What's Your Idea? - Capture creative vision │
149
- │ [w] 📄 Write a Story - Narratives & case studies │
150
- │ [P] 📊 Create a Playbook - Custom industry guides │
151
- │ [B] 📖 Publish a Book - Complete publications (PDF/EPUB) │
152
- │ [D] 📋 Use Template - Professional document frameworks │
153
- │ │
154
- │ 🎯 MISSION CONTROL: │
155
- │ [O] 🎭 Coordinate - Multi-agent coordination │
156
- │ [M] 🧙 Tasks - Direct task execution │
157
- │ [F] 🌊 Flows - Custom workflow creation │
158
- │ │
159
- │ ℹ️ PLATFORM: │
160
- │ [?] ❓ Help - Complete command reference │
161
- │ [K] 📚 Knowledge - ONE Playbookology & frameworks │
162
- │ [S] 📈 Status - Your projects & progress │
163
- │ [Q] 🚪 Exit - Leave platform │
164
- │ │
165
- └─────────────────────────────────────────────────────────────────┘`;
166
- }
167
- }
168
-
169
- function displayONEInterface() {
170
- console.clear();
171
- console.log(createResponsiveLogo());
172
- console.log(createResponsiveMenu());
173
- console.log('\n**🎯 Select your path to exponential growth:**');
174
- console.log('_[Enter choice: 1-9, L, H, A, T, t, W, i, w, P, B, D, O, M, F, ?, K, S, Q]_');
175
- console.log('\n**✍️ Write a Story: /story**');
176
- }
177
-
178
- // Mission 9: Beautiful Simplicity Through Unified Orchestration
179
- // Single gateway to the entire ONE ecosystem
180
-
181
- // Team-based agent categorization with hyphenated naming convention
182
- const MARKETING_TEAM_AGENTS = [
183
- // New team-prefixed agents
184
- 'marketing-director',
185
- 'marketing-content-poster',
186
- // Legacy marketing agents (gradually migrating to team-prefixed names)
187
- 'elevate-marketing-orchestrator',
188
- 'brand-identity-specialist',
189
- 'content-hook-specialist',
190
- 'customer-journey-designer',
191
- 'customer-success-manager',
192
- 'engagement-specialist',
193
- 'lead-capture-expert',
194
- 'lead-magnet-creator',
195
- 'market-research-analyst',
196
- 'nurture-campaign-manager',
197
- 'sales-environment-optimizer',
198
- 'upsell-strategist',
199
- 'advocacy-campaign-designer',
200
- // Crypto Marketing Agents
201
- 'crypto-marketing-orchestrator',
202
- 'crypto-architecture-specialist',
203
- 'crypto-token-analyst',
204
- 'crypto-market-researcher',
205
- 'crypto-community-psychologist',
206
- 'crypto-strategic-synthesizer',
207
- 'crypto-viral-content-creator',
208
- 'crypto-diamond-formation-specialist',
209
- 'crypto-airdrop-strategist',
210
- 'crypto-wallet-identification-expert',
211
- 'crypto-engagement-specialist',
212
- 'crypto-dex-optimization-expert',
213
- 'crypto-ecosystem-expansion-manager',
214
- 'crypto-analytics-educator',
215
- 'crypto-network-effect-amplifier',
216
- 'crypto-optimization-analyst',
217
- 'playbook-generator',
218
- 'content-playbook-writer'
219
- ];
220
-
221
- const ENGINEERING_TEAM_AGENTS = [
222
- // New team-prefixed agents
223
- 'engineering-director',
224
- // Legacy engineering agents (gradually migrating to team-prefixed names)
225
- 'one-orchestrator',
226
- 'one-master',
227
- 'analyst',
228
- 'architect',
229
- 'dev',
230
- 'pm',
231
- 'po',
232
- 'qa',
233
- 'sm',
234
- 'ux-expert'
235
- ];
236
-
237
- const DESIGN_TEAM_AGENTS = [
238
- // Design team agents (to be created)
239
- 'design-director',
240
- 'design-ui-specialist',
241
- 'design-brand-manager',
242
- 'ux-expert' // Moving from engineering to design
243
- ];
244
-
245
- function filterAgentsByTeam(agents, team) {
246
- const teamAgents = {
247
- 'marketing': MARKETING_TEAM_AGENTS,
248
- 'engineering': ENGINEERING_TEAM_AGENTS,
249
- 'design': DESIGN_TEAM_AGENTS
250
- };
251
- return agents.filter(agent => teamAgents[team]?.includes(agent));
252
- }
253
-
254
- program
255
- .name('one')
256
- .description('🎼 ONE Framework - Beautiful Simplicity Through Unified Orchestration')
257
- .version('1.0.0');
258
-
259
- // Default command - show responsive interface when called without arguments
260
- program
261
- .command('interface')
262
- .alias('ui')
263
- .description('🎨 Launch the interactive ONE interface')
264
- .action(() => {
265
- displayONEInterface();
266
- });
267
-
268
- // ========================================
269
- // MISSION 9: UNIFIED COMMAND ARCHITECTURE
270
- // ========================================
271
- // Single `/one` gateway to entire ecosystem
272
-
273
- // Core Mission 9 Commands - The Symphony Interface
274
- program
275
- .command('mission [name]')
276
- .alias('m')
277
- .description('🎯 Launch goal-oriented campaigns')
278
- .option('-l, --list', 'List available missions')
279
- .option('-c, --create', 'Create new mission')
280
- .option('-s, --status', 'Show mission status')
281
- .action(async (name, options) => {
282
- await handleMissionCommand(name, options);
283
- });
284
-
285
- program
286
- .command('story [name]')
287
- .alias('s')
288
- .description('📖 Execute narrative workflows')
289
- .option('-l, --list', 'List available stories')
290
- .option('-c, --create', 'Create new story')
291
- .option('-m, --mission <mission>', 'Filter by mission')
292
- .action(async (name, options) => {
293
- await handleStoryCommand(name, options);
294
- });
295
-
296
- program
297
- .command('agent [name]')
298
- .alias('a')
299
- .description('🤖 Invoke specialized AI agents')
300
- .option('-l, --list', 'List all available agents')
301
- .option('-t, --team <team>', 'Filter by team')
302
- .option('-c, --claude', 'List Claude Code agents')
303
- .option('-i, --info <agent>', 'Show agent information')
304
- .action(async (name, options) => {
305
- await handleAgentCommand(name, options);
306
- });
307
-
308
- program
309
- .command('team [name]')
310
- .alias('t')
311
- .description('👥 Coordinate agent groups')
312
- .option('-l, --list', 'List available teams')
313
- .option('-m, --members <team>', 'Show team members')
314
- .action(async (name, options) => {
315
- await handleTeamCommand(name, options);
316
- });
317
-
318
- program
319
- .command('workflow [name]')
320
- .alias('w')
321
- .description('⚡ Run proven processes')
322
- .option('-l, --list', 'List available workflows')
323
- .option('-r, --run <workflow>', 'Execute workflow')
324
- .action(async (name, options) => {
325
- await handleWorkflowCommand(name, options);
326
- });
327
-
328
- program
329
- .command('template [name]')
330
- .description('📄 Generate documents')
331
- .option('-l, --list', 'List available templates')
332
- .option('-c, --create <template>', 'Create from template')
333
- .action(async (name, options) => {
334
- await handleTemplateCommand(name, options);
335
- });
336
-
337
- program
338
- .command('task [name]')
339
- .description('✅ Execute specific actions')
340
- .option('-l, --list', 'List available tasks')
341
- .option('-r, --run <task>', 'Execute task')
342
- .action(async (name, options) => {
343
- await handleTaskCommand(name, options);
344
- });
345
-
346
- program
347
- .command('checklist [name]')
348
- .alias('c')
349
- .description('🔍 Validate quality')
350
- .option('-l, --list', 'List available checklists')
351
- .option('-r, --run <checklist>', 'Execute checklist')
352
- .action(async (name, options) => {
353
- await handleChecklistCommand(name, options);
354
- });
355
-
356
- program
357
- .command('data [name]')
358
- .alias('d')
359
- .description('💾 Access knowledge base')
360
- .option('-l, --list', 'List available data')
361
- .option('-s, --search <query>', 'Search knowledge base')
362
- .action(async (name, options) => {
363
- await handleDataCommand(name, options);
364
- });
365
-
366
- program
367
- .command('playbook [name]')
368
- .alias('p')
369
- .description('📚 Industry guides and playbooks')
370
- .option('-l, --list', 'List available playbooks')
371
- .option('-g, --generate <client>', 'Generate client playbook')
372
- .option('-i, --industry <industry>', 'Industry filter')
373
- .action(async (name, options) => {
374
- await handlePlaybookCommand(name, options);
375
- });
376
-
377
- program
378
- .command('tool [name]')
379
- .description('🛠️ Utility functions')
380
- .option('-l, --list', 'List available tools')
381
- .option('-r, --run <tool>', 'Execute tool')
382
- .action(async (name, options) => {
383
- await handleToolCommand(name, options);
384
- });
385
-
386
- // Mission 9 Help - Context-aware assistance
387
- program
388
- .command('help [command]')
389
- .alias('h')
390
- .description('❓ Intelligent assistance')
391
- .action(async (command) => {
392
- await handleHelpCommand(command);
393
- });
394
-
395
- // Mission 9 Symphony Status
396
- program
397
- .command('status')
398
- .description('🎼 Show symphony orchestration status')
399
- .action(async () => {
400
- await showSymphonyStatus();
401
- });
402
-
403
- program
404
- .command('build-bundles')
405
- .description('Build web bundles for agents and teams')
406
- .option('-a, --agents-only', 'Build only agent bundles')
407
- .option('-t, --teams-only', 'Build only team bundles')
408
- .option('-e, --expansions-only', 'Build only expansion pack bundles')
409
- .option('--no-expansions', 'Skip building expansion packs')
410
- .option('--no-clean', 'Skip cleaning output directories')
411
- .action(async (options) => {
412
- const { default: WebBuilder } = await import('./builders/web-builder.js');
413
- const builder = new WebBuilder({
414
- rootDir: process.cwd()
415
- });
416
-
417
- try {
418
- if (options.clean) {
419
- console.log('Cleaning output directories...');
420
- await builder.cleanOutputDirs();
421
- }
422
-
423
- if (options.expansionsOnly) {
424
- console.log('Building expansion pack bundles...');
425
- await builder.buildAllExpansionPacks({ clean: false });
426
- } else {
427
- if (!options.teamsOnly) {
428
- console.log('Building agent bundles...');
429
- await builder.buildAgents();
430
- }
431
-
432
- if (!options.agentsOnly) {
433
- console.log('Building team bundles...');
434
- await builder.buildTeams();
435
- }
436
-
437
- if (!options.noExpansions) {
438
- console.log('Building expansion pack bundles...');
439
- await builder.buildAllExpansionPacks({ clean: false });
440
- }
441
- }
442
-
443
- console.log('Build completed successfully!');
444
- } catch (error) {
445
- console.error('Build failed:', error.message);
446
- process.exit(1);
447
- }
448
- });
449
-
450
- program
451
- .command('build:expansions')
452
- .description('Build web bundles for all expansion packs')
453
- .option('--expansion <name>', 'Build specific expansion pack only')
454
- .option('--no-clean', 'Skip cleaning output directories')
455
- .action(async (options) => {
456
- const { default: WebBuilder } = await import('./builders/web-builder.js');
457
- const builder = new WebBuilder({
458
- rootDir: process.cwd()
459
- });
460
-
461
- try {
462
- if (options.expansion) {
463
- console.log(`Building expansion pack: ${options.expansion}`);
464
- await builder.buildExpansionPack(options.expansion, { clean: options.clean });
465
- } else {
466
- console.log('Building all expansion packs...');
467
- await builder.buildAllExpansionPacks({ clean: options.clean });
468
- }
469
-
470
- console.log('Expansion pack build completed successfully!');
471
- } catch (error) {
472
- console.error('Expansion pack build failed:', error.message);
473
- process.exit(1);
474
- }
475
- });
476
-
477
- program
478
- .command('list:agents')
479
- .description('List all available agents')
480
- .action(async () => {
481
- const { default: WebBuilder } = await import('./builders/web-builder.js');
482
- const builder = new WebBuilder({ rootDir: process.cwd() });
483
- const agents = await builder.resolver.listAgents();
484
- console.log('Available agents:');
485
- agents.forEach(agent => console.log(` - ${agent}`));
486
- });
487
-
488
- program
489
- .command('list:expansions')
490
- .description('List all available expansion packs')
491
- .action(async () => {
492
- const { default: WebBuilder } = await import('./builders/web-builder.js');
493
- const builder = new WebBuilder({ rootDir: process.cwd() });
494
- const expansions = await builder.listExpansionPacks();
495
- console.log('Available expansion packs:');
496
- expansions.forEach(expansion => console.log(` - ${expansion}`));
497
- });
498
-
499
- program
500
- .command('validate')
501
- .description('Validate agent and team configurations')
502
- .action(async () => {
503
- const { default: WebBuilder } = await import('./builders/web-builder.js');
504
- const builder = new WebBuilder({ rootDir: process.cwd() });
505
- try {
506
- // Validate by attempting to build all agents and teams
507
- const agents = await builder.resolver.listAgents();
508
- const teams = await builder.resolver.listTeams();
509
-
510
- console.log('Validating agents...');
511
- for (const agent of agents) {
512
- await builder.resolver.resolveAgentDependencies(agent);
513
- console.log(` ✓ ${agent}`);
514
- }
515
-
516
- console.log('\nValidating teams...');
517
- for (const team of teams) {
518
- await builder.resolver.resolveTeamDependencies(team);
519
- console.log(` ✓ ${team}`);
520
- }
521
-
522
- console.log('\nAll configurations are valid!');
523
- } catch (error) {
524
- console.error('Validation failed:', error.message);
525
- process.exit(1);
526
- }
527
- });
528
-
529
- program
530
- .command('upgrade')
531
- .description('Upgrade a one-playbook V3 project to V4')
532
- .option('-p, --project <path>', 'Path to V3 project (defaults to current directory)')
533
- .option('--dry-run', 'Show what would be changed without making changes')
534
- .option('--no-backup', 'Skip creating backup (not recommended)')
535
- .action(async (options) => {
536
- const { default: V3ToV4Upgrader } = await import('./upgraders/v3-to-v4-upgrader.js');
537
- const upgrader = new V3ToV4Upgrader();
538
- await upgrader.upgrade({
539
- projectPath: options.project,
540
- dryRun: options.dryRun,
541
- backup: options.backup
542
- });
543
- });
544
-
545
- // Marketing Domain Command
546
- program
547
- .command('market [subcommand] [name]')
548
- .description('Marketing-focused agent interface and playbook management')
549
- .option('--list', 'List available marketing agents')
550
- .option('--help-domain', 'Show marketing domain help')
551
- .option('--version <version>', 'Version for archive command')
552
- .option('--description <desc>', 'Description for archive command')
553
- .option('--format <format>', 'Format for generate/export commands')
554
- .option('--industry <industry>', 'Industry for playbook commands')
555
- .action(async (subcommand, name, options) => {
556
- const { default: WebBuilder } = await import('./builders/web-builder.js');
557
- const builder = new WebBuilder({ rootDir: process.cwd() });
558
-
559
- // Handle subcommands
560
- if (subcommand) {
561
- const { default: PlaybookManager } = await import('./playbook-generator/lib/manager.js');
562
- const manager = new PlaybookManager({ rootDir: process.cwd() });
563
-
564
- switch (subcommand) {
565
- case 'create-playbook':
566
- // Redirect to existing create-playbook command
567
- const { default: PlaybookWizard } = await import('./playbook-generator/lib/wizard.js');
568
- const wizard = new PlaybookWizard({ rootDir: process.cwd() });
569
-
570
- if (!name) {
571
- console.error('Error: Please specify client name');
572
- console.error('Usage: one market create-playbook "Client Name" [--industry type]');
573
- process.exit(1);
574
- }
575
-
576
- try {
577
- await wizard.createClientPlaybook(name);
578
- console.log('\nNext step: Generate your playbook with:');
579
- console.log(` one market generate --client ${name.toLowerCase().replace(/\s+/g, '-')}`);
580
- } catch (error) {
581
- console.error('Error creating playbook:', error.message);
582
- process.exit(1);
583
- }
584
- return;
585
-
586
- case 'list-playbooks':
587
- // Show existing playbooks
588
- console.log('📚 Marketing Playbooks:\n');
589
-
590
- try {
591
- const { promises: fs } = await import('fs');
592
-
593
- // List clients
594
- try {
595
- const clients = await fs.readdir('one/playbooks/clients');
596
- if (clients.length > 0) {
597
- console.log('🏢 Clients:');
598
- for (const client of clients) {
599
- try {
600
- await fs.access(`one/playbooks/clients/${client}/config.yaml`);
601
- console.log(` - ${client}`);
602
- } catch {}
603
- }
604
- console.log();
605
- }
606
- } catch {}
607
-
608
- // List industries
609
- try {
610
- const industries = await fs.readdir('one/playbooks/industries');
611
- if (industries.length > 0) {
612
- console.log('🏭 Industries:');
613
- for (const industry of industries) {
614
- try {
615
- await fs.access(`one/playbooks/industries/${industry}/config.yaml`);
616
- console.log(` - ${industry}`);
617
- } catch {}
618
- }
619
- }
620
- } catch {}
621
- } catch (error) {
622
- console.log('No playbooks found.');
623
- }
624
- return;
625
-
626
- case 'generate':
627
- if (!name) {
628
- console.error('Error: Please specify --client name');
629
- process.exit(1);
630
- }
631
-
632
- // Redirect to generate-playbook
633
- const { PlaybookGenerator } = await import('./playbook-generator/index.js');
634
- const generator = new PlaybookGenerator({
635
- rootDir: process.cwd(),
636
- outputDir: './output/playbooks'
637
- });
638
-
639
- try {
640
- const configPath = `one/playbooks/clients/${name}/config.yaml`;
641
- const result = await generator.generatePlaybook(configPath, {
642
- format: options.format || 'both',
643
- verbose: true
644
- });
645
-
646
- console.log('\nPlaybook generation completed!');
647
- console.log(`Generated files: ${result.files.join(', ')}`);
648
- } catch (error) {
649
- console.error('Generation failed:', error.message);
650
- process.exit(1);
651
- }
652
- return;
653
-
654
- case 'archive':
655
- if (!name) {
656
- console.error('Error: Please specify --client name');
657
- process.exit(1);
658
- }
659
-
660
- try {
661
- const result = await manager.archivePlaybook('client', name, {
662
- version: options.version,
663
- description: options.description
664
- });
665
-
666
- console.log(`✅ Archive created: ${result.metadata.version}`);
667
- await manager.trackChanges('client', name, `Archive ${name} - ${result.metadata.version}`);
668
- } catch (error) {
669
- console.error('Archive failed:', error.message);
670
- process.exit(1);
671
- }
672
- return;
673
-
674
- case 'export':
675
- if (!name) {
676
- console.error('Error: Please specify --client name');
677
- process.exit(1);
678
- }
679
-
680
- try {
681
- const result = await manager.exportPlaybook('client', name, {
682
- format: options.format
683
- });
684
-
685
- console.log(`✅ Export package created: ${result.zipPath}`);
686
- } catch (error) {
687
- console.error('Export failed:', error.message);
688
- process.exit(1);
689
- }
690
- return;
691
-
692
- default:
693
- // Fall through to show agents
694
- break;
695
- }
696
- }
697
-
698
- // Original functionality
699
- if (options.list) {
700
- const allAgents = await builder.resolver.listAgents();
701
- const marketingAgents = filterAgentsByTeam(allAgents, 'marketing');
702
- console.log('Available marketing-team agents:');
703
- marketingAgents.forEach(agent => console.log(` - ${agent}`));
704
- return;
705
- }
706
-
707
- if (options.helpDomain) {
708
- console.log(`
709
- 🎯 ONE Marketing Playbook
710
-
711
- Transform your marketing from random acts to predictable revenue with the proven Elevate Framework.
712
-
713
- Available Commands:
714
- one market --list List all marketing agents
715
- one market --help-domain Show this help
716
-
717
- Playbook Management:
718
- one market create-playbook "Client" Create new client playbook
719
- one market list-playbooks List existing playbooks
720
- one market generate --client name Generate playbook PDFs
721
- one market archive --client name Archive playbook version
722
- one market export --client name Export distribution package
723
-
724
- Marketing Specialists:
725
- Foundation Team:
726
- - brand-identity-specialist Build clarity on brand positioning
727
- - market-research-analyst Understand your market landscape
728
- - customer-journey-designer Map customer experience paths
729
-
730
- ATTRACT Team (Elevate Reach):
731
- - content-hook-specialist Create compelling content hooks
732
- - lead-magnet-creator Design irresistible lead magnets
733
- - lead-capture-expert Optimize landing pages for conversion
734
-
735
- CONVERT Team (Elevate Sales):
736
- - engagement-specialist Design engagement sequences
737
- - sales-environment-optimizer Optimize sales environment
738
- - nurture-campaign-manager Create nurture campaigns
739
-
740
- GROW Team (Elevate Value):
741
- - upsell-strategist Develop upsell strategies
742
- - customer-success-manager Manage customer success programs
743
- - advocacy-campaign-designer Design customer advocacy campaigns
744
-
745
- Orchestrator:
746
- - elevate-marketing-orchestrator Guide through complete Elevate framework
747
-
748
- Usage Examples:
749
- one market --list # See all marketing agents
750
- one market create-playbook "Acme Corp" --industry saas
751
- one market generate --client acme-corp --format pdf
752
- one market archive --client acme-corp --version v1.2
753
-
754
- For development/engineering tasks, use: one engineer
755
- `);
756
- return;
757
- }
758
-
759
- // Default behavior - show available marketing agents
760
- const allAgents = await builder.resolver.listAgents();
761
- const marketingAgents = filterAgentsByTeam(allAgents, 'marketing');
762
- console.log('🎯 ONE Marketing Playbook - Available Agents:');
763
- marketingAgents.forEach(agent => console.log(` - ${agent}`));
764
- console.log('\nPlaybook Commands:');
765
- console.log(' one market create-playbook "Client Name"');
766
- console.log(' one market list-playbooks');
767
- console.log(' one market generate --client name');
768
- console.log('\nUse --help-domain for detailed information.');
769
- });
770
-
771
- // Engineering Domain Command
772
- program
773
- .command('engineer')
774
- .description('Launch engineering-focused agent interface')
775
- .option('--list', 'List available engineering agents')
776
- .option('--help-domain', 'Show engineering domain help')
777
- .action(async (options) => {
778
- const { default: WebBuilder } = await import('./builders/web-builder.js');
779
- const builder = new WebBuilder({ rootDir: process.cwd() });
780
-
781
- if (options.list) {
782
- const allAgents = await builder.resolver.listAgents();
783
- const engineeringAgents = filterAgentsByTeam(allAgents, 'engineering');
784
- console.log('Available engineering-team agents:');
785
- engineeringAgents.forEach(agent => console.log(` - ${agent}`));
786
- return;
787
- }
788
-
789
- if (options.helpDomain) {
790
- console.log(`
791
- 🚀 ONE Engineering Playbook
792
-
793
- Complete AI-powered development framework for systematic software delivery.
794
-
795
- Available Commands:
796
- one engineer --list List all engineering agents
797
- one engineer --help-domain Show this help
798
-
799
- Engineering Team:
800
- Planning & Analysis:
801
- - analyst Business analysis and requirements gathering
802
- - pm Product management and roadmap planning
803
- - architect System design and technical architecture
804
-
805
- Development:
806
- - dev Code implementation and debugging
807
- - ux-expert UI/UX design and user experience
808
- - sm Scrum master and project coordination
809
-
810
- Quality & Operations:
811
- - qa Quality assurance and testing
812
- - po Product owner and backlog management
813
-
814
- Universal Agents:
815
- - one-orchestrator Multi-agent workflow coordination
816
- - one-master Universal task executor
817
-
818
- Workflows:
819
- Greenfield: Complete new project development
820
- Brownfield: Enhancement of existing projects
821
-
822
- Usage Examples:
823
- one engineer --list # See all engineering agents
824
- npm run build-bundles # Build development bundles
825
- npm run validate # Validate agent configurations
826
-
827
- For marketing tasks, use: one market
828
- `);
829
- return;
830
- }
831
-
832
- // Default behavior - show available engineering agents
833
- const allAgents = await builder.resolver.listAgents();
834
- const engineeringAgents = filterAgentsByTeam(allAgents, 'engineering');
835
- console.log('🚀 ONE Engineering Playbook - Available Agents:');
836
- engineeringAgents.forEach(agent => console.log(` - ${agent}`));
837
- console.log('\nUse --help-domain for detailed information about engineering agents.');
838
- });
839
-
840
- // Handle /one command specifically
841
- program
842
- .command('/')
843
- .description('🎨 Launch the interactive ONE interface')
844
- .action(() => {
845
- displayONEInterface();
846
- });
847
-
848
- // Dynamic agent launch command - matches any agent name
849
- program
850
- .arguments('<agent-name>')
851
- .description('Launch a specific agent')
852
- .action(async (agentName) => {
853
- // Check if it's the special "/one" command
854
- if (agentName === '/one' || agentName === 'one') {
855
- displayONEInterface();
856
- return;
857
- }
858
-
859
- const { default: WebBuilder } = await import('./builders/web-builder.js');
860
- const builder = new WebBuilder({ rootDir: process.cwd() });
861
-
862
- try {
863
- const agents = await builder.resolver.listAgents();
864
-
865
- if (agents.includes(agentName)) {
866
- console.log(`Launching agent: ${agentName}`);
867
- console.log(`Agent bundle path: dist/${agentName}.md`);
868
- console.log('\nYou can now use this agent in your preferred AI tool.');
869
- } else {
870
- console.error(`Error: Agent '${agentName}' not found.`);
871
- console.error('Available agents:');
872
- agents.forEach(agent => console.error(` - ${agent}`));
873
- process.exit(1);
874
- }
875
- } catch (error) {
876
- console.error('Error:', error.message);
877
- process.exit(1);
878
- }
879
- });
880
-
881
- // Create New Playbook Command (Interactive Wizard)
882
- program
883
- .command('create-playbook')
884
- .description('Create a new playbook with interactive setup wizard')
885
- .option('--client <name>', 'Create playbook for specific client')
886
- .option('--industry <name>', 'Create playbook for industry')
887
- .action(async (options) => {
888
- const { default: PlaybookWizard } = await import('./playbook-generator/lib/wizard.js');
889
-
890
- try {
891
- const wizard = new PlaybookWizard({
892
- rootDir: process.cwd()
893
- });
894
-
895
- if (options.client) {
896
- await wizard.createClientPlaybook(options.client);
897
- } else if (options.industry) {
898
- await wizard.createIndustryPlaybook(options.industry);
899
- } else {
900
- console.error('Error: Must specify --client <name> or --industry <name>');
901
- process.exit(1);
902
- }
903
-
904
- } catch (error) {
905
- const { ErrorHandler } = await import('./playbook-generator/lib/errors.js');
906
- const handled = ErrorHandler.handle(error, 'create-playbook');
907
- const helpInfo = ErrorHandler.createUserHelp(handled);
908
-
909
- console.error(helpInfo.error);
910
- console.error(helpInfo.help);
911
- process.exit(1);
912
- }
913
- });
914
-
915
- // Playbook Generation Command
916
- program
917
- .command('generate-playbook')
918
- .description('Generate custom playbooks for clients or industries')
919
- .option('--client <name>', 'Generate playbook for specific client')
920
- .option('--industry <name>', 'Generate playbook for industry')
921
- .option('--config <path>', 'Use custom configuration file')
922
- .option('--format <format>', 'Output format: pdf, epub, enhanced-pdf, both, all', 'both')
923
- .option('--output <dir>', 'Output directory', './output/playbooks')
924
- .option('--interactive', 'Review each chapter as it\'s generated')
925
- .option('--verbose', 'Enable verbose output')
926
- .option('--dry-run', 'Show what would be generated without creating files')
927
- .action(async (options) => {
928
- // Use the new packaged version for compatibility
929
- const { PlaybookGenerator } = await import('./playbook-generator/index.js');
930
-
931
- try {
932
- const generator = new PlaybookGenerator({
933
- rootDir: process.cwd(),
934
- outputDir: options.output
935
- });
936
-
937
- let configPath;
938
- if (options.config) {
939
- configPath = options.config;
940
- } else if (options.client) {
941
- // Try new folder structure first, fall back to legacy
942
- const newStructure = `one/playbooks/clients/${options.client}/config.yaml`;
943
- const legacyStructure = `one/playbooks/clients/${options.client}-config.yaml`;
944
-
945
- const fs = await import('fs');
946
- if (fs.existsSync(newStructure)) {
947
- configPath = newStructure;
948
- } else if (fs.existsSync(legacyStructure)) {
949
- configPath = legacyStructure;
950
- } else {
951
- console.error(`Error: Configuration not found for client '${options.client}'`);
952
- console.error('Try running: one create-playbook --client ' + options.client);
953
- process.exit(1);
954
- }
955
- } else if (options.industry) {
956
- // Try new folder structure first, fall back to legacy
957
- const newStructure = `one/playbooks/industries/${options.industry}/config.yaml`;
958
- const legacyStructure = `one/playbooks/industries/${options.industry}-config.yaml`;
959
-
960
- const fs = await import('fs');
961
- if (fs.existsSync(newStructure)) {
962
- configPath = newStructure;
963
- } else if (fs.existsSync(legacyStructure)) {
964
- configPath = legacyStructure;
965
- } else {
966
- console.error(`Error: Configuration not found for industry '${options.industry}'`);
967
- console.error('Try running: one create-playbook --industry ' + options.industry);
968
- process.exit(1);
969
- }
970
- } else {
971
- console.error('Error: Must specify --client, --industry, or --config option');
972
- process.exit(1);
973
- }
974
-
975
- console.log(`Generating playbook from: ${configPath}`);
976
-
977
- if (options.dryRun) {
978
- console.log('DRY RUN MODE - No files will be created');
979
- await generator.validateConfig(configPath);
980
- console.log('Configuration is valid!');
981
- } else {
982
- const result = await generator.generatePlaybook(configPath, {
983
- format: options.format,
984
- verbose: options.verbose || false,
985
- interactive: options.interactive
986
- });
987
-
988
- console.log('\nPlaybook generation completed!');
989
- console.log(`Generated files: ${result.files.join(', ')}`);
990
- }
991
-
992
- } catch (error) {
993
- const { ErrorHandler } = await import('./playbook-generator/lib/errors.js');
994
- const handled = ErrorHandler.handle(error, 'generate-playbook');
995
- const helpInfo = ErrorHandler.createUserHelp(handled);
996
-
997
- console.error(helpInfo.error);
998
- console.error(helpInfo.help);
999
- process.exit(1);
1000
- }
1001
- });
1002
-
1003
- // List available playbook configurations
1004
- program
1005
- .command('list-playbooks')
1006
- .description('List available playbook configurations')
1007
- .action(async () => {
1008
- const { promises: fs } = await import('fs');
1009
-
1010
- try {
1011
- console.log('📚 Available Playbook Configurations:\n');
1012
-
1013
- // List industry configs (both legacy and new structure)
1014
- try {
1015
- const industries = new Set();
1016
-
1017
- // Check legacy structure
1018
- try {
1019
- const industryFiles = await fs.readdir('one/playbooks/industries');
1020
- industryFiles
1021
- .filter(f => f.endsWith('-config.yaml'))
1022
- .forEach(f => industries.add(f.replace('-config.yaml', '')));
1023
- } catch (e) {}
1024
-
1025
- // Check new structure
1026
- try {
1027
- const industryFiles = await fs.readdir('one/playbooks/industries');
1028
- const dirs = await Promise.all(
1029
- industryFiles.map(async item => {
1030
- try {
1031
- const stat = await fs.stat(`one/playbooks/industries/${item}`);
1032
- if (stat.isDirectory()) {
1033
- const configExists = await fs.access(`one/playbooks/industries/${item}/config.yaml`).then(() => true).catch(() => false);
1034
- return configExists ? item : null;
1035
- }
1036
- return null;
1037
- } catch {
1038
- return null;
1039
- }
1040
- })
1041
- );
1042
- dirs.filter(Boolean).forEach(dir => industries.add(dir));
1043
- } catch (e) {}
1044
-
1045
- if (industries.size > 0) {
1046
- console.log('🏭 Industries:');
1047
- Array.from(industries).sort().forEach(industry => console.log(` - ${industry}`));
1048
- console.log();
1049
- } else {
1050
- console.log('🏭 Industries: No configurations found\n');
1051
- }
1052
- } catch (e) {
1053
- console.log('🏭 Industries: No configurations found\n');
1054
- }
1055
-
1056
- // List client configs (both legacy and new structure)
1057
- try {
1058
- const clients = new Set();
1059
-
1060
- // Check legacy structure
1061
- try {
1062
- const clientFiles = await fs.readdir('one/playbooks/clients');
1063
- clientFiles
1064
- .filter(f => f.endsWith('-config.yaml'))
1065
- .forEach(f => clients.add(f.replace('-config.yaml', '')));
1066
- } catch (e) {}
1067
-
1068
- // Check new structure
1069
- try {
1070
- const clientFiles = await fs.readdir('one/playbooks/clients');
1071
- const dirs = await Promise.all(
1072
- clientFiles.map(async item => {
1073
- try {
1074
- const stat = await fs.stat(`one/playbooks/clients/${item}`);
1075
- if (stat.isDirectory()) {
1076
- const configExists = await fs.access(`one/playbooks/clients/${item}/config.yaml`).then(() => true).catch(() => false);
1077
- return configExists ? item : null;
1078
- }
1079
- return null;
1080
- } catch {
1081
- return null;
1082
- }
1083
- })
1084
- );
1085
- dirs.filter(Boolean).forEach(dir => clients.add(dir));
1086
- } catch (e) {}
1087
-
1088
- if (clients.size > 0) {
1089
- console.log('🏢 Clients:');
1090
- Array.from(clients).sort().forEach(client => console.log(` - ${client}`));
1091
- console.log();
1092
- } else {
1093
- console.log('🏢 Clients: No configurations found\n');
1094
- }
1095
- } catch (e) {
1096
- console.log('🏢 Clients: No configurations found\n');
1097
- }
1098
-
1099
- console.log('Usage Examples:');
1100
- console.log(' one generate-playbook --industry saas --format pdf');
1101
- console.log(' one generate-playbook --client acme-corp --format epub');
1102
- console.log(' one generate-playbook --config custom/my-config.yaml');
1103
-
1104
- } catch (error) {
1105
- console.error('Error listing playbooks:', error.message);
1106
- }
1107
- });
1108
-
1109
- // Archive playbook command
1110
- program
1111
- .command('archive-playbook')
1112
- .description('Archive a client or industry playbook with versioning')
1113
- .option('--client <name>', 'Archive client playbook')
1114
- .option('--industry <name>', 'Archive industry playbook')
1115
- .option('--version <version>', 'Version tag (default: timestamp)')
1116
- .option('--description <desc>', 'Archive description')
1117
- .action(async (options) => {
1118
- const { default: PlaybookManager } = await import('./playbook-generator/lib/manager.js');
1119
- const manager = new PlaybookManager({ rootDir: process.cwd() });
1120
-
1121
- try {
1122
- let type, name;
1123
- if (options.client) {
1124
- type = 'client';
1125
- name = options.client;
1126
- } else if (options.industry) {
1127
- type = 'industry';
1128
- name = options.industry;
1129
- } else {
1130
- console.error('Error: Must specify --client or --industry');
1131
- process.exit(1);
1132
- }
1133
-
1134
- console.log(`Archiving ${type} playbook: ${name}...`);
1135
-
1136
- const result = await manager.archivePlaybook(type, name, {
1137
- version: options.version,
1138
- description: options.description
1139
- });
1140
-
1141
- console.log(`✅ Archive created successfully!`);
1142
- console.log(` Path: ${result.archivePath}`);
1143
- console.log(` Version: ${result.metadata.version}`);
1144
-
1145
- // Also track changes in git
1146
- await manager.trackChanges(type, name, `Archive ${name} - ${result.metadata.version}`);
1147
-
1148
- } catch (error) {
1149
- console.error('Archive failed:', error.message);
1150
- process.exit(1);
1151
- }
1152
- });
1153
-
1154
- // Export playbook command
1155
- program
1156
- .command('export-playbook')
1157
- .description('Export playbook as a distributable package')
1158
- .option('--client <name>', 'Export client playbook')
1159
- .option('--industry <name>', 'Export industry playbook')
1160
- .option('--format <format>', 'Export format (default: full)')
1161
- .action(async (options) => {
1162
- const { default: PlaybookManager } = await import('./playbook-generator/lib/manager.js');
1163
- const manager = new PlaybookManager({ rootDir: process.cwd() });
1164
-
1165
- try {
1166
- let type, name;
1167
- if (options.client) {
1168
- type = 'client';
1169
- name = options.client;
1170
- } else if (options.industry) {
1171
- type = 'industry';
1172
- name = options.industry;
1173
- } else {
1174
- console.error('Error: Must specify --client or --industry');
1175
- process.exit(1);
1176
- }
1177
-
1178
- console.log(`Exporting ${type} playbook: ${name}...`);
1179
-
1180
- const result = await manager.exportPlaybook(type, name, {
1181
- format: options.format
1182
- });
1183
-
1184
- console.log(`✅ Export package created successfully!`);
1185
- console.log(` Package: ${result.zipPath}`);
1186
- console.log(` Files included: ${result.metadata.included_files.length}`);
1187
-
1188
- } catch (error) {
1189
- console.error('Export failed:', error.message);
1190
- process.exit(1);
1191
- }
1192
- });
1193
-
1194
- // Backup playbook command
1195
- program
1196
- .command('backup-playbook')
1197
- .description('Create a backup snapshot of a playbook')
1198
- .option('--client <name>', 'Backup client playbook')
1199
- .option('--industry <name>', 'Backup industry playbook')
1200
- .action(async (options) => {
1201
- const { default: PlaybookManager } = await import('./playbook-generator/lib/manager.js');
1202
- const manager = new PlaybookManager({ rootDir: process.cwd() });
1203
-
1204
- try {
1205
- let type, name;
1206
- if (options.client) {
1207
- type = 'client';
1208
- name = options.client;
1209
- } else if (options.industry) {
1210
- type = 'industry';
1211
- name = options.industry;
1212
- } else {
1213
- console.error('Error: Must specify --client or --industry');
1214
- process.exit(1);
1215
- }
1216
-
1217
- console.log(`Creating backup of ${type} playbook: ${name}...`);
1218
-
1219
- const result = await manager.backupPlaybook(type, name);
1220
-
1221
- console.log(`✅ Backup created successfully!`);
1222
- console.log(` Backup ID: ${result.timestamp}`);
1223
- console.log(` Location: ${result.backupPath}`);
1224
-
1225
- } catch (error) {
1226
- console.error('Backup failed:', error.message);
1227
- process.exit(1);
1228
- }
1229
- });
1230
-
1231
- // List archives command
1232
- program
1233
- .command('list-archives')
1234
- .description('List available archives for a playbook')
1235
- .option('--client <name>', 'List client playbook archives')
1236
- .option('--industry <name>', 'List industry playbook archives')
1237
- .action(async (options) => {
1238
- const { default: PlaybookManager } = await import('./playbook-generator/lib/manager.js');
1239
- const manager = new PlaybookManager({ rootDir: process.cwd() });
1240
-
1241
- try {
1242
- let type, name;
1243
- if (options.client) {
1244
- type = 'client';
1245
- name = options.client;
1246
- } else if (options.industry) {
1247
- type = 'industry';
1248
- name = options.industry;
1249
- } else {
1250
- console.error('Error: Must specify --client or --industry');
1251
- process.exit(1);
1252
- }
1253
-
1254
- const archives = await manager.listArchives(type, name);
1255
-
1256
- if (archives.length === 0) {
1257
- console.log(`No archives found for ${type}: ${name}`);
1258
- } else {
1259
- console.log(`📚 Archives for ${type}: ${name}\n`);
1260
- archives.forEach(archive => {
1261
- console.log(`Version: ${archive.version}`);
1262
- console.log(` Archived: ${archive.archived_at}`);
1263
- console.log(` By: ${archive.archived_by}`);
1264
- console.log(` Description: ${archive.description}`);
1265
- console.log();
1266
- });
1267
- }
1268
-
1269
- } catch (error) {
1270
- console.error('Error listing archives:', error.message);
1271
- process.exit(1);
1272
- }
1273
- });
1274
-
1275
- // Apple-style book generation commands
1276
- program
1277
- .command('create-book')
1278
- .description('Create a new Apple-style book project structure')
1279
- .option('--title <title>', 'Book title')
1280
- .option('--author <author>', 'Book author')
1281
- .option('--subtitle <subtitle>', 'Book subtitle')
1282
- .action(async (options) => {
1283
- const { promises: fs } = await import('fs');
1284
- const path = await import('path');
1285
- const yaml = await import('js-yaml');
1286
-
1287
- try {
1288
- const title = options.title || 'My Book';
1289
- const author = options.author || 'Author Name';
1290
- const subtitle = options.subtitle || '';
1291
-
1292
- console.log(`📚 Creating Apple-style book: ${title}`);
1293
-
1294
- // Create directory structure
1295
- const dirs = ['content', 'images', 'output'];
1296
- for (const dir of dirs) {
1297
- await fs.mkdir(dir, { recursive: true });
1298
- console.log(`✓ Created ${dir}/ directory`);
1299
- }
1300
-
1301
- // Create sample book.yaml
1302
- const bookConfig = {
1303
- title,
1304
- subtitle,
1305
- author,
1306
- cover: 'cover.jpg'
1307
- };
1308
-
1309
- await fs.writeFile('book.yaml', yaml.dump(bookConfig));
1310
- console.log('✓ Created book.yaml');
1311
-
1312
- // Create sample chapter
1313
- const sampleChapter = `# Introduction
1314
-
1315
- This is your first chapter. Add your content here.
1316
-
1317
- ## Section 1.1
1318
-
1319
- You can add images by placing them in the images/ folder and referencing them:
1320
-
1321
- ![Sample Image](1.1-sample.png)
1322
-
1323
- ## Section 1.2
1324
-
1325
- Continue writing your content...
1326
- `;
1327
-
1328
- await fs.writeFile('content/1-Introduction.md', sampleChapter);
1329
- console.log('✓ Created sample chapter: content/1-Introduction.md');
1330
-
1331
- // Create sample section
1332
- const sampleSection = `# Implementation Details
1333
-
1334
- This is a section that extends Chapter 1.
1335
-
1336
- ![Implementation Flow](1.1-implementation.png)
1337
-
1338
- Your detailed implementation content goes here.
1339
- `;
1340
-
1341
- await fs.writeFile('content/1.1-Implementation.md', sampleSection);
1342
- console.log('✓ Created sample section: content/1.1-Implementation.md');
1343
-
1344
- console.log('\n🎉 Apple-style book project created successfully!');
1345
- console.log('\nNext steps:');
1346
- console.log('1. Add your chapters to content/ directory (numbered: 1-Chapter.md, 2-Chapter.md)');
1347
- console.log('2. Add your images to images/ directory');
1348
- console.log('3. Generate your book with: one generate-book');
1349
- console.log('\nFile naming conventions:');
1350
- console.log('- Chapters: 1-Introduction.md, 2-Foundation.md, etc.');
1351
- console.log('- Sections: 1.1-Setup.md, 1.2-Config.md, etc.');
1352
- console.log('- Chapter images: 1-introduction.jpg, 2-foundation.jpg');
1353
- console.log('- Section images: 1.1-setup.png, 1.2-config.png');
1354
-
1355
- } catch (error) {
1356
- console.error('Error creating book:', error.message);
1357
- process.exit(1);
1358
- }
1359
- });
1360
-
1361
- program
1362
- .command('generate-book')
1363
- .description('Generate Apple-style book from content and images')
1364
- .option('--format <format>', 'Output format: pdf, epub, docx, or both', 'pdf')
1365
- .option('--config <config>', 'Book configuration file', 'book.yaml')
1366
- .option('--verbose', 'Verbose output')
1367
- .action(async (options) => {
1368
- const { promises: fs } = await import('fs');
1369
- const yaml = await import('js-yaml');
1370
- const { default: PlaybookGenerator } = await import('./lib/playbook-generator.js');
1371
-
1372
- try {
1373
- // Load book configuration
1374
- const configPath = options.config;
1375
- const configContent = await fs.readFile(configPath, 'utf8');
1376
- const config = yaml.load(configContent);
1377
-
1378
- // Validate required fields
1379
- if (!config.title) {
1380
- console.error('Error: book.yaml missing required field: title');
1381
- process.exit(1);
1382
- }
1383
-
1384
- console.log(`📚 Generating Apple-style book: ${config.title}`);
1385
- console.log(`📝 Format: ${options.format}`);
1386
-
1387
- // Initialize generator
1388
- const generator = new PlaybookGenerator({
1389
- rootDir: process.cwd(),
1390
- outputDir: './output'
1391
- });
1392
-
1393
- // Generate book
1394
- const result = await generator.generateAppleBook(config, {
1395
- format: options.format,
1396
- verbose: options.verbose
1397
- });
1398
-
1399
- console.log('\n🎉 Book generated successfully!');
1400
- console.log(`📖 Found ${result.structure.chapters.length} chapters`);
1401
- console.log('📁 Generated files:');
1402
- result.files.forEach(file => {
1403
- console.log(` ${file}`);
1404
- });
1405
-
1406
- } catch (error) {
1407
- console.error('Error generating book:', error.message);
1408
- if (options.verbose) {
1409
- console.error(error.stack);
1410
- }
1411
- process.exit(1);
1412
- }
1413
- });
1414
-
1415
- // New ONE: Command Structure
1416
- program
1417
- .command('one:mission [subcommand]')
1418
- .description('Manage missions (goal-oriented campaigns)')
1419
- .action(async (subcommand) => {
1420
- await handleOneCommand('mission', subcommand);
1421
- });
1422
-
1423
- program
1424
- .command('one:story [subcommand]')
1425
- .description('Manage stories (individual narratives within missions)')
1426
- .action(async (subcommand) => {
1427
- await handleOneCommand('story', subcommand);
1428
- });
1429
-
1430
- program
1431
- .command('one:agent [subcommand]')
1432
- .description('Manage agents (AI specialists with team prefixes)')
1433
- .action(async (subcommand) => {
1434
- await handleOneCommand('agent', subcommand);
1435
- });
1436
-
1437
- program
1438
- .command('one:checklist [subcommand]')
1439
- .description('Manage checklists (quality validation gates)')
1440
- .action(async (subcommand) => {
1441
- await handleOneCommand('checklist', subcommand);
1442
- });
1443
-
1444
- program
1445
- .command('one:agent-team [subcommand]')
1446
- .description('Manage agent teams (marketing-team, engineering-team, design-team)')
1447
- .action(async (subcommand) => {
1448
- await handleOneCommand('agent-team', subcommand);
1449
- });
1450
-
1451
- program
1452
- .command('one:data [subcommand]')
1453
- .description('Manage data (knowledge base and assets)')
1454
- .action(async (subcommand) => {
1455
- await handleOneCommand('data', subcommand);
1456
- });
1457
-
1458
- program
1459
- .command('one:playbook [subcommand]')
1460
- .description('Manage playbooks (industry and client guides)')
1461
- .action(async (subcommand) => {
1462
- await handleOneCommand('playbook', subcommand);
1463
- });
1464
-
1465
- program
1466
- .command('one:test [subcommand]')
1467
- .description('Manage tests (testing frameworks)')
1468
- .action(async (subcommand) => {
1469
- await handleOneCommand('test', subcommand);
1470
- });
1471
-
1472
- program
1473
- .command('one:task [subcommand]')
1474
- .description('Manage tasks (granular actions within stories)')
1475
- .action(async (subcommand) => {
1476
- await handleOneCommand('task', subcommand);
1477
- });
1478
-
1479
- program
1480
- .command('one:tool [subcommand]')
1481
- .description('Manage tools (development and deployment utilities)')
1482
- .action(async (subcommand) => {
1483
- await handleOneCommand('tool', subcommand);
1484
- });
1485
-
1486
- program
1487
- .command('one:template [subcommand]')
1488
- .description('Manage templates (document and story templates)')
1489
- .action(async (subcommand) => {
1490
- await handleOneCommand('template', subcommand);
1491
- });
1492
- program
1493
- .command('one:foundation')
1494
- .description('Create your personalized Company, Market, Customer foundation')
1495
- .action(async () => {
1496
- await handleFoundationCommand();
1497
- });
1498
-
1499
- program
1500
- .command('one:pdf [file]')
1501
- .description('Convert markdown/HTML to PDF with embedded images')
1502
- .option('-o, --output <file>', 'Output PDF filename')
1503
- .option('-t, --title <title>', 'Document title')
1504
- .action(async (file, options) => {
1505
- await handlePdfCommand(file, options);
1506
- });
1507
-
1508
- program
1509
- .command('one:formats')
1510
- .description('Generate Bull Character Guide in all formats (MD, DOCX, EPUB, PDF)')
1511
- .option('-f, --format <format>', 'Specific format: md, docx, epub, pdf, all', 'all')
1512
- .action(async (options) => {
1513
- await handleFormatsCommand(options);
1514
- });
1515
-
1516
-
1517
- // ONE Command Handler
1518
- async function handleOneCommand(type, subcommand) {
1519
- const { promises: fs } = await import('fs');
1520
- const path = await import('path');
1521
-
1522
- const directories = {
1523
- mission: 'one/missions',
1524
- story: 'one/stories',
1525
- agent: 'one/agents',
1526
- checklist: 'one/checklists',
1527
- 'agent-team': 'one/teams',
1528
- data: 'one/data',
1529
- playbook: 'one/playbooks',
1530
- test: 'one/tests',
1531
- task: 'one/tasks',
1532
- tool: 'one/tools',
1533
- template: 'one/templates'
1534
- };
1535
-
1536
- const dir = directories[type];
1537
-
1538
- try {
1539
- // List items in the directory
1540
- const items = await fs.readdir(dir);
1541
- const itemList = items
1542
- .filter(item => !item.startsWith('.'))
1543
- .map((item, index) => `[${index + 1}] ${item}`)
1544
- .join('\n ');
1545
-
1546
- console.log(`\n📋 Here are your ${type.charAt(0).toUpperCase() + type.slice(1)}s:\n`);
1547
- console.log(` ${itemList}\n`);
1548
- console.log(`Select a number or write a new item (e.g., ${type}, ${type === 'agent-team' ? 'team' : type === 'mission' ? 'story' : 'task'}, etc.)\n`);
1549
-
1550
- // If a subcommand was provided, try to handle it
1551
- if (subcommand) {
1552
- const itemPath = path.join(dir, subcommand);
1553
- try {
1554
- const content = await fs.readFile(itemPath, 'utf8');
1555
- console.log(`📄 Content of ${subcommand}:\n`);
1556
- console.log(content);
1557
- } catch (error) {
1558
- console.log(`ℹ️ Item '${subcommand}' not found. Available items listed above.`);
1559
- }
1560
- }
1561
-
1562
- } catch (error) {
1563
- console.error(`Error accessing ${type}s: ${error.message}`);
1564
- console.log(`\nDirectory: ${dir}`);
1565
- console.log(`Suggestion: Create the directory structure with 'npm run build'`);
1566
- }
1567
- }
1568
-
1569
- // Content Generation Command - Bull Content Engine Integration
1570
- program
1571
- .command('content [client] [type] [prompt]')
1572
- .alias('one:content')
1573
- .description('Generate Bull-branded content for specific clients using the Content Engine')
1574
- .option('-t, --title <title>', 'Custom content title')
1575
- .option('-p, --platform <platform>', 'Target platform for social media content')
1576
- .option('--priority <level>', 'Content priority level (high/medium/low)')
1577
- .option('--interactive', 'Run in interactive mode (default if no args provided)')
1578
- .action(async (client, type, prompt, options) => {
1579
- try {
1580
- const { OneContentCommand } = await import('./content/one-content-command.js');
1581
-
1582
- if (client && type && prompt) {
1583
- // Direct mode with all parameters provided
1584
- const contentOptions = {
1585
- title: options.title,
1586
- platform: options.platform,
1587
- priority: options.priority || 'medium'
1588
- };
1589
-
1590
- await OneContentCommand.run([client, type, prompt, JSON.stringify(contentOptions)]);
1591
- } else {
1592
- // Interactive mode
1593
- await OneContentCommand.run([]);
1594
- }
1595
- } catch (error) {
1596
- console.error('❌ Content generation failed:', error.message);
1597
- console.log('\n💡 Troubleshooting:');
1598
- console.log(' • Ensure client exists in playbooks/clients/ folder');
1599
- console.log(' • Check content type is valid (market_analysis, educational, community, social_media, newsletter)');
1600
- console.log(' • Try running in interactive mode: node one/tools/cli.js content');
1601
- process.exit(1);
1602
- }
1603
- });
1604
-
1605
- // PDF Conversion Command Handler
1606
- async function handlePdfCommand(file, options) {
1607
- const { spawn } = await import('child_process');
1608
- const path = await import('path');
1609
-
1610
- if (!file) {
1611
- console.log('📋 ONE Framework PDF Converter');
1612
- console.log('\nUsage:');
1613
- console.log(' node one/tools/cli.js one:pdf <file.md|file.html> [options]');
1614
- console.log('\nOptions:');
1615
- console.log(' -o, --output <file> Output PDF filename');
1616
- console.log(' -t, --title <title> Document title');
1617
- console.log('\nExamples:');
1618
- console.log(' node one/tools/cli.js one:pdf document.md');
1619
- console.log(' node one/tools/cli.js one:pdf document.md -o custom.pdf');
1620
- console.log(' node one/tools/cli.js one:pdf document.md -t "Custom Title"');
1621
- console.log('\nPre-configured conversions:');
1622
- console.log(' npm run pdf:bullstamp-character # Bull Character Guide');
1623
- console.log(' npm run pdf:bullstamp-foundation # Foundation playbook');
1624
- return;
1625
- }
1626
-
1627
- console.log('🔄 Converting to PDF using ONE Framework enhanced converter...');
1628
-
1629
- // Build command arguments
1630
- const args = ['one/tools/enhanced-pdf-converter.py', file];
1631
-
1632
- if (options.output) {
1633
- args.push(options.output);
1634
- }
1635
-
1636
- if (options.title) {
1637
- args.push(options.title);
1638
- }
1639
-
1640
- // Execute the Python converter
1641
- const converter = spawn('python3', args, {
1642
- stdio: 'inherit',
1643
- cwd: process.cwd()
1644
- });
1645
-
1646
- converter.on('close', (code) => {
1647
- if (code === 0) {
1648
- console.log('✅ PDF conversion completed successfully!');
1649
- } else {
1650
- console.error('❌ PDF conversion failed');
1651
- process.exit(1);
1652
- }
1653
- });
1654
-
1655
- converter.on('error', (error) => {
1656
- console.error('❌ Failed to start PDF converter:', error.message);
1657
- console.log('\n💡 Troubleshooting:');
1658
- console.log(' • Ensure Python 3 is installed: python3 --version');
1659
- console.log(' • Install required dependencies: pip3 install markdown');
1660
- console.log(' • For Chrome PDF engine: ensure Google Chrome is installed');
1661
- process.exit(1);
1662
- });
1663
- }
1664
-
1665
- // Handle multi-format generation command
1666
- async function handleFormatsCommand(options) {
1667
- const { spawn } = await import('child_process');
1668
-
1669
- console.log('📋 ONE Framework Multi-Format Generator');
1670
- console.log('🔄 Generating Bull Character Guide formats...');
1671
- console.log(`📝 Format: ${options.format}`);
1672
-
1673
- if (options.format === 'all') {
1674
- console.log('📄 Generating all formats: MD, DOCX, EPUB, PDF');
1675
-
1676
- // First generate markdown and multi-format documents
1677
- const multiFormatProcess = spawn('python3', ['one/tools/bull-character-multi-format.py'], { stdio: 'inherit' });
1678
-
1679
- multiFormatProcess.on('close', (code) => {
1680
- if (code === 0) {
1681
- console.log('✅ Markdown format completed!');
1682
-
1683
- // Then generate DOCX and EPUB
1684
- const docxEpubProcess = spawn('python3', ['one/tools/bull-character-docx-epub.py'], { stdio: 'inherit' });
1685
-
1686
- docxEpubProcess.on('close', (code) => {
1687
- if (code === 0) {
1688
- console.log('✅ DOCX and EPUB formats completed!');
1689
-
1690
- // Finally merge PDFs if not already done
1691
- const mergeProcess = spawn('python3', ['one/tools/merge-bull-pdfs.py'], { stdio: 'inherit' });
1692
-
1693
- mergeProcess.on('close', (code) => {
1694
- if (code === 0) {
1695
- console.log('✅ All formats generated successfully!');
1696
- console.log('📁 Available formats:');
1697
- console.log(' • the-bull-character.md (Markdown)');
1698
- console.log(' • the-bull-character.docx (Microsoft Word)');
1699
- console.log(' • the-bull-character.epub (E-book)');
1700
- console.log(' • the-bull-character.pdf (PDF)');
1701
- } else {
1702
- console.log('⚠️ PDF merge failed, but other formats are ready.');
1703
- }
1704
- });
1705
- } else {
1706
- console.log('❌ DOCX/EPUB generation failed.');
1707
- }
1708
- });
1709
- } else {
1710
- console.log('❌ Markdown generation failed.');
1711
- }
1712
- });
1713
- } else {
1714
- // Handle specific format generation
1715
- let scriptPath;
1716
- switch (options.format.toLowerCase()) {
1717
- case 'md':
1718
- scriptPath = 'one/tools/bull-character-multi-format.py';
1719
- break;
1720
- case 'docx':
1721
- case 'epub':
1722
- scriptPath = 'one/tools/bull-character-docx-epub.py';
1723
- break;
1724
- case 'pdf':
1725
- scriptPath = 'one/tools/merge-bull-pdfs.py';
1726
- break;
1727
- default:
1728
- console.log('❌ Invalid format. Use: md, docx, epub, pdf, or all');
1729
- return;
1730
- }
1731
-
1732
- console.log(`🔄 Generating ${options.format.toUpperCase()} format...`);
1733
- const process = spawn('python3', [scriptPath], { stdio: 'inherit' });
1734
-
1735
- process.on('close', (code) => {
1736
- if (code === 0) {
1737
- console.log(`✅ ${options.format.toUpperCase()} format generated successfully!`);
1738
- } else {
1739
- console.log(`❌ ${options.format.toUpperCase()} generation failed.`);
1740
- }
1741
- });
1742
- }
1743
- }
1744
-
1745
- // Foundation Command Handler
1746
- async function handleFoundationCommand() {
1747
- try {
1748
- const FoundationWizard = await import('./foundation-wizard.js');
1749
- const wizard = new FoundationWizard.default();
1750
- await wizard.run();
1751
- } catch (error) {
1752
- console.error('Error running foundation wizard:', error);
1753
- console.log('\nTo create your foundation:');
1754
- console.log('1. Ensure you have a complete ONE installation');
1755
- console.log('2. Run "npm install" to install dependencies');
1756
- console.log('3. Try the command again');
1757
- }
1758
- }
1759
-
1760
- // Spiral Automation System
1761
- program
1762
- .command('spiral')
1763
- .description('🌀 ONE Spiral Automation System - Transform URLs into complete business systems')
1764
- .argument('[input]', 'URL, business idea, or company name to analyze')
1765
- .option('--demo', 'Run interactive demo interface')
1766
- .option('--test', 'Run test with BullStamp example')
1767
- .option('--info', 'Show system information')
1768
- .option('--dashboard', 'Start interactive dashboard after processing')
1769
- .option('-o, --output <file>', 'Save results to file')
1770
- .option('-f, --format <format>', 'Output format (json|yaml)', 'json')
1771
- .option('--debug', 'Enable debug mode')
1772
- .action(async (input, options) => {
1773
- try {
1774
- if (options.demo) {
1775
- const { default: SpiralDemo } = await import('./spiral-automation/spiral-demo.js');
1776
- const demo = new SpiralDemo();
1777
- await demo.run();
1778
- return;
1779
- }
1780
-
1781
- if (options.test) {
1782
- console.log('🧪 Running BullStamp Test...');
1783
- const { default: SpiralAutomationEngine } = await import('./spiral-automation/engine/spiral-automation-engine.js');
1784
- const engine = new SpiralAutomationEngine({ debugMode: true });
1785
- const result = await engine.processInput('bullstamp.io');
1786
- console.log('✅ Test completed successfully!');
1787
- return;
1788
- }
1789
-
1790
- if (options.info) {
1791
- console.log('🌀 Spiral Automation System Information');
1792
- console.log('━'.repeat(50));
1793
- console.log();
1794
- console.log('Components: Web Scraper, Market Research, Customer Intelligence, Foundation Synthesizer');
1795
- console.log('Capabilities: URL Analysis, Business Ideas, Company Research, Game Progression');
1796
- console.log('Quick Start: "one spiral --demo" for interactive demo');
1797
- return;
1798
- }
1799
-
1800
- if (!input) {
1801
- console.log('🌀 ONE Spiral Automation System');
1802
- console.log('Usage: one spiral <url|idea|company> [options]');
1803
- console.log(' one spiral --demo (interactive demo)');
1804
- console.log(' one spiral --test (test with BullStamp)');
1805
- console.log(' one spiral --dashboard (start with dashboard)');
1806
- console.log(' one spiral --info (system information)');
1807
- return;
1808
- }
1809
-
1810
- // Process input
1811
- console.log('🌀 Processing:', input);
1812
- const { default: SpiralAutomationEngine } = await import('./spiral-automation/engine/spiral-automation-engine.js');
1813
- const engine = new SpiralAutomationEngine({ debugMode: options.debug });
1814
- const result = await engine.processInput(input);
1815
-
1816
- if (options.output) {
1817
- const fs = await import('fs/promises');
1818
- const content = options.format === 'yaml'
1819
- ? (await import('js-yaml')).dump(result, { indent: 2 })
1820
- : JSON.stringify(result, null, 2);
1821
- await fs.writeFile(options.output, content, 'utf8');
1822
- console.log(`💾 Results saved to: ${options.output}`);
1823
- } else {
1824
- console.log('✅ Processing complete! Use --output to save results.');
1825
- }
1826
-
1827
- // Start dashboard if requested
1828
- if (options.dashboard && result.success) {
1829
- console.log();
1830
- console.log('🎮 Starting interactive dashboard...');
1831
- await engine.startInteractiveDashboard(result, result.sessionId);
1832
- }
1833
-
1834
- } catch (error) {
1835
- console.error('❌ Spiral automation failed:', error.message);
1836
- process.exit(1);
1837
- }
1838
- });
1839
-
1840
- // ========================================
1841
- // MISSION 9: IMPLEMENTATION FUNCTIONS
1842
- // Beautiful Simplicity Through Unified Orchestration
1843
- // ========================================
1844
-
1845
- // Claude Agent Discovery and Integration
1846
- async function discoverClaudeAgents() {
1847
- try {
1848
- const claudeAgentsPath = path.resolve('.claude/agents');
1849
- const files = await fs.readdir(claudeAgentsPath);
1850
- const agents = files
1851
- .filter(f => f.endsWith('.md') && f !== 'README.md')
1852
- .map(f => f.replace('.md', ''))
1853
- .sort();
1854
-
1855
- return agents;
1856
- } catch (error) {
1857
- return [];
1858
- }
1859
- }
1860
-
1861
- // Enhanced agent information extraction
1862
- async function getAgentInfo(agentName) {
1863
- try {
1864
- // Try Claude agents first
1865
- const claudePath = path.resolve('.claude/agents', `${agentName}.md`);
1866
- try {
1867
- const content = await fs.readFile(claudePath, 'utf8');
1868
- return {
1869
- name: agentName,
1870
- location: 'claude',
1871
- type: 'Claude Code Agent',
1872
- description: extractDescription(content),
1873
- capabilities: extractCapabilities(content),
1874
- team: extractTeam(agentName)
1875
- };
1876
- } catch {}
1877
-
1878
- // Try one/agents
1879
- const onePath = path.resolve('one/agents', `${agentName}.md`);
1880
- try {
1881
- const content = await fs.readFile(onePath, 'utf8');
1882
- return {
1883
- name: agentName,
1884
- location: 'one',
1885
- type: 'ONE Framework Agent',
1886
- description: extractDescription(content),
1887
- capabilities: extractCapabilities(content),
1888
- team: extractTeam(agentName)
1889
- };
1890
- } catch {}
1891
-
1892
- return null;
1893
- } catch (error) {
1894
- return null;
1895
- }
1896
- }
1897
-
1898
- function extractDescription(content) {
1899
- // Extract description from agent file
1900
- const lines = content.split('\\n');
1901
- for (const line of lines) {
1902
- if (line.includes('description:') || line.includes('Description:')) {
1903
- return line.split(':')[1]?.trim() || 'No description available';
1904
- }
1905
- }
1906
-
1907
- // Fallback: look for first paragraph
1908
- const paragraphs = content.split('\\n\\n');
1909
- if (paragraphs.length > 1) {
1910
- return paragraphs[1].substring(0, 200) + '...';
1911
- }
1912
-
1913
- return 'No description available';
1914
- }
1915
-
1916
- function extractCapabilities(content) {
1917
- const capabilities = [];
1918
- const lines = content.split('\\n');
1919
-
1920
- for (const line of lines) {
1921
- if (line.includes('tools:') || line.includes('Tools:')) {
1922
- // Extract tools as capabilities
1923
- const toolsMatch = line.match(/\\[(.*?)\\]/);
1924
- if (toolsMatch) {
1925
- capabilities.push(...toolsMatch[1].split(',').map(t => t.trim()));
1926
- }
1927
- }
1928
- }
1929
-
1930
- return capabilities;
1931
- }
1932
-
1933
- function extractTeam(agentName) {
1934
- const prefixMap = {
1935
- 'marketing-': 'Marketing Team',
1936
- 'engineering-': 'Engineering Team',
1937
- 'sales-': 'Sales Team',
1938
- 'service-': 'Service Team',
1939
- 'research-': 'Research Team',
1940
- 'content-': 'Content Team',
1941
- 'crypto-': 'Crypto Team',
1942
- 'company-': 'Company Specialists',
1943
- 'tools-': 'Tools Team',
1944
- 'framework-': 'Framework Team'
1945
- };
1946
-
1947
- for (const [prefix, team] of Object.entries(prefixMap)) {
1948
- if (agentName.startsWith(prefix)) {
1949
- return team;
1950
- }
1951
- }
1952
-
1953
- return 'Core Team';
1954
- }
1955
-
1956
- // Mission 9 Command Handlers
1957
- async function handleMissionCommand(name, options) {
1958
- console.log('🎯 \\x1b[1mMission Command - Goal-Oriented Campaigns\\x1b[0m\\n');
1959
-
1960
- if (options.list || !name) {
1961
- await listMissions();
1962
- } else if (options.create) {
1963
- await createMission(name);
1964
- } else if (options.status) {
1965
- await showMissionStatus(name);
1966
- } else {
1967
- await launchMission(name);
1968
- }
1969
- }
1970
-
1971
- async function handleStoryCommand(name, options) {
1972
- console.log('📖 \\x1b[1mStory Command - Narrative Workflows\\x1b[0m\\n');
1973
-
1974
- if (options.list || !name) {
1975
- await listStories(options.mission);
1976
- } else if (options.create) {
1977
- await createStory(name, options.mission);
1978
- } else {
1979
- await executeStory(name);
1980
- }
1981
- }
1982
-
1983
- async function handleAgentCommand(name, options) {
1984
- console.log('🤖 \\x1b[1mAgent Command - Specialized AI\\x1b[0m\\n');
1985
-
1986
- if (options.info) {
1987
- await showAgentInfo(options.info);
1988
- } else if (options.list || !name) {
1989
- await listAgents(options.team, options.claude);
1990
- } else {
1991
- await invokeAgent(name);
1992
- }
1993
- }
1994
-
1995
- async function handleTeamCommand(name, options) {
1996
- console.log('👥 \\x1b[1mTeam Command - Agent Coordination\\x1b[0m\\n');
1997
-
1998
- if (options.list || !name) {
1999
- await listTeams();
2000
- } else if (options.members) {
2001
- await showTeamMembers(options.members);
2002
- } else {
2003
- await coordinateTeam(name);
2004
- }
2005
- }
2006
-
2007
- async function handleWorkflowCommand(name, options) {
2008
- console.log('⚡ \\x1b[1mWorkflow Command - Proven Processes\\x1b[0m\\n');
2009
-
2010
- if (options.list || !name) {
2011
- await listWorkflows();
2012
- } else if (options.run) {
2013
- await executeWorkflow(options.run);
2014
- } else {
2015
- await showWorkflow(name);
2016
- }
2017
- }
2018
-
2019
- async function handleTemplateCommand(name, options) {
2020
- console.log('📄 \\x1b[1mTemplate Command - Document Generation\\x1b[0m\\n');
2021
-
2022
- if (options.list || !name) {
2023
- await listTemplates();
2024
- } else if (options.create) {
2025
- await createFromTemplate(options.create);
2026
- } else {
2027
- await showTemplate(name);
2028
- }
2029
- }
2030
-
2031
- async function handleTaskCommand(name, options) {
2032
- console.log('✅ \\x1b[1mTask Command - Specific Actions\\x1b[0m\\n');
2033
-
2034
- if (options.list || !name) {
2035
- await listTasks();
2036
- } else if (options.run) {
2037
- await executeTask(options.run);
2038
- } else {
2039
- await showTask(name);
2040
- }
2041
- }
2042
-
2043
- async function handleChecklistCommand(name, options) {
2044
- console.log('🔍 \\x1b[1mChecklist Command - Quality Validation\\x1b[0m\\n');
2045
-
2046
- if (options.list || !name) {
2047
- await listChecklists();
2048
- } else if (options.run) {
2049
- await executeChecklist(options.run);
2050
- } else {
2051
- await showChecklist(name);
2052
- }
2053
- }
2054
-
2055
- async function handleDataCommand(name, options) {
2056
- console.log('💾 \\x1b[1mData Command - Knowledge Base\\x1b[0m\\n');
2057
-
2058
- if (options.search) {
2059
- await searchKnowledge(options.search);
2060
- } else if (options.list || !name) {
2061
- await listData();
2062
- } else {
2063
- await showData(name);
2064
- }
2065
- }
2066
-
2067
- async function handlePlaybookCommand(name, options) {
2068
- console.log('📚 \\x1b[1mPlaybook Command - Industry Guides\\x1b[0m\\n');
2069
-
2070
- if (options.generate) {
2071
- await generatePlaybook(options.generate, options.industry);
2072
- } else if (options.list || !name) {
2073
- await listPlaybooks();
2074
- } else {
2075
- await showPlaybook(name);
2076
- }
2077
- }
2078
-
2079
- async function handleToolCommand(name, options) {
2080
- console.log('🛠️ \\x1b[1mTool Command - Utilities\\x1b[0m\\n');
2081
-
2082
- if (options.list || !name) {
2083
- await listTools();
2084
- } else if (options.run) {
2085
- await executeTool(options.run);
2086
- } else {
2087
- await showTool(name);
2088
- }
2089
- }
2090
-
2091
- async function handleHelpCommand(command) {
2092
- if (command) {
2093
- await showCommandHelp(command);
2094
- } else {
2095
- await showGeneralHelp();
2096
- }
2097
- }
2098
-
2099
- // Implementation Functions
2100
- async function listAgents(teamFilter, claudeOnly) {
2101
- const claudeAgents = await discoverClaudeAgents();
2102
- const oneAgents = await discoverOneAgents();
2103
-
2104
- if (claudeOnly) {
2105
- console.log('🎭 \\x1b[1mClaude Code Agents\\x1b[0m (.claude/agents/)\\n');
2106
- displayAgentsByTeam(claudeAgents, teamFilter);
2107
- } else {
2108
- console.log('🎭 \\x1b[1mAgent Symphony - Beautiful Simplicity\\x1b[0m\\n');
2109
-
2110
- if (claudeAgents.length > 0) {
2111
- console.log('\\x1b[36m🎪 Claude Code Agents\\x1b[0m (.claude/agents/)');
2112
- displayAgentsByTeam(claudeAgents, teamFilter);
2113
- console.log();
2114
- }
2115
-
2116
- if (oneAgents.length > 0) {
2117
- console.log('\\x1b[33m🎪 ONE Framework Agents\\x1b[0m (one/agents/)');
2118
- displayAgentsByTeam(oneAgents, teamFilter);
2119
- }
2120
-
2121
- console.log(`\\n\\x1b[32m✨ Total: ${claudeAgents.length + oneAgents.length} specialized agents ready\\x1b[0m`);
2122
- console.log('\\x1b[2mUse: one agent <name> to invoke, one agent -i <name> for details\\x1b[0m');
2123
- }
2124
- }
2125
-
2126
- function displayAgentsByTeam(agents, teamFilter) {
2127
- const teams = {};
2128
-
2129
- agents.forEach(agent => {
2130
- const team = extractTeam(agent);
2131
- if (!teamFilter || team.toLowerCase().includes(teamFilter.toLowerCase())) {
2132
- if (!teams[team]) teams[team] = [];
2133
- teams[team].push(agent);
2134
- }
2135
- });
2136
-
2137
- Object.entries(teams).sort().forEach(([team, teamAgents]) => {
2138
- console.log(`\\n \\x1b[1m${team}\\x1b[0m`);
2139
- teamAgents.sort().forEach(agent => {
2140
- console.log(` • ${agent}`);
2141
- });
2142
- });
2143
- }
2144
-
2145
- async function discoverOneAgents() {
2146
- try {
2147
- const oneAgentsPath = path.resolve('one/agents');
2148
- const files = await fs.readdir(oneAgentsPath);
2149
- return files
2150
- .filter(f => f.endsWith('.md'))
2151
- .map(f => f.replace('.md', ''))
2152
- .sort();
2153
- } catch (error) {
2154
- return [];
2155
- }
2156
- }
2157
-
2158
- async function showAgentInfo(agentName) {
2159
- const info = await getAgentInfo(agentName);
2160
-
2161
- if (!info) {
2162
- console.log(`❌ Agent '${agentName}' not found`);
2163
- console.log('\\nUse: one agent --list to see available agents');
2164
- return;
2165
- }
2166
-
2167
- console.log(`\\x1b[1m${info.name}\\x1b[0m`);
2168
- console.log(`Type: ${info.type}`);
2169
- console.log(`Team: ${info.team}`);
2170
- console.log(`Location: ${info.location}`);
2171
- console.log(`\\nDescription:`);
2172
- console.log(` ${info.description}`);
2173
-
2174
- if (info.capabilities.length > 0) {
2175
- console.log(`\\nCapabilities:`);
2176
- info.capabilities.forEach(cap => console.log(` • ${cap}`));
2177
- }
2178
-
2179
- console.log(`\\n\\x1b[2mInvoke with: one agent ${agentName}\\x1b[0m`);
2180
- }
2181
-
2182
- async function showSymphonyStatus() {
2183
- console.log('🎼 \\x1b[1mSymphony Orchestration Status\\x1b[0m\\n');
2184
-
2185
- const claudeAgents = await discoverClaudeAgents();
2186
- const oneAgents = await discoverOneAgents();
2187
-
2188
- // Show ecosystem health
2189
- console.log('\\x1b[36m🎪 Agent Ensemble\\x1b[0m');
2190
- console.log(` Claude Code Agents: ${claudeAgents.length}`);
2191
- console.log(` ONE Framework Agents: ${oneAgents.length}`);
2192
- console.log(` Total Specialists: ${claudeAgents.length + oneAgents.length}`);
2193
-
2194
- // Show component status
2195
- console.log('\\n\\x1b[33m🏗️ Component Status\\x1b[0m');
2196
- await checkComponentStatus('missions', 'one/missions');
2197
- await checkComponentStatus('stories', 'one/stories');
2198
- await checkComponentStatus('workflows', 'one/workflows');
2199
- await checkComponentStatus('templates', 'one/templates');
2200
- await checkComponentStatus('tasks', 'one/tasks');
2201
- await checkComponentStatus('checklists', 'one/checklists');
2202
- await checkComponentStatus('data', 'one/data');
2203
- await checkComponentStatus('playbooks', 'one/playbooks');
2204
-
2205
- console.log('\\n\\x1b[32m✨ Mission 9: Beautiful Simplicity Achieved\\x1b[0m');
2206
- console.log('\\x1b[2mAll components working in harmony through /one command\\x1b[0m');
2207
- }
2208
-
2209
- async function checkComponentStatus(name, directory) {
2210
- try {
2211
- const files = await fs.readdir(directory);
2212
- const count = files.filter(f => !f.startsWith('.')).length;
2213
- console.log(` ${name}: ${count} items ✅`);
2214
- } catch (error) {
2215
- console.log(` ${name}: not found ❌`);
2216
- }
2217
- }
2218
-
2219
- async function showGeneralHelp() {
2220
- console.log('🎼 \\x1b[1mONE Framework - Beautiful Simplicity Through Unified Orchestration\\x1b[0m\\n');
2221
-
2222
- console.log('\\x1b[36m🎨 Interactive Interface\\x1b[0m');
2223
- console.log(' one interface 🎨 Launch responsive ONE interface');
2224
- console.log(' one ui 🎨 Alias for interface command');
2225
- console.log(' one one 🎯 Quick access to interface');
2226
- console.log();
2227
-
2228
- console.log('\\x1b[36m🎯 Mission 9 Commands - The Symphony Interface\\x1b[0m');
2229
- console.log(' one mission 🎯 Launch goal-oriented campaigns');
2230
- console.log(' one story 📖 Execute narrative workflows');
2231
- console.log(' one agent 🤖 Invoke specialized AI');
2232
- console.log(' one team 👥 Coordinate agent groups');
2233
- console.log(' one workflow ⚡ Run proven processes');
2234
- console.log(' one template 📄 Generate documents');
2235
- console.log(' one task ✅ Execute specific actions');
2236
- console.log(' one checklist 🔍 Validate quality');
2237
- console.log(' one data 💾 Access knowledge base');
2238
- console.log(' one playbook 📚 Industry guides');
2239
- console.log(' one tool 🛠️ Utility functions');
2240
- console.log(' one status 🎼 Symphony status');
2241
- console.log(' one help ❓ This help');
2242
-
2243
- console.log('\\n\\x1b[33m✨ Quick Start\\x1b[0m');
2244
- console.log(' one interface # Beautiful responsive interface');
2245
- console.log(' one agent --list # See all 40+ specialized agents');
2246
- console.log(' one mission --list # View available campaigns');
2247
- console.log(' one status # Check ecosystem health');
2248
-
2249
- console.log('\\n\\x1b[32m🎪 Beautiful Simplicity Principles\\x1b[0m');
2250
- console.log(' • Responsive design - adapts to any terminal size');
2251
- console.log(' • One command (/one) - access entire ecosystem');
2252
- console.log(' • Intelligent routing - finds what you need');
2253
- console.log(' • Progressive disclosure - simple stays simple');
2254
- console.log(' • Emergent capabilities - combinations create magic');
2255
-
2256
- console.log('\\n\\x1b[2m"True sophistication is making the complex appear simple"\\x1b[0m');
2257
- }
2258
-
2259
- // Placeholder implementations for missing functions
2260
- async function listMissions() { console.log('📋 Missions feature coming soon...'); }
2261
- async function createMission(name) { console.log(`🎯 Creating mission: ${name}...`); }
2262
- async function showMissionStatus(name) { console.log(`📊 Status for mission: ${name}...`); }
2263
- async function launchMission(name) { console.log(`🚀 Launching mission: ${name}...`); }
2264
- async function listStories(mission) { console.log('📚 Stories feature coming soon...'); }
2265
- async function createStory(name, mission) { console.log(`📝 Creating story: ${name}...`); }
2266
- async function executeStory(name) { console.log(`▶️ Executing story: ${name}...`); }
2267
- async function invokeAgent(name) { console.log(`🤖 Invoking agent: ${name}...`); }
2268
- async function listTeams() { console.log('👥 Teams feature coming soon...'); }
2269
- async function showTeamMembers(team) { console.log(`👫 Team members for: ${team}...`); }
2270
- async function coordinateTeam(name) { console.log(`🎵 Coordinating team: ${name}...`); }
2271
- async function listWorkflows() { console.log('⚡ Workflows feature coming soon...'); }
2272
- async function executeWorkflow(name) { console.log(`⚡ Executing workflow: ${name}...`); }
2273
- async function showWorkflow(name) { console.log(`📋 Workflow details: ${name}...`); }
2274
- async function listTemplates() { console.log('📄 Templates feature coming soon...'); }
2275
- async function createFromTemplate(template) { console.log(`📝 Creating from template: ${template}...`); }
2276
- async function showTemplate(name) { console.log(`📄 Template details: ${name}...`); }
2277
- async function listTasks() { console.log('✅ Tasks feature coming soon...'); }
2278
- async function executeTask(task) { console.log(`⚡ Executing task: ${task}...`); }
2279
- async function showTask(name) { console.log(`✅ Task details: ${name}...`); }
2280
- async function listChecklists() { console.log('🔍 Checklists feature coming soon...'); }
2281
- async function executeChecklist(checklist) { console.log(`✅ Running checklist: ${checklist}...`); }
2282
- async function showChecklist(name) { console.log(`🔍 Checklist details: ${name}...`); }
2283
- async function listData() { console.log('💾 Data browser coming soon...'); }
2284
- async function searchKnowledge(query) { console.log(`🔍 Searching for: ${query}...`); }
2285
- async function showData(name) { console.log(`💾 Data details: ${name}...`); }
2286
- async function listPlaybooks() { console.log('📚 Playbooks feature coming soon...'); }
2287
- async function generatePlaybook(client, industry) { console.log(`📖 Generating playbook for: ${client}...`); }
2288
- async function showPlaybook(name) { console.log(`📚 Playbook details: ${name}...`); }
2289
- async function listTools() { console.log('🛠️ Tools feature coming soon...'); }
2290
- async function executeTool(tool) { console.log(`🔧 Running tool: ${tool}...`); }
2291
- async function showTool(name) { console.log(`🛠️ Tool details: ${name}...`); }
2292
- async function showCommandHelp(command) { console.log(`❓ Help for command: ${command}...`); }
2293
-
2294
- program.parse();