@gaodefa/daocore 2026.5.90 → 2026.5.91
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/acp/control-plane/manager.d.ts +2 -1
- package/dist/{agent-command-COFQwKxZ.d.ts → agent-command-DQ1XgXqe.d.ts} +2 -38
- package/dist/{agent-harness-WlBoSv-g.d.ts → agent-harness-Bt_1zRJ1.d.ts} +1 -1
- package/dist/build-info.json +2 -2
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-cGJKLfJe.d.ts → channel-Czs81UUj.d.ts} +2 -2
- package/dist/{channel-lifecycle-C4NrMjdz.d.ts → channel-lifecycle-BXdiTu_h.d.ts} +1 -0
- package/dist/{channel-pairing-ndZVB-VX.d.ts → channel-pairing-qPwn6FAN.d.ts} +1 -1
- package/dist/cli-startup-metadata.json +8 -8
- package/dist/{components-D9TlXmrM.d.ts → components-u4gL95dv.d.ts} +1 -1
- package/dist/{components.modal-F1ooc12a.d.ts → components.modal-glHG-y8o.d.ts} +18 -18
- package/dist/extensions/anthropic/doctor-contract-api.d.ts +1 -1
- package/dist/extensions/browser/test-support.d.ts +1 -1
- package/dist/extensions/google/doctor-contract-api.d.ts +1 -1
- package/dist/extensions/image-generation-core/api.d.ts +1 -1
- package/dist/extensions/imessage/message-tool-api.d.ts +1 -1
- package/dist/extensions/imessage/runtime-api.d.ts +1 -1
- package/dist/extensions/mattermost/runtime-api.d.ts +7 -7
- package/dist/extensions/signal/api.d.ts +1 -1
- package/dist/extensions/signal/runtime-api.d.ts +2 -2
- package/dist/extensions/telegram/api.d.ts +1 -1
- package/dist/extensions/video-generation-core/api.d.ts +1 -1
- package/dist/extensions/webhooks/runtime-api.d.ts +2 -2
- package/dist/{hook-runtime-Cms52qXe.d.ts → hook-runtime-BBONf8H3.d.ts} +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/manager-DWN3qo90.d.ts +10 -0
- package/dist/{manager-CuzV3XAs.d.ts → manager.core-BRd2_lqA.d.ts} +1 -8
- package/dist/{pairing-challenge-EwSQYSud.d.ts → pairing-store-Cfy_zHzi.d.ts} +34 -34
- package/dist/plugin-sdk/.boundary-entry-shims.stamp +1 -1
- package/dist/plugin-sdk/src/commands/doctor.types.d.ts +0 -1
- package/dist/plugin-sdk/src/compat/legacy-names.d.ts +1 -1
- package/dist/plugin-sdk/src/plugins/manifest.d.ts +1 -1
- package/dist/reply-runtime-DUv2dRp3.d.ts +34 -0
- package/dist/{runtime-C3k-ZByi.d.ts → runtime-D21vC5Bd.d.ts} +1 -1
- package/dist/{runtime-api.actions-CzDO06T7.d.ts → runtime-api.actions-CClxRuYx.d.ts} +1 -1
- package/dist/{runtime-api.monitor-BP7gIISf.d.ts → runtime-api.monitor-DXEdIqiH.d.ts} +1 -1
- package/dist/{runtime-api.send-C_MjuzGA.d.ts → runtime-api.send-B5TgJp5s.d.ts} +2 -2
- package/dist/{runtime-doctor-_yVIDUi3.d.ts → runtime-doctor-DVYwKwIT.d.ts} +0 -1
- package/dist/{send-DaFuA5cD.d.ts → send-D95RJNJM.d.ts} +0 -1
- package/dist/{send-CTDEXMPp.d.ts → send-DZ4YhPHH.d.ts} +1 -1
- package/dist/{send.types-DU1uiiR9.d.ts → send.types-_f4omMzG.d.ts} +0 -1
- package/dist/subagent-registry-BVVgDSdq.d.ts +1 -0
- package/dist/subagent-registry-read-BVVgDSdq.d.ts +1 -0
- package/dist/task-registry-control.runtime.d.ts +1 -1
- package/dist/{test-fixtures-HY6a4nTW.d.ts → test-fixtures-xgg7UsEw.d.ts} +1 -0
- package/dist/test-support-BVVgDSdq.d.ts +1 -0
- package/dist/{typed-cases-BYRVKA1F.d.ts → typed-cases-v8PtmO3g.d.ts} +1 -1
- package/dist/{webhook-targets-DqetRJVn.d.ts → webhook-targets-C9cJD_kB.d.ts} +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/control-ui/apple-touch-icon.png +0 -0
- package/dist/control-ui/assets/agents-DvO9g2Tk.js +0 -1008
- package/dist/control-ui/assets/ar-DmY3OKJ7.js +0 -2
- package/dist/control-ui/assets/channel-config-extras-DR0vk_SW.js +0 -2
- package/dist/control-ui/assets/channels-Deu2vl2z.js +0 -367
- package/dist/control-ui/assets/cron-DW6zmmdx.js +0 -1013
- package/dist/control-ui/assets/de-nNWCMyC9.js +0 -2
- package/dist/control-ui/assets/debug-BqaHa0A-.js +0 -97
- package/dist/control-ui/assets/es-BcdhLNdf.js +0 -2
- package/dist/control-ui/assets/fa-DbS2z7VZ.js +0 -2
- package/dist/control-ui/assets/fr-CBqvw0rY.js +0 -2
- package/dist/control-ui/assets/id-DXES9f6X.js +0 -2
- package/dist/control-ui/assets/index-BdY3c692.js +0 -7401
- package/dist/control-ui/assets/index-BimYwq-S.css +0 -1
- package/dist/control-ui/assets/instances-BtvkcSuc.js +0 -57
- package/dist/control-ui/assets/it-DpT4ZVOU.js +0 -2
- package/dist/control-ui/assets/ja-JP-D8RXA_04.js +0 -2
- package/dist/control-ui/assets/ko-5en8VO8w.js +0 -2
- package/dist/control-ui/assets/logs-_ilCs_Cl.js +0 -74
- package/dist/control-ui/assets/nl-Bb10QoRg.js +0 -2
- package/dist/control-ui/assets/nodes-DneNdCyK.js +0 -436
- package/dist/control-ui/assets/pl-Y8UIOEIm.js +0 -2
- package/dist/control-ui/assets/preview-BBw3vauN.js +0 -2
- package/dist/control-ui/assets/pt-BR-DDsy5M68.js +0 -2
- package/dist/control-ui/assets/push-subscription-TTvs1whj.js +0 -2
- package/dist/control-ui/assets/sessions-CAZXkse2.js +0 -399
- package/dist/control-ui/assets/skills-CpmDIe0r.js +0 -314
- package/dist/control-ui/assets/skills-shared-uPuqmABA.js +0 -11
- package/dist/control-ui/assets/th-D_2DtFn6.js +0 -2
- package/dist/control-ui/assets/tr-DBsYZTmE.js +0 -2
- package/dist/control-ui/assets/uk-BUxHBc05.js +0 -2
- package/dist/control-ui/assets/vi-B67Eos5b.js +0 -2
- package/dist/control-ui/assets/zh-CN-CDrBrfT7.js +0 -2
- package/dist/control-ui/assets/zh-TW-CA4YEnf2.js +0 -2
- package/dist/control-ui/favicon-32.png +0 -0
- package/dist/control-ui/favicon-512.png +0 -0
- package/dist/control-ui/favicon.ico +0 -0
- package/dist/control-ui/favicon.svg +0 -12
- package/dist/control-ui/index.html +0 -322
- package/dist/control-ui/manifest.webmanifest +0 -40
- package/dist/control-ui/sw.js +0 -133
- package/dist/plugin-sdk/scripts/lib/plugin-sdk-doc-metadata.d.ts +0 -107
- /package/dist/{models-D6WT5XG8.d.ts → models-D6WT5XG82.d.ts} +0 -0
- /package/dist/{infra-runtime-BVVgDSdq.d.ts → runtime-api-cNeyoF3S.d.ts} +0 -0
- /package/dist/{runtime-api-BVVgDSdq2.d.ts → server-plugins-BVVgDSdq.d.ts} +0 -0
|
@@ -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-BdY3c692.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
|
-
}
|
package/dist/control-ui/sw.js
DELETED
|
@@ -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.90-b8d4206eb497";
|
|
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
|
-
});
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
export type PluginSdkDocCategory = "channel" | "core" | "legacy" | "provider" | "runtime" | "utilities";
|
|
2
|
-
export declare const pluginSdkDocMetadata: {
|
|
3
|
-
readonly index: {
|
|
4
|
-
readonly category: "legacy";
|
|
5
|
-
};
|
|
6
|
-
readonly core: {
|
|
7
|
-
readonly category: "core";
|
|
8
|
-
};
|
|
9
|
-
readonly health: {
|
|
10
|
-
readonly category: "core";
|
|
11
|
-
};
|
|
12
|
-
readonly "approval-runtime": {
|
|
13
|
-
readonly category: "runtime";
|
|
14
|
-
};
|
|
15
|
-
readonly "approval-auth-runtime": {
|
|
16
|
-
readonly category: "runtime";
|
|
17
|
-
};
|
|
18
|
-
readonly "approval-client-runtime": {
|
|
19
|
-
readonly category: "runtime";
|
|
20
|
-
};
|
|
21
|
-
readonly "approval-delivery-runtime": {
|
|
22
|
-
readonly category: "runtime";
|
|
23
|
-
};
|
|
24
|
-
readonly "approval-native-runtime": {
|
|
25
|
-
readonly category: "runtime";
|
|
26
|
-
};
|
|
27
|
-
readonly "approval-reply-runtime": {
|
|
28
|
-
readonly category: "runtime";
|
|
29
|
-
};
|
|
30
|
-
readonly "plugin-entry": {
|
|
31
|
-
readonly category: "core";
|
|
32
|
-
};
|
|
33
|
-
readonly "access-groups": {
|
|
34
|
-
readonly category: "channel";
|
|
35
|
-
};
|
|
36
|
-
readonly "channel-actions": {
|
|
37
|
-
readonly category: "channel";
|
|
38
|
-
};
|
|
39
|
-
readonly "channel-config-schema": {
|
|
40
|
-
readonly category: "channel";
|
|
41
|
-
};
|
|
42
|
-
readonly "channel-config-schema-legacy": {
|
|
43
|
-
readonly category: "channel";
|
|
44
|
-
};
|
|
45
|
-
readonly "channel-contract": {
|
|
46
|
-
readonly category: "channel";
|
|
47
|
-
};
|
|
48
|
-
readonly "channel-pairing": {
|
|
49
|
-
readonly category: "channel";
|
|
50
|
-
};
|
|
51
|
-
readonly "channel-ingress": {
|
|
52
|
-
readonly category: "channel";
|
|
53
|
-
};
|
|
54
|
-
readonly "channel-ingress-runtime": {
|
|
55
|
-
readonly category: "channel";
|
|
56
|
-
};
|
|
57
|
-
readonly "channel-reply-pipeline": {
|
|
58
|
-
readonly category: "channel";
|
|
59
|
-
};
|
|
60
|
-
readonly "channel-setup": {
|
|
61
|
-
readonly category: "channel";
|
|
62
|
-
};
|
|
63
|
-
readonly "command-auth": {
|
|
64
|
-
readonly category: "channel";
|
|
65
|
-
};
|
|
66
|
-
readonly zalouser: {
|
|
67
|
-
readonly category: "channel";
|
|
68
|
-
};
|
|
69
|
-
readonly "command-status": {
|
|
70
|
-
readonly category: "channel";
|
|
71
|
-
};
|
|
72
|
-
readonly "command-status-runtime": {
|
|
73
|
-
readonly category: "runtime";
|
|
74
|
-
};
|
|
75
|
-
readonly "secret-input": {
|
|
76
|
-
readonly category: "channel";
|
|
77
|
-
};
|
|
78
|
-
readonly "webhook-ingress": {
|
|
79
|
-
readonly category: "channel";
|
|
80
|
-
};
|
|
81
|
-
readonly "provider-onboard": {
|
|
82
|
-
readonly category: "provider";
|
|
83
|
-
};
|
|
84
|
-
readonly "provider-selection-runtime": {
|
|
85
|
-
readonly category: "provider";
|
|
86
|
-
};
|
|
87
|
-
readonly "runtime-store": {
|
|
88
|
-
readonly category: "runtime";
|
|
89
|
-
};
|
|
90
|
-
readonly "agent-runtime": {
|
|
91
|
-
readonly category: "runtime";
|
|
92
|
-
};
|
|
93
|
-
readonly "speech-core": {
|
|
94
|
-
readonly category: "provider";
|
|
95
|
-
};
|
|
96
|
-
readonly "tts-runtime": {
|
|
97
|
-
readonly category: "runtime";
|
|
98
|
-
};
|
|
99
|
-
readonly "allow-from": {
|
|
100
|
-
readonly category: "utilities";
|
|
101
|
-
};
|
|
102
|
-
readonly "reply-payload": {
|
|
103
|
-
readonly category: "utilities";
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
export type PluginSdkDocEntrypoint = keyof typeof pluginSdkDocMetadata;
|
|
107
|
-
export declare function resolvePluginSdkDocImportSpecifier(entrypoint: PluginSdkDocEntrypoint): string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|