@gaodefa/daocore 2026.5.82 → 2026.5.84

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.
Files changed (53) hide show
  1. package/dist/build-info.json +3 -3
  2. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  3. package/dist/{channel-cGJKLfJe.d.ts → channel-Czs81UUj.d.ts} +2 -2
  4. package/dist/cli-startup-metadata.json +8 -8
  5. package/dist/{components-u4gL95dv.d.ts → components-D9TlXmrM.d.ts} +1 -1
  6. package/dist/{components.modal-glHG-y8o.d.ts → components.modal-F1ooc12a.d.ts} +18 -18
  7. package/dist/extensions/imessage/message-tool-api.d.ts +1 -1
  8. package/dist/plugin-sdk/.boundary-entry-shims.stamp +1 -1
  9. package/dist/{runtime-api.monitor-DXEdIqiH.d.ts → runtime-api.monitor-BP7gIISf.d.ts} +1 -1
  10. package/dist/{runtime-api.send-B5TgJp5s.d.ts → runtime-api.send-wXeDllRu.d.ts} +1 -1
  11. package/npm-shrinkwrap.json +2 -2
  12. package/package.json +1 -1
  13. package/dist/control-ui/apple-touch-icon.png +0 -0
  14. package/dist/control-ui/assets/agents-DFijMH8S.js +0 -1008
  15. package/dist/control-ui/assets/ar-DmY3OKJ7.js +0 -2
  16. package/dist/control-ui/assets/channel-config-extras-CVy2j62D.js +0 -2
  17. package/dist/control-ui/assets/channels-1SwHwehe.js +0 -367
  18. package/dist/control-ui/assets/cron-DVupFVep.js +0 -1013
  19. package/dist/control-ui/assets/de-nNWCMyC9.js +0 -2
  20. package/dist/control-ui/assets/debug-CqppPMYi.js +0 -97
  21. package/dist/control-ui/assets/es-BcdhLNdf.js +0 -2
  22. package/dist/control-ui/assets/fa-DbS2z7VZ.js +0 -2
  23. package/dist/control-ui/assets/fr-CBqvw0rY.js +0 -2
  24. package/dist/control-ui/assets/id-DXES9f6X.js +0 -2
  25. package/dist/control-ui/assets/index-BimYwq-S.css +0 -1
  26. package/dist/control-ui/assets/index-CbetMrc8.js +0 -7373
  27. package/dist/control-ui/assets/instances-U2owKZDr.js +0 -57
  28. package/dist/control-ui/assets/it-DpT4ZVOU.js +0 -2
  29. package/dist/control-ui/assets/ja-JP-D8RXA_04.js +0 -2
  30. package/dist/control-ui/assets/ko-5en8VO8w.js +0 -2
  31. package/dist/control-ui/assets/logs-CUHasqja.js +0 -74
  32. package/dist/control-ui/assets/nl-Bb10QoRg.js +0 -2
  33. package/dist/control-ui/assets/nodes-CbSgg_zh.js +0 -436
  34. package/dist/control-ui/assets/pl-Y8UIOEIm.js +0 -2
  35. package/dist/control-ui/assets/preview-BBw3vauN.js +0 -2
  36. package/dist/control-ui/assets/pt-BR-DDsy5M68.js +0 -2
  37. package/dist/control-ui/assets/push-subscription-TTvs1whj.js +0 -2
  38. package/dist/control-ui/assets/sessions-cg_nUhl6.js +0 -399
  39. package/dist/control-ui/assets/skills-B1KK1FPb.js +0 -314
  40. package/dist/control-ui/assets/skills-shared-D5OFZpKp.js +0 -11
  41. package/dist/control-ui/assets/th-D_2DtFn6.js +0 -2
  42. package/dist/control-ui/assets/tr-DBsYZTmE.js +0 -2
  43. package/dist/control-ui/assets/uk-BUxHBc05.js +0 -2
  44. package/dist/control-ui/assets/vi-B67Eos5b.js +0 -2
  45. package/dist/control-ui/assets/zh-CN-CDrBrfT7.js +0 -2
  46. package/dist/control-ui/assets/zh-TW-CA4YEnf2.js +0 -2
  47. package/dist/control-ui/favicon-32.png +0 -0
  48. package/dist/control-ui/favicon-512.png +0 -0
  49. package/dist/control-ui/favicon.ico +0 -0
  50. package/dist/control-ui/favicon.svg +0 -12
  51. package/dist/control-ui/index.html +0 -322
  52. package/dist/control-ui/manifest.webmanifest +0 -40
  53. package/dist/control-ui/sw.js +0 -133
