nex-app 0.2.7 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (535) hide show
  1. package/LICENSE +51 -0
  2. package/README.md +526 -43
  3. package/cli/nex-cli.js +401 -0
  4. package/docs/NEX-2.0-INSTALLATION-SUMMARY.md +232 -0
  5. package/docs/NEX-2.0-MULTI-LLM-SPEC.md +543 -0
  6. package/docs/NEX-2.0-TEST-REPORT.md +202 -0
  7. package/nex/MIGRATION-LOG.md +124 -0
  8. package/nex/README.md +162 -0
  9. package/nex/_backup/yaml-files/builder/workflows/audit-workflow/workflow.yaml +24 -0
  10. package/nex/_backup/yaml-files/builder/workflows/convert-legacy/workflow.yaml +32 -0
  11. package/nex/_backup/yaml-files/builder/workflows/create-agent/workflow.yaml +37 -0
  12. package/nex/_backup/yaml-files/builder/workflows/create-module/workflow.yaml +43 -0
  13. package/nex/_backup/yaml-files/builder/workflows/create-workflow/workflow-template/workflow.yaml +40 -0
  14. package/nex/_backup/yaml-files/builder/workflows/create-workflow/workflow.yaml +41 -0
  15. package/nex/_backup/yaml-files/builder/workflows/edit-agent/workflow.yaml +34 -0
  16. package/nex/_backup/yaml-files/builder/workflows/edit-module/workflow.yaml +35 -0
  17. package/nex/_backup/yaml-files/builder/workflows/edit-workflow/workflow.yaml +28 -0
  18. package/nex/_backup/yaml-files/builder/workflows/module-brief/workflow.yaml +30 -0
  19. package/nex/_backup/yaml-files/builder/workflows/redoc/workflow.yaml +33 -0
  20. package/nex/_backup/yaml-files/core/workflows/brainstorming/workflow.yaml +43 -0
  21. package/nex/_backup/yaml-files/core/workflows/party-mode/workflow.yaml +23 -0
  22. package/nex/_backup/yaml-files/creative/workflows/design-thinking/workflow.yaml +32 -0
  23. package/nex/_backup/yaml-files/creative/workflows/innovation-strategy/workflow.yaml +32 -0
  24. package/nex/_backup/yaml-files/creative/workflows/problem-solving/workflow.yaml +32 -0
  25. package/nex/_backup/yaml-files/creative/workflows/storytelling/workflow.yaml +32 -0
  26. package/nex/_backup/yaml-files/method/workflows/1-analysis/brainstorm-project/workflow.yaml +26 -0
  27. package/nex/_backup/yaml-files/method/workflows/1-analysis/domain-research/workflow.yaml +41 -0
  28. package/nex/_backup/yaml-files/method/workflows/1-analysis/product-brief/workflow.yaml +45 -0
  29. package/nex/_backup/yaml-files/method/workflows/1-analysis/research/workflow.yaml +44 -0
  30. package/nex/_backup/yaml-files/method/workflows/2-plan-workflows/create-ux-design/workflow.yaml +61 -0
  31. package/nex/_backup/yaml-files/method/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +45 -0
  32. package/nex/_backup/yaml-files/method/workflows/2-plan-workflows/prd/workflow.yaml +46 -0
  33. package/nex/_backup/yaml-files/method/workflows/2-plan-workflows/tech-spec/workflow.yaml +60 -0
  34. package/nex/_backup/yaml-files/method/workflows/3-solutioning/architecture/workflow.yaml +69 -0
  35. package/nex/_backup/yaml-files/method/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +64 -0
  36. package/nex/_backup/yaml-files/method/workflows/4-implementation/code-review/workflow.yaml +74 -0
  37. package/nex/_backup/yaml-files/method/workflows/4-implementation/correct-course/workflow.yaml +43 -0
  38. package/nex/_backup/yaml-files/method/workflows/4-implementation/create-story/workflow.yaml +74 -0
  39. package/nex/_backup/yaml-files/method/workflows/4-implementation/dev-story/workflow.yaml +26 -0
  40. package/nex/_backup/yaml-files/method/workflows/4-implementation/epic-tech-context/workflow.yaml +58 -0
  41. package/nex/_backup/yaml-files/method/workflows/4-implementation/retrospective/workflow.yaml +71 -0
  42. package/nex/_backup/yaml-files/method/workflows/4-implementation/sprint-planning/workflow.yaml +47 -0
  43. package/nex/_backup/yaml-files/method/workflows/4-implementation/story-context/workflow.yaml +57 -0
  44. package/nex/_backup/yaml-files/method/workflows/4-implementation/story-done/workflow.yaml +25 -0
  45. package/nex/_backup/yaml-files/method/workflows/4-implementation/story-ready/workflow.yaml +25 -0
  46. package/nex/_backup/yaml-files/method/workflows/document-project/workflow.yaml +34 -0
  47. package/nex/_backup/yaml-files/method/workflows/testarch/atdd/workflow.yaml +52 -0
  48. package/nex/_backup/yaml-files/method/workflows/testarch/automate/workflow.yaml +61 -0
  49. package/nex/_backup/yaml-files/method/workflows/testarch/ci/workflow.yaml +53 -0
  50. package/nex/_backup/yaml-files/method/workflows/testarch/framework/workflow.yaml +53 -0
  51. package/nex/_backup/yaml-files/method/workflows/testarch/nfr-assess/workflow.yaml +56 -0
  52. package/nex/_backup/yaml-files/method/workflows/testarch/test-design/workflow.yaml +52 -0
  53. package/nex/_backup/yaml-files/method/workflows/testarch/test-review/workflow.yaml +53 -0
  54. package/nex/_backup/yaml-files/method/workflows/testarch/trace/workflow.yaml +66 -0
  55. package/nex/_backup/yaml-files/method/workflows/workflow-status/init/workflow.yaml +27 -0
  56. package/nex/_backup/yaml-files/method/workflows/workflow-status/workflow.yaml +28 -0
  57. package/nex/_cfg/.gitkeep +0 -0
  58. package/nex/_cfg/FINAL-REPORT.json +258 -0
  59. package/nex/_cfg/agent-manifest.csv +18 -0
  60. package/nex/_cfg/agents/bmb-nex-builder.customize.yaml +42 -0
  61. package/nex/_cfg/agents/bmm-analyst.customize.yaml +42 -0
  62. package/nex/_cfg/agents/bmm-architect.customize.yaml +42 -0
  63. package/nex/_cfg/agents/bmm-dev.customize.yaml +42 -0
  64. package/nex/_cfg/agents/bmm-pm.customize.yaml +42 -0
  65. package/nex/_cfg/agents/bmm-sm.customize.yaml +42 -0
  66. package/nex/_cfg/agents/bmm-tea.customize.yaml +42 -0
  67. package/nex/_cfg/agents/bmm-tech-writer.customize.yaml +42 -0
  68. package/nex/_cfg/agents/bmm-ux-designer.customize.yaml +42 -0
  69. package/nex/_cfg/agents/cis-brainstorming-coach.customize.yaml +42 -0
  70. package/nex/_cfg/agents/cis-creative-problem-solver.customize.yaml +42 -0
  71. package/nex/_cfg/agents/cis-design-thinking-coach.customize.yaml +42 -0
  72. package/nex/_cfg/agents/cis-innovation-strategist.customize.yaml +42 -0
  73. package/nex/_cfg/agents/cis-storyteller.customize.yaml +42 -0
  74. package/nex/_cfg/agents/core-nex-master.customize.yaml +42 -0
  75. package/nex/_cfg/clone-report.json +48 -0
  76. package/nex/_cfg/files-manifest.csv +342 -0
  77. package/nex/_cfg/manifest.yaml +11 -0
  78. package/nex/_cfg/name-mapping.json +92 -0
  79. package/nex/_cfg/phase3-report.json +27 -0
  80. package/nex/_cfg/phase4-report.json +67 -0
  81. package/nex/_cfg/phase5-fix-report.json +15 -0
  82. package/nex/_cfg/phase5-report.json +99 -0
  83. package/nex/_cfg/setup-report.json +13 -0
  84. package/nex/_cfg/task-manifest.csv +6 -0
  85. package/nex/_cfg/tool-manifest.csv +2 -0
  86. package/nex/_cfg/workflow-manifest.csv +49 -0
  87. package/nex/builder/README.md +194 -0
  88. package/nex/builder/agents/nex-builder.md +70 -0
  89. package/nex/builder/config.yaml +14 -0
  90. package/nex/builder/workflows/audit-workflow/checklist.md +143 -0
  91. package/nex/builder/workflows/audit-workflow/instructions.md +341 -0
  92. package/nex/builder/workflows/audit-workflow/template.md +118 -0
  93. package/nex/builder/workflows/audit-workflow/workflow.json +21 -0
  94. package/nex/builder/workflows/audit-workflow/workflow.yaml +24 -0
  95. package/nex/builder/workflows/convert-legacy/README.md +262 -0
  96. package/nex/builder/workflows/convert-legacy/checklist.md +205 -0
  97. package/nex/builder/workflows/convert-legacy/instructions.md +377 -0
  98. package/nex/builder/workflows/convert-legacy/workflow.json +21 -0
  99. package/nex/builder/workflows/convert-legacy/workflow.yaml +32 -0
  100. package/nex/builder/workflows/create-agent/README.md +203 -0
  101. package/nex/builder/workflows/create-agent/agent-architecture.md +419 -0
  102. package/nex/builder/workflows/create-agent/agent-command-patterns.md +759 -0
  103. package/nex/builder/workflows/create-agent/agent-types.md +292 -0
  104. package/nex/builder/workflows/create-agent/brainstorm-context.md +174 -0
  105. package/nex/builder/workflows/create-agent/checklist.md +62 -0
  106. package/nex/builder/workflows/create-agent/communication-styles.md +202 -0
  107. package/nex/builder/workflows/create-agent/instructions.md +459 -0
  108. package/nex/builder/workflows/create-agent/workflow.json +21 -0
  109. package/nex/builder/workflows/create-agent/workflow.yaml +37 -0
  110. package/nex/builder/workflows/create-module/README.md +229 -0
  111. package/nex/builder/workflows/create-module/brainstorm-context.md +137 -0
  112. package/nex/builder/workflows/create-module/checklist.md +244 -0
  113. package/nex/builder/workflows/create-module/installer-templates/install-config.yaml +92 -0
  114. package/nex/builder/workflows/create-module/installer-templates/installer.js +231 -0
  115. package/nex/builder/workflows/create-module/instructions.md +581 -0
  116. package/nex/builder/workflows/create-module/module-structure.md +400 -0
  117. package/nex/builder/workflows/create-module/workflow.json +21 -0
  118. package/nex/builder/workflows/create-module/workflow.yaml +43 -0
  119. package/nex/builder/workflows/create-workflow/README.md +277 -0
  120. package/nex/builder/workflows/create-workflow/brainstorm-context.md +197 -0
  121. package/nex/builder/workflows/create-workflow/checklist.md +94 -0
  122. package/nex/builder/workflows/create-workflow/instructions.md +724 -0
  123. package/nex/builder/workflows/create-workflow/workflow-creation-guide.md +1308 -0
  124. package/nex/builder/workflows/create-workflow/workflow-template/checklist.md +24 -0
  125. package/nex/builder/workflows/create-workflow/workflow-template/instructions.md +13 -0
  126. package/nex/builder/workflows/create-workflow/workflow-template/template.md +9 -0
  127. package/nex/builder/workflows/create-workflow/workflow-template/workflow.json +21 -0
  128. package/nex/builder/workflows/create-workflow/workflow-template/workflow.yaml +40 -0
  129. package/nex/builder/workflows/create-workflow/workflow.json +21 -0
  130. package/nex/builder/workflows/create-workflow/workflow.yaml +41 -0
  131. package/nex/builder/workflows/edit-agent/README.md +112 -0
  132. package/nex/builder/workflows/edit-agent/checklist.md +112 -0
  133. package/nex/builder/workflows/edit-agent/instructions.md +290 -0
  134. package/nex/builder/workflows/edit-agent/workflow.json +21 -0
  135. package/nex/builder/workflows/edit-agent/workflow.yaml +34 -0
  136. package/nex/builder/workflows/edit-module/README.md +187 -0
  137. package/nex/builder/workflows/edit-module/checklist.md +165 -0
  138. package/nex/builder/workflows/edit-module/instructions.md +339 -0
  139. package/nex/builder/workflows/edit-module/workflow.json +21 -0
  140. package/nex/builder/workflows/edit-module/workflow.yaml +35 -0
  141. package/nex/builder/workflows/edit-workflow/README.md +119 -0
  142. package/nex/builder/workflows/edit-workflow/checklist.md +70 -0
  143. package/nex/builder/workflows/edit-workflow/instructions.md +342 -0
  144. package/nex/builder/workflows/edit-workflow/workflow.json +21 -0
  145. package/nex/builder/workflows/edit-workflow/workflow.yaml +28 -0
  146. package/nex/builder/workflows/module-brief/README.md +264 -0
  147. package/nex/builder/workflows/module-brief/checklist.md +116 -0
  148. package/nex/builder/workflows/module-brief/instructions.md +267 -0
  149. package/nex/builder/workflows/module-brief/template.md +275 -0
  150. package/nex/builder/workflows/module-brief/workflow.json +21 -0
  151. package/nex/builder/workflows/module-brief/workflow.yaml +30 -0
  152. package/nex/builder/workflows/redoc/README.md +87 -0
  153. package/nex/builder/workflows/redoc/checklist.md +99 -0
  154. package/nex/builder/workflows/redoc/instructions.md +265 -0
  155. package/nex/builder/workflows/redoc/workflow.json +21 -0
  156. package/nex/builder/workflows/redoc/workflow.yaml +33 -0
  157. package/nex/core/agents/nex-master.md +95 -0
  158. package/nex/core/agents/nex-web-orchestrator.agent.xml +122 -0
  159. package/nex/core/config.yaml +9 -0
  160. package/nex/core/lib/config/ConfigLoaderFactory.js +84 -0
  161. package/nex/core/lib/config/ConfigManager.js +98 -0
  162. package/nex/core/lib/config/index.js +28 -0
  163. package/nex/core/lib/config/loaders/BaseConfigLoader.js +88 -0
  164. package/nex/core/lib/config/loaders/JsonConfigLoader.js +85 -0
  165. package/nex/core/lib/config/loaders/YamlConfigLoader.js +88 -0
  166. package/nex/core/tasks/adv-elicit-methods.csv +39 -0
  167. package/nex/core/tasks/adv-elicit.xml +104 -0
  168. package/nex/core/tasks/index-docs.xml +65 -0
  169. package/nex/core/tasks/validate-workflow.xml +89 -0
  170. package/nex/core/tasks/workflow.xml +156 -0
  171. package/nex/core/tools/shard-doc.xml +65 -0
  172. package/nex/core/workflows/brainstorming/README.md +271 -0
  173. package/nex/core/workflows/brainstorming/brain-methods.csv +36 -0
  174. package/nex/core/workflows/brainstorming/instructions.md +314 -0
  175. package/nex/core/workflows/brainstorming/template.md +102 -0
  176. package/nex/core/workflows/brainstorming/workflow.json +21 -0
  177. package/nex/core/workflows/brainstorming/workflow.yaml +43 -0
  178. package/nex/core/workflows/party-mode/instructions.md +188 -0
  179. package/nex/core/workflows/party-mode/workflow.json +21 -0
  180. package/nex/core/workflows/party-mode/workflow.yaml +23 -0
  181. package/nex/creative/README.md +153 -0
  182. package/nex/creative/agents/README.md +104 -0
  183. package/nex/creative/agents/brainstorming-coach.md +62 -0
  184. package/nex/creative/agents/creative-problem-solver.md +62 -0
  185. package/nex/creative/agents/design-thinking-coach.md +62 -0
  186. package/nex/creative/agents/innovation-strategist.md +62 -0
  187. package/nex/creative/agents/storyteller.md +59 -0
  188. package/nex/creative/config.yaml +11 -0
  189. package/nex/creative/teams/creative-squad.yaml +6 -0
  190. package/nex/creative/workflows/README.md +139 -0
  191. package/nex/creative/workflows/design-thinking/README.md +56 -0
  192. package/nex/creative/workflows/design-thinking/design-methods.csv +31 -0
  193. package/nex/creative/workflows/design-thinking/instructions.md +200 -0
  194. package/nex/creative/workflows/design-thinking/template.md +111 -0
  195. package/nex/creative/workflows/design-thinking/workflow.json +21 -0
  196. package/nex/creative/workflows/design-thinking/workflow.yaml +32 -0
  197. package/nex/creative/workflows/innovation-strategy/README.md +56 -0
  198. package/nex/creative/workflows/innovation-strategy/innovation-frameworks.csv +31 -0
  199. package/nex/creative/workflows/innovation-strategy/instructions.md +274 -0
  200. package/nex/creative/workflows/innovation-strategy/template.md +189 -0
  201. package/nex/creative/workflows/innovation-strategy/workflow.json +21 -0
  202. package/nex/creative/workflows/innovation-strategy/workflow.yaml +32 -0
  203. package/nex/creative/workflows/problem-solving/README.md +56 -0
  204. package/nex/creative/workflows/problem-solving/instructions.md +250 -0
  205. package/nex/creative/workflows/problem-solving/solving-methods.csv +31 -0
  206. package/nex/creative/workflows/problem-solving/template.md +165 -0
  207. package/nex/creative/workflows/problem-solving/workflow.json +21 -0
  208. package/nex/creative/workflows/problem-solving/workflow.yaml +32 -0
  209. package/nex/creative/workflows/storytelling/README.md +58 -0
  210. package/nex/creative/workflows/storytelling/instructions.md +291 -0
  211. package/nex/creative/workflows/storytelling/story-types.csv +26 -0
  212. package/nex/creative/workflows/storytelling/template.md +113 -0
  213. package/nex/creative/workflows/storytelling/workflow.json +21 -0
  214. package/nex/creative/workflows/storytelling/workflow.yaml +32 -0
  215. package/nex/docs/cursor-instructions.md +25 -0
  216. package/nex/infrastructure/SETUP-CHECKLIST.md +353 -0
  217. package/nex/infrastructure/stripe/README.md +385 -0
  218. package/nex/infrastructure/supabase/README.md +191 -0
  219. package/nex/infrastructure/supabase/disable-rls.sql +32 -0
  220. package/nex/infrastructure/supabase/fix-rls.sql +68 -0
  221. package/nex/infrastructure/supabase/migrations/003_add_product_tiers.sql +129 -0
  222. package/nex/infrastructure/supabase/migrations/004_add_user_credits.sql +231 -0
  223. package/nex/infrastructure/supabase/migrations/005_update_subscription_features.sql +191 -0
  224. package/nex/infrastructure/supabase/schema.sql +551 -0
  225. package/nex/infrastructure/supabase/storage-policies-avatars-fixed.sql +85 -0
  226. package/nex/infrastructure/supabase/storage-policies-avatars.sql +73 -0
  227. package/nex/infrastructure/supabase/storage-policies-product-assets.sql +98 -0
  228. package/nex/infrastructure/vercel/README.md +259 -0
  229. package/nex/infrastructure/vercel/vercel.json +23 -0
  230. package/nex/method/README.md +128 -0
  231. package/nex/method/agents/analyst.md +67 -0
  232. package/nex/method/agents/architect.md +92 -0
  233. package/nex/method/agents/dev.md +105 -0
  234. package/nex/method/agents/pm.md +92 -0
  235. package/nex/method/agents/sm.md +85 -0
  236. package/nex/method/agents/tea.md +77 -0
  237. package/nex/method/agents/tech-writer.md +82 -0
  238. package/nex/method/agents/ux-designer.md +71 -0
  239. package/nex/method/config.yaml +18 -0
  240. package/nex/method/docs/README.md +235 -0
  241. package/nex/method/docs/agents-guide.md +1056 -0
  242. package/nex/method/docs/brownfield-guide.md +754 -0
  243. package/nex/method/docs/enterprise-agentic-development.md +680 -0
  244. package/nex/method/docs/faq.md +587 -0
  245. package/nex/method/docs/glossary.md +320 -0
  246. package/nex/method/docs/party-mode.md +224 -0
  247. package/nex/method/docs/quick-spec-flow.md +652 -0
  248. package/nex/method/docs/quick-start.md +366 -0
  249. package/nex/method/docs/scale-adaptive-system.md +599 -0
  250. package/nex/method/docs/test-architecture.md +394 -0
  251. package/nex/method/docs/workflow-architecture-reference.md +371 -0
  252. package/nex/method/docs/workflow-document-project-reference.md +487 -0
  253. package/nex/method/docs/workflows-analysis.md +370 -0
  254. package/nex/method/docs/workflows-implementation.md +284 -0
  255. package/nex/method/docs/workflows-planning.md +601 -0
  256. package/nex/method/docs/workflows-solutioning.md +501 -0
  257. package/nex/method/knowledge/agent-evolution-amelia.md +380 -0
  258. package/nex/method/knowledge/i18next-implementation.md +268 -0
  259. package/nex/method/knowledge/index.md +563 -0
  260. package/nex/method/knowledge/next-intl-api-lessons.md +429 -0
  261. package/nex/method/knowledge/node-version-management.md +396 -0
  262. package/nex/method/knowledge/react-error-425-select-mismatch.md +172 -0
  263. package/nex/method/knowledge/route-changes-checklist.md +217 -0
  264. package/nex/method/knowledge/supabase-client-singleton.md +321 -0
  265. package/nex/method/knowledge/typescript-supabase-nextjs.md +248 -0
  266. package/nex/method/knowledge/vercel-deployment.md +367 -0
  267. package/nex/method/sub-modules/claude-code/README.md +87 -0
  268. package/nex/method/sub-modules/claude-code/config.yaml +5 -0
  269. package/nex/method/sub-modules/claude-code/injections.yaml +242 -0
  270. package/nex/method/sub-modules/claude-code/sub-agents/bmad-analysis/api-documenter.md +102 -0
  271. package/nex/method/sub-modules/claude-code/sub-agents/bmad-analysis/codebase-analyzer.md +82 -0
  272. package/nex/method/sub-modules/claude-code/sub-agents/bmad-analysis/data-analyst.md +101 -0
  273. package/nex/method/sub-modules/claude-code/sub-agents/bmad-analysis/pattern-detector.md +84 -0
  274. package/nex/method/sub-modules/claude-code/sub-agents/bmad-planning/dependency-mapper.md +83 -0
  275. package/nex/method/sub-modules/claude-code/sub-agents/bmad-planning/epic-optimizer.md +81 -0
  276. package/nex/method/sub-modules/claude-code/sub-agents/bmad-planning/requirements-analyst.md +61 -0
  277. package/nex/method/sub-modules/claude-code/sub-agents/bmad-planning/technical-decisions-curator.md +168 -0
  278. package/nex/method/sub-modules/claude-code/sub-agents/bmad-planning/trend-spotter.md +115 -0
  279. package/nex/method/sub-modules/claude-code/sub-agents/bmad-planning/user-journey-mapper.md +123 -0
  280. package/nex/method/sub-modules/claude-code/sub-agents/bmad-planning/user-researcher.md +72 -0
  281. package/nex/method/sub-modules/claude-code/sub-agents/bmad-research/market-researcher.md +51 -0
  282. package/nex/method/sub-modules/claude-code/sub-agents/bmad-research/tech-debt-auditor.md +106 -0
  283. package/nex/method/sub-modules/claude-code/sub-agents/bmad-review/document-reviewer.md +102 -0
  284. package/nex/method/sub-modules/claude-code/sub-agents/bmad-review/technical-evaluator.md +68 -0
  285. package/nex/method/sub-modules/claude-code/sub-agents/bmad-review/test-coverage-analyzer.md +108 -0
  286. package/nex/method/tasks/daily-standup.xml +85 -0
  287. package/nex/method/teams/team-fullstack.yaml +11 -0
  288. package/nex/method/testarch/knowledge/ci-burn-in.md +675 -0
  289. package/nex/method/testarch/knowledge/component-tdd.md +486 -0
  290. package/nex/method/testarch/knowledge/contract-testing.md +957 -0
  291. package/nex/method/testarch/knowledge/data-factories.md +500 -0
  292. package/nex/method/testarch/knowledge/email-auth.md +721 -0
  293. package/nex/method/testarch/knowledge/error-handling.md +725 -0
  294. package/nex/method/testarch/knowledge/feature-flags.md +750 -0
  295. package/nex/method/testarch/knowledge/fixture-architecture.md +401 -0
  296. package/nex/method/testarch/knowledge/network-first.md +486 -0
  297. package/nex/method/testarch/knowledge/nfr-criteria.md +670 -0
  298. package/nex/method/testarch/knowledge/playwright-config.md +730 -0
  299. package/nex/method/testarch/knowledge/probability-impact.md +601 -0
  300. package/nex/method/testarch/knowledge/risk-governance.md +615 -0
  301. package/nex/method/testarch/knowledge/selective-testing.md +732 -0
  302. package/nex/method/testarch/knowledge/selector-resilience.md +527 -0
  303. package/nex/method/testarch/knowledge/test-healing-patterns.md +644 -0
  304. package/nex/method/testarch/knowledge/test-levels-framework.md +473 -0
  305. package/nex/method/testarch/knowledge/test-priorities-matrix.md +373 -0
  306. package/nex/method/testarch/knowledge/test-quality.md +664 -0
  307. package/nex/method/testarch/knowledge/timing-debugging.md +372 -0
  308. package/nex/method/testarch/knowledge/visual-debugging.md +524 -0
  309. package/nex/method/testarch/tea-index.csv +22 -0
  310. package/nex/method/workflows/1-analysis/brainstorm-project/instructions.md +110 -0
  311. package/nex/method/workflows/1-analysis/brainstorm-project/project-context.md +25 -0
  312. package/nex/method/workflows/1-analysis/brainstorm-project/workflow.json +21 -0
  313. package/nex/method/workflows/1-analysis/brainstorm-project/workflow.yaml +26 -0
  314. package/nex/method/workflows/1-analysis/domain-research/instructions.md +423 -0
  315. package/nex/method/workflows/1-analysis/domain-research/template.md +180 -0
  316. package/nex/method/workflows/1-analysis/domain-research/workflow.json +21 -0
  317. package/nex/method/workflows/1-analysis/domain-research/workflow.yaml +41 -0
  318. package/nex/method/workflows/1-analysis/product-brief/checklist.md +115 -0
  319. package/nex/method/workflows/1-analysis/product-brief/instructions.md +524 -0
  320. package/nex/method/workflows/1-analysis/product-brief/template.md +181 -0
  321. package/nex/method/workflows/1-analysis/product-brief/workflow.json +21 -0
  322. package/nex/method/workflows/1-analysis/product-brief/workflow.yaml +45 -0
  323. package/nex/method/workflows/1-analysis/research/checklist-deep-prompt.md +144 -0
  324. package/nex/method/workflows/1-analysis/research/checklist-technical.md +249 -0
  325. package/nex/method/workflows/1-analysis/research/checklist.md +299 -0
  326. package/nex/method/workflows/1-analysis/research/claude-code/injections.yaml +114 -0
  327. package/nex/method/workflows/1-analysis/research/instructions-deep-prompt.md +439 -0
  328. package/nex/method/workflows/1-analysis/research/instructions-market.md +679 -0
  329. package/nex/method/workflows/1-analysis/research/instructions-router.md +133 -0
  330. package/nex/method/workflows/1-analysis/research/instructions-technical.md +538 -0
  331. package/nex/method/workflows/1-analysis/research/template-deep-prompt.md +94 -0
  332. package/nex/method/workflows/1-analysis/research/template-market.md +347 -0
  333. package/nex/method/workflows/1-analysis/research/template-technical.md +245 -0
  334. package/nex/method/workflows/1-analysis/research/workflow.json +21 -0
  335. package/nex/method/workflows/1-analysis/research/workflow.yaml +44 -0
  336. package/nex/method/workflows/2-plan-workflows/create-ux-design/checklist.md +310 -0
  337. package/nex/method/workflows/2-plan-workflows/create-ux-design/instructions.md +1301 -0
  338. package/nex/method/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +145 -0
  339. package/nex/method/workflows/2-plan-workflows/create-ux-design/workflow.json +21 -0
  340. package/nex/method/workflows/2-plan-workflows/create-ux-design/workflow.yaml +61 -0
  341. package/nex/method/workflows/2-plan-workflows/prd/checklist.md +350 -0
  342. package/nex/method/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +52 -0
  343. package/nex/method/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +169 -0
  344. package/nex/method/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.json +21 -0
  345. package/nex/method/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +45 -0
  346. package/nex/method/workflows/2-plan-workflows/prd/domain-complexity.csv +13 -0
  347. package/nex/method/workflows/2-plan-workflows/prd/instructions.md +408 -0
  348. package/nex/method/workflows/2-plan-workflows/prd/prd-template.md +237 -0
  349. package/nex/method/workflows/2-plan-workflows/prd/project-types.csv +11 -0
  350. package/nex/method/workflows/2-plan-workflows/prd/workflow.json +21 -0
  351. package/nex/method/workflows/2-plan-workflows/prd/workflow.yaml +46 -0
  352. package/nex/method/workflows/2-plan-workflows/tech-spec/checklist.md +214 -0
  353. package/nex/method/workflows/2-plan-workflows/tech-spec/epics-template.md +80 -0
  354. package/nex/method/workflows/2-plan-workflows/tech-spec/instructions-level0-story.md +200 -0
  355. package/nex/method/workflows/2-plan-workflows/tech-spec/instructions-level1-stories.md +451 -0
  356. package/nex/method/workflows/2-plan-workflows/tech-spec/instructions.md +1115 -0
  357. package/nex/method/workflows/2-plan-workflows/tech-spec/tech-spec-template.md +181 -0
  358. package/nex/method/workflows/2-plan-workflows/tech-spec/user-story-template.md +90 -0
  359. package/nex/method/workflows/2-plan-workflows/tech-spec/workflow.json +21 -0
  360. package/nex/method/workflows/2-plan-workflows/tech-spec/workflow.yaml +60 -0
  361. package/nex/method/workflows/3-solutioning/architecture/architecture-patterns.yaml +347 -0
  362. package/nex/method/workflows/3-solutioning/architecture/architecture-template.md +103 -0
  363. package/nex/method/workflows/3-solutioning/architecture/checklist.md +244 -0
  364. package/nex/method/workflows/3-solutioning/architecture/instructions.md +704 -0
  365. package/nex/method/workflows/3-solutioning/architecture/pattern-categories.csv +13 -0
  366. package/nex/method/workflows/3-solutioning/architecture/workflow.json +21 -0
  367. package/nex/method/workflows/3-solutioning/architecture/workflow.yaml +69 -0
  368. package/nex/method/workflows/3-solutioning/solutioning-gate-check/checklist.md +175 -0
  369. package/nex/method/workflows/3-solutioning/solutioning-gate-check/instructions.md +305 -0
  370. package/nex/method/workflows/3-solutioning/solutioning-gate-check/template.md +146 -0
  371. package/nex/method/workflows/3-solutioning/solutioning-gate-check/validation-criteria.yaml +189 -0
  372. package/nex/method/workflows/3-solutioning/solutioning-gate-check/workflow.json +21 -0
  373. package/nex/method/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +64 -0
  374. package/nex/method/workflows/4-implementation/code-review/checklist.md +22 -0
  375. package/nex/method/workflows/4-implementation/code-review/instructions.md +420 -0
  376. package/nex/method/workflows/4-implementation/code-review/workflow.json +21 -0
  377. package/nex/method/workflows/4-implementation/code-review/workflow.yaml +74 -0
  378. package/nex/method/workflows/4-implementation/correct-course/checklist.md +279 -0
  379. package/nex/method/workflows/4-implementation/correct-course/instructions.md +201 -0
  380. package/nex/method/workflows/4-implementation/correct-course/workflow.json +21 -0
  381. package/nex/method/workflows/4-implementation/correct-course/workflow.yaml +43 -0
  382. package/nex/method/workflows/4-implementation/create-story/checklist.md +240 -0
  383. package/nex/method/workflows/4-implementation/create-story/instructions.md +283 -0
  384. package/nex/method/workflows/4-implementation/create-story/template.md +51 -0
  385. package/nex/method/workflows/4-implementation/create-story/workflow.json +21 -0
  386. package/nex/method/workflows/4-implementation/create-story/workflow.yaml +74 -0
  387. package/nex/method/workflows/4-implementation/dev-story/AUDIT-REPORT.md +367 -0
  388. package/nex/method/workflows/4-implementation/dev-story/checklist.md +38 -0
  389. package/nex/method/workflows/4-implementation/dev-story/instructions.md +262 -0
  390. package/nex/method/workflows/4-implementation/dev-story/workflow.json +21 -0
  391. package/nex/method/workflows/4-implementation/dev-story/workflow.yaml +26 -0
  392. package/nex/method/workflows/4-implementation/epic-tech-context/checklist.md +17 -0
  393. package/nex/method/workflows/4-implementation/epic-tech-context/instructions.md +189 -0
  394. package/nex/method/workflows/4-implementation/epic-tech-context/template.md +76 -0
  395. package/nex/method/workflows/4-implementation/epic-tech-context/workflow.json +21 -0
  396. package/nex/method/workflows/4-implementation/epic-tech-context/workflow.yaml +58 -0
  397. package/nex/method/workflows/4-implementation/retrospective/instructions.md +1460 -0
  398. package/nex/method/workflows/4-implementation/retrospective/workflow.json +21 -0
  399. package/nex/method/workflows/4-implementation/retrospective/workflow.yaml +71 -0
  400. package/nex/method/workflows/4-implementation/sprint-planning/checklist.md +33 -0
  401. package/nex/method/workflows/4-implementation/sprint-planning/instructions.md +238 -0
  402. package/nex/method/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +55 -0
  403. package/nex/method/workflows/4-implementation/sprint-planning/workflow.json +21 -0
  404. package/nex/method/workflows/4-implementation/sprint-planning/workflow.yaml +47 -0
  405. package/nex/method/workflows/4-implementation/story-context/checklist.md +16 -0
  406. package/nex/method/workflows/4-implementation/story-context/context-template.xml +34 -0
  407. package/nex/method/workflows/4-implementation/story-context/instructions.md +234 -0
  408. package/nex/method/workflows/4-implementation/story-context/workflow.json +21 -0
  409. package/nex/method/workflows/4-implementation/story-context/workflow.yaml +57 -0
  410. package/nex/method/workflows/4-implementation/story-done/instructions.md +111 -0
  411. package/nex/method/workflows/4-implementation/story-done/workflow.json +21 -0
  412. package/nex/method/workflows/4-implementation/story-done/workflow.yaml +25 -0
  413. package/nex/method/workflows/4-implementation/story-ready/instructions.md +117 -0
  414. package/nex/method/workflows/4-implementation/story-ready/workflow.json +21 -0
  415. package/nex/method/workflows/4-implementation/story-ready/workflow.yaml +25 -0
  416. package/nex/method/workflows/document-project/checklist.md +245 -0
  417. package/nex/method/workflows/document-project/documentation-requirements.csv +12 -0
  418. package/nex/method/workflows/document-project/instructions.md +222 -0
  419. package/nex/method/workflows/document-project/templates/deep-dive-template.md +345 -0
  420. package/nex/method/workflows/document-project/templates/index-template.md +169 -0
  421. package/nex/method/workflows/document-project/templates/project-overview-template.md +103 -0
  422. package/nex/method/workflows/document-project/templates/project-scan-report-schema.json +160 -0
  423. package/nex/method/workflows/document-project/templates/source-tree-template.md +135 -0
  424. package/nex/method/workflows/document-project/workflow.json +21 -0
  425. package/nex/method/workflows/document-project/workflow.yaml +34 -0
  426. package/nex/method/workflows/document-project/workflows/deep-dive-instructions.md +298 -0
  427. package/nex/method/workflows/document-project/workflows/deep-dive.yaml +31 -0
  428. package/nex/method/workflows/document-project/workflows/full-scan-instructions.md +1106 -0
  429. package/nex/method/workflows/document-project/workflows/full-scan.yaml +31 -0
  430. package/nex/method/workflows/techdoc/documentation-standards.md +262 -0
  431. package/nex/method/workflows/testarch/atdd/atdd-checklist-template.md +363 -0
  432. package/nex/method/workflows/testarch/atdd/checklist.md +373 -0
  433. package/nex/method/workflows/testarch/atdd/instructions.md +785 -0
  434. package/nex/method/workflows/testarch/atdd/workflow.json +27 -0
  435. package/nex/method/workflows/testarch/atdd/workflow.yaml +52 -0
  436. package/nex/method/workflows/testarch/automate/checklist.md +580 -0
  437. package/nex/method/workflows/testarch/automate/instructions.md +1303 -0
  438. package/nex/method/workflows/testarch/automate/workflow.json +27 -0
  439. package/nex/method/workflows/testarch/automate/workflow.yaml +61 -0
  440. package/nex/method/workflows/testarch/ci/checklist.md +246 -0
  441. package/nex/method/workflows/testarch/ci/github-actions-template.yaml +165 -0
  442. package/nex/method/workflows/testarch/ci/gitlab-ci-template.yaml +128 -0
  443. package/nex/method/workflows/testarch/ci/instructions.md +517 -0
  444. package/nex/method/workflows/testarch/ci/workflow.json +27 -0
  445. package/nex/method/workflows/testarch/ci/workflow.yaml +53 -0
  446. package/nex/method/workflows/testarch/framework/checklist.md +321 -0
  447. package/nex/method/workflows/testarch/framework/instructions.md +455 -0
  448. package/nex/method/workflows/testarch/framework/workflow.json +27 -0
  449. package/nex/method/workflows/testarch/framework/workflow.yaml +53 -0
  450. package/nex/method/workflows/testarch/nfr-assess/checklist.md +405 -0
  451. package/nex/method/workflows/testarch/nfr-assess/instructions.md +722 -0
  452. package/nex/method/workflows/testarch/nfr-assess/nfr-report-template.md +443 -0
  453. package/nex/method/workflows/testarch/nfr-assess/workflow.json +28 -0
  454. package/nex/method/workflows/testarch/nfr-assess/workflow.yaml +56 -0
  455. package/nex/method/workflows/testarch/test-design/checklist.md +234 -0
  456. package/nex/method/workflows/testarch/test-design/instructions.md +621 -0
  457. package/nex/method/workflows/testarch/test-design/test-design-template.md +285 -0
  458. package/nex/method/workflows/testarch/test-design/workflow.json +27 -0
  459. package/nex/method/workflows/testarch/test-design/workflow.yaml +52 -0
  460. package/nex/method/workflows/testarch/test-review/checklist.md +470 -0
  461. package/nex/method/workflows/testarch/test-review/instructions.md +608 -0
  462. package/nex/method/workflows/testarch/test-review/test-review-template.md +388 -0
  463. package/nex/method/workflows/testarch/test-review/workflow.json +27 -0
  464. package/nex/method/workflows/testarch/test-review/workflow.yaml +53 -0
  465. package/nex/method/workflows/testarch/trace/checklist.md +654 -0
  466. package/nex/method/workflows/testarch/trace/instructions.md +1045 -0
  467. package/nex/method/workflows/testarch/trace/trace-template.md +673 -0
  468. package/nex/method/workflows/testarch/trace/workflow.json +30 -0
  469. package/nex/method/workflows/testarch/trace/workflow.yaml +66 -0
  470. package/nex/method/workflows/workflow-status/init/instructions.md +821 -0
  471. package/nex/method/workflows/workflow-status/init/workflow.json +21 -0
  472. package/nex/method/workflows/workflow-status/init/workflow.yaml +27 -0
  473. package/nex/method/workflows/workflow-status/instructions.md +386 -0
  474. package/nex/method/workflows/workflow-status/paths/enterprise-brownfield.yaml +127 -0
  475. package/nex/method/workflows/workflow-status/paths/enterprise-greenfield.yaml +115 -0
  476. package/nex/method/workflows/workflow-status/paths/game-design.yaml +52 -0
  477. package/nex/method/workflows/workflow-status/paths/method-brownfield.yaml +97 -0
  478. package/nex/method/workflows/workflow-status/paths/method-greenfield.yaml +88 -0
  479. package/nex/method/workflows/workflow-status/paths/quick-flow-brownfield.yaml +58 -0
  480. package/nex/method/workflows/workflow-status/paths/quick-flow-greenfield.yaml +47 -0
  481. package/nex/method/workflows/workflow-status/project-levels.yaml +59 -0
  482. package/nex/method/workflows/workflow-status/sample-level-3-workflow.yaml +49 -0
  483. package/nex/method/workflows/workflow-status/workflow-status-template.yaml +31 -0
  484. package/nex/method/workflows/workflow-status/workflow.json +21 -0
  485. package/nex/method/workflows/workflow-status/workflow.yaml +28 -0
  486. package/package.json +74 -26
  487. package/registry/.meta/registry.yaml +72 -0
  488. package/registry/README.md +118 -361
  489. package/registry/bmad/README.md +433 -0
  490. package/registry/{vex → bmad/vex}/README.md +9 -4
  491. package/registry/planning/anx/CHANGELOG.md +63 -0
  492. package/registry/planning/anx/README.md +224 -0
  493. package/registry/planning/anx/manifest.yaml +172 -0
  494. package/registry/planning/arx/manifest.yaml +98 -0
  495. package/registry/planning/pmx/manifest.yaml +96 -0
  496. package/scripts/README.md +220 -0
  497. package/scripts/install-cursor-rules.js +322 -0
  498. package/src/services/nex-installer/agentLoader.js +108 -0
  499. package/src/services/nex-installer/agentValidator.js +93 -0
  500. package/src/services/nex-installer/dependencyResolver.js +59 -0
  501. package/src/services/nex-installer/installer.js +226 -0
  502. package/src/services/nex-installer/registry.js +75 -0
  503. package/src/services/nex-marketplace/NEXMarketplace.js +964 -0
  504. package/cli/create.js +0 -135
  505. package/cli/fallback.js +0 -74
  506. package/generator/agent-installer.js +0 -33
  507. package/generator/cursor-integration.js +0 -251
  508. package/generator/index.js +0 -145
  509. package/generator/package-manager.js +0 -40
  510. package/generator/template-engine.js +0 -18
  511. package/lib/marketplace-client.js +0 -75
  512. package/scripts/publish.js +0 -136
  513. package/server/index.js +0 -55
  514. package/server/routes.js +0 -69
  515. package/templates/api-only/README.md.tpl +0 -30
  516. package/templates/api-only/package.json.tpl +0 -20
  517. package/templates/api-only/src/index.js.tpl +0 -9
  518. package/templates/blank/.nex-core/config.yaml.tpl +0 -14
  519. package/templates/blank/README.md.tpl +0 -48
  520. package/templates/blank/package.json.tpl +0 -18
  521. package/templates/blank/src/index.js.tpl +0 -9
  522. package/templates/full-stack/README.md.tpl +0 -33
  523. package/templates/full-stack/package.json.tpl +0 -20
  524. package/templates/full-stack/src/client/index.html.tpl +0 -12
  525. package/templates/full-stack/src/server/index.js.tpl +0 -9
  526. package/ui/assets/app.js +0 -205
  527. package/ui/assets/styles.css +0 -416
  528. package/ui/index.html +0 -66
  529. package/utils/browser.js +0 -40
  530. package/utils/environment.js +0 -42
  531. package/utils/port-finder.js +0 -37
  532. package/utils/validation.js +0 -44
  533. /package/registry/{ada → bmad/ada}/manifest.yaml +0 -0
  534. /package/registry/{rex → bmad/rex}/manifest.yaml +0 -0
  535. /package/registry/{vex → bmad/vex}/manifest.yaml +0 -0
