@tutti-os/agent-gui 0.0.101 → 0.0.103

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 (52) hide show
  1. package/README.md +31 -0
  2. package/dist/{AgentGUI-FECh2x1p.d.ts → AgentGUI-D6IQ0F_N.d.ts} +10 -2
  3. package/dist/agent-conversation/index.d.ts +1 -1
  4. package/dist/agent-conversation/index.js +7 -7
  5. package/dist/agent-gui.d.ts +3 -3
  6. package/dist/agent-gui.js +14 -14
  7. package/dist/agent-message-center/index.d.ts +1 -1
  8. package/dist/agent-message-center/index.js +7 -6
  9. package/dist/agent-message-center/index.js.map +1 -1
  10. package/dist/{agentGuiNodeTypes-BH3lz6gn.d.ts → agentGuiNodeTypes-8U3q_frv.d.ts} +1 -0
  11. package/dist/app/renderer/agentactivity.css +11 -0
  12. package/dist/{chunk-DWUVRWXD.js → chunk-3ZBDWWCV.js} +2 -2
  13. package/dist/{chunk-KAV2WHTG.js → chunk-5Z4ZXXX4.js} +2 -2
  14. package/dist/{chunk-UESYITH6.js → chunk-6PMLIVTI.js} +2 -2
  15. package/dist/{chunk-E5AD46HP.js → chunk-IBFGOAY3.js} +2 -2
  16. package/dist/{chunk-ZPKPIHMZ.js → chunk-IVY4OL7B.js} +69 -52
  17. package/dist/chunk-IVY4OL7B.js.map +1 -0
  18. package/dist/{chunk-VQOPBBBI.js → chunk-L2MTZMVH.js} +239 -152
  19. package/dist/chunk-L2MTZMVH.js.map +1 -0
  20. package/dist/{chunk-GCW57WYQ.js → chunk-PCXBTG5X.js} +3 -3
  21. package/dist/{chunk-4E3QCW6L.js → chunk-RGG5UGJD.js} +3 -1
  22. package/dist/chunk-RGG5UGJD.js.map +1 -0
  23. package/dist/{chunk-TDVYZEUI.js → chunk-SGGGE2F3.js} +126 -30
  24. package/dist/chunk-SGGGE2F3.js.map +1 -0
  25. package/dist/{chunk-MJOQP2ED.js → chunk-UHOVZI6B.js} +3 -3
  26. package/dist/{chunk-EUW6VPIK.js → chunk-WXMBD2O7.js} +11 -8
  27. package/dist/{chunk-EUW6VPIK.js.map → chunk-WXMBD2O7.js.map} +1 -1
  28. package/dist/{chunk-FAE7CXZO.js → chunk-XZD5KTM4.js} +11 -7
  29. package/dist/{chunk-FAE7CXZO.js.map → chunk-XZD5KTM4.js.map} +1 -1
  30. package/dist/{chunk-D7HMQLBO.js → chunk-ZRJS4MOQ.js} +2 -2
  31. package/dist/context-mention-palette/index.js +8 -8
  32. package/dist/i18n/index.d.ts +2 -0
  33. package/dist/i18n/index.js +2 -2
  34. package/dist/index.d.ts +5 -5
  35. package/dist/index.js +14 -14
  36. package/dist/index.js.map +1 -1
  37. package/dist/mention-search.js +6 -6
  38. package/dist/workbench/contribution.js +3 -3
  39. package/dist/workbench/index.js +3 -3
  40. package/dist/workbench/sessionTitle.js +2 -2
  41. package/package.json +12 -12
  42. package/dist/chunk-4E3QCW6L.js.map +0 -1
  43. package/dist/chunk-TDVYZEUI.js.map +0 -1
  44. package/dist/chunk-VQOPBBBI.js.map +0 -1
  45. package/dist/chunk-ZPKPIHMZ.js.map +0 -1
  46. /package/dist/{chunk-DWUVRWXD.js.map → chunk-3ZBDWWCV.js.map} +0 -0
  47. /package/dist/{chunk-KAV2WHTG.js.map → chunk-5Z4ZXXX4.js.map} +0 -0
  48. /package/dist/{chunk-UESYITH6.js.map → chunk-6PMLIVTI.js.map} +0 -0
  49. /package/dist/{chunk-E5AD46HP.js.map → chunk-IBFGOAY3.js.map} +0 -0
  50. /package/dist/{chunk-GCW57WYQ.js.map → chunk-PCXBTG5X.js.map} +0 -0
  51. /package/dist/{chunk-MJOQP2ED.js.map → chunk-UHOVZI6B.js.map} +0 -0
  52. /package/dist/{chunk-D7HMQLBO.js.map → chunk-ZRJS4MOQ.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-MIJXEELH.js";
4
4
  import {
5
5
  translateInUiLanguage
6
- } from "./chunk-4E3QCW6L.js";
6
+ } from "./chunk-RGG5UGJD.js";
7
7
  import {
8
8
  resolveAgentGUIProviderCatalogIdentity
9
9
  } from "./chunk-KJQERFKX.js";
