@mrpatronz/nexusflow 0.2.11 → 0.2.13

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 (111) hide show
  1. package/dist/commands/add-repo.d.ts.map +1 -1
  2. package/dist/commands/add-repo.js +24 -14
  3. package/dist/commands/add-repo.js.map +1 -1
  4. package/dist/commands/commit.js +1 -1
  5. package/dist/commands/commit.js.map +1 -1
  6. package/dist/commands/create.d.ts.map +1 -1
  7. package/dist/commands/create.js +9 -2
  8. package/dist/commands/create.js.map +1 -1
  9. package/dist/commands/diff.js +1 -1
  10. package/dist/commands/diff.js.map +1 -1
  11. package/dist/commands/doctor.js +1 -1
  12. package/dist/commands/doctor.js.map +1 -1
  13. package/dist/commands/handoff.js +1 -1
  14. package/dist/commands/handoff.js.map +1 -1
  15. package/dist/commands/logs.js +1 -1
  16. package/dist/commands/logs.js.map +1 -1
  17. package/dist/commands/open.d.ts.map +1 -1
  18. package/dist/commands/open.js +21 -9
  19. package/dist/commands/open.js.map +1 -1
  20. package/dist/commands/pack.js +1 -1
  21. package/dist/commands/pack.js.map +1 -1
  22. package/dist/commands/refresh.js +13 -8
  23. package/dist/commands/refresh.js.map +1 -1
  24. package/dist/commands/remove.d.ts.map +1 -1
  25. package/dist/commands/remove.js +12 -7
  26. package/dist/commands/remove.js.map +1 -1
  27. package/dist/commands/start.js +1 -1
  28. package/dist/commands/start.js.map +1 -1
  29. package/dist/commands/status.js +1 -1
  30. package/dist/commands/status.js.map +1 -1
  31. package/dist/commands/stop.js +1 -1
  32. package/dist/commands/stop.js.map +1 -1
  33. package/dist/commands/sync.js +13 -8
  34. package/dist/commands/sync.js.map +1 -1
  35. package/dist/core/workspace.d.ts +7 -0
  36. package/dist/core/workspace.d.ts.map +1 -1
  37. package/dist/core/workspace.js +45 -1
  38. package/dist/core/workspace.js.map +1 -1
  39. package/dist/generators/antigravity.d.ts +15 -0
  40. package/dist/generators/antigravity.d.ts.map +1 -0
  41. package/dist/generators/antigravity.js +27 -0
  42. package/dist/generators/antigravity.js.map +1 -0
  43. package/dist/generators/index.d.ts +1 -0
  44. package/dist/generators/index.d.ts.map +1 -1
  45. package/dist/generators/index.js +17 -1
  46. package/dist/generators/index.js.map +1 -1
  47. package/dist/generators/skills-generator.d.ts.map +1 -1
  48. package/dist/generators/skills-generator.js +6 -1
  49. package/dist/generators/skills-generator.js.map +1 -1
  50. package/dist/gui/assets/index-CFWwqFux.js +23 -0
  51. package/dist/gui/assets/index-Dvc9QMvl.css +2 -0
  52. package/dist/gui/index.html +2 -2
  53. package/dist/orchestration/runner.d.ts +5 -6
  54. package/dist/orchestration/runner.d.ts.map +1 -1
  55. package/dist/orchestration/runner.js +105 -102
  56. package/dist/orchestration/runner.js.map +1 -1
  57. package/dist/server.d.ts.map +1 -1
  58. package/dist/server.js +57 -2
  59. package/dist/server.js.map +1 -1
  60. package/dist/utils/detect-ai.d.ts.map +1 -1
  61. package/dist/utils/detect-ai.js +4 -1
  62. package/dist/utils/detect-ai.js.map +1 -1
  63. package/dist/utils/detect-editors.d.ts.map +1 -1
  64. package/dist/utils/detect-editors.js +5 -2
  65. package/dist/utils/detect-editors.js.map +1 -1
  66. package/dist/utils/detect-editors.test.js +7 -6
  67. package/dist/utils/detect-editors.test.js.map +1 -1
  68. package/dist/utils/prompts.d.ts +1 -0
  69. package/dist/utils/prompts.d.ts.map +1 -1
  70. package/dist/utils/prompts.js +77 -15
  71. package/dist/utils/prompts.js.map +1 -1
  72. package/dist/utils/update-check.d.ts.map +1 -1
  73. package/dist/utils/update-check.js +16 -4
  74. package/dist/utils/update-check.js.map +1 -1
  75. package/extension/package.json +9 -0
  76. package/extension/src/extension.ts +37 -1
  77. package/gui/eslint.config.js +4 -0
  78. package/gui/src/App.tsx +375 -151
  79. package/gui/src/features/changes/ChangesViewer.tsx +246 -70
  80. package/gui/src/features/services/ServiceConsole.tsx +162 -71
  81. package/gui/src/features/workspace/WorkspaceList.tsx +184 -32
  82. package/gui/src/index.css +95 -2
  83. package/package.json +3 -2
  84. package/src/commands/add-repo.ts +30 -14
  85. package/src/commands/commit.ts +1 -1
  86. package/src/commands/create.ts +9 -2
  87. package/src/commands/diff.ts +1 -1
  88. package/src/commands/doctor.ts +1 -1
  89. package/src/commands/handoff.ts +1 -1
  90. package/src/commands/logs.ts +1 -1
  91. package/src/commands/open.ts +24 -9
  92. package/src/commands/pack.ts +1 -1
  93. package/src/commands/refresh.ts +16 -8
  94. package/src/commands/remove.ts +15 -7
  95. package/src/commands/start.ts +1 -1
  96. package/src/commands/status.ts +1 -1
  97. package/src/commands/stop.ts +1 -1
  98. package/src/commands/sync.ts +16 -8
  99. package/src/core/workspace.ts +48 -1
  100. package/src/generators/antigravity.ts +32 -0
  101. package/src/generators/index.ts +23 -1
  102. package/src/generators/skills-generator.ts +5 -1
  103. package/src/orchestration/runner.ts +112 -108
  104. package/src/server.ts +62 -2
  105. package/src/utils/detect-ai.ts +4 -1
  106. package/src/utils/detect-editors.test.ts +7 -6
  107. package/src/utils/detect-editors.ts +5 -2
  108. package/src/utils/prompts.ts +88 -14
  109. package/src/utils/update-check.ts +16 -4
  110. package/dist/gui/assets/index-Ca2VRMrQ.js +0 -22
  111. package/dist/gui/assets/index-fj0RJiOb.css +0 -2
