jinzd-ai-cli 0.4.151 → 0.4.153
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/{batch-IPWV3DNK.js → batch-DBRN4MCC.js} +2 -2
- package/dist/{chunk-ZQX2NCQK.js → chunk-D62BVFP7.js} +1 -1
- package/dist/{chunk-MPMEYE43.js → chunk-EIIMBVXN.js} +2 -2
- package/dist/{chunk-YCF6S3P3.js → chunk-EYJQJZJ6.js} +1 -1
- package/dist/{chunk-WCBVNY6D.js → chunk-LJPB4ZER.js} +1 -1
- package/dist/{chunk-YJ2CUK5O.js → chunk-M4GJOBWN.js} +2 -1
- package/dist/{chunk-WXVG56NI.js → chunk-OP3I24WL.js} +3 -3
- package/dist/{chunk-K76YV4EL.js → chunk-OT2HLGSO.js} +1 -1
- package/dist/{chunk-75YT3SZI.js → chunk-TURORFH2.js} +1 -1
- package/dist/{chunk-MEM43AE7.js → chunk-UWW3EWER.js} +1 -1
- package/dist/{ci-YDMKYUQC.js → ci-UEEUSELV.js} +2 -2
- package/dist/{constants-GRKJCSZF.js → constants-43EVHE2E.js} +1 -1
- package/dist/{doctor-cli-R6ODVYFR.js → doctor-cli-ZT674MCQ.js} +4 -4
- package/dist/electron-server.js +9 -5
- package/dist/{hub-3MKH3BMA.js → hub-MDQNJOMV.js} +61 -3
- package/dist/{hub-server-AUMVPNU6.js → hub-server-VPXCBWLA.js} +1 -1
- package/dist/index.js +19 -17
- package/dist/{run-tests-XWEHN7DF.js → run-tests-DCT5LWBB.js} +1 -1
- package/dist/{run-tests-HYELAYSL.js → run-tests-EYZ2JZ4X.js} +2 -2
- package/dist/{server-P7WY7VEX.js → server-MQWFO2GJ.js} +4 -4
- package/dist/{server-32HM2KMX.js → server-OIYBFKS2.js} +14 -10
- package/dist/{task-orchestrator-EVJVR3HL.js → task-orchestrator-BGQBNKAI.js} +4 -4
- package/dist/web/client/app.js +2 -1
- package/dist/web/client/index.html +10 -6
- package/dist/web/client/sw.js +15 -26
- package/dist/web/client/vendor/daisyui-full.min.css +20 -0
- package/dist/web/client/vendor/github-dark.min.css +10 -0
- package/dist/web/client/vendor/github.min.css +10 -0
- package/dist/web/client/vendor/highlight.min.js +1213 -0
- package/dist/web/client/vendor/marked.min.js +69 -0
- package/dist/web/client/vendor/tailwind.js +83 -0
- package/package.json +1 -1
|
@@ -12,13 +12,17 @@
|
|
|
12
12
|
<link rel="apple-touch-icon" href="icon-192.png">
|
|
13
13
|
<link rel="icon" type="image/svg+xml" href="icon.svg">
|
|
14
14
|
<link rel="icon" type="image/png" sizes="192x192" href="icon-192.png">
|
|
15
|
-
<!-- Tailwind CSS + DaisyUI (
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
<!-- Tailwind CSS + DaisyUI (vendored locally — v0.4.153). These were on
|
|
16
|
+
cdn.tailwindcss.com / cdn.jsdelivr.net, which GFW blocks in CN; when the
|
|
17
|
+
CDN failed the whole UI rendered unstyled AND the `.hidden` login overlay
|
|
18
|
+
became visible (no users → "can't log in"). Serving locally makes the UI
|
|
19
|
+
work offline / behind GFW with zero behavior change. -->
|
|
20
|
+
<link href="vendor/daisyui-full.min.css" rel="stylesheet">
|
|
21
|
+
<script src="vendor/tailwind.js"></script>
|
|
18
22
|
<!-- Markdown + Code highlighting -->
|
|
19
|
-
<script src="
|
|
20
|
-
<link id="hljs-theme" rel="stylesheet" href="
|
|
21
|
-
<script src="
|
|
23
|
+
<script src="vendor/marked.min.js"></script>
|
|
24
|
+
<link id="hljs-theme" rel="stylesheet" href="vendor/github-dark.min.css">
|
|
25
|
+
<script src="vendor/highlight.min.js"></script>
|
|
22
26
|
<link rel="stylesheet" href="style.css">
|
|
23
27
|
</head>
|
|
24
28
|
<body class="bg-base-300 h-screen overflow-hidden">
|
package/dist/web/client/sw.js
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
* API calls and WebSocket are always network-first.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// v0.4.153: bumped v1 → v2 so the `activate` handler evicts the old cache.
|
|
8
|
+
// Without this, clients that cached the pre-fix index.html (which referenced
|
|
9
|
+
// GFW-blocked CDNs) would keep serving the broken page forever.
|
|
10
|
+
const CACHE_NAME = 'aicli-v2';
|
|
8
11
|
|
|
9
|
-
// App shell — files needed for offline-capable startup
|
|
12
|
+
// App shell — files needed for offline-capable startup. Now includes the
|
|
13
|
+
// vendored Tailwind/DaisyUI/marked/highlight.js assets (previously CDN-hosted),
|
|
14
|
+
// so the UI is fully self-contained and works behind a firewall / offline.
|
|
10
15
|
const APP_SHELL = [
|
|
11
16
|
'/',
|
|
12
17
|
'/index.html',
|
|
@@ -16,12 +21,12 @@ const APP_SHELL = [
|
|
|
16
21
|
'/icon.svg',
|
|
17
22
|
'/icon-192.png',
|
|
18
23
|
'/icon-512.png',
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'
|
|
24
|
-
'
|
|
24
|
+
'/vendor/daisyui-full.min.css',
|
|
25
|
+
'/vendor/tailwind.js',
|
|
26
|
+
'/vendor/marked.min.js',
|
|
27
|
+
'/vendor/highlight.min.js',
|
|
28
|
+
'/vendor/github-dark.min.css',
|
|
29
|
+
'/vendor/github.min.css',
|
|
25
30
|
];
|
|
26
31
|
|
|
27
32
|
self.addEventListener('install', (event) => {
|
|
@@ -51,24 +56,8 @@ self.addEventListener('fetch', (event) => {
|
|
|
51
56
|
return;
|
|
52
57
|
}
|
|
53
58
|
|
|
54
|
-
//
|
|
55
|
-
|
|
56
|
-
event.respondWith(
|
|
57
|
-
caches.match(event.request).then(cached => {
|
|
58
|
-
if (cached) return cached;
|
|
59
|
-
return fetch(event.request).then(response => {
|
|
60
|
-
if (response.ok) {
|
|
61
|
-
const clone = response.clone();
|
|
62
|
-
caches.open(CACHE_NAME).then(cache => cache.put(event.request, clone));
|
|
63
|
-
}
|
|
64
|
-
return response;
|
|
65
|
-
});
|
|
66
|
-
})
|
|
67
|
-
);
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// App shell: network-first with cache fallback (always get latest from server)
|
|
59
|
+
// App shell (now incl. same-origin /vendor/*): network-first with cache
|
|
60
|
+
// fallback (always get latest from server)
|
|
72
61
|
event.respondWith(
|
|
73
62
|
fetch(event.request)
|
|
74
63
|
.then(response => {
|