@runfusion/fusion 0.1.1 → 0.1.3
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/README.md +2 -0
- package/dist/bin.js +14866 -12340
- package/dist/client/assets/index-BuenKJX0.css +1 -0
- package/dist/client/assets/index-CjGu8HRV.js +1250 -0
- package/dist/client/index.html +2 -2
- package/dist/client/sw.js +45 -1
- package/dist/client/theme-data.css +109 -0
- package/dist/extension.js +12264 -11527
- package/dist/pi-claude-cli/index.ts +131 -0
- package/dist/pi-claude-cli/package.json +39 -0
- package/dist/pi-claude-cli/src/control-handler.ts +68 -0
- package/dist/pi-claude-cli/src/event-bridge.ts +386 -0
- package/dist/pi-claude-cli/src/mcp-config.ts +111 -0
- package/dist/pi-claude-cli/src/mcp-schema-server.cjs +49 -0
- package/dist/pi-claude-cli/src/process-manager.ts +218 -0
- package/dist/pi-claude-cli/src/prompt-builder.ts +536 -0
- package/dist/pi-claude-cli/src/provider.ts +354 -0
- package/dist/pi-claude-cli/src/stream-parser.ts +37 -0
- package/dist/pi-claude-cli/src/thinking-config.ts +83 -0
- package/dist/pi-claude-cli/src/tool-mapping.ts +147 -0
- package/dist/pi-claude-cli/src/types.ts +87 -0
- package/package.json +12 -9
- package/skill/fusion/SKILL.md +6 -4
- package/skill/fusion/references/cli-commands.md +22 -22
- package/skill/fusion/references/extension-tools.md +3 -1
- package/skill/fusion/references/fusion-capabilities.md +30 -38
- package/skill/fusion/references/task-structure.md +4 -4
- package/skill/fusion/workflows/dashboard-cli.md +6 -6
- package/skill/fusion/workflows/specifications.md +5 -3
- package/skill/fusion/workflows/task-lifecycle.md +1 -1
- package/skill/fusion/workflows/task-management.md +3 -1
- package/dist/client/assets/index-B3ZN3sln.css +0 -1
- package/dist/client/assets/index-cgKoCmZP.js +0 -1241
package/dist/client/index.html
CHANGED
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
}
|
|
79
79
|
})();
|
|
80
80
|
</script>
|
|
81
|
-
<script type="module" crossorigin src="/assets/index-
|
|
81
|
+
<script type="module" crossorigin src="/assets/index-CjGu8HRV.js"></script>
|
|
82
82
|
<link rel="modulepreload" crossorigin href="/assets/vendor-react-K0fH_qHe.js">
|
|
83
83
|
<link rel="modulepreload" crossorigin href="/assets/vendor-xterm-DzcZoU0P.js">
|
|
84
84
|
<link rel="stylesheet" crossorigin href="/assets/vendor-xterm-LZoznX6r.css">
|
|
85
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
85
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BuenKJX0.css">
|
|
86
86
|
</head>
|
|
87
87
|
<body>
|
|
88
88
|
<div id="root"></div>
|
package/dist/client/sw.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const CACHE_NAME = "fusion-cache-
|
|
1
|
+
const CACHE_NAME = "fusion-cache-v2";
|
|
2
2
|
const APP_SHELL_URLS = [
|
|
3
3
|
"/",
|
|
4
4
|
"/index.html",
|
|
@@ -13,6 +13,7 @@ self.addEventListener("install", (event) => {
|
|
|
13
13
|
try {
|
|
14
14
|
const cache = await caches.open(CACHE_NAME);
|
|
15
15
|
await cache.addAll(APP_SHELL_URLS);
|
|
16
|
+
await self.skipWaiting();
|
|
16
17
|
} catch (error) {
|
|
17
18
|
console.warn("[sw] install cache warmup failed", error);
|
|
18
19
|
}
|
|
@@ -43,7 +44,50 @@ self.addEventListener("fetch", (event) => {
|
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
const url = new URL(request.url);
|
|
47
|
+
const accept = request.headers.get("accept") ?? "";
|
|
46
48
|
const isApiRequest = url.pathname.startsWith("/api/");
|
|
49
|
+
const isEventStreamRequest =
|
|
50
|
+
accept.includes("text/event-stream") ||
|
|
51
|
+
url.pathname === "/api/events" ||
|
|
52
|
+
url.pathname.startsWith("/api/events/");
|
|
53
|
+
const isNavigationRequest =
|
|
54
|
+
request.mode === "navigate" ||
|
|
55
|
+
request.destination === "document" ||
|
|
56
|
+
url.pathname === "/" ||
|
|
57
|
+
url.pathname === "/index.html";
|
|
58
|
+
|
|
59
|
+
// EventSource requests stay open indefinitely. Waiting on cache.put() for an
|
|
60
|
+
// infinite response body prevents the browser from ever receiving the stream
|
|
61
|
+
// and leaks the underlying connection across reloads. Let SSE bypass the
|
|
62
|
+
// service worker entirely so the browser talks to the network directly.
|
|
63
|
+
if (isEventStreamRequest) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Always revalidate the HTML shell so navigation picks up the latest hashed
|
|
68
|
+
// asset names instead of getting stuck on a cached index.html that points at
|
|
69
|
+
// a stale bundle.
|
|
70
|
+
if (isNavigationRequest) {
|
|
71
|
+
event.respondWith((async () => {
|
|
72
|
+
try {
|
|
73
|
+
const networkResponse = await fetch(request);
|
|
74
|
+
try {
|
|
75
|
+
const cache = await caches.open(CACHE_NAME);
|
|
76
|
+
await cache.put(request, networkResponse.clone());
|
|
77
|
+
} catch (cacheError) {
|
|
78
|
+
console.warn("[sw] navigation cache put failed", cacheError);
|
|
79
|
+
}
|
|
80
|
+
return networkResponse;
|
|
81
|
+
} catch (networkError) {
|
|
82
|
+
const fallback = await caches.match(request);
|
|
83
|
+
if (fallback) {
|
|
84
|
+
return fallback;
|
|
85
|
+
}
|
|
86
|
+
throw networkError;
|
|
87
|
+
}
|
|
88
|
+
})());
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
47
91
|
|
|
48
92
|
if (isApiRequest) {
|
|
49
93
|
event.respondWith((async () => {
|