@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.
- package/dist/commands/add-repo.d.ts.map +1 -1
- package/dist/commands/add-repo.js +24 -14
- package/dist/commands/add-repo.js.map +1 -1
- package/dist/commands/commit.js +1 -1
- package/dist/commands/commit.js.map +1 -1
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +9 -2
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/diff.js +1 -1
- package/dist/commands/diff.js.map +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/handoff.js +1 -1
- package/dist/commands/handoff.js.map +1 -1
- package/dist/commands/logs.js +1 -1
- package/dist/commands/logs.js.map +1 -1
- package/dist/commands/open.d.ts.map +1 -1
- package/dist/commands/open.js +21 -9
- package/dist/commands/open.js.map +1 -1
- package/dist/commands/pack.js +1 -1
- package/dist/commands/pack.js.map +1 -1
- package/dist/commands/refresh.js +13 -8
- package/dist/commands/refresh.js.map +1 -1
- package/dist/commands/remove.d.ts.map +1 -1
- package/dist/commands/remove.js +12 -7
- package/dist/commands/remove.js.map +1 -1
- package/dist/commands/start.js +1 -1
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/status.js +1 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/stop.js +1 -1
- package/dist/commands/stop.js.map +1 -1
- package/dist/commands/sync.js +13 -8
- package/dist/commands/sync.js.map +1 -1
- package/dist/core/workspace.d.ts +7 -0
- package/dist/core/workspace.d.ts.map +1 -1
- package/dist/core/workspace.js +45 -1
- package/dist/core/workspace.js.map +1 -1
- package/dist/generators/antigravity.d.ts +15 -0
- package/dist/generators/antigravity.d.ts.map +1 -0
- package/dist/generators/antigravity.js +27 -0
- package/dist/generators/antigravity.js.map +1 -0
- package/dist/generators/index.d.ts +1 -0
- package/dist/generators/index.d.ts.map +1 -1
- package/dist/generators/index.js +17 -1
- package/dist/generators/index.js.map +1 -1
- package/dist/generators/skills-generator.d.ts.map +1 -1
- package/dist/generators/skills-generator.js +6 -1
- package/dist/generators/skills-generator.js.map +1 -1
- package/dist/gui/assets/index-CFWwqFux.js +23 -0
- package/dist/gui/assets/index-Dvc9QMvl.css +2 -0
- package/dist/gui/index.html +2 -2
- package/dist/orchestration/runner.d.ts +5 -6
- package/dist/orchestration/runner.d.ts.map +1 -1
- package/dist/orchestration/runner.js +105 -102
- package/dist/orchestration/runner.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +57 -2
- package/dist/server.js.map +1 -1
- package/dist/utils/detect-ai.d.ts.map +1 -1
- package/dist/utils/detect-ai.js +4 -1
- package/dist/utils/detect-ai.js.map +1 -1
- package/dist/utils/detect-editors.d.ts.map +1 -1
- package/dist/utils/detect-editors.js +5 -2
- package/dist/utils/detect-editors.js.map +1 -1
- package/dist/utils/detect-editors.test.js +7 -6
- package/dist/utils/detect-editors.test.js.map +1 -1
- package/dist/utils/prompts.d.ts +1 -0
- package/dist/utils/prompts.d.ts.map +1 -1
- package/dist/utils/prompts.js +77 -15
- package/dist/utils/prompts.js.map +1 -1
- package/dist/utils/update-check.d.ts.map +1 -1
- package/dist/utils/update-check.js +16 -4
- package/dist/utils/update-check.js.map +1 -1
- package/extension/package.json +9 -0
- package/extension/src/extension.ts +37 -1
- package/gui/eslint.config.js +4 -0
- package/gui/src/App.tsx +375 -151
- package/gui/src/features/changes/ChangesViewer.tsx +246 -70
- package/gui/src/features/services/ServiceConsole.tsx +162 -71
- package/gui/src/features/workspace/WorkspaceList.tsx +184 -32
- package/gui/src/index.css +95 -2
- package/package.json +3 -2
- package/src/commands/add-repo.ts +30 -14
- package/src/commands/commit.ts +1 -1
- package/src/commands/create.ts +9 -2
- package/src/commands/diff.ts +1 -1
- package/src/commands/doctor.ts +1 -1
- package/src/commands/handoff.ts +1 -1
- package/src/commands/logs.ts +1 -1
- package/src/commands/open.ts +24 -9
- package/src/commands/pack.ts +1 -1
- package/src/commands/refresh.ts +16 -8
- package/src/commands/remove.ts +15 -7
- package/src/commands/start.ts +1 -1
- package/src/commands/status.ts +1 -1
- package/src/commands/stop.ts +1 -1
- package/src/commands/sync.ts +16 -8
- package/src/core/workspace.ts +48 -1
- package/src/generators/antigravity.ts +32 -0
- package/src/generators/index.ts +23 -1
- package/src/generators/skills-generator.ts +5 -1
- package/src/orchestration/runner.ts +112 -108
- package/src/server.ts +62 -2
- package/src/utils/detect-ai.ts +4 -1
- package/src/utils/detect-editors.test.ts +7 -6
- package/src/utils/detect-editors.ts +5 -2
- package/src/utils/prompts.ts +88 -14
- package/src/utils/update-check.ts +16 -4
- package/dist/gui/assets/index-Ca2VRMrQ.js +0 -22
- package/dist/gui/assets/index-fj0RJiOb.css +0 -2
package/extension/package.json
CHANGED
|
@@ -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 => {
|