@design.estate/dees-catalog 21.40.0 → 21.41.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.
Files changed (37) hide show
  1. package/dist_bundle/bundle.js +251 -112
  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/i18n/de.d.ts +16 -0
  21. package/dist_ts_web/i18n/de.js +5 -1
  22. package/dist_ts_web/i18n/messages.d.ts +16 -0
  23. package/dist_ts_web/i18n/messages.js +5 -1
  24. package/package.json +1 -1
  25. package/readme.md +7 -5
  26. package/ts_web/00_commitinfo_data.ts +1 -1
  27. package/ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.ts +7 -0
  28. package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.ts +53 -17
  29. package/ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.demo.ts +38 -1
  30. package/ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.ts +104 -10
  31. package/ts_web/elements/00group-harness/interfaces.ts +16 -1
  32. package/ts_web/i18n/de.ts +4 -0
  33. package/ts_web/i18n/messages.ts +4 -0
  34. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-V55MXKAS.js.map → chunk-DGKFXX4X.js.map} +0 -0
  35. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-GQD5HSUW.js.map → chunk-OUB3OAV2.js.map} +0 -0
  36. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-QSZV6TA6.js.map → dees-modal-CDXSOKKD.js.map} +0 -0
  37. /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,
@@ -54955,6 +54955,29 @@ var scratchpad = {
54955
54955
  updatedAt: Date.now() - 45e3,
54956
54956
  updatedBy: "intelligence"
54957
54957
  };
54958
+ var attachedResources = [
54959
+ {
54960
+ id: "terminal-dev",
54961
+ kind: "terminal",
54962
+ title: "dev server",
54963
+ icon: "lucide:SquareTerminal",
54964
+ state: "running",
54965
+ preview: "~/projects/storefront"
54966
+ },
54967
+ {
54968
+ id: "browser-preview",
54969
+ kind: "browser",
54970
+ title: "Storefront preview",
54971
+ icon: "lucide:Globe",
54972
+ state: "open",
54973
+ preview: "http://localhost:3000/checkout"
54974
+ }
54975
+ ];
54976
+ var draftScratchpad = {
54977
+ id: "draft",
54978
+ text: "",
54979
+ revision: 0
54980
+ };
54958
54981
  var exchanges = [{
54959
54982
  id: "intelligence-1",
54960
54983
  question: "What remains before release?",
@@ -54973,7 +54996,7 @@ var showEvent = /* @__PURE__ */ __name((event) => {
54973
54996
  detail: event.detail
54974
54997
  });
54975
54998
  }, "showEvent");
