@runfusion/fusion 0.23.0 → 0.25.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.
- package/dist/bin.js +27921 -21003
- package/dist/client/assets/AgentDetailView-BwJaLqZh.css +1 -0
- package/dist/client/assets/AgentDetailView-ZbHEbYRT.js +18 -0
- package/dist/client/assets/AgentsView-B3jYk8Kt.js +29 -0
- package/dist/client/assets/{AgentsView-DSGQWObq.css → AgentsView-CV3vm7Qk.css} +1 -1
- package/dist/client/assets/ChatView-DhPkiEGs.js +1 -0
- package/dist/client/assets/ChatView-DwJAd5G1.css +1 -0
- package/dist/client/assets/{DevServerView-C9lzHrcT.js → DevServerView-DyGDEiBP.js} +1 -1
- package/dist/client/assets/{DirectoryPicker-aVdFaV37.js → DirectoryPicker-D5UIeIl6.js} +1 -1
- package/dist/client/assets/{DocumentsView-DIpg3NSP.js → DocumentsView-DNHu1T8K.js} +1 -1
- package/dist/client/assets/{DocumentsView-BrhyOdeE.css → DocumentsView-gv4zG3aT.css} +1 -1
- package/dist/client/assets/EvalsView-CUNJ1TLc.css +1 -0
- package/dist/client/assets/EvalsView-CpRobtDi.js +1 -0
- package/dist/client/assets/{agentSkills-DDHJnrkn.css → ExperimentalAgentOnboardingModal-B-APN_lM.css} +1 -1
- package/dist/client/assets/ExperimentalAgentOnboardingModal-DOY_oZi7.js +499 -0
- package/dist/client/assets/InsightsView-B0J4mhzV.css +1 -0
- package/dist/client/assets/InsightsView-vp0RE8Mg.js +11 -0
- package/dist/client/assets/MemoryView-PSc5lGJt.js +2 -0
- package/dist/client/assets/MemoryView-zaXewZzi.css +1 -0
- package/dist/client/assets/NodesView-DMj6HGeC.js +14 -0
- package/dist/client/assets/NodesView-DT4pXowv.css +1 -0
- package/dist/client/assets/{PiExtensionsManager-Buopv-jb.js → PiExtensionsManager-DL_QcN56.js} +2 -2
- package/dist/client/assets/PluginManager-BtYKm8IT.js +1 -0
- package/dist/client/assets/PluginManager-DtRQXia5.css +1 -0
- package/dist/client/assets/{ResearchView-_BHXUv2j.js → ResearchView-BhWqfdV0.js} +1 -1
- package/dist/client/assets/SettingsModal-BAgB4_AR.js +31 -0
- package/dist/client/assets/SettingsModal-CUCyaAyE.js +1 -0
- package/dist/client/assets/SettingsModal-DzsLquBu.css +1 -0
- package/dist/client/assets/SetupWizardModal-BKscasuh.js +1 -0
- package/dist/client/assets/{SkillsView-hDpTBdFT.js → SkillsView-BdELqTy7.js} +1 -1
- package/dist/client/assets/TodoView-Cx9cVhq7.css +1 -0
- package/dist/client/assets/TodoView-DFNGBDNV.js +6 -0
- package/dist/client/assets/{folder-open-usZkXdq2.js → folder-open-k1xmUMyr.js} +1 -1
- package/dist/client/assets/index-Qq2JOOWx.css +1 -0
- package/dist/client/assets/index-TFYXEVpn.js +692 -0
- package/dist/client/assets/projectDetection-G3XuxD2X.js +1 -0
- package/dist/client/assets/{star-BAT_ObKE.js → star-ne32r3Y4.js} +1 -1
- package/dist/client/assets/{upload-BC2YKNEV.js → upload-MS-2Gx53.js} +1 -1
- package/dist/client/assets/{users-Dkd4rtrN.js → users-C519GSjH.js} +1 -1
- package/dist/client/index.html +12 -20
- package/dist/client/theme-data.css +106 -0
- package/dist/client/version.json +1 -1
- package/dist/droid-cli/package.json +1 -1
- package/dist/extension.js +15395 -9935
- package/dist/pi-claude-cli/package.json +1 -1
- package/dist/plugins/fusion-plugin-cursor-runtime/bundled.js +216 -0
- package/dist/plugins/fusion-plugin-cursor-runtime/manifest.json +6 -0
- package/dist/plugins/fusion-plugin-cursor-runtime/package.json +11 -0
- package/dist/plugins/fusion-plugin-dependency-graph/bundled.js +30 -0
- package/dist/plugins/fusion-plugin-dependency-graph/manifest.json +1 -1
- package/dist/plugins/fusion-plugin-dependency-graph/package.json +3 -26
- package/dist/plugins/fusion-plugin-droid-runtime/bundled.js +136684 -0
- package/dist/plugins/fusion-plugin-droid-runtime/manifest.json +13 -0
- package/dist/plugins/fusion-plugin-droid-runtime/mcp-schema-server.cjs +49 -0
- package/dist/plugins/fusion-plugin-droid-runtime/package.json +11 -0
- package/dist/plugins/fusion-plugin-hermes-runtime/bundled.js +68 -71
- package/dist/plugins/fusion-plugin-hermes-runtime/package.json +1 -1
- package/dist/plugins/fusion-plugin-openclaw-runtime/bundled.js +137 -53
- package/dist/plugins/fusion-plugin-openclaw-runtime/mcp-schema-server.cjs +59 -0
- package/dist/plugins/fusion-plugin-openclaw-runtime/package.json +1 -1
- package/dist/plugins/fusion-plugin-paperclip-runtime/bundled.js +155 -109
- package/dist/plugins/fusion-plugin-paperclip-runtime/package.json +1 -1
- package/dist/plugins/fusion-plugin-reports/manifest.json +33 -0
- package/dist/plugins/fusion-plugin-reports/package.json +26 -0
- package/dist/plugins/fusion-plugin-reports/src/__tests__/manifest.test.ts +51 -0
- package/dist/plugins/fusion-plugin-reports/src/__tests__/review-panel.test.ts +166 -0
- package/dist/plugins/fusion-plugin-reports/src/__tests__/settings.test.ts +157 -0
- package/dist/plugins/fusion-plugin-reports/src/index.ts +87 -0
- package/dist/plugins/fusion-plugin-reports/src/report-schema.ts +38 -0
- package/dist/plugins/fusion-plugin-reports/src/review-panel.ts +294 -0
- package/dist/plugins/fusion-plugin-reports/src/review-types.ts +75 -0
- package/dist/plugins/fusion-plugin-reports/src/settings.ts +105 -0
- package/dist/plugins/fusion-plugin-reports/src/store/__tests__/report-schema.test.ts +66 -0
- package/dist/plugins/fusion-plugin-reports/src/store/__tests__/report-store.test.ts +177 -0
- package/dist/plugins/fusion-plugin-reports/src/store/report-store.ts +341 -0
- package/dist/plugins/fusion-plugin-reports/src/store/report-types.ts +77 -0
- package/dist/plugins/fusion-plugin-roadmap/manifest.json +16 -0
- package/dist/plugins/fusion-plugin-roadmap/package.json +48 -0
- package/dist/plugins/fusion-plugin-roadmap/src/__tests__/api-client.test.ts +101 -0
- package/dist/plugins/fusion-plugin-roadmap/src/__tests__/index.test.ts +92 -0
- package/dist/plugins/fusion-plugin-roadmap/src/__tests__/roadmap-routes.test.ts +48 -0
- package/dist/plugins/fusion-plugin-roadmap/src/__tests__/roadmap-suggestions.test.ts +31 -0
- package/dist/plugins/fusion-plugin-roadmap/src/dashboard/RoadmapsView.css +1299 -0
- package/dist/plugins/fusion-plugin-roadmap/src/dashboard/RoadmapsView.tsx +2559 -0
- package/dist/plugins/fusion-plugin-roadmap/src/dashboard/__tests__/RoadmapsView.test.tsx +1144 -0
- package/dist/plugins/fusion-plugin-roadmap/src/dashboard/__tests__/useRoadmaps.test.ts +1756 -0
- package/dist/plugins/fusion-plugin-roadmap/src/dashboard/api.ts +70 -0
- package/dist/plugins/fusion-plugin-roadmap/src/dashboard/test-setup.ts +7 -0
- package/dist/plugins/fusion-plugin-roadmap/src/dashboard/types.ts +1 -0
- package/dist/plugins/fusion-plugin-roadmap/src/dashboard/useConfirm.ts +8 -0
- package/dist/plugins/fusion-plugin-roadmap/src/dashboard/useRoadmaps.ts +1188 -0
- package/dist/plugins/fusion-plugin-roadmap/src/dashboard/useViewportMode.ts +20 -0
- package/dist/plugins/fusion-plugin-roadmap/src/dashboard-view.tsx +6 -0
- package/dist/plugins/fusion-plugin-roadmap/src/index.ts +74 -0
- package/dist/plugins/fusion-plugin-roadmap/src/roadmap-routes.ts +1 -0
- package/dist/plugins/fusion-plugin-roadmap/src/roadmap-schema.ts +41 -0
- package/dist/plugins/fusion-plugin-roadmap/src/roadmap-suggestions.d.ts +15 -0
- package/dist/plugins/fusion-plugin-roadmap/src/roadmap-suggestions.ts +15 -0
- package/dist/plugins/fusion-plugin-roadmap/src/roadmap-types.d.ts +283 -0
- package/dist/plugins/fusion-plugin-roadmap/src/roadmap-types.d.ts.map +1 -0
- package/dist/plugins/fusion-plugin-roadmap/src/roadmap-types.js +21 -0
- package/dist/plugins/fusion-plugin-roadmap/src/roadmap-types.js.map +1 -0
- package/dist/plugins/fusion-plugin-roadmap/src/roadmap-types.ts +310 -0
- package/dist/plugins/fusion-plugin-roadmap/src/routes/roadmap-routes.d.ts +5 -0
- package/dist/plugins/fusion-plugin-roadmap/src/routes/roadmap-routes.d.ts.map +1 -0
- package/dist/plugins/fusion-plugin-roadmap/src/routes/roadmap-routes.js +361 -0
- package/dist/plugins/fusion-plugin-roadmap/src/routes/roadmap-routes.js.map +1 -0
- package/dist/plugins/fusion-plugin-roadmap/src/routes/roadmap-routes.ts +408 -0
- package/dist/plugins/fusion-plugin-roadmap/src/routes/roadmap-suggestions.d.ts +68 -0
- package/dist/plugins/fusion-plugin-roadmap/src/routes/roadmap-suggestions.d.ts.map +1 -0
- package/dist/plugins/fusion-plugin-roadmap/src/routes/roadmap-suggestions.js +300 -0
- package/dist/plugins/fusion-plugin-roadmap/src/routes/roadmap-suggestions.js.map +1 -0
- package/dist/plugins/fusion-plugin-roadmap/src/routes/roadmap-suggestions.ts +381 -0
- package/dist/plugins/fusion-plugin-roadmap/src/server/index.d.ts +3 -0
- package/dist/plugins/fusion-plugin-roadmap/src/server/index.ts +1 -0
- package/dist/plugins/fusion-plugin-roadmap/src/store/__tests__/roadmap-handoff.test.ts +445 -0
- package/dist/plugins/fusion-plugin-roadmap/src/store/__tests__/roadmap-ordering.test.ts +334 -0
- package/dist/plugins/fusion-plugin-roadmap/src/store/__tests__/roadmap-store.test.ts +1318 -0
- package/dist/plugins/fusion-plugin-roadmap/src/store/roadmap-handoff.ts +163 -0
- package/dist/plugins/fusion-plugin-roadmap/src/store/roadmap-ordering.d.ts +37 -0
- package/dist/plugins/fusion-plugin-roadmap/src/store/roadmap-ordering.d.ts.map +1 -0
- package/dist/plugins/fusion-plugin-roadmap/src/store/roadmap-ordering.js +188 -0
- package/dist/plugins/fusion-plugin-roadmap/src/store/roadmap-ordering.js.map +1 -0
- package/dist/plugins/fusion-plugin-roadmap/src/store/roadmap-ordering.ts +311 -0
- package/dist/plugins/fusion-plugin-roadmap/src/store/roadmap-store.d.ts +299 -0
- package/dist/plugins/fusion-plugin-roadmap/src/store/roadmap-store.d.ts.map +1 -0
- package/dist/plugins/fusion-plugin-roadmap/src/store/roadmap-store.js +765 -0
- package/dist/plugins/fusion-plugin-roadmap/src/store/roadmap-store.js.map +1 -0
- package/dist/plugins/fusion-plugin-roadmap/src/store/roadmap-store.ts +1001 -0
- package/dist/plugins/fusion-plugin-whatsapp-chat/manifest.json +8 -0
- package/dist/plugins/fusion-plugin-whatsapp-chat/package.json +34 -0
- package/dist/plugins/fusion-plugin-whatsapp-chat/src/__tests__/auth-state.test.ts +99 -0
- package/dist/plugins/fusion-plugin-whatsapp-chat/src/__tests__/connection.test.ts +145 -0
- package/dist/plugins/fusion-plugin-whatsapp-chat/src/__tests__/index.test.ts +216 -0
- package/dist/plugins/fusion-plugin-whatsapp-chat/src/__tests__/reply.test.ts +52 -0
- package/dist/plugins/fusion-plugin-whatsapp-chat/src/auth-state.ts +89 -0
- package/dist/plugins/fusion-plugin-whatsapp-chat/src/connection.ts +253 -0
- package/dist/plugins/fusion-plugin-whatsapp-chat/src/index.ts +262 -0
- package/dist/plugins/fusion-plugin-whatsapp-chat/src/qrcode.d.ts +1 -0
- package/dist/plugins/fusion-plugin-whatsapp-chat/src/reply.ts +37 -0
- package/package.json +2 -2
- package/skill/fusion/SKILL.md +2 -2
- package/skill/fusion/references/engine-tools.md +3 -0
- package/skill/fusion/references/extension-tools.md +39 -0
- package/skill/fusion/references/fusion-capabilities.md +3 -0
- package/dist/client/assets/AgentDetailView-C1XceMgi.js +0 -18
- package/dist/client/assets/AgentDetailView-CeO_1MK7.css +0 -1
- package/dist/client/assets/AgentsView-Deh125ss.js +0 -527
- package/dist/client/assets/ChatView-7D_RQDqT.js +0 -1
- package/dist/client/assets/InsightsView-AWo5o_81.css +0 -1
- package/dist/client/assets/InsightsView-jKjEFAx_.js +0 -11
- package/dist/client/assets/MemoryView-DiajLXby.css +0 -1
- package/dist/client/assets/MemoryView-nXlTqebk.js +0 -2
- package/dist/client/assets/NodesView-Di2SvOhg.js +0 -14
- package/dist/client/assets/NodesView-fXqDk9ur.css +0 -1
- package/dist/client/assets/PluginManager-B9-NbQ8f.js +0 -1
- package/dist/client/assets/PluginManager-C1DbPaar.css +0 -1
- package/dist/client/assets/RoadmapsView-DHWjUoc8.js +0 -6
- package/dist/client/assets/RoadmapsView-DdGlfuu-.css +0 -1
- package/dist/client/assets/SettingsModal-C89Ikhfm.js +0 -1
- package/dist/client/assets/SettingsModal-DHitIpsa.css +0 -1
- package/dist/client/assets/SettingsModal-DR_yirvK.js +0 -31
- package/dist/client/assets/SetupWizardModal-BtDMY9pa.js +0 -1
- package/dist/client/assets/agentSkills-B-w5wFHh.js +0 -1
- package/dist/client/assets/index-Bc6ZdGMz.css +0 -1
- package/dist/client/assets/index-D__RMku8.js +0 -694
- package/dist/plugins/fusion-plugin-dependency-graph/src/DependencyGraphView.css +0 -141
- package/dist/plugins/fusion-plugin-dependency-graph/src/DependencyGraphView.tsx +0 -428
- package/dist/plugins/fusion-plugin-dependency-graph/src/__tests__/DependencyGraphView.test.tsx +0 -261
- package/dist/plugins/fusion-plugin-dependency-graph/src/__tests__/storage.test.ts +0 -41
- package/dist/plugins/fusion-plugin-dependency-graph/src/index.ts +0 -25
- package/dist/plugins/fusion-plugin-dependency-graph/src/storage.ts +0 -22
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion/pi-claude-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "Fusion vendored fork: pi coding-agent extension that routes LLM calls through the Claude Code CLI. Forked from rchern/pi-claude-cli (MIT). See UPSTREAM.md.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": true,
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
// ../plugin-sdk/src/index.ts
|
|
2
|
+
function definePlugin(plugin2) {
|
|
3
|
+
return plugin2;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
// ../../plugins/fusion-plugin-cursor-runtime/src/cli-spawn.ts
|
|
7
|
+
import { spawn } from "node:child_process";
|
|
8
|
+
async function runCursorCommand(binary, args, timeoutMs) {
|
|
9
|
+
return new Promise((resolve) => {
|
|
10
|
+
const child = spawn(binary, args, { stdio: ["ignore", "pipe", "pipe"] });
|
|
11
|
+
let stdout = "";
|
|
12
|
+
let stderr = "";
|
|
13
|
+
const timer = setTimeout(() => {
|
|
14
|
+
try {
|
|
15
|
+
child.kill("SIGKILL");
|
|
16
|
+
} catch {
|
|
17
|
+
}
|
|
18
|
+
resolve({ code: 124, stdout, stderr });
|
|
19
|
+
}, timeoutMs);
|
|
20
|
+
child.stdout?.on("data", (c) => {
|
|
21
|
+
stdout += c.toString("utf-8");
|
|
22
|
+
});
|
|
23
|
+
child.stderr?.on("data", (c) => {
|
|
24
|
+
stderr += c.toString("utf-8");
|
|
25
|
+
});
|
|
26
|
+
child.once("error", () => {
|
|
27
|
+
clearTimeout(timer);
|
|
28
|
+
resolve({ code: 127, stdout, stderr });
|
|
29
|
+
});
|
|
30
|
+
child.once("close", (code) => {
|
|
31
|
+
clearTimeout(timer);
|
|
32
|
+
resolve({ code, stdout, stderr });
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// ../../plugins/fusion-plugin-cursor-runtime/src/probe.ts
|
|
38
|
+
var CANDIDATES = ["cursor-agent", "cursor"];
|
|
39
|
+
async function probeCursorBinary(options) {
|
|
40
|
+
const startedAt = Date.now();
|
|
41
|
+
const timeoutMs = options?.timeoutMs ?? 3e3;
|
|
42
|
+
const candidates = options?.binaryPath ? [options.binaryPath] : [...CANDIDATES];
|
|
43
|
+
for (const binary of candidates) {
|
|
44
|
+
const version = await runCursorCommand(binary, ["--version"], timeoutMs);
|
|
45
|
+
if (version.code === 0) {
|
|
46
|
+
return {
|
|
47
|
+
available: true,
|
|
48
|
+
authenticated: true,
|
|
49
|
+
binaryName: binary,
|
|
50
|
+
binaryPath: binary,
|
|
51
|
+
version: version.stdout.trim() || void 0,
|
|
52
|
+
probeDurationMs: Date.now() - startedAt
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
const combined = `${version.stdout}
|
|
56
|
+
${version.stderr}`.toLowerCase();
|
|
57
|
+
if (combined.includes("keychain is locked")) {
|
|
58
|
+
return {
|
|
59
|
+
available: true,
|
|
60
|
+
authenticated: false,
|
|
61
|
+
binaryName: binary,
|
|
62
|
+
binaryPath: binary,
|
|
63
|
+
reason: "macOS login keychain is locked",
|
|
64
|
+
probeDurationMs: Date.now() - startedAt
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
if (combined.includes("no cursor ide installation found")) {
|
|
68
|
+
return {
|
|
69
|
+
available: true,
|
|
70
|
+
authenticated: false,
|
|
71
|
+
binaryName: binary,
|
|
72
|
+
binaryPath: binary,
|
|
73
|
+
reason: "Cursor IDE installation not found",
|
|
74
|
+
probeDurationMs: Date.now() - startedAt
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
available: false,
|
|
80
|
+
authenticated: false,
|
|
81
|
+
reason: "cursor-agent/cursor not found on PATH",
|
|
82
|
+
probeDurationMs: Date.now() - startedAt
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// ../../plugins/fusion-plugin-cursor-runtime/src/process-manager.ts
|
|
87
|
+
function parseModelLines(raw) {
|
|
88
|
+
return raw.split(/\r?\n/).map((line) => line.trim()).filter(Boolean).filter((line) => !line.toLowerCase().startsWith("usage"));
|
|
89
|
+
}
|
|
90
|
+
async function discoverCursorModels(binary, timeoutMs = 5e3) {
|
|
91
|
+
const attempts = [
|
|
92
|
+
{ args: ["models", "--json"], source: "models-json", structured: true },
|
|
93
|
+
{ args: ["model", "list", "--json"], source: "model-list-json", structured: true },
|
|
94
|
+
{ args: ["models"], source: "models-text", structured: false }
|
|
95
|
+
];
|
|
96
|
+
for (const attempt of attempts) {
|
|
97
|
+
const res = await runCursorCommand(binary, attempt.args, timeoutMs);
|
|
98
|
+
if (res.code !== 0) continue;
|
|
99
|
+
const output = (res.stdout || "").trim();
|
|
100
|
+
if (!output) continue;
|
|
101
|
+
try {
|
|
102
|
+
const parsed = JSON.parse(output);
|
|
103
|
+
if (Array.isArray(parsed)) {
|
|
104
|
+
const ids2 = parsed.map((entry) => typeof entry === "string" ? entry : typeof entry?.id === "string" ? entry.id : void 0).filter((id) => Boolean(id));
|
|
105
|
+
if (ids2.length > 0) {
|
|
106
|
+
return { models: Array.from(new Set(ids2)), source: attempt.source, fallbackUsed: !attempt.structured };
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
} catch {
|
|
110
|
+
}
|
|
111
|
+
const ids = Array.from(new Set(parseModelLines(output)));
|
|
112
|
+
if (ids.length > 0) {
|
|
113
|
+
return { models: ids, source: attempt.source, fallbackUsed: !attempt.structured };
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return { models: [], source: "none", fallbackUsed: true, reason: "model discovery command unavailable" };
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// ../../plugins/fusion-plugin-cursor-runtime/src/provider.ts
|
|
120
|
+
async function discoverCursorProviderModels() {
|
|
121
|
+
const probe = await probeCursorBinary();
|
|
122
|
+
if (!probe.available || !probe.binaryName) {
|
|
123
|
+
return { models: [], source: "probe", fallbackUsed: true, reason: probe.reason ?? "binary unavailable" };
|
|
124
|
+
}
|
|
125
|
+
const result = await discoverCursorModels(probe.binaryName);
|
|
126
|
+
return {
|
|
127
|
+
models: result.models.map((id) => ({ id, label: id })),
|
|
128
|
+
source: result.source,
|
|
129
|
+
fallbackUsed: result.fallbackUsed,
|
|
130
|
+
reason: result.reason
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// ../../plugins/fusion-plugin-cursor-runtime/src/runtime-adapter.ts
|
|
135
|
+
var CursorRuntimeAdapter = class {
|
|
136
|
+
id = "cursor";
|
|
137
|
+
name = "Cursor Runtime";
|
|
138
|
+
async createSession(options) {
|
|
139
|
+
return {
|
|
140
|
+
session: {
|
|
141
|
+
model: options.defaultModelId ?? "cursor/default",
|
|
142
|
+
systemPrompt: options.systemPrompt,
|
|
143
|
+
messages: []
|
|
144
|
+
},
|
|
145
|
+
sessionFile: void 0
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
async promptWithFallback() {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
describeModel(session) {
|
|
152
|
+
return `cursor/${session.model ?? "default"}`;
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
// ../../plugins/fusion-plugin-cursor-runtime/src/index.ts
|
|
157
|
+
var plugin = definePlugin({
|
|
158
|
+
manifest: {
|
|
159
|
+
id: "fusion-plugin-cursor-runtime",
|
|
160
|
+
name: "Cursor Runtime Plugin",
|
|
161
|
+
version: "0.1.0",
|
|
162
|
+
description: "Cursor CLI runtime support for Fusion",
|
|
163
|
+
runtime: {
|
|
164
|
+
runtimeId: "cursor",
|
|
165
|
+
name: "Cursor Runtime",
|
|
166
|
+
version: "0.1.0"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
state: "installed",
|
|
170
|
+
hooks: {},
|
|
171
|
+
runtime: {
|
|
172
|
+
metadata: {
|
|
173
|
+
runtimeId: "cursor",
|
|
174
|
+
name: "Cursor Runtime",
|
|
175
|
+
version: "0.1.0"
|
|
176
|
+
},
|
|
177
|
+
factory: async () => new CursorRuntimeAdapter()
|
|
178
|
+
},
|
|
179
|
+
cliProviders: [
|
|
180
|
+
{
|
|
181
|
+
providerId: "cursor-cli",
|
|
182
|
+
displayName: "Cursor CLI",
|
|
183
|
+
binaryName: "cursor-agent",
|
|
184
|
+
providerType: "cli",
|
|
185
|
+
statusRoute: "/providers/cursor-cli/status",
|
|
186
|
+
authRoute: "/auth/cursor-cli",
|
|
187
|
+
actions: [
|
|
188
|
+
{ actionId: "enable", label: "Enable", actionType: "enable", method: "POST", route: "/auth/cursor-cli" },
|
|
189
|
+
{ actionId: "disable", label: "Disable", actionType: "disable", method: "POST", route: "/auth/cursor-cli" },
|
|
190
|
+
{ actionId: "test", label: "Test", actionType: "test", method: "GET", route: "/providers/cursor-cli/status" }
|
|
191
|
+
],
|
|
192
|
+
probe: async () => {
|
|
193
|
+
const status = await probeCursorBinary();
|
|
194
|
+
return {
|
|
195
|
+
available: status.available,
|
|
196
|
+
authenticated: status.authenticated,
|
|
197
|
+
binaryPath: status.binaryPath,
|
|
198
|
+
binaryName: status.binaryName,
|
|
199
|
+
version: status.version,
|
|
200
|
+
reason: status.reason
|
|
201
|
+
};
|
|
202
|
+
},
|
|
203
|
+
discoverModels: discoverCursorProviderModels,
|
|
204
|
+
runtime: {
|
|
205
|
+
runtimeId: "cursor",
|
|
206
|
+
createAdapter: async () => new CursorRuntimeAdapter()
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
]
|
|
210
|
+
});
|
|
211
|
+
var index_default = plugin;
|
|
212
|
+
export {
|
|
213
|
+
index_default as default,
|
|
214
|
+
discoverCursorProviderModels,
|
|
215
|
+
probeCursorBinary
|
|
216
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// ../plugin-sdk/src/index.ts
|
|
2
|
+
function definePlugin(plugin2) {
|
|
3
|
+
return plugin2;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
// ../../plugins/fusion-plugin-dependency-graph/src/index.ts
|
|
7
|
+
var plugin = definePlugin({
|
|
8
|
+
manifest: {
|
|
9
|
+
id: "fusion-plugin-dependency-graph",
|
|
10
|
+
name: "Dependency Graph",
|
|
11
|
+
version: "0.1.0",
|
|
12
|
+
description: "Top-level dependency graph dashboard view"
|
|
13
|
+
},
|
|
14
|
+
state: "installed",
|
|
15
|
+
hooks: {},
|
|
16
|
+
dashboardViews: [
|
|
17
|
+
{
|
|
18
|
+
viewId: "graph",
|
|
19
|
+
label: "Graph",
|
|
20
|
+
componentPath: "./dashboard-view",
|
|
21
|
+
icon: "Network",
|
|
22
|
+
placement: "more",
|
|
23
|
+
order: 40
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
});
|
|
27
|
+
var index_default = plugin;
|
|
28
|
+
export {
|
|
29
|
+
index_default as default
|
|
30
|
+
};
|
|
@@ -1,34 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion-plugin-examples/dependency-graph",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Dependency graph dashboard view plugin for Fusion",
|
|
6
|
-
"private": true,
|
|
7
5
|
"exports": {
|
|
8
6
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"import": "./src/index.ts"
|
|
11
|
-
},
|
|
12
|
-
"./dashboard-view": {
|
|
13
|
-
"types": "./src/DependencyGraphView.tsx",
|
|
14
|
-
"import": "./src/DependencyGraphView.tsx"
|
|
7
|
+
"import": "./bundled.js"
|
|
15
8
|
}
|
|
16
9
|
},
|
|
17
|
-
"
|
|
18
|
-
"build": "tsc",
|
|
19
|
-
"test": "vitest run --silent=passed-only --reporter=dot"
|
|
20
|
-
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"@fusion/core": "workspace:*",
|
|
23
|
-
"@fusion/plugin-sdk": "workspace:*"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@testing-library/react": "^16.3.2",
|
|
27
|
-
"@types/node": "^25.5.2",
|
|
28
|
-
"@types/react": "^19.0.0",
|
|
29
|
-
"react": "^19.0.0",
|
|
30
|
-
"react-dom": "^19.2.4",
|
|
31
|
-
"typescript": "^5.7.0",
|
|
32
|
-
"vitest": "^3.2.4"
|
|
33
|
-
}
|
|
10
|
+
"private": true
|
|
34
11
|
}
|