@mrpatronz/nexusflow 0.2.19 → 1.3.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 (294) hide show
  1. package/README.md +37 -7
  2. package/dist/analyzers/index.d.ts +23 -0
  3. package/dist/analyzers/index.d.ts.map +1 -1
  4. package/dist/analyzers/index.js +62 -0
  5. package/dist/analyzers/index.js.map +1 -1
  6. package/dist/commands/add-repo.d.ts +9 -0
  7. package/dist/commands/add-repo.d.ts.map +1 -1
  8. package/dist/commands/add-repo.js +12 -1
  9. package/dist/commands/add-repo.js.map +1 -1
  10. package/dist/commands/add-repo.test.d.ts +2 -0
  11. package/dist/commands/add-repo.test.d.ts.map +1 -0
  12. package/dist/commands/add-repo.test.js +30 -0
  13. package/dist/commands/add-repo.test.js.map +1 -0
  14. package/dist/commands/commands.test.js +26 -6
  15. package/dist/commands/commands.test.js.map +1 -1
  16. package/dist/commands/commit.d.ts +7 -1
  17. package/dist/commands/commit.d.ts.map +1 -1
  18. package/dist/commands/commit.js +31 -8
  19. package/dist/commands/commit.js.map +1 -1
  20. package/dist/commands/commit.test.d.ts +2 -0
  21. package/dist/commands/commit.test.d.ts.map +1 -0
  22. package/dist/commands/commit.test.js +54 -0
  23. package/dist/commands/commit.test.js.map +1 -0
  24. package/dist/commands/diff.d.ts +9 -2
  25. package/dist/commands/diff.d.ts.map +1 -1
  26. package/dist/commands/diff.js +36 -12
  27. package/dist/commands/diff.js.map +1 -1
  28. package/dist/commands/doctor.d.ts.map +1 -1
  29. package/dist/commands/doctor.js +16 -20
  30. package/dist/commands/doctor.js.map +1 -1
  31. package/dist/commands/handoff.d.ts.map +1 -1
  32. package/dist/commands/handoff.js +11 -15
  33. package/dist/commands/handoff.js.map +1 -1
  34. package/dist/commands/refresh.d.ts +4 -2
  35. package/dist/commands/refresh.d.ts.map +1 -1
  36. package/dist/commands/refresh.js +20 -36
  37. package/dist/commands/refresh.js.map +1 -1
  38. package/dist/commands/schedule.d.ts +35 -0
  39. package/dist/commands/schedule.d.ts.map +1 -0
  40. package/dist/commands/schedule.js +151 -0
  41. package/dist/commands/schedule.js.map +1 -0
  42. package/dist/commands/sync.d.ts.map +1 -1
  43. package/dist/commands/sync.js +28 -7
  44. package/dist/commands/sync.js.map +1 -1
  45. package/dist/commands/tui.js +1 -1
  46. package/dist/commands/tui.js.map +1 -1
  47. package/dist/commands/ui.d.ts +1 -0
  48. package/dist/commands/ui.d.ts.map +1 -1
  49. package/dist/commands/ui.js +5 -2
  50. package/dist/commands/ui.js.map +1 -1
  51. package/dist/core/adapters/local-storage.d.ts +7 -0
  52. package/dist/core/adapters/local-storage.d.ts.map +1 -1
  53. package/dist/core/adapters/local-storage.js +13 -4
  54. package/dist/core/adapters/local-storage.js.map +1 -1
  55. package/dist/core/adapters/storage.test.js +18 -0
  56. package/dist/core/adapters/storage.test.js.map +1 -1
  57. package/dist/core/analysis-cache.d.ts +58 -0
  58. package/dist/core/analysis-cache.d.ts.map +1 -0
  59. package/dist/core/analysis-cache.js +116 -0
  60. package/dist/core/analysis-cache.js.map +1 -0
  61. package/dist/core/analysis-cache.test.d.ts +2 -0
  62. package/dist/core/analysis-cache.test.d.ts.map +1 -0
  63. package/dist/core/analysis-cache.test.js +108 -0
  64. package/dist/core/analysis-cache.test.js.map +1 -0
  65. package/dist/core/refresh.d.ts +41 -0
  66. package/dist/core/refresh.d.ts.map +1 -0
  67. package/dist/core/refresh.js +56 -0
  68. package/dist/core/refresh.js.map +1 -0
  69. package/dist/core/scheduler.d.ts +117 -0
  70. package/dist/core/scheduler.d.ts.map +1 -0
  71. package/dist/core/scheduler.js +361 -0
  72. package/dist/core/scheduler.js.map +1 -0
  73. package/dist/core/scheduler.test.d.ts +2 -0
  74. package/dist/core/scheduler.test.d.ts.map +1 -0
  75. package/dist/core/scheduler.test.js +163 -0
  76. package/dist/core/scheduler.test.js.map +1 -0
  77. package/dist/core/sync.d.ts +6 -0
  78. package/dist/core/sync.d.ts.map +1 -1
  79. package/dist/core/sync.js +17 -12
  80. package/dist/core/sync.js.map +1 -1
  81. package/dist/core/workspace.d.ts +6 -0
  82. package/dist/core/workspace.d.ts.map +1 -1
  83. package/dist/core/workspace.js +32 -15
  84. package/dist/core/workspace.js.map +1 -1
  85. package/dist/core/workspace.test.d.ts +2 -0
  86. package/dist/core/workspace.test.d.ts.map +1 -0
  87. package/dist/core/workspace.test.js +42 -0
  88. package/dist/core/workspace.test.js.map +1 -0
  89. package/dist/generators/index.d.ts +7 -1
  90. package/dist/generators/index.d.ts.map +1 -1
  91. package/dist/generators/index.js +14 -1
  92. package/dist/generators/index.js.map +1 -1
  93. package/dist/generators/map-generator.d.ts.map +1 -1
  94. package/dist/generators/map-generator.js +4 -3
  95. package/dist/generators/map-generator.js.map +1 -1
  96. package/dist/generators/map-generator.test.js +4 -2
  97. package/dist/generators/map-generator.test.js.map +1 -1
  98. package/dist/gui/assets/index-ElroPpSP.js +26 -0
  99. package/dist/gui/index.html +1 -1
  100. package/dist/index.js +108 -4
  101. package/dist/index.js.map +1 -1
  102. package/dist/orchestration/index.d.ts +1 -1
  103. package/dist/orchestration/index.d.ts.map +1 -1
  104. package/dist/orchestration/index.js +1 -1
  105. package/dist/orchestration/index.js.map +1 -1
  106. package/dist/orchestration/runner.d.ts +16 -1
  107. package/dist/orchestration/runner.d.ts.map +1 -1
  108. package/dist/orchestration/runner.js +41 -5
  109. package/dist/orchestration/runner.js.map +1 -1
  110. package/dist/orchestration/runner.test.d.ts +2 -0
  111. package/dist/orchestration/runner.test.d.ts.map +1 -0
  112. package/dist/orchestration/runner.test.js +71 -0
  113. package/dist/orchestration/runner.test.js.map +1 -0
  114. package/dist/server.d.ts +17 -1
  115. package/dist/server.d.ts.map +1 -1
  116. package/dist/server.js +275 -114
  117. package/dist/server.js.map +1 -1
  118. package/dist/server.test.js +158 -1
  119. package/dist/server.test.js.map +1 -1
  120. package/dist/utils/multi-git.d.ts +21 -0
  121. package/dist/utils/multi-git.d.ts.map +1 -1
  122. package/dist/utils/multi-git.js +40 -4
  123. package/dist/utils/multi-git.js.map +1 -1
  124. package/dist/utils/prompts.d.ts.map +1 -1
  125. package/dist/utils/prompts.js +8 -2
  126. package/dist/utils/prompts.js.map +1 -1
  127. package/package.json +13 -1
  128. package/.agents/skills/ccc/SKILL.md +0 -71
  129. package/.agents/skills/ccc/references/management.md +0 -110
  130. package/.agents/skills/ccc/references/settings.md +0 -126
  131. package/.github/dependabot.yml +0 -52
  132. package/.github/workflows/ci.yml +0 -44
  133. package/.github/workflows/dependabot-merge.yml +0 -53
  134. package/.github/workflows/release-desktop.yml +0 -67
  135. package/.github/workflows/release-npm.yml +0 -65
  136. package/.github/workflows/release-vscode.yml +0 -61
  137. package/.vscode/launch.json +0 -17
  138. package/.vscode/tasks.json +0 -17
  139. package/GETTING_STARTED.md +0 -114
  140. package/desktop/build-installer.js +0 -228
  141. package/desktop/build.js +0 -118
  142. package/desktop/installer/nexusflow.iss +0 -35
  143. package/desktop/neutralino.config.json +0 -39
  144. package/desktop/package-lock.json +0 -1060
  145. package/desktop/package.json +0 -14
  146. package/dist/gui/assets/index-D8iJPvnk.js +0 -26
  147. package/extension/media/icon.svg +0 -1
  148. package/extension/package-lock.json +0 -6044
  149. package/extension/package.json +0 -117
  150. package/extension/src/extension.ts +0 -653
  151. package/extension/tsconfig.json +0 -21
  152. package/gui/README.md +0 -73
  153. package/gui/e2e/dashboard.spec.ts +0 -61
  154. package/gui/e2e/wizard.spec.ts +0 -346
  155. package/gui/eslint.config.js +0 -26
  156. package/gui/index.html +0 -17
  157. package/gui/package-lock.json +0 -3137
  158. package/gui/package.json +0 -37
  159. package/gui/playwright.config.ts +0 -41
  160. package/gui/public/app_logo.png +0 -0
  161. package/gui/public/favicon.svg +0 -1
  162. package/gui/public/icons.svg +0 -24
  163. package/gui/src/App.css +0 -1
  164. package/gui/src/App.tsx +0 -3573
  165. package/gui/src/app/AppSidebar.tsx +0 -69
  166. package/gui/src/assets/hero.png +0 -0
  167. package/gui/src/assets/react.svg +0 -1
  168. package/gui/src/assets/vite.svg +0 -1
  169. package/gui/src/components/AddRepoPicker.tsx +0 -81
  170. package/gui/src/components/ui/Button.tsx +0 -40
  171. package/gui/src/components/ui/Card.tsx +0 -6
  172. package/gui/src/components/ui/EmptyState.tsx +0 -22
  173. package/gui/src/components/ui/Input.tsx +0 -21
  174. package/gui/src/components/ui/Menu.tsx +0 -71
  175. package/gui/src/components/ui/Modal.tsx +0 -39
  176. package/gui/src/components/ui/PageHeader.tsx +0 -21
  177. package/gui/src/components/ui/RepoStatusStrip.tsx +0 -33
  178. package/gui/src/components/ui/Skeleton.tsx +0 -5
  179. package/gui/src/components/ui/StatusPill.tsx +0 -36
  180. package/gui/src/components/ui/Tabs.tsx +0 -40
  181. package/gui/src/components/ui/cn.ts +0 -4
  182. package/gui/src/components/ui/index.ts +0 -16
  183. package/gui/src/features/changes/ChangesViewer.tsx +0 -388
  184. package/gui/src/features/knowledge/KnowledgeBase.tsx +0 -84
  185. package/gui/src/features/onboarding/OnboardingWizard.tsx +0 -230
  186. package/gui/src/features/plan/ImplementationPlan.tsx +0 -32
  187. package/gui/src/features/services/ServiceConsole.tsx +0 -215
  188. package/gui/src/features/sessions/SessionHistory.tsx +0 -195
  189. package/gui/src/index.css +0 -167
  190. package/gui/src/lib/status.ts +0 -24
  191. package/gui/src/main.tsx +0 -94
  192. package/gui/src/pages/DashboardPage.tsx +0 -129
  193. package/gui/src/pages/WorkspacesPage.tsx +0 -352
  194. package/gui/src/types.ts +0 -81
  195. package/gui/tsconfig.app.json +0 -25
  196. package/gui/tsconfig.json +0 -7
  197. package/gui/tsconfig.node.json +0 -24
  198. package/gui/vite.config.ts +0 -12
  199. package/resources/workflows/plan-implement-review.md +0 -8
  200. package/resources/workflows/research-verify.md +0 -6
  201. package/resources/workflows/solo-developer.md +0 -3
  202. package/scripts/simulate-workspaces.ts +0 -55
  203. package/skills-lock.json +0 -11
  204. package/src/analyzers/detect-apis.ts +0 -290
  205. package/src/analyzers/detect-deps.ts +0 -315
  206. package/src/analyzers/detect-existing.ts +0 -74
  207. package/src/analyzers/detect-ports.ts +0 -110
  208. package/src/analyzers/index.ts +0 -97
  209. package/src/analyzers/messaging-analyzer.ts +0 -254
  210. package/src/analyzers/readme-summarizer.ts +0 -102
  211. package/src/analyzers/run-analyzer.ts +0 -269
  212. package/src/analyzers/tech-stack.ts +0 -283
  213. package/src/commands/adapter.ts +0 -348
  214. package/src/commands/add-repo.ts +0 -156
  215. package/src/commands/commands.test.ts +0 -156
  216. package/src/commands/commit.ts +0 -131
  217. package/src/commands/config.ts +0 -52
  218. package/src/commands/create.ts +0 -204
  219. package/src/commands/desktop.ts +0 -128
  220. package/src/commands/diff.ts +0 -125
  221. package/src/commands/doctor.ts +0 -370
  222. package/src/commands/handoff.ts +0 -266
  223. package/src/commands/init.ts +0 -134
  224. package/src/commands/list.ts +0 -46
  225. package/src/commands/logs.ts +0 -63
  226. package/src/commands/mcp.ts +0 -94
  227. package/src/commands/open.ts +0 -129
  228. package/src/commands/refresh.ts +0 -137
  229. package/src/commands/remove.ts +0 -98
  230. package/src/commands/start.ts +0 -117
  231. package/src/commands/status.ts +0 -54
  232. package/src/commands/stop.ts +0 -55
  233. package/src/commands/sync.ts +0 -125
  234. package/src/commands/tui.ts +0 -484
  235. package/src/commands/ui.ts +0 -111
  236. package/src/core/adapters/local-storage.ts +0 -66
  237. package/src/core/adapters/obsidian-storage.ts +0 -151
  238. package/src/core/adapters/registry.ts +0 -44
  239. package/src/core/adapters/storage.test.ts +0 -174
  240. package/src/core/adapters/vault-storage.ts +0 -86
  241. package/src/core/config.test.ts +0 -96
  242. package/src/core/config.ts +0 -140
  243. package/src/core/graph.ts +0 -344
  244. package/src/core/plugins/index.ts +0 -17
  245. package/src/core/plugins/loader.ts +0 -36
  246. package/src/core/ports/storage.ts +0 -71
  247. package/src/core/scanner.test.ts +0 -61
  248. package/src/core/scanner.ts +0 -91
  249. package/src/core/storage.ts +0 -37
  250. package/src/core/sync.ts +0 -121
  251. package/src/core/workspace-state.test.ts +0 -108
  252. package/src/core/workspace-state.ts +0 -130
  253. package/src/core/workspace.ts +0 -487
  254. package/src/core/worktree.ts +0 -120
  255. package/src/generators/antigravity.ts +0 -32
  256. package/src/generators/base.ts +0 -243
  257. package/src/generators/claude.ts +0 -34
  258. package/src/generators/codex.ts +0 -48
  259. package/src/generators/copilot.ts +0 -56
  260. package/src/generators/cursor.ts +0 -44
  261. package/src/generators/diff-context.ts +0 -75
  262. package/src/generators/index.ts +0 -322
  263. package/src/generators/map-generator.test.ts +0 -159
  264. package/src/generators/map-generator.ts +0 -539
  265. package/src/generators/plan-generator.ts +0 -483
  266. package/src/generators/skills-generator.ts +0 -259
  267. package/src/index.ts +0 -539
  268. package/src/mcp/server.ts +0 -338
  269. package/src/orchestration/detect.ts +0 -313
  270. package/src/orchestration/index.ts +0 -7
  271. package/src/orchestration/runner.ts +0 -283
  272. package/src/server.test.ts +0 -618
  273. package/src/server.ts +0 -1402
  274. package/src/types.ts +0 -451
  275. package/src/utils/detect-ai.test.ts +0 -44
  276. package/src/utils/detect-ai.ts +0 -84
  277. package/src/utils/detect-editors.test.ts +0 -48
  278. package/src/utils/detect-editors.ts +0 -57
  279. package/src/utils/git.test.ts +0 -74
  280. package/src/utils/git.ts +0 -117
  281. package/src/utils/local-ai.test.ts +0 -130
  282. package/src/utils/local-ai.ts +0 -116
  283. package/src/utils/multi-git.test.ts +0 -158
  284. package/src/utils/multi-git.ts +0 -405
  285. package/src/utils/prompts.ts +0 -209
  286. package/src/utils/session-finder.ts +0 -483
  287. package/src/utils/system-scanner.test.ts +0 -89
  288. package/src/utils/system-scanner.ts +0 -96
  289. package/src/utils/update-check.ts +0 -286
  290. package/src/utils/workflow-advisor.ts +0 -118
  291. package/src/utils/workflows.test.ts +0 -114
  292. package/src/utils/workflows.ts +0 -178
  293. package/tsconfig.json +0 -19
  294. package/vitest.config.ts +0 -14