54976
- var demoFunc47 = /* @__PURE__ */ __name(() => demoPage("Session details", "Tasks, context usage, scratchpad and session intelligence alongside a conversation.", b`
54999
+ var demoFunc47 = /* @__PURE__ */ __name(() => demoPage("Session details", "Tasks, context usage, scratchpad, attached resources and session intelligence alongside a conversation.", b`
54977
55000
  <style>
54978
55001
  .harnessSessionSidebarDemos {
54979
55002
  display: flex;
@@ -54996,12 +55019,23 @@ var demoFunc47 = /* @__PURE__ */ __name(() => demoPage("Session details", "Tasks
54996
55019
  .todos=${todos}
54997
55020
  .metrics=${metrics}
54998
55021
  .scratchpad=${scratchpad}
55022
+ .attachedResources=${attachedResources}
54999
55023
  .intelligenceEnabled=${true}
55000
55024
  .intelligenceExchanges=${exchanges}
55001
55025
  @harness-scratchpad-save=${showEvent}
55026
+ @harness-attached-resource-open=${showEvent}
55002
55027
  @harness-session-intelligence-ask=${showEvent}
55003
55028
  ></dees-harness-session-sidebar>
55004
55029
  </div>
55030
+ <div class="harnessSessionSidebarDemo">
55031
+ <dees-harness-session-sidebar
55032
+ .metrics=${{ lifetimeUsedTokens: 0 }}
55033
+ .scratchpad=${draftScratchpad}
55034
+ .attachedResources=${[]}
55035
+ .intelligenceEnabled=${true}
55036
+ @harness-scratchpad-input=${showEvent}
55037
+ ></dees-harness-session-sidebar>
55038
+ </div>
55005
55039
  <div class="harnessSessionSidebarDemo">
55006
55040
  <dees-harness-session-sidebar
55007
55041
  .showTasks=${false}
@@ -55023,10 +55057,10 @@ var demoFunc47 = /* @__PURE__ */ __name(() => demoPage("Session details", "Tasks
55023
55057
  `), "demoFunc");
55024
55058
 
55025
55059
  // 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;
55060
+ 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
55061
  var { repeat: repeat4 } = directives_exports;
55028
55062
  _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) {
55063
+ 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
55064
  constructor() {
55031
55065
  super(...arguments);
55032
55066
  __publicField(this, "t", dcLocalize(this));
@@ -55038,22 +55072,23 @@ var _DeesHarnessSessionSidebar = class _DeesHarnessSessionSidebar extends (_a68
55038
55072
  __privateAdd(this, _scratchpad, __runInitializers(_init70, 28, this)), __runInitializers(_init70, 31, this);
55039
55073
  __privateAdd(this, _scratchpadBusy, __runInitializers(_init70, 32, this, false)), __runInitializers(_init70, 35, this);
55040
55074
  __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);
55075
+ __privateAdd(this, _attachedResources, __runInitializers(_init70, 40, this)), __runInitializers(_init70, 43, this);
55076
+ __privateAdd(this, _intelligenceEnabled, __runInitializers(_init70, 44, this, false)), __runInitializers(_init70, 47, this);
55077
+ __privateAdd(this, _intelligenceAvailabilityStatus, __runInitializers(_init70, 48, this, "available")), __runInitializers(_init70, 51, this);
55078
+ __privateAdd(this, _intelligenceUnavailableReason, __runInitializers(_init70, 52, this, "")), __runInitializers(_init70, 55, this);
55079
+ __privateAdd(this, _intelligenceAvailabilityAction, __runInitializers(_init70, 56, this)), __runInitializers(_init70, 59, this);
55080
+ __privateAdd(this, _intelligenceHeading, __runInitializers(_init70, 60, this, "")), __runInitializers(_init70, 63, this);
55081
+ __privateAdd(this, _intelligenceExchanges, __runInitializers(_init70, 64, this, [])), __runInitializers(_init70, 67, this);
55082
+ __privateAdd(this, _intelligenceBusy, __runInitializers(_init70, 68, this, false)), __runInitializers(_init70, 71, this);
55083
+ __privateAdd(this, _intelligenceError, __runInitializers(_init70, 72, this, "")), __runInitializers(_init70, 75, this);
55084
+ __privateAdd(this, _sessionKey, __runInitializers(_init70, 76, this, "")), __runInitializers(_init70, 79, this);
55085
+ __privateAdd(this, _disabled4, __runInitializers(_init70, 80, this, false)), __runInitializers(_init70, 83, this);
55086
+ __privateAdd(this, _scratchpadDraft, __runInitializers(_init70, 84, this, "")), __runInitializers(_init70, 87, this);
55087
+ __privateAdd(this, _scratchpadDraftRevision, __runInitializers(_init70, 88, this, 0)), __runInitializers(_init70, 91, this);
55088
+ __privateAdd(this, _scratchpadDirty, __runInitializers(_init70, 92, this, false)), __runInitializers(_init70, 95, this);
55089
+ __privateAdd(this, _scratchpadStale, __runInitializers(_init70, 96, this, false)), __runInitializers(_init70, 99, this);
55090
+ __privateAdd(this, _intelligenceQuestion, __runInitializers(_init70, 100, this, "")), __runInitializers(_init70, 103, this);
55091
+ __privateAdd(this, _expandedSection, __runInitializers(_init70, 104, this)), __runInitializers(_init70, 107, this);
55057
55092
  __publicField(this, "sectionStateInitialized", false);
55058
55093
  __publicField(this, "activityPositions", /* @__PURE__ */ new Map());
55059
55094
  __publicField(this, "activityFlipReady", false);
@@ -55251,6 +55286,7 @@ var _DeesHarnessSessionSidebar = class _DeesHarnessSessionSidebar extends (_a68
55251
55286
  ${this.toolActivityEntries.length ? this.renderToolActivity() : ""}
55252
55287
  ${this.hasMetrics ? this.renderMetrics() : ""}
55253
55288
  ${this.scratchpad ? this.renderScratchpad() : ""}
55289
+ ${this.attachedResources ? this.renderAttachedResources() : ""}
55254
55290
  ${this.intelligenceEnabled ? this.renderIntelligence() : ""}
55255
55291
  </div>
55256
55292
  `;
@@ -55273,6 +55309,7 @@ var _DeesHarnessSessionSidebar = class _DeesHarnessSessionSidebar extends (_a68
55273
55309
  ...this.toolActivityEntries.length ? ["activity"] : [],
55274
55310
  ...this.hasMetrics ? ["metrics"] : [],
55275
55311
  ...this.scratchpad ? ["scratchpad"] : [],
55312
+ ...this.attachedResources ? ["resources"] : [],
55276
55313
  ...this.intelligenceEnabled ? ["intelligence"] : []
55277
55314
  ];
55278
55315
  }
@@ -55281,6 +55318,7 @@ var _DeesHarnessSessionSidebar = class _DeesHarnessSessionSidebar extends (_a68
55281
55318
  if (this.toolActivityEntries.length) return "activity";
55282
55319
  if (this.hasMetrics) return "metrics";
55283
55320
  if (this.scratchpad) return "scratchpad";
55321
+ if (this.attachedResources?.length) return "resources";
55284
55322
  if (this.intelligenceEnabled) return "intelligence";
55285
55323
  return this.showTasks ? "tasks" : void 0;
55286
55324
  }
@@ -55534,6 +55572,12 @@ var _DeesHarnessSessionSidebar = class _DeesHarnessSessionSidebar extends (_a68
55534
55572
  @input=${(event) => {
55535
55573
  this.scratchpadDraft = event.currentTarget.value;
55536
55574
  this.scratchpadDirty = this.scratchpadDraft !== scratchpad2.text;
55575
+ const detail = { text: this.scratchpadDraft };
55576
+ this.dispatchEvent(new CustomEvent("harness-scratchpad-input", {
55577
+ detail,
55578
+ bubbles: true,
55579
+ composed: true
55580
+ }));
55537
55581
  }}
55538
55582
  @keydown=${(event) => {
55539
55583
  if (event.key === "Enter" && (event.metaKey || event.ctrlKey)) {
@@ -55576,6 +55620,57 @@ var _DeesHarnessSessionSidebar = class _DeesHarnessSessionSidebar extends (_a68
55576
55620
  `
55577
55621
  );
55578
55622
  }
55623
+ renderAttachedResources() {
55624
+ const resources = this.attachedResources ?? [];
55625
+ return this.renderSection(
55626
+ "resources",
55627
+ this.t("sidebar.attachedResources"),
55628
+ "lucide:Link",
55629
+ resources.length ? b`
55630
+ <div class="resourceList">
55631
+ ${repeat4(
55632
+ resources,
55633
+ (resource) => resource.id,
55634
+ (resource) => this.renderAttachedResource(resource)
55635
+ )}
55636
+ </div>
55637
+ ` : b`<div class="empty">${this.t("sidebar.noAttachedResources")}</div>`,
55638
+ resources.length ? this.t.format.number(resources.length) : ""
55639
+ );
55640
+ }
55641
+ /** One attached resource: what it is, its name and state, and where it points, as one button that opens it. */
55642
+ renderAttachedResource(resourceArg) {
55643
+ const title = resourceArg.title || resourceArg.id;
55644
+ const meta = [resourceArg.kind, resourceArg.preview?.trim()].filter(Boolean).join(" \xB7 ");
55645
+ return b`
55646
+ <button
55647
+ class="resourceItem"
55648
+ type="button"
55649
+ data-resource-id=${resourceArg.id}
55650
+ aria-label=${this.t("sidebar.openResource", { title })}
55651
+ @click=${() => this.openAttachedResource(resourceArg)}
55652
+ >
55653
+ <span class="resourceIcon">
55654
+ <dees-icon icon=${resourceArg.icon || "lucide:Box"} iconSize="13"></dees-icon>
55655
+ </span>
55656
+ <span class="resourceCopy">
55657
+ <span class="resourceTitleRow">
55658
+ <span class="resourceTitle" title=${title}>${title}</span>
55659
+ ${resourceArg.state ? b`<span class="resourceState">${resourceArg.state}</span>` : ""}
55660
+ </span>
55661
+ ${meta ? b`<dees-harness-overflow-text class="resourceMeta" title=${meta}>${meta}</dees-harness-overflow-text>` : ""}
55662
+ </span>
55663
+ </button>
55664
+ `;
55665
+ }
55666
+ openAttachedResource(resourceArg) {
55667
+ const detail = { resource: resourceArg };
55668
+ this.dispatchEvent(new CustomEvent("harness-attached-resource-open", {
55669
+ detail,
55670
+ bubbles: true,
55671
+ composed: true
55672
+ }));
55673
+ }
55579
55674
  renderIntelligence() {
55580
55675
  const heading = this.intelligenceHeading.trim() || this.t("sidebar.intelligence");
55581
55676
  const intelligenceAvailable = this.intelligenceAvailabilityStatus === "available";
@@ -55675,6 +55770,7 @@ _metrics = new WeakMap();
55675
55770
  _scratchpad = new WeakMap();
55676
55771
  _scratchpadBusy = new WeakMap();
55677
55772
  _scratchpadError = new WeakMap();
55773
+ _attachedResources = new WeakMap();
55678
55774
  _intelligenceEnabled = new WeakMap();
55679
55775
  _intelligenceAvailabilityStatus = new WeakMap();
55680
55776
  _intelligenceUnavailableReason = new WeakMap();
@@ -55699,6 +55795,7 @@ __decorateElement(_init70, 4, "metrics", _metrics_dec, _DeesHarnessSessionSideba
55699
55795
  __decorateElement(_init70, 4, "scratchpad", _scratchpad_dec, _DeesHarnessSessionSidebar, _scratchpad);
55700
55796
  __decorateElement(_init70, 4, "scratchpadBusy", _scratchpadBusy_dec, _DeesHarnessSessionSidebar, _scratchpadBusy);
55701
55797
  __decorateElement(_init70, 4, "scratchpadError", _scratchpadError_dec, _DeesHarnessSessionSidebar, _scratchpadError);
55798
+ __decorateElement(_init70, 4, "attachedResources", _attachedResources_dec, _DeesHarnessSessionSidebar, _attachedResources);
55702
55799
  __decorateElement(_init70, 4, "intelligenceEnabled", _intelligenceEnabled_dec, _DeesHarnessSessionSidebar, _intelligenceEnabled);
55703
55800
  __decorateElement(_init70, 4, "intelligenceAvailabilityStatus", _intelligenceAvailabilityStatus_dec, _DeesHarnessSessionSidebar, _intelligenceAvailabilityStatus);
55704
55801
  __decorateElement(_init70, 4, "intelligenceUnavailableReason", _intelligenceUnavailableReason_dec, _DeesHarnessSessionSidebar, _intelligenceUnavailableReason);
@@ -55855,7 +55952,8 @@ __publicField(_DeesHarnessSessionSidebar, "styles", [
55855
55952
  }
55856
55953
 
55857
55954
  .activityList,
55858
- .activityGroup {
55955
+ .activityGroup,
55956
+ .resourceList {
55859
55957
  display: grid;
55860
55958
  gap: var(--dees-spacing-sm);
55861
55959
  }
@@ -55905,7 +56003,8 @@ __publicField(_DeesHarnessSessionSidebar, "styles", [
55905
56003
  }
55906
56004
  }
55907
56005
 
55908
- .activityItem {
56006
+ .activityItem,
56007
+ .resourceItem {
55909
56008
  appearance: none;
55910
56009
  display: grid;
55911
56010
  grid-template-columns: 24px minmax(0, 1fr);
@@ -55923,16 +56022,19 @@ __publicField(_DeesHarnessSessionSidebar, "styles", [
55923
56022
  border-radius: var(--dees-radius-md);
55924
56023
  }
55925
56024
 
55926
- .activityItem:hover {
56025
+ .activityItem:hover,
56026
+ .resourceItem:hover {
55927
56027
  background: var(--dees-color-fill-secondary);
55928
56028
  }
55929
56029
 
55930
- .activityItem:focus-visible {
56030
+ .activityItem:focus-visible,
56031
+ .resourceItem:focus-visible {
55931
56032
  outline: var(--dees-line-width-focus-ring) solid var(--dees-color-focus-ring);
55932
56033
  outline-offset: 2px;
55933
56034
  }
55934
56035
 
55935
- .activityIcon {
56036
+ .activityIcon,
56037
+ .resourceIcon {
55936
56038
  display: grid;
55937
56039
  place-items: center;
55938
56040
  width: 24px;
@@ -55956,19 +56058,22 @@ __publicField(_DeesHarnessSessionSidebar, "styles", [
55956
56058
  color: var(--dees-color-accent-error);
55957
56059
  }
55958
56060
 
55959
- .activityCopy {
56061
+ .activityCopy,
56062
+ .resourceCopy {
55960
56063
  min-width: 0;
55961
56064
  }
55962
56065
 
55963
56066
  .activityTitleRow,
55964
- .activityMeta {
56067
+ .activityMeta,
56068
+ .resourceTitleRow {
55965
56069
  display: flex;
55966
56070
  align-items: center;
55967
56071
  gap: var(--dees-spacing-xs);
55968
56072
  min-width: 0;
55969
56073
  }
55970
56074
 
55971
- .activityTitle {
56075
+ .activityTitle,
56076
+ .resourceTitle {
55972
56077
  min-width: 0;
55973
56078
  flex: 1;
55974
56079
  color: var(--dees-color-text-primary);
@@ -56018,7 +56123,8 @@ __publicField(_DeesHarnessSessionSidebar, "styles", [
56018
56123
  color: var(--dees-color-text-muted);
56019
56124
  }
56020
56125
 
56021
- .activitySubtitle {
56126
+ .activitySubtitle,
56127
+ .resourceMeta {
56022
56128
  display: block;
56023
56129
  width: 100%;
56024
56130
  min-width: 0;
@@ -56027,6 +56133,13 @@ __publicField(_DeesHarnessSessionSidebar, "styles", [
56027
56133
  font-size: var(--dees-font-caption2-size, 10px);
56028
56134
  }
56029
56135
 
56136
+ .resourceState {
56137
+ flex: 0 0 auto;
56138
+ color: var(--dees-color-text-muted);
56139
+ font-size: var(--dees-font-caption2-size, 10px);
56140
+ white-space: nowrap;
56141
+ }
56142
+
56030
56143
  .activityMeta {
56031
56144
  margin-top: var(--dees-spacing-2xs);
56032
56145
  color: var(--dees-color-text-muted);
@@ -56291,9 +56404,9 @@ __runInitializers(_init71, 1, _DeesHarnessUsage);
56291
56404
  var DeesHarnessUsage = _DeesHarnessUsage;
56292
56405
 
56293
56406
  // 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;
56407
+ 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
56408
  _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) {
56409
+ 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
56410
  constructor() {
56298
56411
  super(...arguments);
56299
56412
  __publicField(this, "t", dcLocalize(this));
@@ -56317,51 +56430,52 @@ var _DeesHarnessChat = class _DeesHarnessChat extends (_a70 = DeesElement, _mess
56317
56430
  __privateAdd(this, _scratchpad2, __runInitializers(_init72, 76, this)), __runInitializers(_init72, 79, this);
56318
56431
  __privateAdd(this, _scratchpadBusy2, __runInitializers(_init72, 80, this, false)), __runInitializers(_init72, 83, this);
56319
56432
  __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);
56433
+ __privateAdd(this, _attachedResources2, __runInitializers(_init72, 88, this)), __runInitializers(_init72, 91, this);
56434
+ __privateAdd(this, _sessionIntelligenceEnabled, __runInitializers(_init72, 92, this, false)), __runInitializers(_init72, 95, this);
56435
+ __privateAdd(this, _intelligenceAvailabilityStatus2, __runInitializers(_init72, 96, this, "available")), __runInitializers(_init72, 99, this);
56436
+ __privateAdd(this, _intelligenceUnavailableReason2, __runInitializers(_init72, 100, this, "")), __runInitializers(_init72, 103, this);
56437
+ __privateAdd(this, _intelligenceAvailabilityAction2, __runInitializers(_init72, 104, this)), __runInitializers(_init72, 107, this);
56438
+ __privateAdd(this, _intelligenceHeading2, __runInitializers(_init72, 108, this, "")), __runInitializers(_init72, 111, this);
56439
+ __privateAdd(this, _intelligenceExchanges2, __runInitializers(_init72, 112, this, [])), __runInitializers(_init72, 115, this);
56440
+ __privateAdd(this, _intelligenceBusy2, __runInitializers(_init72, 116, this, false)), __runInitializers(_init72, 119, this);
56441
+ __privateAdd(this, _intelligenceError2, __runInitializers(_init72, 120, this, "")), __runInitializers(_init72, 123, this);
56442
+ __privateAdd(this, _sessionSidebarOpen, __runInitializers(_init72, 124, this, false)), __runInitializers(_init72, 127, this);
56443
+ __privateAdd(this, _desktopSessionSidebarVisible, __runInitializers(_init72, 128, this, true)), __runInitializers(_init72, 131, this);
56444
+ __privateAdd(this, _narrowSessionLayout, __runInitializers(_init72, 132, this, false)), __runInitializers(_init72, 135, this);
56331
56445
  __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);
56446
+ __privateAdd(this, _heading7, __runInitializers(_init72, 136, this, "")), __runInitializers(_init72, 139, this);
56447
+ __privateAdd(this, _subheading, __runInitializers(_init72, 140, this, "")), __runInitializers(_init72, 143, this);
56448
+ __privateAdd(this, _toolbarActions, __runInitializers(_init72, 144, this, [])), __runInitializers(_init72, 147, this);
56449
+ __privateAdd(this, _showToolbar2, __runInitializers(_init72, 148, this, true)), __runInitializers(_init72, 151, this);
56450
+ __privateAdd(this, _showRoles2, __runInitializers(_init72, 152, this, true)), __runInitializers(_init72, 155, this);
56451
+ __privateAdd(this, _showTimestamps2, __runInitializers(_init72, 156, this, true)), __runInitializers(_init72, 159, this);
56452
+ __privateAdd(this, _markdownWhileStreaming5, __runInitializers(_init72, 160, this, true)), __runInitializers(_init72, 163, this);
56453
+ __privateAdd(this, _disabled5, __runInitializers(_init72, 164, this, false)), __runInitializers(_init72, 167, this);
56454
+ __privateAdd(this, _inputLocked2, __runInitializers(_init72, 168, this, false)), __runInitializers(_init72, 171, this);
56455
+ __privateAdd(this, _busy4, __runInitializers(_init72, 172, this, false)), __runInitializers(_init72, 175, this);
56456
+ __privateAdd(this, _abortEnabled2, __runInitializers(_init72, 176, this, true)), __runInitializers(_init72, 179, this);
56457
+ __privateAdd(this, _abortDisabledReason2, __runInitializers(_init72, 180, this, "")), __runInitializers(_init72, 183, this);
56458
+ __privateAdd(this, _queuedCount2, __runInitializers(_init72, 184, this, 0)), __runInitializers(_init72, 187, this);
56459
+ __privateAdd(this, _busyDeliveryModes2, __runInitializers(_init72, 188, this, ["queue"])), __runInitializers(_init72, 191, this);
56460
+ __privateAdd(this, _composerValue, __runInitializers(_init72, 192, this, "")), __runInitializers(_init72, 195, this);
56461
+ __privateAdd(this, _attachments2, __runInitializers(_init72, 196, this, [])), __runInitializers(_init72, 199, this);
56462
+ __privateAdd(this, _attachmentsEnabled2, __runInitializers(_init72, 200, this, true)), __runInitializers(_init72, 203, this);
56463
+ __privateAdd(this, _commands2, __runInitializers(_init72, 204, this, [])), __runInitializers(_init72, 207, this);
56464
+ __privateAdd(this, _starterPrompts2, __runInitializers(_init72, 208, this, [])), __runInitializers(_init72, 211, this);
56465
+ __privateAdd(this, _maxAttachmentCount2, __runInitializers(_init72, 212, this, Number.POSITIVE_INFINITY)), __runInitializers(_init72, 215, this);
56466
+ __privateAdd(this, _maxAttachmentBytes2, __runInitializers(_init72, 216, this, harnessMaxAttachmentBytes)), __runInitializers(_init72, 219, this);
56467
+ __privateAdd(this, _maxTotalAttachmentBytes2, __runInitializers(_init72, 220, this, harnessMaxTotalAttachmentBytes)), __runInitializers(_init72, 223, this);
56468
+ __privateAdd(this, _account2, __runInitializers(_init72, 224, this, "")), __runInitializers(_init72, 227, this);
56469
+ __privateAdd(this, _accountOptions2, __runInitializers(_init72, 228, this, [])), __runInitializers(_init72, 231, this);
56470
+ __privateAdd(this, _accountNote2, __runInitializers(_init72, 232, this, "")), __runInitializers(_init72, 235, this);
56471
+ __privateAdd(this, _model2, __runInitializers(_init72, 236, this, "")), __runInitializers(_init72, 239, this);
56472
+ __privateAdd(this, _modelOptions2, __runInitializers(_init72, 240, this, [])), __runInitializers(_init72, 243, this);
56473
+ __privateAdd(this, _reasoningEffort2, __runInitializers(_init72, 244, this, "")), __runInitializers(_init72, 247, this);
56474
+ __privateAdd(this, _effortOptions2, __runInitializers(_init72, 248, this, [])), __runInitializers(_init72, 251, this);
56475
+ __privateAdd(this, _mode2, __runInitializers(_init72, 252, this, "")), __runInitializers(_init72, 255, this);
56476
+ __privateAdd(this, _modeOptions2, __runInitializers(_init72, 256, this, [])), __runInitializers(_init72, 259, this);
56477
+ __privateAdd(this, _menuActions2, __runInitializers(_init72, 260, this, [])), __runInitializers(_init72, 263, this);
56478
+ __privateAdd(this, _toolRegistry6, __runInitializers(_init72, 264, this, DeesHarnessToolRegistry.default)), __runInitializers(_init72, 267, this);
56365
56479
  /** Puts a chosen starter prompt into the composer as typing would, without sending it. */
56366
56480
  __publicField(this, "handleStarterPrompt", /* @__PURE__ */ __name((event) => {
56367
56481
  const prompt = event.detail?.prompt;
@@ -56465,7 +56579,7 @@ var _DeesHarnessChat = class _DeesHarnessChat extends (_a70 = DeesElement, _mess
56465
56579
  }
56466
56580
  get hasSessionSidebar() {
56467
56581
  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;
56582
+ 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
56583
  }
56470
56584
  get listElement() {
56471
56585
  const element = this.shadowRoot?.querySelector("dees-harness-message-list");
@@ -56584,6 +56698,7 @@ var _DeesHarnessChat = class _DeesHarnessChat extends (_a70 = DeesElement, _mess
56584
56698
  .scratchpad=${this.scratchpad}
56585
56699
  .scratchpadBusy=${this.scratchpadBusy}
56586
56700
  .scratchpadError=${this.scratchpadError}
56701
+ .attachedResources=${this.attachedResources}
56587
56702
  .intelligenceEnabled=${this.sessionIntelligenceEnabled}
56588
56703
  .intelligenceAvailabilityStatus=${this.intelligenceAvailabilityStatus}
56589
56704
  .intelligenceUnavailableReason=${this.intelligenceUnavailableReason}
@@ -56736,6 +56851,7 @@ _sessionMetrics = new WeakMap();
56736
56851
  _scratchpad2 = new WeakMap();
56737
56852
  _scratchpadBusy2 = new WeakMap();
56738
56853
  _scratchpadError2 = new WeakMap();
56854
+ _attachedResources2 = new WeakMap();
56739
56855
  _sessionIntelligenceEnabled = new WeakMap();
56740
56856
  _intelligenceAvailabilityStatus2 = new WeakMap();
56741
56857
  _intelligenceUnavailableReason2 = new WeakMap();
@@ -56800,6 +56916,7 @@ __decorateElement(_init72, 4, "sessionMetrics", _sessionMetrics_dec, _DeesHarnes
56800
56916
  __decorateElement(_init72, 4, "scratchpad", _scratchpad_dec2, _DeesHarnessChat, _scratchpad2);
56801
56917
  __decorateElement(_init72, 4, "scratchpadBusy", _scratchpadBusy_dec2, _DeesHarnessChat, _scratchpadBusy2);
56802
56918
  __decorateElement(_init72, 4, "scratchpadError", _scratchpadError_dec2, _DeesHarnessChat, _scratchpadError2);
56919
+ __decorateElement(_init72, 4, "attachedResources", _attachedResources_dec2, _DeesHarnessChat, _attachedResources2);
56803
56920
  __decorateElement(_init72, 4, "sessionIntelligenceEnabled", _sessionIntelligenceEnabled_dec, _DeesHarnessChat, _sessionIntelligenceEnabled);
56804
56921
  __decorateElement(_init72, 4, "intelligenceAvailabilityStatus", _intelligenceAvailabilityStatus_dec2, _DeesHarnessChat, _intelligenceAvailabilityStatus2);
56805
56922
  __decorateElement(_init72, 4, "intelligenceUnavailableReason", _intelligenceUnavailableReason_dec2, _DeesHarnessChat, _intelligenceUnavailableReason2);
@@ -72669,7 +72786,7 @@ var _DeesHarnessConversationPicker = class _DeesHarnessConversationPicker extend
72669
72786
  * cancelled. Focus returns to whatever had it when the picker opened.
72670
72787
  */
72671
72788
  static async pick(optionsArg = {}) {
72672
- const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-QSZV6TA6.js");
72789
+ const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-CDXSOKKD.js");
72673
72790
  const picker = new _DeesHarnessConversationPicker();
72674
72791
  picker.sessions = optionsArg.sessions ?? [];
72675
72792
  picker.groups = optionsArg.groups ?? [];
@@ -73130,7 +73247,7 @@ var handleResourceContext = /* @__PURE__ */ __name(async (event) => {
73130
73247
  list.selectedResourceId = event.detail.resource.id;
73131
73248
  }, "handleResourceContext");
73132
73249
  var openModal = /* @__PURE__ */ __name(async (sessions, groups) => {
73133
- const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-QSZV6TA6.js");
73250
+ const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-CDXSOKKD.js");
73134
73251
  const content = document.createElement("dees-harness-session-list");
73135
73252
  content.sessions = sessions;
73136
73253
  content.groups = groups;
@@ -73410,7 +73527,7 @@ var DeesDemoSessionWorkspace = _DeesDemoSessionWorkspace;
73410
73527
  var demoFunc70 = /* @__PURE__ */ __name(() => demoApp(b`<dees-demo-session-workspace></dees-demo-session-workspace>`), "demoFunc");
73411
73528
 
73412
73529
  // 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;
73530
+ 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
73531
  var { repeat: repeat5 } = directives_exports;
73415
73532
  var dragAutoScrollMaxPixelsPerSecond = 900;
73416
73533
  var dragThresholdPixels = 4;
@@ -73422,7 +73539,7 @@ var itemRef = /* @__PURE__ */ __name((itemArg) => ({
73422
73539
  }), "itemRef");
73423
73540
  var sameItem = /* @__PURE__ */ __name((leftArg, rightArg) => !!leftArg && !!rightArg && leftArg.kind === rightArg.kind && leftArg.id === rightArg.id, "sameItem");
73424
73541
  _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) {
73542
+ 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
73543
  constructor() {
73427
73544
  super(...arguments);
73428
73545
  __publicField(this, "t", dcLocalize(this));
@@ -73435,17 +73552,18 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
73435
73552
  __privateAdd(this, _ungroupedItemIds2, __runInitializers(_init102, 32, this, [])), __runInitializers(_init102, 35, this);
73436
73553
  __privateAdd(this, _resources3, __runInitializers(_init102, 36, this, [])), __runInitializers(_init102, 39, this);
73437
73554
  __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);
73555
+ __privateAdd(this, _attachableSessions, __runInitializers(_init102, 44, this, [])), __runInitializers(_init102, 47, this);
73556
+ __privateAdd(this, _selectedResourceId, __runInitializers(_init102, 48, this, "")), __runInitializers(_init102, 51, this);
73557
+ __privateAdd(this, _eligibleTargetsByResourceId, __runInitializers(_init102, 52, this, {})), __runInitializers(_init102, 55, this);
73558
+ __privateAdd(this, _search2, __runInitializers(_init102, 56, this, "")), __runInitializers(_init102, 59, this);
73559
+ __privateAdd(this, _draggingItem, __runInitializers(_init102, 60, this)), __runInitializers(_init102, 63, this);
73560
+ __privateAdd(this, _dropSlot, __runInitializers(_init102, 64, this)), __runInitializers(_init102, 67, this);
73561
+ __privateAdd(this, _dropAttachTarget, __runInitializers(_init102, 68, this)), __runInitializers(_init102, 71, this);
73562
+ __privateAdd(this, _draggedItemHeight, __runInitializers(_init102, 72, this, 0)), __runInitializers(_init102, 75, this);
73563
+ __privateAdd(this, _expandedSessionIds, __runInitializers(_init102, 76, this, /* @__PURE__ */ new Set())), __runInitializers(_init102, 79, this);
73564
+ __privateAdd(this, _collapsedGroupIds, __runInitializers(_init102, 80, this, /* @__PURE__ */ new Set())), __runInitializers(_init102, 83, this);
73565
+ __privateAdd(this, _moveAnnouncement, __runInitializers(_init102, 84, this, "")), __runInitializers(_init102, 87, this);
73566
+ __privateAdd(this, _resourceContextResourceId, __runInitializers(_init102, 88, this, "")), __runInitializers(_init102, 91, this);
73449
73567
  __publicField(this, "scrollEdges", new ScrollEdgeShadowController(this, () => this.scrollContainer));
73450
73568
  __publicField(this, "reflowGeneration", 0);
73451
73569
  __publicField(this, "reflowAnimations", /* @__PURE__ */ new Set());
@@ -73541,13 +73659,13 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
73541
73659
  */
73542
73660
  get acceptedResourceAssociations() {
73543
73661
  const resourcesById = this.resourcesById;
73544
- const itemsByKey = this.itemsByKey;
73662
+ const knownItemsByKey = this.knownItemsByKey;
73545
73663
  const result = /* @__PURE__ */ new Map();
73546
73664
  for (const association of this.resourceAssociations) {
73547
73665
  if (!association || !resourcesById.has(association.resourceId)) continue;
73548
73666
  const targets = result.get(association.resourceId) ?? [];
73549
73667
  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;
73668
+ if (!target || !knownItemsByKey.has(itemKey2(target)) || sameItem(target, { kind: "resource", id: association.resourceId }) || targets.some((candidate) => sameItem(candidate, target))) continue;
73551
73669
  targets.push(itemRef(target));
73552
73670
  }
73553
73671
  result.set(association.resourceId, targets);
@@ -73568,15 +73686,7 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
73568
73686
  for (const session of this.sessions) {
73569
73687
  if (!session.id || seenSessionIds.has(session.id)) continue;
73570
73688
  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
- });
73689
+ result.push(this.sessionItem(session));
73580
73690
  }
73581
73691
  for (const resource of this.resourcesById.values()) {
73582
73692
  result.push({
@@ -73591,9 +73701,31 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
73591
73701
  }
73592
73702
  return result;
73593
73703
  }
73704
+ sessionItem(sessionArg) {
73705
+ return {
73706
+ kind: "session",
73707
+ key: `session:${sessionArg.id}`,
73708
+ id: sessionArg.id,
73709
+ title: sessionArg.title || sessionArg.id,
73710
+ sortable: sessionArg.draggable !== false,
73711
+ timestamp: sessionArg.updatedAt ?? sessionArg.createdAt ?? 0,
73712
+ session: sessionArg
73713
+ };
73714
+ }
73715
+ /** The rendered items, by key. */
73594
73716
  get itemsByKey() {
73595
73717
  return new Map(this.acceptedItems.map((item) => [item.key, item]));
73596
73718
  }
73719
+ /** Every item a resource can attach to: the rendered ones and the attachable sessions. */
73720
+ get knownItemsByKey() {
73721
+ const result = this.itemsByKey;
73722
+ for (const session of this.attachableSessions) {
73723
+ if (!session.id || result.has(`session:${session.id}`)) continue;
73724
+ const item = this.sessionItem(session);
73725
+ result.set(item.key, item);
73726
+ }
73727
+ return result;
73728
+ }
73597
73729
  /** Groups only organize the list while grouping is enabled. */
73598
73730
  get effectiveGroups() {
73599
73731
  return this.enableGrouping ? this.groups : [];
@@ -73704,7 +73836,7 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
73704
73836
  if (!resource) return false;
73705
73837
  const currentTargets = this.resourceTargets(resourceIdArg);
73706
73838
  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;
73839
+ if (toTarget !== null && (!this.knownItemsByKey.has(itemKey2(toTarget)) || sameItem(toTarget, { kind: "resource", id: resourceIdArg }) || !this.isResourceTargetEligible(resourceIdArg, toTarget))) return false;
73708
73840
  const mode = modeArg ?? (toTarget === null ? "detach" : currentTargets.length === 0 ? "attach" : currentTargets.length === 1 ? "move" : void 0);
73709
73841
  if (!mode) return false;
73710
73842
  const explicitFrom = fromTargetArg === null || fromTargetArg === void 0 ? void 0 : itemRef(fromTargetArg);
@@ -73783,14 +73915,19 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
73783
73915
  this.resourceCloseFocus = void 0;
73784
73916
  await super.disconnectedCallback();
73785
73917
  }
73918
+ /** What the search field searches: conversations, resources, or both. */
73919
+ get searchPlaceholderKey() {
73920
+ if (this.sessions.length) return this.acceptedResources.length ? "sessionlist.searchAll" : "picker.search";
73921
+ return this.acceptedResources.length || this.attachableSessions.length ? "sessionlist.searchResources" : "picker.search";
73922
+ }
73786
73923
  render() {
73787
73924
  return b`
73788
73925
  <div class="searchRow">
73789
73926
  <div class="searchField">
73790
73927
  <dees-icon class="searchIcon" icon="lucide:Search" iconSize="13"></dees-icon>
73791
73928
  <input
73792
- placeholder=${this.t(this.acceptedResources.length ? "sessionlist.searchAll" : "picker.search")}
73793
- aria-label=${this.t(this.acceptedResources.length ? "sessionlist.searchAll" : "picker.search")}
73929
+ placeholder=${this.t(this.searchPlaceholderKey)}
73930
+ aria-label=${this.t(this.searchPlaceholderKey)}
73794
73931
  .value=${this.search}
73795
73932
  @input=${(event) => {
73796
73933
  this.search = event.currentTarget.value;
@@ -74599,12 +74736,12 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
74599
74736
  eligibleTargets(resourceIdArg) {
74600
74737
  const declared = this.eligibleTargetsByResourceId[resourceIdArg];
74601
74738
  if (!declared) return void 0;
74602
- const itemsByKey = this.itemsByKey;
74739
+ const knownItemsByKey = this.knownItemsByKey;
74603
74740
  const result = [];
74604
74741
  const seen = /* @__PURE__ */ new Set();
74605
74742
  for (const target of declared) {
74606
74743
  const key = target && itemKey2(target);
74607
- if (!key || seen.has(key) || !itemsByKey.has(key) || sameItem(target, { kind: "resource", id: resourceIdArg })) continue;
74744
+ if (!key || seen.has(key) || !knownItemsByKey.has(key) || sameItem(target, { kind: "resource", id: resourceIdArg })) continue;
74608
74745
  seen.add(key);
74609
74746
  result.push(itemRef(target));
74610
74747
  }
@@ -74655,7 +74792,7 @@ var _DeesHarnessSessionList = class _DeesHarnessSessionList extends (_a101 = Dee
74655
74792
  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
74793
  }
74657
74794
  itemTitleFor(refArg) {
74658
- return this.itemsByKey.get(itemKey2(refArg))?.title ?? refArg.id;
74795
+ return this.knownItemsByKey.get(itemKey2(refArg))?.title ?? refArg.id;
74659
74796
  }
74660
74797
  emitSession(nameArg, sessionArg) {
74661
74798
  const detail = { session: sessionArg };
@@ -74855,6 +74992,7 @@ _enableGrouping = new WeakMap();
74855
74992
  _ungroupedItemIds2 = new WeakMap();
74856
74993
  _resources3 = new WeakMap();
74857
74994
  _resourceAssociations = new WeakMap();
74995
+ _attachableSessions = new WeakMap();
74858
74996
  _selectedResourceId = new WeakMap();
74859
74997
  _eligibleTargetsByResourceId = new WeakMap();
74860
74998
  _search2 = new WeakMap();
@@ -74875,6 +75013,7 @@ __decorateElement(_init102, 4, "enableGrouping", _enableGrouping_dec, _DeesHarne
74875
75013
  __decorateElement(_init102, 4, "ungroupedItemIds", _ungroupedItemIds_dec2, _DeesHarnessSessionList, _ungroupedItemIds2);
74876
75014
  __decorateElement(_init102, 4, "resources", _resources_dec3, _DeesHarnessSessionList, _resources3);
74877
75015
  __decorateElement(_init102, 4, "resourceAssociations", _resourceAssociations_dec, _DeesHarnessSessionList, _resourceAssociations);
75016
+ __decorateElement(_init102, 4, "attachableSessions", _attachableSessions_dec, _DeesHarnessSessionList, _attachableSessions);
74878
75017
  __decorateElement(_init102, 4, "selectedResourceId", _selectedResourceId_dec, _DeesHarnessSessionList, _selectedResourceId);
74879
75018
  __decorateElement(_init102, 4, "eligibleTargetsByResourceId", _eligibleTargetsByResourceId_dec, _DeesHarnessSessionList, _eligibleTargetsByResourceId);
74880
75019
  __decorateElement(_init102, 4, "search", _search_dec2, _DeesHarnessSessionList, _search2);
@@ -116982,7 +117121,7 @@ var _DeesSimpleAppDash = class _DeesSimpleAppDash extends (_a139 = DeesElement,
116982
117121
  this.terminalOpen = true;
116983
117122
  const request = ++this.terminalRequest;
116984
117123
  try {
116985
- const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-FXF7TT4M.js");
117124
+ const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-46JECUZO.js");
116986
117125
  await this.updateComplete;
116987
117126
  if (!this.isConnected || request !== this.terminalRequest) return;
116988
117127
  const terminal = new DeesWorkspaceTerminal3();
@@ -123986,7 +124125,7 @@ var bright = {
123986
124125
  // ts_web/00_commitinfo_data.ts
123987
124126
  var commitinfo = {
123988
124127
  name: "@design.estate/dees-catalog",
123989
- version: "21.40.0",
124128
+ version: "21.41.0",
123990
124129
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
123991
124130
  };
123992
124131
  export {