@design.estate/dees-catalog 24.7.0 → 24.8.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 +13 -9
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-YCMGTVXR.js → chunk-2G2FY5BM.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-3CEGXWBQ.js → chunk-BND2OLMT.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-UMC4X5JL.js → chunk-XWSU4WI2.js} +5 -4
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-UMC4X5JL.js.map → chunk-XWSU4WI2.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-WDLFKPER.js → de-I3GM2MTM.js} +3 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-WDLFKPER.js.map → de-I3GM2MTM.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-GOU3ZU3B.js → dees-modal-6ODTVOPW.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-X43COPAD.js → dees-workspace-terminal-7SURSDIV.js} +4 -4
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{es-DQCJVY2B.js → es-DHTKD6BL.js} +3 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{es-DQCJVY2B.js.map → es-DHTKD6BL.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{fr-UU7FTQ55.js → fr-VE4I3OE3.js} +3 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{fr-UU7FTQ55.js.map → fr-VE4I3OE3.js.map} +1 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-message/dees-harness-message.demo.js +2 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-message/dees-harness-message.js +2 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.js +3 -3
- package/dist_ts_web/elements/00group-harness/dees-harness-reasoning/dees-harness-reasoning.js +3 -3
- package/dist_ts_web/elements/00group-harness/harness.helpers.d.ts +3 -1
- package/dist_ts_web/elements/00group-harness/harness.helpers.js +3 -1
- package/dist_ts_web/elements/00group-harness/interfaces.d.ts +5 -2
- package/dist_ts_web/i18n/de.d.ts +4 -0
- package/dist_ts_web/i18n/de.js +2 -1
- package/dist_ts_web/i18n/es.d.ts +4 -0
- package/dist_ts_web/i18n/es.js +2 -1
- package/dist_ts_web/i18n/fr.d.ts +4 -0
- package/dist_ts_web/i18n/fr.js +2 -1
- package/dist_ts_web/i18n/messages.d.ts +4 -0
- package/dist_ts_web/i18n/messages.js +2 -1
- package/package.json +1 -1
- package/readme.md +4 -2
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-harness/dees-harness-message/dees-harness-message.demo.ts +1 -0
- package/ts_web/elements/00group-harness/dees-harness-message/dees-harness-message.ts +1 -0
- package/ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.ts +2 -2
- package/ts_web/elements/00group-harness/dees-harness-reasoning/dees-harness-reasoning.ts +2 -2
- package/ts_web/elements/00group-harness/harness.helpers.ts +5 -0
- package/ts_web/elements/00group-harness/interfaces.ts +5 -2
- package/ts_web/i18n/de.ts +1 -0
- package/ts_web/i18n/es.ts +1 -0
- package/ts_web/i18n/fr.ts +1 -0
- package/ts_web/i18n/messages.ts +1 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-YCMGTVXR.js.map → chunk-2G2FY5BM.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-3CEGXWBQ.js.map → chunk-BND2OLMT.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-GOU3ZU3B.js.map → dees-modal-6ODTVOPW.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-X43COPAD.js.map → dees-workspace-terminal-7SURSDIV.js.map} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@design.estate/dees-catalog",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.",
|
|
6
6
|
"main": "dist_ts_web/index.js",
|
package/readme.md
CHANGED
|
@@ -6563,6 +6563,8 @@ History paging adds the composed child event `harness-load-earlier`.
|
|
|
6563
6563
|
|
|
6564
6564
|
#### `DeesHarnessMessageList`
|
|
6565
6565
|
|
|
6566
|
+
A folded work run treats a reasoning part as active when it has a start time and is still waiting for an end time. A historical reasoning part may have neither timestamp. The reasoning disclosure uses the same rule.
|
|
6567
|
+
|
|
6566
6568
|
Scrollable streaming-safe log. Up to 40 canonical entries (`messages` + `permissions` + `questions` + `elicitations`) keep keyed full-timeline DOM; larger inputs activate a measured variable-height window with 800px overscan and return to full rendering when they shrink. Rows outside that overscanned window are unmounted, except focused rows, both endpoints of an active selection, and fullscreen-owned cards, which remain mounted until the interaction ends, and elicitation cards, which remain mounted while the host keeps their request, since what the owner entered lives in the card alone; threshold-mode changes are likewise deferred while protected DOM is active. `applyDelta()` targets a mounted message or mutates its offscreen backing model. Markdown output, disclosures, reasoning expansion, question drafts, permission choices, diff layout, terminal scroll state, and live nested-transcript state restore from retained data after an actual eviction. Hosts may pass a stable mutable `IHarnessTranscriptViewState` through `viewState`; it must contain `messages`, `permissions`, and `questions` maps. The list creates entries for current canonical IDs, deletes records for removed IDs, and session-keys and prunes live nested-subtask records. Without that prop, equivalent state remains list-local. Set `transcriptKey` to the stable identity of the displayed transcript so reused components reset scroll-local state between chats. When `hasEarlierMessages` is true, an intentional upward gesture reaching the top emits one bubbling, composed `harness-load-earlier` event. Set `loadingEarlier` while handling it; the next `true` to `false` transition rearms the event. Initial rendering, anchor restoration, and other component-owned scrolling never emit it.
|
|
6567
6569
|
|
|
6568
6570
|
`refreshMessages(ids?)` reconciles in-place host mutations without replacing canonical objects. With IDs, it refreshes only matching message rows that are currently mounted; matching offscreen rows remain unmounted and use the mutated canonical objects when later mounted. With IDs omitted, it rebuilds structural transcript state and refreshes all mounted rows. Either way a message whose `pending` changed moves between the queue and the transcript. `[]` is a no-op. `focusPendingPermission()` scrolls to the first unanswered permission and focuses its first response action, returning false when no request is pending.
|
|
@@ -6573,7 +6575,7 @@ Set `groupWork` and each run of a turn's work folds into one line, a [DeesHarnes
|
|
|
6573
6575
|
|
|
6574
6576
|
The empty transcript shows `emptyTitle` and `emptyText` (else the catalog's "No messages yet" and "Start a conversation to see it here.") and the starter prompts in a box that is the stable CSS part `empty`, a grid that centres them; a host can place them through `::part(empty)`.
|
|
6575
6577
|
|
|
6576
|
-
A `role: 'user'` message with `pending` set has not been taken in by the session yet, and waits in a queue under the working indicator instead of in the transcript: a thin rule either side of a centred "Pending" label in caption size and muted text, then the waiting messages in the order they were sent, each in its ordinary bubble with a line that says where it stands (see `DeesHarnessMessage`), all on the status line's measure. `pending` is a `THarnessPendingState`: `'submitting'` (a local submission in flight, not yet durably acknowledged; no queue admission claimed), `'steering'` (handed to the running turn, read at its next step), `'queued'` (confirmed to wait for the next turn), `'uncertain'` (delivery attempted but unconfirmed), or `'held'` (not sent: the run was stopped before the session took it in). A held message offers **Resend** and **Discard**, which emit `harness-held-resend` and `harness-held-discard` with `{ messageId }` (`IHarnessHeldMessageDetail`), bubbling and composed out of the list and the chat; the host sends it again (setting `'queued'` or `'steering'`) or removes it. Nothing held is ever sent on its own. `heldActions` (`THarnessHeldAction[]`: `'resend'`, `'discard'`) on the message states which of the two a held or uncertain message offers; set `heldActions: ['discard']` on an uncertain message to let the reader drop it without offering a resend that could deliver it twice (see `DeesHarnessMessage`). Without a status line the queue sits directly under the transcript, still under its divider. It is never virtualized: it is the bottom that auto-follow keeps in view. A message joining the queue arrives like a row, and the divider arrives with the first. When the host clears `pending` on the same `id` — by passing the message again without it, or by mutating the shared object and calling `refreshMessages([id])` — the message glides from its slot to its place in the transcript in one motion on `--dees-transition-slow` with `--dees-ease-standard`, while the working indicator, the divider and the rest of the queue travel with it; what waited below it stays where it is (the slot keeps showing the state line the message waited with while it closes, so it gives that line's space back too, and under a followed bottom the transcript settles down by it), and the divider closes its space and blends out with the last message to leave. Its place is chronological like any message's, by `order` or `createdAt`, so a host that delivers queued prompts when the running turn ends stamps them then, and they land at the tail rather than among that turn's output. Taking a message up keeps a pinned transcript pinned and an unpinned reader's anchor still, virtualized or not. Once the message has landed it sweeps its acceptance scan, never over the glide (see `DeesHarnessMessage`). A message taken up while it still arrives in the queue finishes arriving first. Under reduced motion the message is simply in its place, with neither glide nor sweep; a browser without keyword size interpolation places it at once and sweeps; where the list is not rendered — hidden, or skipped by `content-visibility` — or cannot tell (no `Element.checkVisibility`), it is simply in its place. A message the host removes from the queue just goes. The composer's `queuedCount` stays host-driven. Subagent rows have no body at all: activating one opens its thread in the fullscreen view, exactly like opening it from the sidebar, and the transcript stays where it was. The docked composer is a card on the same measure, floating on the chat's own surface, so the prompt lines up with the messages above it. The status line under the transcript sits on that measure too, so the working indicator starts where the messages start rather than at the pane edge. Set the custom property on the chat or the list to widen or disable the column; it is read when rows are measured, so change it at mount rather than while a virtualized transcript is scrolled. Nothing opens or closes on its own: a reader's disclosure is kept in the retained view state and survives status changes, eviction and remounting. Auto-follow responds to streamed growth but does not repeatedly repin while a disclosure shrinks. Permission requests and questions behave as before. Props: `messages`, `permissions`/`permissionsBusy`, `questions`, `elicitations`, `status`, `viewState`, `transcriptKey`, `hasEarlierMessages`, `loadingEarlier`, `autoFollow`, `hideScrollbar`, `fadeScrollEdges`, `showRoles`, `showTimestamps`, `markdownWhileStreaming` (default `true`), `emptyTitle`/`emptyText` (+ `slot="empty"`), `starterPrompts`. `starterPrompts` (`IHarnessStarterPrompt[]`) renders as buttons under the empty transcript's text; choosing one emits the bubbling, composed `harness-starter-prompt` with `IHarnessStarterPromptDetail` `{ prompt }` (its `prompt`, else its `label`) and sends nothing. They belong to the default empty content, so content assigned to `slot="empty"` replaces them. Native browser find and selection cover the mounted window; hosts that require complete-history search or copy should operate on their canonical `messages`, `permissions`, and `questions` models.
|
|
6578
|
+
A `role: 'user'` message with `pending` set has not been taken in by the session yet, and waits in a queue under the working indicator instead of in the transcript: a thin rule either side of a centred "Pending" label in caption size and muted text, then the waiting messages in the order they were sent, each in its ordinary bubble with a line that says where it stands (see `DeesHarnessMessage`), all on the status line's measure. `pending` is a `THarnessPendingState`: `'submitting'` (a local submission in flight, not yet durably acknowledged; no queue admission claimed), `'steering'` (handed to the running turn, read at its next step), `'queued'` (confirmed to wait for the next turn), `'syncing'` (durable settlement receipt received, exact message not yet observed in canonical conversation history), `'uncertain'` (delivery attempted but unconfirmed), or `'held'` (not sent: the run was stopped before the session took it in). A held message offers **Resend** and **Discard**, which emit `harness-held-resend` and `harness-held-discard` with `{ messageId }` (`IHarnessHeldMessageDetail`), bubbling and composed out of the list and the chat; the host sends it again (setting `'queued'` or `'steering'`) or removes it. Nothing held is ever sent on its own. `heldActions` (`THarnessHeldAction[]`: `'resend'`, `'discard'`) on the message states which of the two a held or uncertain message offers; set `heldActions: ['discard']` on an uncertain message to let the reader drop it without offering a resend that could deliver it twice (see `DeesHarnessMessage`). Without a status line the queue sits directly under the transcript, still under its divider. It is never virtualized: it is the bottom that auto-follow keeps in view. A message joining the queue arrives like a row, and the divider arrives with the first. When the host clears `pending` on the same `id` — by passing the message again without it, or by mutating the shared object and calling `refreshMessages([id])` — the message glides from its slot to its place in the transcript in one motion on `--dees-transition-slow` with `--dees-ease-standard`, while the working indicator, the divider and the rest of the queue travel with it; what waited below it stays where it is (the slot keeps showing the state line the message waited with while it closes, so it gives that line's space back too, and under a followed bottom the transcript settles down by it), and the divider closes its space and blends out with the last message to leave. Its place is chronological like any message's, by `order` or `createdAt`, so a host that delivers queued prompts when the running turn ends stamps them then, and they land at the tail rather than among that turn's output. Taking a message up keeps a pinned transcript pinned and an unpinned reader's anchor still, virtualized or not. Once the message has landed it sweeps its acceptance scan, never over the glide (see `DeesHarnessMessage`). A message taken up while it still arrives in the queue finishes arriving first. Under reduced motion the message is simply in its place, with neither glide nor sweep; a browser without keyword size interpolation places it at once and sweeps; where the list is not rendered — hidden, or skipped by `content-visibility` — or cannot tell (no `Element.checkVisibility`), it is simply in its place. A message the host removes from the queue just goes. The composer's `queuedCount` stays host-driven. Subagent rows have no body at all: activating one opens its thread in the fullscreen view, exactly like opening it from the sidebar, and the transcript stays where it was. The docked composer is a card on the same measure, floating on the chat's own surface, so the prompt lines up with the messages above it. The status line under the transcript sits on that measure too, so the working indicator starts where the messages start rather than at the pane edge. Set the custom property on the chat or the list to widen or disable the column; it is read when rows are measured, so change it at mount rather than while a virtualized transcript is scrolled. Nothing opens or closes on its own: a reader's disclosure is kept in the retained view state and survives status changes, eviction and remounting. Auto-follow responds to streamed growth but does not repeatedly repin while a disclosure shrinks. Permission requests and questions behave as before. Props: `messages`, `permissions`/`permissionsBusy`, `questions`, `elicitations`, `status`, `viewState`, `transcriptKey`, `hasEarlierMessages`, `loadingEarlier`, `autoFollow`, `hideScrollbar`, `fadeScrollEdges`, `showRoles`, `showTimestamps`, `markdownWhileStreaming` (default `true`), `emptyTitle`/`emptyText` (+ `slot="empty"`), `starterPrompts`. `starterPrompts` (`IHarnessStarterPrompt[]`) renders as buttons under the empty transcript's text; choosing one emits the bubbling, composed `harness-starter-prompt` with `IHarnessStarterPromptDetail` `{ prompt }` (its `prompt`, else its `label`) and sends nothing. They belong to the default empty content, so content assigned to `slot="empty"` replaces them. Native browser find and selection cover the mounted window; hosts that require complete-history search or copy should operate on their canonical `messages`, `permissions`, and `questions` models.
|
|
6577
6579
|
|
|
6578
6580
|
#### `DeesHarnessMessage`
|
|
6579
6581
|
|
|
@@ -6583,7 +6585,7 @@ For a queued or held user prompt the host can still withdraw, set `pendingAction
|
|
|
6583
6585
|
|
|
6584
6586
|
Image attachments with inline `dataBase64` open in a `DeesModal` on click. When an image has metadata only, pass `.resolveAttachment` to `dees-harness-chat`, `dees-harness-message-list`, or the message itself. The `THarnessAttachmentResolver` receives `{ messageId, attachmentId }` and returns a complete `IHarnessAttachment` with the image's `dataBase64` after the host authorizes and reads it. The modal shows loading and read failure; closing it, unmounting the message, or replacing the message ignores a late result. The component accepts image bytes only, never a URL or filesystem path.
|
|
6585
6587
|
|
|
6586
|
-
One message: role accent, markdown (assistant default, `message.markdown` overrides), attachments grid, reasoning parts, streaming cursor, usage/error footer. Markdown renders through `domtools.plugins.smartmarkdown` (GFM, sanitized) with `harnessMarkdownRenderOptions`: a line break the model wrote is a line break (`breaks: true`), so a finished reply keeps the lines it streamed with, and `---` blocks at a reply's start are its text, never frontmatter (`frontmatter: false`). `markdownWhileStreaming` defaults to `true`, with throttled ≥150 ms re-parses while streaming; set it to `false` to retain plain text during the stream and parse once when the message ends. Fenced code is highlighted lazily after the final parse. Streaming methods: `appendTextDelta()`, `appendReasoningDelta()`, `endReasoning()`, `endStream(usage?, error?)`. A message that carries nothing but a tool call renders the bare row instead of the message frame, forwards `showTimestamp` to it, and reserves one line while virtualized when the transcript marks it with `data-tool-row`. A `role: 'user'` message carries `pending` (`THarnessPendingState`) while the session has not taken it in yet. The transcript list shows such a message in its queue (see `DeesHarnessMessageList`), and the element renders it like any other user message with one caption line under its content, exposed as a `role="status"` label: "Submitting…" (`'submitting'`), "Steering · read at the next step" (`'steering'`), "Queued for the next turn" (`'queued'`), "Delivery unconfirmed" (`'uncertain'`), or "Held · not sent" with **Resend** and **Discard** buttons (`'held'`), which emit `harness-held-resend` and `harness-held-discard` with `{ messageId }`, bubbling and composed.
|
|
6588
|
+
One message: role accent, markdown (assistant default, `message.markdown` overrides), attachments grid, reasoning parts, streaming cursor, usage/error footer. Markdown renders through `domtools.plugins.smartmarkdown` (GFM, sanitized) with `harnessMarkdownRenderOptions`: a line break the model wrote is a line break (`breaks: true`), so a finished reply keeps the lines it streamed with, and `---` blocks at a reply's start are its text, never frontmatter (`frontmatter: false`). `markdownWhileStreaming` defaults to `true`, with throttled ≥150 ms re-parses while streaming; set it to `false` to retain plain text during the stream and parse once when the message ends. Fenced code is highlighted lazily after the final parse. Streaming methods: `appendTextDelta()`, `appendReasoningDelta()`, `endReasoning()`, `endStream(usage?, error?)`. A message that carries nothing but a tool call renders the bare row instead of the message frame, forwards `showTimestamp` to it, and reserves one line while virtualized when the transcript marks it with `data-tool-row`. A `role: 'user'` message carries `pending` (`THarnessPendingState`) while the session has not taken it in yet. The transcript list shows such a message in its queue (see `DeesHarnessMessageList`), and the element renders it like any other user message with one caption line under its content, exposed as a `role="status"` label: "Submitting…" (`'submitting'`), "Steering · read at the next step" (`'steering'`), "Queued for the next turn" (`'queued'`), "Syncing conversation history…" (`'syncing'`), "Delivery unconfirmed" (`'uncertain'`), or "Held · not sent" with **Resend** and **Discard** buttons (`'held'`), which emit `harness-held-resend` and `harness-held-discard` with `{ messageId }`, bubbling and composed. Submitting and syncing messages offer no resend, discard, edit or retract actions, even when action capabilities are set; keep its existing `id` when acknowledgement changes it to `queued` or `steering`, and clear `pending` only when the session takes it in. A known refusal can be `held` with a separate `error`; an unconfirmed delivery is `uncertain`, not `queued`. The message's `heldActions` (`THarnessHeldAction[]`) states which buttons a held or uncertain message shows, always Resend before Discard; left out, a held message shows both and an uncertain one none, and in any other state it is ignored. `heldActions: ['discard']` on an uncertain message shows **Discard** alone, after "A resend could deliver it twice", since the prompt may already have reached the session; a held message the host lets the reader only discard shows Discard with no such note. A button pressed after the message stopped offering its action emits nothing. The line is gone once `pending` is cleared, and another role never shows it. `playAcceptanceSweep()` sweeps a scan across a user bubble once to mark that the session took it up: the former tool-card outcome scan in `--dees-color-accent-primary`, a band moving on `transform` alone, clipped to the bubble's rounded box, with nothing laid out anew and nothing clipped at rest. The transcript list calls it once a message it moved out of the queue has landed; a host that shows a message on its own calls it when the session takes the prompt up. It does nothing for another role or under `prefers-reduced-motion: reduce`, a sweep already playing plays on, and a new `id` ends it. A sweep that starts where nobody can see it — a row `content-visibility` skips, a hidden list, a background tab — still ends on schedule and never plays late. A block that appears in a message already shown — the thinking block as reasoning starts, the reply's text after it, attachments, a tool call beside text, the error and the usage footer as the stream ends — opens its space and then blends in, exactly like a transcript row, and takes no space on its first frame; later reasoning parts and streamed text grow the block they belong to instead. Nothing arrives on a first render, while `entering` is set (the list sets it while the message's row opens its space, so a block comes with the row), under reduced motion, or where the message is not rendered, and an engine without `Element.checkVisibility` shows the blocks without motion. Subtask activation emits the bubbling, composed, cancelable `harness-subtask-open` event with `{ sessionId, call }` before any inspector opens.
|
|
6587
6589
|
|
|
6588
6590
|
`refreshMessage()` reconciles direct same-object host mutations across text, reasoning, and tool content.
|
|
6589
6591
|
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@design.estate/dees-catalog',
|
|
6
|
-
version: '24.
|
|
6
|
+
version: '24.8.0',
|
|
7
7
|
description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
|
|
8
8
|
}
|
|
@@ -113,6 +113,7 @@ export const demoFunc = () => demoPage('Messages', 'Conversation turns, model de
|
|
|
113
113
|
['submitting', 'Inspect the route manifest before changing the cache key.'],
|
|
114
114
|
['steering', 'Use the route manifest hash for the cache key.'],
|
|
115
115
|
['queued', 'Then run the sitemap tests again.'],
|
|
116
|
+
['syncing', 'Confirm the sitemap result in the conversation history.'],
|
|
116
117
|
['uncertain', 'Check the CDN purge log as well.'],
|
|
117
118
|
['held', 'Also bump the cache version.'],
|
|
118
119
|
] as const).map(([pending, text]) => html`
|
|
@@ -90,6 +90,7 @@ const pendingStates = {
|
|
|
90
90
|
submitting: { icon: 'lucide:Clock', label: 'message.pendingSubmitting' },
|
|
91
91
|
steering: { icon: 'lucide:CornerDownRight', label: 'message.pendingSteering' },
|
|
92
92
|
queued: { icon: 'lucide:Clock', label: 'message.pendingQueued' },
|
|
93
|
+
syncing: { icon: 'lucide:RefreshCw', label: 'message.pendingSyncing' },
|
|
93
94
|
uncertain: { icon: 'lucide:CircleHelp', label: 'message.pendingUncertain' },
|
|
94
95
|
held: { icon: 'lucide:CirclePause', label: 'message.pendingHeld' },
|
|
95
96
|
} as const satisfies Record<THarnessPendingState, { icon: string; label: string }>;
|
package/ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.ts
CHANGED
|
@@ -38,7 +38,7 @@ import type {
|
|
|
38
38
|
import { DeesHarnessMessage } from '../dees-harness-message/dees-harness-message.js';
|
|
39
39
|
import { DeesHarnessPermissionCard } from '../dees-harness-permission-card/dees-harness-permission-card.js';
|
|
40
40
|
import { DeesHarnessToolRegistry } from '../toolregistry.js';
|
|
41
|
-
import { harnessApplyMessageDelta, harnessQuestionPending, harnessRendersToolRow } from '../harness.helpers.js';
|
|
41
|
+
import { harnessApplyMessageDelta, harnessQuestionPending, harnessReasoningIsStreaming, harnessRendersToolRow } from '../harness.helpers.js';
|
|
42
42
|
import { harnessArrivalStyles } from '../harness.styles.js';
|
|
43
43
|
import { byTimelineOrder, HarnessQueueController, harnessQueueStyles } from './harness-queue.js';
|
|
44
44
|
import '../dees-harness-status/dees-harness-status.js';
|
|
@@ -99,7 +99,7 @@ const workKindOf = (messageArg: IHarnessMessage): 'tool' | 'reasoning' | 'pendin
|
|
|
99
99
|
/** A message is still under way: it streams, thinks, or has a call that has not finished. */
|
|
100
100
|
const messageWorks = (messageArg: IHarnessMessage): boolean =>
|
|
101
101
|
Boolean(messageArg.streaming)
|
|
102
|
-
||
|
|
102
|
+
|| harnessReasoningIsStreaming(messageArg.reasoning)
|
|
103
103
|
|| messageArg.toolCall?.status === 'pending'
|
|
104
104
|
|| messageArg.toolCall?.status === 'running';
|
|
105
105
|
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import { dcLocalize } from '../../../i18n/localize.js';
|
|
13
13
|
import { themeDefaultStyles } from '../../00theme.js';
|
|
14
14
|
import type { IHarnessMessageViewState, IHarnessReasoningPart } from '../interfaces.js';
|
|
15
|
-
import { harnessFormatDuration } from '../harness.helpers.js';
|
|
15
|
+
import { harnessFormatDuration, harnessReasoningIsStreaming } from '../harness.helpers.js';
|
|
16
16
|
import '../../00group-utility/dees-icon/dees-icon.js';
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
@@ -174,7 +174,7 @@ export class DeesHarnessReasoning extends DeesElement {
|
|
|
174
174
|
];
|
|
175
175
|
|
|
176
176
|
public get isStreaming(): boolean {
|
|
177
|
-
return this.reasoningParts
|
|
177
|
+
return harnessReasoningIsStreaming(this.reasoningParts);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
public get isOpen(): boolean {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import type {
|
|
7
7
|
IHarnessMessage,
|
|
8
8
|
IHarnessQuestionRequest,
|
|
9
|
+
IHarnessReasoningPart,
|
|
9
10
|
IHarnessTodoItem,
|
|
10
11
|
IHarnessToolCall,
|
|
11
12
|
THarnessMessageStreamDelta,
|
|
@@ -27,6 +28,10 @@ import {
|
|
|
27
28
|
export const harnessMaxAttachmentBytes = 10 * 1024 * 1024;
|
|
28
29
|
export const harnessMaxTotalAttachmentBytes = 30 * 1024 * 1024;
|
|
29
30
|
|
|
31
|
+
/** A reasoning part is live once it has started and has yet to end. History can omit both times. */
|
|
32
|
+
export const harnessReasoningIsStreaming = (partsArg: readonly IHarnessReasoningPart[] | undefined): boolean =>
|
|
33
|
+
partsArg?.some((part) => part.startedAt !== undefined && part.endedAt === undefined) ?? false;
|
|
34
|
+
|
|
30
35
|
/**
|
|
31
36
|
* Where a proposal stands: the host's `state` once it set one past pending, else what the answer
|
|
32
37
|
* tells (`responseArg`, the request's own by default): `['confirm']` confirmed, any other answer
|
|
@@ -20,6 +20,9 @@ export type THarnessRole = 'user' | 'assistant' | 'system' | 'tool';
|
|
|
20
20
|
* next turn's input.
|
|
21
21
|
* - `queued`: confirmed to wait for the next turn, behind the running turn (the host's queue,
|
|
22
22
|
* or a harness that reads messages only between turns).
|
|
23
|
+
* - `syncing`: the host has a durable settlement receipt, but has not yet observed the exact
|
|
24
|
+
* message in canonical conversation history. Neither admission nor rejection is proved by the
|
|
25
|
+
* receipt alone; the host retains this message until it reconciles that history.
|
|
23
26
|
* - `uncertain`: dispatch was attempted, but the host cannot confirm whether the harness took it.
|
|
24
27
|
* The host retains the prompt until it can reconcile the outcome; it cannot be withdrawn, and a
|
|
25
28
|
* resend could deliver it twice. A host that can let the reader drop it lists `'discard'` in
|
|
@@ -28,7 +31,7 @@ export type THarnessRole = 'user' | 'assistant' | 'system' | 'tool';
|
|
|
28
31
|
* reader to resend it (`harness-held-resend`) or discard it (`harness-held-discard`) and is
|
|
29
32
|
* never sent on its own.
|
|
30
33
|
*/
|
|
31
|
-
export type THarnessPendingState = 'submitting' | 'steering' | 'queued' | 'uncertain' | 'held';
|
|
34
|
+
export type THarnessPendingState = 'submitting' | 'steering' | 'queued' | 'syncing' | 'uncertain' | 'held';
|
|
32
35
|
|
|
33
36
|
/**
|
|
34
37
|
* What the reader can do with a held or unconfirmed user message (`IHarnessMessage.heldActions`):
|
|
@@ -41,7 +44,7 @@ export interface IHarnessReasoningPart {
|
|
|
41
44
|
text: string;
|
|
42
45
|
/** epoch ms; adapters convert wire ISO strings */
|
|
43
46
|
startedAt?: number;
|
|
44
|
-
/**
|
|
47
|
+
/** epoch ms, omitted while thinking or when historical timing is unavailable */
|
|
45
48
|
endedAt?: number;
|
|
46
49
|
}
|
|
47
50
|
|
package/ts_web/i18n/de.ts
CHANGED
|
@@ -1354,6 +1354,7 @@ export default dcMessages.translation('de', {
|
|
|
1354
1354
|
'message.pendingSubmitting': 'Wird übermittelt…',
|
|
1355
1355
|
'message.pendingSteering': 'Steuert · wird beim nächsten Schritt gelesen',
|
|
1356
1356
|
'message.pendingQueued': 'Für den nächsten Lauf eingereiht',
|
|
1357
|
+
'message.pendingSyncing': 'Gesprächsverlauf wird abgeglichen…',
|
|
1357
1358
|
'message.pendingUncertain': 'Zustellung unbestätigt',
|
|
1358
1359
|
'message.pendingHeld': 'Zurückgehalten · nicht gesendet',
|
|
1359
1360
|
'message.resendUnconfirmed': 'Erneutes Senden könnte sie doppelt zustellen',
|
package/ts_web/i18n/es.ts
CHANGED
|
@@ -1282,6 +1282,7 @@ export default dcMessages.translation('es', {
|
|
|
1282
1282
|
'message.pendingSubmitting': 'Enviando…',
|
|
1283
1283
|
'message.pendingSteering': 'Dirigiendo · se leerá en el siguiente paso',
|
|
1284
1284
|
'message.pendingQueued': 'En cola para el siguiente turno',
|
|
1285
|
+
'message.pendingSyncing': 'Sincronizando el historial de la conversación…',
|
|
1285
1286
|
'message.pendingUncertain': 'Entrega sin confirmar',
|
|
1286
1287
|
'message.pendingHeld': 'Retenido · no enviado',
|
|
1287
1288
|
'message.resendUnconfirmed': 'Reenviarlo podría entregarlo dos veces',
|
package/ts_web/i18n/fr.ts
CHANGED
|
@@ -1282,6 +1282,7 @@ export default dcMessages.translation('fr', {
|
|
|
1282
1282
|
'message.pendingSubmitting': 'Envoi en cours…',
|
|
1283
1283
|
'message.pendingSteering': 'Orientation · lu à la prochaine étape',
|
|
1284
1284
|
'message.pendingQueued': 'En attente du prochain tour',
|
|
1285
|
+
'message.pendingSyncing': 'Synchronisation de l’historique de la conversation…',
|
|
1285
1286
|
'message.pendingUncertain': 'Remise non confirmée',
|
|
1286
1287
|
'message.pendingHeld': 'Retenu · non envoyé',
|
|
1287
1288
|
'message.resendUnconfirmed': 'Un nouvel envoi pourrait le remettre deux fois',
|
package/ts_web/i18n/messages.ts
CHANGED
|
@@ -1416,6 +1416,7 @@ export const dcMessages = plugins.smarti18n.defineCatalog({
|
|
|
1416
1416
|
'message.pendingSubmitting': { message: 'Submitting…', description: 'A local prompt submission is in flight and has not yet been durably acknowledged; it is not confirmed queued.' },
|
|
1417
1417
|
'message.pendingSteering': { message: 'Steering · read at the next step', description: 'Said on a message handed to the running turn that it has not read yet.' },
|
|
1418
1418
|
'message.pendingQueued': { message: 'Queued for the next turn', description: 'Said on a message that waits for the next turn.' },
|
|
1419
|
+
'message.pendingSyncing': { message: 'Syncing conversation history…', description: 'The host has a durable settlement receipt but has not yet observed this exact message in canonical history.' },
|
|
1419
1420
|
'message.pendingUncertain': { message: 'Delivery unconfirmed', description: 'Said when the host cannot confirm whether an attempted prompt reached the harness.' },
|
|
1420
1421
|
'message.pendingHeld': { message: 'Held · not sent', description: 'Said on a message that was not sent because the run was stopped.' },
|
|
1421
1422
|
'message.resendUnconfirmed': { message: 'A resend could deliver it twice', description: 'Said beside Discard on a prompt whose delivery is unconfirmed, to say why it offers no Resend.' },
|
/package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-YCMGTVXR.js.map → chunk-2G2FY5BM.js.map}
RENAMED
|
File without changes
|
/package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-3CEGXWBQ.js.map → chunk-BND2OLMT.js.map}
RENAMED
|
File without changes
|
|
File without changes
|