@tutti-os/agent-gui 0.0.184 → 0.0.186

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.
@@ -7,7 +7,7 @@ import {
7
7
  reconcileProjectedAgentConversationVM,
8
8
  serializeAgentConversationForClipboard,
9
9
  useProjectedAgentConversation
10
- } from "../chunk-GAXQI5K6.js";
10
+ } from "../chunk-62JB3KCN.js";
11
11
  import "../chunk-LLIM2OX6.js";
12
12
  import "../chunk-THBCAUBR.js";
13
13
  import "../chunk-XJ34OIEQ.js";
package/dist/agent-gui.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AgentGUI
3
- } from "./chunk-VRA7STEJ.js";
3
+ } from "./chunk-43M2GHDA.js";
4
4
  import "./chunk-LB4AGT7B.js";
5
5
  import "./chunk-A4WCTHWS.js";
6
6
  import "./chunk-E5X3DSQZ.js";
@@ -9,7 +9,7 @@ import "./chunk-YSA4MXR5.js";
9
9
  import "./chunk-MHOYBRCY.js";
10
10
  import "./chunk-SZVHT57M.js";
11
11
  import "./chunk-5UTK6FDH.js";
12
- import "./chunk-GAXQI5K6.js";
12
+ import "./chunk-62JB3KCN.js";
13
13
  import "./chunk-LLIM2OX6.js";
14
14
  import "./chunk-THBCAUBR.js";
15
15
  import "./chunk-UP3ZDYTN.js";
@@ -8436,22 +8436,36 @@ html[data-theme="light"] [data-message-center-item-id].agent-gui-edge-glow {
8436
8436
  width: max-content;
8437
8437
  max-width: min(100%, var(--agent-mention-max-width, 16rem));
8438
8438
  color: inherit;
8439
- vertical-align: baseline;
8439
+ vertical-align: middle;
8440
8440
  }
8441
8441
 
8442
+ /* Entity mentions wrap the shared MentionPill in an interactive link. Keep
8443
+ that link layout-only so the pill remains the single owner of its visual
8444
+ box; otherwise the wrapper's padding and offset create a second pill around
8445
+ it and push adjacent queued mentions apart. */
8442
8446
  .agent-gui-node__composer-queued-prompt-markdown
8443
8447
  [data-agent-file-mention="true"].tsh-agent-object-token--entity {
8444
8448
  color: inherit;
8445
- top: 3px;
8449
+ top: 0;
8450
+ gap: 0;
8446
8451
  max-width: min(100%, var(--agent-mention-max-width, 16rem));
8447
- min-height: 24px;
8448
- padding: 2px 4px;
8449
- border: 1px solid transparent;
8450
- border-radius: 4px;
8451
- line-height: 20px;
8452
+ min-height: 0;
8453
+ padding: 0;
8454
+ border: 0;
8455
+ border-radius: 0;
8456
+ line-height: inherit;
8452
8457
  transition: none;
8453
8458
  }
8454
8459
 
8460
+ .agent-gui-node__composer-queued-prompt-markdown
8461
+ [data-agent-file-mention="true"].tsh-agent-object-token--file,
8462
+ .agent-gui-node__composer-queued-prompt-markdown
8463
+ [data-agent-file-mention="true"].tsh-agent-object-token--entity
8464
+ > [data-slot="mention-pill"] {
8465
+ top: 0;
8466
+ vertical-align: middle;
8467
+ }
8468
+
8455
8469
  .agent-gui-node__composer-queued-prompt-markdown