package/LICENSE ADDED
@@ -0,0 +1,51 @@
1
+ PROPRIETARY LICENSE - INOSX
2
+
3
+ Copyright (c) 2025 INOSX (https://inosx.com)
4
+ All Rights Reserved
5
+
6
+ NOTICE: All information contained herein is, and remains the property of INOSX
7
+ and its suppliers, if any. The intellectual and technical concepts contained
8
+ herein are proprietary to INOSX and its suppliers and may be covered by patents,
9
+ patents in process, and are protected by trade secret or copyright law.
10
+
11
+ Dissemination of this information or reproduction of this material is strictly
12
+ forbidden unless prior written permission is obtained from INOSX.
13
+
14
+ TERMS AND CONDITIONS:
15
+
16
+ 1. PROPRIETARY RIGHTS
17
+ This software and associated documentation files (the "Software") are the
18
+ proprietary and confidential information of INOSX. The Software is protected
19
+ by copyright laws and international copyright treaties, as well as other
20
+ intellectual property laws and treaties.
21
+
22
+ 2. RESTRICTIONS
23
+ You may NOT:
24
+ - Copy, modify, adapt, alter, translate, or create derivative works of the Software
25
+ - Reverse engineer, disassemble, decompile, or otherwise attempt to derive the
26
+ source code of the Software
27
+ - Remove, alter, or obscure any proprietary notices, labels, or marks on the Software
28
+ - Use the Software for any commercial purpose without explicit written permission
29
+ - Distribute, sublicense, rent, lease, or lend the Software to any third party
30
+ - Use the Software in any way that violates any applicable law or regulation
31
+
32
+ 3. NO WARRANTY
33
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL INOSX
36
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
37
+ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
38
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
39
+
40
+ 4. TERMINATION
41
+ This license is effective until terminated. Your rights under this license will
42
+ terminate automatically without notice from INOSX if you fail to comply with any
43
+ term(s) of this license.
44
+
45
+ 5. CONTACT
46
+ For licensing inquiries, please contact:
47
+ Website: https://inosx.com
48
+ Email: [contact information]
49
+
50
+ INOSX reserves all rights not expressly granted to you in this license.
51
+
package/README.md CHANGED
@@ -1,74 +1,557 @@
1
- # nex-app
1
+ # 🚀 NEX Framework 2.0
2
2
 
3
- Crie projetos NEX com interface interativa (CLI + Web UI).
3
+ > **Multi-LLM AI Framework with Cursor Rules Integration**
4
+ > Framework completo de Agentes AI para desenvolvimento de software inteligente
4
5
 
5
- ## 🚀 Uso
6
+ [![Version](https://img.shields.io/badge/version-2.0.0-blue.svg)](CHANGELOG.md)
7
+ [![License: Proprietary](https://img.shields.io/badge/License-Proprietary-red.svg)](https://inosx.com)
8
+ [![Node.js Version](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen)](https://nodejs.org/)
9
+ [![Multi-LLM](https://img.shields.io/badge/Multi--LLM-Ready-purple.svg)](docs/NEX-2.0-MULTI-LLM-SPEC.md)
10
+ [![JavaScript](https://img.shields.io/badge/JavaScript-97.9%25-yellow)](https://www.javascript.com/)
11
+
12
+ ---
13
+
14
+ ## 🎉 What's New in NEX 2.0
15
+
16
+ ### ✨ Major Features
17
+ - 🤖 **Multi-LLM Support**: Claude Sonnet, GPT-4, Haiku, GPT-4o-mini, and more
18
+ - ⚡ **Cursor Integration**: One-command install to `.cursor/rules/nex/`
19
+ - 🚀 **Ultra-Fast**: Installation in < 1 second (214 files)
20
+ - ✅ **Auto-Validation**: Built-in verification and health checks
21
+ - 💾 **Smart Backup**: Automatic backup system before updates
22
+ - 📦 **Complete**: All agents, workflows, tasks, and tools included
6
23
 
7
24
  ```bash
8
- # Uso básico (detecção automática)
9
- npx nex-app
25
+ # Execute o setup wizard interativo
26
+ npx nex-app@latest
10
27
 
11
- # Forçar Web UI
12
- npx nex-app --web
28
+ # O wizard irá:
29
+ # Perguntar sobre instalação de Cursor Rules
30
+ # ✓ Perguntar sobre abrir NEX Hub no browser
31
+ # ✓ Instalar e configurar tudo automaticamente
13
32
 
14
- # Forçar CLI
15
- npx nex-app --no-browser
33
+ # Depois, use no Cursor:
34
+ # @nex/core/agents/nex-master
16
35
  ```
17
36
 
37
+ [📖 Full Changelog](CHANGELOG.md) | [📋 Technical Spec](docs/NEX-2.0-MULTI-LLM-SPEC.md) | [🧪 Test Report](docs/NEX-2.0-TEST-REPORT.md)
38
+
39
+ ---
40
+
41
+ NEX é um framework avançado de agentes AI que permite criar, gerenciar e orquestrar múltiplos agentes especializados para desenvolvimento de software, planejamento de projetos, análise de requisitos e muito mais.
42
+
43
+ ## 📋 Índice
44
+
45
+ - [Características](#-características)
46
+ - [Instalação](#-instalação)
47
+ - [Início Rápido](#-início-rápido)
48
+ - [Arquitetura](#-arquitetura)
49
+ - [Documentação](#-documentação)
50
+ - [Estrutura do Projeto](#-estrutura-do-projeto)
51
+ - [Agentes](#-agentes)
52
+ - [CLI](#-cli)
53
+ - [NEX Store](#-nex-store)
54
+ - [Contribuindo](#-contribuindo)
55
+ - [Licença](#-licença)
56
+
18
57
  ## ✨ Características
19
58
 
20
- - **Modo Híbrido**: CLI rápido ou Web UI visual
21
- - **Detecção Automática**: Escolhe o melhor modo automaticamente
22
- - **Templates**: Blank, Full Stack, API Only
23
- - **Integração Cursor**: Configuração automática
24
- - **Marketplace**: Seleção de agentes durante criação
59
+ ### 🎯 Agentes de Planejamento
60
+ - **ANX** - Análise de requisitos e geração de insights
61
+ - **PMX** - Gestão de produto e criação de PRDs
62
+ - **ARX** - Arquitetura de sistemas e infraestrutura
63
+ - **DVX** - Desenvolvimento e geração de código
64
+ - **DOCX** - Documentação técnica
65
+ - **QAX** - Garantia de qualidade e testes
66
+ - **DEPX** - Deploy e CI/CD
67
+ - **MONX** - Monitoramento e observabilidade
68
+
69
+ ### 🤖 Agentes de Execução
70
+ - **18 agentes especializados** para execução de comandos
71
+ - Sistema de orquestração multi-agente
72
+ - Validação multi-camada
73
+ - Busca semântica com vetorização
25
74
 
26
- ## 📋 Requisitos
75
+ ### 🛠️ Ferramentas
76
+ - **CLI completo** para gerenciamento de projetos
77
+ - **Sistema de workflows** pré-definidos e customizáveis
78
+ - **Templates** para PRDs, user stories e arquitetura
79
+ - **Sistema de preferências** técnicas configuráveis
80
+ - **Sharding inteligente** para otimização de tokens
81
+ - **Web UI** para gerenciamento visual
82
+
83
+ ### 🏪 NEX Agent Marketplace
84
+ - **Registry completo** de agents (planning + execution + community)
85
+ - **CLI poderoso** para instalação e gerenciamento
86
+ - **Sistema de versionamento** semântico
87
+ - **Dependency management** automático
88
+ - **Supabase integration** para sync e analytics
89
+ - **Reviews & ratings** (database ready)
90
+ - **Search & discovery** inteligente
91
+ - **Official & community** agents
92
+
93
+ ### 🧠 Inteligência Artificial
94
+ - Suporte a múltiplos providers (OpenAI, Claude, Gemini, Mistral)
95
+ - Configuração flexível de modelos
96
+ - Integração de IA em todos os agentes
97
+ - Sistema de aprendizado contínuo
98
+
99
+ ## 📦 Instalação
100
+
101
+ ### Instalação Rápida via NPX (Recomendado)
102
+
103
+ ```bash
104
+ # Execute o setup wizard interativo
105
+ npx nex-app@latest
106
+
107
+ # O wizard perguntará:
108
+ # 1. Install NEX agents in Cursor (.cursor/rules/nex/)? [Y/n]
109
+ # 2. Open NEX Hub in browser after installation? [Y/n]
110
+
111
+ # Depois, no Cursor, use:
112
+ @nex/core/agents/nex-master
113
+
114
+ # Ou instale agentes adicionais do marketplace:
115
+ nex agent install anx
116
+ ```
117
+
118
+ ### Pré-requisitos
27
119
 
28
120
  - Node.js >= 18.0.0
29
- - npm, pnpm ou yarn
121
+ - npm ou yarn
122
+ - Git
123
+ - Conta no Supabase (para backend e banco de dados)
124
+ - Conta no Vercel (para deploy do frontend)
125
+
126
+ ### Instalação Local (Para Desenvolvimento)
127
+
128
+ ```bash
129
+ # Clone o repositório
130
+ git clone https://github.com/INOSX/nex-store.git
131
+ cd nex-store
132
+
133
+ # Instale as dependências
134
+ npm install
135
+
136
+ # Configure as variáveis de ambiente
137
+ cp .env.example .env
138
+ # Edite o .env com suas configurações do Supabase:
139
+ # VITE_SUPABASE_URL=your_supabase_project_url
140
+ # VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
141
+ ```
142
+
143
+ ### Configuração do Supabase
144
+
145
+ 1. Crie um projeto no [Supabase](https://supabase.com)
146
+ 2. Execute as migrations:
147
+ ```bash
148
+ # Instale o Supabase CLI
149
+ npm install -g supabase
150
+
151
+ # Faça login
152
+ supabase login
153
+
154
+ # Link seu projeto
155
+ supabase link --project-ref your-project-ref
156
+
157
+ # Execute as migrations
158
+ supabase db push
159
+ ```
160
+ 3. Configure as Edge Functions:
161
+ ```bash
162
+ supabase functions deploy nex-store-auth
163
+ supabase functions deploy nex-store-agents
164
+ supabase functions deploy nex-manager-api
165
+ ```
166
+
167
+ ### Instalação via NPM
168
+
169
+ O NEX Framework é instalado automaticamente via NPX. Para usuários que precisam instalar globalmente:
170
+
171
+ ```bash
172
+ # Instalar NEX CLI globalmente (opcional)
173
+ npm install -g nex-app@latest
174
+ ```
175
+
176
+ ## 🚀 Início Rápido
177
+
178
+ ### Novo Usuário - Instale o NEX
179
+
180
+ ```bash
181
+ # 1. Instale o NEX Framework (GRATUITO)
182
+ npx nex-app@latest
183
+
184
+ # 2. Acesse o NEX Hub no browser
185
+ # O instalador abrirá automaticamente: http://localhost:3000/hub
186
+
187
+ # 3. Browse e instale agentes
188
+ nex agent search "planning"
189
+ nex agent install anx
190
+
191
+ # 4. Use os agentes no Cursor
192
+ # No chat do Cursor, digite: @anx analise este projeto
193
+ ```
194
+
195
+ ### Desenvolvimento Local
196
+
197
+ ```bash
198
+ # Iniciar servidor de desenvolvimento (Vite)
199
+ npm run dev
200
+
201
+ # O frontend estará disponível em http://localhost:3000
202
+ ```
203
+
204
+ ### Deploy no Vercel
205
+
206
+ 1. Conecte seu repositório ao Vercel
207
+ 2. Configure as variáveis de ambiente no Vercel:
208
+ - `VITE_SUPABASE_URL`
209
+ - `VITE_SUPABASE_ANON_KEY`
210
+ 3. O Vercel detectará automaticamente o Vite e fará o deploy
211
+
212
+ ### Usando o CLI
213
+
214
+ ```bash
215
+ # Instalar o NEX (se ainda não instalou)
216
+ npx nex-app@latest
217
+
218
+ # Gerenciar agentes
219
+ nex agent search "analysis" # Buscar agentes
220
+ nex agent install anx # Instalar ANX - Analysis Expert
221
+ nex agent list # Listar instalados
222
+ nex agent info anx # Ver detalhes
223
+ nex agent update anx # Atualizar
224
+ nex agent uninstall anx # Remover
225
+
226
+ # Executar workflows (com agentes instalados)
227
+ nex workflow full-stack-app
228
+
229
+ # Configurar IA
230
+ nex config ai --provider openai
231
+ ```
232
+
233
+ ### Uso Programático
234
+
235
+ ```javascript
236
+ import { NEXOrchestrator } from '@nex/framework'
237
+
238
+ const orchestrator = new NEXOrchestrator()
239
+
240
+ // Processar comando
241
+ const result = await orchestrator.processCommand(
242
+ "Liste todas as empresas",
243
+ user,
244
+ context
245
+ )
246
+
247
+ // Executar workflow de planejamento
248
+ const plan = await orchestrator.executePlanningWorkflow(
249
+ requirements,
250
+ context
251
+ )
252
+ ```
30
253
 
31
254
  ## 🏗️ Arquitetura
32
255
 
33
- Este pacote implementa a **Opção 3 (Híbrida)**:
34
- - CLI como padrão (rápido, confiável)
35
- - Web installer como opção (`--web`)
36
- - Detecção automática de ambiente
256
+ ### Stack Tecnológica
257
+
258
+ - **Frontend**: Vite + React (deploy no Vercel)
259
+ - **Backend**: Supabase Edge Functions (Deno)
260
+ - **Banco de Dados**: Supabase PostgreSQL
261
+ - **Autenticação**: Supabase Auth
262
+ - **Storage**: Supabase Storage
263
+
264
+ ### Padrão de Agentes
265
+
266
+ NEX segue o padrão de categorização de agentes:
267
+
268
+ - **🔷 NEX (Nexus)** - Orquestração central
269
+ - **📐 ORDX (Ordo)** - Ordem, validação e estruturação
270
+ - **🌊 FLX (Fluxus)** - Fluxo contínuo e planejamento
271
+ - **⚡ AGX (Agens)** - Execução de ações de domínio
272
+ - **🔧 OPX (Opus)** - Execução técnica especializada
273
+
274
+ Para mais detalhes, consulte: [PADRAO_NEX_FLX_AGX_OPX_ORDX.md](./PADRAO_NEX_FLX_AGX_OPX_ORDX.md)
37
275
 
38
- ## 📖 Documentação
276
+ ## 📚 Documentação
39
277
 
40
- - [Arquitetura Completa](../docs/ARQUITETURA_NPX_WEB_INSTALLER_NEX.md)
41
- - [Implementação Detalhada](../docs/IMPLEMENTACAO_HIBRIDA_NPX.md)
42
- - [Brainstorm](../docs/BRAINSTORM_NPX_WEB_INSTALLER.md)
278
+ ### Documentação Principal
43
279
 
44
- ## 🔧 Desenvolvimento
280
+ - **[Padrão NEX/FLX/AGX/OPX/ORDX](./PADRAO_NEX_FLX_AGX_OPX_ORDX.md)** - Explicação completa do padrão de nomenclatura e arquitetura
281
+ - **[Documentação de Agentes](./DOCUMENTACAO_AGENTES_NEX.md)** - Documentação detalhada de todos os 18 agentes
282
+ - **[Diagramas de Agentes](./DIAGRAMAS_AGENTES_NEX.md)** - Diagramas Mermaid de cada agente
283
+ - **[Fluxo do Sistema](./FLUXO_ESPECIALISTA_NEX.md)** - Fluxo completo de processamento
284
+ - **[Resumo de Implementação](./IMPLEMENTACAO_NEX_RESUMO.md)** - Visão geral das implementações
285
+
286
+ ### Documentação Técnica
287
+
288
+ - **[Configuração Vite + Supabase](./docs/VITE_SUPABASE_SETUP.md)** - Guia completo de configuração do frontend e backend
289
+ - **[Guia de Deploy](./DEPLOYMENT.md)** - Como fazer deploy no Vercel e Supabase
290
+ - **[Módulo Especialista IA](./docs/MODULO_ESPECIALISTA_IA.md)** - Documentação do módulo de especialista
291
+ - **[Integração de IA](./docs/AGENTES_IA_INTEGRATION.md)** - Estratégia de integração de IA nos agentes
292
+ - **[Guia de Testes](./GUIA_TESTES_NEX_ESPECIALISTA.md)** - Guia completo de testes
293
+ - **[Testes Rápidos](./TESTES_RAPIDOS_NEX.md)** - Testes rápidos e exemplos
294
+
295
+ ## 📁 Estrutura do Projeto
296
+
297
+ ```
298
+ nex-agents/
299
+ ├── cli/ # CLI do framework
300
+ │ └── nex-cli.js
301
+ ├── src/
302
+ │ ├── services/
303
+ │ │ ├── nex-execution/ # Agentes de execução
304
+ │ │ │ ├── nexOrchestrator.js
305
+ │ │ │ ├── agents/ # 18 agentes especializados
306
+ │ │ │ ├── services/ # Serviços de vetorização
307
+ │ │ │ └── utils/ # Utilitários
308
+ │ │ ├── nex/ # Sistema NEX Framework
309
+ │ │ │ ├── agents/planning/ # Agentes de planejamento
310
+ │ │ │ ├── core/ # Core do framework
311
+ │ │ │ ├── api/ # APIs
312
+ │ │ │ └── installer/ # Sistema de instalação
313
+ │ │ ├── nex-store/ # NEX Store (marketplace)
314
+ │ │ └── nex-installer/ # Instalador de agentes
315
+ │ ├── components/ # Componentes React
316
+ │ │ ├── specialist/ # Módulo especialista
317
+ │ │ ├── nex-manager/ # Gerenciador web
318
+ │ │ └── store/ # Loja virtual
319
+ │ ├── pages/ # Páginas React
320
+ │ │ ├── admin/ # Painel admin
321
+ │ │ └── store/ # Páginas da loja
322
+ │ └── config/ # Configurações
323
+ │ ├── nexConfig.js
324
+ │ └── aiConfig.js
325
+ ├── templates/ # Templates de documentos
326
+ │ ├── prd-template.md
327
+ │ ├── user-story-template.md
328
+ │ └── architecture-template.md
329
+ ├── workflows/ # Workflows pré-definidos
330
+ │ ├── greenfield/
331
+ │ └── brownfield/
332
+ ├── docs/ # Documentação adicional
333
+ ├── sql/ # Scripts SQL
334
+ └── package.json
335
+ ```
336
+
337
+ ## 🤖 Agentes
338
+
339
+ ### Agentes de Planejamento (Novos)
340
+
341
+ | Agente | Categoria | Função |
342
+ |--------|-----------|--------|
343
+ | **ANX** | FLX | Análise de requisitos e insights |
344
+ | **PMX** | FLX | Gestão de produto e PRDs |
345
+ | **ARX** | OPX | Arquitetura e design de sistemas |
346
+ | **DVX** | AGX | Desenvolvimento e código |
347
+ | **DOCX** | OPX | Documentação técnica |
348
+ | **QAX** | ORDX | Qualidade e testes |
349
+ | **DEPX** | AGX | Deploy e CI/CD |
350
+ | **MONX** | ORDX | Monitoramento e observabilidade |
351
+
352
+ ### Agentes de Execução (Existentes)
353
+
354
+ | Categoria | Agentes |
355
+ |-----------|---------|
356
+ | **ORDX** | SupervisorAgent, PermissionAgent, ContextAgent, MemoryResourceAgent |
357
+ | **FLX** | VoiceIntentAgent, QueryPlanningAgent, SuggestionAgent |
358
+ | **AGX** | CompanyActionAgent, EmployeeActionAgent, CampaignActionAgent, ProspectingActionAgent, BenefitActionAgent, ProductActionAgent, IntegrationActionAgent |
359
+ | **OPX** | DatabaseQueryAgent, DatabaseKnowledgeAgent, DataVisualizationAgent, FeedbackAgent |
360
+
361
+ Para documentação completa, veja: [DOCUMENTACAO_AGENTES_NEX.md](./DOCUMENTACAO_AGENTES_NEX.md)
362
+
363
+ ## 💻 CLI
364
+
365
+ O NEX Framework inclui uma CLI completa para gerenciamento:
366
+
367
+ ```bash
368
+ # Instalação (primeira vez)
369
+ npx nex-app@latest
370
+
371
+ # Comandos do Marketplace
372
+ nex agent search <query> # Buscar agents
373
+ nex agent install <agent-id> # Instalar agent
374
+ nex agent list # Listar instalados
375
+ nex agent info <agent-id> # Ver detalhes
376
+ nex agent update <agent-id> # Atualizar agent
377
+ nex agent uninstall <agent-id> # Remover agent
378
+
379
+ # Comandos de configuração
380
+ nex config # Ver configuração atual
381
+ nex config ai --provider openai # Configurar provider de IA
382
+ ```
383
+
384
+ Para mais detalhes sobre o Marketplace: [NEX_MARKETPLACE_SETUP.md](./NEX_MARKETPLACE_SETUP.md)
385
+
386
+ ## 🏪 NEX Agent Marketplace
387
+
388
+ O NEX Agent Marketplace é um sistema completo de distribuição de agents:
389
+
390
+ **Features:**
391
+ - 📦 **Registry Universal** - Local + Git + Supabase
392
+ - 🔍 **Search & Discovery** - Busca por texto, tags, categoria
393
+ - ⚡ **Instalação Rápida** - `nex agent install anx`
394
+ - 🔗 **Dependency Management** - Auto-instalação de dependências
395
+ - 📊 **Stats & Analytics** - Tracking de instalações e uso
396
+ - ⭐ **Reviews & Ratings** - Sistema de feedback da comunidade
397
+ - 🎯 **Official & Community** - Agents oficiais INOSX + comunidade
398
+
399
+ **Quick Start:**
400
+ ```bash
401
+ # 1. Instale o NEX (GRATUITO)
402
+ npx nex-app@latest
403
+
404
+ # 2. Buscar agents
405
+ nex agent search "planning"
406
+
407
+ # 3. Instalar agents
408
+ nex agent install anx
409
+
410
+ # 4. Ver instalados
411
+ nex agent list
412
+ ```
413
+
414
+ Documentação completa: [NEX_MARKETPLACE_SETUP.md](./NEX_MARKETPLACE_SETUP.md)
415
+
416
+ ## 🔧 Configuração
417
+
418
+ ### Configuração de IA
419
+
420
+ Edite `src/config/aiConfig.js` para configurar seus providers:
421
+
422
+ ```javascript
423
+ export default {
424
+ currentProvider: 'openai',
425
+ providers: {
426
+ openai: {
427
+ apiKey: process.env.OPENAI_API_KEY,
428
+ model: 'gpt-4o-mini'
429
+ },
430
+ claude: {
431
+ apiKey: process.env.CLAUDE_API_KEY,
432
+ model: 'claude-3-sonnet'
433
+ }
434
+ // ... outros providers
435
+ }
436
+ }
437
+ ```
438
+
439
+ ### Configuração de Agentes
440
+
441
+ Edite `src/config/nexConfig.js` para personalizar os agentes:
442
+
443
+ ```javascript
444
+ export const nexConfig = {
445
+ supervisor: {
446
+ minQualityScore: 70,
447
+ maxRetries: 3
448
+ },
449
+ // ... outras configurações
450
+ }
451
+ ```
452
+
453
+ ## 🧪 Testes
454
+
455
+ ```bash
456
+ # Executar testes
457
+ npm test
458
+
459
+ # Testes com cobertura
460
+ npm run test:coverage
461
+
462
+ # Testes rápidos
463
+ npm run test:quick
464
+ ```
465
+
466
+ Consulte: [GUIA_TESTES_NEX_ESPECIALISTA.md](./GUIA_TESTES_NEX_ESPECIALISTA.md)
467
+
468
+ ## 🚧 Desenvolvimento
469
+
470
+ ### Requisitos
471
+
472
+ - Node.js >= 18.0.0
473
+ - npm ou yarn
474
+ - Git
475
+
476
+ ### Setup de Desenvolvimento
45
477
 
46
478
  ```bash
47
- # Instalar dependências
479
+ # Clone o repositório
480
+ git clone https://github.com/INOSX/nex-store.git
481
+ cd nex-store
482
+
483
+ # Instale dependências
48
484
  npm install
49
485
 
50
- # Testar localmente
51
- node cli/create.js
486
+ # Configure variáveis de ambiente
487
+ cp .env.example .env
488
+ # Edite .env com suas credenciais do Supabase
489
+
490
+ # Configure Supabase (se ainda não fez)
491
+ supabase login
492
+ supabase link --project-ref your-project-ref
493
+ supabase db push
52
494
 
53
- # Testar modo web
54
- node cli/create.js --web
495
+ # Execute em modo desenvolvimento
496
+ npm run dev
497
+ # Frontend estará em http://localhost:3000
55
498
  ```
56
499
 
57
- ## 📝 Status
500
+ Para mais detalhes, consulte: [docs/VITE_SUPABASE_SETUP.md](./docs/VITE_SUPABASE_SETUP.md)
58
501
 
59
- 🟡 **Em Desenvolvimento** - MVP funcional
502
+ ### Estrutura de Branches
60
503
 
61
- - [x] Estrutura base
62
- - [x] CLI entrypoint
63
- - [x] Servidor web
64
- - [x] UI básica
65
- - [x] Generator
66
- - [x] Templates básicos
67
- - [ ] Integração completa com Marketplace
68
- - [ ] Integração completa com Cursor
69
- - [ ] Testes
70
- - [ ] Publicação no npm
504
+ - `main` - Branch de produção
505
+ - `develop` - Branch de desenvolvimento
506
+
507
+ ## 🤝 Contribuindo
508
+
509
+ Contribuições são bem-vindas! Por favor:
510
+
511
+ 1. Fork o projeto
512
+ 2. Crie uma branch para sua feature (`git checkout -b feature/AmazingFeature`)
513
+ 3. Commit suas mudanças (`git commit -m 'Add some AmazingFeature'`)
514
+ 4. Push para a branch (`git push origin feature/AmazingFeature`)
515
+ 5. Abra um Pull Request
516
+
517
+ ### Guia de Contribuição
518
+
519
+ - Siga o padrão de código existente
520
+ - Adicione testes para novas funcionalidades
521
+ - Atualize a documentação conforme necessário
522
+ - Use commits descritivos
71
523
 
72
524
  ## 📄 Licença
73
525
 
74
- PROPRIETARY - INOSX
526
+ Este projeto é proprietário da **INOSX** (https://inosx.com). Todos os direitos reservados.
527
+
528
+ Este software e sua documentação são propriedade da INOSX e são fornecidos sob licença proprietária. É proibida a reprodução, distribuição, modificação ou uso comercial sem autorização expressa da INOSX.
529
+
530
+ Para mais informações sobre licenciamento, entre em contato através do site [inosx.com](https://inosx.com).
531
+
532
+ ## 👥 Autores
533
+
534
+ - **INOSX** - *Desenvolvimento inicial* - [INOSX](https://github.com/INOSX)
535
+
536
+ ## 🙏 Agradecimentos
537
+
538
+ - OpenAI pela API de IA
539
+ - Supabase pelo banco de dados
540
+ - Comunidade open source
541
+
542
+ ## 📞 Suporte
543
+
544
+ - **Issues**: [GitHub Issues](https://github.com/INOSX/nex-store/issues)
545
+ - **Documentação**: Veja a seção [Documentação](#-documentação)
546
+ - **Email**: suporte@inosx.com
547
+
548
+ ## 🔗 Links Úteis
549
+
550
+ - [Documentação Completa](./DOCUMENTACAO_AGENTES_NEX.md)
551
+ - [Padrão de Arquitetura](./PADRAO_NEX_FLX_AGX_OPX_ORDX.md)
552
+ - [Diagramas](./DIAGRAMAS_AGENTES_NEX.md)
553
+ - [Fluxo do Sistema](./FLUXO_ESPECIALISTA_NEX.md)
554
+
555
+ ---
556
+
557
+ ⭐ Se este projeto foi útil para você, considere dar uma estrela!