@space-lens/cli 0.2.8 → 0.4.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/README.md +32 -3
- package/dist/assets/{model-bnrjCFAW.js → model-Ccco3751.js} +43 -5
- package/dist/assets/{scanner-CZbLKIYe.js → scanner-BTf4LsFZ.js} +9 -2
- package/dist/assets/serve-entry-DESAwchC.js +13272 -0
- package/dist/cli.mjs +231 -71
- package/dist/index.mjs +1 -1
- package/dist/web/200.html +53 -0
- package/dist/web/_app/immutable/assets/0.DaFvPEiH.css +2 -0
- package/dist/web/_app/immutable/assets/2.Rwbdhuvh.css +1 -0
- package/dist/web/_app/immutable/assets/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
- package/dist/web/_app/immutable/assets/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
- package/dist/web/_app/immutable/assets/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
- package/dist/web/_app/immutable/assets/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
- package/dist/web/_app/immutable/assets/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
- package/dist/web/_app/immutable/assets/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
- package/dist/web/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
- package/dist/web/_app/immutable/chunks/BjAaj2_R.js +1 -0
- package/dist/web/_app/immutable/chunks/Bjy-W4x2.js +81 -0
- package/dist/web/_app/immutable/chunks/CEhA94eo.js +1 -0
- package/dist/web/_app/immutable/chunks/Czmuk0Xq.js +9 -0
- package/dist/web/_app/immutable/chunks/D_inIiOK.js +3 -0
- package/dist/web/_app/immutable/chunks/uBIymjUX.js +1 -0
- package/dist/web/_app/immutable/chunks/xihTtKlq.js +1 -0
- package/dist/web/_app/immutable/entry/app.6tYYuHtv.js +2 -0
- package/dist/web/_app/immutable/entry/start.B7_bvdWx.js +1 -0
- package/dist/web/_app/immutable/nodes/0.BfNK78ja.js +1 -0
- package/dist/web/_app/immutable/nodes/1.DocSAEhb.js +1 -0
- package/dist/web/_app/immutable/nodes/2.c02Tt4_b.js +163 -0
- package/dist/web/_app/version.json +1 -0
- package/dist/web/favicon.png +0 -0
- package/dist/web/index.html +55 -0
- package/dist/web/logo-mark.png +0 -0
- package/dist/web/manifest.webmanifest +18 -0
- package/dist/web/service-worker.js +1 -0
- package/package.json +10 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"1795228214861"}
|
|
Binary file
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<link rel="icon" type="image/png" href="./favicon.png" />
|
|
6
|
+
<link rel="manifest" href="./manifest.webmanifest" />
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
+
<meta name="color-scheme" content="light dark" />
|
|
9
|
+
<title>Space Lens</title>
|
|
10
|
+
<link href="./_app/immutable/entry/start.B7_bvdWx.js" rel="modulepreload">
|
|
11
|
+
<link href="./_app/immutable/chunks/BjAaj2_R.js" rel="modulepreload">
|
|
12
|
+
<link href="./_app/immutable/chunks/D_inIiOK.js" rel="modulepreload">
|
|
13
|
+
<link href="./_app/immutable/entry/app.6tYYuHtv.js" rel="modulepreload">
|
|
14
|
+
<link href="./_app/immutable/chunks/uBIymjUX.js" rel="modulepreload">
|
|
15
|
+
<link href="./_app/immutable/chunks/xihTtKlq.js" rel="modulepreload">
|
|
16
|
+
<link href="./_app/immutable/nodes/0.BfNK78ja.js" rel="modulepreload">
|
|
17
|
+
<link href="./_app/immutable/chunks/Czmuk0Xq.js" rel="modulepreload">
|
|
18
|
+
<link href="./_app/immutable/nodes/2.c02Tt4_b.js" rel="modulepreload">
|
|
19
|
+
|
|
20
|
+
<link href="./_app/immutable/assets/0.DaFvPEiH.css" rel="stylesheet">
|
|
21
|
+
<link href="./_app/immutable/assets/2.Rwbdhuvh.css" rel="stylesheet">
|
|
22
|
+
</head>
|
|
23
|
+
<body data-sveltekit-preload-data="hover" class="bg-background text-foreground">
|
|
24
|
+
<div style="display: contents">
|
|
25
|
+
<script>
|
|
26
|
+
{
|
|
27
|
+
__sveltekit_q930bj = {
|
|
28
|
+
base: new URL(".", location).pathname.slice(0, -1)
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const element = document.currentScript.parentElement;
|
|
32
|
+
|
|
33
|
+
Promise.all([
|
|
34
|
+
import("./_app/immutable/entry/start.B7_bvdWx.js"),
|
|
35
|
+
import("./_app/immutable/entry/app.6tYYuHtv.js")
|
|
36
|
+
]).then(([kit, app]) => {
|
|
37
|
+
kit.start(app, element);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
if ('serviceWorker' in navigator) {
|
|
41
|
+
const script_url = './service-worker.js';
|
|
42
|
+
const policy = globalThis?.window?.trustedTypes?.createPolicy(
|
|
43
|
+
'sveltekit-trusted-url',
|
|
44
|
+
{ createScriptURL(url) { return url; } }
|
|
45
|
+
);
|
|
46
|
+
const sanitised = policy?.createScriptURL(script_url) ?? script_url;
|
|
47
|
+
addEventListener('load', function () {
|
|
48
|
+
navigator.serviceWorker.register(sanitised);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
</script>
|
|
53
|
+
</div>
|
|
54
|
+
</body>
|
|
55
|
+
</html>
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Space Lens",
|
|
3
|
+
"short_name": "SpaceLens",
|
|
4
|
+
"description": "A local-first disk map: scan any folder, see where the bytes live, stage cleanup candidates.",
|
|
5
|
+
"start_url": "/",
|
|
6
|
+
"scope": "/",
|
|
7
|
+
"display": "standalone",
|
|
8
|
+
"background_color": "#0b0b0c",
|
|
9
|
+
"theme_color": "#0b0b0c",
|
|
10
|
+
"icons": [
|
|
11
|
+
{
|
|
12
|
+
"src": "/favicon.png",
|
|
13
|
+
"sizes": "512x512",
|
|
14
|
+
"type": "image/png",
|
|
15
|
+
"purpose": "any"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=location.pathname.split(`/`).slice(0,-1).join(`/`),t=[e+`/_app/immutable/assets/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2`,e+`/_app/immutable/assets/inter-cyrillic-wght-normal.DqGufNeO.woff2`,e+`/_app/immutable/assets/inter-greek-ext-wght-normal.DlzME5K_.woff2`,e+`/_app/immutable/assets/inter-greek-wght-normal.CkhJZR-_.woff2`,e+`/_app/immutable/assets/inter-latin-ext-wght-normal.DO1Apj_S.woff2`,e+`/_app/immutable/assets/inter-latin-wght-normal.Dx4kXJAl.woff2`,e+`/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2`,e+`/_app/immutable/entry/start.B7_bvdWx.js`,e+`/_app/immutable/chunks/CEhA94eo.js`,e+`/_app/immutable/entry/app.6tYYuHtv.js`,e+`/_app/immutable/nodes/0.BfNK78ja.js`,e+`/_app/immutable/assets/0.DaFvPEiH.css`,e+`/_app/immutable/nodes/1.DocSAEhb.js`,e+`/_app/immutable/nodes/2.c02Tt4_b.js`,e+`/_app/immutable/assets/2.Rwbdhuvh.css`,e+`/_app/immutable/chunks/Bjy-W4x2.js`,e+`/_app/immutable/chunks/BjAaj2_R.js`,e+`/_app/immutable/chunks/Czmuk0Xq.js`,e+`/_app/immutable/chunks/D_inIiOK.js`,e+`/_app/immutable/chunks/uBIymjUX.js`,e+`/_app/immutable/chunks/xihTtKlq.js`],n=[e+`/favicon.png`,e+`/logo-mark.png`,e+`/manifest.webmanifest`];e+``;var r=`spacelens-shell-1795228214861`,i=[...t,...n,`/200.html`];self.addEventListener(`install`,e=>{e.waitUntil(caches.open(r).then(e=>e.addAll(i)).then(()=>self.skipWaiting()))}),self.addEventListener(`activate`,e=>{e.waitUntil(caches.keys().then(e=>Promise.all(e.filter(e=>e!==r).map(e=>caches.delete(e)))).then(()=>self.clients.claim()))}),self.addEventListener(`fetch`,e=>{let t=e.request;if(t.method!==`GET`)return;let n=new URL(t.url);if(n.origin===self.location.origin&&!n.pathname.startsWith(`/api/`)){if(t.mode===`navigate`){e.respondWith(fetch(t).then(e=>{let t=e.clone();return caches.open(r).then(e=>e.put(`/200.html`,t)),e}).catch(()=>caches.match(`/200.html`).then(e=>e??Response.error())));return}e.respondWith(caches.match(t).then(e=>e??fetch(t)))}});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@space-lens/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"description": "Solid-based Uniview TUI for Space Lens scanning and cleanup.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -27,31 +27,33 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
|
-
"build": "vite build --config vite.config.ts && node scripts/mark-cli-executable.mjs",
|
|
30
|
+
"build": "yarn workspace @space-lens/web build && vite build --config vite.config.ts && node scripts/mark-cli-executable.mjs && node scripts/bundle-web.mjs",
|
|
31
31
|
"dev": "vite-node src/cli.ts",
|
|
32
32
|
"lint": "tsc --noEmit",
|
|
33
33
|
"test": "vitest run src/ui.test.tsx && node --import tsx --test \"src/**/*.test.ts\"",
|
|
34
34
|
"typecheck": "tsc --noEmit"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
+
"space-lens": "^0.3.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
37
40
|
"@effect/cli": "^0.75.2",
|
|
38
41
|
"@effect/platform": "^0.96.1",
|
|
39
42
|
"@effect/platform-node": "^0.107.0",
|
|
40
43
|
"@effect/printer": "^0.49.0",
|
|
41
44
|
"@effect/printer-ansi": "^0.49.0",
|
|
42
45
|
"@effect/typeclass": "^0.40.0",
|
|
46
|
+
"@space-lens/host": "workspace:*",
|
|
47
|
+
"@types/node": "^25.9.3",
|
|
43
48
|
"@uniview/tui-solid": "0.0.4",
|
|
44
49
|
"effect": "^3.21.5",
|
|
45
50
|
"solid-js": "^1.9.14",
|
|
46
|
-
"space-lens": "^0.
|
|
47
|
-
"web-tree-sitter": "0.25.10"
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@types/node": "^25.9.3",
|
|
51
|
+
"space-lens": "^0.3.0",
|
|
51
52
|
"tsx": "^4.22.4",
|
|
52
53
|
"typescript": "^6.0.3",
|
|
53
54
|
"vite": "^8.1.5",
|
|
54
55
|
"vite-node": "^6.0.0",
|
|
55
|
-
"vitest": "^4.0.18"
|
|
56
|
+
"vitest": "^4.0.18",
|
|
57
|
+
"web-tree-sitter": "0.25.10"
|
|
56
58
|
}
|
|
57
59
|
}
|