@@ -238,4 +238,4 @@ export {
238
238
  resolveAgentGuiWorkbenchHeaderTitle,
239
239
  resolveAgentGuiWorkbenchSessionTitle
240
240
  };
241
- //# sourceMappingURL=chunk-KAV2WHTG.js.map
241
+ //# sourceMappingURL=chunk-5Z4ZXXX4.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-H6IQ63DQ.js";
4
4
  import {
5
5
  translate
6
- } from "./chunk-E5AD46HP.js";
6
+ } from "./chunk-IBFGOAY3.js";
7
7
  import {
8
8
  agentGUIProviderIdentityDisplayName,
9
9
  migratedAgentGUIProviderIdentityCatalog,
@@ -247,4 +247,4 @@ export {
247
247
  MANAGED_AGENT_ICON_FALLBACK_URL,
248
248
  managedAgentRoundedIconUrl
249
249
  };
250
- //# sourceMappingURL=chunk-UESYITH6.js.map
250
+ //# sourceMappingURL=chunk-6PMLIVTI.js.map
@@ -6,7 +6,7 @@ import {
6
6
  setCurrentAgentGuiI18nRuntime,
7
7
  translate,
8
8
  translateInUiLanguage
9
- } from "./chunk-4E3QCW6L.js";
9
+ } from "./chunk-RGG5UGJD.js";
10
10
 
11
11
  // i18n/index.ts
12
12
  import React, {
@@ -68,4 +68,4 @@ export {
68
68
  AgentGuiI18nProvider,
69
69
  useTranslation
70
70
  };
71
- //# sourceMappingURL=chunk-E5AD46HP.js.map
71
+ //# sourceMappingURL=chunk-IBFGOAY3.js.map
@@ -16,12 +16,7 @@ import {
16
16
  isWorkspaceAgentSyntheticControlMessage,
17
17
  mentionItemToAttrs,
18
18
  parseAgentMentionMarkdown
19
- } from "./chunk-GCW57WYQ.js";
20
- import {
21
- fileChangeCountFromChanges,
22
- fileChangeEntriesFromChanges,
23
- fileChangeTypeValue
24
- } from "./chunk-F5UR6EJG.js";
19
+ } from "./chunk-PCXBTG5X.js";
25
20
  import {
26
21
  AgentGUIConversation_styles_default,
27
22
  AgentMessageMarkdown,
@@ -39,19 +34,24 @@ import {
39
34
  resolveWorkspaceFilePathCandidate,
40
35
  resolveWorkspaceLinkAction,
41
36
  useAgentTargetPresentations
42
- } from "./chunk-MJOQP2ED.js";
37
+ } from "./chunk-UHOVZI6B.js";
43
38
  import {
44
39
  useOptionalAgentActivityRuntime,
45
40
  useOptionalAgentHostApi,
46
41
  workspaceAgentProviderLabel
47
- } from "./chunk-UESYITH6.js";
42
+ } from "./chunk-6PMLIVTI.js";
43
+ import {
44
+ fileChangeCountFromChanges,
45
+ fileChangeEntriesFromChanges,
46
+ fileChangeTypeValue
47
+ } from "./chunk-F5UR6EJG.js";
48
48
  import {
49
49
  normalizeAgentTitleText
50
50
  } from "./chunk-MIJXEELH.js";
51
51
  import {
52
52
  getActiveUiLanguage,
53
53
  translate
54
- } from "./chunk-E5AD46HP.js";
54
+ } from "./chunk-IBFGOAY3.js";
55
55
 
56
56
  // shared/imageGenerationTool.ts
