@design.estate/dees-catalog 21.35.0 → 21.36.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 +613 -66
  2. package/dist_bundle/bundle.js.map +1 -1
  3. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-5CNZ4UM3.js → chunk-3YTKY5IS.js} +6 -2
  4. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-5CNZ4UM3.js.map → chunk-3YTKY5IS.js.map} +1 -1
  5. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-PHFZ5EZN.js → chunk-5UGXWLMH.js} +3 -3
  6. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-KY5Z6Y6T.js → chunk-ZCZ72OW4.js} +2 -2
  7. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-AGABQ27E.js → de-PERXVUIS.js} +6 -2
  8. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-AGABQ27E.js.map → de-PERXVUIS.js.map} +1 -1
  9. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-QBFEQURL.js → dees-modal-4QORKLGX.js} +3 -3
  10. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-UYSWDBV4.js → dees-workspace-terminal-7SYZG2AB.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 +5 -1
  13. package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.js +11 -1
  14. package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.d.ts +28 -1
  15. package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.js +78 -1
  16. package/dist_ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.d.ts +75 -3
  17. package/dist_ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.demo.js +140 -44
  18. package/dist_ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.js +500 -16
  19. package/dist_ts_web/elements/00group-harness/interfaces.d.ts +72 -0
  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 +38 -1
  26. package/ts_web/00_commitinfo_data.ts +1 -1
  27. package/ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.ts +17 -0
  28. package/ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.ts +83 -0
  29. package/ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.demo.ts +106 -2
  30. package/ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.ts +484 -14
  31. package/ts_web/elements/00group-harness/interfaces.ts +77 -0
  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-PHFZ5EZN.js.map → chunk-5UGXWLMH.js.map} +0 -0
  35. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-KY5Z6Y6T.js.map → chunk-ZCZ72OW4.js.map} +0 -0
  36. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-QBFEQURL.js.map → dees-modal-4QORKLGX.js.map} +0 -0
  37. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-UYSWDBV4.js.map → dees-workspace-terminal-7SYZG2AB.js.map} +0 -0
@@ -96,6 +96,8 @@ export interface IHarnessQuestionViewState {
96
96
  itemsExpanded?: boolean;
97
97
  /** the changes the reader left out of a proposal, by item id */
98
98
  declinedItemIds?: string[];
99
+ /** the host's refusal of the proposal's last confirmation, until the reader answers again; never a value the person entered */
100
+ rejection?: IHarnessQuestionRejection;
99
101
  }
100
102
 
101
103
  /** Complete interaction state for rows that a virtual transcript may evict. */
@@ -507,6 +509,70 @@ export interface IHarnessProposalItem {
507
509
  credential?: IHarnessProposalCredential;
508
510
  }
509
511
 
512
+ /**
513
+ * A value a proposed change needs from the person and from nobody else, such as the password of
514
+ * a mail account it connects: entered on the card under its change, sent with the confirmation
515
+ * only (`personValues`), never to the agent. It has no initial value. `secret` is masked until
516
+ * the person shows it, multiline as well. A field of a change the person left out is neither
517
+ * required nor sent.
518
+ */
519
+ export interface IHarnessQuestionPersonField {
520
+ /** unique within its change: the confirmation names the value by it */
521
+ id: string;
522
+ /** the change it belongs to (`IHarnessProposalItem.id`) */
523
+ itemId: string;
524
+ /** what to enter: "Password" */
525
+ label: string;
526
+ input: 'text' | 'secret';
527
+ /** Confirm waits for a value */
528
+ required?: boolean;
529
+ /** several lines, such as a private key */
530
+ multiline?: boolean;
531
+ /** in UTF-16 code units, as `String.length` counts them; a longer value holds Confirm back, it is not cut */
532
+ maxLength: number;
533
+ /** under the field, in the host's words: "The app password, not the sign-in password" */
534
+ hint?: string;
535
+ }
536
+
537
+ /** A value the person entered, sent with the confirmation only. */
538
+ export interface IHarnessQuestionPersonValue {
539
+ itemId: string;
540
+ fieldId: string;
541
+ value: string;
542
+ }
543
+
544
+ /**
545
+ * A value a carried-out change returns to the person and to nobody else, such as the password it
546
+ * set: the host hands it to the card that confirmed (`personResults`), never in the request. `secret`
547
+ * is masked until shown and copied on request; `link` opens an http or https address on a click
548
+ * only; `text` shows as it is.
549
+ */
550
+ export interface IHarnessQuestionPersonResult {
551
+ id: string;
552
+ /** the change it came of (`IHarnessProposalItem.id`) */
553
+ itemId: string;
554
+ label: string;
555
+ value: string;
556
+ display: 'text' | 'secret' | 'link';
557
+ }
558
+
559
+ /** Why the host refused one value the person entered, in the host's words. */
560
+ export interface IHarnessQuestionPersonFieldError {
561
+ itemId: string;
562
+ fieldId: string;
563
+ message: string;
564
+ }
565
+
566
+ /**
567
+ * Why the host refused a confirmation it could not carry out as sent: what to say over the
568
+ * changes, and what to say at each value it refused. The card asks again (`rejectQuestionResponse()`
569
+ * on the list and the chat, `rejectResponse()` on the card).
570
+ */
571
+ export interface IHarnessQuestionRejection {
572
+ message?: string;
573
+ fieldErrors?: readonly IHarnessQuestionPersonFieldError[];
574
+ }
575
+
510
576
  /**
511
577
  * A question the agent asks the user mid-run, or a proposal of changes it would make once the
512
578
  * user confirms them (`kind: 'proposal'`). Renders inline in the transcript like permissions:
@@ -534,6 +600,11 @@ export interface IHarnessQuestionRequest {
534
600
  * the confirmation then names them (`declinedItemIds`). Unset, the proposal is decided whole.
535
601
  */
