@tutti-os/agent-gui 0.0.68 → 0.0.70

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 (67) hide show
  1. package/README.md +4 -5
  2. package/dist/agent-conversation/index.d.ts +2 -2
  3. package/dist/agent-conversation/index.js +6 -6
  4. package/dist/agent-message-center/index.js +8 -8
  5. package/dist/{agentGuiNodeTypes-BTHu_g4m.d.ts → agentGuiNodeTypes-CmLUy5Jt.d.ts} +8 -6
  6. package/dist/app/renderer/agentactivity.css +209 -4
  7. package/dist/app/renderer/assets/icons/agents/opencode-flat-filled.svg +4 -0
  8. package/dist/{chunk-3QPN2Y7R.js → chunk-DGNKXT3Q.js} +23 -129
  9. package/dist/chunk-DGNKXT3Q.js.map +1 -0
  10. package/dist/{chunk-GXHZNIWT.js → chunk-DXENDZEF.js} +2 -2
  11. package/dist/{chunk-GOEL3BO7.js → chunk-FTSEVC6O.js} +2 -2
  12. package/dist/{chunk-J335PQ5H.js → chunk-ISQCYEUJ.js} +12 -27
  13. package/dist/chunk-ISQCYEUJ.js.map +1 -0
  14. package/dist/{chunk-C2M2ELXF.js → chunk-IZX2YQXY.js} +3 -3
  15. package/dist/{chunk-ZZBLWZJR.js → chunk-KS35VKHM.js} +1 -2
  16. package/dist/chunk-KS35VKHM.js.map +1 -0
  17. package/dist/{chunk-LQRD4X6R.js → chunk-KTIHLBCN.js} +2 -2
  18. package/dist/{chunk-A2KZVRUO.js → chunk-MVPSFOJZ.js} +2 -2
  19. package/dist/{chunk-YE5JSME7.js → chunk-N37A62BK.js} +17 -1
  20. package/dist/chunk-N37A62BK.js.map +1 -0
  21. package/dist/{chunk-VRV6GBF5.js → chunk-NROZAN34.js} +8 -1
  22. package/dist/chunk-NROZAN34.js.map +1 -0
  23. package/dist/{chunk-QGKK6FHC.js → chunk-QDWV5VTD.js} +5 -5
  24. package/dist/{chunk-DYX6466P.js → chunk-QJ42HQ24.js} +4 -4
  25. package/dist/{chunk-AIR6A4NP.js → chunk-SC3PS7AT.js} +2 -2
  26. package/dist/{chunk-D22A3KGQ.js → chunk-SG6A35BU.js} +2 -2
  27. package/dist/{chunk-KJLSZETD.js → chunk-WWY6MYMU.js} +3 -3
  28. package/dist/{chunk-TB7PKP6F.js → chunk-Y3C5EHSW.js} +61 -17
  29. package/dist/chunk-Y3C5EHSW.js.map +1 -0
  30. package/dist/context-mention-palette/index.js +7 -7
  31. package/dist/i18n/index.d.ts +22 -128
  32. package/dist/i18n/index.js +2 -2
  33. package/dist/index.d.ts +114 -109
  34. package/dist/index.js +599 -213
  35. package/dist/index.js.map +1 -1
  36. package/dist/opencode-flat-filled-CYAJPX45.svg +4 -0
  37. package/dist/queued-prompt-runtime.d.ts +2 -2
  38. package/dist/{types-BwDrG654.d.ts → types-DZ79b8Zn.d.ts} +6 -1
  39. package/dist/workbench/contribution.d.ts +9 -1
  40. package/dist/workbench/contribution.js +4 -4
  41. package/dist/workbench/index.d.ts +5 -2
  42. package/dist/workbench/index.js +7 -7
  43. package/dist/workbench/launch.d.ts +1 -1
  44. package/dist/workbench/providerCatalog.d.ts +1 -1
  45. package/dist/workbench/sessionTitle.d.ts +1 -1
  46. package/dist/workbench/sessionTitle.js +3 -3
  47. package/dist/workbench/state.d.ts +1 -1
  48. package/dist/workbench/state.js +2 -2
  49. package/dist/workbench/types.d.ts +1 -1
  50. package/dist/workspace-agent-generated-files.js +3 -3
  51. package/package.json +12 -12
  52. package/dist/chunk-3QPN2Y7R.js.map +0 -1
  53. package/dist/chunk-J335PQ5H.js.map +0 -1
  54. package/dist/chunk-TB7PKP6F.js.map +0 -1
  55. package/dist/chunk-VRV6GBF5.js.map +0 -1
  56. package/dist/chunk-YE5JSME7.js.map +0 -1
  57. package/dist/chunk-ZZBLWZJR.js.map +0 -1
  58. /package/dist/{chunk-GXHZNIWT.js.map → chunk-DXENDZEF.js.map} +0 -0
  59. /package/dist/{chunk-GOEL3BO7.js.map → chunk-FTSEVC6O.js.map} +0 -0
  60. /package/dist/{chunk-C2M2ELXF.js.map → chunk-IZX2YQXY.js.map} +0 -0
  61. /package/dist/{chunk-LQRD4X6R.js.map → chunk-KTIHLBCN.js.map} +0 -0
  62. /package/dist/{chunk-A2KZVRUO.js.map → chunk-MVPSFOJZ.js.map} +0 -0
  63. /package/dist/{chunk-QGKK6FHC.js.map → chunk-QDWV5VTD.js.map} +0 -0
  64. /package/dist/{chunk-DYX6466P.js.map → chunk-QJ42HQ24.js.map} +0 -0
  65. /package/dist/{chunk-AIR6A4NP.js.map → chunk-SC3PS7AT.js.map} +0 -0
  66. /package/dist/{chunk-D22A3KGQ.js.map → chunk-SG6A35BU.js.map} +0 -0
  67. /package/dist/{chunk-KJLSZETD.js.map → chunk-WWY6MYMU.js.map} +0 -0
