@tutti-os/agent-gui 0.0.126 → 0.0.128

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 (57) hide show
  1. package/dist/{AgentGUI-CKk3WQrn.d.ts → AgentGUI-DprRUk8h.d.ts} +9 -2
  2. package/dist/{AgentRichTextReadonly-KOUZGF5Q.js → AgentRichTextReadonly-UGZQXMPT.js} +6 -6
  3. package/dist/agent-conversation/index.d.ts +1 -1
  4. package/dist/agent-conversation/index.js +8 -8
  5. package/dist/agent-gui.d.ts +2 -2
  6. package/dist/agent-gui.js +15 -15
  7. package/dist/agent-message-center/index.js +6 -6
  8. package/dist/{agentGuiNodeTypes-DedIWrEI.d.ts → agentGuiNodeTypes-5TL1hyCN.d.ts} +8 -2
  9. package/dist/app/renderer/agentactivity.css +35 -1
  10. package/dist/{chunk-RB6ZYQBA.js → chunk-3LKGPCCL.js} +2 -2
  11. package/dist/{chunk-4CACBXIB.js → chunk-5ILYI4EM.js} +2 -2
  12. package/dist/{chunk-LUGELG5V.js → chunk-5QPOMKMQ.js} +2 -2
  13. package/dist/chunk-5QPOMKMQ.js.map +1 -0
  14. package/dist/{chunk-QDNOOAAS.js → chunk-6TYXZI35.js} +3 -3
  15. package/dist/{chunk-X22KJXVG.js → chunk-A3HZBKIQ.js} +2 -2
  16. package/dist/{chunk-G3XB4FAQ.js → chunk-BKTH4EVE.js} +3 -3
  17. package/dist/{chunk-CO6XO5A2.js → chunk-FNI4JFDM.js} +83 -5
  18. package/dist/chunk-FNI4JFDM.js.map +1 -0
  19. package/dist/{chunk-ADQENNSG.js → chunk-Q5JYEQK6.js} +3 -3
  20. package/dist/{chunk-PRE4IT6E.js → chunk-RABOGNWT.js} +5 -7
  21. package/dist/{chunk-PRE4IT6E.js.map → chunk-RABOGNWT.js.map} +1 -1
  22. package/dist/{chunk-BDWZUA3L.js → chunk-TBFWNWDX.js} +5 -5
  23. package/dist/{chunk-2ZVXN2Z7.js → chunk-UZP2LEQL.js} +9 -1
  24. package/dist/chunk-UZP2LEQL.js.map +1 -0
  25. package/dist/{chunk-6RMVLH3G.js → chunk-VH2UJCQG.js} +2 -2
  26. package/dist/{chunk-2JFMGOHU.js → chunk-VWIADFP4.js} +2 -2
  27. package/dist/chunk-VWIADFP4.js.map +1 -0
  28. package/dist/{chunk-F2Z7P7BB.js → chunk-YZF23LW4.js} +4 -4
  29. package/dist/{chunk-QWKJ646Z.js → chunk-Z4HPUA2G.js} +1503 -1176
  30. package/dist/chunk-Z4HPUA2G.js.map +1 -0
  31. package/dist/context-mention-palette/index.js +8 -8
  32. package/dist/i18n/index.d.ts +8 -0
  33. package/dist/i18n/index.js +2 -2
  34. package/dist/index.d.ts +4 -4
  35. package/dist/index.js +15 -15
  36. package/dist/index.js.map +1 -1
  37. package/dist/mention-file-presentation.js +1 -1
  38. package/dist/mention-search.js +6 -6
  39. package/dist/workbench/contribution.js +3 -3
  40. package/dist/workbench/index.js +3 -3
  41. package/dist/workbench/sessionTitle.js +2 -2
  42. package/package.json +12 -12
  43. package/dist/chunk-2JFMGOHU.js.map +0 -1
  44. package/dist/chunk-2ZVXN2Z7.js.map +0 -1
  45. package/dist/chunk-CO6XO5A2.js.map +0 -1
  46. package/dist/chunk-LUGELG5V.js.map +0 -1
  47. package/dist/chunk-QWKJ646Z.js.map +0 -1
  48. /package/dist/{AgentRichTextReadonly-KOUZGF5Q.js.map → AgentRichTextReadonly-UGZQXMPT.js.map} +0 -0
  49. /package/dist/{chunk-RB6ZYQBA.js.map → chunk-3LKGPCCL.js.map} +0 -0
  50. /package/dist/{chunk-4CACBXIB.js.map → chunk-5ILYI4EM.js.map} +0 -0
  51. /package/dist/{chunk-QDNOOAAS.js.map → chunk-6TYXZI35.js.map} +0 -0
  52. /package/dist/{chunk-X22KJXVG.js.map → chunk-A3HZBKIQ.js.map} +0 -0
  53. /package/dist/{chunk-G3XB4FAQ.js.map → chunk-BKTH4EVE.js.map} +0 -0
  54. /package/dist/{chunk-ADQENNSG.js.map → chunk-Q5JYEQK6.js.map} +0 -0
  55. /package/dist/{chunk-BDWZUA3L.js.map → chunk-TBFWNWDX.js.map} +0 -0
  56. /package/dist/{chunk-6RMVLH3G.js.map → chunk-VH2UJCQG.js.map} +0 -0
  57. /package/dist/{chunk-F2Z7P7BB.js.map → chunk-YZF23LW4.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
 
5
5
  // agent-gui/shared/mentionFilePresentation.ts
6
6
  function resolveAgentMentionFileVisualKind(input) {
7
- if (input.mentionNavigation === "agent-generated-folder-back") {
7
+ if (input.mentionNavigation === "agent-generated-folder-back" || input.mentionNavigation === "workspace-folder-back") {
8
8
  return "back";
9
9
  }
10
10
  if (input.entryKind === "directory") {
@@ -28,4 +28,4 @@ export {
28
28
  resolveAgentMentionFileVisualKind,
29
29
  resolveAgentMentionFileThumbnailUrl
30
30
  };
31
- //# sourceMappingURL=chunk-LUGELG5V.js.map
31
+ //# sourceMappingURL=chunk-5QPOMKMQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../agent-gui/shared/mentionFilePresentation.ts"],"sourcesContent":["import { resolveAgentWorkspaceFileVisualKind } from \"../../shared/workspaceFileVisualKind.ts\";\n\nexport type AgentMentionFileVisualKind =\n | \"back\"\n | \"document\"\n | \"code\"\n | \"markdown\"\n | \"image\"\n | \"video\"\n | \"folder\";\n\nexport function resolveAgentMentionFileVisualKind(input: {\n entryKind?: string | null;\n href?: string | null;\n mentionNavigation?: string | null;\n name?: string | null;\n path?: string | null;\n}): AgentMentionFileVisualKind {\n if (\n input.mentionNavigation === \"agent-generated-folder-back\" ||\n input.mentionNavigation === \"workspace-folder-back\"\n ) {\n return \"back\";\n }\n if (input.entryKind === \"directory\") {\n return \"folder\";\n }\n const pathOrName =\n input.path?.trim() || input.name?.trim() || input.href?.trim() || \"\";\n const kind = resolveAgentWorkspaceFileVisualKind(pathOrName, {\n refType: \"file\"\n });\n return kind === \"binary\" ? \"document\" : kind;\n}\n\nexport function resolveAgentMentionFileThumbnailUrl(input: {\n entryKind?: string | null;\n href?: string | null;\n name?: string | null;\n path?: string | null;\n thumbnailUrl?: string | null;\n}): string | undefined {\n if (resolveAgentMentionFileVisualKind(input) !== \"image\") {\n return undefined;\n }\n const thumbnailUrl = input.thumbnailUrl?.trim() ?? \"\";\n return thumbnailUrl || undefined;\n}\n"],"mappings":";;;;;AAWO,SAAS,kCAAkC,OAMnB;AAC7B,MACE,MAAM,sBAAsB,iCAC5B,MAAM,sBAAsB,yBAC5B;AACA,WAAO;AAAA,EACT;AACA,MAAI,MAAM,cAAc,aAAa;AACnC,WAAO;AAAA,EACT;AACA,QAAM,aACJ,MAAM,MAAM,KAAK,KAAK,MAAM,MAAM,KAAK,KAAK,MAAM,MAAM,KAAK,KAAK;AACpE,QAAM,OAAO,oCAAoC,YAAY;AAAA,IAC3D,SAAS;AAAA,EACX,CAAC;AACD,SAAO,SAAS,WAAW,aAAa;AAC1C;AAEO,SAAS,oCAAoC,OAM7B;AACrB,MAAI,kCAAkC,KAAK,MAAM,SAAS;AACxD,WAAO;AAAA,EACT;AACA,QAAM,eAAe,MAAM,cAAc,KAAK,KAAK;AACnD,SAAO,gBAAgB;AACzB;","names":[]}
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  resolveAgentMentionFileThumbnailUrl,
3
3
  resolveAgentMentionFileVisualKind
4
- } from "./chunk-LUGELG5V.js";
4
+ } from "./chunk-5QPOMKMQ.js";
5
5
  import {
6
6
  managedAgentRoundedIconUrl
7
7
  } from "./chunk-EDNJMG5T.js";
8
8
  import {
9
9
  translate,
10
10
  useTranslation
11
- } from "./chunk-6RMVLH3G.js";
11
+ } from "./chunk-VH2UJCQG.js";
12
12
  import {
13
13
  getAgentCustomMentionKind
14
14
  } from "./chunk-D2JUDUYY.js";
@@ -1500,4 +1500,4 @@ export {
1500
1500
  exitAgentFileMentionSuggestion,
1501
1501
  createAgentFileMentionExtension
1502
1502
  };
1503
- //# sourceMappingURL=chunk-QDNOOAAS.js.map
1503
+ //# sourceMappingURL=chunk-6TYXZI35.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  translateInUiLanguage
3
- } from "./chunk-2ZVXN2Z7.js";
3
+ } from "./chunk-UZP2LEQL.js";
4
4
  import {
5
5
  normalizeAgentTitleText
6
6
  } from "./chunk-MIJXEELH.js";