57
57
  var KNOWN_IMAGE_GENERATION_TOOL_NAMES = /* @__PURE__ */ new Set([
@@ -3212,7 +3212,9 @@ function projectAgentPlanModeItem(call, input) {
3212
3212
  };
3213
3213
  }
3214
3214
  function answerForQuestion(questionId, answersByQuestionId, output) {
3215
- const value = answersByQuestionId[questionId];
3215
+ const responsePayload = objectValue2(output?.payload);
3216
+ const responseAnswersByQuestionId = objectValue2(responsePayload?.answersByQuestionId) ?? {};
3217
+ const value = answersByQuestionId[questionId] ?? responseAnswersByQuestionId[questionId];
3216
3218
  if (Array.isArray(value)) {
3217
3219
  return value.flatMap(
3218
3220
  (item) => typeof item === "string" && item.trim() ? [item.trim()] : []
@@ -3221,7 +3223,7 @@ function answerForQuestion(questionId, answersByQuestionId, output) {
3221
3223
  if (typeof value === "string" && value.trim()) {
3222
3224
  return value.trim();
3223
3225
  }
3224
- const answers = arrayValue2(output?.answers);
3226
+ const answers = arrayValue2(output?.answers) ?? arrayValue2(responsePayload?.answers);
3225
3227
  return answers && answers.length > 0 ? answers.filter(
3226
3228
  (item) => typeof item === "string" && item.trim().length > 0
3227
3229
  ) : null;
@@ -11859,53 +11861,65 @@ function normalizeToolKind(value) {
11859
11861
  // shared/agentConversation/components/tool-renderers/AgentAskUserQuestionContent.tsx
11860
11862
  import { jsx as jsx35, jsxs as jsxs25 } from "react/jsx-runtime";
11861
11863
  function AgentAskUserQuestionContent({
11862
- call
11864
+ call,
11865
+ onLinkClick
11863
11866
  }) {
11864
11867
  "use memo";
11865
11868
  const questions = call.askUserQuestion?.questions ?? [];
11869
+ const outputText = stringValue11(call.output?.text);
11866
11870
  if (questions.length === 0) {
11867
11871
  return null;
11868
11872
  }
11869
- return /* @__PURE__ */ jsx35("div", { className: "workspace-agents-status-panel__detail-tool-body", children: /* @__PURE__ */ jsx35(ToolSection, { title: translate("agentHost.agentTool.details.questions"), children: /* @__PURE__ */ jsx35("div", { className: "workspace-agents-status-panel__detail-tool-stack", children: questions.map((question) => {
11870
- const body = question.question || question.header || translate("agentHost.agentTool.details.questionFallback");
11871
- const answer = formatAnswer(question.answer);
11872
- const questionKey = question.id.trim() || `${question.header}:${question.question}:${question.options.map((option) => option.label).join("|")}`;
11873
- return /* @__PURE__ */ jsxs25(
11874
- "div",
11875
- {
11876
- className: "workspace-agents-status-panel__detail-tool-stack-item",
11877
- children: [
11878
- /* @__PURE__ */ jsx35("div", { className: "workspace-agents-status-panel__detail-tool-question", children: body }),
11879
- question.options.length > 0 ? /* @__PURE__ */ jsx35("div", { className: "workspace-agents-status-panel__detail-tool-stack", children: question.options.map((option) => /* @__PURE__ */ jsxs25(
11880
- "div",
11881
- {
11882
- className: "workspace-agents-status-panel__detail-tool-stack-item",
11883
- children: [
11884
- /* @__PURE__ */ jsx35("div", { className: "workspace-agents-status-panel__detail-tool-summary", children: option.label }),
11885
- option.description ? /* @__PURE__ */ jsx35("div", { className: "workspace-agents-status-panel__detail-tool-answer workspace-agents-status-panel__detail-tool-answer--muted", children: option.description }) : null
11886
- ]
11887
- },
11888
- `${questionKey}-option-${option.label}:${option.description}`
11889
- )) }) : null,
11890
- answer ? /* @__PURE__ */ jsx35("div", { className: "workspace-agents-status-panel__detail-tool-answer", children: translate("agentHost.agentTool.details.answerPrefix", {
11891
- answer
11892
- }) }) : /* @__PURE__ */ jsxs25("div", { className: "workspace-agents-status-panel__detail-tool-answer workspace-agents-status-panel__detail-tool-answer--muted inline-flex items-center gap-1.5", children: [
11893
- /* @__PURE__ */ jsx35(
11894
- MessageSquareMoreIcon,
11873
+ return /* @__PURE__ */ jsxs25("div", { className: "workspace-agents-status-panel__detail-tool-body", children: [
11874
+ /* @__PURE__ */ jsx35(ToolSection, { title: translate("agentHost.agentTool.details.questions"), children: /* @__PURE__ */ jsx35("div", { className: "workspace-agents-status-panel__detail-tool-stack", children: questions.map((question) => {
11875
+ const body = question.question || question.header || translate("agentHost.agentTool.details.questionFallback");
11876
+ const answer = formatAnswer(question.answer);
11877
+ const questionKey = question.id.trim() || `${question.header}:${question.question}:${question.options.map((option) => option.label).join("|")}`;
11878
+ return /* @__PURE__ */ jsxs25(
11879
+ "div",
11880
+ {
11881
+ className: "workspace-agents-status-panel__detail-tool-stack-item",
11882
+ children: [
11883
+ /* @__PURE__ */ jsx35("div", { className: "workspace-agents-status-panel__detail-tool-question", children: body }),
11884
+ question.options.length > 0 ? /* @__PURE__ */ jsx35("div", { className: "workspace-agents-status-panel__detail-tool-stack", children: question.options.map((option) => /* @__PURE__ */ jsxs25(
11885
+ "div",
11895
11886
  {
11896
- size: 14,
11897
- active: true,
11898
- "aria-hidden": "true",
11899
- className: "shrink-0"
11900
- }
11901
- ),
11902
- translate("agentHost.agentTool.details.waitingForAnswer")
11903
- ] })
11904
- ]
11905
- },
11906
- questionKey
11907
- );
11908
- }) }) }) });
11887
+ className: "workspace-agents-status-panel__detail-tool-stack-item",
11888
+ children: [
11889
+ /* @__PURE__ */ jsx35("div", { className: "workspace-agents-status-panel__detail-tool-summary", children: option.label }),
11890
+ option.description ? /* @__PURE__ */ jsx35("div", { className: "workspace-agents-status-panel__detail-tool-answer workspace-agents-status-panel__detail-tool-answer--muted", children: option.description }) : null
11891
+ ]
11892
+ },
11893
+ `${questionKey}-option-${option.label}:${option.description}`
11894
+ )) }) : null,
11895
+ answer ? /* @__PURE__ */ jsx35("div", { className: "workspace-agents-status-panel__detail-tool-answer", children: translate("agentHost.agentTool.details.answerPrefix", {
11896
+ answer
11897
+ }) }) : /* @__PURE__ */ jsxs25("div", { className: "workspace-agents-status-panel__detail-tool-answer workspace-agents-status-panel__detail-tool-answer--muted inline-flex items-center gap-1.5", children: [
11898
+ /* @__PURE__ */ jsx35(
11899
+ MessageSquareMoreIcon,
11900
+ {
11901
+ size: 14,
11902
+ active: true,
11903
+ "aria-hidden": "true",
11904
+ className: "shrink-0"
11905
+ }
11906
+ ),
11907
+ translate("agentHost.agentTool.details.waitingForAnswer")
11908
+ ] })
11909
+ ]
11910
+ },
11911
+ questionKey
11912
+ );
11913
+ }) }) }),
11914
+ outputText ? /* @__PURE__ */ jsx35(ToolSection, { title: translate("agentHost.agentTool.details.output"), children: /* @__PURE__ */ jsx35(
11915
+ ToolMarkdownBlock,
11916
+ {
11917
+ content: outputText,
11918
+ onLinkClick,
11919
+ collapsible: true
11920
+ }
11921
+ ) }) : null
11922
+ ] });
11909
11923
  }
11910
11924
  function formatAnswer(answer) {
11911
11925
  if (Array.isArray(answer)) {
@@ -11913,6 +11927,9 @@ function formatAnswer(answer) {
11913
11927
  }
11914
11928
  return typeof answer === "string" && answer.trim() ? answer.trim() : null;
11915
11929
  }
11930
+ function stringValue11(value) {
11931
+ return typeof value === "string" && value.trim() ? value.trim() : null;
11932
+ }
11916
11933
 
11917
11934
  // shared/agentConversation/components/tool-renderers/terminal/AgentTerminalBlock.tsx
11918
11935
  import { useMemo as useMemo4, useState as useState11 } from "react";
@@ -15338,4 +15355,4 @@ export {
15338
15355
  AgentConversationFlow,
15339
15356
  useProjectedAgentConversation
15340
15357
  };
15341
- //# sourceMappingURL=chunk-ZPKPIHMZ.js.map
15358
+ //# sourceMappingURL=chunk-IVY4OL7B.js.map