@songsid/agend 2.4.0-beta.14 → 2.4.0-beta.15

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 (43) hide show
  1. package/dist/auth-api.js +1 -0
  2. package/dist/auth-api.js.map +1 -1
  3. package/dist/build-provenance.json +1 -1
  4. package/dist/contact-auth-api.d.ts +2 -1
  5. package/dist/contact-auth-api.js +15 -5
  6. package/dist/contact-auth-api.js.map +1 -1
  7. package/dist/contact-auth-policy.d.ts +5 -0
  8. package/dist/contact-auth-policy.js +2 -0
  9. package/dist/contact-auth-policy.js.map +1 -1
  10. package/dist/contact-auth-store.d.ts +12 -1
  11. package/dist/contact-auth-store.js +67 -5
  12. package/dist/contact-auth-store.js.map +1 -1
  13. package/dist/contact-auth-types.d.ts +27 -1
  14. package/dist/contact-auth-types.js.map +1 -1
  15. package/dist/fleet-manager.d.ts +9 -1
  16. package/dist/fleet-manager.js +63 -8
  17. package/dist/fleet-manager.js.map +1 -1
  18. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +16 -6
  19. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +5 -0
  20. package/dist/locale.js +6 -0
  21. package/dist/locale.js.map +1 -1
  22. package/dist/needs-you-hub.js +3 -0
  23. package/dist/needs-you-hub.js.map +1 -1
  24. package/dist/needs-you.d.ts +2 -0
  25. package/dist/needs-you.js.map +1 -1
  26. package/dist/ui/contact-auth-client.js +2 -0
  27. package/dist/ui/contact-auth-strings.js +37 -6
  28. package/dist/ui/contact-needs.js +18 -2
  29. package/dist/ui/contact-permissions.js +55 -10
  30. package/dist/ui/contact-tool-groups.js +39 -0
  31. package/dist/ui/panel-needs.js +7 -4
  32. package/dist/ui/settings-appearance.js +6 -1
  33. package/dist/ui/settings-registry.js +1 -1
  34. package/dist/ui/shared/app-i18n.js +4 -0
  35. package/dist/ui/shared/app-shell.js +16 -7
  36. package/dist/ui/shared/app.css +55 -0
  37. package/dist/ui/shared/theme-picker.js +46 -0
  38. package/dist/ui/shared/theme.js +36 -3
  39. package/dist/ui/shared/tokens.css +273 -0
  40. package/dist/ui/shared/ui-confirm.js +5 -2
  41. package/dist/web-api.d.ts +1 -0
  42. package/dist/web-api.js.map +1 -1
  43. package/package.json +1 -1
@@ -202,3 +202,276 @@
202
202
  @media (pointer: coarse), (max-width: 899px) {
203
203
  .composer-ph { --fs-md: 16px; }
204
204
  }
