@design.estate/dees-catalog 6.10.2 → 6.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_bundle/bundle.js +150 -54
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.d.ts +13 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.demo.js +17 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.js +41 -3
- package/dist_ts_web/elements/00group-harness/dees-harness-message/dees-harness-message.d.ts +2 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-message/dees-harness-message.js +13 -2
- package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.d.ts +7 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.js +33 -2
- package/dist_ts_web/elements/00group-harness/dees-harness-tool-card/dees-harness-tool-card.d.ts +4 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-tool-card/dees-harness-tool-card.js +31 -5
- package/package.json +1 -1
- package/readme.hints.md +1 -0
- package/readme.md +33 -6
- package/readme.playbook.md +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.demo.ts +17 -1
- package/ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.ts +36 -0
- package/ts_web/elements/00group-harness/dees-harness-message/dees-harness-message.ts +13 -1
- package/ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.ts +26 -0
- package/ts_web/elements/00group-harness/dees-harness-tool-card/dees-harness-tool-card.ts +24 -3
|
@@ -36,7 +36,7 @@ import type {
|
|
|
36
36
|
IDiffViewChangeDetail,
|
|
37
37
|
TDiffView,
|
|
38
38
|
} from '../../00group-dataview/dees-dataview-codebox/dees-dataview-codebox.js';
|
|
39
|
-
import '../dees-harness-content-blocks/dees-harness-content-blocks.js';
|
|
39
|
+
import { DeesHarnessContentBlocks } from '../dees-harness-content-blocks/dees-harness-content-blocks.js';
|
|
40
40
|
import '../dees-harness-overflow-text.js';
|
|
41
41
|
import '../../00group-dataview/dees-dataview-codebox/dees-dataview-codebox.js';
|
|
42
42
|
import './dees-harness-tool-fullscreen.js';
|
|
@@ -70,6 +70,10 @@ export class DeesHarnessToolCard extends DeesElement {
|
|
|
70
70
|
@property({ type: Boolean })
|
|
71
71
|
accessor allowSubtaskStreams: boolean = true;
|
|
72
72
|
|
|
73
|
+
/** Parse markdown during active child streams; disable to parse only at message end. */
|
|
74
|
+
@property({ type: Boolean })
|
|
75
|
+
accessor markdownWhileStreaming: boolean = true;
|
|
76
|
+
|
|
73
77
|
@property({ attribute: false })
|
|
74
78
|
accessor viewState: IHarnessMessageViewState | undefined = undefined;
|
|
75
79
|
|
|
@@ -820,7 +824,7 @@ export class DeesHarnessToolCard extends DeesElement {
|
|
|
820
824
|
// Appended to document.body: content-visibility containment in the
|
|
821
825
|
// transcript would trap a position: fixed layer inside this card.
|
|
822
826
|
const portal = document.createElement('dees-harness-tool-fullscreen');
|
|
823
|
-
portal.call = this.
|
|
827
|
+
portal.call = this.call;
|
|
824
828
|
portal.toolRegistry = this.toolRegistry;
|
|
825
829
|
portal.addEventListener('tool-fullscreen-close', this.closeFullscreen, { once: true });
|
|
826
830
|
document.body.append(portal);
|
|
@@ -954,7 +958,7 @@ export class DeesHarnessToolCard extends DeesElement {
|
|
|
954
958
|
});
|
|
955
959
|
if (this.isOpen && !this.bodyMounted) this.bodyMounted = true;
|
|
956
960
|
if (changedProperties.has('call') && this.fullscreenPortal) {
|
|
957
|
-
this.fullscreenPortal.call = this.
|
|
961
|
+
this.fullscreenPortal.call = this.call;
|
|
958
962
|
}
|
|
959
963
|
this.connectSubtaskResultScroll();
|
|
960
964
|
if (!this.isOpen || this.uncapped || this.hasSubtaskPreview) {
|
|
@@ -1172,6 +1176,7 @@ export class DeesHarnessToolCard extends DeesElement {
|
|
|
1172
1176
|
.toolRegistry=${this.toolRegistry}
|
|
1173
1177
|
.viewState=${this.viewState?.subtaskTranscript}
|
|
1174
1178
|
.allowSubtaskStreams=${false}
|
|
1179
|
+
.markdownWhileStreaming=${this.markdownWhileStreaming}
|
|
1175
1180
|
.autoFollow=${this.isOpen}
|
|
1176
1181
|
.hideScrollbar=${true}
|
|
1177
1182
|
.fadeScrollEdges=${true}
|
|
@@ -1234,6 +1239,22 @@ export class DeesHarnessToolCard extends DeesElement {
|
|
|
1234
1239
|
return true;
|
|
1235
1240
|
}
|
|
1236
1241
|
|
|
1242
|
+
/** Re-renders this card after its host mutates the shared call object in place. */
|
|
1243
|
+
public refreshCall(): void {
|
|
1244
|
+
this.requestUpdate();
|
|
1245
|
+
const contentBlocks = this.shadowRoot?.querySelector('dees-harness-content-blocks');
|
|
1246
|
+
if (contentBlocks instanceof DeesHarnessContentBlocks) contentBlocks.requestUpdate();
|
|
1247
|
+
const nestedList = this.shadowRoot?.querySelector('.subtaskPreview > dees-harness-message-list');
|
|
1248
|
+
if (nestedList instanceof DeesHarnessMessageList) nestedList.refreshMessages();
|
|
1249
|
+
if (this.fullscreenPortal) {
|
|
1250
|
+
this.fullscreenPortal.requestUpdate();
|
|
1251
|
+
const fullscreenCard = this.fullscreenPortal.shadowRoot?.querySelector(
|
|
1252
|
+
'dees-harness-tool-card',
|
|
1253
|
+
);
|
|
1254
|
+
if (fullscreenCard instanceof DeesHarnessToolCard) fullscreenCard.refreshCall();
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1237
1258
|
private createHelpers(): IHarnessToolRenderHelpers {
|
|
1238
1259
|
return {
|
|
1239
1260
|
codeBlock: (code, language, filename) => html`
|