@design.estate/dees-catalog 21.40.0 → 21.41.1

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 (40) hide show
  1. package/dist_bundle/bundle.js +258 -113
  2. package/dist_bundle/bundle.js.map +1 -1
  3. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-5K6O7YAL.js → chunk-6S3PVK6Y.js} +6 -2
  4. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-5K6O7YAL.js.map → chunk-6S3PVK6Y.js.map} +1 -1
  5. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-V55MXKAS.js → chunk-DGKFXX4X.js} +3 -3
  6. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-GQD5HSUW.js → chunk-OUB3OAV2.js} +2 -2
  7. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-6VMRGXCJ.js → de-2ALUFQHJ.js} +6 -2
  8. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-6VMRGXCJ.js.map → de-2ALUFQHJ.js.map} +1 -1
  9. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-QSZV6TA6.js → dees-modal-CDXSOKKD.js} +3 -3
  10. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-FXF7TT4M.js → dees-workspace-terminal-46JECUZO.js} +4 -4
  11. package/dist_ts_web/00_commitinfo_data.js +1 -1
  12. package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.d.ts +3 -1
  13. package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.js +13 -2
  14. package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.d.ts +16 -0
  15. package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.js +59 -19
  16. package/dist_ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.d.ts +12 -2
  17. package/dist_ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.demo.js +36 -2
  18. package/dist_ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.js +95 -11
  19. package/dist_ts_web/elements/00group-harness/interfaces.d.ts +14 -1
  20. package/dist_ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown-popup.d.ts +2 -0
  21. package/dist_ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown-popup.js +12 -3
  22. package/dist_ts_web/i18n/de.d.ts +16 -0
  23. package/dist_ts_web/i18n/de.js +5 -1
  24. package/dist_ts_web/i18n/messages.d.ts +16 -0
  25. package/dist_ts_web/i18n/messages.js +5 -1
  26. package/package.json +1 -1
  27. package/readme.md +7 -5
  28. package/ts_web/00_commitinfo_data.ts +1 -1
  29. package/ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.ts +7 -0
  30. package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.ts +53 -17
  31. package/ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.demo.ts +38 -1
  32. package/ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.ts +104 -10
  33. package/ts_web/elements/00group-harness/interfaces.ts +16 -1
  34. package/ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown-popup.ts +10 -2
  35. package/ts_web/i18n/de.ts +4 -0
  36. package/ts_web/i18n/messages.ts +4 -0
  37. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-V55MXKAS.js.map → chunk-DGKFXX4X.js.map} +0 -0
  38. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-GQD5HSUW.js.map → chunk-OUB3OAV2.js.map} +0 -0
  39. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-QSZV6TA6.js.map → dees-modal-CDXSOKKD.js.map} +0 -0
  40. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-FXF7TT4M.js.map → dees-workspace-terminal-46JECUZO.js.map} +0 -0
