@design.estate/dees-catalog 24.1.0 → 24.3.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 +7274 -5319
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-fit-XY7VCF6W.js → addon-fit-RDDY6CA4.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-search-OQXRIIMV.js → addon-search-UT4OBXLU.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-serialize-BV6MHBIQ.js → addon-serialize-U4KTWHZ2.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-web-links-IYKN5JS7.js → addon-web-links-QMZRXLUR.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-FUMEXHR4.js → chunk-4UZGSPGV.js} +39 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-FUMEXHR4.js.map → chunk-4UZGSPGV.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-K2UNUD5D.js → chunk-7CM7S6EQ.js} +19 -19
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-MV6OSXZD.js → chunk-AR2XNHGF.js} +2 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-NFVJ3L3L.js → chunk-LFHMAQWF.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-4DJP4JAJ.js → chunk-OPVBP4HP.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-BTYTET7H.js → chunk-R6EBIDCM.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-XE2K545Z.js → de-LD3JG4AD.js} +35 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-LD3JG4AD.js.map +1 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-IIOB2SYP.js → dees-modal-Z3DSEMNI.js} +4 -4
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-EEY5WEF4.js → dees-workspace-terminal-KPB3RVGL.js} +5 -5
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-2OQWGHFH.js → dist-2U2U7ROC.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-CRWOBKHW.js → dist-4S4PAFPC.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-J3O6DO5O.js → dist-5P27Y36A.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-IIHC67RE.js → dist-6GIZONLS.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-ERBPCUJB.js → dist-CRHDJ3CC.js} +4 -4
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-3OMAY2ID.js → dist-OASEKGFQ.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-FJCH275Q.js → dist-UJJOGV5H.js} +4 -4
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{echarts-Z2APN5DY.js → echarts-QMOTMVTN.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/es-J75P6Y7U.js +1461 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/es-J75P6Y7U.js.map +1 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/fr-FXZISX5I.js +1461 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/fr-FXZISX5I.js.map +1 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{highlightjs-2VS4UD5C.js → highlightjs-CH6EL3U4.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{lightweight-charts.production-BYPU2BNH.js → lightweight-charts.production-VKUEJKDY.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{xterm-44R3YQOT.js → xterm-KAKUMKDA.js} +2 -2
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-appui/appui.helpers.d.ts +6 -0
- package/dist_ts_web/elements/00group-appui/appui.helpers.js +7 -1
- package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.js +7 -10
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.d.ts +88 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.demo.d.ts +34 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.demo.js +317 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.js +510 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/index.js +2 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.d.ts +43 -17
- package/dist_ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.demo.d.ts +2 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.demo.js +28 -3
- package/dist_ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.js +113 -152
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.d.ts +68 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.demo.d.ts +4 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.demo.js +57 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.js +357 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/index.js +2 -0
- package/dist_ts_web/elements/00group-appui/index.d.ts +2 -0
- package/dist_ts_web/elements/00group-appui/index.js +3 -1
- package/dist_ts_web/elements/00group-dataview/dees-table/styles.js +1 -1
- package/dist_ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.demo.js +6 -6
- package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.d.ts +7 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.js +17 -2
- package/dist_ts_web/elements/00group-harness/dees-harness-elicitation-card/dees-harness-elicitation-card.d.ts +79 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-elicitation-card/dees-harness-elicitation-card.demo.d.ts +1 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-elicitation-card/dees-harness-elicitation-card.demo.js +87 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-elicitation-card/dees-harness-elicitation-card.js +995 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-elicitation-card/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-elicitation-card/index.js +2 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.d.ts +14 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.js +60 -5
- package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.d.ts +9 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.demo.js +25 -3
- package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.js +57 -5
- package/dist_ts_web/elements/00group-harness/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-harness/index.js +2 -1
- package/dist_ts_web/elements/00group-harness/interfaces.d.ts +141 -0
- package/dist_ts_web/elements/00group-media/dees-pdf-viewer/component.d.ts +10 -0
- package/dist_ts_web/elements/00group-media/dees-pdf-viewer/component.js +38 -6
- package/dist_ts_web/elements/00group-media/dees-pdf-viewer/styles.js +4 -1
- package/dist_ts_web/i18n/de.d.ts +128 -0
- package/dist_ts_web/i18n/de.js +33 -1
- package/dist_ts_web/i18n/es.d.ts +5780 -0
- package/dist_ts_web/i18n/es.js +1452 -0
- package/dist_ts_web/i18n/fr.d.ts +5780 -0
- package/dist_ts_web/i18n/fr.js +1452 -0
- package/dist_ts_web/i18n/messages.d.ts +129 -1
- package/dist_ts_web/i18n/messages.js +38 -2
- package/package.json +3 -3
- package/readme.md +178 -21
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-appui/appui.helpers.ts +7 -0
- package/ts_web/elements/00group-appui/dees-appui/dees-appui.ts +6 -10
- package/ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.demo.ts +267 -0
- package/ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.ts +451 -0
- package/ts_web/elements/00group-appui/dees-appui-detailpane/index.ts +1 -0
- package/ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.demo.ts +30 -2
- package/ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.ts +113 -148
- package/ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.demo.ts +62 -0
- package/ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.ts +299 -0
- package/ts_web/elements/00group-appui/dees-appui-secondarytabs/index.ts +1 -0
- package/ts_web/elements/00group-appui/index.ts +2 -0
- package/ts_web/elements/00group-dataview/dees-table/styles.ts +1 -1
- package/ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.demo.ts +5 -5
- package/ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.ts +11 -0
- package/ts_web/elements/00group-harness/dees-harness-elicitation-card/dees-harness-elicitation-card.demo.ts +100 -0
- package/ts_web/elements/00group-harness/dees-harness-elicitation-card/dees-harness-elicitation-card.ts +997 -0
- package/ts_web/elements/00group-harness/dees-harness-elicitation-card/index.ts +1 -0
- package/ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.ts +62 -2
- package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.demo.ts +24 -2
- package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.ts +57 -4
- package/ts_web/elements/00group-harness/index.ts +1 -0
- package/ts_web/elements/00group-harness/interfaces.ts +172 -0
- package/ts_web/elements/00group-media/dees-pdf-viewer/component.ts +37 -5
- package/ts_web/elements/00group-media/dees-pdf-viewer/styles.ts +3 -0
- package/ts_web/i18n/de.ts +32 -0
- package/ts_web/i18n/es.ts +1452 -0
- package/ts_web/i18n/fr.ts +1452 -0
- package/ts_web/i18n/messages.ts +38 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-XE2K545Z.js.map +0 -1
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-fit-XY7VCF6W.js.map → addon-fit-RDDY6CA4.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-search-OQXRIIMV.js.map → addon-search-UT4OBXLU.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-serialize-BV6MHBIQ.js.map → addon-serialize-U4KTWHZ2.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-web-links-IYKN5JS7.js.map → addon-web-links-QMZRXLUR.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-K2UNUD5D.js.map → chunk-7CM7S6EQ.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-MV6OSXZD.js.map → chunk-AR2XNHGF.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-NFVJ3L3L.js.map → chunk-LFHMAQWF.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-4DJP4JAJ.js.map → chunk-OPVBP4HP.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-BTYTET7H.js.map → chunk-R6EBIDCM.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-IIOB2SYP.js.map → dees-modal-Z3DSEMNI.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-EEY5WEF4.js.map → dees-workspace-terminal-KPB3RVGL.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-2OQWGHFH.js.map → dist-2U2U7ROC.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-CRWOBKHW.js.map → dist-4S4PAFPC.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-J3O6DO5O.js.map → dist-5P27Y36A.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-IIHC67RE.js.map → dist-6GIZONLS.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-3OMAY2ID.js.map → dist-CRHDJ3CC.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-ERBPCUJB.js.map → dist-OASEKGFQ.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-FJCH275Q.js.map → dist-UJJOGV5H.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{echarts-Z2APN5DY.js.map → echarts-QMOTMVTN.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{highlightjs-2VS4UD5C.js.map → highlightjs-CH6EL3U4.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{lightweight-charts.production-BYPU2BNH.js.map → lightweight-charts.production-VKUEJKDY.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{xterm-44R3YQOT.js.map → xterm-KAKUMKDA.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dees-harness-elicitation-card.js';
|
package/ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { OverlayScrollbarController, overlayScrollbarStyles } from '../../00scro
|
|
|
17
17
|
import { scrollEdgeFadeStyles } from '../../00scrolledges.js';
|
|
18
18
|
import { visuallyHidden } from '../../00visuallyhidden.js';
|
|
19
19
|
import type {
|
|
20
|
+
IHarnessElicitationRequest,
|
|
20
21
|
IHarnessMessage,
|
|
21
22
|
IHarnessMessageViewState,
|
|
22
23
|
IHarnessPermissionRequest,
|
|
@@ -46,6 +47,7 @@ import { harnessTextRollDurationMs, harnessTextRollEasing } from '../harness.tex
|
|
|
46
47
|
import { DeesHarnessWorkRun } from '../dees-harness-work-run/dees-harness-work-run.js';
|
|
47
48
|
import type { DeesHarnessQuestionCard } from '../dees-harness-question-card/dees-harness-question-card.js';
|
|
48
49
|
import '../dees-harness-question-card/dees-harness-question-card.js';
|
|
50
|
+
import '../dees-harness-elicitation-card/dees-harness-elicitation-card.js';
|
|
49
51
|
import '../../00group-utility/dees-icon/dees-icon.js';
|
|
50
52
|
|
|
51
53
|
const { repeat } = directives;
|
|
@@ -210,6 +212,13 @@ type TTimelineItem =
|
|
|
210
212
|
insertionIndex: number;
|
|
211
213
|
key: string;
|
|
212
214
|
question: IHarnessQuestionRequest;
|
|
215
|
+
}
|
|
216
|
+
| {
|
|
217
|
+
kind: 'elicitation';
|
|
218
|
+
time: number;
|
|
219
|
+
insertionIndex: number;
|
|
220
|
+
key: string;
|
|
221
|
+
elicitation: IHarnessElicitationRequest;
|
|
213
222
|
};
|
|
214
223
|
|
|
215
224
|
/**
|
|
@@ -251,6 +260,14 @@ export class DeesHarnessMessageList extends DeesElement {
|
|
|
251
260
|
@property({ attribute: false })
|
|
252
261
|
accessor questions: IHarnessQuestionRequest[] = [];
|
|
253
262
|
|
|
263
|
+
/**
|
|
264
|
+
* what MCP servers of the session ask the owner for, each pinned to the end while the host
|
|
265
|
+
* keeps it; a card stays mounted while its request does, since what the owner entered lives in
|
|
266
|
+
* the card alone
|
|
267
|
+
*/
|
|
268
|
+
@property({ attribute: false })
|
|
269
|
+
accessor elicitations: IHarnessElicitationRequest[] = [];
|
|
270
|
+
|
|
254
271
|
@property({ type: Boolean, reflect: true })
|
|
255
272
|
accessor autoFollow: boolean = true;
|
|
256
273
|
|
|
@@ -788,6 +805,16 @@ export class DeesHarnessMessageList extends DeesElement {
|
|
|
788
805
|
question,
|
|
789
806
|
});
|
|
790
807
|
}
|
|
808
|
+
// an elicitation waits for the owner as long as the host keeps it: it pins to the end
|
|
809
|
+
for (const elicitation of this.elicitations) {
|
|
810
|
+
items.push({
|
|
811
|
+
kind: 'elicitation' as const,
|
|
812
|
+
time: pinnedRequestTime,
|
|
813
|
+
insertionIndex: items.length,
|
|
814
|
+
key: `elicitation:${elicitation.id}`,
|
|
815
|
+
elicitation,
|
|
816
|
+
});
|
|
817
|
+
}
|
|
791
818
|
items.sort(byTimelineOrder);
|
|
792
819
|
|
|
793
820
|
// Keep ancillary and legacy-producer chronology fixed, then replace only
|
|
@@ -849,6 +876,7 @@ export class DeesHarnessMessageList extends DeesElement {
|
|
|
849
876
|
|| changedProperties.has('messages')
|
|
850
877
|
|| changedProperties.has('permissions')
|
|
851
878
|
|| changedProperties.has('questions')
|
|
879
|
+
|| changedProperties.has('elicitations')
|
|
852
880
|
|| changedProperties.has('toolRegistry')
|
|
853
881
|
|| changedProperties.has('viewState')
|
|
854
882
|
|| changedProperties.has('transcriptKey')
|
|
@@ -1129,6 +1157,7 @@ export class DeesHarnessMessageList extends DeesElement {
|
|
|
1129
1157
|
private estimatedVirtualHeight(itemArg: TTimelineItem): number {
|
|
1130
1158
|
if (itemArg.kind === 'permission') return 150;
|
|
1131
1159
|
if (itemArg.kind === 'question') return 180;
|
|
1160
|
+
if (itemArg.kind === 'elicitation') return 240;
|
|
1132
1161
|
if (itemArg.kind === 'work') {
|
|
1133
1162
|
if (!this.workRunOpen(itemArg)) return toolRowHeightPx;
|
|
1134
1163
|
return itemArg.items.reduce(
|
|
@@ -1405,6 +1434,20 @@ export class DeesHarnessMessageList extends DeesElement {
|
|
|
1405
1434
|
></dees-harness-permission-card>
|
|
1406
1435
|
`;
|
|
1407
1436
|
}
|
|
1437
|
+
if (itemArg.kind === 'elicitation') {
|
|
1438
|
+
return html`
|
|
1439
|
+
<dees-harness-elicitation-card
|
|
1440
|
+
data-timeline-key=${itemArg.key}
|
|
1441
|
+
?data-entering=${this.rendersOwnMotion(this.enteringKeys.has(itemArg.key))}
|
|
1442
|
+
@animationend=${this.handleRowMotionEnd}
|
|
1443
|
+
@animationcancel=${this.handleRowMotionEnd}
|
|
1444
|
+
aria-posinset=${logicalIndexArg + 1}
|
|
1445
|
+
aria-setsize=${this.timelineRenderItems.length}
|
|
1446
|
+
.request=${itemArg.elicitation}
|
|
1447
|
+
.busy=${this.permissionsBusy}
|
|
1448
|
+
></dees-harness-elicitation-card>
|
|
1449
|
+
`;
|
|
1450
|
+
}
|
|
1408
1451
|
return html`
|
|
1409
1452
|
<dees-harness-question-card
|
|
1410
1453
|
data-timeline-key=${itemArg.key}
|
|
@@ -2227,7 +2270,13 @@ export class DeesHarnessMessageList extends DeesElement {
|
|
|
2227
2270
|
else this.setProgrammaticScrollTop(container, 0);
|
|
2228
2271
|
}
|
|
2229
2272
|
}
|
|
2230
|
-
if (
|
|
2273
|
+
if (
|
|
2274
|
+
changedProperties.has('messages')
|
|
2275
|
+
|| changedProperties.has('status')
|
|
2276
|
+
|| changedProperties.has('permissions')
|
|
2277
|
+
|| changedProperties.has('questions')
|
|
2278
|
+
|| changedProperties.has('elicitations')
|
|
2279
|
+
) {
|
|
2231
2280
|
this.followAfterContentChange();
|
|
2232
2281
|
}
|
|
2233
2282
|
if (changedProperties.has('autoFollow')) {
|
|
@@ -2242,6 +2291,7 @@ export class DeesHarnessMessageList extends DeesElement {
|
|
|
2242
2291
|
|| changedProperties.has('messages')
|
|
2243
2292
|
|| changedProperties.has('permissions')
|
|
2244
2293
|
|| changedProperties.has('questions')
|
|
2294
|
+
|| changedProperties.has('elicitations')
|
|
2245
2295
|
) this.syncScrollEdgeFades();
|
|
2246
2296
|
if (this.virtualizationActive) {
|
|
2247
2297
|
this.connectVirtualObservers();
|
|
@@ -2551,12 +2601,22 @@ export class DeesHarnessMessageList extends DeesElement {
|
|
|
2551
2601
|
...(focusKey ? [focusKey] : []),
|
|
2552
2602
|
...this.activeSelectionKeys(),
|
|
2553
2603
|
...this.heldQuestionKeys,
|
|
2604
|
+
...this.elicitationKeys(),
|
|
2554
2605
|
].filter((key, index, keys) => keys.indexOf(key) === index);
|
|
2555
2606
|
}
|
|
2556
2607
|
|
|
2608
|
+
/**
|
|
2609
|
+
* The rows of the elicitations the host keeps: what the owner entered lives in their cards
|
|
2610
|
+
* alone, so they stay mounted while their request does, however far the reader scrolls, and the
|
|
2611
|
+
* transcript holds a change between flowed and virtual rows until they are gone.
|
|
2612
|
+
*/
|
|
2613
|
+
private elicitationKeys(): string[] {
|
|
2614
|
+
return this.elicitations.map((request) => `elicitation:${request.id}`);
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2557
2617
|
private activeTimelineKey(): string | undefined {
|
|
2558
2618
|
if (this.explicitRetainedVirtualKey) return this.explicitRetainedVirtualKey;
|
|
2559
|
-
return this.activeFocusKey() ?? this.activeSelectionKeys()[0];
|
|
2619
|
+
return this.activeFocusKey() ?? this.activeSelectionKeys()[0] ?? this.elicitationKeys()[0];
|
|
2560
2620
|
}
|
|
2561
2621
|
|
|
2562
2622
|
private activeFocusKey(): string | undefined {
|
package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.demo.ts
CHANGED
|
@@ -21,7 +21,7 @@ const demoRows = (): IHarnessSessionRow[] => {
|
|
|
21
21
|
tickets: [ticket('AGL-136', 'Session list for every harness'), ticket('AGL-135', 'One list of all sessions')] },
|
|
22
22
|
{ id: 'cad', harness: 'codex', state: 'needs_input', name: 'Move cad chat to the resource list', updatedAt: now - 9 * minute,
|
|
23
23
|
excerpt: 'cad-chat renders conversations it arranges itself. Keep the resource list there?',
|
|
24
|
-
tickets: [ticket('CAD-41', 'Adopt dees-catalog 22')] },
|
|
24
|
+
tickets: [ticket('CAD-41', 'Adopt dees-catalog 22')], nativeWait: { reason: 'approval' } },
|
|
25
25
|
{ id: 'feed', harness: 'claude', state: 'working', name: 'Controller feed for session rows', updatedAt: now - 20_000,
|
|
26
26
|
excerpt: 'Mapping Codex thread states onto needs input, working and completed…',
|
|
27
27
|
tickets: [ticket('AGL-137', 'Feed the session list')] },
|
|
@@ -60,8 +60,9 @@ const demoRows = (): IHarnessSessionRow[] => {
|
|
|
60
60
|
state: 'completed',
|
|
61
61
|
name,
|
|
62
62
|
updatedAt: now - (55 + index * 47) * minute,
|
|
63
|
-
excerpt: 'Done. The changes are committed and the checks passed.',
|
|
63
|
+
excerpt: index === 1 ? 'Stopped while drafting the second chapter.' : 'Done. The changes are committed and the checks passed.',
|
|
64
64
|
tickets: key ? [ticket(key, name)] : undefined,
|
|
65
|
+
interrupted: index === 1 ? true : undefined,
|
|
65
66
|
})),
|
|
66
67
|
];
|
|
67
68
|
};
|
|
@@ -178,6 +179,24 @@ class DeesDemoSessionOverview extends DeesElement {
|
|
|
178
179
|
updatedAt: Date.now() - (index + 1) * 4 * minute,
|
|
179
180
|
}))
|
|
180
181
|
));
|
|
182
|
+
const notes: IHarnessSessionRow[] = [
|
|
183
|
+
{ id: 'wait-approval', harness: 'codex', state: 'needs_input', name: 'Rotate the staging keys', updatedAt: Date.now() - minute,
|
|
184
|
+
nativeWait: { reason: 'approval' } },
|
|
185
|
+
{ id: 'wait-input', harness: 'codex', state: 'needs_input', name: 'Pick the release channel', updatedAt: Date.now() - 2 * minute,
|
|
186
|
+
nativeWait: { reason: 'user_input' } },
|
|
187
|
+
{ id: 'wait-prompt', harness: 'claude', state: 'needs_input', name: 'Trust the new checkout', updatedAt: Date.now() - 3 * minute,
|
|
188
|
+
nativeWait: { reason: 'native_prompt' } },
|
|
189
|
+
{ id: 'wait-unknown', harness: 'codex', state: 'needs_input', name: 'Migrate the build cache', updatedAt: Date.now() - 4 * minute,
|
|
190
|
+
nativeWait: { reason: 'unrecognized' } },
|
|
191
|
+
{ id: 'asks-here', harness: 'claude', state: 'needs_input', name: 'Release the major now?', updatedAt: Date.now() - 5 * minute },
|
|
192
|
+
{ id: 'working-wait', harness: 'codex', state: 'working', name: 'Reads the logs (its wait is ignored)', updatedAt: Date.now() - 6 * minute,
|
|
193
|
+
nativeWait: { reason: 'approval' } },
|
|
194
|
+
{ id: 'interrupted', harness: 'claude', state: 'completed', name: 'Draft the migration guide', updatedAt: Date.now() - 20 * minute,
|
|
195
|
+
interrupted: true },
|
|
196
|
+
{ id: 'finished', harness: 'flex', state: 'completed', name: 'Summarise the invoices', updatedAt: Date.now() - 30 * minute },
|
|
197
|
+
{ id: 'failed-interrupted', harness: 'opencode', state: 'failed', name: 'Upgrade the bundler (interrupted is ignored)', updatedAt: Date.now() - 40 * minute,
|
|
198
|
+
interrupted: true },
|
|
199
|
+
];
|
|
181
200
|
return html`
|
|
182
201
|
${demoSection('At sidebar width', 'Every session of every harness in one list, grouped by state. Completed shows its newest three; the rest fold behind “… N more”. Step through what a feed reports and watch rows move between groups.', html`
|
|
183
202
|
<div class="toolbar">
|
|
@@ -197,6 +216,9 @@ class DeesDemoSessionOverview extends DeesElement {
|
|
|
197
216
|
<div class="frame sidebar"><dees-harness-session-list data-motion .rows=${oneOfEach} .completedLimit=${4}></dees-harness-session-list></div>
|
|
198
217
|
<p class="dees-demo-caption">With reduced motion set in the system, the marks keep their colours and stop moving; the button applies the same rule to this example.</p>
|
|
199
218
|
`)}
|
|
219
|
+
${demoSection('Answer in the native client, interrupted', 'A session that waits on something only its own app can answer, such as an approval in Codex or a prompt in Claude Code, says where to answer it after its name; one that waits on a request the host holds says nothing more. A completed session whose last turn was interrupted says so. Each note shows only in its group: a working or failed row ignores both.', html`
|
|
220
|
+
<div class="frame sidebar"><dees-harness-session-list .rows=${notes} .completedLimit=${4}></dees-harness-session-list></div>
|
|
221
|
+
`)}
|
|
200
222
|
${demoSection('Loading', 'The first load draws placeholder rows on the columns and heights of the rows that replace them, so nothing moves when the feed answers. They appear only after 200 ms, so a quick load never flashes them; after 10 s the list says it is still loading and the placeholders hold still. Rows already on show stay while more load. Assistive technology hears one loading status; the placeholders are hidden from it.', html`
|
|
201
223
|
<div class="toolbar">
|
|
202
224
|
<dees-button size="sm" .pressed=${this.loadOn} @clicked=${() => this.loadOn ? this.finishLoad() : this.load(undefined)}>Loading</dees-button>
|
package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.ts
CHANGED
|
@@ -75,7 +75,9 @@ interface IFocusStop {
|
|
|
75
75
|
* on a tinted tile and a bolder name, still; working: a slow pulse; failed: red; completed: muted
|
|
76
76
|
* and still), the name, the first ticket as a chip ("+N" for more), and the age. The latest
|
|
77
77
|
* message excerpt joins the line only
|
|
78
|
-
* while the list's own container is wide.
|
|
78
|
+
* while the list's own container is wide. A row that needs input only its native client can take
|
|
79
|
+
* (`nativeWait`) says where to give it after its name, and a completed row whose last turn was
|
|
80
|
+
* interrupted (`interrupted`) says so; a row in any other state ignores both. Every row of every group shares one set of column tracks,
|
|
79
81
|
* so names, excerpts, chips and ages each start on one edge; the name column is as wide as the
|
|
80
82
|
* longest name up to `--dees-harness-session-name-max` (20rem), and longer names end in an
|
|
81
83
|
* ellipsis. Under reduced motion the indicator keeps its colour and stops moving.
|
|
@@ -264,7 +266,8 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
264
266
|
grid-column: glyph / age;
|
|
265
267
|
}
|
|
266
268
|
|
|
267
|
-
.row:not(:has(.ticket)) .name
|
|
269
|
+
.row:not(:has(.ticket)) .name,
|
|
270
|
+
.row:not(:has(.ticket)) .nameCell {
|
|
268
271
|
grid-column: name / age;
|
|
269
272
|
}
|
|
270
273
|
|
|
@@ -323,6 +326,40 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
323
326
|
font-weight: 600;
|
|
324
327
|
}
|
|
325
328
|
|
|
329
|
+
/*
|
|
330
|
+
* A row's note after its name: the name gives way first and keeps a few characters, and the
|
|
331
|
+
* note takes the rest of the cell it needs. The cell takes the name's column, as the name
|
|
332
|
+
* does alone.
|
|
333
|
+
*/
|
|
334
|
+
.nameCell {
|
|
335
|
+
display: flex;
|
|
336
|
+
align-items: baseline;
|
|
337
|
+
gap: var(--dees-spacing-xs);
|
|
338
|
+
min-width: 0;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.nameCell .name {
|
|
342
|
+
flex: 0 1 auto;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.rowNote {
|
|
346
|
+
flex: 0 0 auto;
|
|
347
|
+
max-width: calc(100% - 4ch);
|
|
348
|
+
overflow: hidden;
|
|
349
|
+
font-size: var(--dees-font-caption1-size);
|
|
350
|
+
text-overflow: ellipsis;
|
|
351
|
+
white-space: nowrap;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.rowNote.nativeWait {
|
|
355
|
+
color: var(--session-needs-input);
|
|
356
|
+
font-weight: 500;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.rowNote.interrupted {
|
|
360
|
+
color: var(--dees-color-text-muted);
|
|
361
|
+
}
|
|
362
|
+
|
|
326
363
|
.excerpt {
|
|
327
364
|
display: none;
|
|
328
365
|
min-width: 0;
|
|
@@ -534,7 +571,8 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
534
571
|
display: block;
|
|
535
572
|
}
|
|
536
573
|
|
|
537
|
-
.row:not(:has(.ticket)) .name
|
|
574
|
+
.row:not(:has(.ticket)) .name,
|
|
575
|
+
.row:not(:has(.ticket)) .nameCell {
|
|
538
576
|
grid-column: name;
|
|
539
577
|
}
|
|
540
578
|
|
|
@@ -761,7 +799,7 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
761
799
|
>
|
|
762
800
|
<dees-icon icon=${glyph} iconSize="14" aria-hidden="true"></dees-icon>
|
|
763
801
|
</span>
|
|
764
|
-
|
|
802
|
+
${this.renderName(rowArg, harnessName)}
|
|
765
803
|
${rowArg.excerpt ? html`<span class="excerpt">${rowArg.excerpt}</span>` : ''}
|
|
766
804
|
</button>
|
|
767
805
|
${firstTicket
|
|
@@ -795,6 +833,21 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
795
833
|
`;
|
|
796
834
|
}
|
|
797
835
|
|
|
836
|
+
/**
|
|
837
|
+
* The row's name, and after it the note its state takes: where a needs-input row's native client
|
|
838
|
+
* waits for the answer, or that a completed row's last turn was interrupted. A row without one
|
|
839
|
+
* renders its name alone, as before notes existed.
|
|
840
|
+
*/
|
|
841
|
+
private renderName(rowArg: IHarnessSessionRow, harnessNameArg: string): TemplateResult {
|
|
842
|
+
const name = html`<span class="name" title=${rowArg.name}>${rowArg.name}</span>`;
|
|
843
|
+
const note = rowArg.state === 'needs_input' && rowArg.nativeWait
|
|
844
|
+
? html`<span class="rowNote nativeWait">${this.t('sessionlist.nativeWait', { reason: rowArg.nativeWait.reason, harness: harnessNameArg })}</span>`
|
|
845
|
+
: rowArg.state === 'completed' && rowArg.interrupted === true
|
|
846
|
+
? html`<span class="rowNote interrupted">${this.t('sessionlist.interrupted')}</span>`
|
|
847
|
+
: undefined;
|
|
848
|
+
return note ? html`<span class="nameCell">${name} ${note}</span>` : name;
|
|
849
|
+
}
|
|
850
|
+
|
|
798
851
|
private select(rowArg: IHarnessSessionRow): void {
|
|
799
852
|
this.activeKey = rowArg.id;
|
|
800
853
|
const detail: IHarnessSessionRowEventDetail = { row: rowArg };
|
|
@@ -13,6 +13,7 @@ export * from './dees-harness-chat/index.js';
|
|
|
13
13
|
export * from './dees-harness-composer/index.js';
|
|
14
14
|
export * from './dees-harness-content-blocks/index.js';
|
|
15
15
|
export * from './dees-harness-conversation-picker/index.js';
|
|
16
|
+
export * from './dees-harness-elicitation-card/index.js';
|
|
16
17
|
export * from './dees-harness-message/index.js';
|
|
17
18
|
export * from './dees-harness-permission-card/index.js';
|
|
18
19
|
export * from './dees-harness-question-card/index.js';
|
|
@@ -720,6 +720,159 @@ export interface IHarnessPermissionResponseDetail {
|
|
|
720
720
|
request: IHarnessPermissionRequest;
|
|
721
721
|
}
|
|
722
722
|
|
|
723
|
+
// ------------------------------------------------------------ elicitations
|
|
724
|
+
|
|
725
|
+
/** The string formats MCP names for a text field; the card checks a value against its format before it sends it. */
|
|
726
|
+
export type THarnessElicitationTextFormat = 'email' | 'uri' | 'date' | 'date-time';
|
|
727
|
+
|
|
728
|
+
interface IHarnessElicitationFieldBase {
|
|
729
|
+
/** the property name the answer carries the value under */
|
|
730
|
+
name: string;
|
|
731
|
+
/** the field's label; unset, its `name` */
|
|
732
|
+
title?: string;
|
|
733
|
+
description?: string;
|
|
734
|
+
/** the answer must carry a value for it */
|
|
735
|
+
required: boolean;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
/** Text, checked against its `format` and its lengths before it is sent. */
|
|
739
|
+
export interface IHarnessElicitationTextField extends IHarnessElicitationFieldBase {
|
|
740
|
+
kind: 'text';
|
|
741
|
+
format?: THarnessElicitationTextFormat;
|
|
742
|
+
/** in characters (Unicode code points), as JSON Schema counts them, not in UTF-16 code units */
|
|
743
|
+
minLength?: number;
|
|
744
|
+
maxLength?: number;
|
|
745
|
+
default?: string;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/** A number, sent as a number. */
|
|
749
|
+
export interface IHarnessElicitationNumberField extends IHarnessElicitationFieldBase {
|
|
750
|
+
kind: 'number';
|
|
751
|
+
/** whole numbers only (JSON Schema `integer`) */
|
|
752
|
+
integer: boolean;
|
|
753
|
+
/** inclusive bounds */
|
|
754
|
+
minimum?: number;
|
|
755
|
+
maximum?: number;
|
|
756
|
+
default?: number;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/** A yes or no, sent as a boolean. */
|
|
760
|
+
export interface IHarnessElicitationBooleanField extends IHarnessElicitationFieldBase {
|
|
761
|
+
kind: 'boolean';
|
|
762
|
+
default?: boolean;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/** One choice: the value the answer carries, and the label the card shows for it. */
|
|
766
|
+
export interface IHarnessElicitationOption {
|
|
767
|
+
value: string;
|
|
768
|
+
label: string;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
/** A single choice among strings, sent as the chosen option's `value`. */
|
|
772
|
+
export interface IHarnessElicitationChoiceField extends IHarnessElicitationFieldBase {
|
|
773
|
+
kind: 'choice';
|
|
774
|
+
options: IHarnessElicitationOption[];
|
|
775
|
+
default?: string;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
/** Several choices among strings, each at most once, sent as the chosen options' values in the order listed. */
|
|
779
|
+
export interface IHarnessElicitationChoicesField extends IHarnessElicitationFieldBase {
|
|
780
|
+
kind: 'choices';
|
|
781
|
+
options: IHarnessElicitationOption[];
|
|
782
|
+
minItems?: number;
|
|
783
|
+
maxItems?: number;
|
|
784
|
+
default?: string[];
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
/** A field of an elicitation form: MCP's flat primitive subset. */
|
|
788
|
+
export type THarnessElicitationField =
|
|
789
|
+
| IHarnessElicitationTextField
|
|
790
|
+
| IHarnessElicitationNumberField
|
|
791
|
+
| IHarnessElicitationBooleanField
|
|
792
|
+
| IHarnessElicitationChoiceField
|
|
793
|
+
| IHarnessElicitationChoicesField;
|
|
794
|
+
|
|
795
|
+
/** A value of a form's field: text or a single choice, a number, a yes or no, or several choices. */
|
|
796
|
+
export type THarnessElicitationValue = string | number | boolean | string[];
|
|
797
|
+
|
|
798
|
+
/** A form's answer: one value per field the owner filled in, by field name; a field left empty is absent. */
|
|
799
|
+
export type THarnessElicitationContent = Record<string, THarnessElicitationValue>;
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Why the host refused the owner's last answer, in the host's words: under the field it names
|
|
803
|
+
* (`field`, a field's `name`), or over the form. Never a value the owner entered.
|
|
804
|
+
*/
|
|
805
|
+
export interface IHarnessElicitationRefusal {
|
|
806
|
+
field?: string;
|
|
807
|
+
reason: string;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
interface IHarnessElicitationRequestBase {
|
|
811
|
+
id: string;
|
|
812
|
+
/** the MCP server that asks, as the harness names it */
|
|
813
|
+
serverName: string;
|
|
814
|
+
/** what the server asks, in its words: shown as plain text */
|
|
815
|
+
message: string;
|
|
816
|
+
/** epoch ms */
|
|
817
|
+
createdAt: number;
|
|
818
|
+
/**
|
|
819
|
+
* set by the host when it refused the last answer: the card asks again, keeping what the owner
|
|
820
|
+
* entered. Each refusal is a new array, even one that reads as the last (the host refused the
|
|
821
|
+
* same way again); the host keeps handing over the same array while the refusal stands.
|
|
822
|
+
*/
|
|
823
|
+
refusals?: readonly IHarnessElicitationRefusal[];
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/** A server asks the owner to fill in a form. */
|
|
827
|
+
export interface IHarnessElicitationFormRequest extends IHarnessElicitationRequestBase {
|
|
828
|
+
mode: 'form';
|
|
829
|
+
/** in the order the server lists them */
|
|
830
|
+
fields: THarnessElicitationField[];
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* A server asks the owner to visit an address. The card shows it as text, never opens or fetches
|
|
835
|
+
* it; accepting reports that the owner has done it.
|
|
836
|
+
*/
|
|
837
|
+
export interface IHarnessElicitationUrlRequest extends IHarnessElicitationRequestBase {
|
|
838
|
+
mode: 'url';
|
|
839
|
+
url: string;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
/** A request the host cannot collect, with the host's reason: the owner may only decline or cancel it. */
|
|
843
|
+
export interface IHarnessElicitationUnsupportedRequest extends IHarnessElicitationRequestBase {
|
|
844
|
+
mode: 'unsupported';
|
|
845
|
+
reason: string;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* An MCP server of a session asks the owner for input (MCP elicitation): a form, a visit to an
|
|
850
|
+
* address, or a request the host cannot collect. Renders inline in the transcript like
|
|
851
|
+
* permissions and questions, pinned to its end; the host removes it once answered.
|
|
852
|
+
*/
|
|
853
|
+
export type IHarnessElicitationRequest =
|
|
854
|
+
| IHarnessElicitationFormRequest
|
|
855
|
+
| IHarnessElicitationUrlRequest
|
|
856
|
+
| IHarnessElicitationUnsupportedRequest;
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* The owner's answer: `accept` sends a form's content or, in URL mode, reports the visit done;
|
|
860
|
+
* `decline` refuses what the server asks; `cancel` dismisses it without a decision.
|
|
861
|
+
*/
|
|
862
|
+
export type THarnessElicitationAction = 'accept' | 'decline' | 'cancel';
|
|
863
|
+
|
|
864
|
+
/** Detail of `harness-elicitation-response`: the one event that carries what the owner entered. */
|
|
865
|
+
export interface IHarnessElicitationResponseDetail {
|
|
866
|
+
requestId: string;
|
|
867
|
+
action: THarnessElicitationAction;
|
|
868
|
+
/**
|
|
869
|
+
* with `accept` of a form only: the values the owner filled in, typed (numbers, booleans,
|
|
870
|
+
* lists), an empty optional field absent. For the host's answer to the server alone: keep it
|
|
871
|
+
* out of logs, journals, transcripts and error text
|
|
872
|
+
*/
|
|
873
|
+
content?: THarnessElicitationContent;
|
|
874
|
+
}
|
|
875
|
+
|
|
723
876
|
// ------------------------------------------------------- sessions & status
|
|
724
877
|
|
|
725
878
|
export type THarnessSessionCardState =
|
|
@@ -957,6 +1110,18 @@ export type THarnessSessionRowHarness = 'claude' | 'codex' | 'flex' | 'opencode'
|
|
|
957
1110
|
/** Which fixed group of `dees-harness-session-list` a row sits in. */
|
|
958
1111
|
export type THarnessSessionRowState = 'needs_input' | 'working' | 'completed' | 'failed';
|
|
959
1112
|
|
|
1113
|
+
/**
|
|
1114
|
+
* What a session waits on that only its native client can answer, so no host can answer it in
|
|
1115
|
+
* its place: an approval (`approval`), input it asked for (`user_input`), a prompt of the client's
|
|
1116
|
+
* own (`native_prompt`), or a wait the host cannot name (`unrecognized`).
|
|
1117
|
+
*/
|
|
1118
|
+
export type THarnessSessionRowNativeWaitReason = 'approval' | 'user_input' | 'native_prompt' | 'unrecognized';
|
|
1119
|
+
|
|
1120
|
+
/** A `needs_input` row's wait on its native client: the row says where to answer it. */
|
|
1121
|
+
export interface IHarnessSessionRowNativeWait {
|
|
1122
|
+
reason: THarnessSessionRowNativeWaitReason;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
960
1125
|
/** A board ticket a session works on, shown as a chip at the end of its row. */
|
|
961
1126
|
export interface IHarnessSessionRowTicket {
|
|
962
1127
|
/** Short ticket key, e.g. `AGL-136`. */
|
|
@@ -980,6 +1145,13 @@ export interface IHarnessSessionRow {
|
|
|
980
1145
|
tickets?: IHarnessSessionRowTicket[];
|
|
981
1146
|
/** Last activity, epoch milliseconds; orders a group (newest first) and gives the row's age. */
|
|
982
1147
|
updatedAt: number;
|
|
1148
|
+
/**
|
|
1149
|
+
* The session waits on something only its native client can answer: a `needs_input` row says
|
|
1150
|
+
* where to answer it. Every other state ignores it.
|
|
1151
|
+
*/
|
|
1152
|
+
nativeWait?: IHarnessSessionRowNativeWait;
|
|
1153
|
+
/** The session's last turn was interrupted: a `completed` row says so. Every other state ignores it. */
|
|
1154
|
+
interrupted?: boolean;
|
|
983
1155
|
}
|
|
984
1156
|
|
|
985
1157
|
/** Detail of `harness-session-row-select`, fired on click or Enter/Space. */
|
|
@@ -168,6 +168,12 @@ export class DeesPdfViewer extends DeesElement {
|
|
|
168
168
|
private thumbnailObserverRoot?: HTMLElement;
|
|
169
169
|
private scrollThrottleTimeout?: number;
|
|
170
170
|
private viewportDimensions = { width: 0, height: 0 };
|
|
171
|
+
/**
|
|
172
|
+
* The first page's size at scale 1. A page not rendered yet takes this size at the current zoom,
|
|
173
|
+
* so the document's scroll range is the document's before its pages render, not twelve blank
|
|
174
|
+
* canvases' (pdf.js's own viewer sizes its placeholders the same way).
|
|
175
|
+
*/
|
|
176
|
+
private pagePlaceholderBase: { width: number; height: number } | undefined;
|
|
171
177
|
private viewportMode: 'auto' | 'page-fit' | 'page-width' | 'custom' = 'auto';
|
|
172
178
|
private readonly MANUAL_MIN_ZOOM = 0.5;
|
|
173
179
|
private readonly MANUAL_MAX_ZOOM = 3;
|
|
@@ -558,6 +564,11 @@ export class DeesPdfViewer extends DeesElement {
|
|
|
558
564
|
this.pdfFileSize = 0;
|
|
559
565
|
}
|
|
560
566
|
|
|
567
|
+
const firstPage = await raceWithAbort(pdfDocument.getPage(1), signal);
|
|
568
|
+
if (!this.isCurrentLoad(generationArg, connectionEpochArg, urlArg)) return;
|
|
569
|
+
const firstPageBase = firstPage.getViewport({ scale: 1 });
|
|
570
|
+
this.pagePlaceholderBase = { width: firstPageBase.width, height: firstPageBase.height };
|
|
571
|
+
|
|
561
572
|
this.thumbnailData = Array.from({length: this.totalPages}, (_, i) => ({
|
|
562
573
|
page: i + 1,
|
|
563
574
|
rendered: false
|
|
@@ -573,17 +584,21 @@ export class DeesPdfViewer extends DeesElement {
|
|
|
573
584
|
await this.updateComplete;
|
|
574
585
|
if (!this.isCurrentLoad(generationArg, connectionEpochArg, urlArg)) return;
|
|
575
586
|
this.ensureViewerRefs();
|
|
587
|
+
this.sizePagePlaceholders();
|
|
576
588
|
this.setupIntersectionObserver();
|
|
577
589
|
|
|
578
590
|
await waitForAnimationFrame(signal);
|
|
579
591
|
if (!this.isCurrentLoad(generationArg, connectionEpochArg, urlArg) || signal.aborted) return;
|
|
580
592
|
this.renderState = 'rendering-main';
|
|
581
593
|
|
|
582
|
-
|
|
583
|
-
|
|
594
|
+
// The pages stand at their size already, so the document opens at its page before any
|
|
595
|
+
// renders; a page scrolled to while the first pages render stays where it was scrolled to.
|
|
584
596
|
if (this.currentPage > 1) {
|
|
585
597
|
await this.scrollToPage(this.currentPage, false);
|
|
598
|
+
if (!this.isCurrentLoad(generationArg, connectionEpochArg, urlArg) || signal.aborted) return;
|
|
586
599
|
}
|
|
600
|
+
await this.renderVisiblePages();
|
|
601
|
+
if (!this.isCurrentLoad(generationArg, connectionEpochArg, urlArg) || signal.aborted) return;
|
|
587
602
|
|
|
588
603
|
if (this.thumbnailsVisible) {
|
|
589
604
|
await this.updateComplete;
|
|
@@ -1262,6 +1277,7 @@ export class DeesPdfViewer extends DeesElement {
|
|
|
1262
1277
|
|
|
1263
1278
|
private reRenderAllPages() {
|
|
1264
1279
|
this.renderGeneration += 1;
|
|
1280
|
+
this.sizePagePlaceholders();
|
|
1265
1281
|
// Clear all rendered pages to force re-render with new zoom
|
|
1266
1282
|
this.pageData.forEach(page => {
|
|
1267
1283
|
page.rendered = false;
|
|
@@ -1622,9 +1638,22 @@ export class DeesPdfViewer extends DeesElement {
|
|
|
1622
1638
|
}
|
|
1623
1639
|
}
|
|
1624
1640
|
|
|
1625
|
-
private computeViewport(page:
|
|
1626
|
-
this.measureViewportDimensions();
|
|
1641
|
+
private computeViewport(page: PDFPageProxy) {
|
|
1627
1642
|
const baseViewport = page.getViewport({ scale: 1 });
|
|
1643
|
+
return page.getViewport({ scale: this.computeScale(baseViewport) });
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
/** Sizes the pages not rendered yet as the first page at the current zoom. */
|
|
1647
|
+
private sizePagePlaceholders() {
|
|
1648
|
+
if (!this.pagePlaceholderBase || !this.viewerMain) return;
|
|
1649
|
+
const scale = this.computeScale(this.pagePlaceholderBase);
|
|
1650
|
+
this.viewerMain.style.setProperty('--pdf-page-width', `${this.pagePlaceholderBase.width * scale}px`);
|
|
1651
|
+
this.viewerMain.style.setProperty('--pdf-page-height', `${this.pagePlaceholderBase.height * scale}px`);
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
/** The scale a page of `baseViewport`'s size (at scale 1) renders at in the current viewport mode. */
|
|
1655
|
+
private computeScale(baseViewport: { width: number; height: number }): number {
|
|
1656
|
+
this.measureViewportDimensions();
|
|
1628
1657
|
let scale: number;
|
|
1629
1658
|
|
|
1630
1659
|
switch (this.viewportMode) {
|
|
@@ -1661,7 +1690,7 @@ export class DeesPdfViewer extends DeesElement {
|
|
|
1661
1690
|
this.currentZoom = clampedScale;
|
|
1662
1691
|
}
|
|
1663
1692
|
|
|
1664
|
-
return
|
|
1693
|
+
return clampedScale;
|
|
1665
1694
|
}
|
|
1666
1695
|
|
|
1667
1696
|
private normalizeZoom(value: number, clampToManualRange: boolean) {
|
|
@@ -1812,6 +1841,9 @@ export class DeesPdfViewer extends DeesElement {
|
|
|
1812
1841
|
this.thumbnailObserverRoot = undefined;
|
|
1813
1842
|
this.thumbnailData = [];
|
|
1814
1843
|
this.pageData = [];
|
|
1844
|
+
this.pagePlaceholderBase = undefined;
|
|
1845
|
+
this.viewerMain?.style.removeProperty('--pdf-page-width');
|
|
1846
|
+
this.viewerMain?.style.removeProperty('--pdf-page-height');
|
|
1815
1847
|
this.documentId = '';
|
|
1816
1848
|
this.totalPages = 1;
|
|
1817
1849
|
this.currentPage = 1;
|
|
@@ -286,8 +286,11 @@ export const viewerStyles = [
|
|
|
286
286
|
position: relative;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
+
/* A page not rendered yet takes the first page's size; rendering sizes it as its own. */
|
|
289
290
|
.page-canvas {
|
|
290
291
|
display: block;
|
|
292
|
+
width: var(--pdf-page-width, auto);
|
|
293
|
+
height: var(--pdf-page-height, auto);
|
|
291
294
|
}
|
|
292
295
|
|
|
293
296
|
/* Text layer for selection */
|
package/ts_web/i18n/de.ts
CHANGED
|
@@ -87,6 +87,9 @@ export default dcMessages.translation('de', {
|
|
|
87
87
|
|
|
88
88
|
'page.breadcrumb': 'Brotkrümelnavigation',
|
|
89
89
|
'contentheading.back': 'Zurück zu {label}',
|
|
90
|
+
'detailpane.label': 'Details',
|
|
91
|
+
'detailpane.close': 'Details schließen',
|
|
92
|
+
'detailpane.resize': 'Größe der Details ändern',
|
|
90
93
|
'appui.activityTitle': 'Aktivität',
|
|
91
94
|
'appui.activityCount': 'Sichtbare Einträge',
|
|
92
95
|
'appui.activityLive': 'Live',
|
|
@@ -1419,6 +1422,33 @@ export default dcMessages.translation('de', {
|
|
|
1419
1422
|
'question.personTooLong': 'Höchstens {max, plural, one {# Zeichen} other {# Zeichen}}; eingegeben sind {count, number}.',
|
|
1420
1423
|
'question.rejected': 'Nicht ausgeführt. Prüfen Sie die markierten Felder und bestätigen Sie erneut.',
|
|
1421
1424
|
'question.answerRefused': 'Ihre Antwort wurde nicht gespeichert. Antworten Sie erneut.',
|
|
1425
|
+
'elicitation.asks': '{server} fragt',
|
|
1426
|
+
'elicitation.asksUnnamed': 'Ein MCP-Server fragt',
|
|
1427
|
+
'elicitation.send': 'Senden',
|
|
1428
|
+
'elicitation.markDone': 'Als erledigt melden',
|
|
1429
|
+
'elicitation.decline': 'Ablehnen',
|
|
1430
|
+
'elicitation.cancel': 'Abbrechen',
|
|
1431
|
+
'elicitation.answered': '{action, select, accept {Angenommen} decline {Abgelehnt} cancel {Abgebrochen} other {Beantwortet}}',
|
|
1432
|
+
'elicitation.yes': 'Ja',
|
|
1433
|
+
'elicitation.no': 'Nein',
|
|
1434
|
+
'elicitation.clear': 'Auswahl aufheben',
|
|
1435
|
+
'elicitation.missing': 'Füllen Sie die Pflichtfelder aus, um zu senden.',
|
|
1436
|
+
'elicitation.tooShort': 'Mindestens {min, plural, one {# Zeichen} other {# Zeichen}}; eingegeben sind {count, number}.',
|
|
1437
|
+
'elicitation.tooLong': 'Höchstens {max, plural, one {# Zeichen} other {# Zeichen}}; eingegeben sind {count, number}.',
|
|
1438
|
+
'elicitation.format': '{format, select, email {Geben Sie eine E-Mail-Adresse ein.} uri {Geben Sie eine vollständige Adresse ein, etwa https://example.com/pfad.} date {Geben Sie ein Datum als YYYY-MM-DD ein.} dateTime {Geben Sie Datum und Uhrzeit ein, etwa 2026-11-07T14:30:00Z.} other {Geben Sie einen Wert in der verlangten Form ein.}}',
|
|
1439
|
+
'elicitation.dateHint': 'YYYY-MM-DD',
|
|
1440
|
+
'elicitation.dateTimeHint': 'YYYY-MM-DDThh:mm:ssZ',
|
|
1441
|
+
'elicitation.notNumber': 'Geben Sie eine Zahl ein.',
|
|
1442
|
+
'elicitation.notWhole': 'Geben Sie eine ganze Zahl ein.',
|
|
1443
|
+
'elicitation.belowMin': 'Geben Sie {min, number} oder mehr ein.',
|
|
1444
|
+
'elicitation.aboveMax': 'Geben Sie höchstens {max, number} ein.',
|
|
1445
|
+
'elicitation.tooFewChoices': 'Wählen Sie mindestens {min, plural, one {# Option} other {# Optionen}}.',
|
|
1446
|
+
'elicitation.tooManyChoices': 'Wählen Sie höchstens {max, plural, one {# Option} other {# Optionen}}.',
|
|
1447
|
+
'elicitation.urlLabel': 'Adresse',
|
|
1448
|
+
'elicitation.urlNote': 'Öffnen Sie diese Adresse selbst; sie wird von hier nicht geöffnet. Melden Sie es danach als erledigt.',
|
|
1449
|
+
'elicitation.hiddenChar': 'Unsichtbares Zeichen {code}',
|
|
1450
|
+
'elicitation.unsupportedNote': 'Diese Anfrage lässt sich hier nicht beantworten. Lehnen Sie sie ab oder brechen Sie sie ab.',
|
|
1451
|
+
'elicitation.refused': 'Ihre Antwort wurde nicht angenommen. Prüfen Sie die markierten Felder und senden Sie erneut.',
|
|
1422
1452
|
'message.usage': '{input, number} ein · {output, number} aus · {total, number} Tokens insgesamt',
|
|
1423
1453
|
'todos.empty': 'Noch keine Aufgaben.',
|
|
1424
1454
|
'reasoning.thinking': 'Denkt nach',
|
|
@@ -1488,5 +1518,7 @@ export default dcMessages.translation('de', {
|
|
|
1488
1518
|
'sessionlist.moreTickets': '+{count, number}',
|
|
1489
1519
|
'sessionlist.more': '… {count, number} weitere',
|
|
1490
1520
|
'sessionlist.fewer': 'Weniger anzeigen',
|
|
1521
|
+
'sessionlist.nativeWait': '{reason, select, approval {In {harness} freigeben} user_input {In {harness} antworten} native_prompt {In {harness} beantworten} unrecognized {Wartet in {harness}} other {Wartet in {harness}}}',
|
|
1522
|
+
'sessionlist.interrupted': 'Unterbrochen',
|
|
1491
1523
|
'workspace.confirmClose': '{name} hat nicht gespeicherte Änderungen. Trotzdem schließen?',
|
|
1492
1524
|
});
|