@hyprnos/dsh-remote-plugin 0.0.0-stage → 0.8.8
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.en.md +61 -0
- package/README.md +60 -2
- package/apk/dsh-remote.apk +0 -0
- package/approval-summary.mjs +115 -0
- package/client.js +197 -0
- package/cordis.patch.yml +5 -0
- package/doctor-skill.mjs +99 -0
- package/doctor-target.mjs +24 -0
- package/file-delivery.mjs +84 -0
- package/gateway-stats.cjs +501 -0
- package/gateway.cjs +8451 -0
- package/index.mjs +1784 -0
- package/insights.mjs +111 -0
- package/market.mjs +86 -0
- package/package.json +71 -4
- package/peak-reminders.mjs +50 -0
- package/plugin-center.mjs +777 -0
- package/plugin-transaction.mjs +300 -0
- package/public/activity.js +188 -0
- package/public/admin.html +820 -0
- package/public/admin.js +1167 -0
- package/public/announcement-forms.js +89 -0
- package/public/announcements.json +464 -0
- package/public/app.js +8826 -0
- package/public/approval-records.js +301 -0
- package/public/approval-summary.js +78 -0
- package/public/build.json +5 -0
- package/public/cache-upgrade.js +51 -0
- package/public/chat-copy.js +59 -0
- package/public/chat-files.js +87 -0
- package/public/desktop/desktop.css +816 -0
- package/public/desktop/desktop.html +871 -0
- package/public/desktop/desktop.js +4548 -0
- package/public/desktop/i18n.js +85 -0
- package/public/diagnostics.js +203 -0
- package/public/doctor-entry.js +94 -0
- package/public/doctor.css +205 -0
- package/public/doctor.js +769 -0
- package/public/donate.png +0 -0
- package/public/e2ee-transport.js +219 -0
- package/public/extensions.css +109 -0
- package/public/extensions.js +215 -0
- package/public/file-inbox.css +66 -0
- package/public/file-inbox.js +289 -0
- package/public/genui.css +8 -0
- package/public/genui.js +254 -0
- package/public/history.js +304 -0
- package/public/i18n.js +57 -0
- package/public/icon.svg +12 -0
- package/public/image-cache.js +141 -0
- package/public/image-preview.js +290 -0
- package/public/index.html +1548 -0
- package/public/insights.css +28 -0
- package/public/insights.js +290 -0
- package/public/jsqr.min.js +10104 -0
- package/public/lan-discovery.js +94 -0
- package/public/link-check.js +109 -0
- package/public/manifest.webmanifest +16 -0
- package/public/md.js +333 -0
- package/public/morphicons-init.js +41 -0
- package/public/motion.js +557 -0
- package/public/network.js +100 -0
- package/public/onboarding.css +36 -0
- package/public/onboarding.js +253 -0
- package/public/operations.js +141 -0
- package/public/permission-presets.js +159 -0
- package/public/plugin-center.css +120 -0
- package/public/plugin-center.js +666 -0
- package/public/plugin-icon.svg +5 -0
- package/public/plugin.html +68 -0
- package/public/plugin.js +211 -0
- package/public/qrcode.min.js +2297 -0
- package/public/relay-autopair.js +251 -0
- package/public/relay-devices.js +80 -0
- package/public/relay-settings.css +24 -0
- package/public/relay-settings.js +194 -0
- package/public/remote-state.js +27 -0
- package/public/remote-ui.css +148 -0
- package/public/remote-ui.js +243 -0
- package/public/session-deck.css +79 -0
- package/public/session-deck.js +180 -0
- package/public/session-presets.js +47 -0
- package/public/setup.css +18 -0
- package/public/setup.js +213 -0
- package/public/sha256.js +119 -0
- package/public/skills.css +81 -0
- package/public/skills.js +202 -0
- package/public/skins/blue-fish/DESIGN.md +24 -0
- package/public/skins/blue-fish/face.png +0 -0
- package/public/skins/blue-fish/icon-blush.png +0 -0
- package/public/skins/blue-fish/icon-sleep.png +0 -0
- package/public/skins/blue-fish/icon-smile.png +0 -0
- package/public/skins/blue-fish/icon-star.png +0 -0
- package/public/skins/blue-fish/icon-wink.png +0 -0
- package/public/skins/blue-fish/icon.png +0 -0
- package/public/skins/blue-fish/mascot.png +0 -0
- package/public/skins/blue-fish/pattern.png +0 -0
- package/public/skins/blue-fish/preview.html +12 -0
- package/public/skins/blue-fish/skin.css +122 -0
- package/public/skins/blue-fish/sparkles.svg +18 -0
- package/public/skins/bocchi/DESIGN.md +99 -0
- package/public/skins/bocchi/face.png +0 -0
- package/public/skins/bocchi/grain.png +0 -0
- package/public/skins/bocchi/icon-blush.png +0 -0
- package/public/skins/bocchi/icon-sleep.png +0 -0
- package/public/skins/bocchi/icon-smile.png +0 -0
- package/public/skins/bocchi/icon-star.png +0 -0
- package/public/skins/bocchi/icon-wink.png +0 -0
- package/public/skins/bocchi/icon.png +0 -0
- package/public/skins/bocchi/pattern-soft.png +0 -0
- package/public/skins/bocchi/pattern.png +0 -0
- package/public/skins/bocchi/preview.html +55 -0
- package/public/skins/bocchi/skin.css +233 -0
- package/public/skins/bocchi/stage-bg.png +0 -0
- package/public/skins/bocchi/stage-soft.png +0 -0
- package/public/skins/bocchi/stand.png +0 -0
- package/public/skins/bocchi/sticker-guitar.png +0 -0
- package/public/skins/kessoku/DESIGN.md +38 -0
- package/public/skins/kessoku/grain.png +0 -0
- package/public/skins/kessoku/skin.css +212 -0
- package/public/skins/kita/SOURCES.json +51 -0
- package/public/skins/kita/face.png +0 -0
- package/public/skins/kita/icon-live.png +0 -0
- package/public/skins/kita/icon-reddress.png +0 -0
- package/public/skins/kita/icon-seifuku.png +0 -0
- package/public/skins/kita/pattern.png +0 -0
- package/public/skins/kita/preview.html +56 -0
- package/public/skins/kita/skin.css +26 -0
- package/public/skins/kita/stand.png +0 -0
- package/public/skins/kita/sticker-live.png +0 -0
- package/public/skins/nijika/SOURCES.json +51 -0
- package/public/skins/nijika/face.png +0 -0
- package/public/skins/nijika/icon-live.png +0 -0
- package/public/skins/nijika/icon-reddress.png +0 -0
- package/public/skins/nijika/icon-seifuku.png +0 -0
- package/public/skins/nijika/pattern.png +0 -0
- package/public/skins/nijika/preview.html +56 -0
- package/public/skins/nijika/skin.css +25 -0
- package/public/skins/nijika/stand.png +0 -0
- package/public/skins/nijika/sticker-live.png +0 -0
- package/public/skins/penguin/DESIGN.md +33 -0
- package/public/skins/penguin/SOURCES.json +22 -0
- package/public/skins/penguin/aic-blueprint.svg +24 -0
- package/public/skins/penguin/endfield-triangles.svg +4 -0
- package/public/skins/penguin/face.png +0 -0
- package/public/skins/penguin/icon-blush.png +0 -0
- package/public/skins/penguin/icon-dizzy.png +0 -0
- package/public/skins/penguin/icon-laugh.png +0 -0
- package/public/skins/penguin/icon-sleep.png +0 -0
- package/public/skins/penguin/icon-smile.png +0 -0
- package/public/skins/penguin/icon-star.png +0 -0
- package/public/skins/penguin/icon-wink.png +0 -0
- package/public/skins/penguin/icon.png +0 -0
- package/public/skins/penguin/mascot.png +0 -0
- package/public/skins/penguin/pattern-night.png +0 -0
- package/public/skins/penguin/pattern.png +0 -0
- package/public/skins/penguin/preview.html +12 -0
- package/public/skins/penguin/skin.css +212 -0
- package/public/skins/ryo/SOURCES.json +51 -0
- package/public/skins/ryo/face.png +0 -0
- package/public/skins/ryo/icon-live.png +0 -0
- package/public/skins/ryo/icon-reddress.png +0 -0
- package/public/skins/ryo/icon-seifuku.png +0 -0
- package/public/skins/ryo/pattern.png +0 -0
- package/public/skins/ryo/preview.html +56 -0
- package/public/skins/ryo/skin.css +25 -0
- package/public/skins/ryo/stand.png +0 -0
- package/public/skins/ryo/sticker-live.png +0 -0
- package/public/sponsor-entry.js +21 -0
- package/public/styles.css +1494 -0
- package/public/subagents.css +61 -0
- package/public/subagents.js +275 -0
- package/public/task-board.js +109 -0
- package/public/teams.js +98 -0
- package/public/theme-picker.css +58 -0
- package/public/theme-vars.css +1044 -0
- package/public/theme.js +166 -0
- package/public/transcribe-core.js +74 -0
- package/public/turn-results.js +121 -0
- package/public/update.json +49 -0
- package/public/vendor/gsap/NOTICE.md +10 -0
- package/public/vendor/gsap/gsap.min.js +11 -0
- package/public/vendor/morphicons/LICENSE +21 -0
- package/public/vendor/morphicons/README.md +10 -0
- package/public/vendor/morphicons/controller-CXZuwJ_M.js +152 -0
- package/public/vendor/morphicons/dom.js +206 -0
- package/public/vendor/morphicons/element.js +261 -0
- package/public/vendor/morphicons/normalize-CYnN3Npw.js +540 -0
- package/public/vendor/morphicons/spring-CFHloqPP.js +623 -0
- package/public/version.json +3 -0
- package/public/voice-input.js +739 -0
- package/public/workflow.css +365 -0
- package/public/workflow.js +409 -0
- package/session-file.mjs +39 -0
- package/skills/dsh-remote-doctor/SKILL.md +186 -0
- package/skills/dsh-remote-doctor/references/wiki/README.md +40 -0
- package/skills/dsh-remote-doctor/references/wiki/ai-guide.md +61 -0
- package/skills/dsh-remote-doctor/references/wiki/connection.md +76 -0
- package/skills/dsh-remote-doctor/references/wiki/errors.md +26 -0
- package/skills/dsh-remote-doctor/references/wiki/evidence.md +44 -0
- package/skills/dsh-remote-doctor/references/wiki/files.md +31 -0
- package/skills/dsh-remote-doctor/references/wiki/maintenance.md +30 -0
- package/skills/dsh-remote-doctor/references/wiki/notifications.md +33 -0
- package/skills/dsh-remote-doctor/references/wiki/operations.md +32 -0
- package/skills/dsh-remote-doctor/references/wiki/plugins.md +90 -0
- package/skills/dsh-remote-doctor/references/wiki/sessions.md +45 -0
- package/skills/dsh-remote-doctor/references/wiki/sources.md +27 -0
- package/skills.mjs +53 -0
- package/task-board.mjs +57 -0
- package/teams.mjs +58 -0
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { n as createController, t as computeInitialD } from "./controller-CXZuwJ_M.js";
|
|
2
|
+
//#region src/element/index.ts
|
|
3
|
+
const SVG_NS = "http://www.w3.org/2000/svg";
|
|
4
|
+
const REACTIVE = [
|
|
5
|
+
"icon",
|
|
6
|
+
"from",
|
|
7
|
+
"to",
|
|
8
|
+
"progress",
|
|
9
|
+
"spring",
|
|
10
|
+
"reducedMotion"
|
|
11
|
+
];
|
|
12
|
+
const PRESENTATION = /* @__PURE__ */ new Set([
|
|
13
|
+
"size",
|
|
14
|
+
"color",
|
|
15
|
+
"stroke-width",
|
|
16
|
+
"absolute-stroke-width",
|
|
17
|
+
"label"
|
|
18
|
+
]);
|
|
19
|
+
const Base = typeof HTMLElement === "undefined" ? class {} : HTMLElement;
|
|
20
|
+
var MorphIconElement = class extends Base {
|
|
21
|
+
static observedAttributes = [
|
|
22
|
+
"icon",
|
|
23
|
+
"from",
|
|
24
|
+
"to",
|
|
25
|
+
"progress",
|
|
26
|
+
"spring",
|
|
27
|
+
"reduced-motion",
|
|
28
|
+
"size",
|
|
29
|
+
"color",
|
|
30
|
+
"stroke-width",
|
|
31
|
+
"absolute-stroke-width",
|
|
32
|
+
"label"
|
|
33
|
+
];
|
|
34
|
+
#props = {};
|
|
35
|
+
#ctrl = null;
|
|
36
|
+
#path = null;
|
|
37
|
+
#adopted = false;
|
|
38
|
+
#preConnectDirty = false;
|
|
39
|
+
#size = "24";
|
|
40
|
+
#color = "currentColor";
|
|
41
|
+
#strokeWidth = "2";
|
|
42
|
+
#absoluteStrokeWidth = false;
|
|
43
|
+
#label = null;
|
|
44
|
+
get icon() {
|
|
45
|
+
return this.#props.icon;
|
|
46
|
+
}
|
|
47
|
+
set icon(v) {
|
|
48
|
+
this.#props.icon = v;
|
|
49
|
+
this.#watch();
|
|
50
|
+
}
|
|
51
|
+
get from() {
|
|
52
|
+
return this.#props.from;
|
|
53
|
+
}
|
|
54
|
+
set from(v) {
|
|
55
|
+
this.#props.from = v;
|
|
56
|
+
this.#watch();
|
|
57
|
+
}
|
|
58
|
+
get to() {
|
|
59
|
+
return this.#props.to;
|
|
60
|
+
}
|
|
61
|
+
set to(v) {
|
|
62
|
+
this.#props.to = v;
|
|
63
|
+
this.#watch();
|
|
64
|
+
}
|
|
65
|
+
get progress() {
|
|
66
|
+
return this.#props.progress;
|
|
67
|
+
}
|
|
68
|
+
set progress(v) {
|
|
69
|
+
this.#props.progress = v;
|
|
70
|
+
this.#watch();
|
|
71
|
+
}
|
|
72
|
+
get spring() {
|
|
73
|
+
return this.#props.spring;
|
|
74
|
+
}
|
|
75
|
+
set spring(v) {
|
|
76
|
+
this.#props.spring = v;
|
|
77
|
+
this.#watch();
|
|
78
|
+
}
|
|
79
|
+
get reducedMotion() {
|
|
80
|
+
return this.#props.reducedMotion;
|
|
81
|
+
}
|
|
82
|
+
set reducedMotion(v) {
|
|
83
|
+
this.#props.reducedMotion = v;
|
|
84
|
+
this.#watch();
|
|
85
|
+
}
|
|
86
|
+
morphTo(icon, spring) {
|
|
87
|
+
const ctrl = this.#ctrl;
|
|
88
|
+
if (!ctrl) {
|
|
89
|
+
this.#imperativeBeforeDriver(icon);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
ctrl.morphTo(icon, spring ?? this.#props.spring);
|
|
93
|
+
}
|
|
94
|
+
set(icon) {
|
|
95
|
+
const ctrl = this.#ctrl;
|
|
96
|
+
if (!ctrl) {
|
|
97
|
+
this.#imperativeBeforeDriver(icon);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
ctrl.set(icon);
|
|
101
|
+
}
|
|
102
|
+
connectedCallback() {
|
|
103
|
+
for (const key of REACTIVE) this.#upgradeProperty(key);
|
|
104
|
+
if (!this.#path) this.#adoptOrRender();
|
|
105
|
+
if (this.style.display === "") this.style.display = "contents";
|
|
106
|
+
if (this.#path && !this.#ctrl) {
|
|
107
|
+
const path = this.#path;
|
|
108
|
+
const gate = this.#adopted && !this.#preConnectDirty;
|
|
109
|
+
this.#adopted = false;
|
|
110
|
+
this.#ctrl = createController(this.#props);
|
|
111
|
+
if (gate) {
|
|
112
|
+
let armed = false;
|
|
113
|
+
const gated = { setAttribute(name, value) {
|
|
114
|
+
if (armed) path.setAttribute(name, value);
|
|
115
|
+
} };
|
|
116
|
+
try {
|
|
117
|
+
this.#ctrl.mount(gated, this.#props);
|
|
118
|
+
} finally {
|
|
119
|
+
armed = true;
|
|
120
|
+
}
|
|
121
|
+
} else this.#ctrl.mount(path, this.#props);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
disconnectedCallback() {
|
|
125
|
+
this.#ctrl?.destroy();
|
|
126
|
+
this.#ctrl = null;
|
|
127
|
+
}
|
|
128
|
+
attributeChangedCallback(name, _old, value) {
|
|
129
|
+
switch (name) {
|
|
130
|
+
case "icon":
|
|
131
|
+
this.#props.icon = value ?? void 0;
|
|
132
|
+
break;
|
|
133
|
+
case "from":
|
|
134
|
+
this.#props.from = value ?? void 0;
|
|
135
|
+
break;
|
|
136
|
+
case "to":
|
|
137
|
+
this.#props.to = value ?? void 0;
|
|
138
|
+
break;
|
|
139
|
+
case "progress": {
|
|
140
|
+
const n = value === null ? NaN : Number(value);
|
|
141
|
+
this.#props.progress = Number.isFinite(n) ? n : void 0;
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
case "spring":
|
|
145
|
+
this.#props.spring = value ?? void 0;
|
|
146
|
+
break;
|
|
147
|
+
case "reduced-motion":
|
|
148
|
+
this.#props.reducedMotion = value ?? void 0;
|
|
149
|
+
break;
|
|
150
|
+
case "size":
|
|
151
|
+
this.#size = value ?? "24";
|
|
152
|
+
break;
|
|
153
|
+
case "color":
|
|
154
|
+
this.#color = value ?? "currentColor";
|
|
155
|
+
break;
|
|
156
|
+
case "stroke-width":
|
|
157
|
+
this.#strokeWidth = value ?? "2";
|
|
158
|
+
break;
|
|
159
|
+
case "absolute-stroke-width":
|
|
160
|
+
this.#absoluteStrokeWidth = value !== null;
|
|
161
|
+
break;
|
|
162
|
+
case "label": this.#label = value;
|
|
163
|
+
}
|
|
164
|
+
if (!this.#path) return;
|
|
165
|
+
if (PRESENTATION.has(name)) {
|
|
166
|
+
const svg = this.querySelector("svg");
|
|
167
|
+
if (svg) this.#applyPresentation(svg);
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
this.#watch();
|
|
171
|
+
}
|
|
172
|
+
/** A property assigned before the element was defined lands as an own
|
|
173
|
+
* value that shadows the accessor; re-route it through the setter. */
|
|
174
|
+
#upgradeProperty(key) {
|
|
175
|
+
if (Object.hasOwn(this, key)) {
|
|
176
|
+
const self = this;
|
|
177
|
+
const v = self[key];
|
|
178
|
+
delete self[key];
|
|
179
|
+
self[key] = v;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
#watch() {
|
|
183
|
+
const ctrl = this.#ctrl;
|
|
184
|
+
if (!ctrl) {
|
|
185
|
+
this.#preConnectDirty = true;
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
ctrl.watch(this.#props);
|
|
189
|
+
}
|
|
190
|
+
/** Imperative call before the controller exists: adopt the icon as the
|
|
191
|
+
* mount state AND exit controlled mode — "every imperative call
|
|
192
|
+
* invalidates the frozen pair" must hold pre-connect too, or a pending
|
|
193
|
+
* pair would win the mount and silently discard this call. */
|
|
194
|
+
#imperativeBeforeDriver(icon) {
|
|
195
|
+
this.#props.icon = icon;
|
|
196
|
+
this.#props.from = void 0;
|
|
197
|
+
this.#props.to = void 0;
|
|
198
|
+
this.#preConnectDirty = true;
|
|
199
|
+
}
|
|
200
|
+
/** SSR markup is adopted verbatim (the element never rewrites server bytes
|
|
201
|
+
* at rest); without it, the element renders its own <svg> like the
|
|
202
|
+
* framework shells do. */
|
|
203
|
+
#adoptOrRender() {
|
|
204
|
+
const existing = this.querySelector("path");
|
|
205
|
+
if (existing) {
|
|
206
|
+
this.#path = existing;
|
|
207
|
+
this.#adopted = true;
|
|
208
|
+
const p = this.#props;
|
|
209
|
+
if (p.icon === void 0 && p.from === void 0 && p.to === void 0) {
|
|
210
|
+
const d = existing.getAttribute("d");
|
|
211
|
+
if (d) p.icon = d;
|
|
212
|
+
}
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
const doc = this.ownerDocument;
|
|
216
|
+
const svg = doc.createElementNS(SVG_NS, "svg");
|
|
217
|
+
svg.setAttribute("xmlns", SVG_NS);
|
|
218
|
+
svg.setAttribute("viewBox", "0 0 24 24");
|
|
219
|
+
svg.setAttribute("fill", "none");
|
|
220
|
+
svg.setAttribute("stroke-linecap", "round");
|
|
221
|
+
svg.setAttribute("stroke-linejoin", "round");
|
|
222
|
+
this.#applyPresentation(svg);
|
|
223
|
+
const path = doc.createElementNS(SVG_NS, "path");
|
|
224
|
+
path.setAttribute("d", computeInitialD(this.#props));
|
|
225
|
+
svg.appendChild(path);
|
|
226
|
+
this.appendChild(svg);
|
|
227
|
+
this.#path = path;
|
|
228
|
+
}
|
|
229
|
+
#applyPresentation(svg) {
|
|
230
|
+
svg.setAttribute("width", this.#size);
|
|
231
|
+
svg.setAttribute("height", this.#size);
|
|
232
|
+
svg.setAttribute("stroke", this.#color);
|
|
233
|
+
const sw = this.#absoluteStrokeWidth ? String(Number(this.#strokeWidth) * 24 / Number(this.#size)) : this.#strokeWidth;
|
|
234
|
+
svg.setAttribute("stroke-width", sw);
|
|
235
|
+
const label = this.#label;
|
|
236
|
+
let title = svg.querySelector("title");
|
|
237
|
+
if (label) {
|
|
238
|
+
svg.setAttribute("role", "img");
|
|
239
|
+
svg.removeAttribute("aria-hidden");
|
|
240
|
+
if (!title) {
|
|
241
|
+
title = this.ownerDocument.createElementNS(SVG_NS, "title");
|
|
242
|
+
svg.insertBefore(title, svg.firstChild);
|
|
243
|
+
}
|
|
244
|
+
title.textContent = label;
|
|
245
|
+
} else {
|
|
246
|
+
svg.removeAttribute("role");
|
|
247
|
+
svg.setAttribute("aria-hidden", "true");
|
|
248
|
+
title?.remove();
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
let registered = false;
|
|
253
|
+
/** Defines `<morph-icon>` (or a custom tag). Idempotent per tag; a no-op
|
|
254
|
+
* without a DOM (safe to call from code that also runs during SSR). */
|
|
255
|
+
function defineMorphIcon(tag = "morph-icon") {
|
|
256
|
+
if (typeof customElements === "undefined" || customElements.get(tag)) return;
|
|
257
|
+
customElements.define(tag, registered ? class extends MorphIconElement {} : MorphIconElement);
|
|
258
|
+
registered = true;
|
|
259
|
+
}
|
|
260
|
+
//#endregion
|
|
261
|
+
export { MorphIconElement, computeInitialD, defineMorphIcon };
|