@@ -11,7 +11,16 @@
11
11
  "Other"
12
12
  ],
13
13
  "main": "./dist/extension.js",
14
+ "activationEvents": [
15
+ "workspaceContains:nexusflow.json"
16
+ ],
14
17
  "contributes": {
18
+ "mcpServerDefinitionProviders": [
19
+ {
20
+ "id": "nexusflow-mcp",
21
+ "label": "NexusFlow MCP Server"
22
+ }
23
+ ],
15
24
  "viewsContainers": {
16
25
  "activitybar": [
17
26
  {
@@ -65,6 +65,34 @@ export function activate(context: vscode.ExtensionContext) {
65
65
  )
66
66
  );
67
67
 
68
+ // Register MCP Server Definition Provider if supported by the VS Code version
69
+ if (typeof (vscode as any).lm?.registerMcpServerDefinitionProvider === 'function') {
70
+ const mcpProvider = {
71
+ provideMcpServerDefinitions: async () => {
72
+ const serverScript = path.join(context.extensionPath, '..', 'dist', 'index.js');
73
+ const workspaceFolders = vscode.workspace.workspaceFolders;
74
+ const args = [serverScript, 'mcp', 'run'];
75
+ if (workspaceFolders && workspaceFolders.length > 0) {
76
+ args.push(workspaceFolders[0].uri.fsPath);
77
+ }
78
+
79
+ return [
80
+ new (vscode as any).McpStdioServerDefinition({
81
+ label: 'NexusFlow MCP Server',
82
+ command: 'node',
83
+ args: args
84
+ })
85
+ ];
86
+ }
87
+ };
88
+ context.subscriptions.push(
89
+ (vscode as any).lm.registerMcpServerDefinitionProvider('nexusflow-mcp', mcpProvider)
90
+ );
91
+ console.log('NexusFlow MCP Server Definition Provider registered successfully.');
92
+ } else {
93
+ console.log('registerMcpServerDefinitionProvider is not supported on this VS Code version.');
94
+ }
95
+
68
96
  // Register Focus Dashboard Command
69
97
  context.subscriptions.push(
70
98
  vscode.commands.registerCommand('nexusflow.openDashboard', () => {
@@ -131,6 +159,14 @@ class NexusFlowSidebarProvider implements vscode.WebviewViewProvider {
131
159
  }
132
160
 
133
161
  private _getHtmlForWebview(webview: vscode.Webview) {
162
+ let workspaceParam = '';
163
+ const workspaceFolders = vscode.workspace.workspaceFolders;
164
+ if (workspaceFolders && workspaceFolders.length > 0) {
165
+ const workspacePath = workspaceFolders[0].uri.fsPath;
166
+ const workspaceId = path.basename(workspacePath);
167
+ workspaceParam = `&workspaceId=${encodeURIComponent(workspaceId)}`;
168
+ }
169
+
134
170
  return `<!DOCTYPE html>
135
171
  <html lang="en">
136
172
  <head>
@@ -154,7 +190,7 @@ class NexusFlowSidebarProvider implements vscode.WebviewViewProvider {
154
190
  </style>
155
191
  </head>
156
192
  <body>
157
- <iframe src="http://localhost:3000?env=vscode"></iframe>
193
+ <iframe src="http://localhost:3000?env=vscode${workspaceParam}"></iframe>
158
194
  <script>
159
195
  const vscode = acquireVsCodeApi();
160
196
  window.addEventListener('message', event => {
@@ -18,5 +18,9 @@ export default defineConfig([
18
18
  languageOptions: {
19
19
  globals: globals.browser,
20
20
  },
21
+ rules: {
22
+ '@typescript-eslint/no-explicit-any': 'off',
23
+ 'react-hooks/set-state-in-effect': 'off',
24
+ },
21
25
  },
22
26
  ])