@@ -334,14 +334,14 @@ declare const agentGuiI18nResources: {
334
334
  readonly agentGui: {
335
335
  readonly initialPlaceholder: "Type @ to reference sessions, files, tasks, and apps";
336
336
  readonly followupPlaceholder: "Request follow-up changes from {{provider}}";
337
- readonly installRequiredPlaceholder: "Finish setting up {{provider}} to send messages";
338
- readonly installRequiredAction: "Set up";
337
+ readonly installRequiredPlaceholder: "Connect {{provider}} to send messages";
338
+ readonly installRequiredAction: "Connect";
339
339
  readonly providerGateCheckingTitle: "Checking your agent";
340
340
  readonly providerGateCheckingDescription: "One moment while we check whether {{provider}} is ready.";
341
341
  readonly providerGateCheckingAgentsDescription: "One moment while we check whether agents are ready.";
342
- readonly providerGateInstallTitle: "Install {{provider}} first";
343
- readonly providerGateInstallDescription: "{{provider}} needs to be installed before you can start a new chat here.";
344
- readonly providerGateInstallAction: "Install";
342
+ readonly providerGateInstallTitle: "Connect {{provider}} first";
343
+ readonly providerGateInstallDescription: "{{provider}} needs to be connected before you can start a new chat here.";
344
+ readonly providerGateInstallAction: "Connect";
345
345
  readonly providerGateLoginTitle: "Log in to {{provider}}";
346
346
  readonly providerGateLoginDescription: "Log in with your account to start chatting with {{provider}}.";
347
347
  readonly providerGateLoginAction: "Log in";
@@ -351,7 +351,7 @@ declare const agentGuiI18nResources: {
351
351
  readonly providerGateUnavailableTitle: "{{provider}} is not ready yet";
352
352
  readonly providerGateUnavailableDescription: "We could not confirm that {{provider}} is ready. Try checking again.";
353
353
  readonly providerGateRetryAction: "Check again";
354
- readonly providerGatePendingInstall: "Installing…";
354
+ readonly providerGatePendingInstall: "Connecting…";
355
355
  readonly providerGatePendingLogin: "Opening sign in…";
356
356
  readonly providerGatePendingRefresh: "Checking…";
357
357
  readonly collaboratorSessionReadOnlyPlaceholder: "This session belongs to another user and cannot be replied to directly";
@@ -506,6 +506,7 @@ declare const agentGuiI18nResources: {
506
506
  readonly slashStatusBaseUrl: "Base URL";
507
507
  readonly slashStatusContext: "Context";
508
508
  readonly slashStatusLimits: "Usage Limits";
509
+ readonly slashStatusAccount: "Account";
509
510
  readonly slashStatusClose: "Close";
510
511
  readonly slashStatusFiveHourLimit: "5h limit";
511
512
  readonly slashStatusWeeklyLimit: "7d limit";
@@ -539,6 +540,7 @@ declare const agentGuiI18nResources: {
539
540
  readonly planImplementationSkip: "Stay in Plan Mode";
540
541
  readonly noRunningResponse: "No running response to stop.";
541
542
  readonly composerTextMenu: "Composer text actions";
543
+ readonly pastedTextPromptAttachment: "Pasted text attachment: {{name}}";
542
544
  readonly copyMessage: "Copy message";
543
545
  readonly copyImage: "Copy image";
544
546
  readonly messageCopied: "Copied";
@@ -617,64 +619,8 @@ declare const agentGuiI18nResources: {
617
619
  readonly conversationFilterTutti: "Tutti";
618
620
  readonly providerSwitchLabel: "Switch provider";
619
621
  readonly handoffConversation: "Handoff";
622
+ readonly handoffConversationTooltip: "Hand off to another agent";
620
623
  readonly handoffConversationMenu: "Choose an agent for handoff";
621
- readonly batchRunnerStandaloneTitle: "Agent GUI batch runner";
622
- readonly batchRunnerSubtitle: "Run JSONL prompt cases and review execution results";
623
- readonly batchRunnerPromptSource: "Case source";
624
- readonly batchRunnerSelectAgent: "Select Agent";
625
- readonly batchRunnerUploadFile: "Upload JSONL";
626
- readonly batchRunnerUseBuiltInFile: "Use built-in cases";
627
- readonly batchRunnerSelectFile: "Select JSONL";
628
- readonly batchRunnerProviderClaudeCode: "Claude Code";
629
- readonly batchRunnerProviderCodex: "Codex";
630
- readonly batchRunnerProviderHermes: "Hermes";
631
- readonly batchRunnerProviderNexight: "Nexight";
632
- readonly batchRunnerProviderOpenClaw: "OpenClaw";
633
- readonly batchRunnerProviderTuttiAgent: "Tutti Agent";
634
- readonly batchRunnerRun: "Run";
635
- readonly batchRunnerRunning: "Running...";
636
- readonly batchRunnerExport: "Export";
637
- readonly batchRunnerExporting: "Exporting...";
638
- readonly batchRunnerNoFile: "No JSONL selected";
639
- readonly batchRunnerLoadedFile: "{{file}} · {{count}} cases";
640
- readonly batchRunnerLoadedFileMeta: "{{count}} cases";
641
- readonly batchRunnerEmptyFile: "No prompt cases found.";
642
- readonly batchRunnerParseInvalidJson: "Line {{line}}: invalid JSON.";
643
- readonly batchRunnerParseObjectRequired: "Line {{line}}: each row must be a JSON object.";
644
- readonly batchRunnerParsePromptRequired: "Line {{line}}: prompt is required.";
645
- readonly batchRunnerLine: "Line";
646
- readonly batchRunnerAgent: "Agent";
647
- readonly batchRunnerCase: "Case";
648
- readonly batchRunnerStatus: "Status";
649
- readonly batchRunnerIssues: "Tasks";
650
- readonly batchRunnerSession: "Session";
651
- readonly batchRunnerSessionEmpty: "Select a case with a session to inspect its timeline.";
652
- readonly batchRunnerSessionLoading: "Loading";
653
- readonly batchRunnerSessionRefresh: "Refresh";
654
- readonly batchRunnerSessionBackToResults: "Back to results";
655
- readonly batchRunnerSessionRawJson: "Raw JSON";
656
- readonly batchRunnerSessionErrorCount: "{{count}} errors";
657
- readonly batchRunnerSessionToolFailureCount: "{{count}} tool failures";
658
- readonly batchRunnerStatus_pending: "Pending";
659
- readonly batchRunnerStatus_running: "Running";
660
- readonly batchRunnerStatus_completed: "Done";
661
- readonly batchRunnerStatus_failed: "Failed";
662
- readonly batchRunnerStatus_canceled: "Canceled";
663
- readonly batchRunnerStatus_blocked: "Blocked";
664
- readonly batchRunnerStatus_error: "Error";
665
- readonly batchRunnerProgress: "Progress";
666
- readonly batchRunnerTotalCases: "{{count}} cases";
667
- readonly batchRunnerIssueCases: "{{count}} tasks";
668
- readonly batchRunnerSearchPlaceholder: "Search cases";
669
- readonly batchRunnerAllStatuses: "All statuses";
670
- readonly batchRunnerActions: "Actions";
671
- readonly batchRunnerCopySession: "Copy session id";
672
- readonly batchRunnerOpenSession: "Open session";
673
- readonly batchRunnerNoResults: "No matching cases";
674
- readonly batchRunnerVisibleCount: "Total {{count}}";
675
- readonly batchRunnerPageIndicator: "Page {{page}} / {{total}}";
676
- readonly batchRunnerPageSize: "{{count}} / page";
677
- readonly batchRunnerExported: "Exported {{file}}";
678
624
  readonly startConversation: "Start session";
679
625
  readonly selectConversation: "Select a session";
680
626
  readonly loadingConversations: "Loading sessions...";
@@ -774,7 +720,7 @@ declare const agentGuiI18nResources: {
774
720
  readonly visibleErrorConfigTimeout: "{{provider}} couldn't apply session settings before the request timed out. Try again in a moment.";
775
721
  readonly visibleErrorStreamDisconnected: "{{provider}}'s response was interrupted before it completed. Try again in a moment.";
776
722
  readonly visibleErrorConcurrencyLimit: "{{provider}} is handling too many requests right now. Try again after another task finishes.";
777
- readonly visibleErrorActionInstall: "Set up";
723
+ readonly visibleErrorActionInstall: "Connect";
778
724
  readonly visibleErrorActionUpgrade: "Upgrade";
779
725
  readonly visibleErrorActionRelogin: "Sign in";
780
726
  readonly visibleErrorActionCheckNetwork: "Check network";
@@ -902,6 +848,7 @@ declare const agentGuiI18nResources: {
902
848
  readonly fileMentionEmpty: "Search workspace files based on your input";
903
849
  readonly fileMentionError: "Unable to search Files.";
904
850
  readonly fileMentionTabHint: "Tab switch category | ←→ enter/leave folder | ↑↓ switch selection";
851
+ readonly fileDropHint: "Drop files to add them to the session";
905
852
  readonly mentionPalette: "Mention context";
906
853
  readonly addReference: "Add reference";
907
854
  readonly addContent: "Add files and more";
@@ -2872,14 +2819,14 @@ declare const agentGuiI18nResources: {
2872
2819
  readonly agentGui: {
2873
2820
  readonly initialPlaceholder: "输入 @ 引用会话、文件、任务和应用";
2874
2821
  readonly followupPlaceholder: "要求 {{provider}} 继续后续变更";
2875
- readonly installRequiredPlaceholder: "请先完成 {{provider}} 配置,然后再发送消息";
2876
- readonly installRequiredAction: "设置";
2822
+ readonly installRequiredPlaceholder: "请先连接 {{provider}},然后再发送消息";
2823
+ readonly installRequiredAction: "连接";
2877
2824
  readonly providerGateCheckingTitle: "正在检查 Agent";
2878
2825
  readonly providerGateCheckingDescription: "稍等一下,我们正在确认 {{provider}} 是否已经可用。";
2879
2826
  readonly providerGateCheckingAgentsDescription: "稍等一下,我们正在确认 agents 是否已经可用。";
2880
- readonly providerGateInstallTitle: "先安装 {{provider}}";
2881
- readonly providerGateInstallDescription: "需要先安装 {{provider}},才能在这里开始新的对话。";
2882
- readonly providerGateInstallAction: "安装";
2827
+ readonly providerGateInstallTitle: "先连接 {{provider}}";
2828
+ readonly providerGateInstallDescription: "需要先连接 {{provider}},才能在这里开始新的对话。";
2829
+ readonly providerGateInstallAction: "连接";
2883
2830
  readonly providerGateLoginTitle: "登录 {{provider}}";
2884
2831
  readonly providerGateLoginDescription: "使用账号登录后即可开始使用 {{provider}} 对话。";
2885
2832
  readonly providerGateLoginAction: "登录";
@@ -2889,7 +2836,7 @@ declare const agentGuiI18nResources: {
2889
2836
  readonly providerGateUnavailableTitle: "{{provider}} 暂时还不可用";
2890
2837
  readonly providerGateUnavailableDescription: "我们还不能确认 {{provider}} 已准备好,可以再检测一次。";
2891
2838
  readonly providerGateRetryAction: "重新检测";
2892
- readonly providerGatePendingInstall: "正在安装…";
2839
+ readonly providerGatePendingInstall: "正在连接…";
2893
2840
  readonly providerGatePendingLogin: "正在打开登录…";
2894
2841
  readonly providerGatePendingRefresh: "正在检测…";
2895
2842
  readonly collaboratorSessionReadOnlyPlaceholder: "非当前用户会话,不可直接对话";
@@ -3044,6 +2991,7 @@ declare const agentGuiI18nResources: {
3044
2991
  readonly slashStatusBaseUrl: "Base URL";
3045
2992
  readonly slashStatusContext: "上下文";
3046
2993
  readonly slashStatusLimits: "限制";
2994
+ readonly slashStatusAccount: "账户";
3047
2995
  readonly slashStatusClose: "关闭";
3048
2996
  readonly slashStatusFiveHourLimit: "5h limit";
3049
2997
  readonly slashStatusWeeklyLimit: "7d limit";
@@ -3077,6 +3025,7 @@ declare const agentGuiI18nResources: {
3077
3025
  readonly planImplementationSkip: "留在计划模式";
3078
3026
  readonly noRunningResponse: "当前没有正在运行的回复。";
3079
3027
  readonly composerTextMenu: "输入框文本操作";
3028
+ readonly pastedTextPromptAttachment: "粘贴的文本附件:{{name}}";
3080
3029
  readonly copyMessage: "复制消息";
3081
3030
  readonly copyImage: "复制图片";
3082
3031
  readonly messageCopied: "已复制";
@@ -3155,64 +3104,8 @@ declare const agentGuiI18nResources: {
3155
3104
  readonly conversationFilterTutti: "Tutti";
3156
3105
  readonly providerSwitchLabel: "切换 Provider";
3157
3106
  readonly handoffConversation: "Handoff";
3107
+ readonly handoffConversationTooltip: "交接给其他 Agent";
3158
3108
  readonly handoffConversationMenu: "选择要交接的 Agent";
3159
- readonly batchRunnerStandaloneTitle: "Agent GUI 批量执行面板";
3160
- readonly batchRunnerSubtitle: "批量执行 JSONL 用例,查看进度与执行结果";
3161
- readonly batchRunnerPromptSource: "用例来源";
3162
- readonly batchRunnerSelectAgent: "选择 Agent";
3163
- readonly batchRunnerUploadFile: "上传 JSONL";
3164
- readonly batchRunnerUseBuiltInFile: "使用内置用例";
3165
- readonly batchRunnerSelectFile: "选择 JSONL";
3166
- readonly batchRunnerProviderClaudeCode: "Claude Code";
3167
- readonly batchRunnerProviderCodex: "Codex";
3168
- readonly batchRunnerProviderHermes: "Hermes";
3169
- readonly batchRunnerProviderNexight: "Nexight";
3170
- readonly batchRunnerProviderOpenClaw: "OpenClaw";
3171
- readonly batchRunnerProviderTuttiAgent: "Tutti Agent";
3172
- readonly batchRunnerRun: "执行";
3173
- readonly batchRunnerRunning: "执行中...";
3174
- readonly batchRunnerExport: "导出";
3175
- readonly batchRunnerExporting: "导出中...";
3176
- readonly batchRunnerNoFile: "未选择 JSONL";
3177
- readonly batchRunnerLoadedFile: "{{file}} · {{count}} 条用例";
3178
- readonly batchRunnerLoadedFileMeta: "{{count}} 条用例";
3179
- readonly batchRunnerEmptyFile: "没有找到 prompt 用例。";
3180
- readonly batchRunnerParseInvalidJson: "第 {{line}} 行:JSON 无效。";
3181
- readonly batchRunnerParseObjectRequired: "第 {{line}} 行:每行必须是 JSON 对象。";
3182
- readonly batchRunnerParsePromptRequired: "第 {{line}} 行:缺少 prompt。";
3183
- readonly batchRunnerLine: "行号";
3184
- readonly batchRunnerAgent: "Agent";
3185
- readonly batchRunnerCase: "用例";
3186
- readonly batchRunnerStatus: "状态";
3187
- readonly batchRunnerIssues: "异常";
3188
- readonly batchRunnerSession: "Session";
3189
- readonly batchRunnerSessionEmpty: "选择带 Session 的用例后查看 timeline。";
3190
- readonly batchRunnerSessionLoading: "加载中";
3191
- readonly batchRunnerSessionRefresh: "刷新";
3192
- readonly batchRunnerSessionBackToResults: "返回结果";
3193
- readonly batchRunnerSessionRawJson: "Raw JSON";
3194
- readonly batchRunnerSessionErrorCount: "{{count}} 个错误";
3195
- readonly batchRunnerSessionToolFailureCount: "{{count}} 个工具失败";
3196
- readonly batchRunnerStatus_pending: "待执行";
3197
- readonly batchRunnerStatus_running: "执行中";
3198
- readonly batchRunnerStatus_completed: "完成";
3199
- readonly batchRunnerStatus_failed: "失败";
3200
- readonly batchRunnerStatus_canceled: "已取消";
3201
- readonly batchRunnerStatus_blocked: "阻塞";
3202
- readonly batchRunnerStatus_error: "错误";
3203
- readonly batchRunnerProgress: "整体进度";
3204
- readonly batchRunnerTotalCases: "共 {{count}} 条用例";
3205
- readonly batchRunnerIssueCases: "{{count}} 条异常";
3206
- readonly batchRunnerSearchPlaceholder: "搜索用例";
3207
- readonly batchRunnerAllStatuses: "全部状态";
3208
- readonly batchRunnerActions: "操作";
3209
- readonly batchRunnerCopySession: "复制 Session ID";
3210
- readonly batchRunnerOpenSession: "打开 Session";
3211
- readonly batchRunnerNoResults: "没有匹配的用例";
3212
- readonly batchRunnerVisibleCount: "总计 {{count}} 条";
3213
- readonly batchRunnerPageIndicator: "第 {{page}} / {{total}} 页";
3214
- readonly batchRunnerPageSize: "{{count}} 条/页";
3215
- readonly batchRunnerExported: "已导出 {{file}}";
3216
3109
  readonly startConversation: "开始会话";
3217
3110
  readonly selectConversation: "选择一个会话";
3218
3111
  readonly loadingConversations: "正在加载会话...";
@@ -3312,7 +3205,7 @@ declare const agentGuiI18nResources: {
3312
3205
  readonly visibleErrorConfigTimeout: "{{provider}} 在请求超时前未能应用会话设置。请稍后重试。";
3313
3206
  readonly visibleErrorStreamDisconnected: "{{provider}} 的响应在完成前被中断。请稍后重试。";
3314
3207
  readonly visibleErrorConcurrencyLimit: "{{provider}} 当前处理的请求过多。请在其他任务完成后再试。";
3315
- readonly visibleErrorActionInstall: "去安装";
3208
+ readonly visibleErrorActionInstall: "去连接";
3316
3209
  readonly visibleErrorActionUpgrade: "去升级";
3317
3210
  readonly visibleErrorActionRelogin: "登录";
3318
3211
  readonly visibleErrorActionCheckNetwork: "检测网络";
@@ -3440,6 +3333,7 @@ declare const agentGuiI18nResources: {
3440
3333
  readonly fileMentionEmpty: "根据你输入的内容搜索工作区文件";
3441
3334
  readonly fileMentionError: "无法搜索工作区文件。";
3442
3335
  readonly fileMentionTabHint: "Tab 切换分类 | ←→ 进入/返回文件夹 | ↑↓ 切换选中";
3336
+ readonly fileDropHint: "拖放文件以添加到会话";
3443
3337
  readonly mentionPalette: "提及上下文";
3444
3338
  readonly addReference: "添加引用";
3445
3339
  readonly addContent: "添加文件等内容";
@@ -6,8 +6,8 @@ import {
6
6
  translate,
7
7
  translateInUiLanguage,
8
8
  useTranslation
9
- } from "../chunk-AIR6A4NP.js";
10
- import "../chunk-3QPN2Y7R.js";
9
+ } from "../chunk-SC3PS7AT.js";
10
+ import "../chunk-DGNKXT3Q.js";
11
11
  export {
12
12
  AgentGuiI18nProvider,
13
13
  agentGuiI18nModule,
package/dist/index.d.ts CHANGED
@@ -4,10 +4,10 @@ import { m as WorkspaceAgentActivityListViewModel, g as AgentHostWorkspaceAgentS
4
4
  import * as react from 'react';
5
5
  import { ReactNode, PropsWithChildren, JSX, HTMLAttributes } from 'react';
6
6
  import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
7
- import { r as AgentProvider, g as AgentGUIProviderTargetRef, j as AgentHostAgentSessionComposerSettings, h as AgentHostActivateAgentSessionResult, p as AgentHostUpdateAgentSessionSettingsResult, n as AgentHostAgentSessionState, o as AgentHostUnactivateAgentSessionResult, A as AgentGUINodeData, a as AgentGUIProvider, f as AgentGUIProviderTarget, q as AgentPromptContentBlock, P as Point, b as AgentGUIProviderRailMode, c as AgentGUIProviderReadinessGate, N as NodeFrame } from './types-BwDrG654.js';
8
- export { d as AgentGUIProviderReadinessGateAction, e as AgentGUIProviderReadinessGateStatus } from './types-BwDrG654.js';
9
- import { k as AgentProbeSnapshot, A as AgentComposerDraft, n as AgentSessionCommand, c as AgentGUIProviderSkillOption, a as AgentGUIComposerSettingsVM, d as AgentGUIQueuedPromptVM, b as AgentGUINodeViewModel, g as AgentHostInputApi } from './agentGuiNodeTypes-BTHu_g4m.js';
10
- export { e as AgentHostApi, f as AgentHostApplyWorkspaceGitPatchInput, h as AgentHostRuntimeApi, i as AgentHostSelectFilesInput, j as AgentProbeProvider, l as AgentProviderProbeListInput, m as AgentProviderProbeListResult, o as AgentUsageQuota, p as AgentUsageSnapshot, P as PersistWriteResult, R as ReadWorkspaceAgentReadStateInput, W as WorkspaceAgentReadStateSnapshot, q as WriteWorkspaceAgentReadStateInput } from './agentGuiNodeTypes-BTHu_g4m.js';
7
+ import { k as AgentHostAgentSessionComposerSettings, i as AgentHostActivateAgentSessionResult, q as AgentHostUpdateAgentSessionSettingsResult, o as AgentHostAgentSessionState, p as AgentHostUnactivateAgentSessionResult, s as AgentProvider, A as AgentGUINodeData, a as AgentGUIProvider, f as AgentGUIProviderTarget, r as AgentPromptContentBlock, P as Point, b as AgentGUIProviderRailMode, c as AgentGUIProviderReadinessGate, N as NodeFrame, g as AgentGUIProviderTargetBadge } from './types-DZ79b8Zn.js';
8
+ export { d as AgentGUIProviderReadinessGateAction, e as AgentGUIProviderReadinessGateStatus, h as AgentGUIProviderTargetRef } from './types-DZ79b8Zn.js';
9
+ import { k as AgentProbeSnapshot, A as AgentComposerDraft, n as AgentSessionCommand, c as AgentGUIProviderSkillOption, a as AgentGUIComposerSettingsVM, d as AgentGUIQueuedPromptVM, b as AgentGUINodeViewModel, g as AgentHostInputApi } from './agentGuiNodeTypes-CmLUy5Jt.js';
10
+ export { e as AgentHostApi, f as AgentHostApplyWorkspaceGitPatchInput, h as AgentHostRuntimeApi, i as AgentHostSelectFilesInput, j as AgentProbeProvider, l as AgentProviderProbeListInput, m as AgentProviderProbeListResult, o as AgentUsageQuota, p as AgentUsageSnapshot, P as PersistWriteResult, R as ReadWorkspaceAgentReadStateInput, W as WorkspaceAgentReadStateSnapshot, q as WriteWorkspaceAgentReadStateInput } from './agentGuiNodeTypes-CmLUy5Jt.js';
11
11
  import { WorkspaceFileEntry } from '@tutti-os/workspace-file-manager/services';
12
12
  import { WorkspaceFileReference, ReferenceLocateTarget, WorkspaceFileReferenceAdapter } from '@tutti-os/workspace-file-reference/contracts';
13
13
  import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
@@ -88,100 +88,6 @@ declare function registerAgentCustomMentionKind(definition: AgentCustomMentionKi
88
88
  declare function getAgentCustomMentionKind(kind: string): AgentCustomMentionKindDefinition | undefined;
89
89
  declare function resetAgentCustomMentionKindsForTests(): void;
90
90
 
91
- type AgentCustomModelEnabledByProvider<TProvider extends string> = Record<TProvider, boolean>;
92
- type AgentCustomModelByProvider<TProvider extends string> = Record<TProvider, string>;
93
- type AgentCustomModelOptionsByProvider<TProvider extends string> = Record<TProvider, string[]>;
94
-
95
- type FocusNodeTargetZoom = number;
96
-
97
- declare const COMMAND_IDS: readonly ["commandCenter.toggle", "app.togglePrimarySidebar", "workspaceCanvas.createTerminal"];
98
- type CommandId = (typeof COMMAND_IDS)[number];
99
- type KeyChord = {
100
- code: string;
101
- altKey: boolean;
102
- ctrlKey: boolean;
103
- metaKey: boolean;
104
- shiftKey: boolean;
105
- };
106
- type KeybindingOverrides = Partial<Record<CommandId, KeyChord | null>>;
107
-
108
- declare const CANVAS_INPUT_MODES: readonly ["auto", "mouse", "trackpad"];
109
- type CanvasInputMode = (typeof CANVAS_INPUT_MODES)[number];
110
- declare const CANVAS_WHEEL_BEHAVIORS: readonly ["zoom", "pan"];
111
- type CanvasWheelBehavior = (typeof CANVAS_WHEEL_BEHAVIORS)[number];
112
- declare const CANVAS_WHEEL_ZOOM_MODIFIERS: readonly ["primary", "ctrl", "alt"];
113
- type CanvasWheelZoomModifier = (typeof CANVAS_WHEEL_ZOOM_MODIFIERS)[number];
114
- declare const STANDARD_WINDOW_SIZE_BUCKETS: readonly ["compact", "regular", "large"];
115
- type StandardWindowSizeBucket = (typeof STANDARD_WINDOW_SIZE_BUCKETS)[number];
116
-
117
- type QuickCommand = {
118
- id: string;
119
- title: string;
120
- kind: "terminal";
121
- command: string;
122
- enabled: boolean;
123
- pinned: boolean;
124
- } | {
125
- id: string;
126
- title: string;
127
- kind: "url";
128
- url: string;
129
- enabled: boolean;
130
- pinned: boolean;
131
- };
132
-
133
- type QuickPhrase = {
134
- id: string;
135
- title: string;
136
- content: string;
137
- enabled: boolean;
138
- };
139
-
140
- type AgentEnvRow = {
141
- id: string;
142
- key: string;
143
- value: string;
144
- enabled: boolean;
145
- };
146
- type AgentEnvByProvider = Record<AgentProvider, AgentEnvRow[]>;
147
-
148
- type TerminalProfileId = string | null;
149
- interface AgentSettings {
150
- language: UiLanguage;
151
- uiTheme: UiTheme;
152
- isPrimarySidebarCollapsed: boolean;
153
- defaultProvider: AgentProvider;
154
- agentProviderOrder: AgentProvider[];
155
- agentFullAccess: boolean;
156
- defaultTerminalProfileId: TerminalProfileId;
157
- customModelEnabledByProvider: AgentCustomModelEnabledByProvider<AgentProvider>;
158
- customModelByProvider: AgentCustomModelByProvider<AgentProvider>;
159
- customModelOptionsByProvider: AgentCustomModelOptionsByProvider<AgentProvider>;
160
- quickCommands: QuickCommand[];
161
- quickPhrases: QuickPhrase[];
162
- agentEnvByProvider: AgentEnvByProvider;
163
- focusNodeOnClick: boolean;
164
- focusNodeTargetZoom: FocusNodeTargetZoom;
165
- focusNodeUseVisibleCanvasCenter: boolean;
166
- standbyBannerEnabled: boolean;
167
- standbyBannerShowTask: boolean;
168
- standbyBannerShowSpace: boolean;
169
- standbyBannerShowBranch: boolean;
170
- disableAppShortcutsWhenTerminalFocused: boolean;
171
- keybindings: KeybindingOverrides;
172
- canvasInputMode: CanvasInputMode;
173
- canvasWheelBehavior: CanvasWheelBehavior;
174
- canvasWheelZoomModifier: CanvasWheelZoomModifier;
175
- standardWindowSizeBucket: StandardWindowSizeBucket;
176
- defaultTerminalWindowScalePercent: number;
177
- terminalFontSize: number;
178
- terminalFontFamily: string | null;
179
- uiFontSize: number;
180
- avoidGroupingEdits: boolean;
181
- updatePolicy: AppUpdatePolicy;
182
- hideWorktreeMismatchDropWarning: boolean;
183
- }
184
-
185
91
  interface AgentActivityRuntimeListSessionMessagesInput {
186
92
  afterVersion?: number;
187
93
  beforeVersion?: number;
@@ -305,27 +211,26 @@ interface AgentActivityRuntimeDiagnosticInput {
305
211
  source?: string;
306
212
  workspaceId?: string | null;
307
213
  }
308
- interface AgentActivityRuntimeActivateSessionInput {
214
+ interface AgentActivityRuntimeActivateSessionInputBase {
309
215
  agentSessionId: string;
310
- agentTargetId?: string | null;
311
216
  cwd?: string;
312
217
  initialContent?: AgentActivitySendInput["content"];
313
218
  /** 仅展示用首轮文本(bundle 折叠成一个 chip);initialContent 仍带展开后的文件。 */
314
219
  initialDisplayPrompt?: string | null;
315
220
  metadata?: Record<string, unknown>;
316
- mode: "existing" | "new";
317
221
  openclawGatewayReady?: boolean;
318
- provider?: string;
319
- /**
320
- * Opaque host-owned target reference. AgentGUI passes this through only; hosts
321
- * must not treat it as authority and must re-authenticate before launch.
322
- */
323
- providerTargetRef?: AgentGUIProviderTargetRef | null;
324
222
  settings?: AgentHostAgentSessionComposerSettings;
325
223
  title?: string;
326
224
  visible?: boolean;
327
225
  workspaceId: string;
328
226
  }
227
+ type AgentActivityRuntimeActivateSessionInput = (AgentActivityRuntimeActivateSessionInputBase & {
228
+ agentTargetId: string;
229
+ mode: "new";
230
+ }) | (AgentActivityRuntimeActivateSessionInputBase & {
231
+ agentTargetId?: string | null;
232
+ mode: "existing";
233
+ });
329
234
  interface AgentActivityRuntimeUnactivateSessionInput {
330
235
  agentSessionId: string;
331
236
  workspaceId: string;
@@ -448,6 +353,100 @@ declare function getOptionalAgentActivityRuntime(): AgentActivityRuntime | null;
448
353
  declare function resetAgentActivityRuntimeForTests(): void;
449
354
  declare function setAgentActivityRuntimeForTests(runtime: AgentActivityRuntime | null): void;
450
355
 
356
+ type AgentCustomModelEnabledByProvider<TProvider extends string> = Record<TProvider, boolean>;
357
+ type AgentCustomModelByProvider<TProvider extends string> = Record<TProvider, string>;
358
+ type AgentCustomModelOptionsByProvider<TProvider extends string> = Record<TProvider, string[]>;
359
+
360
+ type FocusNodeTargetZoom = number;
361
+
362
+ declare const COMMAND_IDS: readonly ["commandCenter.toggle", "app.togglePrimarySidebar", "workspaceCanvas.createTerminal"];
363
+ type CommandId = (typeof COMMAND_IDS)[number];
364
+ type KeyChord = {
365
+ code: string;
366
+ altKey: boolean;
367
+ ctrlKey: boolean;
368
+ metaKey: boolean;
369
+ shiftKey: boolean;
370
+ };
371
+ type KeybindingOverrides = Partial<Record<CommandId, KeyChord | null>>;
372
+
373
+ declare const CANVAS_INPUT_MODES: readonly ["auto", "mouse", "trackpad"];
374
+ type CanvasInputMode = (typeof CANVAS_INPUT_MODES)[number];
375
+ declare const CANVAS_WHEEL_BEHAVIORS: readonly ["zoom", "pan"];
376
+ type CanvasWheelBehavior = (typeof CANVAS_WHEEL_BEHAVIORS)[number];
377
+ declare const CANVAS_WHEEL_ZOOM_MODIFIERS: readonly ["primary", "ctrl", "alt"];
378
+ type CanvasWheelZoomModifier = (typeof CANVAS_WHEEL_ZOOM_MODIFIERS)[number];
379
+ declare const STANDARD_WINDOW_SIZE_BUCKETS: readonly ["compact", "regular", "large"];
380
+ type StandardWindowSizeBucket = (typeof STANDARD_WINDOW_SIZE_BUCKETS)[number];
381
+
382
+ type QuickCommand = {
383
+ id: string;
384
+ title: string;
385
+ kind: "terminal";
386
+ command: string;
387
+ enabled: boolean;
388
+ pinned: boolean;
389
+ } | {
390
+ id: string;
391
+ title: string;
392
+ kind: "url";
393
+ url: string;
394
+ enabled: boolean;
395
+ pinned: boolean;
396
+ };
397
+
398
+ type QuickPhrase = {
399
+ id: string;
400
+ title: string;
401
+ content: string;
402
+ enabled: boolean;
403
+ };
404
+
405
+ type AgentEnvRow = {
406
+ id: string;
407
+ key: string;
408
+ value: string;
409
+ enabled: boolean;
410
+ };
411
+ type AgentEnvByProvider = Record<AgentProvider, AgentEnvRow[]>;
412
+
413
+ type TerminalProfileId = string | null;
414
+ interface AgentSettings {
415
+ language: UiLanguage;
416
+ uiTheme: UiTheme;
417
+ isPrimarySidebarCollapsed: boolean;
418
+ defaultProvider: AgentProvider;
419
+ agentProviderOrder: AgentProvider[];
420
+ agentFullAccess: boolean;
421
+ defaultTerminalProfileId: TerminalProfileId;
422
+ customModelEnabledByProvider: AgentCustomModelEnabledByProvider<AgentProvider>;
423
+ customModelByProvider: AgentCustomModelByProvider<AgentProvider>;
424
+ customModelOptionsByProvider: AgentCustomModelOptionsByProvider<AgentProvider>;
425
+ quickCommands: QuickCommand[];
426
+ quickPhrases: QuickPhrase[];
427
+ agentEnvByProvider: AgentEnvByProvider;
428
+ focusNodeOnClick: boolean;
429
+ focusNodeTargetZoom: FocusNodeTargetZoom;
430
+ focusNodeUseVisibleCanvasCenter: boolean;
431
+ standbyBannerEnabled: boolean;
432
+ standbyBannerShowTask: boolean;
433
+ standbyBannerShowSpace: boolean;
434
+ standbyBannerShowBranch: boolean;
435
+ disableAppShortcutsWhenTerminalFocused: boolean;
436
+ keybindings: KeybindingOverrides;
437
+ canvasInputMode: CanvasInputMode;
438
+ canvasWheelBehavior: CanvasWheelBehavior;
439
+ canvasWheelZoomModifier: CanvasWheelZoomModifier;
440
+ standardWindowSizeBucket: StandardWindowSizeBucket;
441
+ defaultTerminalWindowScalePercent: number;
442
+ terminalFontSize: number;
443
+ terminalFontFamily: string | null;
444
+ uiFontSize: number;
445
+ avoidGroupingEdits: boolean;
446
+ updatePolicy: AppUpdatePolicy;
447
+ hideWorktreeMismatchDropWarning: boolean;
448
+ }
449
+
451
450
  interface DesktopSize {
452
451
  width: number;
453
452
  height: number;
@@ -555,6 +554,8 @@ interface WorkspaceReferencePickResult {
555
554
  files: readonly WorkspaceFileReference[];
556
555
  mentionItems: readonly AgentContextMentionItem[];
557
556
  }
557
+ interface AgentComposerSubmitOptions {
558
+ }
558
559
  interface AgentComposerProps {
559
560
  workspaceId: string;
560
561
  workspacePath?: string | null;
@@ -747,12 +748,14 @@ interface AgentComposerProps {
747
748
  fileMentionEmpty: string;
748
749
  fileMentionError: string;
749
750
  fileMentionTabHint: string;
751
+ fileDropHint: string;
750
752
  mentionPalette: string;
751
753
  removeMention: string;
752
754
  addReference: string;
753
755
  addContent: string;
754
756
  referenceWorkspaceFiles: string;
755
757
  handoffConversation: string;
758
+ handoffConversationTooltip: string;
756
759
  handoffConversationMenu: string;
757
760
  providerSwitchLabel: string;
758
761
  projectLocked: string;
@@ -791,7 +794,7 @@ interface AgentComposerProps {
791
794
  }) => void;
792
795
  capabilityMenuState?: AgentComposerCapabilityMenuState;
793
796
  onCapabilitySettingsRequest?: (capability: AgentComposerCapabilitySettingsTarget) => void;
794
- onSubmit: (content: AgentPromptContentBlock[], displayPrompt?: string) => void;
797
+ onSubmit: (content: AgentPromptContentBlock[], displayPrompt?: string, options?: AgentComposerSubmitOptions) => void;
795
798
  onSubmitGuidance?: (content: AgentPromptContentBlock[], displayPrompt?: string) => void;
796
799
  onSendQueuedPromptNext: (queuedPromptId: string) => void;
797
800
  onRemoveQueuedPrompt: (queuedPromptId: string) => void;
@@ -953,6 +956,7 @@ interface AgentGUINodeProps {
953
956
  workspaceAgentProbes?: WorkspaceDesktopAgentProbesState | null;
954
957
  onAgentProbeDemandChange?: WorkspaceDesktopAgentProbeDemandChange;
955
958
  onAgentProbeRefreshRequest?: WorkspaceDesktopAgentProbeRefreshRequest;
959
+ providerAuthAccountLabels?: Partial<Record<string, string>>;
956
960
  managedAgentsState?: AgentHostManagedAgentsState | null;
957
961
  contextMentionProviders?: readonly AgentContextMentionProvider[];
958
962
  workspaceAppIcons?: readonly AgentMessageMarkdownWorkspaceAppIcon[];
@@ -989,6 +993,7 @@ declare function createSharedAgentGUIProviderTarget(input: {
989
993
  sharedAgentId: string;
990
994
  label: string;
991
995
  agentTargetId?: string | null;
996
+ badge?: AgentGUIProviderTargetBadge | null;
992
997
  ownerLabel?: string | null;
993
998
  iconUrl?: string | null;
994
999
  unavailableReason?: string | null;
@@ -1055,4 +1060,4 @@ interface AgentActivityHostProviderProps extends PropsWithChildren {
1055
1060
  }
1056
1061
  declare function AgentActivityHostProvider({ agentActivityRuntime, agentHostApi, children }: AgentActivityHostProviderProps): JSX.Element;
1057
1062
 
1058
- export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentContextMentionProvider, type AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, AgentGUI, type AgentGUIAccountMenuState, type AgentGUIProps, AgentGUIProvider, type AgentGUIProviderRailEmptyRenderer, AgentGUIProviderRailMode, AgentGUIProviderReadinessGate, AgentGUIProviderTarget, AgentGUIProviderTargetRef, type AgentGUISidebarFooterContext, type AgentGUISidebarFooterRenderer, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, AgentQueuedPromptQueueSnapshot, AgentQueuedPromptRuntime, AgentQueuedPromptRuntimeProvider, type AgentQueuedPromptRuntimeProviderProps, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, createLocalAgentGUIProviderTarget, createLocalAgentGUIProviderTargets, createSharedAgentGUIProviderTarget, getAgentActivityRuntime, getAgentCustomMentionKind, getOptionalAgentActivityRuntime, localAgentGUIAgentTargetId, localAgentGUIProviderTargetId, normalizeAgentGUIProviderTargets, projectCoreSessionStatus, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resetAgentQueuedPromptRuntimeForTests, resolveAgentGUIExpandedWindowFrame, resolveAgentGUIProviderTarget, setAgentActivityRuntimeForTests, setAgentQueuedPromptRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useAgentQueuedPromptRuntime, useAgentQueuedPromptSessionSnapshot, useOptionalAgentActivityRuntime };
1063
+ export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentContextMentionProvider, type AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, AgentGUI, type AgentGUIAccountMenuState, type AgentGUIProps, AgentGUIProvider, type AgentGUIProviderRailEmptyRenderer, AgentGUIProviderRailMode, AgentGUIProviderReadinessGate, AgentGUIProviderTarget, AgentGUIProviderTargetBadge, type AgentGUISidebarFooterContext, type AgentGUISidebarFooterRenderer, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, AgentQueuedPromptQueueSnapshot, AgentQueuedPromptRuntime, AgentQueuedPromptRuntimeProvider, type AgentQueuedPromptRuntimeProviderProps, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, createLocalAgentGUIProviderTarget, createLocalAgentGUIProviderTargets, createSharedAgentGUIProviderTarget, getAgentActivityRuntime, getAgentCustomMentionKind, getOptionalAgentActivityRuntime, localAgentGUIAgentTargetId, localAgentGUIProviderTargetId, normalizeAgentGUIProviderTargets, projectCoreSessionStatus, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resetAgentQueuedPromptRuntimeForTests, resolveAgentGUIExpandedWindowFrame, resolveAgentGUIProviderTarget, setAgentActivityRuntimeForTests, setAgentQueuedPromptRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useAgentQueuedPromptRuntime, useAgentQueuedPromptSessionSnapshot, useOptionalAgentActivityRuntime };