@@ -1,67 +0,0 @@
1
- name: Release — Desktop Installer
2
-
3
- on:
4
- workflow_run:
5
- workflows: [CI]
6
- branches: [main]
7
- types: [completed]
8
-
9
- permissions:
10
- contents: write
11
-
12
- jobs:
13
- build-installer:
14
- if: github.event.workflow_run.conclusion == 'success'
15
- runs-on: windows-latest
16
- steps:
17
- - name: Checkout Repository
18
- uses: actions/checkout@v4
19
- with:
20
- ref: ${{ github.event.workflow_run.head_sha }}
21
-
22
- - name: Setup Node.js
23
- uses: actions/setup-node@v4
24
- with:
25
- node-version: 22
26
- registry-url: 'https://registry.npmjs.org/'
27
-
28
- - name: Install Dependencies
29
- run: npm ci
30
-
31
- - name: Install GUI Dependencies
32
- run: npm ci --prefix gui
33
-
34
- - name: Install Desktop Dependencies
35
- run: npm ci --prefix desktop
36
-
37
- - name: Build Desktop GUI
38
- run: npm run build --prefix gui
39
-
40
- - name: Build Desktop Binaries
41
- run: npm run build --prefix desktop
42
-
43
- - name: Build Standalone Installer
44
- run: npm run build:installer --prefix desktop
45
-
46
- - name: Check npm version
47
- id: check-version
48
- shell: bash
49
- run: |
50
- VERSION=$(node -e "console.log(require('./package.json').version)")
51
- echo "version=$VERSION" >> $GITHUB_OUTPUT
52
- if npm info @mrpatronz/nexusflow@$VERSION --json >/dev/null 2>&1; then
53
- echo "is_new=false" >> $GITHUB_OUTPUT
54
- echo "Version $VERSION already published. Skipping installer upload."
55
- else
56
- echo "is_new=true" >> $GITHUB_OUTPUT
57
- echo "Version $VERSION is new."
58
- fi
59
- env:
60
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
61
-
62
- - name: Upload installer to GitHub Release
63
- if: steps.check-version.outputs.is_new == 'true'
64
- uses: softprops/action-gh-release@v2
65
- with:
66
- tag_name: v${{ steps.check-version.outputs.version }}
67
- files: desktop/dist-installer-output/NexusFlowSetup.exe
@@ -1,65 +0,0 @@
1
- name: Release — npm
2
-
3
- on:
4
- workflow_run:
5
- workflows: [CI]
6
- branches: [main]
7
- types: [completed]
8
-
9
- permissions:
10
- contents: write
11
-
12
- jobs:
13
- publish-npm:
14
- if: github.event.workflow_run.conclusion == 'success'
15
- runs-on: ubuntu-latest
16
- steps:
17
- - name: Checkout Repository
18
- uses: actions/checkout@v4
19
- with:
20
- ref: ${{ github.event.workflow_run.head_sha }}
21
-
22
- - name: Setup Node.js
23
- uses: actions/setup-node@v4
24
- with:
25
- node-version: 22
26
- registry-url: 'https://registry.npmjs.org/'
27
-
28
- - name: Install Dependencies
29
- run: npm ci
30
-
31
- - name: Install GUI Dependencies
32
- run: npm ci --prefix gui
33
-
34
- - name: Build Project
35
- run: npm run build
36
-
37
- - name: Check version
38
- id: check-version
39
- run: |
40
- VERSION=$(node -e "console.log(require('./package.json').version)")
41
- echo "version=$VERSION" >> $GITHUB_OUTPUT
42
- if npm info @mrpatronz/nexusflow@$VERSION --json >/dev/null 2>&1; then
43
- echo "is_new=false" >> $GITHUB_OUTPUT
44
- echo "Version $VERSION is already published on npm. Skipping."
45
- else
46
- echo "is_new=true" >> $GITHUB_OUTPUT
47
- echo "Version $VERSION is new."
48
- fi
49
- env:
50
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
51
-
52
- - name: Publish to npm
53
- if: steps.check-version.outputs.is_new == 'true'
54
- run: npm publish --access public
55
- env:
56
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
57
-
58
- - name: Create GitHub Release
59
- if: steps.check-version.outputs.is_new == 'true'
60
- uses: softprops/action-gh-release@v2
61
- with:
62
- tag_name: v${{ steps.check-version.outputs.version }}
63
- name: Release v${{ steps.check-version.outputs.version }}
64
- generate_release_notes: true
65
- target_commitish: ${{ github.event.workflow_run.head_sha }}
@@ -1,61 +0,0 @@
1
- name: Release — VS Code Extension
2
-
3
- on:
4
- workflow_run:
5
- workflows: [CI]
6
- branches: [main]
7
- types: [completed]
8
-
9
- permissions:
10
- id-token: write # required for OIDC token request
11
- contents: read
12
-
13
- jobs:
14
- publish-extension:
15
- if: github.event.workflow_run.conclusion == 'success'
16
- runs-on: ubuntu-latest
17
- steps:
18
- - name: Checkout Repository
19
- uses: actions/checkout@v4
20
- with:
21
- ref: ${{ github.event.workflow_run.head_sha }}
22
-
23
- - name: Setup Node.js
24
- uses: actions/setup-node@v4
25
- with:
26
- node-version: 22
27
-
28
- - name: Install Extension Dependencies
29
- run: npm ci --prefix extension
30
-
31
- - name: Azure Login (OIDC — no stored secrets)
32
- uses: azure/login@v2
33
- with:
34
- client-id: ${{ secrets.AZURE_CLIENT_ID }}
35
- tenant-id: ${{ secrets.AZURE_TENANT_ID }}
36
- allow-no-subscriptions: true
37
-
38
- - name: Check extension version
39
- id: check-version
40
- working-directory: extension
41
- run: |
42
- VERSION=$(node -e "console.log(require('./package.json').version)")
43
- echo "version=$VERSION" >> $GITHUB_OUTPUT
44
- PUBLISHED=$(npx vsce show nexusflow.nexusflow-vscode --json 2>/dev/null \
45
- | node -e "
46
- const d=require('fs').readFileSync(0,'utf8');
47
- try { process.exit(JSON.parse(d).versions?.['$VERSION'] ? 0 : 1); }
48
- catch { process.exit(1); }
49
- " && echo "true" || echo "false")
50
- if [ "$PUBLISHED" = "true" ]; then
51
- echo "is_new=false" >> $GITHUB_OUTPUT
52
- echo "Extension version $VERSION already published. Skipping."
53
- else
54
- echo "is_new=true" >> $GITHUB_OUTPUT
55
- echo "Extension version $VERSION is new."
56
- fi
57
-
58
- - name: Publish to VS Code Marketplace
59
- if: steps.check-version.outputs.is_new == 'true'
60
- working-directory: extension
61
- run: npx vsce publish --no-dependencies --azure-credential
@@ -1,17 +0,0 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "name": "Launch Extension",
6
- "type": "extensionHost",
7
- "request": "launch",
8
- "args": [
9
- "--extensionDevelopmentPath=${workspaceRoot}/extension"
10
- ],
11
- "outFiles": [
12
- "${workspaceRoot}/extension/dist/**/*.js"
13
- ],
14
- "preLaunchTask": "npm: extension-compile"
15
- }
16
- ]
17
- }
@@ -1,17 +0,0 @@
1
- {
2
- "version": "2.0.0",
3
- "tasks": [
4
- {
5
- "type": "npm",
6
- "script": "extension:compile",
7
- "group": {
8
- "kind": "build",
9
- "isDefault": true
10
- },
11
- "label": "npm: extension-compile",
12
- "problemMatcher": [
13
- "$tsc"
14
- ]
15
- }
16
- ]
17
- }
@@ -1,114 +0,0 @@
1
- # NexusFlow — Getting Started Guide
2
-
3
- Welcome to **NexusFlow**! This guide will walk you through the system, explain its core workflows, and show you how to leverage multi-repository workspaces and agentic orchestration to accelerate feature development.
4
-
5
- ---
6
-
7
- ## 💡 What is NexusFlow?
8
-
9
- When developing complex features in modern systems, you often need to touch multiple repositories simultaneously (e.g., modifying a shared package, updating a backend REST API, and updating a frontend application).
10
-
11
- Traditional AI assistant setups only give the assistant context of a single repository. NexusFlow solves this by:
12
- 1. **Grouping Repositories**: Creating a dedicated workspace using **git worktrees** on a unified feature branch name.
13
- 2. **Generating AI Context**: Writing specialized configurations (`CLAUDE.md`, `AGENTS.md`, Copilot guidelines, and Cursor rules) that outline the workspace architecture.
14
- 3. **Smart Codebase Analysis**: Scanning tech stacks, ports, and API endpoints so the AI instantly understands the codebase boundaries.
15
- 4. **Service Orchestration**: Running, stopping, and logging all projects simultaneously from a single place.
16
-
17
- ---
18
-
19
- ## 🚀 Step-by-Step Workflow
20
-
21
- Here is how to get started with your first feature workspace.
22
-
23
- ```mermaid
24
- flowchart TD
25
- A["1. Run Web GUI or CLI"] --> B["2. Fill Feature Details & Pick Repos"]
26
- B --> C["3. Workspace Created\n(Git Worktrees + Context generated)"]
27
- C --> D["4. AI Agent Initializes\n(Fills nexusflow-overview.md + questions)"]
28
- D --> E["5. Confirm Assumptions & Spin up services"]
29
- ```
30
-
31
- ### 1. Initialize NexusFlow
32
- First, initialize the default configuration on your machine:
33
- ```bash
34
- nexusflow init
35
- ```
36
- This sets up `~/.nexusflow/config.json` with default settings:
37
- * **Development Directory**: Where your git repositories are located (defaults to `~/dev`).
38
- * **Workspaces Directory**: Where your worktrees will be created (defaults to `~/dev/workspaces`).
39
-
40
- ---
41
-
42
- ### 2. Launch the Web Dashboard
43
- NexusFlow comes with a rich, interactive Web Dashboard. Launch it by running:
44
- ```bash
45
- nexusflow ui
46
- ```
47
- This starts the local backend server on port `3000` and automatically opens the browser.
48
-
49
- ---
50
-
51
- ### 3. Create a Feature Workspace
52
- On the dashboard (or via the `nexusflow create` CLI command):
53
- 1. **Branch name**: Enter your branch name (e.g. `feature/user-profiles`). Slashes are supported!
54
- 2. **Description**: Describe the feature you are building. The AI assistant will read this to compile the plan.
55
- 3. **Pick Repositories**: Choose which repositories you need to modify or reference.
56
- 4. **Assistant Selection**: Select which AI coding assistants you plan to use (Claude Code, Antigravity, Cursor, etc.).
57
- 5. **Click Build Workspace**: NexusFlow will fetch origin updates, create local branches, spin up git worktrees under `workspaces/feature/user-profiles`, run tech analyses, and write context configurations.
58
-
59
- ---
60
-
61
- ### 4. The Agentic Initialization (Universal Context)
62
- Once the workspace is built, open it in your preferred AI assistant.
63
-
64
- Whichever AI harness you use, **the agent's very first instructions** are to:
65
- 1. Scan the workspace projects.
66
- 2. Create a universal reference file: **`nexusflow-overview.md`**.
67
- 3. Write down its assumptions of what each project does, how they interact, and their responsibilities.
68
- 4. List any **Clarifying Questions** it needs you to answer before coding.
69
-
70
- **Your Action**: Review the generated `nexusflow-overview.md`, answer the assistant's questions directly in the chat or file, and confirm its assumptions. This ensures you and the agent are aligned before a single line of code is modified.
71
-
72
- ---
73
-
74
- ### 5. Orchestrate Local Services
75
- You don't need to open five terminal windows to start your backend, frontend, databases, or libraries.
76
-
77
- **On the Web Dashboard:**
78
- * Expand your active workspace to see all detected services (e.g. node scripts, dotnet servers, python hosts).
79
- * Click **Start All** to spin them up.
80
- * View aggregate console streams inside the tabbed retro-terminal output screen.
81
-
82
- **Via the CLI:**
83
- * Navigate to your workspace directory and run:
84
- ```bash
85
- nexusflow start
86
- ```
87
- * Check logs or stop services with:
88
- ```bash
89
- nexusflow logs
90
- nexusflow stop
91
- ```
92
-
93
- ---
94
-
95
- ## 🛠️ CLI Reference
96
-
97
- Here is a summary of the command-line interface:
98
-
99
- | Command | Usage | Description |
100
- | :--- | :--- | :--- |
101
- | **`nexusflow ui`** | `nexusflow ui [-p <port>]` | Starts the backend Hono API server and opens the GUI Dashboard. |
102
- | **`nexusflow create`** | `nexusflow create` | Launches the interactive step-by-step terminal wizard to build a workspace. |
103
- | **`nexusflow list`** | `nexusflow list` / `nexusflow ls` | Lists all active feature workspaces discovered on your machine. |
104
- | **`nexusflow open`** | `nexusflow open` | Prompts you to pick an active workspace and opens it in your editor. |
105
- | **`nexusflow start`** | `nexusflow start [path]` | Starts background processes for all projects in the workspace. |
106
- | **`nexusflow stop`** | `nexusflow stop [path]` | Kills all running processes for the workspace. |
107
- | **`nexusflow logs`** | `nexusflow logs [path] [-n <lines>]` | Tails output log files for all service processes in the workspace. |
108
- | **`nexusflow status`** | `nexusflow status [path]` | Displays running/stopped statuses and PIDs for each service. |
109
- | **`nexusflow init`** | `nexusflow init` | Creates or edits the global config file. |
110
- | **`nexusflow diff`** | `nexusflow diff` | Displays pending code changes across all active workspace repositories. |
111
- | **`nexusflow commit`** | `nexusflow commit` | Automates cross-repository git commit and branch pushes in the workspace. |
112
- | **`nexusflow sync`** | `nexusflow sync` | Syncs and rebases all workspace worktrees with default base branches. |
113
- | **`nexusflow refresh`**| `nexusflow refresh` | Regenerates architecture maps, task plans, and AI context files. |
114
- | **`nexusflow doctor`** | `nexusflow doctor` | Assesses and reports diagnostics of the current workspace setup. |
@@ -1,228 +0,0 @@
1
- import { execSync } from 'child_process';
2
- import fs from 'fs';
3
- import https from 'https';
4
- import path from 'path';
5
- import { fileURLToPath } from 'url';
6
-
7
- const __filename = fileURLToPath(import.meta.url);
8
- const __dirname = path.dirname(__filename);
9
-
10
- // Resolve parent project directory dynamically supporting both nested and sibling structures
11
- let parentDir = path.resolve(__dirname, '..');
12
- if (!fs.existsSync(path.join(parentDir, 'package.json')) ||
13
- JSON.parse(fs.readFileSync(path.join(parentDir, 'package.json'), 'utf8')).name !== '@mrpatronz/nexusflow') {
14
- parentDir = path.resolve(__dirname, '../NexusFlow');
15
- }
16
-
17
- const distInstallerDir = path.resolve(__dirname, 'dist-installer');
18
- const nodeStagingDir = path.resolve(distInstallerDir, 'node');
19
- const serverStagingDir = path.resolve(distInstallerDir, 'server');
20
- const outputDir = path.resolve(__dirname, 'dist-installer-output');
21
-
22
- const nodeExeUrl = 'https://nodejs.org/dist/v20.15.0/win-x64/node.exe';
23
- const nodeExePath = path.resolve(nodeStagingDir, 'node.exe');
24
-
25
- function copyDir(src, dest) {
26
- fs.mkdirSync(dest, { recursive: true });
27
- const entries = fs.readdirSync(src, { withFileTypes: true });
28
- for (const entry of entries) {
29
- const srcPath = path.join(src, entry.name);
30
- const destPath = path.join(dest, entry.name);
31
- if (entry.isDirectory()) {
32
- copyDir(srcPath, destPath);
33
- } else {
34
- fs.copyFileSync(srcPath, destPath);
35
- }
36
- }
37
- }
38
-
39
- function downloadFile(url, destPath) {
40
- return new Promise((resolve, reject) => {
41
- console.log(`Downloading ${url} to ${destPath}...`);
42
- const file = fs.createWriteStream(destPath);
43
- https.get(url, (response) => {
44
- if (response.statusCode !== 200) {
45
- reject(new Error(`Failed to download: Status ${response.statusCode}`));
46
- return;
47
- }
48
- response.pipe(file);
49
- file.on('finish', () => {
50
- file.close();
51
- console.log('Download complete.');
52
- resolve();
53
- });
54
- }).on('error', (err) => {
55
- fs.unlink(destPath, () => {});
56
- reject(err);
57
- });
58
- });
59
- }
60
-
61
- function sleepSync(ms) {
62
- const start = Date.now();
63
- while (Date.now() - start < ms) {}
64
- }
65
-
66
- function retryRmSync(dir, maxRetries = 5, delay = 150) {
67
- for (let i = 0; i < maxRetries; i++) {
68
- try {
69
- if (fs.existsSync(dir)) {
70
- fs.rmSync(dir, { recursive: true, force: true });
71
- }
72
- return;
73
- } catch (err) {
74
- if (i === maxRetries - 1) throw err;
75
- console.log(`Directory ${path.basename(dir)} locked by OS, retrying deletion (${i + 1}/${maxRetries}) in ${delay}ms...`);
76
- sleepSync(delay);
77
- }
78
- }
79
- }
80
-
81
- function pruneNodeModules(dir) {
82
- if (!fs.existsSync(dir)) return;
83
- const entries = fs.readdirSync(dir, { withFileTypes: true });
84
- for (const entry of entries) {
85
- const fullPath = path.join(dir, entry.name);
86
- if (entry.isDirectory()) {
87
- const nameLower = entry.name.toLowerCase();
88
- if (
89
- nameLower === 'test' ||
90
- nameLower === 'tests' ||
91
- nameLower === 'examples' ||
92
- nameLower === 'docs' ||
93
- nameLower === '.github'
94
- ) {
95
- fs.rmSync(fullPath, { recursive: true, force: true });
96
- } else {
97
- pruneNodeModules(fullPath);
98
- }
99
- } else {
100
- const ext = path.extname(entry.name).toLowerCase();
101
- if (ext === '.map' || ext === '.ts' || ext === '.md') {
102
- fs.unlinkSync(fullPath);
103
- }
104
- }
105
- }
106
- }
107
-
108
- async function build() {
109
- try {
110
- console.log('--- Starting NexusFlow Installer Build ---');
111
-
112
- // 1. Re-create clean staging directories with OS lock retry handling
113
- console.log('Cleaning and creating staging directories...');
114
- retryRmSync(distInstallerDir);
115
- fs.mkdirSync(distInstallerDir, { recursive: true });
116
- fs.mkdirSync(nodeStagingDir, { recursive: true });
117
- fs.mkdirSync(serverStagingDir, { recursive: true });
118
-
119
- try {
120
- retryRmSync(outputDir);
121
- fs.mkdirSync(outputDir, { recursive: true });
122
- } catch (err) {
123
- console.log('Output directory locked by shell, clearing files inside instead...');
124
- if (fs.existsSync(outputDir)) {
125
- const files = fs.readdirSync(outputDir);
126
- for (const file of files) {
127
- fs.rmSync(path.join(outputDir, file), { recursive: true, force: true });
128
- }
129
- } else {
130
- fs.mkdirSync(outputDir, { recursive: true });
131
- }
132
- }
133
-
134
- // 2. Copy Neutralino assets
135
- console.log('Copying Neutralino assets...');
136
- const winExeSrc = path.resolve(__dirname, 'dist/nexusflow-desktop/nexusflow-desktop-win_x64.exe');
137
- const resourcesNeuSrc = path.resolve(__dirname, 'dist/nexusflow-desktop/resources.neu');
138
-
139
- if (!fs.existsSync(winExeSrc) || !fs.existsSync(resourcesNeuSrc)) {
140
- throw new Error('Neutralino build outputs not found. Please run "npm run build" first in the desktop folder.');
141
- }
142
-
143
- fs.copyFileSync(winExeSrc, path.resolve(distInstallerDir, 'nexusflow-desktop-win_x64.exe'));
144
- fs.copyFileSync(resourcesNeuSrc, path.resolve(distInstallerDir, 'resources.neu'));
145
-
146
- // 3. Copy Hono backend server files
147
- console.log('Copying Hono server dist and package.json...');
148
- const serverDistSrc = path.resolve(parentDir, 'dist');
149
- const serverPackageJsonSrc = path.resolve(parentDir, 'package.json');
150
-
151
- if (!fs.existsSync(serverDistSrc) || !fs.existsSync(serverPackageJsonSrc)) {
152
- throw new Error('NexusFlow server build outputs not found. Please run "npm run build" first in NexusFlow.');
153
- }
154
-
155
- copyDir(serverDistSrc, path.resolve(serverStagingDir, 'dist'));
156
- fs.copyFileSync(serverPackageJsonSrc, path.resolve(serverStagingDir, 'package.json'));
157
-
158
- // Copy templates/resources
159
- const serverResourcesSrc = path.resolve(parentDir, 'resources');
160
- if (fs.existsSync(serverResourcesSrc)) {
161
- copyDir(serverResourcesSrc, path.resolve(serverStagingDir, 'resources'));
162
- }
163
-
164
- // 4. Install server dependencies and prune unused assets
165
- console.log('Installing production dependencies for staging server...');
166
- execSync('npm install --omit=dev', { cwd: serverStagingDir, stdio: 'inherit', shell: true });
167
-
168
- console.log('Pruning non-runtime files from node_modules (maps, tests, docs)...');
169
- pruneNodeModules(path.resolve(serverStagingDir, 'node_modules'));
170
-
171
- // 5. Download embedded Node.js executable
172
- await downloadFile(nodeExeUrl, nodeExePath);
173
-
174
- // 6. Locate and run Inno Setup compiler (ISCC.exe)
175
- console.log('Locating Inno Setup compiler...');
176
- const userIsccPath = path.join(
177
- process.env.USERPROFILE || 'C:\\Users\\default',
178
- 'AppData\\Local\\Programs\\Inno Setup 6\\ISCC.exe'
179
- );
180
- const globalIsccPath = 'C:\\Program Files (x86)\\Inno Setup 6\\ISCC.exe';
181
-
182
- let isccPath = '';
183
- if (fs.existsSync(userIsccPath)) {
184
- isccPath = userIsccPath;
185
- } else if (fs.existsSync(globalIsccPath)) {
186
- isccPath = globalIsccPath;
187
- } else {
188
- // Try resolving from PATH
189
- try {
190
- execSync('iscc /?', { stdio: 'ignore', shell: true });
191
- isccPath = 'iscc';
192
- } catch {
193
- throw new Error('Inno Setup compiler (ISCC.exe) not found. Please verify it is installed.');
194
- }
195
- }
196
-
197
- console.log(`Using Inno Setup compiler: ${isccPath}`);
198
- const issScriptPath = path.resolve(__dirname, 'installer/nexusflow.iss');
199
- console.log(`Compiling installer script: ${issScriptPath}...`);
200
- execSync(`"${isccPath}" "${issScriptPath}"`, { stdio: 'inherit', shell: true });
201
-
202
- // 7. Check if file got redirected to VirtualStore due to Windows virtualization and move it back
203
- const expectedOutputExe = path.resolve(outputDir, 'NexusFlowSetup.exe');
204
- if (!fs.existsSync(expectedOutputExe)) {
205
- console.log('Checking for Windows VirtualStore redirection...');
206
- const localAppData = process.env.LOCALAPPDATA || path.join(process.env.USERPROFILE || 'C:\\Users\\default', 'AppData\\Local');
207
- // VirtualStore mirrors the absolute path starting from the drive root
208
- const relativePathFromDrive = __dirname.replace(/^[a-zA-Z]:/, '');
209
- const virtualStorePath = path.join(localAppData, 'VirtualStore', relativePathFromDrive, 'dist-installer-output', 'NexusFlowSetup.exe');
210
-
211
- if (fs.existsSync(virtualStorePath)) {
212
- console.log(`Detected VirtualStore redirection! Moving installer from ${virtualStorePath} to ${expectedOutputExe}...`);
213
- fs.copyFileSync(virtualStorePath, expectedOutputExe);
214
- fs.unlinkSync(virtualStorePath);
215
- } else {
216
- throw new Error('Installer compiled successfully but the output file could not be found anywhere.');
217
- }
218
- }
219
-
220
- console.log('--- Installer Build Completed Successfully ---');
221
- console.log(`Installer location: ${expectedOutputExe}`);
222
- } catch (error) {
223
- console.error('Installer build failed:', error.message);
224
- process.exit(1);
225
- }
226
- }
227
-
228
- build();