@@ -26,7 +26,7 @@ import {
26
26
  ownAppuiLabels,
27
27
  resolveAppuiLabels,
28
28
  xtermStyles
29
- } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-V55MXKAS.js";
29
+ } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-DGKFXX4X.js";
30
30
  import {
31
31
  ActionRunController,
32
32
  BarInfoController,
@@ -124,7 +124,7 @@ import {
124
124
  workspaceVisibility,
125
125
  zIndexLayers,
126
126
  zIndexRegistry
127
- } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-GQD5HSUW.js";
127
+ } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-OUB3OAV2.js";
128
128
  import {
129
129
  dcMessages,
130
130
  dcSourceI18n,
@@ -134,7 +134,7 @@ import {
134
134
  firstDayOfWeek,
135
135
  iso_exports,
136
136
  momentFormat
137
- } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-5K6O7YAL.js";
137
+ } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-6S3PVK6Y.js";
138
138
  import {
139
139
  __decorateElement,
140
140
  __decoratorMetadata,
@@ -2617,6 +2617,8 @@ var _DeesInputDropdownPopup = class _DeesInputDropdownPopup extends (_a7 = DeesE
2617
2617
  __privateAdd(this, _visible, __runInitializers(_init9, 68, this, false)), __runInitializers(_init9, 71, this);
2618
2618
  __publicField(this, "windowLayer", null);
2619
2619
  __publicField(this, "isDestroying", false);
2620
+ /** The list's openings so far: a close removes the list after its exit only if none came since. */
2621
+ __publicField(this, "openings", 0);
2620
2622
  __publicField(this, "handleSearch", /* @__PURE__ */ __name((event) => {
2621
2623
  const searchTerm = event.target.value;
2622
2624
  this.searchValue = searchTerm;
@@ -2727,15 +2729,17 @@ var _DeesInputDropdownPopup = class _DeesInputDropdownPopup extends (_a7 = DeesE
2727
2729
  const selectedIndex = this.options.findIndex((option) => option.key === this.selectedKey && !option.disabled);
2728
2730
  this.highlightedIndex = selectedIndex >= 0 ? selectedIndex : firstUsableIndex(this.options);
2729
2731
  this.searchValue = "";
2732
+ this.openings++;
2733
+ this.isDestroying = false;
2730
2734
  this.classList.remove("closing");
2731
2735
  this.windowLayer = await DeesWindowLayer.createAndShow({ dimmed: false, ownerElement: this.ownerComponent });
2732
2736
  this.windowLayer.addEventListener("click", () => {
2733
2737
  this.dispatchEvent(new CustomEvent("close-request"));
2734
2738
  });
2735
2739
  this.menuZIndex = zIndexRegistry.getNextZIndex();
2736
- zIndexRegistry.register(this, this.menuZIndex);
2737
2740
  this.style.zIndex = this.menuZIndex.toString();
2738
2741
  this.windowLayer.parentElement.appendChild(this);
2742
+ zIndexRegistry.register(this, this.menuZIndex);
2739
2743
  await domtools_pluginexports_exports.smartpromise.delayFor(0);
2740
2744
  this.visible = true;
2741
2745
  this.listenForRepositioning();
@@ -2746,6 +2750,7 @@ var _DeesInputDropdownPopup = class _DeesInputDropdownPopup extends (_a7 = DeesE
2746
2750
  return;
2747
2751
  }
2748
2752
  this.isDestroying = true;
2753
+ const opening = this.openings;
2749
2754
  this.classList.add("closing");
2750
2755
  this.searchAbort?.abort();
2751
2756
  this.repositionListeners?.abort();
@@ -2759,6 +2764,7 @@ var _DeesInputDropdownPopup = class _DeesInputDropdownPopup extends (_a7 = DeesE
2759
2764
  }
2760
2765
  this.visible = false;
2761
2766
  await domtools_pluginexports_exports.smartpromise.delayFor(150);
2767
+ if (opening !== this.openings) return;
2762
2768
  if (this.parentElement) {
2763
2769
  this.parentElement.removeChild(this);
2764
2770
  }
@@ -54955,6 +54961,29 @@ var scratchpad = {
54955
54961
  updatedAt: Date.now() - 45e3,
54956
54962
  updatedBy: "intelligence"
54957
54963
  };
54964
+ var attachedResources = [
54965
+ {
54966
+ id: "terminal-dev",
54967
+ kind: "terminal",
54968
+ title: "dev server",
54969
+ icon: "lucide:SquareTerminal",
54970
+ state: "running",
54971
+ preview: "~/projects/storefront"
54972
+ },
54973
+ {
54974
+ id: "browser-preview",
54975
+ kind: "browser",
54976
+ title: "Storefront preview",
54977
+ icon: "lucide:Globe",
54978
+ state: "open",
54979
+ preview: "http://localhost:3000/checkout"
54980
+ }
54981
+ ];
54982
+ var draftScratchpad = {
54983
+ id: "draft",
54984
+ text: "",
54985
+ revision: 0
54986
+ };
54958
54987
  var exchanges = [{
54959
54988
  id: "intelligence-1",
54960
54989
  question: "What remains before release?",
@@ -54973,7 +55002,7 @@ var showEvent = /* @__PURE__ */ __name((event) => {
54973
55002
  detail: event.detail
54974
55003
  });
54975
55004
  }, "showEvent");
54976
- var demoFunc47 = /* @__PURE__ */ __name(() => demoPage("Session details", "Tasks, context usage, scratchpad and session intelligence alongside a conversation.", b`
55005
+ var demoFunc47 = /* @__PURE__ */ __name(() => demoPage("Session details", "Tasks, context usage, scratchpad, attached resources and session intelligence alongside a conversation.", b`
54977
55006
  <style>
54978
55007
  .harnessSessionSidebarDemos {
54979
55008
  display: flex;
@@ -54996,12 +55025,23 @@ var demoFunc47 = /* @__PURE__ */ __name(() => demoPage("Session details", "Tasks
54996
55025
  .todos=${todos}
54997
55026
  .metrics=${metrics}
54998
55027
  .scratchpad=${scratchpad}
55028
+ .attachedResources=${attachedResources}
54999
55029
  .intelligenceEnabled=${true}
55000
55030
  .intelligenceExchanges=${exchanges}
55001
55031
  @harness-scratchpad-save=${showEvent}
55032
+ @harness-attached-resource-open=${showEvent}
55002
55033
  @harness-session-intelligence-ask=${showEvent}
55003
55034
  ></dees-harness-session-sidebar>
55004
55035
  </div>
55036
+ <div class="harnessSessionSidebarDemo">
55037
+ <dees-harness-session-sidebar
55038
+ .metrics=${{ lifetimeUsedTokens: 0 }}
55039
+ .scratchpad=${draftScratchpad}
55040
+ .attachedResources=${[]}
55041
+ .intelligenceEnabled=${true}
55042
+ @harness-scratchpad-input=${showEvent}
55043
+ ></dees-harness-session-sidebar>
55044
+ </div>
55005
55045
  <div class="harnessSessionSidebarDemo">
55006
55046
  <dees-harness-session-sidebar
55007
55047
  .showTasks=${false}
@@ -55023,10 +55063,10 @@ var demoFunc47 = /* @__PURE__ */ __name(() => demoPage("Session details", "Tasks
55023
55063
  `), "demoFunc");
55024
55064
 
55025
55065
  // ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.ts
55026
- var _expandedSection_dec, _intelligenceQuestion_dec, _scratchpadStale_dec, _scratchpadDirty_dec, _scratchpadDraftRevision_dec, _scratchpadDraft_dec, _disabled_dec4, _sessionKey_dec, _intelligenceError_dec, _intelligenceBusy_dec, _intelligenceExchanges_dec, _intelligenceHeading_dec, _intelligenceAvailabilityAction_dec, _intelligenceUnavailableReason_dec, _intelligenceAvailabilityStatus_dec, _intelligenceEnabled_dec, _scratchpadError_dec, _scratchpadBusy_dec, _scratchpad_dec, _metrics_dec, _toolRegistry_dec5, _toolMessages_dec, _showTasks_dec, _todos_dec2, _a68, _DeesHarnessSessionSidebar_decorators, _init70, _todos2, _showTasks, _toolMessages, _toolRegistry5, _metrics, _scratchpad, _scratchpadBusy, _scratchpadError, _intelligenceEnabled, _intelligenceAvailabilityStatus, _intelligenceUnavailableReason, _intelligenceAvailabilityAction, _intelligenceHeading, _intelligenceExchanges, _intelligenceBusy, _intelligenceError, _sessionKey, _disabled4, _scratchpadDraft, _scratchpadDraftRevision, _scratchpadDirty, _scratchpadStale, _intelligenceQuestion, _expandedSection;
55066
+ var _expandedSection_dec, _intelligenceQuestion_dec, _scratchpadStale_dec, _scratchpadDirty_dec, _scratchpadDraftRevision_dec, _scratchpadDraft_dec, _disabled_dec4, _sessionKey_dec, _intelligenceError_dec, _intelligenceBusy_dec, _intelligenceExchanges_dec, _intelligenceHeading_dec, _intelligenceAvailabilityAction_dec, _intelligenceUnavailableReason_dec, _intelligenceAvailabilityStatus_dec, _intelligenceEnabled_dec, _attachedResources_dec, _scratchpadError_dec, _scratchpadBusy_dec, _scratchpad_dec, _metrics_dec, _toolRegistry_dec5, _toolMessages_dec, _showTasks_dec, _todos_dec2, _a68, _DeesHarnessSessionSidebar_decorators, _init70, _todos2, _showTasks, _toolMessages, _toolRegistry5, _metrics, _scratchpad, _scratchpadBusy, _scratchpadError, _attachedResources, _intelligenceEnabled, _intelligenceAvailabilityStatus, _intelligenceUnavailableReason, _intelligenceAvailabilityAction, _intelligenceHeading, _intelligenceExchanges, _intelligenceBusy, _intelligenceError, _sessionKey, _disabled4, _scratchpadDraft, _scratchpadDraftRevision, _scratchpadDirty, _scratchpadStale, _intelligenceQuestion, _expandedSection;
55027
55067
  var { repeat: repeat4 } = directives_exports;
55028
55068
  _DeesHarnessSessionSidebar_decorators = [customElement("dees-harness-session-sidebar")];
55029
- var _DeesHarnessSessionSidebar = class _DeesHarnessSessionSidebar extends (_a68 = DeesElement, _todos_dec2 = [n({ attribute: false })], _showTasks_dec = [n({ type: Boolean, reflect: true })], _toolMessages_dec = [n({ attribute: false })], _toolRegistry_dec5 = [n({ attribute: false })], _metrics_dec = [n({ attribute: false })], _scratchpad_dec = [n({ attribute: false })], _scratchpadBusy_dec = [n({ type: Boolean, reflect: true })], _scratchpadError_dec = [n({ reflect: true })], _intelligenceEnabled_dec = [n({ type: Boolean, reflect: true })], _intelligenceAvailabilityStatus_dec = [n({ reflect: true })], _intelligenceUnavailableReason_dec = [n({ reflect: true })], _intelligenceAvailabilityAction_dec = [n({ attribute: false })], _intelligenceHeading_dec = [n({ reflect: true })], _intelligenceExchanges_dec = [n({ attribute: false })], _intelligenceBusy_dec = [n({ type: Boolean, reflect: true })], _intelligenceError_dec = [n({ reflect: true })], _sessionKey_dec = [n({ reflect: true })], _disabled_dec4 = [n({ type: Boolean, reflect: true })], _scratchpadDraft_dec = [r2()], _scratchpadDraftRevision_dec = [r2()], _scratchpadDirty_dec = [r2()], _scratchpadStale_dec = [r2()], _intelligenceQuestion_dec = [r2()], _expandedSection_dec = [r2()], _a68) {
55069
+ var _DeesHarnessSessionSidebar = class _DeesHarnessSessionSidebar extends (_a68 = DeesElement, _todos_dec2 = [n({ attribute: false })], _showTasks_dec = [n({ type: Boolean, reflect: true })], _toolMessages_dec = [n({ attribute: false })], _toolRegistry_dec5 = [n({ attribute: false })], _metrics_dec = [n({ attribute: false })], _scratchpad_dec = [n({ attribute: false })], _scratchpadBusy_dec = [n({ type: Boolean, reflect: true })], _scratchpadError_dec = [n({ reflect: true })], _attachedResources_dec = [n({ attribute: false })], _intelligenceEnabled_dec = [n({ type: Boolean, reflect: true })], _intelligenceAvailabilityStatus_dec = [n({ reflect: true })], _intelligenceUnavailableReason_dec = [n({ reflect: true })], _intelligenceAvailabilityAction_dec = [n({ attribute: false })], _intelligenceHeading_dec = [n({ reflect: true })], _intelligenceExchanges_dec = [n({ attribute: false })], _intelligenceBusy_dec = [n({ type: Boolean, reflect: true })], _intelligenceError_dec = [n({ reflect: true })], _sessionKey_dec = [n({ reflect: true })], _disabled_dec4 = [n({ type: Boolean, reflect: true })], _scratchpadDraft_dec = [r2()], _scratchpadDraftRevision_dec = [r2()], _scratchpadDirty_dec = [r2()], _scratchpadStale_dec = [r2()], _intelligenceQuestion_dec = [r2()], _expandedSection_dec = [r2()], _a68) {
55030
55070
  constructor() {
55031
55071
  super(...arguments);
55032
55072
  __publicField(this, "t", dcLocalize(this));
@@ -55038,22 +55078,23 @@ var _DeesHarnessSessionSidebar = class _DeesHarnessSessionSidebar extends (_a68
55038
55078
  __privateAdd(this, _scratchpad, __runInitializers(_init70, 28, this)), __runInitializers(_init70, 31, this);
55039
55079
  __privateAdd(this, _scratchpadBusy, __runInitializers(_init70, 32, this, false)), __runInitializers(_init70, 35, this);
55040
55080
  __privateAdd(this, _scratchpadError, __runInitializers(_init70, 36, this, "")), __runInitializers(_init70, 39, this);
55041
- __privateAdd(this, _intelligenceEnabled, __runInitializers(_init70, 40, this, false)), __runInitializers(_init70, 43, this);
55042
- __privateAdd(this, _intelligenceAvailabilityStatus, __runInitializers(_init70, 44, this, "available")), __runInitializers(_init70, 47, this);
55043
- __privateAdd(this, _intelligenceUnavailableReason, __runInitializers(_init70, 48, this, "")), __runInitializers(_init70, 51, this);
55044
- __privateAdd(this, _intelligenceAvailabilityAction, __runInitializers(_init70, 52, this)), __runInitializers(_init70, 55, this);
55045
- __privateAdd(this, _intelligenceHeading, __runInitializers(_init70, 56, this, "")), __runInitializers(_init70, 59, this);
55046
- __privateAdd(this, _intelligenceExchanges, __runInitializers(_init70, 60, this, [])), __runInitializers(_init70, 63, this);
55047
- __privateAdd(this, _intelligenceBusy, __runInitializers(_init70, 64, this, false)), __runInitializers(_init70, 67, this);
55048
- __privateAdd(this, _intelligenceError, __runInitializers(_init70, 68, this, "")), __runInitializers(_init70, 71, this);
55049
- __privateAdd(this, _sessionKey, __runInitializers(_init70, 72, this, "")), __runInitializers(_init70, 75, this);
55050
- __privateAdd(this, _disabled4, __runInitializers(_init70, 76, this, false)), __runInitializers(_init70, 79, this);
55051
- __privateAdd(this, _scratchpadDraft, __runInitializers(_init70, 80, this, "")), __runInitializers(_init70, 83, this);
55052
- __privateAdd(this, _scratchpadDraftRevision, __runInitializers(_init70, 84, this, 0)), __runInitializers(_init70, 87, this);
55053
- __privateAdd(this, _scratchpadDirty, __runInitializers(_init70, 88, this, false)), __runInitializers(_init70, 91, this);
55054
- __privateAdd(this, _scratchpadStale, __runInitializers(_init70, 92, this, false)), __runInitializers(_init70, 95, this);
55055
- __privateAdd(this, _intelligenceQuestion, __runInitializers(_init70, 96, this, "")), __runInitializers(_init70, 99, this);
55056
- __privateAdd(this, _expandedSection, __runInitializers(_init70, 100, this)), __runInitializers(_init70, 103, this);
55081
+ __privateAdd(this, _attachedResources, __runInitializers(_init70, 40, this)), __runInitializers(_init70, 43, this);
55082
+ __privateAdd(this, _intelligenceEnabled, __runInitializers(_init70, 44, this, false)), __runInitializers(_init70, 47, this);
55083
+ __privateAdd(this, _intelligenceAvailabilityStatus, __runInitializers(_init70, 48, this, "available")), __runInitializers(_init70, 51, this);
55084
+ __privateAdd(this, _intelligenceUnavailableReason, __runInitializers(_init70, 52, this, "")), __runInitializers(_init70, 55, this);
55085
+ __privateAdd(this, _intelligenceAvailabilityAction, __runInitializers(_init70, 56, this)), __runInitializers(_init70, 59, this);
55086
+ __privateAdd(this, _intelligenceHeading, __runInitializers(_init70, 60, this, "")), __runInitializers(_init70, 63, this);
55087
+ __privateAdd(this, _intelligenceExchanges, __runInitializers(_init70, 64, this, [])), __runInitializers(_init70, 67, this);
55088
+ __privateAdd(this, _intelligenceBusy, __runInitializers(_init70, 68, this, false)), __runInitializers(_init70, 71, this);
55089
+ __privateAdd(this, _intelligenceError, __runInitializers(_init70, 72, this, "")), __runInitializers(_init70, 75, this);
55090
+ __privateAdd(this, _sessionKey, __runInitializers(_init70, 76, this, "")), __runInitializers(_init70, 79, this);
55091
+ __privateAdd(this, _disabled4, __runInitializers(_init70, 80, this, false)), __runInitializers(_init70, 83, this);
55092
+ __privateAdd(this, _scratchpadDraft, __runInitializers(_init70, 84, this, "")), __runInitializers(_init70, 87, this);
55093
+ __privateAdd(this, _scratchpadDraftRevision, __runInitializers(_init70, 88, this, 0)), __runInitializers(_init70, 91, this);
55094
+ __privateAdd(this, _scratchpadDirty, __runInitializers(_init70, 92, this, false)), __runInitializers(_init70, 95, this);
55095
+ __privateAdd(this, _scratchpadStale, __runInitializers(_init70, 96, this, false)), __runInitializers(_init70, 99, this);
55096
+ __privateAdd(this, _intelligenceQuestion, __runInitializers(_init70, 100, this, "")), __runInitializers(_init70, 103, this);
55097
+ __privateAdd(this, _expandedSection, __runInitializers(_init70, 104, this)), __runInitializers(_init70, 107, this);
55057
55098
  __publicField(this, "sectionStateInitialized", false);
55058
55099
  __publicField(this, "activityPositions", /* @__PURE__ */ new Map());
55059
55100
  __publicField(this, "activityFlipReady", false);
@@ -55251,6 +55292,7 @@ var _DeesHarnessSessionSidebar = class _DeesHarnessSessionSidebar extends (_a68
55251
55292
  ${this.toolActivityEntries.length ? this.renderToolActivity() : ""}
55252
55293
  ${this.hasMetrics ? this.renderMetrics() : ""}
55253
55294
  ${this.scratchpad ? this.renderScratchpad() : ""}
55295
+ ${this.attachedResources ? this.renderAttachedResources() : ""}
55254
55296
  ${this.intelligenceEnabled ? this.renderIntelligence() : ""}
55255
55297
  </div>
55256
55298
  `;
@@ -55273,6 +55315,7 @@ var _DeesHarnessSessionSidebar = class _DeesHarnessSessionSidebar extends (_a68
55273
55315
  ...this.toolActivityEntries.length ? ["activity"] : [],
55274
55316
  ...this.hasMetrics ? ["metrics"] : [],
55275
55317
  ...this.scratchpad ? ["scratchpad"] : [],
55318
+ ...this.attachedResources ? ["resources"] : [],
55276
55319
  ...this.intelligenceEnabled ? ["intelligence"] : []
55277
55320
  ];
55278
55321
  }
@@ -55281,6 +55324,7 @@ var _DeesHarnessSessionSidebar = class _DeesHarnessSessionSidebar extends (_a68
55281
55324
  if (this.toolActivityEntries.length) return "activity";
55282
55325
  if (this.hasMetrics) return "metrics";
55283
55326
  if (this.scratchpad) return "scratchpad";
55327
+ if (this.attachedResources?.length) return "resources";
55284
55328
  if (this.intelligenceEnabled) return "intelligence";
55285
55329
  return this.showTasks ? "tasks" : void 0;
55286
55330
  }
@@ -55534,6 +55578,12 @@ var _DeesHarnessSessionSidebar = class _DeesHarnessSessionSidebar extends (_a68
55534
55578
  @input=${(event) => {
55535
55579
  this.scratchpadDraft = event.currentTarget.value;
55536
55580
  this.scratchpadDirty = this.scratchpadDraft !== scratchpad2.text;
55581
+ const detail = { text: this.scratchpadDraft };
55582
+ this.dispatchEvent(new CustomEvent("harness-scratchpad-input", {
55583
+ detail,
55584
+ bubbles: true,
55585
+ composed: true
55586
+ }));
55537
55587
  }}
55538
55588
  @keydown=${(event) => {
55539
55589
  if (event.key === "Enter" && (event.metaKey || event.ctrlKey)) {
@@ -55576,6 +55626,57 @@ var _DeesHarnessSessionSidebar = class _DeesHarnessSessionSidebar extends (_a68
55576
55626
  `
55577
55627
  );
55578
55628
  }
55629
+ renderAttachedResources() {
55630
+ const resources = this.attachedResources ?? [];
55631
+ return this.renderSection(
55632
+ "resources",
55633
+ this.t("sidebar.attachedResources"),
55634
+ "lucide:Link",
55635
+ resources.length ? b`
55636
+ <div class="resourceList">
55637
+ ${repeat4(
55638
+ resources,
55639
+ (resource) => resource.id,
55640
+ (resource) => this.renderAttachedResource(resource)
55641
+ )}
55642
+ </div>
55643
+ ` : b`<div class="empty">${this.t("sidebar.noAttachedResources")}</div>`,
55644
+ resources.length ? this.t.format.number(resources.length) : ""
55645
+ );
55646
+ }
55647
+ /** One attached resource: what it is, its name and state, and where it points, as one button that opens it. */
55648
+ renderAttachedResource(resourceArg) {
55649
+ const title = resourceArg.title || resourceArg.id;
55650
+ const meta = [resourceArg.kind, resourceArg.preview?.trim()].filter(Boolean).join(" \xB7 ");
55651
+ return b`
55652
+ <button
55653
+ class="resourceItem"
55654
+ type="button"
55655
+ data-resource-id=${resourceArg.id}
55656
+ aria-label=${this.t("sidebar.openResource", { title })}
55657
+ @click=${() => this.openAttachedResource(resourceArg)}
55658
+ >
55659
+ <span class="resourceIcon">
55660
+ <dees-icon icon=${resourceArg.icon || "lucide:Box"} iconSize="13"></dees-icon>
55661
+ </span>
55662
+ <span class="resourceCopy">
55663
+ <span class="resourceTitleRow">
55664
+ <span class="resourceTitle" title=${title}>${title}</span>
55665
+ ${resourceArg.state ? b`<span class="resourceState">${resourceArg.state}</span>` : ""}
55666
+ </span>
55667
+ ${meta ? b`<dees-harness-overflow-text class="resourceMeta" title=${meta}>${meta}</dees-harness-overflow-text>` : ""}
55668
+ </span>
55669
+ </button>
55670
+ `;
55671
+ }
55672
+ openAttachedResource(resourceArg) {
55673
+ const detail = { resource: resourceArg };
55674
+ this.dispatchEvent(new CustomEvent("harness-attached-resource-open", {
55675
+ detail,
55676
+ bubbles: true,
55677
+ composed: true
55678
+ }));
55679
+ }
55579
55680
  renderIntelligence() {
55580
55681
  const heading = this.intelligenceHeading.trim() || this.t("sidebar.intelligence");
55581
55682
  const intelligenceAvailable = this.intelligenceAvailabilityStatus === "available";
@@ -55675,6 +55776,7 @@ _metrics = new WeakMap();
55675
55776
  _scratchpad = new WeakMap();
55676
55777
  _scratchpadBusy = new WeakMap();
55677
55778
  _scratchpadError = new WeakMap();
55779
+ _attachedResources = new WeakMap();
55678
55780
  _intelligenceEnabled = new WeakMap();
55679
55781
  _intelligenceAvailabilityStatus = new WeakMap();
55680
55782
  _intelligenceUnavailableReason = new WeakMap();
@@ -55699,6 +55801,7 @@ __decorateElement(_init70, 4, "metrics", _metrics_dec, _DeesHarnessSessionSideba
55699
55801
  __decorateElement(_init70, 4, "scratchpad", _scratchpad_dec, _DeesHarnessSessionSidebar, _scratchpad);
55700
55802
  __decorateElement(_init70, 4, "scratchpadBusy", _scratchpadBusy_dec, _DeesHarnessSessionSidebar, _scratchpadBusy);
55701
55803
  __decorateElement(_init70, 4, "scratchpadError", _scratchpadError_dec, _DeesHarnessSessionSidebar, _scratchpadError);
55804
+ __decorateElement(_init70, 4, "attachedResources", _attachedResources_dec, _DeesHarnessSessionSidebar, _attachedResources);
55702
55805
  __decorateElement(_init70, 4, "intelligenceEnabled", _intelligenceEnabled_dec, _DeesHarnessSessionSidebar, _intelligenceEnabled);
55703
55806
  __decorateElement(_init70, 4, "intelligenceAvailabilityStatus", _intelligenceAvailabilityStatus_dec, _DeesHarnessSessionSidebar, _intelligenceAvailabilityStatus);
55704
55807
  __decorateElement(_init70, 4, "intelligenceUnavailableReason", _intelligenceUnavailableReason_dec, _DeesHarnessSessionSidebar, _intelligenceUnavailableReason);
@@ -55855,7 +55958,8 @@ __publicField(_DeesHarnessSessionSidebar, "styles", [
55855
55958
  }
55856
55959
 
55857
55960
  .activityList,
55858
- .activityGroup {
55961
+ .activityGroup,
55962
+ .resourceList {
55859
55963
  display: grid;
55860
55964
  gap: var(--dees-spacing-sm);
55861
55965
  }
@@ -55905,7 +56009,8 @@ __publicField(_DeesHarnessSessionSidebar, "styles", [
55905
56009
  }
55906
56010
  }
55907
56011
 
55908
- .activityItem {
56012
+ .activityItem,
56013
+ .resourceItem {
55909
56014
  appearance: none;
55910
56015
  display: grid;
55911
56016
  grid-template-columns: 24px minmax(0, 1fr);
@@ -55923,16 +56028,19 @@ __publicField(_DeesHarnessSessionSidebar, "styles", [
55923
56028
  border-radius: var(--dees-radius-md);
55924
56029
  }
55925
56030
 
55926
- .activityItem:hover {
56031
+ .activityItem:hover,
56032
+ .resourceItem:hover {
55927
56033
  background: var(--dees-color-fill-secondary);
55928
56034
  }
55929
56035
 
55930
- .activityItem:focus-visible {
56036
+ .activityItem:focus-visible,
56037
+ .resourceItem:focus-visible {
55931
56038
  outline: var(--dees-line-width-focus-ring) solid var(--dees-color-focus-ring);
55932
56039
  outline-offset: 2px;
55933
56040
  }
55934
56041
 
55935
- .activityIcon {
56042
+ .activityIcon,
56043
+ .resourceIcon {
55936
56044
  display: grid;
55937
56045
  place-items: center;
55938
56046
  width: 24px;
@@ -55956,19 +56064,22 @@ __publicField(_DeesHarnessSessionSidebar, "styles", [
55956
56064
  color: var(--dees-color-accent-error);
55957
56065
  }
55958
56066
 
55959
- .activityCopy {
56067
+ .activityCopy,
56068
+ .resourceCopy {
55960
56069
  min-width: 0;
55961
56070
  }
55962
56071
 
55963
56072
  .activityTitleRow,
55964
- .activityMeta {
56073
+ .activityMeta,
56074
+ .resourceTitleRow {
55965
56075
  display: flex;
55966
56076
  align-items: center;
55967
56077
  gap: var(--dees-spacing-xs);
55968
56078
  min-width: 0;
55969
56079
  }
55970
56080
 
55971
- .activityTitle {
56081
+ .activityTitle,
56082
+ .resourceTitle {
55972
56083
  min-width: 0;
55973
56084
  flex: 1;
55974
56085
  color: var(--dees-color-text-primary);
@@ -56018,7 +56129,8 @@ __publicField(_DeesHarnessSessionSidebar, "styles", [
56018
56129
  color: var(--dees-color-text-muted);
56019
56130
  }
56020
56131
 
56021
- .activitySubtitle {
56132
+ .activitySubtitle,
56133
+ .resourceMeta {
56022
56134
  display: block;
56023
56135
  width: 100%;
56024
56136
  min-width: 0;
@@ -56027,6 +56139,13 @@ __publicField(_DeesHarnessSessionSidebar, "styles", [
56027
56139
  font-size: var(--dees-font-caption2-size, 10px);
56028
56140
  }
56029
56141
 
56142
+ .resourceState {
56143
+ flex: 0 0 auto;
56144
+ color: var(--dees-color-text-muted);
56145
+ font-size: var(--dees-font-caption2-size, 10px);
56146
+ white-space: nowrap;
56147
+ }
56148
+
56030
56149
  .activityMeta {
56031
56150
  margin-top: var(--dees-spacing-2xs);
56032
56151
  color: var(--dees-color-text-muted);
@@ -56291,9 +56410,9 @@ __runInitializers(_init71, 1, _DeesHarnessUsage);
56291
56410
  var DeesHarnessUsage = _DeesHarnessUsage;
56292
56411
 
56293
56412
  // ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.ts
56294
- var _toolRegistry_dec6, _menuActions_dec2, _modeOptions_dec2, _mode_dec2, _effortOptions_dec2, _reasoningEffort_dec2, _modelOptions_dec2, _model_dec2, _accountNote_dec2, _accountOptions_dec2, _account_dec2, _maxTotalAttachmentBytes_dec2, _maxAttachmentBytes_dec2, _maxAttachmentCount_dec2, _starterPrompts_dec2, _commands_dec2, _attachmentsEnabled_dec2, _attachments_dec2, _composerValue_dec, _busyDeliveryModes_dec2, _queuedCount_dec2, _abortDisabledReason_dec2, _abortEnabled_dec2, _busy_dec4, _inputLocked_dec2, _disabled_dec5, _markdownWhileStreaming_dec5, _showTimestamps_dec2, _showRoles_dec2, _showToolbar_dec2, _toolbarActions_dec, _subheading_dec, _heading_dec7, _narrowSessionLayout_dec, _desktopSessionSidebarVisible_dec, _sessionSidebarOpen_dec, _intelligenceError_dec2, _intelligenceBusy_dec2, _intelligenceExchanges_dec2, _intelligenceHeading_dec2, _intelligenceAvailabilityAction_dec2, _intelligenceUnavailableReason_dec2, _intelligenceAvailabilityStatus_dec2, _sessionIntelligenceEnabled_dec, _scratchpadError_dec2, _scratchpadBusy_dec2, _scratchpad_dec2, _sessionMetrics_dec, _showSessionSidebar_dec, _showTodosPanel_dec, _todosAuthoritative_dec, _todos_dec3, _usage_dec2, _loadingEarlier_dec2, _hasEarlierMessages_dec2, _transcriptKey_dec2, _status_dec4, _questions_dec2, _permissions_dec2, _resolveAttachment_dec3, _loadEarlierHistory_dec2, _hasEarlierHistory_dec2, _history_dec2, _messages_dec2, _a70, _DeesHarnessChat_decorators, _init72, _messages2, _history2, _hasEarlierHistory2, _loadEarlierHistory2, _resolveAttachment3, _permissions2, _questions2, _status4, _transcriptKey2, _hasEarlierMessages2, _loadingEarlier2, _usage2, _todos3, _todosAuthoritative, _showTodosPanel, _showSessionSidebar, _sessionMetrics, _scratchpad2, _scratchpadBusy2, _scratchpadError2, _sessionIntelligenceEnabled, _intelligenceAvailabilityStatus2, _intelligenceUnavailableReason2, _intelligenceAvailabilityAction2, _intelligenceHeading2, _intelligenceExchanges2, _intelligenceBusy2, _intelligenceError2, _sessionSidebarOpen, _desktopSessionSidebarVisible, _narrowSessionLayout, _heading7, _subheading, _toolbarActions, _showToolbar2, _showRoles2, _showTimestamps2, _markdownWhileStreaming5, _disabled5, _inputLocked2, _busy4, _abortEnabled2, _abortDisabledReason2, _queuedCount2, _busyDeliveryModes2, _composerValue, _attachments2, _attachmentsEnabled2, _commands2, _starterPrompts2, _maxAttachmentCount2, _maxAttachmentBytes2, _maxTotalAttachmentBytes2, _account2, _accountOptions2, _accountNote2, _model2, _modelOptions2, _reasoningEffort2, _effortOptions2, _mode2, _modeOptions2, _menuActions2, _toolRegistry6;
56413
+ var _toolRegistry_dec6, _menuActions_dec2, _modeOptions_dec2, _mode_dec2, _effortOptions_dec2, _reasoningEffort_dec2, _modelOptions_dec2, _model_dec2, _accountNote_dec2, _accountOptions_dec2, _account_dec2, _maxTotalAttachmentBytes_dec2, _maxAttachmentBytes_dec2, _maxAttachmentCount_dec2, _starterPrompts_dec2, _commands_dec2, _attachmentsEnabled_dec2, _attachments_dec2, _composerValue_dec, _busyDeliveryModes_dec2, _queuedCount_dec2, _abortDisabledReason_dec2, _abortEnabled_dec2, _busy_dec4, _inputLocked_dec2, _disabled_dec5, _markdownWhileStreaming_dec5, _showTimestamps_dec2, _showRoles_dec2, _showToolbar_dec2, _toolbarActions_dec, _subheading_dec, _heading_dec7, _narrowSessionLayout_dec, _desktopSessionSidebarVisible_dec, _sessionSidebarOpen_dec, _intelligenceError_dec2, _intelligenceBusy_dec2, _intelligenceExchanges_dec2, _intelligenceHeading_dec2, _intelligenceAvailabilityAction_dec2, _intelligenceUnavailableReason_dec2, _intelligenceAvailabilityStatus_dec2, _sessionIntelligenceEnabled_dec, _attachedResources_dec2, _scratchpadError_dec2, _scratchpadBusy_dec2, _scratchpad_dec2, _sessionMetrics_dec, _showSessionSidebar_dec, _showTodosPanel_dec, _todosAuthoritative_dec, _todos_dec3, _usage_dec2, _loadingEarlier_dec2, _hasEarlierMessages_dec2, _transcriptKey_dec2, _status_dec4, _questions_dec2, _permissions_dec2, _resolveAttachment_dec3, _loadEarlierHistory_dec2, _hasEarlierHistory_dec2, _history_dec2, _messages_dec2, _a70, _DeesHarnessChat_decorators, _init72, _messages2, _history2, _hasEarlierHistory2, _loadEarlierHistory2, _resolveAttachment3, _permissions2, _questions2, _status4, _transcriptKey2, _hasEarlierMessages2, _loadingEarlier2, _usage2, _todos3, _todosAuthoritative, _showTodosPanel, _showSessionSidebar, _sessionMetrics, _scratchpad2, _scratchpadBusy2, _scratchpadError2, _attachedResources2, _sessionIntelligenceEnabled, _intelligenceAvailabilityStatus2, _intelligenceUnavailableReason2, _intelligenceAvailabilityAction2, _intelligenceHeading2, _intelligenceExchanges2, _intelligenceBusy2, _intelligenceError2, _sessionSidebarOpen, _desktopSessionSidebarVisible, _narrowSessionLayout, _heading7, _subheading, _toolbarActions, _showToolbar2, _showRoles2, _showTimestamps2, _markdownWhileStreaming5, _disabled5, _inputLocked2, _busy4, _abortEnabled2, _abortDisabledReason2, _queuedCount2, _busyDeliveryModes2, _composerValue, _attachments2, _attachmentsEnabled2, _commands2, _starterPrompts2, _maxAttachmentCount2, _maxAttachmentBytes2, _maxTotalAttachmentBytes2, _account2, _accountOptions2, _accountNote2, _model2, _modelOptions2, _reasoningEffort2, _effortOptions2, _mode2, _modeOptions2, _menuActions2, _toolRegistry6;
56295
56414
  _DeesHarnessChat_decorators = [customElement("dees-harness-chat")];
56296
- var _DeesHarnessChat = class _DeesHarnessChat extends (_a70 = DeesElement, _messages_dec2 = [n({ attribute: false })], _history_dec2 = [n({ attribute: false })], _hasEarlierHistory_dec2 = [n({ type: Boolean, reflect: true })], _loadEarlierHistory_dec2 = [n({ attribute: false })], _resolveAttachment_dec3 = [n({ attribute: false })], _permissions_dec2 = [n({ attribute: false })], _questions_dec2 = [n({ attribute: false })], _status_dec4 = [n({ attribute: false })], _transcriptKey_dec2 = [n({ reflect: true })], _hasEarlierMessages_dec2 = [n({ type: Boolean, reflect: true })], _loadingEarlier_dec2 = [n({ type: Boolean, reflect: true })], _usage_dec2 = [n({ attribute: false })], _todos_dec3 = [n({ attribute: false })], _todosAuthoritative_dec = [n({ type: Boolean, reflect: true })], _showTodosPanel_dec = [n({ type: Boolean, reflect: true })], _showSessionSidebar_dec = [n({ type: Boolean, reflect: true })], _sessionMetrics_dec = [n({ attribute: false })], _scratchpad_dec2 = [n({ attribute: false })], _scratchpadBusy_dec2 = [n({ type: Boolean, reflect: true })], _scratchpadError_dec2 = [n({ reflect: true })], _sessionIntelligenceEnabled_dec = [n({ type: Boolean, reflect: true })], _intelligenceAvailabilityStatus_dec2 = [n({ reflect: true })], _intelligenceUnavailableReason_dec2 = [n({ reflect: true })], _intelligenceAvailabilityAction_dec2 = [n({ attribute: false })], _intelligenceHeading_dec2 = [n({ reflect: true })], _intelligenceExchanges_dec2 = [n({ attribute: false })], _intelligenceBusy_dec2 = [n({ type: Boolean, reflect: true })], _intelligenceError_dec2 = [n({ reflect: true })], _sessionSidebarOpen_dec = [r2()], _desktopSessionSidebarVisible_dec = [r2()], _narrowSessionLayout_dec = [r2()], _heading_dec7 = [n({ reflect: true })], _subheading_dec = [n({ reflect: true })], _toolbarActions_dec = [n({ attribute: false })], _showToolbar_dec2 = [n({ type: Boolean, reflect: true })], _showRoles_dec2 = [n({ type: Boolean, reflect: true })], _showTimestamps_dec2 = [n({ type: Boolean, reflect: true })], _markdownWhileStreaming_dec5 = [n({ type: Boolean, reflect: true })], _disabled_dec5 = [n({ type: Boolean, reflect: true })], _inputLocked_dec2 = [n({ type: Boolean, reflect: true })], _busy_dec4 = [n({ type: Boolean, reflect: true })], _abortEnabled_dec2 = [n({ type: Boolean, reflect: true })], _abortDisabledReason_dec2 = [n({ reflect: true })], _queuedCount_dec2 = [n({ type: Number, reflect: true })], _busyDeliveryModes_dec2 = [n({ attribute: false })], _composerValue_dec = [n()], _attachments_dec2 = [n({ attribute: false })], _attachmentsEnabled_dec2 = [n({ attribute: false })], _commands_dec2 = [n({ attribute: false })], _starterPrompts_dec2 = [n({ attribute: false })], _maxAttachmentCount_dec2 = [n({ type: Number, reflect: true })], _maxAttachmentBytes_dec2 = [n({ type: Number, reflect: true })], _maxTotalAttachmentBytes_dec2 = [n({ type: Number, reflect: true })], _account_dec2 = [n({ reflect: true })], _accountOptions_dec2 = [n({ attribute: false })], _accountNote_dec2 = [n({ reflect: true })], _model_dec2 = [n({ reflect: true })], _modelOptions_dec2 = [n({ attribute: false })], _reasoningEffort_dec2 = [n({ reflect: true })], _effortOptions_dec2 = [n({ attribute: false })], _mode_dec2 = [n({ reflect: true })], _modeOptions_dec2 = [n({ attribute: false })], _menuActions_dec2 = [n({ attribute: false })], _toolRegistry_dec6 = [n({ attribute: false })], _a70) {
56415
+ var _DeesHarnessChat = class _DeesHarnessChat extends (_a70 = DeesElement, _messages_dec2 = [n({ attribute: false })], _history_dec2 = [n({ attribute: false })], _hasEarlierHistory_dec2 = [n({ type: Boolean, reflect: true })], _loadEarlierHistory_dec2 = [n({ attribute: false })], _resolveAttachment_dec3 = [n({ attribute: false })], _permissions_dec2 = [n({ attribute: false })], _questions_dec2 = [n({ attribute: false })], _status_dec4 = [n({ attribute: false })], _transcriptKey_dec2 = [n({ reflect: true })], _hasEarlierMessages_dec2 = [n({ type: Boolean, reflect: true })], _loadingEarlier_dec2 = [n({ type: Boolean, reflect: true })], _usage_dec2 = [n({ attribute: false })], _todos_dec3 = [n({ attribute: false })], _todosAuthoritative_dec = [n({ type: Boolean, reflect: true })], _showTodosPanel_dec = [n({ type: Boolean, reflect: true })], _showSessionSidebar_dec = [n({ type: Boolean, reflect: true })], _sessionMetrics_dec = [n({ attribute: false })], _scratchpad_dec2 = [n({ attribute: false })], _scratchpadBusy_dec2 = [n({ type: Boolean, reflect: true })], _scratchpadError_dec2 = [n({ reflect: true })], _attachedResources_dec2 = [n({ attribute: false })], _sessionIntelligenceEnabled_dec = [n({ type: Boolean, reflect: true })], _intelligenceAvailabilityStatus_dec2 = [n({ reflect: true })], _intelligenceUnavailableReason_dec2 = [n({ reflect: true })], _intelligenceAvailabilityAction_dec2 = [n({ attribute: false })], _intelligenceHeading_dec2 = [n({ reflect: true })], _intelligenceExchanges_dec2 = [n({ attribute: false })], _intelligenceBusy_dec2 = [n({ type: Boolean, reflect: true })], _intelligenceError_dec2 = [n({ reflect: true })], _sessionSidebarOpen_dec = [r2()], _desktopSessionSidebarVisible_dec = [r2()], _narrowSessionLayout_dec = [r2()], _heading_dec7 = [n({ reflect: true })], _subheading_dec = [n({ reflect: true })], _toolbarActions_dec = [n({ attribute: false })], _showToolbar_dec2 = [n({ type: Boolean, reflect: true })], _showRoles_dec2 = [n({ type: Boolean, reflect: true })], _showTimestamps_dec2 = [n({ type: Boolean, reflect: true })], _markdownWhileStreaming_dec5 = [n({ type: Boolean, reflect: true })], _disabled_dec5 = [n({ type: Boolean, reflect: true })], _inputLocked_dec2 = [n({ type: Boolean, reflect: true })], _busy_dec4 = [n({ type: Boolean, reflect: true })], _abortEnabled_dec2 = [n({ type: Boolean, reflect: true })], _abortDisabledReason_dec2 = [n({ reflect: true })], _queuedCount_dec2 = [n({ type: Number, reflect: true })], _busyDeliveryModes_dec2 = [n({ attribute: false })], _composerValue_dec = [n()], _attachments_dec2 = [n({ attribute: false })], _attachmentsEnabled_dec2 = [n({ attribute: false })], _commands_dec2 = [n({ attribute: false })], _starterPrompts_dec2 = [n({ attribute: false })], _maxAttachmentCount_dec2 = [n({ type: Number, reflect: true })], _maxAttachmentBytes_dec2 = [n({ type: Number, reflect: true })], _maxTotalAttachmentBytes_dec2 = [n({ type: Number, reflect: true })], _account_dec2 = [n({ reflect: true })], _accountOptions_dec2 = [n({ attribute: false })], _accountNote_dec2 = [n({ reflect: true })], _model_dec2 = [n({ reflect: true })], _modelOptions_dec2 = [n({ attribute: false })], _reasoningEffort_dec2 = [n({ reflect: true })], _effortOptions_dec2 = [n({ attribute: false })], _mode_dec2 = [n({ reflect: true })], _modeOptions_dec2 = [n({ attribute: false })], _menuActions_dec2 = [n({ attribute: false })], _toolRegistry_dec6 = [n({ attribute: false })], _a70) {
56297
56416
  constructor() {
56298
56417
  super(...arguments);
56299
56418
  __publicField(this, "t", dcLocalize(this));
@@ -56317,51 +56436,52 @@ var _DeesHarnessChat = class _DeesHarnessChat extends (_a70 = DeesElement, _mess
56317
56436
  __privateAdd(this, _scratchpad2, __runInitializers(_init72, 76, this)), __runInitializers(_init72, 79, this);
56318
56437
  __privateAdd(this, _scratchpadBusy2, __runInitializers(_init72, 80, this, false)), __runInitializers(_init72, 83, this);
56319
56438
  __privateAdd(this, _scratchpadError2, __runInitializers(_init72, 84, this, "")), __runInitializers(_init72, 87, this);
56320
- __privateAdd(this, _sessionIntelligenceEnabled, __runInitializers(_init72, 88, this, false)), __runInitializers(_init72, 91, this);
56321
- __privateAdd(this, _intelligenceAvailabilityStatus2, __runInitializers(_init72, 92, this, "available")), __runInitializers(_init72, 95, this);
56322
- __privateAdd(this, _intelligenceUnavailableReason2, __runInitializers(_init72, 96, this, "")), __runInitializers(_init72, 99, this);
56323
- __privateAdd(this, _intelligenceAvailabilityAction2, __runInitializers(_init72, 100, this)), __runInitializers(_init72, 103, this);
56324
- __privateAdd(this, _intelligenceHeading2, __runInitializers(_init72, 104, this, "")), __runInitializers(_init72, 107, this);
56325
- __privateAdd(this, _intelligenceExchanges2, __runInitializers(_init72, 108, this, [])), __runInitializers(_init72, 111, this);
56326
- __privateAdd(this, _intelligenceBusy2, __runInitializers(_init72, 112, this, false)), __runInitializers(_init72, 115, this);
56327
- __privateAdd(this, _intelligenceError2, __runInitializers(_init72, 116, this, "")), __runInitializers(_init72, 119, this);
56328
- __privateAdd(this, _sessionSidebarOpen, __runInitializers(_init72, 120, this, false)), __runInitializers(_init72, 123, this);
56329
- __privateAdd(this, _desktopSessionSidebarVisible, __runInitializers(_init72, 124, this, true)), __runInitializers(_init72, 127, this);
56330
- __privateAdd(this, _narrowSessionLayout, __runInitializers(_init72, 128, this, false)), __runInitializers(_init72, 131, this);
56439
+ __privateAdd(this, _attachedResources2, __runInitializers(_init72, 88, this)), __runInitializers(_init72, 91, this);
56440
+ __privateAdd(this, _sessionIntelligenceEnabled, __runInitializers(_init72, 92, this, false)), __runInitializers(_init72, 95, this);
56441
+ __privateAdd(this, _intelligenceAvailabilityStatus2, __runInitializers(_init72, 96, this, "available")), __runInitializers(_init72, 99, this);
56442
+ __privateAdd(this, _intelligenceUnavailableReason2, __runInitializers(_init72, 100, this, "")), __runInitializers(_init72, 103, this);
56443
+ __privateAdd(this, _intelligenceAvailabilityAction2, __runInitializers(_init72, 104, this)), __runInitializers(_init72, 107, this);
56444
+ __privateAdd(this, _intelligenceHeading2, __runInitializers(_init72, 108, this, "")), __runInitializers(_init72, 111, this);
56445
+ __privateAdd(this, _intelligenceExchanges2, __runInitializers(_init72, 112, this, [])), __runInitializers(_init72, 115, this);
56446
+ __privateAdd(this, _intelligenceBusy2, __runInitializers(_init72, 116, this, false)), __runInitializers(_init72, 119, this);
56447
+ __privateAdd(this, _intelligenceError2, __runInitializers(_init72, 120, this, "")), __runInitializers(_init72, 123, this);
56448
+ __privateAdd(this, _sessionSidebarOpen, __runInitializers(_init72, 124, this, false)), __runInitializers(_init72, 127, this);
56449
+ __privateAdd(this, _desktopSessionSidebarVisible, __runInitializers(_init72, 128, this, true)), __runInitializers(_init72, 131, this);
56450
+ __privateAdd(this, _narrowSessionLayout, __runInitializers(_init72, 132, this, false)), __runInitializers(_init72, 135, this);
56331
56451
  __publicField(this, "sessionLayoutResizeObserver");
56332
- __privateAdd(this, _heading7, __runInitializers(_init72, 132, this, "")), __runInitializers(_init72, 135, this);
56333
- __privateAdd(this, _subheading, __runInitializers(_init72, 136, this, "")), __runInitializers(_init72, 139, this);
56334
- __privateAdd(this, _toolbarActions, __runInitializers(_init72, 140, this, [])), __runInitializers(_init72, 143, this);
56335
- __privateAdd(this, _showToolbar2, __runInitializers(_init72, 144, this, true)), __runInitializers(_init72, 147, this);
56336
- __privateAdd(this, _showRoles2, __runInitializers(_init72, 148, this, true)), __runInitializers(_init72, 151, this);
56337
- __privateAdd(this, _showTimestamps2, __runInitializers(_init72, 152, this, true)), __runInitializers(_init72, 155, this);
56338
- __privateAdd(this, _markdownWhileStreaming5, __runInitializers(_init72, 156, this, true)), __runInitializers(_init72, 159, this);
56339
- __privateAdd(this, _disabled5, __runInitializers(_init72, 160, this, false)), __runInitializers(_init72, 163, this);
56340
- __privateAdd(this, _inputLocked2, __runInitializers(_init72, 164, this, false)), __runInitializers(_init72, 167, this);
56341
- __privateAdd(this, _busy4, __runInitializers(_init72, 168, this, false)), __runInitializers(_init72, 171, this);
56342
- __privateAdd(this, _abortEnabled2, __runInitializers(_init72, 172, this, true)), __runInitializers(_init72, 175, this);
56343
- __privateAdd(this, _abortDisabledReason2, __runInitializers(_init72, 176, this, "")), __runInitializers(_init72, 179, this);
56344
- __privateAdd(this, _queuedCount2, __runInitializers(_init72, 180, this, 0)), __runInitializers(_init72, 183, this);
56345
- __privateAdd(this, _busyDeliveryModes2, __runInitializers(_init72, 184, this, ["queue"])), __runInitializers(_init72, 187, this);
56346
- __privateAdd(this, _composerValue, __runInitializers(_init72, 188, this, "")), __runInitializers(_init72, 191, this);
56347
- __privateAdd(this, _attachments2, __runInitializers(_init72, 192, this, [])), __runInitializers(_init72, 195, this);
56348
- __privateAdd(this, _attachmentsEnabled2, __runInitializers(_init72, 196, this, true)), __runInitializers(_init72, 199, this);
56349
- __privateAdd(this, _commands2, __runInitializers(_init72, 200, this, [])), __runInitializers(_init72, 203, this);
56350
- __privateAdd(this, _starterPrompts2, __runInitializers(_init72, 204, this, [])), __runInitializers(_init72, 207, this);
56351
- __privateAdd(this, _maxAttachmentCount2, __runInitializers(_init72, 208, this, Number.POSITIVE_INFINITY)), __runInitializers(_init72, 211, this);
56352
- __privateAdd(this, _maxAttachmentBytes2, __runInitializers(_init72, 212, this, harnessMaxAttachmentBytes)), __runInitializers(_init72, 215, this);
56353
- __privateAdd(this, _maxTotalAttachmentBytes2, __runInitializers(_init72, 216, this, harnessMaxTotalAttachmentBytes)), __runInitializers(_init72, 219, this);
56354
- __privateAdd(this, _account2, __runInitializers(_init72, 220, this, "")), __runInitializers(_init72, 223, this);
56355
- __privateAdd(this, _accountOptions2, __runInitializers(_init72, 224, this, [])), __runInitializers(_init72, 227, this);
56356
- __privateAdd(this, _accountNote2, __runInitializers(_init72, 228, this, "")), __runInitializers(_init72, 231, this);
56357
- __privateAdd(this, _model2, __runInitializers(_init72, 232, this, "")), __runInitializers(_init72, 235, this);
56358
- __privateAdd(this, _modelOptions2, __runInitializers(_init72, 236, this, [])), __runInitializers(_init72, 239, this);
56359
- __privateAdd(this, _reasoningEffort2, __runInitializers(_init72, 240, this, "")), __runInitializers(_init72, 243, this);
56360
- __privateAdd(this, _effortOptions2, __runInitializers(_init72, 244, this, [])), __runInitializers(_init72, 247, this);
56361
- __privateAdd(this, _mode2, __runInitializers(_init72, 248, this, "")), __runInitializers(_init72, 251, this);
56362
- __privateAdd(this, _modeOptions2, __runInitializers(_init72, 252, this, [])), __runInitializers(_init72, 255, this);
56363
- __privateAdd(this, _menuActions2, __runInitializers(_init72, 256, this, [])), __runInitializers(_init72, 259, this);
56364
- __privateAdd(this, _toolRegistry6, __runInitializers(_init72, 260, this, DeesHarnessToolRegistry.default)), __runInitializers(_init72, 263, this);
56452
+ __privateAdd(this, _heading7, __runInitializers(_init72, 136, this, "")), __runInitializers(_init72, 139, this);
56453
+ __privateAdd(this, _subheading, __runInitializers(_init72, 140, this, "")), __runInitializers(_init72, 143, this);
56454
+ __privateAdd(this, _toolbarActions, __runInitializers(_init72, 144, this, [])), __runInitializers(_init72, 147, this);
56455
+ __privateAdd(this, _showToolbar2, __runInitializers(_init72, 148, this, true)), __runInitializers(_init72, 151, this);
56456
+ __privateAdd(this, _showRoles2, __runInitializers(_init72, 152, this, true)), __runInitializers(_init72, 155, this);
56457
+ __privateAdd(this, _showTimestamps2, __runInitializers(_init72, 156, this, true)), __runInitializers(_init72, 159, this);
56458
+ __privateAdd(this, _markdownWhileStreaming5, __runInitializers(_init72, 160, this, true)), __runInitializers(_init72, 163, this);
56459
+ __privateAdd(this, _disabled5, __runInitializers(_init72, 164, this, false)), __runInitializers(_init72, 167, this);
56460
+ __privateAdd(this, _inputLocked2, __runInitializers(_init72, 168, this, false)), __runInitializers(_init72, 171, this);
56461
+ __privateAdd(this, _busy4, __runInitializers(_init72, 172, this, false)), __runInitializers(_init72, 175, this);
56462
+ __privateAdd(this, _abortEnabled2, __runInitializers(_init72, 176, this, true)), __runInitializers(_init72, 179, this);
56463
+ __privateAdd(this, _abortDisabledReason2, __runInitializers(_init72, 180, this, "")), __runInitializers(_init72, 183, this);
56464
+ __privateAdd(this, _queuedCount2, __runInitializers(_init72, 184, this, 0)), __runInitializers(_init72, 187, this);
56465
+ __privateAdd(this, _busyDeliveryModes2, __runInitializers(_init72, 188, this, ["queue"])), __runInitializers(_init72, 191, this);
56466
+ __privateAdd(this, _composerValue, __runInitializers(_init72, 192, this, "")), __runInitializers(_init72, 195, this);
56467
+ __privateAdd(this, _attachments2, __runInitializers(_init72, 196, this, [])), __runInitializers(_init72, 199, this);
56468
+ __privateAdd(this, _attachmentsEnabled2, __runInitializers(_init72, 200, this, true)), __runInitializers(_init72, 203, this);
56469
+ __privateAdd(this, _commands2, __runInitializers(_init72, 204, this, [])), __runInitializers(_init72, 207, this);
56470
+ __privateAdd(this, _starterPrompts2, __runInitializers(_init72, 208, this, [])), __runInitializers(_init72, 211, this);
56471
+ __privateAdd(this, _maxAttachmentCount2, __runInitializers(_init72, 212, this, Number.POSITIVE_INFINITY)), __runInitializers(_init72, 215, this);
56472
+ __privateAdd(this, _maxAttachmentBytes2, __runInitializers(_init72, 216, this, harnessMaxAttachmentBytes)), __runInitializers(_init72, 219, this);
56473
+ __privateAdd(this, _maxTotalAttachmentBytes2, __runInitializers(_init72, 220, this, harnessMaxTotalAttachmentBytes)), __runInitializers(_init72, 223, this);
56474
+ __privateAdd(this, _account2, __runInitializers(_init72, 224, this, "")), __runInitializers(_init72, 227, this);
56475
+ __privateAdd(this, _accountOptions2, __runInitializers(_init72, 228, this, [])), __runInitializers(_init72, 231, this);
56476
+ __privateAdd(this, _accountNote2, __runInitializers(_init72, 232, this, "")), __runInitializers(_init72, 235, this);
56477
+ __privateAdd(this, _model2, __runInitializers(_init72, 236, this, "")), __runInitializers(_init72, 239, this);
56478
+ __privateAdd(this, _modelOptions2, __runInitializers(_init72, 240, this, [])), __runInitializers(_init72, 243, this);
56479
+ __privateAdd(this, _reasoningEffort2, __runInitializers(_init72, 244, this, "")), __runInitializers(_init72, 247, this);
56480
+ __privateAdd(this, _effortOptions2, __runInitializers(_init72, 248, this, [])), __runInitializers(_init72, 251, this);
56481
+ __privateAdd(this, _mode2, __runInitializers(_init72, 252, this, "")), __runInitializers(_init72, 255, this);
56482
+ __privateAdd(this, _modeOptions2, __runInitializers(_init72, 256, this, [])), __runInitializers(_init72, 259, this);
56483
+ __privateAdd(this, _menuActions2, __runInitializers(_init72, 260, this, [])), __runInitializers(_init72, 263, this);
56484
+ __privateAdd(this, _toolRegistry6, __runInitializers(_init72, 264, this, DeesHarnessToolRegistry.default)), __runInitializers(_init72, 267, this);
56365
56485
  /** Puts a chosen starter prompt into the composer as typing would, without sending it. */
56366
56486
  __publicField(this, "handleStarterPrompt", /* @__PURE__ */ __name((event) => {
56367
56487
  const prompt = event.detail?.prompt;
@@ -56465,7 +56585,7 @@ var _DeesHarnessChat = class _DeesHarnessChat extends (_a70 = DeesElement, _mess
56465
56585
  }
56466
56586
  get hasSessionSidebar() {
56467
56587
  if (!this.showSessionSidebar) return false;
56468
- return this.showTodosPanel && (this.todosAuthoritative || this.effectiveTodos.length > 0) || this.toolActivityMessages.length > 0 || Object.values(this.sessionMetrics).some((value) => value !== void 0) || this.scratchpad !== void 0 || this.sessionIntelligenceEnabled;
56588
+ return this.showTodosPanel && (this.todosAuthoritative || this.effectiveTodos.length > 0) || this.toolActivityMessages.length > 0 || Object.values(this.sessionMetrics).some((value) => value !== void 0) || this.scratchpad !== void 0 || this.attachedResources !== void 0 || this.sessionIntelligenceEnabled;
56469
56589
  }
56470
56590
  get listElement() {
56471
56591
  const element = this.shadowRoot?.querySelector("dees-harness-message-list");
@@ -56584,6 +56704,7 @@ var _DeesHarnessChat = class _DeesHarnessChat extends (_a70 = DeesElement, _mess
56584
56704
  .scratchpad=${this.scratchpad}
56585
56705
  .scratchpadBusy=${this.scratchpadBusy}
56586
56706
  .scratchpadError=${this.scratchpadError}
56707
+ .attachedResources=${this.attachedResources}
56587
56708
  .intelligenceEnabled=${this.sessionIntelligenceEnabled}
56588
56709
  .intelligenceAvailabilityStatus=${this.intelligenceAvailabilityStatus}
56589
56710
  .intelligenceUnavailableReason=${this.intelligenceUnavailableReason}
@@ -56736,6 +56857,7 @@ _sessionMetrics = new WeakMap();
56736
56857
  _scratchpad2 = new WeakMap();
56737
56858
  _scratchpadBusy2 = new WeakMap();
56738
56859
  _scratchpadError2 = new WeakMap();
56860
+ _attachedResources2 = new WeakMap();
56739
56861
  _sessionIntelligenceEnabled = new WeakMap();
56740
56862
  _intelligenceAvailabilityStatus2 = new WeakMap();
56741
56863
  _intelligenceUnavailableReason2 = new WeakMap();
@@ -56800,6 +56922,7 @@ __decorateElement(_init72, 4, "sessionMetrics", _sessionMetrics_dec, _DeesHarnes
56800
56922
  __decorateElement(_init72, 4, "scratchpad", _scratchpad_dec2, _DeesHarnessChat, _scratchpad2);
56801
56923
  __decorateElement(_init72, 4, "scratchpadBusy", _scratchpadBusy_dec2, _DeesHarnessChat, _scratchpadBusy2);
56802
56924
  __decorateElement(_init72, 4, "scratchpadError", _scratchpadError_dec2, _DeesHarnessChat, _scratchpadError2);
56925
+ __decorateElement(_init72, 4, "attachedResources", _attachedResources_dec2, _DeesHarnessChat, _attachedResources2);
56803
56926
  __decorateElement(_init72, 4, "sessionIntelligenceEnabled", _sessionIntelligenceEnabled_dec, _DeesHarnessChat, _sessionIntelligenceEnabled);
56804
56927
  __decorateElement(_init72, 4, "intelligenceAvailabilityStatus", _intelligenceAvailabilityStatus_dec2, _DeesHarnessChat, _intelligenceAvailabilityStatus2);
56805
56928
  __decorateElement(_init72, 4, "intelligenceUnavailableReason", _intelligenceUnavailableReason_dec2, _DeesHarnessChat, _intelligenceUnavailableReason2);
@@ -72669,7 +72792,7 @@ var _DeesHarnessConversationPicker = class _DeesHarnessConversationPicker extend
72669
72792
  * cancelled. Focus returns to whatever had it when the picker opened.
72670
72793
  */
72671
72794
  static async pick(optionsArg = {}) {
72672
- const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-QSZV6TA6.js");
72795
+ const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-CDXSOKKD.js");
72673
72796
  const picker = new _DeesHarnessConversationPicker();
72674
72797
  picker.sessions = optionsArg.sessions ?? [];
72675
72798
  picker.groups = optionsArg.groups ?? [];
@@ -73130,7 +73253,7 @@ var handleResourceContext = /* @__PURE__ */ __name(async (event) => {
73130
73253
  list.selectedResourceId = event.detail.resource.id;
73131
73254
  }, "handleResourceContext");
73132
73255
  var openModal = /* @__PURE__ */ __name(async (sessions, groups) => {
73133
- const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-QSZV6TA6.js");
73256
+ const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-CDXSOKKD.js");
73134
73257
  const content = document.createElement("dees-harness-session-list");
73135
73258
  content.sessions = sessions;
73136
73259
  content.groups = groups;
@@ -73410,7 +73533,7 @@ var DeesDemoSessionWorkspace = _DeesDemoSessionWorkspace;
73410
73533
  var demoFunc70 = /* @__PURE__ */ __name(() => demoApp(b`<dees-demo-session-workspace></dees-demo-session-workspace>`), "demoFunc");
73411
73534
 
73412
73535
  // ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.ts
73413
- var _resourceContextResourceId_dec, _moveAnnouncement_dec, _collapsedGroupIds_dec, _expandedSessionIds_dec, _draggedItemHeight_dec, _dropAttachTarget_dec, _dropSlot_dec, _draggingItem_dec, _search_dec2, _eligibleTargetsByResourceId_dec, _selectedResourceId_dec, _resourceAssociations_dec, _resources_dec3, _ungroupedItemIds_dec2, _enableGrouping_dec, _groups_dec6, _emptyText_dec3, _loading_dec8, _selectedSessionId_dec2, _sessions_dec3, _a101, _DeesHarnessSessionList_decorators, _init102, _sessions3, _selectedSessionId2, _loading8, _emptyText3, _groups6, _enableGrouping, _ungroupedItemIds2, _resources3, _resourceAssociations, _selectedResourceId, _eligibleTargetsByResourceId, _search2, _draggingItem, _dropSlot, _dropAttachTarget, _draggedItemHeight, _expandedSessionIds, _collapsedGroupIds, _moveAnnouncement, _resourceContextResourceId;
73536
+ var _resourceContextResourceId_dec, _moveAnnouncement_dec, _collapsedGroupIds_dec, _expandedSessionIds_dec, _draggedItemHeight_dec, _dropAttachTarget_dec, _dropSlot_dec, _draggingItem_dec, _search_dec2, _eligibleTargetsByResourceId_dec, _selectedResourceId_dec, _attachableSessions_dec, _resourceAssociations_dec, _resources_dec3, _ungroupedItemIds_dec2, _enableGrouping_dec, _groups_dec6, _emptyText_dec3, _loading_dec8, _selectedSessionId_dec2, _sessions_dec3, _a101, _DeesHarnessSessionList_decorators, _init102, _sessions3, _selectedSessionId2, _loading8, _emptyText3, _groups6, _enableGrouping, _ungroupedItemIds2, _resources3, _resourceAssociations, _attachableSessions, _selectedResourceId, _eligibleTargetsByResourceId, _search2, _draggingItem, _dropSlot, _dropAttachTarget, _draggedItemHeight, _expandedSessionIds, _collapsedGroupIds, _moveAnnouncement, _resourceContextResourceId;
73414
73537
  var { repeat: repeat5 } = directives_exports;
73415
73538
  var dragAutoScrollMaxPixelsPerSecond = 900;
73416
73539
  var dragThresholdPixels = 4;
@@ -73422,7 +73545,7 @@ var itemRef = /* @__PURE__ */ __name((itemArg) => ({
73422
73545
  }), "itemRef");
73423
73546
  var sameItem = /* @__PURE__ */ __name((leftArg, rightArg) => !!leftArg && !!rightArg && leftArg.kind === rightArg.kind && leftArg.id === rightArg.id, "sameItem");
73424
73547
  _DeesHarnessSessionList_decorators = [customElement("dees-harness-session-list")];
73425
- var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = DeesElement, _sessions_dec3 = [n({ attribute: false })], _selectedSessionId_dec2 = [n({ reflect: true })], _loading_dec8 = [n({ type: Boolean, reflect: true })], _emptyText_dec3 = [n({ reflect: true })], _groups_dec6 = [n({ attribute: false })], _enableGrouping_dec = [n({ type: Boolean, reflect: true })], _ungroupedItemIds_dec2 = [n({ attribute: false })], _resources_dec3 = [n({ attribute: false })], _resourceAssociations_dec = [n({ attribute: false })], _selectedResourceId_dec = [n({ reflect: true })], _eligibleTargetsByResourceId_dec = [n({ attribute: false })], _search_dec2 = [r2()], _draggingItem_dec = [r2()], _dropSlot_dec = [r2()], _dropAttachTarget_dec = [r2()], _draggedItemHeight_dec = [r2()], _expandedSessionIds_dec = [r2()], _collapsedGroupIds_dec = [r2()], _moveAnnouncement_dec = [r2()], _resourceContextResourceId_dec = [r2()], _a101) {
73548
+ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = DeesElement, _sessions_dec3 = [n({ attribute: false })], _selectedSessionId_dec2 = [n({ reflect: true })], _loading_dec8 = [n({ type: Boolean, reflect: true })], _emptyText_dec3 = [n({ reflect: true })], _groups_dec6 = [n({ attribute: false })], _enableGrouping_dec = [n({ type: Boolean, reflect: true })], _ungroupedItemIds_dec2 = [n({ attribute: false })], _resources_dec3 = [n({ attribute: false })], _resourceAssociations_dec = [n({ attribute: false })], _attachableSessions_dec = [n({ attribute: false })], _selectedResourceId_dec = [n({ reflect: true })], _eligibleTargetsByResourceId_dec = [n({ attribute: false })], _search_dec2 = [r2()], _draggingItem_dec = [r2()], _dropSlot_dec = [r2()], _dropAttachTarget_dec = [r2()], _draggedItemHeight_dec = [r2()], _expandedSessionIds_dec = [r2()], _collapsedGroupIds_dec = [r2()], _moveAnnouncement_dec = [r2()], _resourceContextResourceId_dec = [r2()], _a101) {
73426
73549
  constructor() {
73427
73550
  super(...arguments);
73428
73551
  __publicField(this, "t", dcLocalize(this));
@@ -73435,17 +73558,18 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
73435
73558
  __privateAdd(this, _ungroupedItemIds2, __runInitializers(_init102, 32, this, [])), __runInitializers(_init102, 35, this);
73436
73559
  __privateAdd(this, _resources3, __runInitializers(_init102, 36, this, [])), __runInitializers(_init102, 39, this);
73437
73560
  __privateAdd(this, _resourceAssociations, __runInitializers(_init102, 40, this, [])), __runInitializers(_init102, 43, this);
73438
- __privateAdd(this, _selectedResourceId, __runInitializers(_init102, 44, this, "")), __runInitializers(_init102, 47, this);
73439
- __privateAdd(this, _eligibleTargetsByResourceId, __runInitializers(_init102, 48, this, {})), __runInitializers(_init102, 51, this);
73440
- __privateAdd(this, _search2, __runInitializers(_init102, 52, this, "")), __runInitializers(_init102, 55, this);
73441
- __privateAdd(this, _draggingItem, __runInitializers(_init102, 56, this)), __runInitializers(_init102, 59, this);
73442
- __privateAdd(this, _dropSlot, __runInitializers(_init102, 60, this)), __runInitializers(_init102, 63, this);
73443
- __privateAdd(this, _dropAttachTarget, __runInitializers(_init102, 64, this)), __runInitializers(_init102, 67, this);
73444
- __privateAdd(this, _draggedItemHeight, __runInitializers(_init102, 68, this, 0)), __runInitializers(_init102, 71, this);
73445
- __privateAdd(this, _expandedSessionIds, __runInitializers(_init102, 72, this, /* @__PURE__ */ new Set())), __runInitializers(_init102, 75, this);
73446
- __privateAdd(this, _collapsedGroupIds, __runInitializers(_init102, 76, this, /* @__PURE__ */ new Set())), __runInitializers(_init102, 79, this);
73447
- __privateAdd(this, _moveAnnouncement, __runInitializers(_init102, 80, this, "")), __runInitializers(_init102, 83, this);
73448
- __privateAdd(this, _resourceContextResourceId, __runInitializers(_init102, 84, this, "")), __runInitializers(_init102, 87, this);
73561
+ __privateAdd(this, _attachableSessions, __runInitializers(_init102, 44, this, [])), __runInitializers(_init102, 47, this);
73562
+ __privateAdd(this, _selectedResourceId, __runInitializers(_init102, 48, this, "")), __runInitializers(_init102, 51, this);
73563
+ __privateAdd(this, _eligibleTargetsByResourceId, __runInitializers(_init102, 52, this, {})), __runInitializers(_init102, 55, this);
73564
+ __privateAdd(this, _search2, __runInitializers(_init102, 56, this, "")), __runInitializers(_init102, 59, this);
73565
+ __privateAdd(this, _draggingItem, __runInitializers(_init102, 60, this)), __runInitializers(_init102, 63, this);
73566
+ __privateAdd(this, _dropSlot, __runInitializers(_init102, 64, this)), __runInitializers(_init102, 67, this);
73567
+ __privateAdd(this, _dropAttachTarget, __runInitializers(_init102, 68, this)), __runInitializers(_init102, 71, this);
73568
+ __privateAdd(this, _draggedItemHeight, __runInitializers(_init102, 72, this, 0)), __runInitializers(_init102, 75, this);
73569
+ __privateAdd(this, _expandedSessionIds, __runInitializers(_init102, 76, this, /* @__PURE__ */ new Set())), __runInitializers(_init102, 79, this);
73570
+ __privateAdd(this, _collapsedGroupIds, __runInitializers(_init102, 80, this, /* @__PURE__ */ new Set())), __runInitializers(_init102, 83, this);
73571
+ __privateAdd(this, _moveAnnouncement, __runInitializers(_init102, 84, this, "")), __runInitializers(_init102, 87, this);
73572
+ __privateAdd(this, _resourceContextResourceId, __runInitializers(_init102, 88, this, "")), __runInitializers(_init102, 91, this);
73449
73573
  __publicField(this, "scrollEdges", new ScrollEdgeShadowController(this, () => this.scrollContainer));
73450
73574
  __publicField(this, "reflowGeneration", 0);
73451
73575
  __publicField(this, "reflowAnimations", /* @__PURE__ */ new Set());
@@ -73541,13 +73665,13 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
73541
73665
  */
73542
73666
  get acceptedResourceAssociations() {
73543
73667
  const resourcesById = this.resourcesById;
73544
- const itemsByKey = this.itemsByKey;
73668
+ const knownItemsByKey = this.knownItemsByKey;
73545
73669
  const result = /* @__PURE__ */ new Map();
73546
73670
  for (const association of this.resourceAssociations) {
73547
73671
  if (!association || !resourcesById.has(association.resourceId)) continue;
73548
73672
  const targets = result.get(association.resourceId) ?? [];
73549
73673
  for (const target of association.targets ?? []) {
73550
- if (!target || !itemsByKey.has(itemKey2(target)) || sameItem(target, { kind: "resource", id: association.resourceId }) || targets.some((candidate) => sameItem(candidate, target))) continue;
73674
+ if (!target || !knownItemsByKey.has(itemKey2(target)) || sameItem(target, { kind: "resource", id: association.resourceId }) || targets.some((candidate) => sameItem(candidate, target))) continue;
73551
73675
  targets.push(itemRef(target));
73552
73676
  }
73553
73677
  result.set(association.resourceId, targets);
@@ -73568,15 +73692,7 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
73568
73692
  for (const session of this.sessions) {
73569
73693
  if (!session.id || seenSessionIds.has(session.id)) continue;
73570
73694
  seenSessionIds.add(session.id);
73571
- result.push({
73572
- kind: "session",
73573
- key: `session:${session.id}`,
73574
- id: session.id,
73575
- title: session.title || session.id,
73576
- sortable: session.draggable !== false,
73577
- timestamp: session.updatedAt ?? session.createdAt ?? 0,
73578
- session
73579
- });
73695
+ result.push(this.sessionItem(session));
73580
73696
  }
73581
73697
  for (const resource of this.resourcesById.values()) {
73582
73698
  result.push({
@@ -73591,9 +73707,31 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
73591
73707
  }
73592
73708
  return result;
73593
73709
  }
73710
+ sessionItem(sessionArg) {
73711
+ return {
73712
+ kind: "session",
73713
+ key: `session:${sessionArg.id}`,
73714
+ id: sessionArg.id,
73715
+ title: sessionArg.title || sessionArg.id,
73716
+ sortable: sessionArg.draggable !== false,
73717
+ timestamp: sessionArg.updatedAt ?? sessionArg.createdAt ?? 0,
73718
+ session: sessionArg
73719
+ };
73720
+ }
73721
+ /** The rendered items, by key. */
73594
73722
  get itemsByKey() {
73595
73723
  return new Map(this.acceptedItems.map((item) => [item.key, item]));
73596
73724
  }
73725
+ /** Every item a resource can attach to: the rendered ones and the attachable sessions. */
73726
+ get knownItemsByKey() {
73727
+ const result = this.itemsByKey;
73728
+ for (const session of this.attachableSessions) {
73729
+ if (!session.id || result.has(`session:${session.id}`)) continue;
73730
+ const item = this.sessionItem(session);
73731
+ result.set(item.key, item);
73732
+ }
73733
+ return result;
73734
+ }
73597
73735
  /** Groups only organize the list while grouping is enabled. */
73598
73736
  get effectiveGroups() {
73599
73737
  return this.enableGrouping ? this.groups : [];
@@ -73704,7 +73842,7 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
73704
73842
  if (!resource) return false;
73705
73843
  const currentTargets = this.resourceTargets(resourceIdArg);
73706
73844
  const toTarget = toTargetArg === null || toTargetArg === void 0 ? null : itemRef(toTargetArg);
73707
- if (toTarget !== null && (!this.itemsByKey.has(itemKey2(toTarget)) || sameItem(toTarget, { kind: "resource", id: resourceIdArg }) || !this.isResourceTargetEligible(resourceIdArg, toTarget))) return false;
73845
+ if (toTarget !== null && (!this.knownItemsByKey.has(itemKey2(toTarget)) || sameItem(toTarget, { kind: "resource", id: resourceIdArg }) || !this.isResourceTargetEligible(resourceIdArg, toTarget))) return false;
73708
73846
  const mode = modeArg ?? (toTarget === null ? "detach" : currentTargets.length === 0 ? "attach" : currentTargets.length === 1 ? "move" : void 0);
73709
73847
  if (!mode) return false;
73710
73848
  const explicitFrom = fromTargetArg === null || fromTargetArg === void 0 ? void 0 : itemRef(fromTargetArg);
@@ -73783,14 +73921,19 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
73783
73921
  this.resourceCloseFocus = void 0;
73784
73922
  await super.disconnectedCallback();
73785
73923
  }
73924
+ /** What the search field searches: conversations, resources, or both. */
73925
+ get searchPlaceholderKey() {
73926
+ if (this.sessions.length) return this.acceptedResources.length ? "sessionlist.searchAll" : "picker.search";
73927
+ return this.acceptedResources.length || this.attachableSessions.length ? "sessionlist.searchResources" : "picker.search";
73928
+ }
73786
73929
  render() {
73787
73930
  return b`
73788
73931
  <div class="searchRow">
73789
73932
  <div class="searchField">
73790
73933
  <dees-icon class="searchIcon" icon="lucide:Search" iconSize="13"></dees-icon>
73791
73934
  <input
73792
- placeholder=${this.t(this.acceptedResources.length ? "sessionlist.searchAll" : "picker.search")}
73793
- aria-label=${this.t(this.acceptedResources.length ? "sessionlist.searchAll" : "picker.search")}
73935
+ placeholder=${this.t(this.searchPlaceholderKey)}
73936
+ aria-label=${this.t(this.searchPlaceholderKey)}
73794
73937
  .value=${this.search}
73795
73938
  @input=${(event) => {
73796
73939
  this.search = event.currentTarget.value;
@@ -74599,12 +74742,12 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
74599
74742
  eligibleTargets(resourceIdArg) {
74600
74743
  const declared = this.eligibleTargetsByResourceId[resourceIdArg];
74601
74744
  if (!declared) return void 0;
74602
- const itemsByKey = this.itemsByKey;
74745
+ const knownItemsByKey = this.knownItemsByKey;
74603
74746
  const result = [];
74604
74747
  const seen = /* @__PURE__ */ new Set();
74605
74748
  for (const target of declared) {
74606
74749
  const key = target && itemKey2(target);
74607
- if (!key || seen.has(key) || !itemsByKey.has(key) || sameItem(target, { kind: "resource", id: resourceIdArg })) continue;
74750
+ if (!key || seen.has(key) || !knownItemsByKey.has(key) || sameItem(target, { kind: "resource", id: resourceIdArg })) continue;
74608
74751
  seen.add(key);
74609
74752
  result.push(itemRef(target));
74610
74753
  }
@@ -74655,7 +74798,7 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
74655
74798
  return detailArg.mode === "attach" ? this.t("sessionlist.attachPhase", { phase, resource: resourceTitle, to: toTitle }) : detailArg.mode === "attach-additional" ? this.t("sessionlist.attachAdditionalPhase", { phase, resource: resourceTitle, to: toTitle }) : detailArg.mode === "detach" ? this.t("sessionlist.detachPhase", { phase, resource: resourceTitle, from: fromTitle }) : this.t("sessionlist.movePhase", { phase, resource: resourceTitle, from: fromTitle, to: toTitle });
74656
74799
  }
74657
74800
  itemTitleFor(refArg) {
74658
- return this.itemsByKey.get(itemKey2(refArg))?.title ?? refArg.id;
74801
+ return this.knownItemsByKey.get(itemKey2(refArg))?.title ?? refArg.id;
74659
74802
  }
74660
74803
  emitSession(nameArg, sessionArg) {
74661
74804
  const detail = { session: sessionArg };
@@ -74855,6 +74998,7 @@ _enableGrouping = new WeakMap();
74855
74998
  _ungroupedItemIds2 = new WeakMap();
74856
74999
  _resources3 = new WeakMap();
74857
75000
  _resourceAssociations = new WeakMap();
75001
+ _attachableSessions = new WeakMap();
74858
75002
  _selectedResourceId = new WeakMap();
74859
75003
  _eligibleTargetsByResourceId = new WeakMap();
74860
75004
  _search2 = new WeakMap();
@@ -74875,6 +75019,7 @@ __decorateElement(_init102, 4, "enableGrouping", _enableGrouping_dec, _DeesHarne
74875
75019
  __decorateElement(_init102, 4, "ungroupedItemIds", _ungroupedItemIds_dec2, _DeesHarnessSessionList, _ungroupedItemIds2);
74876
75020
  __decorateElement(_init102, 4, "resources", _resources_dec3, _DeesHarnessSessionList, _resources3);
74877
75021
  __decorateElement(_init102, 4, "resourceAssociations", _resourceAssociations_dec, _DeesHarnessSessionList, _resourceAssociations);
75022
+ __decorateElement(_init102, 4, "attachableSessions", _attachableSessions_dec, _DeesHarnessSessionList, _attachableSessions);
74878
75023
  __decorateElement(_init102, 4, "selectedResourceId", _selectedResourceId_dec, _DeesHarnessSessionList, _selectedResourceId);
74879
75024
  __decorateElement(_init102, 4, "eligibleTargetsByResourceId", _eligibleTargetsByResourceId_dec, _DeesHarnessSessionList, _eligibleTargetsByResourceId);
74880
75025
  __decorateElement(_init102, 4, "search", _search_dec2, _DeesHarnessSessionList, _search2);
@@ -116982,7 +117127,7 @@ var _DeesSimpleAppDash = class _DeesSimpleAppDash extends (_a139 = DeesElement,
116982
117127
  this.terminalOpen = true;
116983
117128
  const request = ++this.terminalRequest;
116984
117129
  try {
116985
- const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-FXF7TT4M.js");
117130
+ const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-46JECUZO.js");
116986
117131
  await this.updateComplete;
116987
117132
  if (!this.isConnected || request !== this.terminalRequest) return;
116988
117133
  const terminal = new DeesWorkspaceTerminal3();
@@ -123986,7 +124131,7 @@ var bright = {
123986
124131
  // ts_web/00_commitinfo_data.ts
123987
124132
  var commitinfo = {
123988
124133
  name: "@design.estate/dees-catalog",
123989
- version: "21.40.0",
124134
+ version: "21.41.1",
123990
124135
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
123991
124136
  };
123992
124137
  export {