8456
8470
  [data-agent-file-mention="true"].tsh-agent-object-token:hover {
8457
8471
  border-color: transparent;
@@ -68,7 +68,7 @@ import {
68
68
  toLocalShortDateTime,
69
69
  updateAgentComposerDraft,
70
70
  useProjectedAgentConversation
71
- } from "./chunk-GAXQI5K6.js";
71
+ } from "./chunk-62JB3KCN.js";
72
72
  import {
73
73
  agentRichTextContentToPromptText,
74
74
  createAgentRichTextInputExtensions,
@@ -9193,7 +9193,7 @@ function useAgentGUIQueueActions({
9193
9193
  // agent-gui/agentGuiNode/controller/useAgentGUISubmitInteractionActions.ts
9194
9194
  import {
9195
9195
  selectEngineCancelState,
9196
- selectEngineHasVisibleQueuedSubmit,
9196
+ selectEngineHasVisibleQueuedSubmit as selectEngineHasVisibleQueuedSubmit2,
9197
9197
  selectPendingSubmitsForSession as selectPendingSubmitsForSession3
9198
9198
  } from "@tutti-os/agent-activity-core";
9199
9199
  import { useCallback as useCallback19, useEffect as useEffect7 } from "react";
@@ -9218,15 +9218,13 @@ function restoreFailedAgentGUIHomeDraft(input) {
9218
9218
  }
9219
9219
  return {
9220
9220
  ...input.drafts,
9221
- [input.draftKey]: agentPromptContentToComposerDraft(
9222
- input.content,
9223
- `activation-failure:${input.agentSessionId}`
9224
- )
9221
+ [input.draftKey]: snapshotAgentComposerDraft(input.submittedDraft)
9225
9222
  };
9226
9223
  }
9227
9224
 
9228
9225
  // agent-gui/agentGuiNode/controller/AgentGUIHomeDraftSettlementController.ts
9229
9226
  import {
9227
+ selectEngineHasVisibleQueuedSubmit,
9230
9228
  selectPendingActivations as selectPendingActivations2,
9231
9229
  selectPendingSubmitsForSession as selectPendingSubmitsForSession2
9232
9230
  } from "@tutti-os/agent-activity-core";
@@ -9262,10 +9260,9 @@ var AgentGUIHomeDraftSettlementController = class {
9262
9260
  if (activation?.status === "confirmed" || activation?.status === "failed" || activation?.status === "canceled") {
9263
9261
  this.applyDraftUpdate(
9264
9262
  (drafts) => activation.status === "confirmed" ? clearSubmittedDraftIfUnchanged({ drafts, snapshot }) : restoreFailedAgentGUIHomeDraft({
9265
- agentSessionId: activation.agentSessionId,
9266
- content: activation.content,
9267
9263
  draftKey: snapshot.sourceScopeKey,
9268
- drafts
9264
+ drafts,
9265
+ submittedDraft: snapshot.content
9269
9266
  })
9270
9267
  );
9271
9268
  delete this.snapshots[clientSubmitId];
@@ -9280,12 +9277,18 @@ var AgentGUIHomeDraftSettlementController = class {
9280
9277
  if (submit?.status !== "accepted" && submit?.status !== "confirmed" && submit?.status !== "failed") {
9281
9278
  continue;
9282
9279
  }
9280
+ if (submit.status === "failed" && selectEngineHasVisibleQueuedSubmit(
9281
+ state,
9282
+ submit.agentSessionId,
9283
+ clientSubmitId
9284
+ )) {
9285
+ continue;
9286
+ }
9283
9287
  this.applyDraftUpdate(
9284
9288
  (drafts) => submit.status === "failed" ? restoreFailedAgentGUIHomeDraft({
9285
- agentSessionId: submit.agentSessionId,
9286
- content: submit.content,
9287
9289
  draftKey: snapshot.sourceScopeKey,
9288
- drafts
9290
+ drafts,
9291
+ submittedDraft: snapshot.content
9289
9292
  }) : clearSubmittedDraftIfUnchanged({ drafts, snapshot })
9290
9293
  );
9291
9294
  delete this.snapshots[clientSubmitId];
@@ -9608,7 +9611,7 @@ function useAgentGUISubmitInteractionActions(input) {
9608
9611
  workspaceId
9609
9612
  });
9610
9613
  const queued = Boolean(
9611
- selectEngineHasVisibleQueuedSubmit(
9614
+ selectEngineHasVisibleQueuedSubmit2(
9612
9615
  sessionEngine.getSnapshot(),
9613
9616
  agentSessionId,
9614
9617
  submitTrace.clientSubmitId
@@ -40690,4 +40693,4 @@ export {
40690
40693
  AgentHandoffMenu,
40691
40694
  AgentGUI
40692
40695
  };
40693
- //# sourceMappingURL=chunk-VRA7STEJ.js.map
40696
+ //# sourceMappingURL=chunk-43M2GHDA.js.map