@ai-ecoverse/slicc-spectrum 1.77.1 → 1.79.0

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/slicc-ui.js CHANGED
@@ -8638,12 +8638,12 @@ var o41 = class extends a10 {
8638
8638
  };
8639
8639
  e25("swc-icon-view-grid", o41);
8640
8640
 
8641
- // node_modules/@adobe/spectrum-wc-icons/dist/Close.js
8641
+ // node_modules/@adobe/spectrum-wc-icons/dist/ChevronRight.js
8642
8642
  function e71() {
8643
- return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="m11.06 10 5.207-5.206a.75.75 0 1 0-1.06-1.06L10 8.938 4.793 3.733a.75.75 0 1 0-1.06 1.06L8.939 10l-5.206 5.206a.75.75 0 1 0 1.06 1.06L10 11.062l5.207 5.206a.75.75 0 0 0 1.06 0 .75.75 0 0 0 0-1.06z"/></svg>';
8643
+ return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M7.75 16.465a.748.748 0 0 1-.54-1.27l4.999-5.197-4.986-5.184a.75.75 0 0 1 .02-1.06.75.75 0 0 1 1.06.021L13.79 9.48c.28.29.28.749 0 1.039l-5.5 5.716a.75.75 0 0 1-.54.23"/></svg>';
8644
8644
  }
8645
8645
 
8646
- // node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-close.js
8646
+ // node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-chevron-right.js
8647
8647
  var o42 = class extends a10 {
8648
8648
  static get styles() {
8649
8649
  return [t40];
@@ -8654,7 +8654,25 @@ var o42 = class extends a10 {
8654
8654
  `;
8655
8655
  }
8656
8656
  };
8657
- e25("swc-icon-close", o42);
8657
+ e25("swc-icon-chevron-right", o42);
8658
+
8659
+ // node_modules/@adobe/spectrum-wc-icons/dist/Close.js
8660
+ function e72() {
8661
+ return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="m11.06 10 5.207-5.206a.75.75 0 1 0-1.06-1.06L10 8.938 4.793 3.733a.75.75 0 1 0-1.06 1.06L8.939 10l-5.206 5.206a.75.75 0 1 0 1.06 1.06L10 11.062l5.207 5.206a.75.75 0 0 0 1.06 0 .75.75 0 0 0 0-1.06z"/></svg>';
8662
+ }
8663
+
8664
+ // node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-close.js
8665
+ var o43 = class extends a10 {
8666
+ static get styles() {
8667
+ return [t40];
8668
+ }
8669
+ render() {
8670
+ return b`
8671
+ ${o16(e72())}
8672
+ `;
8673
+ }
8674
+ };
8675
+ e25("swc-icon-close", o43);
8658
8676
 
8659
8677
  // src/app/base.ts
8660
8678
  var ModelElement = class extends i2 {
@@ -8950,10 +8968,10 @@ var s8 = class {
8950
8968
  };
8951
8969
 
8952
8970
  // node_modules/@spectrum-web-components/button-group/src/button-group.css.js
8953
- var o43 = i`
8971
+ var o44 = i`
8954
8972
  :host{--spectrum-buttongroup-spacing:var(--mod-buttongroup-spacing,var(--mod-buttongroup-spacing-horizontal,var(--spectrum-spacing-300)));--spectrum-buttongroup-display:flex;--spectrum-buttongroup-flex-direction:row;--spectrum-buttongroup-justify-content:var(--mod-buttongroup-justify-content,normal)}:host([size=s]){--spectrum-buttongroup-spacing:var(--mod-buttongroup-spacing,var(--mod-buttongroup-spacing-horizontal,var(--spectrum-spacing-200)))}:host([vertical]){--mod-buttongroup-spacing:var(--mod-buttongroup-spacing-vertical);--spectrum-buttongroup-display:inline-flex;--spectrum-buttongroup-flex-direction:column}:host{display:var(--spectrum-buttongroup-display);flex-direction:var(--spectrum-buttongroup-flex-direction);gap:var(--spectrum-buttongroup-spacing);justify-content:var(--spectrum-buttongroup-justify-content);flex-wrap:wrap}::slotted(*){flex-shrink:0}:host([vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-flex-grow:1;--spectrum-actionbutton-label-text-align:left}:host([vertical]:dir(rtl)) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:right}
8955
8973
  `;
8956
- var button_group_css_default = o43;
8974
+ var button_group_css_default = o44;
8957
8975
 
8958
8976
  // node_modules/@spectrum-web-components/button-group/src/ButtonGroup.js
8959
8977
  var a11 = Object.defineProperty;
@@ -9059,20 +9077,20 @@ function h5(a23, r40) {
9059
9077
  }
9060
9078
  }), t90;
9061
9079
  }