205
+
206
+ /* M-3368: browser colour palettes; the same tokens paint the page and its swatch. */
207
+ :root[data-palette="sky"], .theme-swatch[data-palette="sky"][data-tone="dark"] {
208
+ --bg: #162532;
209
+ --bg-sidebar: #101e2b;
210
+ --surface: #243543;
211
+ --surface-2: #314553;
212
+ --user-bubble: #2b4356;
213
+ --text: #edf5fc;
214
+ --text-2: #d3e2ef;
215
+ --text-3: #c3d4e3;
216
+ --accent: #86c6ff;
217
+ --on-accent: #10283e;
218
+ --border-strong: #849caf;
219
+ --accent-fill: #86c6ff;
220
+ --focus: #86c6ff;
221
+ --code-bg: #101e2b;
222
+ --code-head: #243543;
223
+ --inline-code: #314553;
224
+ --border: #314553;
225
+ --accent-dim: color-mix(in srgb, #86c6ff 14%, transparent);
226
+ }
227
+ @media (prefers-color-scheme: light) {
228
+ :root[data-palette="sky"]:not([data-theme="dark"]) {
229
+ --bg: #f7fbff;
230
+ --bg-sidebar: #f4faff;
231
+ --surface: #eff6fc;
232
+ --surface-2: #ddebf7;
233
+ --user-bubble: #d9ebfa;
234
+ --text: #10283e;
235
+ --text-2: #354e63;
236
+ --text-3: #435e73;
237
+ --accent: #095da8;
238
+ --on-accent: #ffffff;
239
+ --border-strong: #718596;
240
+ --accent-fill: #095da8;
241
+ --focus: #095da8;
242
+ --code-bg: #eaf3fb;
243
+ --code-head: #eff6fc;
244
+ --inline-code: #ddebf7;
245
+ --border: #ddebf7;
246
+ --accent-dim: color-mix(in srgb, #095da8 8%, transparent);
247
+ }
248
+ }
249
+ :root[data-palette="sky"][data-theme="light"], .theme-swatch[data-palette="sky"][data-tone="light"] {
250
+ --bg: #f7fbff;
251
+ --bg-sidebar: #f4faff;
252
+ --surface: #eff6fc;
253
+ --surface-2: #ddebf7;
254
+ --user-bubble: #d9ebfa;
255
+ --text: #10283e;
256
+ --text-2: #354e63;
257
+ --text-3: #435e73;
258
+ --accent: #095da8;
259
+ --on-accent: #ffffff;
260
+ --border-strong: #718596;
261
+ --accent-fill: #095da8;
262
+ --focus: #095da8;
263
+ --code-bg: #eaf3fb;
264
+ --code-head: #eff6fc;
265
+ --inline-code: #ddebf7;
266
+ --border: #ddebf7;
267
+ --accent-dim: color-mix(in srgb, #095da8 8%, transparent);
268
+ }
269
+ :root[data-palette="meadow"], .theme-swatch[data-palette="meadow"][data-tone="dark"] {
270
+ --bg: #1f2215;
271
+ --bg-sidebar: #171a10;
272
+ --surface: #272b1c;
273
+ --surface-2: #343a25;
274
+ --user-bubble: #354329;
275
+ --text: #f5f6e5;
276
+ --text-2: #dfe5ca;
277
+ --text-3: #cfd7b6;
278
+ --accent: #85cf7d;
279
+ --on-accent: #ffffff;
280
+ --border-strong: #97a279;
281
+ --accent-fill: #317531;
282
+ --focus: #85cf7d;
283
+ --code-bg: #171a10;
284
+ --code-head: #272b1c;
285
+ --inline-code: #343a25;
286
+ --border: #343a25;
287
+ --accent-dim: color-mix(in srgb, #4fae4e 14%, transparent);
288
+ --palette-chat-bg: #30351f;
289
+ --palette-chat-text-2: #e1e7ce;
290
+ --palette-chat-text-3: #d1dabb;
291
+ --accent-decoration: #4fae4e;
292
+ --meadow-wallpaper-start: #343a22;
293
+ --meadow-wallpaper-end: #2b301d;
294
+ --meadow-wallpaper-tile: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20192%20192%22%3E%3Cg%20opacity%3D%22.035%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M27%2062C13%2048%2017%2029%2032%2022C39%2039%2037%2053%2027%2062ZM27%2062L31%2031M114%2048C109%2033%20120%2022%20135%2024C134%2039%20126%2049%20114%2048ZM114%2048L128%2029M73%20138C56%20135%2050%20121%2056%20108C73%20113%2080%20125%2073%20138ZM73%20138L59%20116M139%20160Q137%20143%20129%20136M139%20160Q144%20139%20154%20131M139%20160L141%20137%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
295
+ }
296
+ @media (prefers-color-scheme: light) {
297
+ :root[data-palette="meadow"]:not([data-theme="dark"]) {
298
+ --bg: #ffffff;
299
+ --bg-sidebar: #ffffff;
300
+ --surface: #ffffff;
301
+ --surface-2: #f4f4f5;
302
+ --user-bubble: #eef6e8;
303
+ --text: #212121;
304
+ --text-2: #60666a;
305
+ --text-3: #62686c;
306
+ --accent: #235d23;
307
+ --on-accent: #ffffff;
308
+ --border-strong: #7a7f73;
309
+ --accent-fill: #317531;
310
+ --focus: #235d23;
311
+ --code-bg: #f4f4f5;
312
+ --code-head: #f4f4f5;
313
+ --inline-code: #f4f4f5;
314
+ --border: #e0e0e0;
315
+ --accent-dim: color-mix(in srgb, #4fae4e 8%, transparent);
316
+ --palette-chat-bg: #c4cf93;
317
+ --palette-chat-text-2: #424833;
318
+ --palette-chat-text-3: #4b513c;
319
+ --accent-decoration: #4fae4e;
320
+ --meadow-wallpaper-start: #c4cf93;
321
+ --meadow-wallpaper-end: #cdd69e;
322
+ --meadow-wallpaper-tile: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20192%20192%22%3E%3Cg%20opacity%3D%22.02%22%20fill%3D%22none%22%20stroke%3D%22%23000000%22%20stroke-width%3D%221.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M27%2062C13%2048%2017%2029%2032%2022C39%2039%2037%2053%2027%2062ZM27%2062L31%2031M114%2048C109%2033%20120%2022%20135%2024C134%2039%20126%2049%20114%2048ZM114%2048L128%2029M73%20138C56%20135%2050%20121%2056%20108C73%20113%2080%20125%2073%20138ZM73%20138L59%20116M139%20160Q137%20143%20129%20136M139%20160Q144%20139%20154%20131M139%20160L141%20137%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
323
+ }
324
+ }
325
+ :root[data-palette="meadow"][data-theme="light"], .theme-swatch[data-palette="meadow"][data-tone="light"] {
326
+ --bg: #ffffff;
327
+ --bg-sidebar: #ffffff;
328
+ --surface: #ffffff;
329
+ --surface-2: #f4f4f5;
330
+ --user-bubble: #eef6e8;
331
+ --text: #212121;
332
+ --text-2: #60666a;
333
+ --text-3: #62686c;
334
+ --accent: #235d23;
335
+ --on-accent: #ffffff;
336
+ --border-strong: #7a7f73;
337
+ --accent-fill: #317531;
338
+ --focus: #235d23;
339
+ --code-bg: #f4f4f5;
340
+ --code-head: #f4f4f5;
341
+ --inline-code: #f4f4f5;
342
+ --border: #e0e0e0;
343
+ --accent-dim: color-mix(in srgb, #4fae4e 8%, transparent);
344
+ --palette-chat-bg: #c4cf93;
345
+ --palette-chat-text-2: #424833;
346
+ --palette-chat-text-3: #4b513c;
347
+ --accent-decoration: #4fae4e;
348
+ --meadow-wallpaper-start: #c4cf93;
349
+ --meadow-wallpaper-end: #cdd69e;
350
+ --meadow-wallpaper-tile: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20192%20192%22%3E%3Cg%20opacity%3D%22.02%22%20fill%3D%22none%22%20stroke%3D%22%23000000%22%20stroke-width%3D%221.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M27%2062C13%2048%2017%2029%2032%2022C39%2039%2037%2053%2027%2062ZM27%2062L31%2031M114%2048C109%2033%20120%2022%20135%2024C134%2039%20126%2049%20114%2048ZM114%2048L128%2029M73%20138C56%20135%2050%20121%2056%20108C73%20113%2080%20125%2073%20138ZM73%20138L59%20116M139%20160Q137%20143%20129%20136M139%20160Q144%20139%20154%20131M139%20160L141%20137%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
351
+ }
352
+ :root[data-palette="violet"], .theme-swatch[data-palette="violet"][data-tone="dark"] {
353
+ --bg: #211e32;
354
+ --bg-sidebar: #181626;
355
+ --surface: #302b45;
356
+ --surface-2: #403953;
357
+ --user-bubble: #3b3253;
358
+ --text: #f2effc;
359
+ --text-2: #e0d9f2;
360
+ --text-3: #d0c6e6;
361
+ --accent: #c4aaff;
362
+ --on-accent: #27213e;
363
+ --border-strong: #9b8cb2;
364
+ --accent-fill: #c4aaff;
365
+ --focus: #c4aaff;
366
+ --code-bg: #181626;
367
+ --code-head: #302b45;
368
+ --inline-code: #403953;
369
+ --border: #403953;
370
+ --accent-dim: color-mix(in srgb, #c4aaff 14%, transparent);
371
+ }
372
+ @media (prefers-color-scheme: light) {
373
+ :root[data-palette="violet"]:not([data-theme="dark"]) {
374
+ --bg: #faf8ff;
375
+ --bg-sidebar: #faf8ff;
376
+ --surface: #f5f2fc;
377
+ --surface-2: #e6dff4;
378
+ --user-bubble: #e4dbf7;
379
+ --text: #27213e;
380
+ --text-2: #514662;
381
+ --text-3: #635772;
382
+ --accent: #6847a5;
383
+ --on-accent: #ffffff;
384
+ --border-strong: #89799b;
385
+ --accent-fill: #6847a5;
386
+ --focus: #6847a5;
387
+ --code-bg: #f4f1fd;
388
+ --code-head: #f5f2fc;
389
+ --inline-code: #e6dff4;
390
+ --border: #e6dff4;
391
+ --accent-dim: color-mix(in srgb, #6847a5 8%, transparent);
392
+ }
393
+ }
394
+ :root[data-palette="violet"][data-theme="light"], .theme-swatch[data-palette="violet"][data-tone="light"] {
395
+ --bg: #faf8ff;
396
+ --bg-sidebar: #faf8ff;
397
+ --surface: #f5f2fc;
398
+ --surface-2: #e6dff4;
399
+ --user-bubble: #e4dbf7;
400
+ --text: #27213e;
401
+ --text-2: #514662;
402
+ --text-3: #635772;
403
+ --accent: #6847a5;
404
+ --on-accent: #ffffff;
405
+ --border-strong: #89799b;
406
+ --accent-fill: #6847a5;
407
+ --focus: #6847a5;
408
+ --code-bg: #f4f1fd;
409
+ --code-head: #f5f2fc;
410
+ --inline-code: #e6dff4;
411
+ --border: #e6dff4;
412
+ --accent-dim: color-mix(in srgb, #6847a5 8%, transparent);
413
+ }
414
+ :root[data-palette="mint"], .theme-swatch[data-palette="mint"][data-tone="dark"] {
415
+ --bg: #172723;
416
+ --bg-sidebar: #11221f;
417
+ --surface: #293b35;
418
+ --surface-2: #354d44;
419
+ --user-bubble: #315047;
420
+ --text: #edf8f1;
421
+ --text-2: #d9ebe0;
422
+ --text-3: #c4dcd0;
423
+ --accent: #81d6bd;
424
+ --on-accent: #14382d;
425
+ --border-strong: #8b9f93;
426
+ --accent-fill: #81d6bd;
427
+ --focus: #81d6bd;
428
+ --code-bg: #11221f;
429
+ --code-head: #293b35;
430
+ --inline-code: #354d44;
431
+ --border: #354d44;
432
+ --accent-dim: color-mix(in srgb, #81d6bd 14%, transparent);
433
+ }
434
+ @media (prefers-color-scheme: light) {
435
+ :root[data-palette="mint"]:not([data-theme="dark"]) {
436
+ --bg: #fffaf2;
437
+ --bg-sidebar: #f5fbf7;
438
+ --surface: #f6f5ed;
439
+ --surface-2: #e5eee6;
440
+ --user-bubble: #d9eee4;
441
+ --text: #17352e;
442
+ --text-2: #3a554c;
443
+ --text-3: #4b6258;
444
+ --accent: #17695c;
445
+ --on-accent: #ffffff;
446
+ --border-strong: #748b80;
447
+ --accent-fill: #17695c;
448
+ --focus: #17695c;
449
+ --code-bg: #f1f5ee;
450
+ --code-head: #f6f5ed;
451
+ --inline-code: #e5eee6;
452
+ --border: #e5eee6;
453
+ --accent-dim: color-mix(in srgb, #17695c 8%, transparent);
454
+ }
455
+ }
456
+ :root[data-palette="mint"][data-theme="light"], .theme-swatch[data-palette="mint"][data-tone="light"] {
457
+ --bg: #fffaf2;
458
+ --bg-sidebar: #f5fbf7;
459
+ --surface: #f6f5ed;
460
+ --surface-2: #e5eee6;
461
+ --user-bubble: #d9eee4;
462
+ --text: #17352e;
463
+ --text-2: #3a554c;
464
+ --text-3: #4b6258;
465
+ --accent: #17695c;
466
+ --on-accent: #ffffff;
467
+ --border-strong: #748b80;
468
+ --accent-fill: #17695c;
469
+ --focus: #17695c;
470
+ --code-bg: #f1f5ee;
471
+ --code-head: #f6f5ed;
472
+ --inline-code: #e5eee6;
473
+ --border: #e5eee6;
474
+ --accent-dim: color-mix(in srgb, #17695c 8%, transparent);
475
+ }
476
+ .theme-swatch[data-palette=""][data-tone="light"] { --bg: #ffffff; --bg-sidebar: #f9f9f9; --user-bubble: #f4f4f4; --accent-fill: #0d0d0d; }
477
+ .theme-swatch[data-palette=""][data-tone="dark"] { --bg: #212121; --bg-sidebar: #171717; --user-bubble: #2f2f2f; --accent-fill: #ececec; }
@@ -14,9 +14,11 @@ let seq = 0;
14
14
  * Ask. Resolves true for the confirm button, false for Cancel, Esc, the backdrop or ×.
15
15
  * `message` may hold blank lines (paragraphs); it is shown as text.
16
16
  */
17
- export function confirmDialog({ title, message, confirmLabel, danger = false } = {}) {
17
+ export function confirmDialog({ title, message, confirmLabel, danger = false, more = null } = {}) {
18
18
  return new Promise((resolve) => {
19
- const item = { id: ++seq, title: title || t("app.confirmTitle"), message: String(message || ""), confirmLabel: confirmLabel || t("app.confirmOk"), danger, resolve };
19
+ // M-3387: `more` { label, lines } — a list closed under the text until opened (e.g. every tool name a switch stops).
20
+ const extra = more && more.label && Array.isArray(more.lines) && more.lines.length ? { label: String(more.label), lines: more.lines.map(String) } : null;
21
+ const item = { id: ++seq, title: title || t("app.confirmTitle"), message: String(message || ""), confirmLabel: confirmLabel || t("app.confirmOk"), danger, more: extra, resolve };
20
22
  confirmStore.set((s) => ({ queue: [...s.queue, item] }));
21
23
  });
22
24
  }
@@ -39,5 +41,6 @@ export function ConfirmHost() {
39
41
  actions=${html`<button type="button" class="btn" onClick=${() => answerConfirm(q.id, false)}>${t("app.cancel")}</button>
40
42
  <button type="button" class=${`btn ${q.danger ? "btn-danger" : "btn-primary"}`} data-confirm="yes" onClick=${() => answerConfirm(q.id, true)}>${q.confirmLabel}</button>`}>
41
43
  ${paragraphs.map((p, i) => html`<p key=${i} class="confirm-text">${p}</p>`)}
44
+ ${q.more ? html`<details class="confirm-more"><summary>${q.more.label}</summary><ul>${q.more.lines.map((l, i) => html`<li key=${i} class="mono">${l}</li>`)}</ul></details>` : null}
42
45
  </${Dialog}>`;
43
46
  }
package/dist/web-api.d.ts CHANGED
@@ -58,6 +58,7 @@ export type AccountWriteResult = {
58
58
  message?: string;
59
59
  };
60
60
  export interface WebApiContext {
61
+ clearContactOrigin?: ContactApiHost["clearContactOrigin"];
61
62
  contactPermissions?: ContactApiHost["contactPermissions"];
62
63
  writeContactPermissions?: ContactApiHost["writeContactPermissions"];
63
64
  contactAuthorization?: ContactApiHost["contactAuthorization"];