@hyprnos/dsh-remote-plugin 0.0.0-stage → 0.8.9

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 (211) hide show
  1. package/README.en.md +61 -0
  2. package/README.md +60 -2
  3. package/apk/dsh-remote.apk +0 -0
  4. package/approval-summary.mjs +115 -0
  5. package/client.js +197 -0
  6. package/cordis.patch.yml +5 -0
  7. package/doctor-skill.mjs +99 -0
  8. package/doctor-target.mjs +24 -0
  9. package/file-delivery.mjs +84 -0
  10. package/gateway-stats.cjs +501 -0
  11. package/gateway.cjs +8451 -0
  12. package/index.mjs +1788 -0
  13. package/insights.mjs +111 -0
  14. package/market.mjs +86 -0
  15. package/package.json +73 -4
  16. package/peak-reminders.mjs +50 -0
  17. package/plugin-center.mjs +777 -0
  18. package/plugin-transaction.mjs +300 -0
  19. package/public/activity.js +188 -0
  20. package/public/admin.html +820 -0
  21. package/public/admin.js +1167 -0
  22. package/public/announcement-forms.js +89 -0
  23. package/public/announcements.json +464 -0
  24. package/public/app.js +8826 -0
  25. package/public/approval-records.js +301 -0
  26. package/public/approval-summary.js +78 -0
  27. package/public/build.json +5 -0
  28. package/public/cache-upgrade.js +51 -0
  29. package/public/chat-copy.js +59 -0
  30. package/public/chat-files.js +87 -0
  31. package/public/desktop/desktop.css +816 -0
  32. package/public/desktop/desktop.html +871 -0
  33. package/public/desktop/desktop.js +4548 -0
  34. package/public/desktop/i18n.js +85 -0
  35. package/public/diagnostics.js +203 -0
  36. package/public/doctor-entry.js +94 -0
  37. package/public/doctor.css +205 -0
  38. package/public/doctor.js +769 -0
  39. package/public/donate.png +0 -0
  40. package/public/e2ee-transport.js +219 -0
  41. package/public/extensions.css +109 -0
  42. package/public/extensions.js +215 -0
  43. package/public/file-inbox.css +66 -0
  44. package/public/file-inbox.js +289 -0
  45. package/public/genui.css +8 -0
  46. package/public/genui.js +254 -0
  47. package/public/history.js +304 -0
  48. package/public/i18n.js +57 -0
  49. package/public/icon.svg +12 -0
  50. package/public/image-cache.js +141 -0
  51. package/public/image-preview.js +290 -0
  52. package/public/index.html +1568 -0
  53. package/public/insights.css +28 -0
  54. package/public/insights.js +290 -0
  55. package/public/jsqr.min.js +10104 -0
  56. package/public/lan-discovery.js +94 -0
  57. package/public/link-check.js +109 -0
  58. package/public/manifest.webmanifest +16 -0
  59. package/public/md.js +333 -0
  60. package/public/morphicons-init.js +41 -0
  61. package/public/motion.js +557 -0
  62. package/public/network.js +100 -0
  63. package/public/onboarding.css +36 -0
  64. package/public/onboarding.js +253 -0
  65. package/public/operations.js +141 -0
  66. package/public/permission-presets.js +159 -0
  67. package/public/plugin-center.css +120 -0
  68. package/public/plugin-center.js +666 -0
  69. package/public/plugin-icon.svg +5 -0
  70. package/public/plugin.html +68 -0
  71. package/public/plugin.js +211 -0
  72. package/public/qrcode.min.js +2297 -0
  73. package/public/relay-autopair.js +251 -0
  74. package/public/relay-devices.js +80 -0
  75. package/public/relay-settings.css +24 -0
  76. package/public/relay-settings.js +194 -0
  77. package/public/remote-state.js +27 -0
  78. package/public/remote-ui.css +148 -0
  79. package/public/remote-ui.js +243 -0
  80. package/public/session-deck.css +79 -0
  81. package/public/session-deck.js +180 -0
  82. package/public/session-presets.js +47 -0
  83. package/public/setup.css +18 -0
  84. package/public/setup.js +213 -0
  85. package/public/sha256.js +119 -0
  86. package/public/skills.css +81 -0
  87. package/public/skills.js +202 -0
  88. package/public/skins/blue-fish/DESIGN.md +24 -0
  89. package/public/skins/blue-fish/face.png +0 -0
  90. package/public/skins/blue-fish/icon-blush.png +0 -0
  91. package/public/skins/blue-fish/icon-sleep.png +0 -0
  92. package/public/skins/blue-fish/icon-smile.png +0 -0
  93. package/public/skins/blue-fish/icon-star.png +0 -0
  94. package/public/skins/blue-fish/icon-wink.png +0 -0
  95. package/public/skins/blue-fish/icon.png +0 -0
  96. package/public/skins/blue-fish/mascot.png +0 -0
  97. package/public/skins/blue-fish/pattern.png +0 -0
  98. package/public/skins/blue-fish/preview.html +12 -0
  99. package/public/skins/blue-fish/skin.css +122 -0
  100. package/public/skins/blue-fish/sparkles.svg +18 -0
  101. package/public/skins/bocchi/DESIGN.md +99 -0
  102. package/public/skins/bocchi/face.png +0 -0
  103. package/public/skins/bocchi/grain.png +0 -0
  104. package/public/skins/bocchi/icon-blush.png +0 -0
  105. package/public/skins/bocchi/icon-sleep.png +0 -0
  106. package/public/skins/bocchi/icon-smile.png +0 -0
  107. package/public/skins/bocchi/icon-star.png +0 -0
  108. package/public/skins/bocchi/icon-wink.png +0 -0
  109. package/public/skins/bocchi/icon.png +0 -0
  110. package/public/skins/bocchi/pattern-soft.png +0 -0
  111. package/public/skins/bocchi/pattern.png +0 -0
  112. package/public/skins/bocchi/preview.html +55 -0
  113. package/public/skins/bocchi/skin.css +233 -0
  114. package/public/skins/bocchi/stage-bg.png +0 -0
  115. package/public/skins/bocchi/stage-soft.png +0 -0
  116. package/public/skins/bocchi/stand.png +0 -0
  117. package/public/skins/bocchi/sticker-guitar.png +0 -0
  118. package/public/skins/kessoku/DESIGN.md +38 -0
  119. package/public/skins/kessoku/grain.png +0 -0
  120. package/public/skins/kessoku/skin.css +212 -0
  121. package/public/skins/kita/SOURCES.json +51 -0
  122. package/public/skins/kita/face.png +0 -0
  123. package/public/skins/kita/icon-live.png +0 -0
  124. package/public/skins/kita/icon-reddress.png +0 -0
  125. package/public/skins/kita/icon-seifuku.png +0 -0
  126. package/public/skins/kita/pattern.png +0 -0
  127. package/public/skins/kita/preview.html +56 -0
  128. package/public/skins/kita/skin.css +26 -0
  129. package/public/skins/kita/stand.png +0 -0
  130. package/public/skins/kita/sticker-live.png +0 -0
  131. package/public/skins/nijika/SOURCES.json +51 -0
  132. package/public/skins/nijika/face.png +0 -0
  133. package/public/skins/nijika/icon-live.png +0 -0
  134. package/public/skins/nijika/icon-reddress.png +0 -0
  135. package/public/skins/nijika/icon-seifuku.png +0 -0
  136. package/public/skins/nijika/pattern.png +0 -0
  137. package/public/skins/nijika/preview.html +56 -0
  138. package/public/skins/nijika/skin.css +25 -0
  139. package/public/skins/nijika/stand.png +0 -0
  140. package/public/skins/nijika/sticker-live.png +0 -0
  141. package/public/skins/penguin/DESIGN.md +33 -0
  142. package/public/skins/penguin/SOURCES.json +22 -0
  143. package/public/skins/penguin/aic-blueprint.svg +24 -0
  144. package/public/skins/penguin/endfield-triangles.svg +4 -0
  145. package/public/skins/penguin/face.png +0 -0
  146. package/public/skins/penguin/icon-blush.png +0 -0
  147. package/public/skins/penguin/icon-dizzy.png +0 -0
  148. package/public/skins/penguin/icon-laugh.png +0 -0
  149. package/public/skins/penguin/icon-sleep.png +0 -0
  150. package/public/skins/penguin/icon-smile.png +0 -0
  151. package/public/skins/penguin/icon-star.png +0 -0
  152. package/public/skins/penguin/icon-wink.png +0 -0
  153. package/public/skins/penguin/icon.png +0 -0
  154. package/public/skins/penguin/mascot.png +0 -0
  155. package/public/skins/penguin/pattern-night.png +0 -0
  156. package/public/skins/penguin/pattern.png +0 -0
  157. package/public/skins/penguin/preview.html +12 -0
  158. package/public/skins/penguin/skin.css +212 -0
  159. package/public/skins/ryo/SOURCES.json +51 -0
  160. package/public/skins/ryo/face.png +0 -0
  161. package/public/skins/ryo/icon-live.png +0 -0
  162. package/public/skins/ryo/icon-reddress.png +0 -0
  163. package/public/skins/ryo/icon-seifuku.png +0 -0
  164. package/public/skins/ryo/pattern.png +0 -0
  165. package/public/skins/ryo/preview.html +56 -0
  166. package/public/skins/ryo/skin.css +25 -0
  167. package/public/skins/ryo/stand.png +0 -0
  168. package/public/skins/ryo/sticker-live.png +0 -0
  169. package/public/sponsor-entry.js +21 -0
  170. package/public/styles.css +1526 -0
  171. package/public/subagents.css +61 -0
  172. package/public/subagents.js +275 -0
  173. package/public/task-board.js +109 -0
  174. package/public/teams.js +98 -0
  175. package/public/theme-picker.css +58 -0
  176. package/public/theme-vars.css +1044 -0
  177. package/public/theme.js +166 -0
  178. package/public/transcribe-core.js +74 -0
  179. package/public/turn-results.js +121 -0
  180. package/public/update.json +49 -0
  181. package/public/vendor/gsap/NOTICE.md +10 -0
  182. package/public/vendor/gsap/gsap.min.js +11 -0
  183. package/public/vendor/morphicons/LICENSE +21 -0
  184. package/public/vendor/morphicons/README.md +10 -0
  185. package/public/vendor/morphicons/controller-CXZuwJ_M.js +152 -0
  186. package/public/vendor/morphicons/dom.js +206 -0
  187. package/public/vendor/morphicons/element.js +261 -0
  188. package/public/vendor/morphicons/normalize-CYnN3Npw.js +540 -0
  189. package/public/vendor/morphicons/spring-CFHloqPP.js +623 -0
  190. package/public/version.json +3 -0
  191. package/public/voice-input.js +1151 -0
  192. package/public/workflow.css +365 -0
  193. package/public/workflow.js +419 -0
  194. package/session-file.mjs +39 -0
  195. package/skills/dsh-remote-doctor/SKILL.md +186 -0
  196. package/skills/dsh-remote-doctor/references/wiki/README.md +40 -0
  197. package/skills/dsh-remote-doctor/references/wiki/ai-guide.md +61 -0
  198. package/skills/dsh-remote-doctor/references/wiki/connection.md +76 -0
  199. package/skills/dsh-remote-doctor/references/wiki/errors.md +26 -0
  200. package/skills/dsh-remote-doctor/references/wiki/evidence.md +44 -0
  201. package/skills/dsh-remote-doctor/references/wiki/files.md +31 -0
  202. package/skills/dsh-remote-doctor/references/wiki/maintenance.md +30 -0
  203. package/skills/dsh-remote-doctor/references/wiki/notifications.md +33 -0
  204. package/skills/dsh-remote-doctor/references/wiki/operations.md +32 -0
  205. package/skills/dsh-remote-doctor/references/wiki/plugins.md +90 -0
  206. package/skills/dsh-remote-doctor/references/wiki/sessions.md +45 -0
  207. package/skills/dsh-remote-doctor/references/wiki/sources.md +27 -0
  208. package/skills.mjs +53 -0
  209. package/speech-whisper.mjs +705 -0
  210. package/task-board.mjs +57 -0
  211. 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 };