@@ -375,4 +375,4 @@ export {
375
375
  resolveAgentGuiWorkbenchHeaderTitle,
376
376
  resolveAgentGuiWorkbenchSessionTitle
377
377
  };
378
- //# sourceMappingURL=chunk-X22KJXVG.js.map
378
+ //# sourceMappingURL=chunk-A3HZBKIQ.js.map
@@ -9,7 +9,7 @@ import {
9
9
  resolveAgentGUIConversationTitleDisplayPrompt,
10
10
  resolveAgentGuiWorkbenchHeaderTitle,
11
11
  resolveAgentGuiWorkbenchSessionTitle
12
- } from "./chunk-X22KJXVG.js";
12
+ } from "./chunk-A3HZBKIQ.js";
13
13
  import {
14
14
  createAgentGuiWorkbenchNodeStateSource,
15
15
  migrateLegacyAgentGuiWorkbenchState,
@@ -276,7 +276,7 @@ function useAgentGuiWorkbenchBodyRenderError(nodeId) {
276
276
 
277
277
  // workbench/header.ts
278
278
  var LazyAgentRichTextReadonly = lazy(
279
- () => import("./AgentRichTextReadonly-KOUZGF5Q.js").then((module) => ({
279
+ () => import("./AgentRichTextReadonly-UGZQXMPT.js").then((module) => ({
280
280
  default: module.AgentRichTextReadonly
281
281
  }))
282
282
  );
@@ -1482,4 +1482,4 @@ export {
1482
1482
  AGENT_GUI_WORKBENCH_OPEN_EXTERNAL_IMPORT_EVENT,
1483
1483
  createAgentGuiWorkbenchContribution
1484
1484
  };
1485
- //# sourceMappingURL=chunk-G3XB4FAQ.js.map
1485
+ //# sourceMappingURL=chunk-BKTH4EVE.js.map
@@ -2,7 +2,7 @@ import {
2
2
  AgentRichTextReadonly,
3
3
  promptForProviderSkills,
4
4
  skillTriggerForPrefix
5
- } from "./chunk-RB6ZYQBA.js";
5
+ } from "./chunk-3LKGPCCL.js";
6
6
  import {
7
7
  classifyRecoverableAgentMessage,
8
8
  isProviderPlanLimitMessage,
@@ -38,7 +38,7 @@ import {
38
38
  resolveWorkspaceFileLinkAction,
39
39
  resolveWorkspaceFilePathCandidate,
40
40
  resolveWorkspaceLinkAction
41
- } from "./chunk-ADQENNSG.js";
41
+ } from "./chunk-Q5JYEQK6.js";
42
42
  import {
43
43
  cn
44
44
  } from "./chunk-KPMQGPYU.js";
@@ -46,7 +46,7 @@ import {
46
46
  useOptionalAgentActivityRuntime,
47
47
  useOptionalAgentHostApi,
48
48
  workspaceAgentProviderLabel
49
- } from "./chunk-2JFMGOHU.js";
49
+ } from "./chunk-VWIADFP4.js";
50
50
  import {
51
51
  fileChangeCountFromChanges,
52
52
  fileChangeEntriesFromChanges,
@@ -56,7 +56,7 @@ import {
56
56
  getActiveUiLanguage,
57
57
  translate,
58
58
  useTranslation
59
- } from "./chunk-6RMVLH3G.js";
59
+ } from "./chunk-VH2UJCQG.js";
60
60
  import {
61
61
  normalizeAgentTitleText
62
62
  } from "./chunk-MIJXEELH.js";
@@ -1684,6 +1684,78 @@ function isTerminalAgentMessageStatus(status) {
1684
1684
  return status === "completed" || status === "failed" || status === "canceled";
1685
1685
  }
1686
1686
 
1687
+ // shared/workspaceAgentTurnErrorProjection.ts
1688
+ function projectCanonicalTurnErrors({
1689
+ turns,
1690
+ sessionTurns,
1691
+ provider,
1692
+ agentSessionId
1693
+ }) {
1694
+ for (const canonicalTurn of sessionTurns) {
1695
+ if (canonicalTurn.outcome !== "failed" && canonicalTurn.outcome !== "interrupted") {
1696
+ continue;
1697
+ }
1698
+ const detail = canonicalTurn.error?.message.trim() ?? "";
1699
+ if (!detail) {
1700
+ continue;
1701
+ }
1702
+ const turn = getOrCreateTurn(turns, canonicalTurn.turnId);
1703
+ if (turn.agentMessages.some((message2) => message2.visibleError)) {
1704
+ continue;
1705
+ }
1706
+ const matchingMessage = turn.agentMessages.find(
1707
+ (message2) => message2.body.trim() === detail
1708
+ );
1709
+ if (matchingMessage) {
1710
+ matchingMessage.status = "failed";
1711
+ matchingMessage.statusKind = "failed";
1712
+ matchingMessage.visibleError = visibleErrorFromCanonicalTurn(
1713
+ canonicalTurn,
1714
+ provider
1715
+ );
1716
+ continue;
1717
+ }
1718
+ const message = {
1719
+ id: `turn-error:${agentSessionId}:${canonicalTurn.turnId}`,
1720
+ body: detail,
1721
+ status: "failed",
1722
+ statusKind: "failed",
1723
+ turnId: canonicalTurn.turnId,
1724
+ occurredAtUnixMs: canonicalTurn.settledAtUnixMs ?? canonicalTurn.updatedAtUnixMs,
1725
+ visibleError: visibleErrorFromCanonicalTurn(canonicalTurn, provider)
1726
+ };
1727
+ turn.agentMessages.push(message);
1728
+ turn.agentItems.push({ kind: "message", message });
1729
+ }
1730
+ }
1731
+ function getOrCreateTurn(turns, turnId) {
1732
+ const existing = turns.get(turnId);
1733
+ if (existing) {
1734
+ return existing;
1735
+ }
1736
+ const turn = {
1737
+ id: turnId,
1738
+ userMessage: null,
1739
+ userMessages: [],
1740
+ agentMessages: [],
1741
+ toolCalls: [],
1742
+ toolCallCount: 0,
1743
+ hasFailedToolCall: false,
1744
+ agentItems: []
1745
+ };
1746
+ turns.set(turnId, turn);
1747
+ return turn;
1748
+ }
1749
+ function visibleErrorFromCanonicalTurn(turn, provider) {
1750
+ return {
1751
+ code: turn.error?.code?.trim() || null,
1752
+ phase: "turn",
1753
+ provider: provider.trim() || null,
1754
+ detail: turn.error?.message.trim() || null,
1755
+ retryable: null
1756
+ };
1757
+ }
1758
+
1687
1759
  // shared/workspaceAgentTimelineCanonical.ts
1688
1760
  function buildCanonicalWorkspaceAgentDetailView({
1689
1761
  activity,
@@ -1812,6 +1884,12 @@ function buildCanonicalWorkspaceAgentDetailView({
1812
1884
  turn.agentItems.push({ kind: "message", message });
1813
1885
  }
1814
1886
  }
1887
+ projectCanonicalTurnErrors({
1888
+ turns,
1889
+ sessionTurns: sessionTurns.length > 0 ? sessionTurns : session.latestTurn ? [session.latestTurn] : [],
1890
+ provider: session.provider,
1891
+ agentSessionId: session.agentSessionId
1892
+ });
1815
1893
  const visibleTurns = [...turns.values()].filter(
1816
1894
  (turn) => turn.userMessages.length > 0 || turn.agentItems.length > 0
1817
1895
  );
@@ -14224,4 +14302,4 @@ export {
14224
14302
  AgentConversationFlow,
14225
14303
  useProjectedAgentConversation
14226
14304
  };
14227
- //# sourceMappingURL=chunk-CO6XO5A2.js.map
14305
+ //# sourceMappingURL=chunk-FNI4JFDM.js.map