@@ -1,322 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
6
- <title>DaoCore Control</title>
7
- <meta name="color-scheme" content="dark light" />
8
- <link rel="icon" type="image/svg+xml" href="./favicon.svg" />
9
- <link rel="icon" type="image/png" sizes="32x32" href="./favicon-32.png" />
10
- <link rel="apple-touch-icon" sizes="180x180" href="./apple-touch-icon.png" />
11
- <link rel="manifest" href="manifest.webmanifest" />
12
- <script>
13
- (function () {
14
- var THEMES = { claw: 1, knot: 1, dash: 1 };
15
- var MODES = { system: 1, light: 1, dark: 1 };
16
- var LEGACY = {
17
- dark: "claw:dark",
18
- light: "claw:light",
19
- openknot: "knot:dark",
20
- fieldmanual: "dash:dark",
21
- clawdash: "dash:light",
22
- system: "claw:system",
23
- };
24
- try {
25
- var keys = Object.keys(localStorage);
26
- var raw;
27
- for (var i = 0; i < keys.length; i++) {
28
- if (keys[i].indexOf("daocore.control.settings.v1") === 0) {
29
- raw = localStorage.getItem(keys[i]);
30
- if (raw) break;
31
- }
32
- }
33
- if (!raw) return;
34
- var s = JSON.parse(raw);
35
- var t = s && s.theme;
36
- var m = s && s.themeMode;
37
- if (typeof t !== "string") t = "";
38
- if (typeof m !== "string") m = "";
39
- var legacy = LEGACY[t];
40
- var theme = THEMES[t] ? t : legacy ? legacy.split(":")[0] : "claw";
41
- var mode = MODES[m] ? m : legacy ? legacy.split(":")[1] : "system";
42
- if (mode === "system") {
43
- mode = window.matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
44
- }
45
- var resolved =
46
- theme === "knot"
47
- ? mode === "light"
48
- ? "openknot-light"
49
- : "openknot"
50
- : theme === "dash"
51
- ? mode === "light"
52
- ? "dash-light"
53
- : "dash"
54
- : mode === "light"
55
- ? "light"
56
- : "dark";
57
- document.documentElement.setAttribute("data-theme", resolved);
58
- document.documentElement.setAttribute(
59
- "data-theme-mode",
60
- resolved.indexOf("light") !== -1 ? "light" : "dark",
61
- );
62
- } catch (e) {}
63
- })();
64
- </script>
65
- <style>
66
- body.daocore-mount-fallback-active {
67
- margin: 0;
68
- min-width: 320px;
69
- color: #eef4f8;
70
- background: #101418;
71
- font-family:
72
- Inter,
73
- ui-sans-serif,
74
- system-ui,
75
- -apple-system,
76
- BlinkMacSystemFont,
77
- "Segoe UI",
78
- sans-serif;
79
- }
80
-
81
- body.daocore-mount-fallback-active daocore-app {
82
- display: none;
83
- }
84
-
85
- .mount-fallback {
86
- box-sizing: border-box;
87
- min-height: 100vh;
88
- padding: 24px;
89
- place-items: center;
90
- }
91
-
92
- .mount-fallback:not([hidden]) {
93
- display: grid;
94
- }
95
-
96
- .mount-fallback__panel {
97
- box-sizing: border-box;
98
- width: min(100%, 640px);
99
- border: 1px solid rgba(148, 163, 184, 0.28);
100
- border-radius: 8px;
101
- background: #151b21;
102
- box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
103
- padding: 28px;
104
- }
105
-
106
- .mount-fallback__eyebrow {
107
- margin: 0 0 10px;
108
- color: #9fb0bd;
109
- font-size: 0.78rem;
110
- font-weight: 700;
111
- letter-spacing: 0.08em;
112
- text-transform: uppercase;
113
- }
114
-
115
- .mount-fallback__panel h1 {
116
- margin: 0;
117
- color: inherit;
118
- font-size: clamp(1.5rem, 3vw, 2rem);
119
- line-height: 1.15;
120
- }
121
-
122
- .mount-fallback__panel p {
123
- margin: 16px 0 0;
124
- color: #c8d3da;
125
- font-size: 1rem;
126
- line-height: 1.6;
127
- }
128
-
129
- .mount-fallback__panel ul {
130
- margin: 18px 0 0;
131
- padding-left: 1.2rem;
132
- color: #c8d3da;
133
- line-height: 1.6;
134
- }
135
-
136
- .mount-fallback__panel a {
137
- color: #8bd3ff;
138
- text-decoration-thickness: 0.08em;
139
- text-underline-offset: 0.18em;
140
- }
141
-
142
- .mount-fallback__actions {
143
- display: flex;
144
- flex-wrap: wrap;
145
- gap: 10px;
146
- margin-top: 24px;
147
- }
148
-
149
- .mount-fallback__button {
150
- min-height: 42px;
151
- border: 1px solid rgba(148, 163, 184, 0.36);
152
- border-radius: 6px;
153
- padding: 0 16px;
154
- color: inherit;
155
- background: transparent;
156
- font: inherit;
157
- font-weight: 700;
158
- cursor: pointer;
159
- }
160
-
161
- .mount-fallback__button--primary {
162
- border-color: #66c2ff;
163
- color: #061019;
164
- background: #8bd3ff;
165
- }
166
-
167
- .mount-fallback__panel:focus {
168
- outline: none;
169
- }
170
-
171
- .mount-fallback__button:focus-visible,
172
- .mount-fallback__panel a:focus-visible {
173
- outline: 3px solid #f9c74f;
174
- outline-offset: 3px;
175
- }
176
-
177
- html[data-theme-mode="light"] body.daocore-mount-fallback-active {
178
- color: #151b21;
179
- background: #f5f7fa;
180
- }
181
-
182
- html[data-theme-mode="light"] .mount-fallback__panel {
183
- border-color: rgba(71, 85, 105, 0.22);
184
- background: #ffffff;
185
- box-shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
186
- }
187
-
188
- html[data-theme-mode="light"] .mount-fallback__eyebrow,
189
- html[data-theme-mode="light"] .mount-fallback__panel p,
190
- html[data-theme-mode="light"] .mount-fallback__panel ul {
191
- color: #4b5963;
192
- }
193
-
194
- html[data-theme-mode="light"] .mount-fallback__panel a {
195
- color: #0369a1;
196
- }
197
- </style>
198
- <script type="module" crossorigin src="./assets/index-CbetMrc8.js"></script>
199
- <link rel="stylesheet" crossorigin href="./assets/index-BimYwq-S.css">
200
- </head>
201
- <body>
202
- <daocore-app></daocore-app>
203
- <section
204
- id="daocore-mount-fallback"
205
- class="mount-fallback"
206
- data-daocore-mount-timeout-ms="12000"
207
- role="alert"
208
- aria-labelledby="daocore-mount-fallback-title"
209
- hidden
210
- >
211
- <div class="mount-fallback__panel" tabindex="-1">
212
- <p class="mount-fallback__eyebrow">DaoCore Control UI</p>
213
- <h1 id="daocore-mount-fallback-title">Control UI did not start</h1>
214
- <p>
215
- The browser loaded the static page, but the app bundle did not register the
216
- <code>daocore-app</code> web component. A browser extension or early content script may
217
- be blocking module execution.
218
- </p>
219
- <ul>
220
- <li>Try again in a clean browser profile or private window.</li>
221
- <li>Disable extensions that run on all pages, then reload this dashboard.</li>
222
- <li>
223
- See
224
- <a
225
- href="https://docs.daocore.ai/web/control-ui#blank-control-ui-page"
226
- target="_blank"
227
- rel="noopener noreferrer"
228
- >Control UI troubleshooting</a
229
- >.
230
- </li>
231
- </ul>
232
- <div class="mount-fallback__actions">
233
- <button
234
- type="button"
235
- id="daocore-mount-retry"
236
- class="mount-fallback__button mount-fallback__button--primary"
237
- >
238
- Try again
239
- </button>
240
- <button type="button" id="daocore-mount-wait" class="mount-fallback__button">
241
- Keep waiting
242
- </button>
243
- </div>
244
- </div>
245
- </section>
246
- <script>
247
- (function () {
248
- var tagName = "daocore-app";
249
- var app = document.querySelector(tagName);
250
- var fallback = document.getElementById("daocore-mount-fallback");
251
- if (!app || !fallback) return;
252
-
253
- var panel = fallback.querySelector(".mount-fallback__panel");
254
- var retry = document.getElementById("daocore-mount-retry");
255
- var wait = document.getElementById("daocore-mount-wait");
256
- var rawDelay = Number(fallback.getAttribute("data-daocore-mount-timeout-ms"));
257
- var delay = Number.isFinite(rawDelay) && rawDelay > 0 ? rawDelay : 12000;
258
- var timer;
259
-
260
- function appMounted() {
261
- try {
262
- return Boolean(
263
- app.isConnected &&
264
- window.customElements &&
265
- typeof window.customElements.get === "function" &&
266
- window.customElements.get(tagName),
267
- );
268
- } catch (e) {
269
- return false;
270
- }
271
- }
272
-
273
- function hideFallback() {
274
- fallback.hidden = true;
275
- document.body.classList.remove("daocore-mount-fallback-active");
276
- }
277
-
278
- function showFallback() {
279
- if (appMounted()) return;
280
- fallback.hidden = false;
281
- document.body.classList.add("daocore-mount-fallback-active");
282
- if (panel && typeof panel.focus === "function") {
283
- try {
284
- panel.focus({ preventScroll: true });
285
- } catch (e) {
286
- panel.focus();
287
- }
288
- }
289
- }
290
-
291
- function armFallbackTimer() {
292
- window.clearTimeout(timer);
293
- timer = window.setTimeout(showFallback, delay);
294
- }
295
-
296
- armFallbackTimer();
297
-
298
- if (window.customElements && typeof window.customElements.whenDefined === "function") {
299
- window.customElements.whenDefined(tagName).then(
300
- function () {
301
- window.clearTimeout(timer);
302
- hideFallback();
303
- },
304
- function () {},
305
- );
306
- }
307
-
308
- if (retry) {
309
- retry.addEventListener("click", function () {
310
- window.location.reload();
311
- });
312
- }
313
- if (wait) {
314
- wait.addEventListener("click", function () {
315
- hideFallback();
316
- armFallbackTimer();
317
- });
318
- }
319
- })();
320
- </script>
321
- </body>
322
- </html>
@@ -1,40 +0,0 @@
1
- {
2
- "name": "DaoCore Control",
3
- "short_name": "DaoCore",
4
- "description": "DaoCore AI 网关控制面板",
5
- "start_url": "./",
6
- "display": "standalone",
7
- "theme_color": "#050810",
8
- "background_color": "#050810",
9
- "icons": [
10
- {
11
- "src": "./favicon.svg",
12
- "sizes": "any",
13
- "type": "image/svg+xml",
14
- "purpose": "any"
15
- },
16
- {
17
- "src": "./favicon-32.png",
18
- "sizes": "32x32",
19
- "type": "image/png"
20
- },
21
- {
22
- "src": "./apple-touch-icon.png",
23
- "sizes": "180x180",
24
- "type": "image/png"
25
- }
26
- ],
27
- "related_applications": [
28
- {
29
- "platform": "macos",
30
- "url": "daocore://",
31
- "id": "ai.daocore.mac"
32
- }
33
- ],
34
- "protocol_handlers": [
35
- {
36
- "protocol": "web+daocore",
37
- "url": "./?deeplink=%s"
38
- }
39
- ]
40
- }
@@ -1,133 +0,0 @@
1
- // DaoCore Control – Service Worker
2
- // Handles offline caching and push notifications.
3
-
4
- const CACHE_PREFIX = "daocore-control-";
5
- const EMBEDDED_CACHE_VERSION = "2026.5.82-5c0f8041accf";
6
- const URL_CACHE_VERSION = new URL(self.location.href).searchParams
7
- .get("v")
8
- ?.replace(/[^a-zA-Z0-9._-]/g, "-");
9
- const CACHE_VERSION =
10
- (EMBEDDED_CACHE_VERSION !== "__DAOCORE_CONTROL_UI_BUILD_ID__"
11
- ? EMBEDDED_CACHE_VERSION
12
- : URL_CACHE_VERSION) || "dev";
13
- const CACHE_NAME = `${CACHE_PREFIX}${CACHE_VERSION}`;
14
- const CONTROL_CACHE_LIMIT = 3;
15
-
16
- // Minimal app-shell files to precache.
17
- const PRECACHE_URLS = ["./"];
18
-
19
- self.addEventListener("install", (event) => {
20
- event.waitUntil(caches.open(CACHE_NAME).then((cache) => cache.addAll(PRECACHE_URLS)));
21
- self.skipWaiting();
22
- });
23
-
24
- self.addEventListener("activate", (event) => {
25
- // Keep a small prior-build window so open tabs can still load old hashed chunks after updates.
26
- event.waitUntil(
27
- Promise.all([
28
- self.clients.claim(),
29
- caches.keys().then((keys) => {
30
- const controlKeys = keys.filter((key) => key.startsWith(CACHE_PREFIX));
31
- const priorCacheLimit = Math.max(0, CONTROL_CACHE_LIMIT - 1);
32
- const retained = new Set([
33
- ...controlKeys.filter((key) => key !== CACHE_NAME).slice(-priorCacheLimit),
34
- CACHE_NAME,
35
- ]);
36
- return Promise.all(
37
- controlKeys.filter((key) => !retained.has(key)).map((key) => caches.delete(key)),
38
- );
39
- }),
40
- ]),
41
- );
42
- });
43
-
44
- self.addEventListener("fetch", (event) => {
45
- const url = new URL(event.request.url);
46
-
47
- // Skip non-GET and cross-origin requests.
48
- if (event.request.method !== "GET" || url.origin !== self.location.origin) {
49
- return;
50
- }
51
-
52
- // Skip non-UI routes — API, RPC, and plugin routes should never be cached.
53
- if (
54
- url.pathname.startsWith("/api/") ||
55
- url.pathname.startsWith("/rpc") ||
56
- url.pathname.startsWith("/plugins/")
57
- ) {
58
- return;
59
- }
60
-
61
- // Cache-first for hashed assets; network-first for HTML/other.
62
- if (url.pathname.includes("/assets/")) {
63
- event.respondWith(
64
- caches.match(event.request).then(
65
- (cached) =>
66
- cached ||
67
- fetch(event.request).then((response) => {
68
- if (response.ok) {
69
- const clone = response.clone();
70
- void caches.open(CACHE_NAME).then((cache) => cache.put(event.request, clone));
71
- }
72
- return response;
73
- }),
74
- ),
75
- );
76
- } else {
77
- event.respondWith(
78
- fetch(event.request)
79
- .then((response) => {
80
- if (response.ok) {
81
- const clone = response.clone();
82
- void caches.open(CACHE_NAME).then((cache) => cache.put(event.request, clone));
83
- }
84
- return response;
85
- })
86
- .catch(() => caches.match(event.request)),
87
- );
88
- }
89
- });
90
-
91
- // --- Web Push ---
92
-
93
- self.addEventListener("push", (event) => {
94
- if (!event.data) {
95
- return;
96
- }
97
-
98
- let data;
99
- try {
100
- data = event.data.json();
101
- } catch {
102
- data = { title: "DaoCore", body: event.data.text() };
103
- }
104
-
105
- const title = data.title || "DaoCore";
106
- const options = {
107
- body: data.body || "",
108
- icon: "./apple-touch-icon.png",
109
- badge: "./favicon-32.png",
110
- tag: data.tag || "daocore-notification",
111
- data: { url: data.url || "./" },
112
- };
113
-
114
- event.waitUntil(self.registration.showNotification(title, options));
115
- });
116
-
117
- self.addEventListener("notificationclick", (event) => {
118
- event.notification.close();
119
-
120
- const targetUrl = event.notification.data?.url || "./";
121
-
122
- event.waitUntil(
123
- self.clients.matchAll({ type: "window", includeUncontrolled: true }).then((clients) => {
124
- // Focus an existing window if one is open.
125
- for (const client of clients) {
126
- if (new URL(client.url).pathname === new URL(targetUrl, self.location.origin).pathname) {
127
- return client.focus();
128
- }
129
- }
130
- return self.clients.openWindow(targetUrl);
131
- }),
132
- );
133
- });