@tutti-os/agent-gui 0.0.15 → 0.0.17

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 (50) hide show
  1. package/dist/AgentMentionSearchController-DqssJ2-b.d.ts +218 -0
  2. package/dist/agent-conversation/index.d.ts +3 -1
  3. package/dist/agent-conversation/index.js +5 -4
  4. package/dist/agent-conversation/index.js.map +1 -1
  5. package/dist/agent-message-center/index.d.ts +6 -2
  6. package/dist/agent-message-center/index.js +714 -291
  7. package/dist/agent-message-center/index.js.map +1 -1
  8. package/dist/app/renderer/agentactivity.css +176 -8
  9. package/dist/{chunk-KJPMZ7G5.js → chunk-65YMY2M3.js} +43 -17
  10. package/dist/chunk-65YMY2M3.js.map +1 -0
  11. package/dist/{chunk-OFGXNXYT.js → chunk-CDTTIUPL.js} +2 -2
  12. package/dist/{chunk-EK5RDKG7.js → chunk-GWR6WGZY.js} +21 -11
  13. package/dist/chunk-GWR6WGZY.js.map +1 -0
  14. package/dist/{chunk-H4HT3FE6.js → chunk-HVOPJU2K.js} +40 -30
  15. package/dist/chunk-HVOPJU2K.js.map +1 -0
  16. package/dist/{chunk-7CBJJNX6.js → chunk-JNGYJ7GM.js} +2 -2
  17. package/dist/{chunk-7CBJJNX6.js.map → chunk-JNGYJ7GM.js.map} +1 -1
  18. package/dist/{chunk-YKDFQADM.js → chunk-K44WER5Z.js} +177 -332
  19. package/dist/chunk-K44WER5Z.js.map +1 -0
  20. package/dist/{chunk-U4F3COKL.js → chunk-KHTIC52P.js} +83 -115
  21. package/dist/chunk-KHTIC52P.js.map +1 -0
  22. package/dist/chunk-O5TUTXHT.js +196 -0
  23. package/dist/chunk-O5TUTXHT.js.map +1 -0
  24. package/dist/{chunk-XHQGCP7A.js → chunk-OJ5WX7SZ.js} +2 -2
  25. package/dist/{chunk-SVOGXWFJ.js → chunk-VNAQ6QFE.js} +562 -468
  26. package/dist/chunk-VNAQ6QFE.js.map +1 -0
  27. package/dist/{chunk-2CA4NPP3.js → chunk-VO2TZNKV.js} +10 -7
  28. package/dist/{chunk-2CA4NPP3.js.map → chunk-VO2TZNKV.js.map} +1 -1
  29. package/dist/context-mention-palette/index.d.ts +5 -104
  30. package/dist/context-mention-palette/index.js +6 -5
  31. package/dist/i18n/index.d.ts +42 -16
  32. package/dist/i18n/index.js +1 -1
  33. package/dist/index.d.ts +22 -2
  34. package/dist/index.js +2002 -1329
  35. package/dist/index.js.map +1 -1
  36. package/dist/workbench/contribution.js +2 -2
  37. package/dist/workbench/index.d.ts +2 -1
  38. package/dist/workbench/index.js +2 -2
  39. package/dist/workbench/launch.js +1 -1
  40. package/dist/workspace-agent-generated-files.js +2 -2
  41. package/package.json +12 -12
  42. package/dist/agentFileMentionExtension-CM1c9bqk.d.ts +0 -86
  43. package/dist/chunk-EK5RDKG7.js.map +0 -1
  44. package/dist/chunk-H4HT3FE6.js.map +0 -1
  45. package/dist/chunk-KJPMZ7G5.js.map +0 -1
  46. package/dist/chunk-SVOGXWFJ.js.map +0 -1
  47. package/dist/chunk-U4F3COKL.js.map +0 -1
  48. package/dist/chunk-YKDFQADM.js.map +0 -1
  49. /package/dist/{chunk-OFGXNXYT.js.map → chunk-CDTTIUPL.js.map} +0 -0
  50. /package/dist/{chunk-XHQGCP7A.js.map → chunk-OJ5WX7SZ.js.map} +0 -0