9062
- var o44 = class o45 extends FocusVisiblePolyfillMixin(SpectrumElement) {
9080
+ var o45 = class o46 extends FocusVisiblePolyfillMixin(SpectrumElement) {
9063
9081
  constructor() {
9064
9082
  super(...arguments);
9065
9083
  this.resizeController = new s8(this, { callback: () => {
9066
9084
  this.shouldManageTabOrderForScrolling();
9067
9085
  } });
9068
9086
  this._variant = "";
9069
- this.labelledbyId = `sp-dialog-label-${o45.instanceCount++}`;
9087
+ this.labelledbyId = `sp-dialog-label-${o46.instanceCount++}`;
9070
9088
  this.shouldManageTabOrderForScrolling = () => {
9071
9089
  if (!this.contentElement) return;
9072
9090
  const { offsetHeight: e122, scrollHeight: t90 } = this.contentElement;
9073
9091
  e122 < t90 ? this.contentElement.tabIndex = 0 : this.contentElement.removeAttribute("tabindex");
9074
9092
  };
9075
- this.describedbyId = `sp-dialog-description-${o45.instanceCount++}`;
9093
+ this.describedbyId = `sp-dialog-description-${o46.instanceCount++}`;
9076
9094
  }
9077
9095
  static get styles() {
9078
9096
  return [alert_dialog_css_default];
@@ -9145,17 +9163,17 @@ var o44 = class o45 extends FocusVisiblePolyfillMixin(SpectrumElement) {
9145
9163
  `;
9146
9164
  }
9147
9165
  };
9148
- o44.instanceCount = 0, l13([e(".content")], o44.prototype, "contentElement", 2), l13([n({ type: String, reflect: true })], o44.prototype, "variant", 1);
9149
- var AlertDialog = o44;
9166
+ o45.instanceCount = 0, l13([e(".content")], o45.prototype, "contentElement", 2), l13([n({ type: String, reflect: true })], o45.prototype, "variant", 1);
9167
+ var AlertDialog = o45;
9150
9168
 
9151
9169
  // node_modules/@spectrum-web-components/alert-dialog/sp-alert-dialog.js
9152
9170
  defineElement("sp-alert-dialog", AlertDialog);
9153
9171
 
9154
9172
  // node_modules/@spectrum-web-components/icon/src/spectrum-icon-asterisk.css.js
9155
- var e72 = i`
9173
+ var e73 = i`
9156
9174
  .spectrum-UIIcon-Asterisk75{--spectrum-icon-size:var(--spectrum-asterisk-icon-size-75)}.spectrum-UIIcon-Asterisk100{--spectrum-icon-size:var(--spectrum-asterisk-icon-size-100)}.spectrum-UIIcon-Asterisk200{--spectrum-icon-size:var(--spectrum-asterisk-icon-size-200)}.spectrum-UIIcon-Asterisk300{--spectrum-icon-size:var(--spectrum-asterisk-icon-size-300)}
9157
9175
  `;
9158
- var spectrum_icon_asterisk_css_default = e72;
9176
+ var spectrum_icon_asterisk_css_default = e73;
9159
9177
 
9160
9178
  // node_modules/@spectrum-web-components/icons-ui/src/icons-s2/Asterisk100.js
9161
9179
  var Asterisk100Icon = ({ width: l24 = 24, height: t90 = 24, hidden: e122 = false, title: r40 = "Asterisk100" } = {}) => tag`<svg
@@ -9208,7 +9226,7 @@ var field_label_css_default = t44;
9208
9226
  // node_modules/@spectrum-web-components/field-label/src/FieldLabel.js
9209
9227
  var c15 = Object.defineProperty;
9210
9228
  var d12 = Object.getOwnPropertyDescriptor;
9211
- var o46 = (n37, l24, e122, i26) => {
9229
+ var o47 = (n37, l24, e122, i26) => {
9212
9230
  for (var t90 = i26 > 1 ? void 0 : i26 ? d12(l24, e122) : l24, s19 = n37.length - 1, r40; s19 >= 0; s19--) (r40 = n37[s19]) && (t90 = (i26 ? r40(l24, e122, t90) : r40(t90)) || t90);
9213
9231
  return i26 && t90 && c15(l24, e122, t90), t90;
9214
9232
  };
@@ -9268,16 +9286,16 @@ var FieldLabel = class extends SizedMixin(SpectrumElement, { noDefaultSize: true
9268
9286
  this.hasAttribute("id") || this.setAttribute("id", `${this.tagName.toLowerCase()}-${randomID()}`), e122.has("for") && (this.resolvedElement.selector = this.for ? `#${this.for}` : ""), (e122.has("id") || e122.has(elementResolverUpdatedSymbol)) && this.manageTarget();
9269
9287
  }
9270
9288
  };
9271
- o46([n({ type: Boolean, reflect: true })], FieldLabel.prototype, "disabled", 2), o46([n({ type: String })], FieldLabel.prototype, "id", 2), o46([n({ type: String })], FieldLabel.prototype, "for", 2), o46([n({ type: Boolean, reflect: true })], FieldLabel.prototype, "required", 2), o46([e("slot")], FieldLabel.prototype, "slotEl", 2), o46([n({ type: String, reflect: true, attribute: "side-aligned" })], FieldLabel.prototype, "sideAligned", 2);
9289
+ o47([n({ type: Boolean, reflect: true })], FieldLabel.prototype, "disabled", 2), o47([n({ type: String })], FieldLabel.prototype, "id", 2), o47([n({ type: String })], FieldLabel.prototype, "for", 2), o47([n({ type: Boolean, reflect: true })], FieldLabel.prototype, "required", 2), o47([e("slot")], FieldLabel.prototype, "slotEl", 2), o47([n({ type: String, reflect: true, attribute: "side-aligned" })], FieldLabel.prototype, "sideAligned", 2);
9272
9290
 
9273
9291
  // node_modules/@spectrum-web-components/field-label/sp-field-label.js
9274
9292
  defineElement("sp-field-label", FieldLabel);
9275
9293
 
9276
9294
  // node_modules/@spectrum-web-components/help-text/src/help-text.css.js
9277
- var e73 = i`
9295
+ var e74 = i`
9278
9296
  @media (forced-colors:active){:host{--highcontrast-helptext-content-color-default:CanvasText;--highcontrast-helptext-icon-color-default:CanvasText}:host,.text,.icon{forced-color-adjust:none}}:host{--spectrum-helptext-content-color-default:var(--spectrum-neutral-subdued-content-color-default);--spectrum-helptext-icon-color-default:var(--spectrum-neutral-subdued-content-color-default);min-block-size:var(--mod-helptext-min-height,var(--spectrum-helptext-min-height));font-size:var(--mod-helptext-font-size,var(--spectrum-helptext-font-size));color:var(--highcontrast-helptext-content-color-default,var(--mod-helptext-content-color-default,var(--spectrum-helptext-content-color-default)));display:flex}:host([size=s]){--spectrum-helptext-min-height:var(--spectrum-component-height-75);--spectrum-helptext-icon-size:var(--spectrum-workflow-icon-size-75);--spectrum-helptext-font-size:var(--spectrum-font-size-75);--spectrum-helptext-text-to-visual:var(--spectrum-text-to-visual-75);--spectrum-helptext-top-to-workflow-icon:var(--spectrum-help-text-top-to-workflow-icon-small);--spectrum-helptext-bottom-to-workflow-icon:var(--spectrum-helptext-top-to-workflow-icon)}:host,:host{--spectrum-helptext-min-height:var(--spectrum-component-height-75);--spectrum-helptext-icon-size:var(--spectrum-workflow-icon-size-100);--spectrum-helptext-font-size:var(--spectrum-font-size-75);--spectrum-helptext-text-to-visual:var(--spectrum-text-to-visual-75);--spectrum-helptext-top-to-workflow-icon:var(--spectrum-help-text-top-to-workflow-icon-medium);--spectrum-helptext-bottom-to-workflow-icon:var(--spectrum-helptext-top-to-workflow-icon)}:host([size=l]){--spectrum-helptext-min-height:var(--spectrum-component-height-100);--spectrum-helptext-icon-size:var(--spectrum-workflow-icon-size-200);--spectrum-helptext-font-size:var(--spectrum-font-size-100);--spectrum-helptext-text-to-visual:var(--spectrum-text-to-visual-100);--spectrum-helptext-top-to-workflow-icon:var(--spectrum-help-text-top-to-workflow-icon-large);--spectrum-helptext-bottom-to-workflow-icon:var(--spectrum-helptext-top-to-workflow-icon)}:host([size=xl]){--spectrum-helptext-min-height:var(--spectrum-component-height-200);--spectrum-helptext-icon-size:var(--spectrum-workflow-icon-size-300);--spectrum-helptext-font-size:var(--spectrum-font-size-200);--spectrum-helptext-text-to-visual:var(--spectrum-text-to-visual-200);--spectrum-helptext-top-to-workflow-icon:var(--spectrum-help-text-top-to-workflow-icon-extra-large);--spectrum-helptext-bottom-to-workflow-icon:var(--spectrum-helptext-top-to-workflow-icon)}:host([variant=neutral]){--spectrum-helptext-content-color-default:var(--spectrum-neutral-subdued-content-color-default);--spectrum-helptext-icon-color-default:var(--spectrum-neutral-subdued-content-color-default)}:host([variant=negative]){--spectrum-helptext-content-color-default:var(--spectrum-negative-color-900);--spectrum-helptext-icon-color-default:var(--spectrum-negative-color-900)}:host([disabled]){--spectrum-helptext-content-color-default:var(--spectrum-disabled-content-color);--spectrum-helptext-icon-color-default:var(--spectrum-disabled-content-color)}:host(:lang(ja)),:host(:lang(ko)),:host(:lang(zh)){--mod-helptext-line-height:var(--mod-helptext-line-height-cjk,var(--spectrum-cjk-line-height-100))}.icon{inline-size:var(--mod-helptext-icon-size,var(--spectrum-helptext-icon-size));block-size:var(--mod-helptext-icon-size,var(--spectrum-helptext-icon-size));flex-shrink:0;margin-inline-end:var(--mod-helptext-text-to-visual,var(--spectrum-helptext-text-to-visual));padding-block-start:var(--mod-helptext-top-to-workflow-icon,var(--spectrum-helptext-top-to-workflow-icon));padding-block-end:var(--mod-helptext-bottom-to-workflow-icon,var(--spectrum-helptext-bottom-to-workflow-icon))}.text{line-height:var(--mod-helptext-line-height,var(--spectrum-line-height-100));padding-block-start:var(--mod-helptext-top-to-text,var(--spectrum-helptext-top-to-text));padding-block-end:var(--mod-helptext-bottom-to-text,var(--spectrum-helptext-bottom-to-text))}:host([variant=neutral]) .text{color:var(--highcontrast-helptext-content-color-default,var(--mod-helptext-content-color-default,var(--spectrum-helptext-content-color-default)))}:host([variant=neutral]) .icon{color:var(--highcontrast-helptext-icon-color-default,var(--mod-helptext-icon-color-default,var(--spectrum-helptext-icon-color-default)))}:host([variant=negative]) .text{color:var(--highcontrast-helptext-content-color-default,var(--mod-helptext-content-color-default,var(--spectrum-helptext-content-color-default)))}:host([variant=negative]) .icon{color:var(--highcontrast-helptext-icon-color-default,var(--mod-helptext-icon-color-default,var(--spectrum-helptext-icon-color-default)))}:host([disabled]) .text{color:var(--highcontrast-helptext-content-color-default,var(--mod-helptext-content-color-default,var(--spectrum-helptext-content-color-default)))}:host([disabled]) .icon{color:var(--highcontrast-helptext-icon-color-default,var(--mod-helptext-icon-color-default,var(--spectrum-helptext-icon-color-default)))}:host{--spectrum-helptext-top-to-text:var(--system-helptext-top-to-text);--spectrum-helptext-bottom-to-text:var(--system-helptext-bottom-to-text)}:host([size=s]){--spectrum-helptext-top-to-text:var(--system-helptext-top-to-text-small);--spectrum-helptext-bottom-to-text:var(--system-helptext-bottom-to-text-small)}:host([size=l]){--spectrum-helptext-top-to-text:var(--system-helptext-top-to-text-large);--spectrum-helptext-bottom-to-text:var(--system-helptext-bottom-to-text-large)}:host([size=xl]){--spectrum-helptext-top-to-text:var(--system-helptext-top-to-text-extra-large);--spectrum-helptext-bottom-to-text:var(--system-helptext-bottom-to-text-extra-large)}
9279
9297
  `;
9280
- var help_text_css_default = e73;
9298
+ var help_text_css_default = e74;
9281
9299
 
9282
9300
  // node_modules/@spectrum-web-components/help-text/src/HelpText.js
9283
9301
  var c16 = Object.defineProperty;
@@ -9557,7 +9575,7 @@ function prompt(options) {
9557
9575
  var t45 = i`@keyframes swc-fills-rotate{0%{transform:rotate(var(--swc-progress-circle-rotate-start, -90deg))}to{transform:rotate(var(--swc-progress-circle-rotate-end, 270deg))}}@keyframes swc-dashoffset-animation{0%,to{stroke-dashoffset:75px}30%{stroke-dashoffset:var(--swc-progress-circle-dashoffset-30, 20px)}}:host{display:inline-block;align-self:center;justify-self:center;place-self:center}*{box-sizing:border-box}.swc-ProgressCircle{--_swc-progress-circle-size: var(--swc-progress-circle-size, var(--swc-progress-circle-size-medium));--_swc-progress-circle-track-border-color: var(--swc-progress-circle-track-border-color, var(--swc-gray-300));--_swc-progress-circle-fill-border-color: var(--swc-progress-circle-fill-border-color, var(--swc-accent-color-900));--_swc-progress-circle-thickness: var(--swc-progress-circle-thickness, var(--swc-progress-circle-thickness-medium));display:inline-block;position:relative;inline-size:var(--_swc-progress-circle-size);block-size:var(--_swc-progress-circle-size);direction:ltr;transform:translateZ(0)}.swc-ProgressCircle-fill,.swc-ProgressCircle-track{inline-size:var(--_swc-progress-circle-size);block-size:var(--_swc-progress-circle-size)}.swc-ProgressCircle-track{stroke:var(--_swc-progress-circle-track-border-color);stroke-width:var(--_swc-progress-circle-thickness)}.swc-ProgressCircle-fill{stroke:var(--_swc-progress-circle-fill-border-color);stroke-width:var(--_swc-progress-circle-thickness);transform:rotate(-90deg);transform-origin:center}.swc-ProgressCircle--indeterminate .swc-ProgressCircle-fill{transform-origin:center;animation:swc-fills-rotate 1s cubic-bezier(.6,.1,.3,.9) infinite,swc-dashoffset-animation 1s cubic-bezier(.25,.1,.25,1.3) infinite;will-change:transform}:host([size=\"s\"]){--swc-progress-circle-size: var(--swc-progress-circle-size-small);--swc-progress-circle-thickness: var(--swc-progress-circle-thickness-small)}:host([size=\"l\"]){--swc-progress-circle-size: var(--swc-progress-circle-size-large);--swc-progress-circle-thickness: var(--swc-progress-circle-thickness-large)}.swc-ProgressCircle:where(.swc-ProgressCircle--staticWhite){--swc-progress-circle-track-border-color: var(--swc-transparent-white-300);--swc-progress-circle-fill-border-color: var(--swc-transparent-white-900)}.swc-ProgressCircle:where(.swc-ProgressCircle--staticBlack){--swc-progress-circle-track-border-color: var(--swc-transparent-black-300);--swc-progress-circle-fill-border-color: var(--swc-transparent-black-900)}@media(prefers-reduced-motion:reduce){.swc-ProgressCircle--indeterminate .swc-ProgressCircle-fill{--swc-progress-circle-dashoffset-30: 0;--swc-progress-circle-rotate-start: 0deg;--swc-progress-circle-rotate-end: 360deg;animation-duration:15s;animation-timing-function:linear,linear}}@media(forced-colors:active){.swc-ProgressCircle{--swc-progress-circle-fill-border-color: Highlight;@media(prefers-color-scheme:dark){--swc-progress-circle-track-border-color: var(--swc-transparent-white-300)}@media(prefers-color-scheme:light){--swc-progress-circle-track-border-color: var(--swc-transparent-black-300)}}}`;
9558
9576
 
9559
9577
  // node_modules/@adobe/spectrum-wc-core/dist/components/progress-circle/ProgressCircle.types.js
9560
- var e74 = [
9578
+ var e75 = [
9561
9579
  "s",
9562
9580
  "m",
9563
9581
  "l"
@@ -9566,7 +9584,7 @@ var t46 = ["white", "black"];
9566
9584
 
9567
9585
  // node_modules/@adobe/spectrum-wc-core/dist/components/progress-circle/ProgressCircle.base.js
9568
9586
  var u16;
9569
- var d13 = class e75 extends i12(i9, { validSizes: e74 }) {
9587
+ var d13 = class e76 extends i12(i9, { validSizes: e75 }) {
9570
9588
  constructor(...e122) {
9571
9589
  super(...e122), this.label = "", this.progress = null, this.languageResolver = new i10(this);
9572
9590
  }
@@ -9591,11 +9609,11 @@ var d13 = class e75 extends i12(i9, { validSizes: e74 }) {
9591
9609
  }).format(((e122 = this.progress) == null ? 0 : e122) / 100);
9592
9610
  }
9593
9611
  warnDeprecatedLightDomChildren() {
9594
- r9(this, e75.hasMeaningfulLightDomChildren(this), `<${this.localName}> no longer has a default slot. Light DOM children are not rendered and are not used for an accessible name. Use the "label" attribute or property, or "aria-label" / "aria-labelledby" on the host instead.`, "https://spectrum-web-components.adobe.com/?path=/docs/components-progress-circle--docs", { level: "deprecation" });
9612
+ r9(this, e76.hasMeaningfulLightDomChildren(this), `<${this.localName}> no longer has a default slot. Light DOM children are not rendered and are not used for an accessible name. Use the "label" attribute or property, or "aria-label" / "aria-labelledby" on the host instead.`, "https://spectrum-web-components.adobe.com/?path=/docs/components-progress-circle--docs", { level: "deprecation" });
9595
9613
  }
9596
9614
  willUpdate(t90) {
9597
9615
  if (t90.has("progress") && this.progress !== null) {
9598
- let t91 = e75.clampProgress(this.progress);
9616
+ let t91 = e76.clampProgress(this.progress);
9599
9617
  t91 !== this.progress && (this.progress = t91);
9600
9618
  }
9601
9619
  super.willUpdate(t90);
@@ -9604,7 +9622,7 @@ var d13 = class e75 extends i12(i9, { validSizes: e74 }) {
9604
9622
  super.firstUpdated(e122), this.setAttribute("role", "progressbar");
9605
9623
  }
9606
9624
  updated(t90) {
9607
- if (super.updated(t90), t90.has("progress") && (this.progress !== null && this.progress >= 0 ? (this.setAttribute("aria-valuemin", "0"), this.setAttribute("aria-valuemax", "100"), this.setAttribute("aria-valuenow", String(this.progress)), this.setAttribute("aria-valuetext", this.formatProgress())) : (this.removeAttribute("aria-valuemin"), this.removeAttribute("aria-valuemax"), this.removeAttribute("aria-valuenow"), this.removeAttribute("aria-valuetext"))), this.progress !== null && t90.has(e27) && this.setAttribute("aria-valuetext", this.formatProgress()), t90.has("label") && (this.label.length ? this.setAttribute("aria-label", this.label) : t90.get("label") === this.getAttribute("aria-label") && this.removeAttribute("aria-label")), t90.has("label") && !this.hasAccessibleName() && (this.setAttribute("aria-label", e75.DEFAULT_LABEL), r9(this, true, `<${this.localName}> requires an accessible name. A default label of "${e75.DEFAULT_LABEL}" has been applied, but a more specific label should be provided via:`, "https://spectrum-web-components.adobe.com/?path=/docs/components-progress-circle--docs", {
9625
+ if (super.updated(t90), t90.has("progress") && (this.progress !== null && this.progress >= 0 ? (this.setAttribute("aria-valuemin", "0"), this.setAttribute("aria-valuemax", "100"), this.setAttribute("aria-valuenow", String(this.progress)), this.setAttribute("aria-valuetext", this.formatProgress())) : (this.removeAttribute("aria-valuemin"), this.removeAttribute("aria-valuemax"), this.removeAttribute("aria-valuenow"), this.removeAttribute("aria-valuetext"))), this.progress !== null && t90.has(e27) && this.setAttribute("aria-valuetext", this.formatProgress()), t90.has("label") && (this.label.length ? this.setAttribute("aria-label", this.label) : t90.get("label") === this.getAttribute("aria-label") && this.removeAttribute("aria-label")), t90.has("label") && !this.hasAccessibleName() && (this.setAttribute("aria-label", e76.DEFAULT_LABEL), r9(this, true, `<${this.localName}> requires an accessible name. A default label of "${e76.DEFAULT_LABEL}" has been applied, but a more specific label should be provided via:`, "https://spectrum-web-components.adobe.com/?path=/docs/components-progress-circle--docs", {
9608
9626
  type: "accessibility",
9609
9627
  issues: [
9610
9628
  'value supplied to the "label" attribute, which will be displayed visually as part of the element, or',
@@ -9688,40 +9706,40 @@ l14 = u17, l14.STATIC_COLORS = t46, e12([n({
9688
9706
  e25("swc-progress-circle", u17);
9689
9707
 
9690
9708
  // node_modules/@adobe/spectrum-wc-icons/dist/AlertTriangle.js
9691
- function e76() {
9709
+ function e77() {
9692
9710
  return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M10 15.123a.9.9 0 0 1-.627-.228.956.956 0 0 1 0-1.285.87.87 0 0 1 .626-.234c.237-.01.466.08.633.247a.86.86 0 0 1 .242.627.88.88 0 0 1-.228.639.86.86 0 0 1-.647.234M10 11.75a.75.75 0 0 1-.75-.75V7a.75.75 0 0 1 1.5 0v4a.75.75 0 0 1-.75.75"/><path fill="var(--swc-icon-color, currentColor)" d="M16.733 18H3.267c-.8 0-1.523-.41-1.933-1.098s-.427-1.518-.046-2.222L8.02 2.232a2.248 2.248 0 0 1 3.958 0l6.733 12.448c.381.704.364 1.535-.046 2.222S17.534 18 16.733 18M10 2.553a.73.73 0 0 0-.66.392L2.607 15.393a.74.74 0 0 0 .016.74.74.74 0 0 0 .644.367h13.466a.74.74 0 0 0 .644-.366.74.74 0 0 0 .016-.741L10.66 2.945a.73.73 0 0 0-.66-.392"/></svg>';
9693
9711
  }
9694
9712
 
9695
9713
  // node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-alert-triangle.js
9696
- var o47 = class extends a10 {
9714
+ var o48 = class extends a10 {
9697
9715
  static get styles() {
9698
9716
  return [t40];
9699
9717
  }
9700
9718
  render() {
9701
9719
  return b`
9702
- ${o16(e76())}
9720
+ ${o16(e77())}
9703
9721
  `;
9704
9722
  }
9705
9723
  };
9706
- e25("swc-icon-alert-triangle", o47);
9724
+ e25("swc-icon-alert-triangle", o48);
9707
9725
 
9708
9726
  // node_modules/@adobe/spectrum-wc-icons/dist/UserFollowing.js
9709
- function e77() {
9727
+ function e78() {
9710
9728
  return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M15 10.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9m2.4 3.35L15.09 17a.623.623 0 0 1-.968.048l-1.439-1.599a.625.625 0 0 1 .93-.836l.924 1.028 1.855-2.53a.625.625 0 1 1 1.007.74M2.274 18.752a.75.75 0 0 1-.733-.91c.596-2.73 3.313-5.025 6.608-5.58a.75.75 0 0 1 .249 1.48c-2.706.455-4.923 2.273-5.391 4.42a.75.75 0 0 1-.733.59m7.726-7.9c-2.485 0-4.507-2.153-4.507-4.8s2.022-4.8 4.507-4.8 4.507 2.153 4.507 4.8-2.022 4.8-4.507 4.8m0-8.1c-1.658 0-3.007 1.48-3.007 3.3s1.349 3.3 3.007 3.3 3.007-1.48 3.007-3.3-1.349-3.3-3.007-3.3"/></svg>';
9711
9729
  }
9712
9730
 
9713
9731
  // node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-user-following.js
9714
- var o48 = class extends a10 {
9732
+ var o49 = class extends a10 {
9715
9733
  static get styles() {
9716
9734
  return [t40];
9717
9735
  }
9718
9736
  render() {
9719
9737
  return b`
9720
- ${o16(e77())}
9738
+ ${o16(e78())}
9721
9739
  `;
9722
9740
  }
9723
9741
  };
9724
- e25("swc-icon-user-following", o48);
9742
+ e25("swc-icon-user-following", o49);
9725
9743
 
9726
9744
  // src/app/follow.ts
9727
9745
  var lights = {
@@ -9961,40 +9979,40 @@ var SliccFollow = class extends ModelElement {
9961
9979
  };
9962
9980
 
9963
9981
  // node_modules/@adobe/spectrum-wc-icons/dist/AlertDiamond.js
9964
- function e78() {
9982
+ function e79() {
9965
9983
  return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M10 18.795a2.24 2.24 0 0 1-1.591-.66l-6.545-6.544a2.254 2.254 0 0 1 0-3.182l6.545-6.545c.849-.85 2.333-.85 3.182 0l6.545 6.545a2.254 2.254 0 0 1 0 3.182l-6.545 6.545c-.425.425-.99.659-1.591.659m0-16.09c-.2 0-.389.078-.53.22L2.925 9.47a.75.75 0 0 0 0 1.06l6.545 6.545a.77.77 0 0 0 1.06 0l6.545-6.545a.75.75 0 0 0 0-1.06L10.53 2.925a.75.75 0 0 0-.53-.22"/><path fill="var(--swc-icon-color, currentColor)" d="M10 14.998a.9.9 0 0 1-.627-.228.956.956 0 0 1 0-1.285.87.87 0 0 1 .626-.234c.237-.01.466.08.633.247a.86.86 0 0 1 .242.627.88.88 0 0 1-.228.639.86.86 0 0 1-.647.234M10 11.625a.75.75 0 0 1-.75-.75v-5a.75.75 0 0 1 1.5 0v5a.75.75 0 0 1-.75.75"/></svg>';
9966
9984
  }
9967
9985
 
9968
9986
  // node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-alert-diamond.js
9969
- var o49 = class extends a10 {
9987
+ var o50 = class extends a10 {
9970
9988
  static get styles() {
9971
9989
  return [t40];
9972
9990
  }
9973
9991
  render() {
9974
9992
  return b`
9975
- ${o16(e78())}
9993
+ ${o16(e79())}
9976
9994
  `;
9977
9995
  }
9978
9996
  };
9979
- e25("swc-icon-alert-diamond", o49);
9997
+ e25("swc-icon-alert-diamond", o50);
9980
9998
 
9981
9999
  // node_modules/@adobe/spectrum-wc-icons/dist/FolderAdd.js
9982
- function e79() {
10000
+ function e80() {
9983
10001
  return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M8.373 15.498H3.25a.75.75 0 0 1-.75-.75v-8.25h14.25a.75.75 0 0 1 .75.75V9.07a.75.75 0 0 0 1.5 0V7.248c0-1.24-1.01-2.25-2.25-2.25h-5.964a.75.75 0 0 1-.566-.258L8.515 2.773a2.25 2.25 0 0 0-1.7-.775H3.25C2.01 1.998 1 3.008 1 4.248v10.5c0 1.24 1.01 2.25 2.25 2.25h5.123a.75.75 0 0 0 0-1.5m-5.123-12h3.565a.75.75 0 0 1 .567.258l1.076 1.242H2.5v-.75a.75.75 0 0 1 .75-.75"/><path fill="var(--swc-icon-color, currentColor)" d="M15 10.498a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9m2.5 5.125h-1.875v1.875a.625.625 0 1 1-1.25 0v-1.875H12.5a.625.625 0 1 1 0-1.25h1.875v-1.875a.625.625 0 1 1 1.25 0v1.875H17.5a.625.625 0 1 1 0 1.25"/></svg>';
9984
10002
  }
9985
10003
 
9986
10004
  // node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-folder-add.js
9987
- var o50 = class extends a10 {
10005
+ var o51 = class extends a10 {
9988
10006
  static get styles() {
9989
10007
  return [t40];
9990
10008
  }
9991
10009
  render() {
9992
10010
  return b`
9993
- ${o16(e79())}
10011
+ ${o16(e80())}
9994
10012
  `;
9995
10013
  }
9996
10014
  };
9997
- e25("swc-icon-folder-add", o50);
10015
+ e25("swc-icon-folder-add", o51);
9998
10016
 
9999
10017
  // src/app/search.ts
10000
10018
  var searchCss = i`
@@ -10822,24 +10840,6 @@ var SliccFreezer = class extends ModelElement {
10822
10840
  }
10823
10841
  };
10824
10842
 
10825
- // node_modules/@adobe/spectrum-wc-icons/dist/ChevronRight.js
10826
- function e80() {
10827
- return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M7.75 16.465a.748.748 0 0 1-.54-1.27l4.999-5.197-4.986-5.184a.75.75 0 0 1 .02-1.06.75.75 0 0 1 1.06.021L13.79 9.48c.28.29.28.749 0 1.039l-5.5 5.716a.75.75 0 0 1-.54.23"/></svg>';
10828
- }
10829
-
10830
- // node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-chevron-right.js
10831
- var o51 = class extends a10 {
10832
- static get styles() {
10833
- return [t40];
10834
- }
10835
- render() {
10836
- return b`
10837
- ${o16(e80())}
10838
- `;
10839
- }
10840
- };
10841
- e25("swc-icon-chevron-right", o51);
10842
-
10843
10843
  // node_modules/@adobe/spectrum-wc-icons/dist/Copy.js
10844
10844
  function e81() {
10845
10845
  return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M11.75 18h-7.5C3.01 18 2 16.99 2 15.75v-7.5C2 7.01 3.01 6 4.25 6a.75.75 0 0 1 0 1.5.75.75 0 0 0-.75.75v7.5c0 .413.337.75.75.75h7.5c.413 0 .75-.337.75-.75a.75.75 0 0 1 1.5 0c0 1.24-1.01 2.25-2.25 2.25m-5-13A.75.75 0 0 1 6 4.25C6 3.01 7.01 2 8.25 2a.75.75 0 0 1 0 1.5.75.75 0 0 0-.75.75.75.75 0 0 1-.75.75M13 3.5h-2A.75.75 0 0 1 11 2h2a.75.75 0 0 1 0 1.5"/><path fill="var(--swc-icon-color, currentColor)" d="M13 14h-2a.75.75 0 0 1 0-1.5h2a.75.75 0 0 1 0 1.5m2.75 0a.75.75 0 0 1 0-1.5c.413 0 .75-.337.75-.75a.75.75 0 0 1 1.5 0c0 1.24-1.01 2.25-2.25 2.25m1.5-9a.75.75 0 0 1-.75-.75.75.75 0 0 0-.75-.75.75.75 0 0 1 0-1.5C16.99 2 18 3.01 18 4.25a.75.75 0 0 1-.75.75m0 4.75A.75.75 0 0 1 16.5 9V7A.75.75 0 0 1 18 7v2a.75.75 0 0 1-.75.75m-10.5 0A.75.75 0 0 1 6 9V7a.75.75 0 0 1 1.5 0v2a.75.75 0 0 1-.75.75M8.25 14C7.01 14 6 12.99 6 11.75a.75.75 0 0 1 1.5 0c0 .413.337.75.75.75a.75.75 0 0 1 0 1.5"/></svg>';
@@ -11427,17 +11427,25 @@ var statusOrder = ["working", "thinking", "waiting", "error", "idle"];
11427
11427
  function scoopSummary(scoops) {
11428
11428
  if (scoops.length === 0) return "";
11429
11429
  const counts = statusOrder.map((status2) => [status2, scoops.filter((scoop) => scoop.status === status2).length]).filter(([, count]) => count > 0).map(([status2, count]) => `${count} ${statusLabel[status2].toLowerCase()}`);
11430
- return `${scoops.length} scoop${scoops.length === 1 ? "" : "s"}: ${counts.join(", ")}`;
11430
+ return `${scoopCount(scoops)}: ${counts.join(", ")}`;
11431
+ }
11432
+ function scoopCount(scoops) {
11433
+ return `${scoops.length} scoop${scoops.length === 1 ? "" : "s"}`;
11434
+ }
11435
+ function scoopBrief(scoops) {
11436
+ if (scoops.length === 0) return "";
11437
+ const busy = statusOrder.filter((status2) => status2 !== "idle").map((status2) => [status2, scoops.filter((scoop) => scoop.status === status2).length]).filter(([, count]) => count > 0).map(([status2, count]) => `${count} ${statusLabel[status2].toLowerCase()}`);
11438
+ return [scoopCount(scoops), busy.join(", ")].filter(Boolean).join(" \xB7 ");
11431
11439
  }
11432
11440
  function unreadCount(unread) {
11433
- return unread > 9 ? "9+" : String(unread);
11441
+ return unread > 99 ? "99+" : String(unread);
11434
11442
  }
11435
11443
  function fillShown(fill2) {
11436
11444
  return fill2 >= 0.5;
11437
11445
  }
11438
11446
  var SliccAgents = class extends ModelElement {
11439
11447
  static properties = { ...ModelElement.properties, errors: { state: true } };
11440
- #expanded = null;
11448
+ #expanded = /* @__PURE__ */ new Set();
11441
11449
  #pointer = false;
11442
11450
  #modality = (event2) => {
11443
11451
  this.#pointer = event2.type === "pointerdown";
@@ -11474,21 +11482,22 @@ var SliccAgents = class extends ModelElement {
11474
11482
  }
11475
11483
  li {
11476
11484
  --row-background: var(--swc-background-layer-1-color);
11477
- --row-head: 1lh;
11478
- --row-description: calc(2 * 1.4 * var(--swc-font-size-75));
11479
11485
  position: relative;
11480
11486
  display: grid;
11481
- grid-template-columns: minmax(0, 1fr) auto;
11482
- grid-template-areas: 'head fill' 'description description' 'ribbon ribbon' 'error error';
11483
- grid-template-rows: var(--row-head) var(--row-description) var(--swc-spacing-100);
11484
- align-items: center;
11487
+ grid-template-columns: var(--swc-component-height-75) minmax(0, 1fr) auto;
11488
+ grid-template-areas:
11489
+ 'toggle head fill'
11490
+ 'toggle description strip'
11491
+ 'toggle ribbon ribbon'
11492
+ 'toggle error error';
11493
+ align-items: start;
11485
11494
  column-gap: var(--swc-spacing-100);
11486
- padding: var(--swc-spacing-75) var(--swc-spacing-200);
11495
+ padding: var(--swc-spacing-75) var(--swc-spacing-200) var(--swc-spacing-75) var(--swc-spacing-100);
11487
11496
  background: var(--row-background);
11488
11497
  cursor: pointer;
11489
11498
  }
11490
11499
  li.scoop {
11491
- padding-inline-start: calc(var(--swc-spacing-200) + var(--swc-spacing-300));
11500
+ padding-inline-start: calc(var(--swc-spacing-100) + var(--swc-spacing-300));
11492
11501
  }
11493
11502
  li:hover {
11494
11503
  --row-background: var(--swc-gray-100);
@@ -11496,40 +11505,66 @@ var SliccAgents = class extends ModelElement {
11496
11505
  li[aria-selected='true'] {
11497
11506
  --row-background: var(--swc-gray-200);
11498
11507
  }
11508
+ li[aria-selected='true']::before {
11509
+ content: '';
11510
+ position: absolute;
11511
+ inset-block: 0;
11512
+ inset-inline-start: 0;
11513
+ inline-size: var(--swc-spacing-75);
11514
+ background: var(--swc-accent-color-900);
11515
+ }
11499
11516
  li:focus-visible {
11500
11517
  outline: var(--swc-focus-indicator-thickness) solid var(--swc-focus-indicator-color);
11501
11518
  outline-offset: calc(-1 * var(--swc-focus-indicator-thickness));
11502
11519
  }
11520
+ .toggle {
11521
+ grid-area: toggle;
11522
+ align-self: start;
11523
+ }
11524
+ .toggle swc-icon-chevron-right:dir(rtl) {
11525
+ transform: scaleX(-1);
11526
+ }
11527
+ .toggle[data-open] swc-icon-chevron-right {
11528
+ transform: rotate(90deg);
11529
+ }
11503
11530
  .head {
11504
11531
  grid-area: head;
11532
+ align-self: center;
11505
11533
  display: flex;
11506
11534
  align-items: center;
11507
11535
  gap: var(--swc-spacing-75);
11508
11536
  min-inline-size: 0;
11537
+ min-block-size: var(--swc-component-height-75);
11509
11538
  }
11510
11539
  .head > * {
11511
11540
  flex: none;
11512
11541
  }
11513
11542
  .marker {
11543
+ --status-color: var(--swc-gray-600);
11514
11544
  flex: none;
11515
11545
  display: inline-flex;
11516
11546
  align-items: center;
11517
11547
  justify-content: center;
11548
+ box-sizing: border-box;
11518
11549
  inline-size: var(--swc-spacing-200);
11519
11550
  block-size: var(--swc-spacing-200);
11520
11551
  border-radius: var(--swc-corner-radius-full);
11521
- font-size: var(--swc-font-size-25);
11522
- font-variant-numeric: tabular-nums;
11523
- line-height: 1;
11552
+ background: var(--status-color);
11524
11553
  }
11525
11554
  .marker.unread {
11526
- box-sizing: border-box;
11555
+ --status-color: var(--swc-accent-background-color-default);
11527
11556
  inline-size: auto;
11528
- min-inline-size: var(--swc-spacing-200);
11529
- padding-inline: var(--swc-spacing-50);
11530
- background: var(--swc-accent-background-color-default);
11557
+ min-inline-size: var(--swc-spacing-300);
11558
+ block-size: var(--swc-spacing-300);
11559
+ padding-inline: var(--swc-spacing-75);
11531
11560
  color: var(--swc-white);
11561
+ font-size: var(--swc-font-size-50);
11562
+ font-variant-numeric: tabular-nums;
11532
11563
  font-weight: var(--swc-bold-font-weight);
11564
+ line-height: var(--swc-line-height-100);
11565
+ }
11566
+ .marker.unread[data-status='error'] {
11567
+ --status-color: var(--swc-negative-background-color-default);
11533
11568
  }
11534
11569
  .name {
11535
11570
  flex: 0 1 auto;
@@ -11543,12 +11578,13 @@ var SliccAgents = class extends ModelElement {
11543
11578
  }
11544
11579
  .title {
11545
11580
  grid-area: description;
11581
+ align-self: start;
11546
11582
  display: -webkit-box;
11547
11583
  -webkit-box-orient: vertical;
11548
11584
  -webkit-line-clamp: 2;
11549
11585
  overflow: hidden;
11550
11586
  overflow-wrap: anywhere;
11551
- line-height: 1.4;
11587
+ line-height: var(--swc-line-height-100);
11552
11588
  font-size: var(--swc-font-size-75);
11553
11589
  color: var(--swc-neutral-subdued-content-color-default);
11554
11590
  }
@@ -11558,40 +11594,48 @@ var SliccAgents = class extends ModelElement {
11558
11594
  .ribbon {
11559
11595
  grid-area: ribbon;
11560
11596
  display: flex;
11597
+ flex-wrap: wrap;
11561
11598
  align-items: center;
11562
- gap: var(--swc-spacing-50);
11563
- overflow: hidden;
11564
- }
11565
- .status,
11566
- .segment {
11567
- background: var(--swc-neutral-visual-color);
11568
- }
11569
- .status[data-status='thinking'],
11570
- .status[data-status='working'],
11571
- .segment[data-status='thinking'],
11572
- .segment[data-status='working'] {
11573
- background: var(--swc-informative-visual-color);
11599
+ gap: var(--swc-spacing-100);
11600
+ min-inline-size: 0;
11601
+ margin-block-start: var(--swc-spacing-75);
11602
+ font-size: var(--swc-font-size-75);
11603
+ line-height: var(--swc-line-height-100);
11604
+ color: var(--swc-neutral-subdued-content-color-default);
11574
11605
  }
11575
- .status[data-status='waiting'],
11576
- .segment[data-status='waiting'] {
11577
- background: var(--swc-notice-visual-color);
11606
+ .segments {
11607
+ display: flex;
11608
+ flex-wrap: wrap;
11609
+ gap: var(--swc-spacing-50);
11610
+ min-inline-size: 0;
11578
11611
  }
11579
- .status[data-status='error'],
11580
- .segment[data-status='error'] {
11581
- background: var(--swc-negative-visual-color);
11612
+ .summary {
11613
+ min-inline-size: 0;
11582
11614
  }
11583
11615
  .segment {
11616
+ --status-color: var(--swc-gray-600);
11584
11617
  flex: none;
11585
11618
  inline-size: var(--swc-spacing-200);
11586
- block-size: var(--swc-spacing-50);
11619
+ block-size: var(--swc-spacing-75);
11587
11620
  border-radius: var(--swc-corner-radius-full);
11621
+ background: var(--status-color);
11622
+ }
11623
+ [data-status='thinking'],
11624
+ [data-status='working'] {
11625
+ --status-color: var(--swc-informative-color-900);
11626
+ }
11627
+ [data-status='waiting'] {
11628
+ --status-color: var(--swc-notice-color-900);
11629
+ }
11630
+ [data-status='error'] {
11631
+ --status-color: var(--swc-negative-color-900);
11588
11632
  }
11589
11633
  .fill {
11590
11634
  grid-area: fill;
11591
- position: relative;
11592
- z-index: 1;
11593
- align-self: start;
11635
+ align-self: center;
11636
+ justify-self: end;
11594
11637
  font-size: var(--swc-font-size-75);
11638
+ line-height: var(--swc-line-height-100);
11595
11639
  font-variant-numeric: tabular-nums;
11596
11640
  color: var(--swc-neutral-subdued-content-color-default);
11597
11641
  }
@@ -11604,13 +11648,10 @@ var SliccAgents = class extends ModelElement {
11604
11648
  font-weight: var(--swc-bold-font-weight);
11605
11649
  }
11606
11650
  .drop-cell {
11607
- position: absolute;
11608
- inset-block: 0;
11609
- inset-inline-end: 0;
11651
+ grid-area: strip;
11652
+ align-self: center;
11653
+ justify-self: end;
11610
11654
  display: flex;
11611
- align-items: center;
11612
- padding-inline: var(--swc-spacing-100);
11613
- background: var(--row-background);
11614
11655
  opacity: 0;
11615
11656
  }
11616
11657
  li:hover .drop-cell,
@@ -11637,16 +11678,27 @@ var SliccAgents = class extends ModelElement {
11637
11678
  opacity: 1;
11638
11679
  }
11639
11680
  }
11681
+ @media (forced-colors: active) {
11682
+ .marker,
11683
+ .segment,
11684
+ li[aria-selected='true']::before {
11685
+ forced-color-adjust: none;
11686
+ background: CanvasText;
11687
+ }
11688
+ .marker.unread,
11689
+ li[aria-selected='true']::before {
11690
+ background: Highlight;
11691
+ color: HighlightText;
11692
+ }
11693
+ }
11640
11694
  `
11641
11695
  ];
11642
11696
  subscribe(model) {
11643
- const focused2 = this.#focused(model);
11644
- this.#expanded = focused2?.kind === "scoop" ? focused2.parentId : null;
11697
+ this.#reveal(model);
11645
11698
  return [
11646
11699
  model.agent.on("agents", () => this.requestUpdate()),
11647
11700
  model.agent.on("active", () => {
11648
- const next = this.#focused(model);
11649
- if (next) this.#expanded = next.kind === "cone" ? next.id : next.parentId;
11701
+ this.#reveal(model);
11650
11702
  this.requestUpdate();
11651
11703
  }),
11652
11704
  watchTitles(model, () => this.requestUpdate()),
@@ -11661,16 +11713,18 @@ var SliccAgents = class extends ModelElement {
11661
11713
  for (const type of types) globalThis.removeEventListener(type, this.#modality, true);
11662
11714
  };
11663
11715
  }
11664
- #focused(model) {
11665
- return model.agent.list().find((agent) => agent.id === model.agent.active());
11716
+ #reveal(model) {
11717
+ const focused2 = model.agent.list().find((agent) => agent.id === model.agent.active());
11718
+ const cone = focused2?.kind === "cone" ? focused2.id : focused2?.parentId;
11719
+ if (cone) this.#expanded.add(cone);
11666
11720
  }
11667
- #select(id) {
11668
- this.model?.agent.select(id);
11721
+ #select(agent) {
11722
+ this.model?.agent.select(agent.id);
11723
+ if (agent.kind === "cone") this.#toggle(agent, true);
11669
11724
  }
11670
- #pick(agent) {
11671
- const open = agent.kind === "cone" && this.#expanded !== agent.id;
11672
- this.#select(agent.id);
11673
- if (agent.kind === "cone") this.#expanded = open ? agent.id : null;
11725
+ #toggle(agent, open = !this.#expanded.has(agent.id)) {
11726
+ if (open) this.#expanded.add(agent.id);
11727
+ else this.#expanded.delete(agent.id);
11674
11728
  this.requestUpdate();
11675
11729
  }
11676
11730
  focus() {
@@ -11697,17 +11751,17 @@ var SliccAgents = class extends ModelElement {
11697
11751
  if (!agent) return;
11698
11752
  if (event2.key === "Enter" || event2.key === " ") {
11699
11753
  event2.preventDefault();
11700
- this.#pick(agent);
11754
+ this.#select(agent);
11701
11755
  } else if (event2.key === "ArrowRight" && this.#scoops(agent).length > 0) {
11702
11756
  event2.preventDefault();
11703
- if (this.#expanded === agent.id) items[index + 1].focus();
11704
- else this.#pick(agent);
11757
+ if (this.#expanded.has(agent.id)) items[index + 1].focus();
11758
+ else this.#toggle(agent, true);
11705
11759
  } else if (event2.key === "ArrowLeft" && agent.kind === "scoop") {
11706
11760
  event2.preventDefault();
11707
11761
  items.find((item2) => item2.dataset.id === agent.parentId)?.focus();
11708
- } else if (event2.key === "ArrowLeft" && this.#expanded === agent.id) {
11762
+ } else if (event2.key === "ArrowLeft" && this.#expanded.has(agent.id)) {
11709
11763
  event2.preventDefault();
11710
- this.#pick(agent);
11764
+ this.#toggle(agent, false);
11711
11765
  } else if (event2.key === "Delete") {
11712
11766
  if (this.#droppable(agent)) {
11713
11767
  event2.preventDefault();
@@ -11774,7 +11828,7 @@ var SliccAgents = class extends ModelElement {
11774
11828
  ><swc-action-button
11775
11829
  id=${id}
11776
11830
  class="drop"
11777
- size="l"
11831
+ size="m"
11778
11832
  quiet
11779
11833
  tabindex=${selected ? "0" : "-1"}
11780
11834
  data-action="drop"
@@ -11795,7 +11849,7 @@ var SliccAgents = class extends ModelElement {
11795
11849
  ><swc-action-button
11796
11850
  id=${id}
11797
11851
  class="drop"
11798
- size="l"
11852
+ size="m"
11799
11853
  quiet
11800
11854
  tabindex=${selected ? "0" : "-1"}
11801
11855
  data-action="delete-cone"
@@ -11810,17 +11864,36 @@ var SliccAgents = class extends ModelElement {
11810
11864
  }
11811
11865
  #ribbon(scoops) {
11812
11866
  if (scoops.length === 0) return A;
11813
- return b`<span class="ribbon" aria-hidden="true">${scoops.map(
11867
+ return b`<span class="ribbon"><span class="segments" aria-hidden="true">${scoops.map(
11814
11868
  (scoop) => b`<span class="segment" data-status=${scoop.status}></span>`
11815
- )}</span>`;
11869
+ )}</span><span class="summary">${scoopBrief(scoops)}</span></span>`;
11816
11870
  }
11817
- #row(agent, active) {
11871
+ #disclosure(agent, scoops, open) {
11872
+ if (scoops.length === 0) return A;
11873
+ return b`<swc-action-button
11874
+ class="toggle"
11875
+ size="s"
11876
+ quiet
11877
+ tabindex="-1"
11878
+ aria-hidden="true"
11879
+ data-action="toggle-cone"
11880
+ ?data-open=${open}
11881
+ @mousedown=${(event2) => event2.preventDefault()}
11882
+ @click=${(event2) => {
11883
+ event2.stopPropagation();
11884
+ this.#toggle(agent);
11885
+ }}
11886
+ ><swc-icon-chevron-right slot="icon"></swc-icon-chevron-right
11887
+ ></swc-action-button>`;
11888
+ }
11889
+ #row(agent, active, anchor) {
11818
11890
  const selected = agent.id === active;
11891
+ const current = agent.id === anchor;
11819
11892
  const error = this.errors[agent.id];
11820
11893
  const model = this.model;
11821
11894
  const title = agentTitle(model, agent);
11822
11895
  const scoops = this.#scoops(agent);
11823
- const open = this.#expanded === agent.id;
11896
+ const open = this.#expanded.has(agent.id);
11824
11897
  const unread = selected ? 0 : agent.unread;
11825
11898
  const label = `${coneLabel(model, agent)}: ${statusLabel[agent.status]}, ${percent(agent.contextFill)} context${unread ? `, ${unread} unread` : ""}${error ? `. ${error}` : ""}`;
11826
11899
  const summary = scoopSummary(scoops);
@@ -11835,13 +11908,14 @@ var SliccAgents = class extends ModelElement {
11835
11908
  aria-controls=${open && scoops.length ? scoops.map((scoop) => `row-${scoop.id}`).join(" ") : A}
11836
11909
  aria-label=${label}
11837
11910
  aria-description=${summary || A}
11838
- tabindex=${selected ? "0" : "-1"}
11911
+ tabindex=${current ? "0" : "-1"}
11839
11912
  aria-keyshortcuts=${this.#droppable(agent) || this.#deletable(agent) ? "Delete" : A}
11840
11913
  title=${summary ? `${label}. ${summary}` : label}
11841
- @click=${() => this.#pick(agent)}
11914
+ @click=${() => this.#select(agent)}
11842
11915
  >
11916
+ ${this.#disclosure(agent, scoops, open)}
11843
11917
  <div class="head">
11844
- ${unread ? b`<span class="marker unread" aria-hidden="true">${unreadCount(unread)}</span>` : b`<span class="marker status" data-status=${agent.status} aria-hidden="true"></span>`}
11918
+ ${unread ? b`<span class="marker unread" data-status=${agent.status} aria-hidden="true">${unreadCount(unread)}</span>` : b`<span class="marker status" data-status=${agent.status} aria-hidden="true"></span>`}
11845
11919
  <span class="name">${agent.name}</span>
11846
11920
  </div>
11847
11921
  ${fillShown(agent.contextFill) ? b`<span class="fill" data-variant=${meterVariant2(agent.contextFill)}>${percent(agent.contextFill)}</span>` : A}
@@ -11865,15 +11939,26 @@ var SliccAgents = class extends ModelElement {
11865
11939
  </swc-action-button>
11866
11940
  </div>`;
11867
11941
  }
11942
+ updated() {
11943
+ for (const tip of this.renderRoot.querySelectorAll("swc-tooltip")) {
11944
+ tip.triggerElement = tip.previousElementSibling;
11945
+ }
11946
+ }
11868
11947
  render() {
11869
11948
  const list5 = this.model?.agent.list() ?? [];
11870
11949
  const active = this.model?.agent.active() ?? "";
11871
11950
  const errors = Object.values(this.errors);
11872
11951
  const rows = ordered(list5).filter(
11873
- (agent) => agent.kind === "cone" || agent.parentId === this.#expanded
11952
+ (agent) => agent.kind === "cone" || this.#expanded.has(agent.parentId)
11874
11953
  );
11954
+ const shown4 = rows.find((agent) => agent.id === active);
11955
+ const anchor = shown4 ? active : list5.find((agent) => agent.id === active)?.parentId ?? "";
11875
11956
  return b`<div class="list"><ul role="tree" aria-label="Cones and scoops" @keydown=${this.#keydown} @focusin=${this.#focusin} @focusout=${this.#focusout}>
11876
- ${rows.map((agent) => this.#row(agent, active))}
11957
+ ${c(
11958
+ rows,
11959
+ (agent) => agent.id,
11960
+ (agent) => this.#row(agent, active, anchor)
11961
+ )}
11877
11962
  </ul></div>${this.#actions()}
11878
11963
  <div class="sr" role="status">${errors.at(-1) ?? ""}</div>`;
11879
11964
  }
@@ -12229,6 +12314,326 @@ e25("swc-icon-visibility-off", o60);
12229
12314
  // node_modules/@adobe/spectrum-wc/dist/link.css
12230
12315
  var link_default = '/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/**\n * Standalone link presentation for native `<a href>` elements.\n *\n * Default anchor appearance inside `.swc-Typography--prose` and\n * `.swc-Typography--links` ships with `typography.css` (generated). Import this\n * stylesheet when authors need explicit BEM modifiers on anchors.\n *\n */\n\n.swc-Link {\n inline-size: -moz-fit-content;\n inline-size: fit-content;\n font-family: var(--swc-sans-font-family-stack);\n font-size: var(--swc-font-size-100);\n font-style: normal;\n font-weight: 400;\n line-height: 1.30;\n color: var(--swc-link-text-color-default, var(--swc-accent-color-900));\n -webkit-text-decoration: underline;\n text-decoration: underline;\n text-decoration-thickness: 1px;\n text-underline-offset: 1px;\n transition: color 130ms ease-in-out;\n\n &:hover {\n color: var(--swc-link-text-color-hover, var(--swc-accent-color-1000));\n }\n\n &:active {\n color: var(--swc-link-text-color-down, var(--swc-accent-color-1000));\n }\n\n &:focus-visible {\n color: var(--swc-link-text-color-focus, var(--swc-accent-color-1000));\n border-radius: 4px;\n outline: 2px solid var(--swc-link-focus-indicator-color, var(--swc-blue-800));\n outline-offset: 2px;\n }\n\n &:lang(ja),\n &:lang(zh),\n &:lang(ko) {\n line-height: 1.50;\n }\n}\n\n.swc-Link--standalone {\n font-weight: 500;\n}\n\n.swc-Link--secondary {\n --swc-link-text-color-default: var(--swc-gray-800);\n --swc-link-text-color-hover: var(--swc-gray-900);\n --swc-link-text-color-down: var(--swc-gray-900);\n --swc-link-text-color-focus: var(--swc-gray-900);\n}\n\n.swc-Link--staticWhite {\n --swc-link-text-color-default: var(--swc-white);\n --swc-link-text-color-hover: var(--swc-white);\n --swc-link-text-color-down: var(--swc-white);\n --swc-link-text-color-focus: var(--swc-white);\n --swc-link-focus-indicator-color: var(--swc-white);\n}\n\n.swc-Link--staticBlack {\n --swc-link-text-color-default: var(--swc-black);\n --swc-link-text-color-hover: var(--swc-black);\n --swc-link-text-color-down: var(--swc-black);\n --swc-link-text-color-focus: var(--swc-black);\n --swc-link-focus-indicator-color: var(--swc-black);\n}\n\n.swc-Link--quiet.swc-Link--standalone {\n -webkit-text-decoration: none;\n text-decoration: none;\n}\n\n.swc-Link--quiet.swc-Link--standalone:hover {\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n';
12231
12316
 
12317
+ // src/app/guests.ts
12318
+ var hour = 36e5;
12319
+ var day = 24 * hour;
12320
+ var guestExpiries = [
12321
+ ["1h", "1 hour", hour],
12322
+ ["1d", "1 day", day],
12323
+ ["7d", "7 days", 7 * day],
12324
+ ["30d", "30 days", 30 * day]
12325
+ ];
12326
+ var guestNameLimit = 40;
12327
+ var approve = "A person with Control approves each one.";
12328
+ function gateOptions(field, cone) {
12329
+ const scoops = cone.scoops.map((name) => ({
12330
+ value: `scoop:${name}`,
12331
+ label: `${name} decides`,
12332
+ description: `The scoop ${name} decides.`
12333
+ }));
12334
+ const user2 = { value: "user", label: "You approve each one", description: approve };
12335
+ const agent = {
12336
+ value: "agent",
12337
+ label: "The automatic check decides",
12338
+ description: "It decides by your intent, and asks a person when unsure."
12339
+ };
12340
+ if (field === "tools") return [user2, agent, ...scoops];
12341
+ return [
12342
+ user2,
12343
+ agent,
12344
+ {
12345
+ value: "cone",
12346
+ label: `${cone.name} decides`,
12347
+ description: "The shared cone itself decides."
12348
+ },
12349
+ ...scoops,
12350
+ { value: "off", label: "No review", description: "Messages go straight in as follow-ups." }
12351
+ ];
12352
+ }
12353
+ function guestCones(agents) {
12354
+ return agents.filter((agent) => agent.kind === "cone" && !agent.frozen).map((cone) => ({
12355
+ id: cone.id,
12356
+ name: cone.name,
12357
+ scoops: agents.filter((agent) => agent.kind === "scoop" && agent.parentId === cone.id).map((scoop) => scoop.name)
12358
+ }));
12359
+ }
12360
+ function activeCone(agents, active) {
12361
+ const agent = agents.find((item2) => item2.id === active);
12362
+ return (agent?.kind === "scoop" ? agent.parentId : agent?.id) ?? "";
12363
+ }
12364
+ function guestNameProblem(label) {
12365
+ if (!label) return "Enter a name for the guest.";
12366
+ if (label.length > guestNameLimit)
12367
+ return `Keep the name to ${guestNameLimit} characters or fewer.`;
12368
+ return null;
12369
+ }
12370
+ function guestExpiry(seat, now = Date.now()) {
12371
+ if (seat.expiresAt === null) return "No expiry";
12372
+ const hours = Math.max(1, Math.ceil((seat.expiresAt - now) / hour));
12373
+ if (hours < 24) return `Expires in ${hours} ${hours === 1 ? "hour" : "hours"}`;
12374
+ const days = Math.round(hours / 24);
12375
+ return `Expires in ${days} ${days === 1 ? "day" : "days"}`;
12376
+ }
12377
+ function pendingLabel(count) {
12378
+ return `${count} waiting for review`;
12379
+ }
12380
+ var SliccGuestInvite = class extends i2 {
12381
+ static properties = {
12382
+ cone: { state: true },
12383
+ label: { state: true },
12384
+ expiry: { state: true },
12385
+ messages: { state: true },
12386
+ tools: { state: true },
12387
+ pending: { state: true },
12388
+ error: { state: true },
12389
+ problem: { state: true },
12390
+ url: { state: true },
12391
+ copied: { state: true },
12392
+ uncopied: { state: true }
12393
+ };
12394
+ port = null;
12395
+ cones = [];
12396
+ trigger = null;
12397
+ #result = Promise.withResolvers();
12398
+ #seat = null;
12399
+ constructor() {
12400
+ super();
12401
+ this.cone = "";
12402
+ this.label = "";
12403
+ this.expiry = "7d";
12404
+ this.messages = "user";
12405
+ this.tools = "user";
12406
+ this.pending = false;
12407
+ this.error = "";
12408
+ this.problem = "";
12409
+ this.url = "";
12410
+ this.copied = false;
12411
+ this.uncopied = false;
12412
+ }
12413
+ static styles = [
12414
+ dialogStyles,
12415
+ i`
12416
+ .fields,
12417
+ .link,
12418
+ .once {
12419
+ inline-size: calc(var(--mod-alert-dialog-max-width) - 2 * var(--mod-alert-dialog-padding));
12420
+ box-sizing: border-box;
12421
+ }
12422
+ .fields {
12423
+ display: grid;
12424
+ gap: var(--swc-spacing-300);
12425
+ padding: var(--swc-spacing-75);
12426
+ }
12427
+ .field {
12428
+ display: grid;
12429
+ gap: var(--swc-spacing-75);
12430
+ min-width: 0;
12431
+ }
12432
+ .fields sp-field-label,
12433
+ .fields sp-textfield,
12434
+ .link sp-textfield {
12435
+ margin: 0;
12436
+ inline-size: 100%;
12437
+ }
12438
+ sp-picker {
12439
+ inline-size: 100%;
12440
+ }
12441
+ .link {
12442
+ display: flex;
12443
+ flex-wrap: wrap;
12444
+ align-items: center;
12445
+ gap: var(--swc-spacing-100);
12446
+ padding: var(--swc-spacing-75);
12447
+ }
12448
+ .link sp-textfield {
12449
+ flex: 1 1 200px;
12450
+ inline-size: auto;
12451
+ }
12452
+ .once {
12453
+ margin-block-start: var(--swc-spacing-200);
12454
+ padding-inline: var(--swc-spacing-75);
12455
+ }
12456
+ .problem {
12457
+ display: flex;
12458
+ align-items: flex-start;
12459
+ gap: var(--swc-spacing-75);
12460
+ margin: var(--swc-spacing-200) var(--swc-spacing-75) 0;
12461
+ color: var(--swc-negative-content-color-default);
12462
+ overflow-wrap: anywhere;
12463
+ --swc-icon-color: var(--swc-negative-content-color-default);
12464
+ }
12465
+ .problem swc-icon-alert-triangle {
12466
+ flex: none;
12467
+ margin-block-start: var(--swc-spacing-50);
12468
+ }
12469
+ `
12470
+ ];
12471
+ get result() {
12472
+ return this.#result.promise;
12473
+ }
12474
+ get #dialog() {
12475
+ return this.renderRoot.querySelector("dialog");
12476
+ }
12477
+ #focus(selector) {
12478
+ const target2 = this.renderRoot.querySelector(selector);
12479
+ void target2.updateComplete.then(() => target2.focus());
12480
+ }
12481
+ firstUpdated() {
12482
+ this.#dialog.showModal();
12483
+ this.#focus("#guest-name");
12484
+ }
12485
+ disconnectedCallback() {
12486
+ super.disconnectedCallback();
12487
+ this.url = "";
12488
+ this.#result.resolve(this.#seat);
12489
+ }
12490
+ get #current() {
12491
+ return this.cones.find((cone) => cone.id === this.cone) ?? this.cones[0];
12492
+ }
12493
+ #keep(gate, field, cone) {
12494
+ return gateOptions(field, cone).some((option2) => option2.value === gate) ? gate : "user";
12495
+ }
12496
+ #pick(event2) {
12497
+ return event2.target.value;
12498
+ }
12499
+ #setCone(event2) {
12500
+ this.cone = this.#pick(event2);
12501
+ this.messages = this.#keep(this.messages, "messages", this.#current);
12502
+ this.tools = this.#keep(this.tools, "tools", this.#current);
12503
+ }
12504
+ #input(event2) {
12505
+ this.label = event2.currentTarget.value;
12506
+ this.problem = "";
12507
+ }
12508
+ #key(event2) {
12509
+ if (event2.key !== "Enter") return;
12510
+ event2.preventDefault();
12511
+ void this.create();
12512
+ }
12513
+ async create() {
12514
+ if (this.pending) return;
12515
+ const label = this.label.trim();
12516
+ const problem = guestNameProblem(label);
12517
+ this.problem = problem ?? "";
12518
+ this.error = "";
12519
+ if (problem) {
12520
+ this.#focus("#guest-name");
12521
+ return;
12522
+ }
12523
+ const ms = guestExpiries.find(([key2]) => key2 === this.expiry)[2];
12524
+ this.pending = true;
12525
+ try {
12526
+ const { seat, url } = await this.port.mint(this.#current.id, {
12527
+ label,
12528
+ expiresAt: Date.now() + ms,
12529
+ gates: { messages: this.messages, tools: this.tools }
12530
+ });
12531
+ this.#seat = seat;
12532
+ this.url = url;
12533
+ this.pending = false;
12534
+ await this.updateComplete;
12535
+ this.#focus("[data-action=copy-guest-url]");
12536
+ } catch (error) {
12537
+ this.pending = false;
12538
+ this.error = failure(error);
12539
+ }
12540
+ }
12541
+ async copy() {
12542
+ try {
12543
+ await globalThis.navigator.clipboard.writeText(this.url);
12544
+ this.copied = true;
12545
+ this.uncopied = false;
12546
+ } catch {
12547
+ this.copied = false;
12548
+ this.uncopied = true;
12549
+ }
12550
+ }
12551
+ #cancel(event2) {
12552
+ if (this.pending) event2.preventDefault();
12553
+ }
12554
+ #closed() {
12555
+ this.url = "";
12556
+ this.remove();
12557
+ if (this.trigger?.isConnected) this.trigger.focus();
12558
+ }
12559
+ #gate(field, title, value) {
12560
+ const options = gateOptions(field, this.#current);
12561
+ const chosen = options.find((option2) => option2.value === value);
12562
+ const id = `guest-${field}`;
12563
+ return b`<div class="field">
12564
+ <sp-field-label for=${id} size="m">${title}</sp-field-label>
12565
+ <sp-picker id=${id} size="m" label=${title} data-action=${`guest-${field}`} .value=${l(value)} ?disabled=${this.pending} @change=${(event2) => {
12566
+ this[field] = this.#pick(event2);
12567
+ }}>
12568
+ ${options.map((option2) => b`<sp-menu-item value=${option2.value}>${option2.label}<span slot="description">${option2.description}</span></sp-menu-item>`)}
12569
+ </sp-picker>
12570
+ <sp-help-text size="m" data-help=${field}>${chosen.description}</sp-help-text>
12571
+ </div>`;
12572
+ }
12573
+ #form() {
12574
+ const cone = this.#current;
12575
+ return b`<h2 id="title" slot="heading">Invite a guest</h2>
12576
+ <div class="fields">
12577
+ <div class="field">
12578
+ <sp-field-label for="guest-cone" size="m">Cone</sp-field-label>
12579
+ <sp-picker id="guest-cone" size="m" label="Cone" data-action="guest-cone" .value=${l(cone.id)} ?disabled=${this.pending} @change=${this.#setCone}>
12580
+ ${this.cones.map((item2) => b`<sp-menu-item value=${item2.id}>${item2.name}</sp-menu-item>`)}
12581
+ </sp-picker>
12582
+ </div>
12583
+ <div class="field">
12584
+ <sp-field-label for="guest-name" size="m">Name</sp-field-label>
12585
+ <sp-textfield id="guest-name" size="m" data-action="guest-name" autocomplete="off" .value=${l(this.label)} ?invalid=${Boolean(this.problem)} ?readonly=${this.pending} @input=${this.#input} @keydown=${this.#key}>
12586
+ <sp-help-text slot="help-text">Shown to you and in the cone, never set by the guest.</sp-help-text>
12587
+ ${this.problem ? b`<sp-help-text slot="negative-help-text" icon>${this.problem}</sp-help-text>` : A}
12588
+ </sp-textfield>
12589
+ </div>
12590
+ <div class="field">
12591
+ <sp-field-label for="guest-expiry" size="m">Link expires</sp-field-label>
12592
+ <sp-picker id="guest-expiry" size="m" label="Link expires" data-action="guest-expiry" .value=${l(this.expiry)} ?disabled=${this.pending} @change=${(event2) => {
12593
+ this.expiry = this.#pick(event2);
12594
+ }}>
12595
+ ${guestExpiries.map(([key2, label]) => b`<sp-menu-item value=${key2}>${label}</sp-menu-item>`)}
12596
+ </sp-picker>
12597
+ </div>
12598
+ ${this.#gate("messages", "Their messages", this.messages)}
12599
+ ${this.#gate("tools", "Their tool calls", this.tools)}
12600
+ </div>
12601
+ ${this.error ? b`<p class="problem" role="alert" data-error="guest"><swc-icon-alert-triangle size="s" aria-hidden="true"></swc-icon-alert-triangle><span>${this.error}</span></p>` : A}
12602
+ <swc-button slot="button" variant="secondary" fill-style="outline" data-cancel data-action="cancel-guest" ?disabled=${this.pending} @click=${() => this.#dialog.close()}>Cancel</swc-button>
12603
+ <swc-button slot="button" variant="accent" data-action="create-guest-link" ?pending=${this.pending} @click=${() => this.create()}>Create link</swc-button>`;
12604
+ }
12605
+ #link() {
12606
+ const label = this.#seat?.label ?? "";
12607
+ return b`<h2 id="title" slot="heading">Link for ${label}</h2>
12608
+ <div class="link" data-guest-link>
12609
+ <sp-textfield size="m" readonly label="Guest link" aria-label="Guest link" data-copy="guest-url" .value=${this.url}></sp-textfield>
12610
+ <swc-action-button size="m" data-action="copy-guest-url" accessible-label=${this.copied ? "Copied" : "Copy guest link"} @click=${() => this.copy()}>
12611
+ <swc-icon-copy slot="icon"></swc-icon-copy>${this.copied ? "Copied" : "Copy"}
12612
+ </swc-action-button>
12613
+ </div>
12614
+ <p class="once" data-once>This link is shown only once. Copy it now.</p>
12615
+ ${this.uncopied ? b`<p class="problem" role="alert" data-error="guest-copy"><swc-icon-alert-triangle size="s" aria-hidden="true"></swc-icon-alert-triangle><span>Couldn’t copy. Select the link and copy it.</span></p>` : A}
12616
+ <swc-button slot="button" variant="accent" data-action="done-guest" @click=${() => this.#dialog.close()}>Done</swc-button>`;
12617
+ }
12618
+ render() {
12619
+ return b`<dialog aria-labelledby="title" data-guest-invite=${this.url ? "link" : "form"} @cancel=${this.#cancel} @close=${this.#closed}>
12620
+ <sp-alert-dialog variant="confirmation">${this.url ? this.#link() : this.#form()}</sp-alert-dialog>
12621
+ </dialog>`;
12622
+ }
12623
+ };
12624
+ function invite(options) {
12625
+ const trigger2 = options.trigger ?? focused();
12626
+ const element2 = document.createElement("slicc-guest-invite");
12627
+ const cones = guestCones(options.agents);
12628
+ const active = activeCone(options.agents, options.active);
12629
+ element2.port = options.port;
12630
+ element2.cones = cones;
12631
+ element2.cone = cones.some((cone) => cone.id === active) ? active : cones[0]?.id ?? "";
12632
+ element2.trigger = trigger2;
12633
+ themeOf(trigger2).append(element2);
12634
+ return element2.result;
12635
+ }
12636
+
12232
12637
  // node_modules/uqr/dist/index.mjs
12233
12638
  var QrCodeDataType = /* @__PURE__ */ ((QrCodeDataType2) => {
12234
12639
  QrCodeDataType2[QrCodeDataType2["Border"] = -1] = "Border";
@@ -13184,6 +13589,14 @@ function leaderConfirm(leader) {
13184
13589
  variant: "destructive"
13185
13590
  };
13186
13591
  }
13592
+ function guestConfirm(seat) {
13593
+ return {
13594
+ title: `Revoke ${seat.label}?`,
13595
+ body: "Their link stops working at once. To let them back in, invite them again.",
13596
+ action: "Revoke",
13597
+ variant: "destructive"
13598
+ };
13599
+ }
13187
13600
  function remoteLight(status2) {
13188
13601
  const devices = status2?.links?.devices ?? [];
13189
13602
  const asking3 = devices.filter((device) => device.asking);
@@ -13328,9 +13741,12 @@ var SliccNetwork = class extends ModelElement {
13328
13741
  revealed: { state: true },
13329
13742
  linksError: { state: true },
13330
13743
  syncError: { state: true },
13331
- leaderError: { state: true }
13744
+ leaderError: { state: true },
13745
+ guestError: { state: true },
13746
+ guestsOff: { state: true }
13332
13747
  };
13333
13748
  #leaderId = "";
13749
+ #guestId = "";
13334
13750
  constructor() {
13335
13751
  super();
13336
13752
  this.checking = false;
@@ -13344,6 +13760,8 @@ var SliccNetwork = class extends ModelElement {
13344
13760
  this.linksError = "";
13345
13761
  this.syncError = "";
13346
13762
  this.leaderError = "";
13763
+ this.guestError = "";
13764
+ this.guestsOff = null;
13347
13765
  }
13348
13766
  static styles = [
13349
13767
  r(link_default),
@@ -13649,6 +14067,17 @@ var SliccNetwork = class extends ModelElement {
13649
14067
  grid-column: 1 / -1;
13650
14068
  font-size: var(--swc-font-size-75);
13651
14069
  }
14070
+ .sr {
14071
+ position: absolute;
14072
+ width: 1px;
14073
+ height: 1px;
14074
+ margin: -1px;
14075
+ padding: 0;
14076
+ overflow: hidden;
14077
+ clip-path: inset(50%);
14078
+ white-space: nowrap;
14079
+ border: 0;
14080
+ }
13652
14081
  time {
13653
14082
  color: var(--swc-neutral-subdued-content-color-default);
13654
14083
  font-size: var(--swc-font-size-75);
@@ -13668,10 +14097,19 @@ var SliccNetwork = class extends ModelElement {
13668
14097
  this.linksError = "";
13669
14098
  this.syncError = "";
13670
14099
  this.leaderError = "";
14100
+ this.guestError = "";
14101
+ this.guestsOff = null;
13671
14102
  const update = () => this.requestUpdate();
13672
14103
  return [
13673
14104
  model.tray.on("status", update),
13674
- ...model.network ? [model.network.on("network", update)] : []
14105
+ ...model.network ? [model.network.on("network", update)] : [],
14106
+ ...model.guests ? [
14107
+ model.guests.on("seats", update),
14108
+ model.agent.on("agents", update),
14109
+ model.guests.on("unavailable", (text2) => {
14110
+ this.guestsOff = text2;
14111
+ })
14112
+ ] : []
13675
14113
  ];
13676
14114
  }
13677
14115
  reveal(section) {
@@ -14082,6 +14520,56 @@ var SliccNetwork = class extends ModelElement {
14082
14520
  <ul aria-labelledby="leaders">${status2.leaders.map((leader) => this.#leader(port, leader))}</ul>
14083
14521
  </section>`;
14084
14522
  }
14523
+ async #revoke(event2, port, seat) {
14524
+ const trigger2 = event2.currentTarget;
14525
+ if (!await confirm({ ...guestConfirm(seat), trigger: trigger2 })) return;
14526
+ await this.#act(
14527
+ `guest:${seat.id}`,
14528
+ () => {
14529
+ this.#guestId = seat.id;
14530
+ return port.revoke(seat.id);
14531
+ },
14532
+ "guestError"
14533
+ );
14534
+ }
14535
+ #invite(event2, port) {
14536
+ const agent = this.model.agent;
14537
+ void invite({
14538
+ port,
14539
+ agents: agent.list(),
14540
+ active: agent.active(),
14541
+ trigger: event2.currentTarget
14542
+ });
14543
+ }
14544
+ #seat(port, seat, now) {
14545
+ const action = `guest:${seat.id}`;
14546
+ const cone = this.model.agent.list().find((item2) => item2.id === seat.agentId);
14547
+ return b`<li class="device guest" data-seat=${seat.id} data-connected=${seat.connected ? "true" : "false"}>
14548
+ <div class="who">
14549
+ <span class="name" title=${seat.label}>${seat.label}</span>
14550
+ <swc-status-light size="s" variant=${seat.connected ? "positive" : "neutral"}>${seat.connected ? "Connected" : "Not connected"}</swc-status-light>
14551
+ ${seat.pending > 0 ? b`<swc-badge size="s" variant="notice" subtle data-pending=${seat.pending}><span aria-hidden="true">${seat.pending} waiting</span><span class="sr">${pendingLabel(seat.pending)}</span></swc-badge>` : A}
14552
+ </div>
14553
+ <swc-button size="s" variant="secondary" fill-style="outline" data-action="revoke-guest" accessible-label=${`Revoke ${seat.label}`} ?pending=${this.busy === action} ?disabled=${this.#waiting(action)} @click=${(event2) => this.#revoke(event2, port, seat)}>Revoke</swc-button>
14554
+ <span class="where"><span data-seat-cone>${cone?.name ?? seat.agentId}</span><span data-expiry>${guestExpiry(seat, now)}</span></span>
14555
+ ${this.guestError && this.#guestId === seat.id ? b`<div class="error" role="alert" data-error="guest"><swc-icon-alert-triangle size="s" aria-hidden="true"></swc-icon-alert-triangle><span>${this.guestError}</span></div>` : A}
14556
+ </li>`;
14557
+ }
14558
+ #guestsSection() {
14559
+ const port = this.model?.guests;
14560
+ if (!port) return A;
14561
+ const seats = port.list();
14562
+ const off = port.unavailable ? port.unavailable() : this.guestsOff;
14563
+ const cones = guestCones(this.model.agent.list()).length > 0;
14564
+ const now = Date.now();
14565
+ return b`<section aria-labelledby="guests" data-guests=${seats.length}>
14566
+ <div class="head">
14567
+ <h2 id="guests">Guests</h2>
14568
+ ${off ? b`<p class="muted" data-guests-unavailable>${off}</p>` : b`<swc-button size="m" variant="accent" data-action="invite-guest" ?disabled=${!cones} @click=${(event2) => this.#invite(event2, port)}>Invite a guest</swc-button>`}
14569
+ </div>
14570
+ ${seats.length ? b`<ul aria-labelledby="guests">${seats.map((seat) => this.#seat(port, seat, now))}</ul>` : b`<p class="muted" data-guests-empty>No guests yet.</p>`}
14571
+ </section>`;
14572
+ }
14085
14573
  #exit(event2, port) {
14086
14574
  const value = event2.target.value;
14087
14575
  void this.#tailnet("exit", () => port.setExitNode?.(value === "none" ? null : value));
@@ -14204,6 +14692,7 @@ var SliccNetwork = class extends ModelElement {
14204
14692
  ${this.#state(port, status2)}
14205
14693
  ${this.#sync(this.model.tray)}
14206
14694
  ${this.#leadersSection(port, status2)}
14695
+ ${this.#guestsSection()}
14207
14696
  ${this.#tailnetSection(port, status2)}
14208
14697
  ${this.#linksSection(port, status2)}
14209
14698
  ${this.#whole(status2)}
@@ -30751,7 +31240,7 @@ function errorCard(item2, handlers) {
30751
31240
  function time(at) {
30752
31241
  return new Date(at).toLocaleTimeString("en-GB", { hour: "2-digit", minute: "2-digit" });
30753
31242
  }
30754
- function day(at) {
31243
+ function day2(at) {
30755
31244
  return new Date(at).toLocaleDateString("en-GB", {
30756
31245
  weekday: "short",
30757
31246
  day: "numeric",
@@ -30764,7 +31253,7 @@ function stamps(messages) {
30764
31253
  let last = -Infinity;
30765
31254
  let seen = "";
30766
31255
  for (const message of messages) {
30767
- const label = day(message.createdAt);
31256
+ const label = day2(message.createdAt);
30768
31257
  if (label !== seen) {
30769
31258
  seen = label;
30770
31259
  last = -Infinity;
@@ -33932,13 +34421,40 @@ function origin() {
33932
34421
  const active = focused();
33933
34422
  return active?.closest("slicc-terminal") ?? active;
33934
34423
  }
33935
- var inCwd = (approval) => approval.alwaysScope === "cwd" && !!approval.cwd;
34424
+ var inCwd = (approval) => approval.kind === "sudo" && approval.alwaysScope === "cwd" && !!approval.cwd;
33936
34425
  function alwaysHint(approval) {
33937
34426
  return inCwd(approval) ? `Always allow lets ${approval.requester.name} run exactly this command with sudo, in ${approval.cwd}, without asking again.` : `Always allow lets ${approval.requester.name} run exactly this command with sudo without asking again.`;
33938
34427
  }
34428
+ function guestAsking(approval) {
34429
+ return approval.kind === "guest-message" ? `${approval.requester.name} wants to send this to ${approval.agentName ?? "this cone"}:` : `${approval.agentName ?? "This cone"} wants to run ${approval.tool} for ${approval.requester.name}:`;
34430
+ }
34431
+ function guestWaiting(approval) {
34432
+ return approval.kind === "guest-message" ? `${approval.requester.name}'s message to ${approval.agentName ?? "this cone"} waits for approval on the device in control.` : `${approval.agentName ?? "This cone"} wants to run ${approval.tool} for ${approval.requester.name}, which waits for approval on the device in control.`;
34433
+ }
34434
+ var clear = { certain: null, maybe: null };
34435
+ function rulesOf(approval) {
34436
+ return approval.kind === "sudo" ? secretRules(approval.command, approval.cwd) : clear;
34437
+ }
33939
34438
  function waiting2(model, now) {
33940
34439
  return [...model?.approvals?.list() ?? []].filter((approval) => approval.expiresAt > now).sort((a23, b13) => a23.createdAt - b13.createdAt);
33941
34440
  }
34441
+ var titles = {
34442
+ sudo: {
34443
+ ask: "Allow sudo?",
34444
+ elsewhere: "Answered in another tab",
34445
+ expired: "Sudo request timed out"
34446
+ },
34447
+ "guest-message": {
34448
+ ask: "Allow a guest\u2019s message?",
34449
+ elsewhere: "Answered elsewhere",
34450
+ expired: "Guest message timed out"
34451
+ },
34452
+ "guest-tool": {
34453
+ ask: "Allow a guest\u2019s tool call?",
34454
+ elsewhere: "Answered elsewhere",
34455
+ expired: "Guest tool call timed out"
34456
+ }
34457
+ };
33942
34458
  function gone(reason) {
33943
34459
  return reason === "expired" ? "expired" : "elsewhere";
33944
34460
  }
@@ -33956,6 +34472,7 @@ var SliccApprovals = class extends ModelElement {
33956
34472
  #showing = null;
33957
34473
  #pending = /* @__PURE__ */ new Set();
33958
34474
  #done = /* @__PURE__ */ new Set();
34475
+ #closed = /* @__PURE__ */ new Set();
33959
34476
  #port;
33960
34477
  #ended = /* @__PURE__ */ new Map();
33961
34478
  #timer = null;
@@ -33974,6 +34491,9 @@ var SliccApprovals = class extends ModelElement {
33974
34491
  :host {
33975
34492
  display: contents;
33976
34493
  }
34494
+ sp-alert-dialog {
34495
+ display: grid;
34496
+ }
33977
34497
  .command {
33978
34498
  margin: var(--swc-spacing-200) 0 0;
33979
34499
  padding: var(--swc-spacing-200) var(--swc-spacing-300);
@@ -33986,7 +34506,24 @@ var SliccApprovals = class extends ModelElement {
33986
34506
  max-block-size: 8lh;
33987
34507
  overflow: auto;
33988
34508
  }
34509
+ .guest {
34510
+ margin-block-start: var(--swc-spacing-200);
34511
+ padding: var(--swc-spacing-200) var(--swc-spacing-300);
34512
+ border: var(--swc-border-width-100) solid var(--swc-gray-300);
34513
+ border-radius: var(--swc-corner-radius-medium-default);
34514
+ white-space: pre-wrap;
34515
+ overflow-wrap: anywhere;
34516
+ max-block-size: 12lh;
34517
+ overflow: auto;
34518
+ }
34519
+ .files {
34520
+ margin: var(--swc-spacing-200) 0 0;
34521
+ padding-inline-start: var(--swc-spacing-400);
34522
+ font-size: var(--swc-font-size-75);
34523
+ overflow-wrap: anywhere;
34524
+ }
33989
34525
  .cwd,
34526
+ .verdict,
33990
34527
  .hint,
33991
34528
  .timer,
33992
34529
  .more {
@@ -34042,6 +34579,7 @@ var SliccApprovals = class extends ModelElement {
34042
34579
  this.failure = null;
34043
34580
  this.#pending.clear();
34044
34581
  this.#done.clear();
34582
+ this.#closed.clear();
34045
34583
  this.#ended.clear();
34046
34584
  }
34047
34585
  if (!port) return [];
@@ -34076,8 +34614,9 @@ var SliccApprovals = class extends ModelElement {
34076
34614
  async decide(approval, decision2) {
34077
34615
  const port = this.model?.approvals;
34078
34616
  if (!port?.decide || this.busy || decision2 !== "deny" && !this.#armed) return;
34079
- const verdict = secretRules(approval.command, approval.cwd);
34080
- if (decision2 === "always" && (verdict.certain ?? verdict.maybe)) return;
34617
+ const verdict = rulesOf(approval);
34618
+ if (decision2 === "always" && (approval.kind !== "sudo" || verdict.certain || verdict.maybe))
34619
+ return;
34081
34620
  this.busy = decision2;
34082
34621
  this.failure = null;
34083
34622
  this.#pending.add(approval.id);
@@ -34095,7 +34634,7 @@ var SliccApprovals = class extends ModelElement {
34095
34634
  }
34096
34635
  }
34097
34636
  #current() {
34098
- return this.model?.approvals?.decide ? waiting2(this.model, this.now) : [];
34637
+ return this.model?.approvals?.decide ? waiting2(this.model, this.now).filter(({ id }) => !this.#closed.has(id)) : [];
34099
34638
  }
34100
34639
  willUpdate(changed) {
34101
34640
  super.willUpdate(changed);
@@ -34119,7 +34658,7 @@ var SliccApprovals = class extends ModelElement {
34119
34658
  const all2 = this.model?.approvals?.list() ?? [];
34120
34659
  this.#tick(this.isConnected && all2.length > 0);
34121
34660
  const dialog = this.renderRoot.querySelector("dialog");
34122
- const key2 = dialog ? `${dialog.dataset.approval}:${dialog.dataset.gone ?? ""}` : "";
34661
+ const key2 = dialog ? `${dialog.dataset.approval}:${dialog.dataset.gone ?? ""}:${dialog.hasAttribute("data-rejected")}` : "";
34123
34662
  if (key2 === this.#shown) return;
34124
34663
  if (dialog && !this.#shown) this.#trigger = origin();
34125
34664
  this.#shown = key2;
@@ -34136,9 +34675,15 @@ var SliccApprovals = class extends ModelElement {
34136
34675
  this.gone = null;
34137
34676
  this.#showing = null;
34138
34677
  }
34678
+ #dismiss(approval) {
34679
+ this.#done.add(approval.id);
34680
+ this.#closed.add(approval.id);
34681
+ this.failure = null;
34682
+ }
34139
34683
  #cancel(event2, approval) {
34140
34684
  event2.preventDefault();
34141
34685
  if (this.gone) this.close();
34686
+ else if (this.failure?.id === approval.id) this.#dismiss(approval);
34142
34687
  else void this.decide(approval, "deny");
34143
34688
  }
34144
34689
  #button(approval, decision2, label, variant) {
@@ -34156,12 +34701,31 @@ var SliccApprovals = class extends ModelElement {
34156
34701
  #dialog(approval, key2, content) {
34157
34702
  return i17(
34158
34703
  key2,
34159
- b`<dialog role="alertdialog" aria-labelledby="title" aria-describedby="asking" data-approval=${approval.id} data-kind=${approval.kind} data-requester=${approval.requester.kind} data-gone=${this.gone?.reason ?? A} @cancel=${(event2) => this.#cancel(event2, approval)}>${content}</dialog>`
34704
+ b`<dialog role="alertdialog" aria-labelledby="title" aria-describedby="asking" data-approval=${approval.id} data-kind=${approval.kind} data-requester=${approval.requester.kind} data-gone=${this.gone?.reason ?? A} data-rejected=${!this.gone && this.failure?.id === approval.id ? "" : A} @cancel=${(event2) => this.#cancel(event2, approval)}>${content}</dialog>`
34160
34705
  );
34161
34706
  }
34162
34707
  #request(approval) {
34163
- return b`<p id="asking">${asking(approval)}:</p>
34164
- <pre class="command" data-command>${sudo(approval)}</pre>`;
34708
+ if (approval.kind === "sudo")
34709
+ return b`<p id="asking">${asking(approval)}:</p>
34710
+ <pre class="command" data-command>${sudo(approval)}</pre>`;
34711
+ if (approval.kind === "guest-tool")
34712
+ return b`<p id="asking">${guestAsking(approval)}</p>
34713
+ <pre class="command" data-summary>${approval.summary}</pre>`;
34714
+ const files = approval.attachments ?? [];
34715
+ return b`<p id="asking">${guestAsking(approval)}</p>
34716
+ <div class="guest" data-guest-text>${approval.text}</div>
34717
+ ${files.length ? b`<ul class="files" data-attachments>${files.map((file) => b`<li>${file.name} · ${file.mimeType} · ${size3(file.size)}</li>`)}</ul>` : A}`;
34718
+ }
34719
+ #verdict(approval) {
34720
+ const verdict = approval.kind === "sudo" ? void 0 : approval.verdict;
34721
+ return verdict ? b`<p class="verdict" data-verdict=${verdict.decision}>The automatic check would ${verdict.decision} this: ${verdict.reason}</p>` : A;
34722
+ }
34723
+ #actions(approval, rejected, always) {
34724
+ if (rejected)
34725
+ return b`<swc-button slot="button" variant="secondary" fill-style="outline" data-action="close" @click=${() => this.#dismiss(approval)}>Close</swc-button>`;
34726
+ return b`${this.#button(approval, "deny", "Deny", "secondary")}
34727
+ ${always ? this.#button(approval, "always", inCwd(approval) ? "Always allow in this directory" : "Always allow", "secondary") : A}
34728
+ ${this.#button(approval, "once", "Allow once", "accent")}`;
34165
34729
  }
34166
34730
  render() {
34167
34731
  if (this.gone) {
@@ -34169,8 +34733,8 @@ var SliccApprovals = class extends ModelElement {
34169
34733
  return this.#dialog(
34170
34734
  approval2,
34171
34735
  `gone:${approval2.id}`,
34172
- b`<sp-alert-dialog variant="information">
34173
- <h2 id="title" slot="heading">${reason === "expired" ? "Sudo request timed out" : "Answered in another tab"}</h2>
34736
+ b`<sp-alert-dialog variant="information" data-approval-kind=${approval2.kind}>
34737
+ <h2 id="title" slot="heading">${titles[approval2.kind][reason]}</h2>
34174
34738
  ${this.#request(approval2)}
34175
34739
  ${reason === "expired" ? b`<p class="timer" data-timer>Denied because nobody answered in time.</p>` : A}
34176
34740
  <swc-button slot="button" variant="secondary" fill-style="outline" data-action="close" @click=${() => this.close()}>Close</swc-button>
@@ -34182,24 +34746,23 @@ var SliccApprovals = class extends ModelElement {
34182
34746
  const [approval, ...rest] = held ? [held, ...list5.filter(({ id }) => id !== held.id)] : list5;
34183
34747
  if (!approval) return A;
34184
34748
  const failure2 = this.failure?.id === approval.id ? this.failure.message : "";
34185
- const verdict = secretRules(approval.command, approval.cwd);
34749
+ const verdict = rulesOf(approval);
34186
34750
  const rules = verdict.certain ?? verdict.maybe;
34187
- const always = approval.always && !rules;
34751
+ const always = approval.kind === "sudo" && approval.always && !rules;
34752
+ const hint2 = approval.kind === "sudo" && always ? alwaysHint(approval) : "";
34188
34753
  return this.#dialog(
34189
34754
  approval,
34190
34755
  approval.id,
34191
- b`<sp-alert-dialog variant="warning">
34192
- <h2 id="title" slot="heading">Allow sudo?</h2>
34756
+ b`<sp-alert-dialog variant="warning" data-approval-kind=${approval.kind}>
34757
+ <h2 id="title" slot="heading">${titles[approval.kind].ask}</h2>
34193
34758
  ${this.#request(approval)}
34194
- ${approval.cwd ? b`<p class="cwd">In ${approval.cwd}</p>` : A}
34759
+ ${this.#verdict(approval)}
34760
+ ${approval.kind === "sudo" && approval.cwd ? b`<p class="cwd">In ${approval.cwd}</p>` : A}
34195
34761
  ${rules ? b`<div class="rules" data-secret-rules=${rules}><swc-icon-alert-triangle size="s" aria-hidden="true"></swc-icon-alert-triangle><p>${verdict.certain ? b`<strong>This changes secret rules.</strong> It names <code>${rules}</code>, where SLICC keeps which secrets programs may use and where they may be sent.` : b`<strong>This may change secret rules.</strong> SLICC can't tell where <code>${rules}</code> leads, and it could reach the files where SLICC keeps which secrets programs may use and where they may be sent.`} Allow it only if you asked for this change.</p></div>` : A}
34196
- ${always ? b`<p class="hint">${alwaysHint(approval)}</p>` : A}
34197
- ${failure2 ? b`<p class="problem" role="alert" data-error><swc-icon-alert-triangle size="s" aria-hidden="true"></swc-icon-alert-triangle><span>${failure2}</span></p>` : A}
34198
- <p class="timer" data-timer>Denied automatically in ${countdown(approval.expiresAt - this.now)}.</p>
34762
+ ${hint2 ? b`<p class="hint">${hint2}</p>` : A}
34763
+ ${failure2 ? b`<p class="problem" role="alert" data-error><swc-icon-alert-triangle size="s" aria-hidden="true"></swc-icon-alert-triangle><span>${failure2}</span></p>` : b`<p class="timer" data-timer>Denied automatically in ${countdown(approval.expiresAt - this.now)}.</p>`}
34199
34764
  ${rest.length ? b`<p class="more" data-more>${rest.length === 1 ? "1 more request is waiting." : `${rest.length} more requests are waiting.`}</p>` : A}
34200
- ${this.#button(approval, "deny", "Deny", "secondary")}
34201
- ${always ? this.#button(approval, "always", inCwd(approval) ? "Always allow in this directory" : "Always allow", "secondary") : A}
34202
- ${this.#button(approval, "once", "Allow once", "accent")}
34765
+ ${this.#actions(approval, !!failure2, always)}
34203
34766
  </sp-alert-dialog>`
34204
34767
  );
34205
34768
  }
@@ -36846,7 +37409,7 @@ var SliccChat = class extends ThemedElement {
36846
37409
  let anchor = null;
36847
37410
  for (const message of messages) {
36848
37411
  const calls = toolOnly(message, showThinking);
36849
- if (anchor && calls && day(message.createdAt) === day(anchor.createdAt)) {
37412
+ if (anchor && calls && day2(message.createdAt) === day2(anchor.createdAt)) {
36850
37413
  extra.set(anchor.id, [...extra.get(anchor.id) ?? [], ...calls]);
36851
37414
  owners.set(calls[0].id, {
36852
37415
  id: message.id,
@@ -36861,7 +37424,7 @@ var SliccChat = class extends ThemedElement {
36861
37424
  const target2 = last && (into.get(last.id) ?? last.id);
36862
37425
  for (const message of messages) {
36863
37426
  if (into.has(message.id)) continue;
36864
- const label = day(message.createdAt);
37427
+ const label = day2(message.createdAt);
36865
37428
  if (label !== previous) {
36866
37429
  out.push([
36867
37430
  `day:${message.id}`,
@@ -39730,7 +40293,16 @@ var SliccNotices = class extends ModelElement {
39730
40293
  </div>`;
39731
40294
  }
39732
40295
  #approval(approval) {
39733
- return b`<div class="notice" role="status" data-approval-notice=${approval.id} data-tone="warning">
40296
+ if (approval.kind !== "sudo")
40297
+ return b`<div class="notice" role="status" data-approval-notice=${approval.id} data-approval-kind=${approval.kind} data-tone="warning">
40298
+ <swc-icon-alert-triangle></swc-icon-alert-triangle>
40299
+ <div class="text">
40300
+ <span class="title">${approval.kind === "guest-message" ? "Waiting for approval of a guest\u2019s message" : "Waiting for approval of a guest\u2019s tool call"}</span>
40301
+ <p>${guestWaiting(approval)}</p>
40302
+ <p>Denied automatically at ${deadline(approval.expiresAt)}.</p>
40303
+ </div>
40304
+ </div>`;
40305
+ return b`<div class="notice" role="status" data-approval-notice=${approval.id} data-approval-kind="sudo" data-tone="warning">
39734
40306
  <swc-icon-alert-triangle></swc-icon-alert-triangle>
39735
40307
  <div class="text">
39736
40308
  <span class="title">Waiting for sudo approval</span>
@@ -39872,8 +40444,8 @@ function replaceable(secret) {
39872
40444
  }
39873
40445
  function filename(now = Date.now()) {
39874
40446
  const date = new Date(now);
39875
- const day2 = [date.getFullYear(), date.getMonth() + 1, date.getDate()].map((part2) => String(part2).padStart(2, "0")).join("-");
39876
- return `slicc-secrets-${day2}.slicc-vault`;
40447
+ const day3 = [date.getFullYear(), date.getMonth() + 1, date.getDate()].map((part2) => String(part2).padStart(2, "0")).join("-");
40448
+ return `slicc-secrets-${day3}.slicc-vault`;
39877
40449
  }
39878
40450
  function download(bytes, name, root2) {
39879
40451
  const url = URL.createObjectURL(
@@ -84715,6 +85287,7 @@ var elements = {
84715
85287
  "slicc-value-request": SliccValueRequest,
84716
85288
  "slicc-confirm": SliccConfirm,
84717
85289
  "slicc-prompt": SliccPrompt,
85290
+ "slicc-guest-invite": SliccGuestInvite,
84718
85291
  "slicc-app": SliccApp
84719
85292
  };
84720
85293
  function define2() {
@@ -84746,6 +85319,7 @@ export {
84746
85319
  SliccFileView,
84747
85320
  SliccFiles,
84748
85321
  SliccFollow,
85322
+ SliccGuestInvite,
84749
85323
  SliccNetwork,
84750
85324
  SliccNotices,
84751
85325
  SliccPrompt,