@runfusion/fusion 0.0.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/README.md +166 -0
- package/dist/bin.js +141453 -0
- package/dist/client/assets/addon-fit-C7jRorKK.js +1 -0
- package/dist/client/assets/addon-web-links-CkJwd4cQ.js +1 -0
- package/dist/client/assets/addon-webgl-BjvOw43o.js +58 -0
- package/dist/client/assets/index-Dr0THfBG.css +1 -0
- package/dist/client/assets/index-bkmXzXw5.js +1241 -0
- package/dist/client/assets/vendor-react-K0fH_qHe.js +49 -0
- package/dist/client/assets/vendor-xterm-DzcZoU0P.js +9 -0
- package/dist/client/assets/vendor-xterm-LZoznX6r.css +32 -0
- package/dist/client/icons/icon-192.png +0 -0
- package/dist/client/icons/icon-512.png +0 -0
- package/dist/client/index.html +90 -0
- package/dist/client/logo.svg +6 -0
- package/dist/client/manifest.json +23 -0
- package/dist/client/sw.js +90 -0
- package/dist/client/theme-data.css +3764 -0
- package/dist/extension.js +79879 -0
- package/package.json +86 -0
- package/skill/fusion/SKILL.md +103 -0
- package/skill/fusion/references/best-practices.md +91 -0
- package/skill/fusion/references/cli-commands.md +117 -0
- package/skill/fusion/references/extension-tools.md +296 -0
- package/skill/fusion/references/fusion-capabilities.md +121 -0
- package/skill/fusion/references/skill-patterns.md +38 -0
- package/skill/fusion/references/task-structure.md +158 -0
- package/skill/fusion/workflows/dashboard-cli.md +92 -0
- package/skill/fusion/workflows/specifications.md +124 -0
- package/skill/fusion/workflows/task-lifecycle.md +116 -0
- package/skill/fusion/workflows/task-management.md +90 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
3
|
+
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
4
|
+
* https://github.com/chjj/term.js
|
|
5
|
+
* @license MIT
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in
|
|
15
|
+
* all copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
* THE SOFTWARE.
|
|
24
|
+
*
|
|
25
|
+
* Originally forked from (with the author's permission):
|
|
26
|
+
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
27
|
+
* http://bellard.org/jslinux/
|
|
28
|
+
* Copyright (c) 2011 Fabrice Bellard
|
|
29
|
+
* The original design remains. The terminal itself
|
|
30
|
+
* has been extended to include xterm CSI codes, among
|
|
31
|
+
* other features.
|
|
32
|
+
*/.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<!-- Viewport configured for Capacitor mobile webview: disables pinch-zoom for app-like feel -->
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
|
|
7
|
+
<title>Fusion</title>
|
|
8
|
+
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
|
|
9
|
+
<link rel="manifest" href="/manifest.json" />
|
|
10
|
+
<meta name="theme-color" content="#1a1a2e" />
|
|
11
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
12
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
13
|
+
<link rel="apple-touch-icon" href="/icons/icon-192.png" />
|
|
14
|
+
<script>
|
|
15
|
+
// Theme initialization - runs before React to prevent flash
|
|
16
|
+
(function() {
|
|
17
|
+
try {
|
|
18
|
+
var mode = localStorage.getItem('kb-dashboard-theme-mode') || 'dark';
|
|
19
|
+
var colorTheme = localStorage.getItem('kb-dashboard-color-theme') || 'default';
|
|
20
|
+
var validThemes = ['default', 'ocean', 'forest', 'sunset', 'zen', 'berry', 'high-contrast', 'industrial', 'monochrome', 'slate', 'ash', 'graphite', 'silver', 'solarized', 'factory', 'ayu', 'one-dark', 'nord', 'dracula', 'gruvbox', 'tokyo-night', 'catppuccin-mocha', 'github-dark', 'everforest', 'rose-pine', 'kanagawa', 'night-owl', 'palenight', 'monokai-pro', 'slime', 'brutalist', 'neon-city', 'parchment', 'terminal', 'glass', 'horizon', 'vitesse', 'outrun', 'snazzy', 'porple', 'espresso', 'mars', 'poimandres', 'ember', 'rust', 'copper', 'foundry', 'carbon', 'sandstone', 'lagoon', 'frost', 'lavender', 'neon-bloom', 'sepia'];
|
|
21
|
+
if (!validThemes.includes(colorTheme)) {
|
|
22
|
+
colorTheme = 'default';
|
|
23
|
+
}
|
|
24
|
+
var systemDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
25
|
+
var effectiveMode = mode === 'system' ? (systemDark ? 'dark' : 'light') : mode;
|
|
26
|
+
document.documentElement.setAttribute('data-theme', effectiveMode);
|
|
27
|
+
document.documentElement.setAttribute('data-color-theme', colorTheme);
|
|
28
|
+
// Load theme-data.css for non-default themes to prevent flash
|
|
29
|
+
// Use path-safe resolution that works in both HTTP and file:// contexts
|
|
30
|
+
if (colorTheme !== 'default') {
|
|
31
|
+
var base = document.baseURI || (document.location && document.location.href) || '';
|
|
32
|
+
// Derive path relative to HTML file directory
|
|
33
|
+
// Handle two cases:
|
|
34
|
+
// 1. Base ends with "/" (directory path): replace trailing "/" with "/filename"
|
|
35
|
+
// 2. Base ends with filename: replace filename with "/filename"
|
|
36
|
+
var themeDataUrl;
|
|
37
|
+
if (base.indexOf('file://') === 0) {
|
|
38
|
+
// For file:// URLs
|
|
39
|
+
if (base.endsWith('/')) {
|
|
40
|
+
themeDataUrl = base.slice(0, -1) + '/theme-data.css';
|
|
41
|
+
} else {
|
|
42
|
+
themeDataUrl = base.replace(/\/[^\/]+$/, '/theme-data.css');
|
|
43
|
+
}
|
|
44
|
+
} else {
|
|
45
|
+
// For HTTP/HTTPS URLs - same logic
|
|
46
|
+
if (base.endsWith('/')) {
|
|
47
|
+
themeDataUrl = base.slice(0, -1) + '/theme-data.css';
|
|
48
|
+
} else {
|
|
49
|
+
themeDataUrl = base.replace(/\/[^\/]+$/, '/theme-data.css');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Check for existing link and update href if stale
|
|
54
|
+
var existingLink = document.getElementById('theme-data');
|
|
55
|
+
if (existingLink && existingLink.tagName === 'LINK') {
|
|
56
|
+
// Update href if it differs (handles baseURI changes between loads)
|
|
57
|
+
if (existingLink.href !== themeDataUrl) {
|
|
58
|
+
existingLink.href = themeDataUrl;
|
|
59
|
+
}
|
|
60
|
+
// Move existing link to end of <head> for CSS cascade correctness.
|
|
61
|
+
// This ensures color-theme rules take precedence over base token
|
|
62
|
+
// redefinitions in subsequent stylesheets.
|
|
63
|
+
if (existingLink.parentNode === document.head && document.head.lastChild !== existingLink) {
|
|
64
|
+
document.head.appendChild(existingLink);
|
|
65
|
+
}
|
|
66
|
+
} else {
|
|
67
|
+
// No existing link - create one
|
|
68
|
+
var link = document.createElement('link');
|
|
69
|
+
link.rel = 'stylesheet';
|
|
70
|
+
link.href = themeDataUrl;
|
|
71
|
+
link.id = 'theme-data';
|
|
72
|
+
document.head.appendChild(link);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
} catch (e) {
|
|
76
|
+
document.documentElement.setAttribute('data-theme', 'dark');
|
|
77
|
+
document.documentElement.setAttribute('data-color-theme', 'default');
|
|
78
|
+
}
|
|
79
|
+
})();
|
|
80
|
+
</script>
|
|
81
|
+
<script type="module" crossorigin src="/assets/index-bkmXzXw5.js"></script>
|
|
82
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-react-K0fH_qHe.js">
|
|
83
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-xterm-DzcZoU0P.js">
|
|
84
|
+
<link rel="stylesheet" crossorigin href="/assets/vendor-xterm-LZoznX6r.css">
|
|
85
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Dr0THfBG.css">
|
|
86
|
+
</head>
|
|
87
|
+
<body>
|
|
88
|
+
<div id="root"></div>
|
|
89
|
+
</body>
|
|
90
|
+
</html>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" fill="none">
|
|
2
|
+
<!-- Outer ring: matches Header.tsx header-logo geometry -->
|
|
3
|
+
<circle cx="64" cy="64" r="52" stroke="currentColor" stroke-width="8" fill="none"/>
|
|
4
|
+
<!-- Swoosh/comet shape: matches Header.tsx header-logo path -->
|
|
5
|
+
<path d="M26 101C44 82 62 64 82 45C90 37 98 30 104 24C96 35 89 47 81 60C70 79 57 95 43 108C38 112 32 108 26 101Z" fill="currentColor"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Fusion",
|
|
3
|
+
"short_name": "Fusion",
|
|
4
|
+
"description": "AI-orchestrated task board",
|
|
5
|
+
"start_url": "/",
|
|
6
|
+
"display": "standalone",
|
|
7
|
+
"theme_color": "#1a1a2e",
|
|
8
|
+
"background_color": "#1a1a2e",
|
|
9
|
+
"icons": [
|
|
10
|
+
{
|
|
11
|
+
"src": "/icons/icon-192.png",
|
|
12
|
+
"sizes": "192x192",
|
|
13
|
+
"type": "image/png",
|
|
14
|
+
"purpose": "any"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"src": "/icons/icon-512.png",
|
|
18
|
+
"sizes": "512x512",
|
|
19
|
+
"type": "image/png",
|
|
20
|
+
"purpose": "any"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
const CACHE_NAME = "fusion-cache-v1";
|
|
2
|
+
const APP_SHELL_URLS = [
|
|
3
|
+
"/",
|
|
4
|
+
"/index.html",
|
|
5
|
+
"/manifest.json",
|
|
6
|
+
"/logo.svg",
|
|
7
|
+
"/icons/icon-192.png",
|
|
8
|
+
"/icons/icon-512.png",
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
self.addEventListener("install", (event) => {
|
|
12
|
+
event.waitUntil((async () => {
|
|
13
|
+
try {
|
|
14
|
+
const cache = await caches.open(CACHE_NAME);
|
|
15
|
+
await cache.addAll(APP_SHELL_URLS);
|
|
16
|
+
} catch (error) {
|
|
17
|
+
console.warn("[sw] install cache warmup failed", error);
|
|
18
|
+
}
|
|
19
|
+
})());
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
self.addEventListener("activate", (event) => {
|
|
23
|
+
event.waitUntil((async () => {
|
|
24
|
+
try {
|
|
25
|
+
const keys = await caches.keys();
|
|
26
|
+
await Promise.all(
|
|
27
|
+
keys
|
|
28
|
+
.filter((key) => key !== CACHE_NAME)
|
|
29
|
+
.map((key) => caches.delete(key)),
|
|
30
|
+
);
|
|
31
|
+
await self.clients.claim();
|
|
32
|
+
} catch (error) {
|
|
33
|
+
console.warn("[sw] activate cleanup failed", error);
|
|
34
|
+
}
|
|
35
|
+
})());
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
self.addEventListener("fetch", (event) => {
|
|
39
|
+
const request = event.request;
|
|
40
|
+
|
|
41
|
+
if (request.method !== "GET") {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const url = new URL(request.url);
|
|
46
|
+
const isApiRequest = url.pathname.startsWith("/api/");
|
|
47
|
+
|
|
48
|
+
if (isApiRequest) {
|
|
49
|
+
event.respondWith((async () => {
|
|
50
|
+
try {
|
|
51
|
+
const networkResponse = await fetch(request);
|
|
52
|
+
try {
|
|
53
|
+
const cache = await caches.open(CACHE_NAME);
|
|
54
|
+
await cache.put(request, networkResponse.clone());
|
|
55
|
+
} catch (cacheError) {
|
|
56
|
+
console.warn("[sw] api cache put failed", cacheError);
|
|
57
|
+
}
|
|
58
|
+
return networkResponse;
|
|
59
|
+
} catch (networkError) {
|
|
60
|
+
try {
|
|
61
|
+
const cachedResponse = await caches.match(request);
|
|
62
|
+
if (cachedResponse) {
|
|
63
|
+
return cachedResponse;
|
|
64
|
+
}
|
|
65
|
+
} catch (cacheError) {
|
|
66
|
+
console.warn("[sw] api cache lookup failed", cacheError);
|
|
67
|
+
}
|
|
68
|
+
throw networkError;
|
|
69
|
+
}
|
|
70
|
+
})());
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
event.respondWith((async () => {
|
|
75
|
+
try {
|
|
76
|
+
const cache = await caches.open(CACHE_NAME);
|
|
77
|
+
const cachedResponse = await cache.match(request);
|
|
78
|
+
if (cachedResponse) {
|
|
79
|
+
return cachedResponse;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const networkResponse = await fetch(request);
|
|
83
|
+
await cache.put(request, networkResponse.clone());
|
|
84
|
+
return networkResponse;
|
|
85
|
+
} catch (error) {
|
|
86
|
+
console.warn("[sw] static cache flow failed", error);
|
|
87
|
+
return fetch(request);
|
|
88
|
+
}
|
|
89
|
+
})());
|
|
90
|
+
});
|