@runfusion/fusion 0.38.1 → 0.40.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.
- package/bin.mjs +20 -0
- package/dist/automation-store-EKXXEE2S.js +10 -0
- package/dist/automation-store-PLNG3X72.js +10 -0
- package/dist/automation-store-RDDYZFUJ.js +10 -0
- package/dist/bin.js +72539 -40364
- package/dist/chunk-2JI3F6MG.js +948 -0
- package/dist/chunk-4L6CLWJC.js +8345 -0
- package/dist/chunk-4VNS5WPM.js +42 -0
- package/dist/chunk-5RGECGQL.js +1139 -0
- package/dist/chunk-6JDLN7IL.js +409 -0
- package/dist/chunk-AICJATVW.js +948 -0
- package/dist/chunk-AWKNRUOR.js +1148 -0
- package/dist/chunk-BHM3UYWS.js +4651 -0
- package/dist/chunk-BMUXDSBF.js +4647 -0
- package/dist/chunk-GETECT6V.js +353 -0
- package/dist/chunk-GUV4QQT3.js +1143 -0
- package/dist/chunk-JKQO7YYZ.js +8369 -0
- package/dist/chunk-LYZVU6UV.js +409 -0
- package/dist/chunk-MAN4WYHO.js +353 -0
- package/dist/chunk-MCUG2Z7M.js +4651 -0
- package/dist/chunk-PSDYB45U.js +948 -0
- package/dist/chunk-RR2HM46R.js +8345 -0
- package/dist/chunk-RXMQ5OMY.js +9226 -0
- package/dist/chunk-S2EVJUY3.js +353 -0
- package/dist/chunk-UXR5XZFZ.js +409 -0
- package/dist/client/.vite/manifest.json +457 -155
- package/dist/client/assets/AgentDetailView-BrETpTDj.js +18 -0
- package/dist/client/assets/AgentPermissionPolicyEditor-BP6d1LFG.js +6 -0
- package/dist/client/assets/AgentsView-COx3draV.js +29 -0
- package/dist/client/assets/{AgentsView-BI_CESkd.css → AgentsView-DfznJDek.css} +1 -1
- package/dist/client/assets/ChatView-CrVSqQK_.js +6 -0
- package/dist/client/assets/DevServerView-DXQ1LX4H.js +1 -0
- package/dist/client/assets/DirectoryPicker-B_8ICSPl.js +1 -0
- package/dist/client/assets/{DirectoryPicker-DzKVmxOf.css → DirectoryPicker-DTKtd8L2.css} +1 -1
- package/dist/client/assets/DocumentsView-DmNB9rJZ.js +1 -0
- package/dist/client/assets/DocumentsView-WfVoTZt8.css +1 -0
- package/dist/client/assets/EvalsView-72w3_AO6.js +1 -0
- package/dist/client/assets/{ExperimentalAgentOnboardingModal-lXM--LV-.js → ExperimentalAgentOnboardingModal-Be4oaohM.js} +41 -41
- package/dist/client/assets/GoalsView-DI66UsjT.css +1 -0
- package/dist/client/assets/GoalsView-DkEXO_mx.js +2 -0
- package/dist/client/assets/InsightsView-_-wd4BOJ.js +11 -0
- package/dist/client/assets/MemoryView-BOCIc8HT.js +2 -0
- package/dist/client/assets/NodesView-7VInxyf_.css +1 -0
- package/dist/client/assets/NodesView-DTQP1j4H.js +14 -0
- package/dist/client/assets/PiExtensionsManager-BqaI9GKX.js +11 -0
- package/dist/client/assets/PluginManager-DYaVwsXd.js +1 -0
- package/dist/client/assets/{PluginManager-BJQXdUmV.css → PluginManager-UHVLvWWl.css} +1 -1
- package/dist/client/assets/PullRequestView-Dk9a7jRZ.js +6 -0
- package/dist/client/assets/PullRequestView-WQIS0zUC.css +1 -0
- package/dist/client/assets/ReliabilityView-B-i5SOoD.js +1 -0
- package/dist/client/assets/ReliabilityView-eoKBhBc4.css +1 -0
- package/dist/client/assets/ResearchView-C2Gx8jC9.js +1 -0
- package/dist/client/assets/SecretsView-Db2HAGi2.js +1 -0
- package/dist/client/assets/SessionTerminal-BiigPP2l.css +1 -0
- package/dist/client/assets/SessionTerminal-DwlNZLlr.js +2 -0
- package/dist/client/assets/{SettingsModal-Cy42vswI.js → SettingsModal-B-d30TVy.js} +1 -1
- package/dist/client/assets/SettingsModal-Dje7N0hv.js +31 -0
- package/dist/client/assets/SettingsModal-bJvc9aHl.css +1 -0
- package/dist/client/assets/SettingsModal-nF_GaeeK.css +1 -0
- package/dist/client/assets/SetupWizardModal-CIqFbkrD.css +1 -0
- package/dist/client/assets/SetupWizardModal-Cw3RdN83.js +1 -0
- package/dist/client/assets/SkillsView-3bhGyWs1.css +1 -0
- package/dist/client/assets/SkillsView-BGyynaI4.js +1 -0
- package/dist/client/assets/StashRecoveryView-CFaU-hym.js +1 -0
- package/dist/client/assets/{TodoView-Cx9cVhq7.css → TodoView-7xIh-Fmi.css} +1 -1
- package/dist/client/assets/TodoView-Djjwcb49.js +6 -0
- package/dist/client/assets/WorkflowNodeEditor-Po5uv_dN.css +1 -0
- package/dist/client/assets/WorkflowNodeEditor-vnXnKvAr.js +8 -0
- package/dist/client/assets/{addon-fit-C7jRorKK.js → addon-fit-B4jkcKk4.js} +1 -1
- package/dist/client/assets/addon-unicode11-Cdne2Sj4.js +1 -0
- package/dist/client/assets/{addon-web-links-CkJwd4cQ.js → addon-web-links-CRNLzj7m.js} +1 -1
- package/dist/client/assets/{addon-webgl-BjvOw43o.js → addon-webgl-CeCSULF1.js} +1 -1
- package/dist/client/assets/app-CTRT_hQh.js +13 -0
- package/dist/client/assets/app-CVg6W-HU.js +13 -0
- package/dist/client/assets/app-CY3pQXOr.js +13 -0
- package/dist/client/assets/app-DNh04p5I.js +13 -0
- package/dist/client/assets/app-DhHgtB9j.js +13 -0
- package/dist/client/assets/app-NL_hPGDS.js +13 -0
- package/dist/client/assets/common-BRyX4VxB.js +1 -0
- package/dist/client/assets/common-CN9QPI2d.js +1 -0
- package/dist/client/assets/common-CNbjPELi.js +1 -0
- package/dist/client/assets/common-DFDqu_n0.js +1 -0
- package/dist/client/assets/common-DgWWKG8Z.js +1 -0
- package/dist/client/assets/common-X6PzBnVA.js +1 -0
- package/dist/client/assets/{createLucideIcon-BazL2hk5.js → createLucideIcon-BYvOGRiO.js} +2 -2
- package/dist/client/assets/dashboard-view-BgiLoG1G.css +1 -0
- package/dist/client/assets/{dashboard-view-DqWnXEbq.css → dashboard-view-CuUPQZzi.css} +1 -1
- package/dist/client/assets/dashboard-view-DOEa6gWS.js +1 -0
- package/dist/client/assets/dashboard-view-DlKsVySD.js +3 -0
- package/dist/client/assets/dashboard-view-O5j3PSGY.js +8101 -0
- package/dist/client/assets/errors-07IrmOYM.js +1 -0
- package/dist/client/assets/errors-BPsCufin.js +1 -0
- package/dist/client/assets/errors-CcVDgqlA.js +1 -0
- package/dist/client/assets/errors-D-i_Bxc6.js +1 -0
- package/dist/client/assets/errors-DDdWAK-U.js +1 -0
- package/dist/client/assets/errors-DOF5Td3F.js +1 -0
- package/dist/client/assets/{folder-open-Doam5g-y.js → folder-open-BtEAEp7E.js} +1 -1
- package/dist/client/assets/index-BHGM5W8a.css +1 -0
- package/dist/client/assets/index-CW4OzecJ.js +793 -0
- package/dist/client/assets/{upload-BUfrZl69.js → upload-Y9NiLQ9o.js} +1 -1
- package/dist/client/assets/{users-XNGnYBJb.js → users-B13HD4Tp.js} +1 -1
- package/dist/client/assets/vendor-i18n-CV0mwX_-.js +9 -0
- package/dist/client/assets/{vendor-react-K0fH_qHe.js → vendor-react-D37HfzIf.js} +1 -1
- package/dist/client/assets/vendor-reactflow-C5ap-Sga.css +1 -0
- package/dist/client/assets/vendor-reactflow-CRZcPCXF.js +15 -0
- package/dist/client/assets/{vendor-xterm-DzcZoU0P.js → vendor-xterm-tcedd2Jt.js} +1 -1
- package/dist/client/assets/x-CqNX_9E2.js +61 -0
- package/dist/client/assets/zoom-out-CSTHbJgD.js +21 -0
- package/dist/client/index.html +7 -4
- package/dist/client/sw.js +36 -1
- package/dist/client/version.json +1 -1
- package/dist/droid-cli/package.json +2 -2
- package/dist/extension.js +67616 -44149
- package/dist/extract-zip-WL55Z3AU.js +2497 -0
- package/dist/index.min-CHQ3ABYJ.js +2926 -0
- package/dist/memory-dreams-7USISKVE.js +32 -0
- package/dist/memory-dreams-PBPISUDD.js +32 -0
- package/dist/memory-dreams-XNO2B2QF.js +32 -0
- package/dist/migration-EH2YOCYQ.js +15 -0
- package/dist/migration-PLGTTKL5.js +15 -0
- package/dist/migration-WZEZK22R.js +15 -0
- package/dist/pi-claude-cli/package.json +2 -2
- package/dist/plugin-sdk/index.d.ts +97 -0
- package/dist/plugin-sdk/index.js +55 -0
- package/dist/plugins/fusion-plugin-acp-runtime/bundled.js +17286 -0
- package/dist/plugins/fusion-plugin-acp-runtime/manifest.json +13 -0
- package/dist/plugins/fusion-plugin-acp-runtime/package.json +11 -0
- package/dist/plugins/fusion-plugin-cli-printing-press/package.json +2 -3
- package/dist/plugins/fusion-plugin-cli-printing-press/src/dashboard-interop.d.ts +19 -0
- package/dist/plugins/fusion-plugin-cli-printing-press/src/index.ts +0 -3
- package/dist/plugins/fusion-plugin-compound-engineering/bundled.js +1984 -0
- package/dist/plugins/fusion-plugin-compound-engineering/manifest.json +56 -0
- package/dist/plugins/fusion-plugin-compound-engineering/package.json +11 -0
- package/dist/plugins/fusion-plugin-cursor-runtime/bundled.js +5 -0
- package/dist/plugins/fusion-plugin-cursor-runtime/package.json +1 -1
- package/dist/plugins/fusion-plugin-dependency-graph/bundled.js +5 -0
- package/dist/plugins/fusion-plugin-dependency-graph/package.json +1 -1
- package/dist/plugins/fusion-plugin-droid-runtime/bundled.js +43 -4
- package/dist/plugins/fusion-plugin-droid-runtime/package.json +1 -1
- package/dist/plugins/fusion-plugin-hermes-runtime/bundled.js +5 -0
- package/dist/plugins/fusion-plugin-hermes-runtime/package.json +1 -1
- package/dist/plugins/fusion-plugin-openclaw-runtime/bundled.js +5 -0
- package/dist/plugins/fusion-plugin-openclaw-runtime/package.json +1 -1
- package/dist/plugins/fusion-plugin-paperclip-runtime/bundled.js +5 -0
- package/dist/plugins/fusion-plugin-paperclip-runtime/package.json +1 -1
- package/dist/plugins/fusion-plugin-reports/package.json +2 -2
- package/dist/plugins/fusion-plugin-reports/src/__tests__/review-panel.test.ts +3 -3
- package/dist/plugins/fusion-plugin-reports/src/index.ts +0 -1
- package/dist/plugins/fusion-plugin-roadmap/bundled.js +5 -0
- package/dist/plugins/fusion-plugin-roadmap/package.json +1 -1
- package/dist/plugins/fusion-plugin-whatsapp-chat/package.json +2 -2
- package/dist/routine-store-GIJ6MXWY.js +10 -0
- package/dist/routine-store-HTVC2PUQ.js +10 -0
- package/dist/routine-store-KGHZBPDF.js +10 -0
- package/package.json +24 -10
- package/skill/fusion/SKILL.md +1 -1
- package/skill/fusion/references/engine-tools.md +79 -3
- package/skill/fusion/references/extension-tools.md +79 -4
- package/skill/fusion/references/fusion-capabilities.md +12 -4
- package/dist/client/assets/AgentDetailView-DuRYmHK3.js +0 -18
- package/dist/client/assets/AgentPermissionPolicyEditor-ClY32kYN.js +0 -6
- package/dist/client/assets/AgentsView-UbCAHs_i.js +0 -29
- package/dist/client/assets/ChatView-DDDjYRKc.js +0 -6
- package/dist/client/assets/DevServerView-DY5GlJcD.js +0 -1
- package/dist/client/assets/DirectoryPicker-B4VRL2BH.js +0 -1
- package/dist/client/assets/DocumentsView-gv4zG3aT.css +0 -1
- package/dist/client/assets/DocumentsView-tqpIZ9t9.js +0 -1
- package/dist/client/assets/EvalsView-C_Br3ry8.js +0 -1
- package/dist/client/assets/GoalsView-B65urz9k.css +0 -1
- package/dist/client/assets/GoalsView-CI3Bzs1b.js +0 -1
- package/dist/client/assets/InsightsView-BYfsVobi.js +0 -11
- package/dist/client/assets/MemoryView-DT4vIhaW.js +0 -2
- package/dist/client/assets/NodesView-DT4pXowv.css +0 -1
- package/dist/client/assets/NodesView-Dx6HFqjI.js +0 -14
- package/dist/client/assets/PiExtensionsManager-BcGBnNiC.js +0 -6
- package/dist/client/assets/PluginManager-T_XZ7iNI.js +0 -1
- package/dist/client/assets/ReliabilityView-C1C1j1SD.js +0 -1
- package/dist/client/assets/ReliabilityView-D9AsVv5l.css +0 -1
- package/dist/client/assets/ResearchView-Bv4igpnv.js +0 -1
- package/dist/client/assets/SecretsView-C4VX2ZTa.js +0 -1
- package/dist/client/assets/SettingsModal-CLEkhLK_.js +0 -31
- package/dist/client/assets/SettingsModal-DZrJ5PFH.css +0 -1
- package/dist/client/assets/SettingsModal-D_uIvf6n.css +0 -1
- package/dist/client/assets/SetupWizardModal-CGYGKurR.css +0 -1
- package/dist/client/assets/SetupWizardModal-LqloAL4J.js +0 -1
- package/dist/client/assets/SkillsView-CUbSBeZ2.css +0 -1
- package/dist/client/assets/SkillsView-I1SDKaRz.js +0 -1
- package/dist/client/assets/StashRecoveryView-DMUUR3cy.js +0 -1
- package/dist/client/assets/TodoView-PKvJKjtV.js +0 -6
- package/dist/client/assets/dashboard-view-BWGH_fAq.js +0 -63
- package/dist/client/assets/dashboard-view-D4XVI1XP.js +0 -21
- package/dist/client/assets/index-BS-jSWPW.js +0 -742
- package/dist/client/assets/index-ktpD_W3I.css +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_MEMORY_DREAMS_SCHEDULE,
|
|
3
|
+
MEMORY_DREAMS_SCHEDULE_NAME,
|
|
4
|
+
agentDailyMemoryPath,
|
|
5
|
+
agentMemoryDreamsPath,
|
|
6
|
+
agentMemoryLongTermPath,
|
|
7
|
+
agentMemoryWorkspacePath,
|
|
8
|
+
buildDreamProcessingPrompt,
|
|
9
|
+
createMemoryDreamsAutomation,
|
|
10
|
+
ensureAgentMemoryFiles,
|
|
11
|
+
extractDreamProcessorResult,
|
|
12
|
+
processAgentMemoryDreams,
|
|
13
|
+
processMemoryDreams,
|
|
14
|
+
syncMemoryDreamsAutomation
|
|
15
|
+
} from "./chunk-PSDYB45U.js";
|
|
16
|
+
import "./chunk-5RGECGQL.js";
|
|
17
|
+
import "./chunk-4VNS5WPM.js";
|
|
18
|
+
export {
|
|
19
|
+
DEFAULT_MEMORY_DREAMS_SCHEDULE,
|
|
20
|
+
MEMORY_DREAMS_SCHEDULE_NAME,
|
|
21
|
+
agentDailyMemoryPath,
|
|
22
|
+
agentMemoryDreamsPath,
|
|
23
|
+
agentMemoryLongTermPath,
|
|
24
|
+
agentMemoryWorkspacePath,
|
|
25
|
+
buildDreamProcessingPrompt,
|
|
26
|
+
createMemoryDreamsAutomation,
|
|
27
|
+
ensureAgentMemoryFiles,
|
|
28
|
+
extractDreamProcessorResult,
|
|
29
|
+
processAgentMemoryDreams,
|
|
30
|
+
processMemoryDreams,
|
|
31
|
+
syncMemoryDreamsAutomation
|
|
32
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_MEMORY_DREAMS_SCHEDULE,
|
|
3
|
+
MEMORY_DREAMS_SCHEDULE_NAME,
|
|
4
|
+
agentDailyMemoryPath,
|
|
5
|
+
agentMemoryDreamsPath,
|
|
6
|
+
agentMemoryLongTermPath,
|
|
7
|
+
agentMemoryWorkspacePath,
|
|
8
|
+
buildDreamProcessingPrompt,
|
|
9
|
+
createMemoryDreamsAutomation,
|
|
10
|
+
ensureAgentMemoryFiles,
|
|
11
|
+
extractDreamProcessorResult,
|
|
12
|
+
processAgentMemoryDreams,
|
|
13
|
+
processMemoryDreams,
|
|
14
|
+
syncMemoryDreamsAutomation
|
|
15
|
+
} from "./chunk-2JI3F6MG.js";
|
|
16
|
+
import "./chunk-AWKNRUOR.js";
|
|
17
|
+
import "./chunk-4VNS5WPM.js";
|
|
18
|
+
export {
|
|
19
|
+
DEFAULT_MEMORY_DREAMS_SCHEDULE,
|
|
20
|
+
MEMORY_DREAMS_SCHEDULE_NAME,
|
|
21
|
+
agentDailyMemoryPath,
|
|
22
|
+
agentMemoryDreamsPath,
|
|
23
|
+
agentMemoryLongTermPath,
|
|
24
|
+
agentMemoryWorkspacePath,
|
|
25
|
+
buildDreamProcessingPrompt,
|
|
26
|
+
createMemoryDreamsAutomation,
|
|
27
|
+
ensureAgentMemoryFiles,
|
|
28
|
+
extractDreamProcessorResult,
|
|
29
|
+
processAgentMemoryDreams,
|
|
30
|
+
processMemoryDreams,
|
|
31
|
+
syncMemoryDreamsAutomation
|
|
32
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_MEMORY_DREAMS_SCHEDULE,
|
|
3
|
+
MEMORY_DREAMS_SCHEDULE_NAME,
|
|
4
|
+
agentDailyMemoryPath,
|
|
5
|
+
agentMemoryDreamsPath,
|
|
6
|
+
agentMemoryLongTermPath,
|
|
7
|
+
agentMemoryWorkspacePath,
|
|
8
|
+
buildDreamProcessingPrompt,
|
|
9
|
+
createMemoryDreamsAutomation,
|
|
10
|
+
ensureAgentMemoryFiles,
|
|
11
|
+
extractDreamProcessorResult,
|
|
12
|
+
processAgentMemoryDreams,
|
|
13
|
+
processMemoryDreams,
|
|
14
|
+
syncMemoryDreamsAutomation
|
|
15
|
+
} from "./chunk-AICJATVW.js";
|
|
16
|
+
import "./chunk-GUV4QQT3.js";
|
|
17
|
+
import "./chunk-4VNS5WPM.js";
|
|
18
|
+
export {
|
|
19
|
+
DEFAULT_MEMORY_DREAMS_SCHEDULE,
|
|
20
|
+
MEMORY_DREAMS_SCHEDULE_NAME,
|
|
21
|
+
agentDailyMemoryPath,
|
|
22
|
+
agentMemoryDreamsPath,
|
|
23
|
+
agentMemoryLongTermPath,
|
|
24
|
+
agentMemoryWorkspacePath,
|
|
25
|
+
buildDreamProcessingPrompt,
|
|
26
|
+
createMemoryDreamsAutomation,
|
|
27
|
+
ensureAgentMemoryFiles,
|
|
28
|
+
extractDreamProcessorResult,
|
|
29
|
+
processAgentMemoryDreams,
|
|
30
|
+
processMemoryDreams,
|
|
31
|
+
syncMemoryDreamsAutomation
|
|
32
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BackwardCompat,
|
|
3
|
+
FirstRunDetector,
|
|
4
|
+
MigrationCoordinator,
|
|
5
|
+
ProjectRequiredError
|
|
6
|
+
} from "./chunk-4L6CLWJC.js";
|
|
7
|
+
import "./chunk-BHM3UYWS.js";
|
|
8
|
+
import "./chunk-AWKNRUOR.js";
|
|
9
|
+
import "./chunk-4VNS5WPM.js";
|
|
10
|
+
export {
|
|
11
|
+
BackwardCompat,
|
|
12
|
+
FirstRunDetector,
|
|
13
|
+
MigrationCoordinator,
|
|
14
|
+
ProjectRequiredError
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BackwardCompat,
|
|
3
|
+
FirstRunDetector,
|
|
4
|
+
MigrationCoordinator,
|
|
5
|
+
ProjectRequiredError
|
|
6
|
+
} from "./chunk-JKQO7YYZ.js";
|
|
7
|
+
import "./chunk-BMUXDSBF.js";
|
|
8
|
+
import "./chunk-5RGECGQL.js";
|
|
9
|
+
import "./chunk-4VNS5WPM.js";
|
|
10
|
+
export {
|
|
11
|
+
BackwardCompat,
|
|
12
|
+
FirstRunDetector,
|
|
13
|
+
MigrationCoordinator,
|
|
14
|
+
ProjectRequiredError
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BackwardCompat,
|
|
3
|
+
FirstRunDetector,
|
|
4
|
+
MigrationCoordinator,
|
|
5
|
+
ProjectRequiredError
|
|
6
|
+
} from "./chunk-RR2HM46R.js";
|
|
7
|
+
import "./chunk-MCUG2Z7M.js";
|
|
8
|
+
import "./chunk-GUV4QQT3.js";
|
|
9
|
+
import "./chunk-4VNS5WPM.js";
|
|
10
|
+
export {
|
|
11
|
+
BackwardCompat,
|
|
12
|
+
FirstRunDetector,
|
|
13
|
+
MigrationCoordinator,
|
|
14
|
+
ProjectRequiredError
|
|
15
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion/pi-claude-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.1",
|
|
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,
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^22.0.0",
|
|
28
28
|
"typescript": "^5.7.0",
|
|
29
|
-
"vitest": "^
|
|
29
|
+
"vitest": "^4.1.0"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"test": "vitest run --reporter=dot",
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { StepParseResult, FusionPlugin } from '@fusion/core';
|
|
2
|
+
export { AutoMergeFactProviderExtensionContribution, AutoMergeFactProviderHandler, AutoMergeFactProviderInput, AutoMergeFactProviderResult, AutoMergeRoute, BoardActionServices, BoardActionTaskStore, CliProviderActionMetadata, CliProviderContribution, CliProviderModelDiscoveryResult, CliProviderProbeResult, CliProviderRuntimeRegistration, CliProviderType, ExecutorRuntimeEnvContribution, ExecutorRuntimeTaskContext, FusionPlugin, MoveBoardTaskInput, OnboardingProviderCardContribution, OnboardingProviderRecommendationContribution, OnboardingSetupHelpContribution, ParsedStep, PluginContext, PluginDashboardViewDefinition, PluginExecutorRuntimeEnvHook, PluginInstallation, PluginLogger, PluginManifest, PluginOnError, PluginOnLoad, PluginOnSchemaInit, PluginOnTaskCompleted, PluginOnTaskCreated, PluginOnTaskMoved, PluginOnUnload, PluginPromptContribution, PluginPromptContributions, PluginPromptSurface, PluginRouteDefinition, PluginRouteMethod, PluginRouteResponse, PluginRouteResult, PluginRuntimeFactory, PluginRuntimeManifestMetadata, PluginRuntimeRegistration, PluginSettingSchema, PluginSettingType, PluginSetupCheckResult, PluginSetupHooks, PluginSetupManifest, PluginSetupStatus, PluginSkillContribution, PluginState, PluginToolDefinition, PluginToolResult, PluginTraitContribution, PluginTraitFlags, PluginTraitHookDescriptor, PluginUiActionDescriptor, PluginUiContributionDefinition, PluginUiContributionInputDefinition, PluginUiContributionSurface, PluginUiContributionWhen, PluginUiSlotDefinition, PluginUiSurface, PluginWorkflowStepContribution, PostOnboardingRecommendationContribution, SettingsConfigSectionContribution, SettingsProviderCardContribution, StepParseResult, StepParser, TaskVerdictProviderExtensionContribution, TaskVerdictProviderHandler, TaskVerdictProviderInput, TaskVerdictProviderResult, TaskVerdictStatus, UpdateBoardTaskInput, WORKFLOW_EXTENSION_SCHEMA_VERSION, WorkflowColumnAgent, WorkflowColumnMetadataExtensionContribution, WorkflowExtensionBaseContribution, WorkflowExtensionConfigField, WorkflowExtensionConfigSchema, WorkflowExtensionContribution, WorkflowExtensionFallback, WorkflowExtensionKind, WorkflowExtensionMetadata, WorkflowFieldDefinition, WorkflowFieldOption, WorkflowFieldRender, WorkflowFieldType, WorkflowForeachConfig, WorkflowIr, WorkflowIrArtifact, WorkflowIrColumn, WorkflowIrColumnTrait, WorkflowIrEdge, WorkflowIrNode, WorkflowIrNodeKind, WorkflowIrV1, WorkflowIrV2, WorkflowLoopConfig, WorkflowLoopExitCondition, WorkflowMovePolicyDecision, WorkflowMovePolicyExtensionContribution, WorkflowMovePolicyHandler, WorkflowMovePolicyInput, WorkflowNodeExtensionHandler, WorkflowNodeExtensionResult, WorkflowNodeHandlerExtensionContribution, WorkflowNodeHandlerInput, WorkflowSettingDefinition, WorkflowSettingOption, WorkflowSettingRender, WorkflowSettingType, WorkflowWorkEngineDispatchResult, WorkflowWorkEngineExtensionContribution, WorkflowWorkEngineHandler, WorkflowWorkEngineInput, createBoardActionServices, workflowExtensionRegistryId } from '@fusion/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Fusion Plugin SDK
|
|
6
|
+
*
|
|
7
|
+
* This package provides type definitions and helpers for creating Fusion plugins.
|
|
8
|
+
* It re-exports all plugin-related types from @fusion/core.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import { definePlugin } from "@fusion/plugin-sdk";
|
|
13
|
+
*
|
|
14
|
+
* export default definePlugin({
|
|
15
|
+
* manifest: {
|
|
16
|
+
* id: "my-plugin",
|
|
17
|
+
* name: "My Plugin",
|
|
18
|
+
* version: "1.0.0",
|
|
19
|
+
* },
|
|
20
|
+
* hooks: {
|
|
21
|
+
* onLoad: async (ctx) => {
|
|
22
|
+
* ctx.logger.info("Plugin loaded!");
|
|
23
|
+
* },
|
|
24
|
+
* },
|
|
25
|
+
* tools: [
|
|
26
|
+
* {
|
|
27
|
+
* name: "my_tool",
|
|
28
|
+
* description: "Does something useful",
|
|
29
|
+
* parameters: { type: "object", properties: { input: { type: "string" } } },
|
|
30
|
+
* execute: async (params, ctx) => ({
|
|
31
|
+
* content: [{ type: "text", text: `Processed: ${params.input}` }],
|
|
32
|
+
* }),
|
|
33
|
+
* },
|
|
34
|
+
* ],
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* A plugin's step-parser contribution (KTD-12). A plugin's runtime loader returns
|
|
41
|
+
* these from its `getPluginStepParsers` getter; the engine wraps each fail-closed
|
|
42
|
+
* and registers it under `plugin:<pluginId>:<parserId>`. `parse` is SYNCHRONOUS
|
|
43
|
+
* (project-local trust tier) and may throw on malformed input — a throw maps to a
|
|
44
|
+
* routable `outcome:parse-error`.
|
|
45
|
+
*
|
|
46
|
+
* Structurally identical to the engine-side `PluginStepParserContribution` the
|
|
47
|
+
* plugin runner consumes; defined here so plugin authors do not depend on the
|
|
48
|
+
* engine package (the SDK depends on @fusion/core only).
|
|
49
|
+
*/
|
|
50
|
+
interface PluginStepParserContribution {
|
|
51
|
+
parserId: string;
|
|
52
|
+
parse: (content: string) => StepParseResult;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare function validatePluginManifest(manifest: unknown): {
|
|
56
|
+
valid: boolean;
|
|
57
|
+
errors: string[];
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Type-safe helper for defining a Fusion plugin.
|
|
61
|
+
*
|
|
62
|
+
* Provides autocompletion and compile-time validation for plugin definitions.
|
|
63
|
+
* This is an identity function - it returns the input unchanged.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```typescript
|
|
67
|
+
* export default definePlugin({
|
|
68
|
+
* manifest: {
|
|
69
|
+
* id: "my-plugin",
|
|
70
|
+
* name: "My Plugin",
|
|
71
|
+
* version: "1.0.0",
|
|
72
|
+
* description: "Does something cool",
|
|
73
|
+
* },
|
|
74
|
+
* hooks: {
|
|
75
|
+
* onLoad: async (ctx) => {
|
|
76
|
+
* ctx.logger.info("Plugin loaded!");
|
|
77
|
+
* },
|
|
78
|
+
* onTaskCompleted: async (task, ctx) => {
|
|
79
|
+
* ctx.logger.info(`Task ${task.id} completed!`);
|
|
80
|
+
* },
|
|
81
|
+
* },
|
|
82
|
+
* tools: [
|
|
83
|
+
* {
|
|
84
|
+
* name: "my_tool",
|
|
85
|
+
* description: "Does something useful",
|
|
86
|
+
* parameters: { type: "object", properties: { input: { type: "string" } } },
|
|
87
|
+
* execute: async (params, ctx) => ({
|
|
88
|
+
* content: [{ type: "text", text: `Processed: ${params.input}` }],
|
|
89
|
+
* }),
|
|
90
|
+
* },
|
|
91
|
+
* ],
|
|
92
|
+
* });
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
declare function definePlugin(plugin: FusionPlugin): FusionPlugin;
|
|
96
|
+
|
|
97
|
+
export { type PluginStepParserContribution, definePlugin, validatePluginManifest };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// src/plugin-sdk-core-runtime-shim.ts
|
|
2
|
+
var WORKFLOW_EXTENSION_SCHEMA_VERSION = 1;
|
|
3
|
+
function workflowExtensionRegistryId(pluginId, extensionId) {
|
|
4
|
+
return `plugin:${pluginId}:${extensionId}`;
|
|
5
|
+
}
|
|
6
|
+
function createBoardActionServices(store) {
|
|
7
|
+
return {
|
|
8
|
+
moveTask(input) {
|
|
9
|
+
return store.moveTask(input.taskId, input.column, {
|
|
10
|
+
preserveProgress: input.preserveProgress,
|
|
11
|
+
moveSource: input.source ?? "user"
|
|
12
|
+
});
|
|
13
|
+
},
|
|
14
|
+
updateTask(input) {
|
|
15
|
+
return store.updateTask(input.taskId, input.updates);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// ../plugin-sdk/src/index.ts
|
|
21
|
+
var SLUG_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
22
|
+
function validatePluginManifest(manifest) {
|
|
23
|
+
const errors = [];
|
|
24
|
+
if (manifest === null || manifest === void 0) {
|
|
25
|
+
return { valid: false, errors: ["Manifest is required"] };
|
|
26
|
+
}
|
|
27
|
+
if (typeof manifest !== "object" || Array.isArray(manifest)) {
|
|
28
|
+
return { valid: false, errors: ["Manifest must be an object"] };
|
|
29
|
+
}
|
|
30
|
+
const m = manifest;
|
|
31
|
+
if (!m.id || typeof m.id !== "string" || m.id.trim() === "") {
|
|
32
|
+
errors.push("id is required and must be a non-empty string");
|
|
33
|
+
} else if (!SLUG_PATTERN.test(m.id)) {
|
|
34
|
+
errors.push("id must be a valid slug (lowercase, alphanumeric, hyphens only, cannot start or end with hyphen)");
|
|
35
|
+
}
|
|
36
|
+
if (!m.name || typeof m.name !== "string" || m.name.trim() === "") {
|
|
37
|
+
errors.push("name is required and must be a non-empty string");
|
|
38
|
+
}
|
|
39
|
+
if (!m.version || typeof m.version !== "string" || m.version.trim() === "") {
|
|
40
|
+
errors.push("version is required and must be a non-empty string");
|
|
41
|
+
} else if (!/^\d+\.\d+\.\d+$/.test(m.version)) {
|
|
42
|
+
errors.push("version must be a valid semver string (e.g., 1.0.0)");
|
|
43
|
+
}
|
|
44
|
+
return { valid: errors.length === 0, errors };
|
|
45
|
+
}
|
|
46
|
+
function definePlugin(plugin) {
|
|
47
|
+
return plugin;
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
WORKFLOW_EXTENSION_SCHEMA_VERSION,
|
|
51
|
+
createBoardActionServices,
|
|
52
|
+
definePlugin,
|
|
53
|
+
validatePluginManifest,
|
|
54
|
+
workflowExtensionRegistryId
|
|
55
|
+
};
|