@@ -476,7 +476,6 @@ declare const agentGuiI18nResources: {
476
476
  readonly usageTokensLabel: "Tokens";
477
477
  readonly usageLimitsLabel: "Limits";
478
478
  readonly usageCompactAction: "Compact";
479
- readonly usageCompactTooltip: "Compact the conversation context (/compact)";
480
479
  readonly usageAlertWarnMessage: "Context is {{percent}}% full. Consider compacting the conversation.";
481
480
  readonly usageAlertCriticalMessage: "Context is {{percent}}% full. Compact now to keep the session going.";
482
481
  readonly usageAlertDismiss: "Dismiss";
@@ -605,7 +604,6 @@ declare const agentGuiI18nResources: {
605
604
  readonly searchNoConversations: "No related sessions";
606
605
  readonly conversationUnavailable: "Session unavailable.";
607
606
  readonly contextPickerBrowseHint: "Search workspace files based on your input";
608
- readonly contextPickerBrowseAllHint: "Search workspace files based on your input";
609
607
  readonly contextPickerBrowseFileHint: "No opened or Agent-generated files yet. Type a file name to search your computer.";
610
608
  readonly mentionFileSearchMoreHint: "Type a file name to search for more files on your computer";
611
609
  readonly contextPickerBrowseAppHint: "Type to search apps";
@@ -624,7 +622,7 @@ declare const agentGuiI18nResources: {
624
622
  readonly sectionToday: "Today";
625
623
  readonly sectionYesterday: "Yesterday";
626
624
  readonly sectionEarlier: "Earlier";
627
- readonly projectSectionEdit: "Edit";
625
+ readonly projectSectionEdit: "New session";
628
626
  readonly projectSectionMoreActions: "Project actions";
629
627
  readonly projectRailCreateProject: "New project";
630
628
  readonly projectRailLinkExistingProject: "Link existing project folder";
@@ -659,6 +657,15 @@ declare const agentGuiI18nResources: {
659
657
  readonly activatingSession: "Connecting session...";
660
658
  readonly retryActivation: "Retry";
661
659
  readonly continueInNewConversation: "New session";
660
+ readonly goalLabel: "Goal";
661
+ readonly goalStatusActive: "Active";
662
+ readonly goalStatusPaused: "Paused";
663
+ readonly goalStatusBlocked: "Blocked";
664
+ readonly goalStatusUsageLimited: "Usage limited";
665
+ readonly goalStatusBudgetLimited: "Budget limited";
666
+ readonly goalStatusComplete: "Complete";
667
+ readonly goalBudgetUsage: "{{used}}/{{budget}} tokens";
668
+ readonly goalClearHint: "Type /goal clear to clear";
662
669
  readonly processing: "Planning next moves";
663
670
  readonly promptImagesUnsupported: "This agent does not support image input with the current model.";
664
671
  readonly visibleErrorStartFailed: "{{provider}} failed to start";
@@ -712,6 +719,9 @@ declare const agentGuiI18nResources: {
712
719
  readonly shortcutEnter: "Enter";
713
720
  readonly shortcutCmdEnter: "Cmd + Enter";
714
721
  readonly shortcutCtrEnter: "Ctr + Enter";
722
+ readonly openConversationWindow: "Open session in new window";
723
+ readonly showMoreConversations: "Show more";
724
+ readonly showLessConversations: "Show less";
715
725
  readonly deleteSession: "Delete session";
716
726
  readonly pinSession: "Pin session";
717
727
  readonly unpinSession: "Unpin session";
@@ -732,6 +742,9 @@ declare const agentGuiI18nResources: {
732
742
  readonly slashPaletteCommandsGroup: "Commands";
733
743
  readonly slashPaletteCapabilitiesGroup: "Capabilities";
734
744
  readonly slashPaletteSkillsGroup: "Skills";
745
+ readonly slashPalettePluginsGroup: "Plugins";
746
+ readonly slashPaletteConnectorsGroup: "Connectors";
747
+ readonly slashPaletteMcpGroup: "MCP";
735
748
  readonly browserUseCapabilityLabel: "Browser";
736
749
  readonly browserUseCapabilityDescription: "Let the agent use a browser.";
737
750
  readonly browserUseCapabilityDescriptionAutoConnect: "Current mode: reuse your signed-in Chrome.";
@@ -786,6 +799,7 @@ declare const agentGuiI18nResources: {
786
799
  readonly searchPlaceholder: "Search files and folders";
787
800
  readonly selectGroupHint: "Select a folder on the left";
788
801
  readonly selectedCount: "{{count}} selected";
802
+ readonly sourceColumn: "Category";
789
803
  readonly title: "Pick workspace references";
790
804
  readonly workspaceRootGroup: "Workspace";
791
805
  };
@@ -793,7 +807,6 @@ declare const agentGuiI18nResources: {
793
807
  readonly projectMissingDescription: "This conversation's working directory no longer exists";
794
808
  readonly fileMentionSwitchCategory: "Switch category";
795
809
  readonly fileMentionSwitchSelection: "Switch selection";
796
- readonly mentionFilterAll: "All";
797
810
  readonly mentionFilterFile: "Files";
798
811
  readonly mentionFilterApp: "Apps";
799
812
  readonly mentionFilterSession: "Sessions";
@@ -2714,7 +2727,7 @@ declare const agentGuiI18nResources: {
2714
2727
  readonly permissionSemantics: {
2715
2728
  readonly "ask-before-write": {
2716
2729
  readonly label: "请求批准";
2717
- readonly description: "编辑外部文件或使用互联网前始终询问你";
2730
+ readonly description: "编辑外部文件和使用互联网时始终询问";
2718
2731
  };
2719
2732
  readonly "accept-edits": {
2720
2733
  readonly label: "接受编辑";
@@ -2726,11 +2739,11 @@ declare const agentGuiI18nResources: {
2726
2739
  };
2727
2740
  readonly auto: {
2728
2741
  readonly label: "替我审批";
2729
- readonly description: "仅在检测到可能不安全的操作时询问你";
2742
+ readonly description: "仅对检测到的风险操作请求批准";
2730
2743
  };
2731
2744
  readonly "full-access": {
2732
- readonly label: "完全访问";
2733
- readonly description: "可不受限制地访问互联网和你电脑上的任何文件";
2745
+ readonly label: "完全访问权限";
2746
+ readonly description: "可不受限制地访问互联网和您电脑上的任何文件";
2734
2747
  };
2735
2748
  readonly unconfigurable: {
2736
2749
  readonly label: "固定模式";
@@ -2741,15 +2754,15 @@ declare const agentGuiI18nResources: {
2741
2754
  readonly codex: {
2742
2755
  readonly "read-only": {
2743
2756
  readonly label: "请求批准";
2744
- readonly description: "编辑外部文件或使用互联网前始终询问你";
2757
+ readonly description: "编辑外部文件和使用互联网时始终询问";
2745
2758
  };
2746
2759
  readonly auto: {
2747
2760
  readonly label: "替我审批";
2748
- readonly description: "仅在检测到可能不安全的操作时询问你";
2761
+ readonly description: "仅对检测到的风险操作请求批准";
2749
2762
  };
2750
2763
  readonly "full-access": {
2751
- readonly label: "完全访问";
2752
- readonly description: "可不受限制地访问互联网和你电脑上的任何文件";
2764
+ readonly label: "完全访问权限";
2765
+ readonly description: "可不受限制地访问互联网和您电脑上的任何文件";
2753
2766
  };
2754
2767
  };
2755
2768
  readonly nexight: {
@@ -2838,7 +2851,6 @@ declare const agentGuiI18nResources: {
2838
2851
  readonly usageTokensLabel: "Token 用量";
2839
2852
  readonly usageLimitsLabel: "限额";
2840
2853
  readonly usageCompactAction: "压缩";
2841
- readonly usageCompactTooltip: "压缩会话上下文(/compact)";
2842
2854
  readonly usageAlertWarnMessage: "上下文已使用 {{percent}}%,建议压缩会话。";
2843
2855
  readonly usageAlertCriticalMessage: "上下文已使用 {{percent}}%,请立即压缩以继续会话。";
2844
2856
  readonly usageAlertDismiss: "关闭提醒";
@@ -2967,7 +2979,6 @@ declare const agentGuiI18nResources: {
2967
2979
  readonly searchNoConversations: "暂无相关会话";
2968
2980
  readonly conversationUnavailable: "会话不可用。";
2969
2981
  readonly contextPickerBrowseHint: "根据你输入的内容搜索工作区文件";
2970
- readonly contextPickerBrowseAllHint: "根据你输入的内容搜索工作区文件";
2971
2982
  readonly contextPickerBrowseFileHint: "暂无已打开或 Agent 生成的文件,继续输入文件名可搜索本机文件";
2972
2983
  readonly mentionFileSearchMoreHint: "继续输入文件名可搜索更多本机文件";
2973
2984
  readonly contextPickerBrowseAppHint: "输入内容以搜索应用";
@@ -2986,7 +2997,7 @@ declare const agentGuiI18nResources: {
2986
2997
  readonly sectionToday: "今天";
2987
2998
  readonly sectionYesterday: "昨天";
2988
2999
  readonly sectionEarlier: "更早";
2989
- readonly projectSectionEdit: "编辑";
3000
+ readonly projectSectionEdit: "新建会话";
2990
3001
  readonly projectSectionMoreActions: "项目操作";
2991
3002
  readonly projectRailCreateProject: "新建项目";
2992
3003
  readonly projectRailLinkExistingProject: "关联已有项目文件";
@@ -3021,6 +3032,15 @@ declare const agentGuiI18nResources: {
3021
3032
  readonly activatingSession: "正在连接会话...";
3022
3033
  readonly retryActivation: "重试";
3023
3034
  readonly continueInNewConversation: "去新会话";
3035
+ readonly goalLabel: "目标";
3036
+ readonly goalStatusActive: "进行中";
3037
+ readonly goalStatusPaused: "已暂停";
3038
+ readonly goalStatusBlocked: "已阻塞";
3039
+ readonly goalStatusUsageLimited: "用量受限";
3040
+ readonly goalStatusBudgetLimited: "预算受限";
3041
+ readonly goalStatusComplete: "已完成";
3042
+ readonly goalBudgetUsage: "{{used}}/{{budget}} tokens";
3043
+ readonly goalClearHint: "输入 /goal clear 清除";
3024
3044
  readonly processing: "正在规划下一步";
3025
3045
  readonly promptImagesUnsupported: "当前模型不支持图片输入。";
3026
3046
  readonly visibleErrorStartFailed: "{{provider}} 启动失败";
@@ -3074,6 +3094,9 @@ declare const agentGuiI18nResources: {
3074
3094
  readonly shortcutEnter: "Enter";
3075
3095
  readonly shortcutCmdEnter: "Cmd + Enter";
3076
3096
  readonly shortcutCtrEnter: "Ctr + Enter";
3097
+ readonly openConversationWindow: "在新窗口打开会话";
3098
+ readonly showMoreConversations: "显示更多";
3099
+ readonly showLessConversations: "收起";
3077
3100
  readonly deleteSession: "删除会话";
3078
3101
  readonly pinSession: "置顶会话";
3079
3102
  readonly unpinSession: "取消置顶";
@@ -3094,6 +3117,9 @@ declare const agentGuiI18nResources: {
3094
3117
  readonly slashPaletteCommandsGroup: "命令";
3095
3118
  readonly slashPaletteCapabilitiesGroup: "能力";
3096
3119
  readonly slashPaletteSkillsGroup: "技能";
3120
+ readonly slashPalettePluginsGroup: "插件";
3121
+ readonly slashPaletteConnectorsGroup: "连接器";
3122
+ readonly slashPaletteMcpGroup: "MCP";
3097
3123
  readonly browserUseCapabilityLabel: "浏览器";
3098
3124
  readonly browserUseCapabilityDescription: "让 Agent 使用浏览器。";
3099
3125
  readonly browserUseCapabilityDescriptionAutoConnect: "当前配置:复用已登录的 Chrome。";
@@ -3149,13 +3175,13 @@ declare const agentGuiI18nResources: {
3149
3175
  readonly selectGroupHint: "从左侧选择一个目录";
3150
3176
  readonly selectedCount: "已选择 {{count}} 项";
3151
3177
  readonly title: "选择工作区引用";
3178
+ readonly sourceColumn: "分类";
3152
3179
  readonly workspaceRootGroup: "工作区";
3153
3180
  };
3154
3181
  readonly projectLocked: "会话开始后项目不可更改";
3155
3182
  readonly projectMissingDescription: "此对话的工作目录已不存在";
3156
3183
  readonly fileMentionSwitchCategory: "切换分类";
3157
3184
  readonly fileMentionSwitchSelection: "切换选中";
3158
- readonly mentionFilterAll: "全部";
3159
3185
  readonly mentionFilterFile: "文件";
3160
3186
  readonly mentionFilterApp: "应用";
3161
3187
  readonly mentionFilterSession: "会话";
@@ -6,7 +6,7 @@ import {
6
6
  translate,
7
7
  translateInUiLanguage,
8
8
  useTranslation
9
- } from "../chunk-KJPMZ7G5.js";
9
+ } from "../chunk-65YMY2M3.js";
10
10
  export {
11
11
  AgentGuiI18nProvider,
12
12
  agentGuiI18nModule,
package/dist/index.d.ts CHANGED
@@ -1,19 +1,22 @@
1
1
  import { AgentActivityNeedsAttentionItem, AgentActivitySnapshot, AgentActivityCancelSessionInput, AgentActivityCancelSessionResult, AgentActivityCreateSessionInput, AgentActivitySession, AgentActivityDeleteSessionInput, AgentActivityDeleteSessionResult, AgentActivitySendInput, AgentActivityMessageOrder, AgentActivityMessagePage, AgentActivitySubmitInteractiveInput, AgentActivitySnapshotListener } from '@tutti-os/agent-activity-core';
2
2
  export { AgentActivityAdapter, AgentActivityController, AgentActivityMessage, AgentActivityNeedsAttentionItem, AgentActivitySnapshot, selectNeedsAttentionCount, selectNeedsAttentionItems } from '@tutti-os/agent-activity-core';
3
3
  import { m as WorkspaceAgentActivityListViewModel, g as AgentHostWorkspaceAgentSession, f as AgentHostWorkspaceAgentMessage, l as AgentHostWorkspaceAgentSnapshot, B as BuildWorkspaceAgentActivityListOptions, d as AgentHostRuntimeOpenclawGatewayWarmupResult, A as AgentHostBatchUserInfoInput, a as AgentHostBatchUserInfoResult, b as AgentHostDeleteWorkspaceAgentSessionInput, k as AgentHostWorkspaceAgentSessionSummaryInput, j as AgentHostWorkspaceAgentSessionSummary, e as AgentHostWorkspaceAgentListInput, i as AgentHostWorkspaceAgentSessionMessagesInput, h as AgentHostWorkspaceAgentSessionMessages, c as AgentHostManagedAgentsState } from './workspaceAgentActivityListViewModel-BK_J3aNX.js';
4
+ import * as react from 'react';
4
5
  import { PropsWithChildren, JSX } from 'react';
5
6
  import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
6
7
  import { WorkspaceUserProjectService } from '@tutti-os/workspace-user-project/contracts';
7
8
  import { ReferenceLocateTarget, WorkspaceFileReferenceAdapter, WorkspaceFileReference } from '@tutti-os/workspace-file-reference/contracts';
8
9
  import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
9
10
  import { W as WorkspaceLinkAction } from './workspaceLinkActions-Mjktl_Be.js';
10
- import { A as AgentContextMentionItem } from './agentFileMentionExtension-CM1c9bqk.js';
11
+ import { A as AgentContextMentionItem } from './AgentMentionSearchController-DqssJ2-b.js';
12
+ export { p as preloadAgentMentionBrowse } from './AgentMentionSearchController-DqssJ2-b.js';
11
13
  import { AgentContextMentionProvider } from './context-mention-provider.js';
12
14
  export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionProviderId } from './context-mention-provider.js';
13
15
  import { A as AgentMessageMarkdownWorkspaceAppIcon } from './AgentMessageMarkdown-DeYPURtF.js';
14
16
  import { AgentGuiI18nLocale } from './i18n/index.js';
15
17
  export { AgentGuiI18nProvider, agentGuiI18nModule, agentGuiI18nResources } from './i18n/index.js';
16
18
  import '@tutti-os/workspace-issue-manager/core';
19
+ import '@tutti-os/ui-rich-text/at-panel';
17
20
  import '@tutti-os/ui-rich-text/types';
18
21
  import '@tutti-os/workspace-external-core/contracts';
19
22
 
@@ -202,6 +205,21 @@ interface AgentActivityRuntimeListSessionMessagesInput {
202
205
  signal?: AbortSignal;
203
206
  workspaceId: string;
204
207
  }
208
+ interface AgentActivityRuntimeListGeneratedFilesInput {
209
+ limit?: number;
210
+ query?: string;
211
+ sessionCwd?: string;
212
+ signal?: AbortSignal;
213
+ workspaceId: string;
214
+ }
215
+ interface AgentActivityRuntimeGeneratedFile {
216
+ label: string;
217
+ path: string;
218
+ }
219
+ interface AgentActivityRuntimeGeneratedFileList {
220
+ entries: AgentActivityRuntimeGeneratedFile[];
221
+ workspaceId: string;
222
+ }
205
223
  interface AgentActivityRuntimeEnsureSessionSynchronizedInput {
206
224
  afterVersion?: number;
207
225
  agentSessionId: string;
@@ -293,6 +311,7 @@ interface AgentActivityRuntime {
293
311
  getSessionControlState(input: AgentActivityRuntimeGetSessionControlStateInput): Promise<AgentHostAgentSessionState>;
294
312
  getSnapshot(workspaceId: string): AgentActivitySnapshot;
295
313
  listSessionMessages(input: AgentActivityRuntimeListSessionMessagesInput): Promise<AgentActivityMessagePage>;
314
+ listAgentGeneratedFiles?(input: AgentActivityRuntimeListGeneratedFilesInput): Promise<AgentActivityRuntimeGeneratedFileList>;
296
315
  load(workspaceId: string, signal?: AbortSignal): Promise<AgentActivitySnapshot>;
297
316
  ensureSessionSynchronized?(input: AgentActivityRuntimeEnsureSessionSynchronizedInput): () => void;
298
317
  /** @deprecated Use ensureSessionSynchronized. */
@@ -756,6 +775,7 @@ interface AgentGUINodeProps {
756
775
  provider: AgentProvider;
757
776
  references: readonly WorkspaceFileReference[];
758
777
  }) => void | Promise<void>;
778
+ onOpenConversationWindow?: (agentSessionId: string) => void;
759
779
  onClose: () => void;
760
780
  onResize: (frame: NodeFrame) => void;
761
781
  onUpdateNode: (updater: (current: AgentGUINodeData) => AgentGUINodeData) => void;
@@ -786,7 +806,7 @@ interface AgentGUIProps extends AgentGUINodeProps {
786
806
  i18n?: I18nRuntime<string> | null;
787
807
  locale?: AgentGuiI18nLocale;
788
808
  }
789
- declare function AgentGUI({ agentActivityRuntime, agentHostApi, i18n, locale, ...props }: AgentGUIProps): JSX.Element;
809
+ declare const AgentGUI: react.NamedExoticComponent<AgentGUIProps>;
790
810
 
791
811
  declare const agentGuiDockIconUrl: string;
792
812
  declare const agentGuiDockIconUrls: {