@tutti-os/agent-gui 0.0.125 → 0.0.127
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/{AgentGUI-DMtA0gbf.d.ts → AgentGUI-DprRUk8h.d.ts} +10 -3
- package/dist/{AgentRichTextReadonly-G5D73743.js → AgentRichTextReadonly-SPIPM3UM.js} +5 -5
- package/dist/agent-conversation/index.d.ts +1 -1
- package/dist/agent-conversation/index.js +7 -7
- package/dist/agent-gui.d.ts +3 -3
- package/dist/agent-gui.js +15 -15
- package/dist/agent-message-center/index.js +6 -6
- package/dist/{agentFileMentionContracts-DY4Z70CN.d.ts → agentFileMentionContracts-CWAeuL7S.d.ts} +1 -1
- package/dist/{agentGuiNodeTypes-DedIWrEI.d.ts → agentGuiNodeTypes-5TL1hyCN.d.ts} +8 -2
- package/dist/app/renderer/agentactivity.css +10 -1
- package/dist/{chunk-A2B6QKNF.js → chunk-54GR2G3U.js} +10 -9
- package/dist/chunk-54GR2G3U.js.map +1 -0
- package/dist/{chunk-OKGXHKJ2.js → chunk-D5CIV4IB.js} +2 -2
- package/dist/chunk-D5CIV4IB.js.map +1 -0
- package/dist/{chunk-WIQHLQFN.js → chunk-EG7IIFNL.js} +3 -3
- package/dist/{chunk-XXACYFIR.js → chunk-JE2DXS4U.js} +2 -2
- package/dist/{chunk-ZCNZ53CF.js → chunk-JVISXD4K.js} +2 -2
- package/dist/{chunk-24TBYDXC.js → chunk-JWB5Z5GS.js} +4 -4
- package/dist/{chunk-KRG7EBHG.js → chunk-LWJITLCI.js} +2 -2
- package/dist/{chunk-JM24HADP.js → chunk-RMQREVJY.js} +1 -1
- package/dist/chunk-RMQREVJY.js.map +1 -0
- package/dist/{chunk-KACVD2GZ.js → chunk-T2CHVUXH.js} +11 -5
- package/dist/chunk-T2CHVUXH.js.map +1 -0
- package/dist/{chunk-UNCXTPFX.js → chunk-WB3KV4VH.js} +3 -3
- package/dist/{chunk-ARDFK5NC.js → chunk-WKFMSABH.js} +83 -5
- package/dist/chunk-WKFMSABH.js.map +1 -0
- package/dist/{chunk-5O42C33J.js → chunk-WKYMLLHT.js} +2 -2
- package/dist/{chunk-XJ2U66WG.js → chunk-YJKTYMF4.js} +170 -18
- package/dist/chunk-YJKTYMF4.js.map +1 -0
- package/dist/{chunk-RN7DI3Y2.js → chunk-YWKS4ESK.js} +2 -2
- package/dist/{chunk-HLXQ7BUI.js → chunk-ZXHXR2KT.js} +1049 -818
- package/dist/chunk-ZXHXR2KT.js.map +1 -0
- package/dist/context-mention-palette/index.d.ts +1 -1
- package/dist/context-mention-palette/index.js +8 -8
- package/dist/context-mention-provider.d.ts +15 -2
- package/dist/context-mention-provider.js +1 -1
- package/dist/i18n/index.d.ts +10 -4
- package/dist/i18n/index.js +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/mention-search.d.ts +8 -3
- package/dist/mention-search.js +6 -6
- package/dist/workbench/contribution.js +3 -3
- package/dist/workbench/index.js +3 -3
- package/dist/workbench/sessionTitle.js +2 -2
- package/package.json +14 -14
- package/dist/chunk-A2B6QKNF.js.map +0 -1
- package/dist/chunk-ARDFK5NC.js.map +0 -1
- package/dist/chunk-HLXQ7BUI.js.map +0 -1
- package/dist/chunk-JM24HADP.js.map +0 -1
- package/dist/chunk-KACVD2GZ.js.map +0 -1
- package/dist/chunk-OKGXHKJ2.js.map +0 -1
- package/dist/chunk-XJ2U66WG.js.map +0 -1
- /package/dist/{AgentRichTextReadonly-G5D73743.js.map → AgentRichTextReadonly-SPIPM3UM.js.map} +0 -0
- /package/dist/{chunk-WIQHLQFN.js.map → chunk-EG7IIFNL.js.map} +0 -0
- /package/dist/{chunk-XXACYFIR.js.map → chunk-JE2DXS4U.js.map} +0 -0
- /package/dist/{chunk-ZCNZ53CF.js.map → chunk-JVISXD4K.js.map} +0 -0
- /package/dist/{chunk-24TBYDXC.js.map → chunk-JWB5Z5GS.js.map} +0 -0
- /package/dist/{chunk-KRG7EBHG.js.map → chunk-LWJITLCI.js.map} +0 -0
- /package/dist/{chunk-UNCXTPFX.js.map → chunk-WB3KV4VH.js.map} +0 -0
- /package/dist/{chunk-5O42C33J.js.map → chunk-WKYMLLHT.js.map} +0 -0
- /package/dist/{chunk-RN7DI3Y2.js.map → chunk-YWKS4ESK.js.map} +0 -0
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
getOptionalAgentHostApi,
|
|
8
8
|
useOptionalAgentHostApi
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D5CIV4IB.js";
|
|
10
10
|
import {
|
|
11
11
|
managedAgentRoundedIconUrl
|
|
12
12
|
} from "./chunk-EDNJMG5T.js";
|
|
13
13
|
import {
|
|
14
14
|
translate,
|
|
15
15
|
useTranslation
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JVISXD4K.js";
|
|
17
17
|
import {
|
|
18
18
|
resolveAgentWorkspaceFileVisualKind
|
|
19
19
|
} from "./chunk-PJP5BUU6.js";
|
|
@@ -3729,4 +3729,4 @@ export {
|
|
|
3729
3729
|
AgentMessageMarkdown,
|
|
3730
3730
|
CustomScrollArea
|
|
3731
3731
|
};
|
|
3732
|
-
//# sourceMappingURL=chunk-
|
|
3732
|
+
//# sourceMappingURL=chunk-WB3KV4VH.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
AgentRichTextReadonly,
|
|
3
3
|
promptForProviderSkills,
|
|
4
4
|
skillTriggerForPrefix
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WKYMLLHT.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-
|
|
41
|
+
} from "./chunk-WB3KV4VH.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-
|
|
49
|
+
} from "./chunk-D5CIV4IB.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-
|
|
59
|
+
} from "./chunk-JVISXD4K.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-
|
|
14305
|
+
//# sourceMappingURL=chunk-WKFMSABH.js.map
|