536
602
  itemsDeclinable?: boolean;
603
+ /**
604
+ * values a proposal's changes need from the person, entered under each change and sent with the
605
+ * confirmation only (`personValues`): never in the request, its answer or the view state
606
+ */
607
+ personFields?: readonly IHarnessQuestionPersonField[];
537
608
  /** the words of a proposal's buttons; unset, the catalog's "Confirm" and "Decline" */
538
609
  confirmLabel?: string;
539
610
  declineLabel?: string;
@@ -561,6 +632,12 @@ export interface IHarnessQuestionResponseDetail {
561
632
  answers: string[];
562
633
  /** with `['confirm']` of a proposal whose reader left changes out: their item ids */
563
634
  declinedItemIds?: string[];
635
+ /**
636
+ * with `['confirm']` only: the values the person entered in `personFields` of the changes it
637
+ * includes, those left empty not named. For the host's own confirmation alone: keep them out of
638
+ * the answer, the request, any session history, log or storage
639
+ */
640
+ personValues?: readonly IHarnessQuestionPersonValue[];
564
641
  /** the request, without any `credential` of its items */
565
642
  request: IHarnessQuestionRequest;
566
643
  }
package/ts_web/i18n/de.ts CHANGED
@@ -1319,6 +1319,10 @@ export default dcMessages.translation('de', {
1319
1319
  'question.credentialCopied': '{label} kopiert',
1320
1320
  'question.credentialCopyFailed': 'Kopieren fehlgeschlagen. Prüfen Sie den Zugriff auf die Zwischenablage und versuchen Sie es erneut.',
1321
1321
  'question.credentialNote': 'Nur Sie sehen dies. Der Agent erhält es nicht.',
1322
+ 'question.personFieldsNote': 'Wird nur mit Ihrer Bestätigung gesendet. Der Agent erhält es nicht.',
1323
+ 'question.personFieldsMissing': 'Füllen Sie die Pflichtfelder aus, um zu bestätigen.',
1324
+ 'question.personTooLong': 'Höchstens {max, plural, one {# Zeichen} other {# Zeichen}}; eingegeben sind {count, number}.',
1325
+ 'question.rejected': 'Nicht ausgeführt. Prüfen Sie die markierten Felder und bestätigen Sie erneut.',
1322
1326
  'message.usage': '{input, number} ein · {output, number} aus · {total, number} Tokens insgesamt',
1323
1327
  'todos.empty': 'Noch keine Aufgaben.',
1324
1328
  'reasoning.thinking': 'Denkt nach',
@@ -1389,6 +1389,10 @@ export const dcMessages = plugins.smarti18n.defineCatalog({
1389
1389
  'question.credentialCopied': { message: '{label} copied', description: 'Said once the secret is on the clipboard.' },
1390
1390
  'question.credentialCopyFailed': { message: 'Could not copy. Check clipboard access and try again.', description: 'Said when the clipboard refused the secret.' },
1391
1391
  'question.credentialNote': { message: 'Only you can see this. The agent is not shown it.', description: 'Under a secret a change issued: it stays on the reader\'s screen and does not go back to the agent.' },
1392
+ 'question.personFieldsNote': { message: 'Sent with your confirmation only. The agent is not shown it.', description: 'Under the fields a proposal asks the reader to fill in, such as a password: what is entered goes to the app with the confirmation, never to the agent.' },
1393
+ 'question.personFieldsMissing': { message: 'Fill in the required fields to confirm.', description: 'Said while a required field of a proposal is empty; its Confirm button waits for it.' },
1394
+ 'question.personTooLong': { message: 'Use {max, plural, one {# character} other {# characters}} or fewer; this has {count, number}.', description: 'Said on a field whose value is too long to confirm; {max} is the most it takes, {count} how many it has.' },
1395
+ 'question.rejected': { message: 'Not carried out. Check the marked fields and confirm again.', description: 'Said when the app refused a confirmation because of values entered, and named no reason of its own.' },
1392
1396
  'message.usage': { message: '{input, number} in · {output, number} out · {total, number} total tokens', description: 'A reply\'s token usage: tokens read, written and in total.' },
1393
1397
 
1394
1398
  // dees-harness-todos, dees-harness-reasoning, dees-harness-status, dees-harness-thread-cut, dees-harness-usage