@tutti-os/agent-gui 0.0.12 → 0.0.14

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 (76) hide show
  1. package/dist/agent-conversation/index.d.ts +5 -52
  2. package/dist/agent-conversation/index.js +4 -3
  3. package/dist/agent-conversation/index.js.map +1 -1
  4. package/dist/agent-message-center/index.d.ts +15 -5
  5. package/dist/agent-message-center/index.js +47 -28
  6. package/dist/agent-message-center/index.js.map +1 -1
  7. package/dist/{agentConversationVM-BtHYOTgv.d.ts → agentConversationVM-BVe64P2E.d.ts} +1 -1
  8. package/dist/app/renderer/agentactivity.css +111 -134
  9. package/dist/app/renderer/assets/icons/agents/manage-agent-tutti.png +0 -0
  10. package/dist/app/renderer/assets/icons/agents/tutti-doc-rounded.png +0 -0
  11. package/dist/app/renderer/assets/icons/agents/workspace-dock-agent-nexight.png +0 -0
  12. package/dist/chunk-3YZX5EUC.js +1993 -0
  13. package/dist/chunk-3YZX5EUC.js.map +1 -0
  14. package/dist/{chunk-QU4F2RSS.js → chunk-ASAZDEQE.js} +7 -7
  15. package/dist/chunk-ASAZDEQE.js.map +1 -0
  16. package/dist/{chunk-Y3AQGWJA.js → chunk-FSTZDNRM.js} +43 -3
  17. package/dist/chunk-FSTZDNRM.js.map +1 -0
  18. package/dist/{chunk-72YSPOHX.js → chunk-GZHQPPK2.js} +626 -1915
  19. package/dist/chunk-GZHQPPK2.js.map +1 -0
  20. package/dist/{chunk-Y5O7BVGU.js → chunk-HSXDSFKB.js} +10 -1123
  21. package/dist/chunk-HSXDSFKB.js.map +1 -0
  22. package/dist/{chunk-PKCJR6GC.js → chunk-KEKPOVQD.js} +14 -7
  23. package/dist/chunk-KEKPOVQD.js.map +1 -0
  24. package/dist/{chunk-4ASBZ4X7.js → chunk-MTFSQWZ6.js} +2 -2
  25. package/dist/chunk-MU2LODEV.js +1211 -0
  26. package/dist/chunk-MU2LODEV.js.map +1 -0
  27. package/dist/{chunk-R5Q2UDDH.js → chunk-Q75AK47T.js} +2 -2
  28. package/dist/{chunk-PONEQEJ5.js → chunk-RLPVFX7V.js} +137 -31
  29. package/dist/chunk-RLPVFX7V.js.map +1 -0
  30. package/dist/chunk-VDNMTW2E.js +9 -0
  31. package/dist/chunk-VDNMTW2E.js.map +1 -0
  32. package/dist/chunk-WME2V26J.js +1124 -0
  33. package/dist/chunk-WME2V26J.js.map +1 -0
  34. package/dist/chunk-YXSO4ITT.js +10 -0
  35. package/dist/chunk-YXSO4ITT.js.map +1 -0
  36. package/dist/{chunk-3735XYFZ.js → chunk-ZO3SZCIX.js} +54 -3
  37. package/dist/chunk-ZO3SZCIX.js.map +1 -0
  38. package/dist/context-mention-palette/index.d.ts +203 -0
  39. package/dist/context-mention-palette/index.js +30 -0
  40. package/dist/context-mention-provider.d.ts +51 -0
  41. package/dist/context-mention-provider.js +7 -0
  42. package/dist/context-mention-provider.js.map +1 -0
  43. package/dist/i18n/index.d.ts +42 -2
  44. package/dist/i18n/index.js +1 -1
  45. package/dist/index.d.ts +33 -6
  46. package/dist/index.js +2486 -3690
  47. package/dist/index.js.map +1 -1
  48. package/dist/plan-decision-ops.d.ts +2 -2
  49. package/dist/workbench/contribution.js +5 -5
  50. package/dist/workbench/index.d.ts +2 -2
  51. package/dist/workbench/index.js +10 -6
  52. package/dist/workbench/launch.d.ts +19 -2
  53. package/dist/workbench/launch.js +7 -2
  54. package/dist/workbench/types.d.ts +6 -1
  55. package/dist/workbench/types.js +5 -3
  56. package/dist/workspace-agent-generated-files.d.ts +1 -1
  57. package/dist/workspace-agent-generated-files.js +2 -2
  58. package/dist/{workspaceAgentActivityListViewModel-BLLYGuFO.d.ts → workspaceAgentActivityListViewModel-BK_J3aNX.d.ts} +8 -5
  59. package/dist/{workspaceLinkActions-Bwa-phu8.d.ts → workspaceLinkActions-BlLN8Pvz.d.ts} +7 -1
  60. package/package.json +24 -15
  61. package/dist/agent-rich-text-at-provider.d.ts +0 -49
  62. package/dist/agent-rich-text-at-provider.js +0 -7
  63. package/dist/chunk-3735XYFZ.js.map +0 -1
  64. package/dist/chunk-6AZ2KF6R.js +0 -7
  65. package/dist/chunk-6AZ2KF6R.js.map +0 -1
  66. package/dist/chunk-72YSPOHX.js.map +0 -1
  67. package/dist/chunk-KCC3GNPB.js +0 -13
  68. package/dist/chunk-KCC3GNPB.js.map +0 -1
  69. package/dist/chunk-PKCJR6GC.js.map +0 -1
  70. package/dist/chunk-PONEQEJ5.js.map +0 -1
  71. package/dist/chunk-QU4F2RSS.js.map +0 -1
  72. package/dist/chunk-Y3AQGWJA.js.map +0 -1
  73. package/dist/chunk-Y5O7BVGU.js.map +0 -1
  74. /package/dist/{chunk-4ASBZ4X7.js.map → chunk-MTFSQWZ6.js.map} +0 -0
  75. /package/dist/{chunk-R5Q2UDDH.js.map → chunk-Q75AK47T.js.map} +0 -0
  76. /package/dist/{agent-rich-text-at-provider.js.map → context-mention-palette/index.js.map} +0 -0
@@ -486,6 +486,24 @@ declare const agentGuiI18nResources: {
486
486
  readonly copyMessage: "Copy message";
487
487
  readonly messageCopied: "Copied";
488
488
  readonly promptTipsPrefix: "Tips: ";
489
+ readonly reviewPicker: {
490
+ readonly title: "Code review";
491
+ readonly targetLabel: "What to review";
492
+ readonly searchPlaceholder: "Search";
493
+ readonly noResults: "No matches";
494
+ readonly uncommitted: "Uncommitted changes";
495
+ readonly baseBranch: "Compare against a branch";
496
+ readonly commit: "A specific commit";
497
+ readonly custom: "Custom instructions";
498
+ readonly branchLabel: "Base branch";
499
+ readonly branchPlaceholder: "Select a branch";
500
+ readonly branchLoading: "Loading branches…";
501
+ readonly branchEmpty: "No branches found";
502
+ readonly commitPlaceholder: "Commit SHA";
503
+ readonly customPlaceholder: "Describe what to review";
504
+ readonly submit: "Start review";
505
+ readonly cancel: "Cancel";
506
+ };
489
507
  readonly promptTips: {
490
508
  readonly setWorkspace: {
491
509
  readonly label: "Set the workspace";
@@ -635,7 +653,6 @@ declare const agentGuiI18nResources: {
635
653
  readonly retryActivation: "Retry";
636
654
  readonly continueInNewConversation: "New session";
637
655
  readonly processing: "Planning next moves";
638
- readonly promptImagesCannotQueue: "Images can only be sent when the agent is ready for your next message.";
639
656
  readonly promptImagesUnsupported: "This agent does not support image input with the current model.";
640
657
  readonly visibleErrorStartFailed: "{{provider}} failed to start";
641
658
  readonly visibleErrorRequestFailed: "{{provider}} request failed";
@@ -706,7 +723,10 @@ declare const agentGuiI18nResources: {
706
723
  readonly slashCommandPalette: "Slash commands";
707
724
  readonly skillPickerPalette: "Skills";
708
725
  readonly slashPaletteCommandsGroup: "Commands";
726
+ readonly slashPaletteCapabilitiesGroup: "Capabilities";
709
727
  readonly slashPaletteSkillsGroup: "Skills";
728
+ readonly browserUseCapabilityLabel: "Browser";
729
+ readonly browserUseCapabilityDescription: "Let the agent use a browser.";
710
730
  readonly fileMentionPalette: "Files";
711
731
  readonly fileMentionLoading: "Searching...";
712
732
  readonly fileMentionEmpty: "Search workspace files based on your input";
@@ -2790,6 +2810,24 @@ declare const agentGuiI18nResources: {
2790
2810
  readonly copyMessage: "复制消息";
2791
2811
  readonly messageCopied: "已复制";
2792
2812
  readonly promptTipsPrefix: "Tips:";
2813
+ readonly reviewPicker: {
2814
+ readonly title: "代码审查";
2815
+ readonly targetLabel: "审查范围";
2816
+ readonly searchPlaceholder: "搜索";
2817
+ readonly noResults: "无匹配结果";
2818
+ readonly uncommitted: "未提交的更改";
2819
+ readonly baseBranch: "与分支比较";
2820
+ readonly commit: "指定提交";
2821
+ readonly custom: "自定义说明";
2822
+ readonly branchLabel: "基准分支";
2823
+ readonly branchPlaceholder: "选择分支";
2824
+ readonly branchLoading: "正在加载分支…";
2825
+ readonly branchEmpty: "未找到分支";
2826
+ readonly commitPlaceholder: "提交 SHA";
2827
+ readonly customPlaceholder: "描述要审查的内容";
2828
+ readonly submit: "开始审查";
2829
+ readonly cancel: "取消";
2830
+ };
2793
2831
  readonly promptTips: {
2794
2832
  readonly setWorkspace: {
2795
2833
  readonly label: "指定工作区";
@@ -2939,7 +2977,6 @@ declare const agentGuiI18nResources: {
2939
2977
  readonly retryActivation: "重试";
2940
2978
  readonly continueInNewConversation: "去新会话";
2941
2979
  readonly processing: "正在规划下一步";
2942
- readonly promptImagesCannotQueue: "图片只能在 Agent 准备好接收下一条消息时发送。";
2943
2980
  readonly promptImagesUnsupported: "当前模型不支持图片输入。";
2944
2981
  readonly visibleErrorStartFailed: "{{provider}} 启动失败";
2945
2982
  readonly visibleErrorRequestFailed: "{{provider}} 请求失败";
@@ -3010,7 +3047,10 @@ declare const agentGuiI18nResources: {
3010
3047
  readonly slashCommandPalette: "斜杠菜单";
3011
3048
  readonly skillPickerPalette: "技能";
3012
3049
  readonly slashPaletteCommandsGroup: "命令";
3050
+ readonly slashPaletteCapabilitiesGroup: "能力";
3013
3051
  readonly slashPaletteSkillsGroup: "技能";
3052
+ readonly browserUseCapabilityLabel: "浏览器";
3053
+ readonly browserUseCapabilityDescription: "让 Agent 使用浏览器。";
3014
3054
  readonly fileMentionPalette: "工作区文件";
3015
3055
  readonly fileMentionLoading: "正在搜索工作区...";
3016
3056
  readonly fileMentionEmpty: "根据你输入的内容搜索工作区文件";
@@ -6,7 +6,7 @@ import {
6
6
  translate,
7
7
  translateInUiLanguage,
8
8
  useTranslation
9
- } from "../chunk-Y3AQGWJA.js";
9
+ } from "../chunk-FSTZDNRM.js";
10
10
  export {
11
11
  AgentGuiI18nProvider,
12
12
  agentGuiI18nModule,
package/dist/index.d.ts CHANGED
@@ -1,17 +1,20 @@
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
- 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-BLLYGuFO.js';
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
4
  import { PropsWithChildren, JSX } from 'react';
5
5
  import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
6
6
  import { WorkspaceUserProjectService } from '@tutti-os/workspace-user-project/contracts';
7
7
  import { WorkspaceFileReferenceAdapter, WorkspaceFileReference } from '@tutti-os/workspace-file-reference/contracts';
8
- import { W as WorkspaceLinkAction } from './workspaceLinkActions-Bwa-phu8.js';
9
- import { AgentRichTextAtProvider } from './agent-rich-text-at-provider.js';
10
- export { AGENT_GUI_MENTION_PROVIDER_IDS, AgentGUIMentionProviderId } from './agent-rich-text-at-provider.js';
8
+ import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
9
+ import { W as WorkspaceLinkAction } from './workspaceLinkActions-BlLN8Pvz.js';
10
+ import { AgentContextMentionProvider } from './context-mention-provider.js';
11
+ export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionProviderId } from './context-mention-provider.js';
11
12
  import { A as AgentMessageMarkdownWorkspaceAppIcon } from './AgentMessageMarkdown-DeYPURtF.js';
12
13
  import { AgentGuiI18nLocale } from './i18n/index.js';
13
14
  export { AgentGuiI18nProvider, agentGuiI18nModule, agentGuiI18nResources } from './i18n/index.js';
14
15
  import '@tutti-os/workspace-issue-manager/core';
16
+ import '@tutti-os/ui-rich-text/types';
17
+ import '@tutti-os/workspace-external-core/contracts';
15
18
 
16
19
  type AgentHostAgentSessionProvider = "claude-code" | "codex" | "nexight" | "gemini" | "hermes" | "openclaw";
17
20
  type AgentHostAgentSessionPermissionModeSemantic = "ask-before-write" | "accept-edits" | "locked-down" | "auto" | "full-access" | "unconfigurable";
@@ -33,6 +36,7 @@ interface AgentHostAgentSessionComposerSettings {
33
36
  reasoningEffort?: AgentHostAgentSessionReasoningEffort | null;
34
37
  speed?: AgentHostAgentSessionSpeed | null;
35
38
  planMode?: boolean;
39
+ browserUse?: boolean;
36
40
  permissionModeId?: string | null;
37
41
  }
38
42
  interface AgentHostAgentSession {
@@ -680,12 +684,33 @@ interface WorkspaceDesktopAgentProbesState {
680
684
  }
681
685
  type WorkspaceDesktopAgentProbeDemandChange = (provider: AgentProvider | null, sourceId?: string) => void;
682
686
 
687
+ interface AgentGUIOpenSessionRequest {
688
+ agentSessionId: string;
689
+ sequence: number;
690
+ }
691
+ interface AgentGUIPrefillPromptRequest {
692
+ draftPrompt: string;
693
+ sequence: number;
694
+ userProjectPath?: string | null;
695
+ }
696
+
697
+ interface AgentComposerGitBranches {
698
+ branches: readonly string[];
699
+ currentBranch?: string | null;
700
+ }
701
+ type AgentComposerGitBranchLoader = (input: {
702
+ agentSessionId?: string | null;
703
+ workingDirectory?: string | null;
704
+ }) => Promise<AgentComposerGitBranches>;
705
+
683
706
  interface AgentGUINodeProps {
684
707
  nodeId: string;
685
708
  workspaceId: string;
686
709
  currentUserId?: string | null;
687
710
  workspacePath: string;
688
711
  workspaceFileReferenceAdapter?: WorkspaceFileReferenceAdapter | null;
712
+ onRequestGitBranches?: AgentComposerGitBranchLoader | null;
713
+ referenceSourceAggregator?: ReferenceSourceAggregator | null;
689
714
  agentSettings: Pick<AgentSettings, "avoidGroupingEdits">;
690
715
  title: string;
691
716
  state: AgentGUINodeData;
@@ -705,6 +730,8 @@ interface AgentGUINodeProps {
705
730
  isMaximized?: boolean;
706
731
  isActive: boolean;
707
732
  composerFocusRequestSequence?: number | null;
733
+ openSessionRequest?: AgentGUIOpenSessionRequest | null;
734
+ prefillPromptRequest?: AgentGUIPrefillPromptRequest | null;
708
735
  showProjectSelector?: boolean;
709
736
  isMuted?: boolean;
710
737
  onMinimize?: () => void;
@@ -713,7 +740,7 @@ interface AgentGUINodeProps {
713
740
  workspaceAgentProbes?: WorkspaceDesktopAgentProbesState | null;
714
741
  onAgentProbeDemandChange?: WorkspaceDesktopAgentProbeDemandChange;
715
742
  managedAgentsState?: AgentHostManagedAgentsState | null;
716
- richTextAtProviders?: readonly AgentRichTextAtProvider[];
743
+ contextMentionProviders?: readonly AgentContextMentionProvider[];
717
744
  workspaceAppIcons?: readonly AgentMessageMarkdownWorkspaceAppIcon[];
718
745
  embedded?: boolean;
719
746
  previewMode?: boolean;
@@ -769,4 +796,4 @@ interface AgentActivityHostProviderProps extends PropsWithChildren {
769
796
  }
770
797
  declare function AgentActivityHostProvider({ agentActivityRuntime, agentHostApi, children }: AgentActivityHostProviderProps): JSX.Element;
771
798
 
772
- export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentGUI, type AgentGUIProps, AgentGuiI18nLocale, type AgentHostApi, type AgentHostInputApi, type AgentHostRuntimeApi, type AgentProbeProvider, type AgentProbeSnapshot, type AgentProviderProbeListInput, type AgentProviderProbeListResult, AgentRichTextAtProvider, type AgentUsageQuota, type AgentUsageSnapshot, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, getAgentActivityRuntime, getOptionalAgentActivityRuntime, projectCoreSessionStatus, resetAgentActivityRuntimeForTests, resolveAgentGUIExpandedWindowFrame, setAgentActivityRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useOptionalAgentActivityRuntime };
799
+ export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentContextMentionProvider, AgentGUI, type AgentGUIProps, AgentGuiI18nLocale, type AgentHostApi, type AgentHostInputApi, type AgentHostRuntimeApi, type AgentProbeProvider, type AgentProbeSnapshot, type AgentProviderProbeListInput, type AgentProviderProbeListResult, type AgentUsageQuota, type AgentUsageSnapshot, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, getAgentActivityRuntime, getOptionalAgentActivityRuntime, projectCoreSessionStatus, resetAgentActivityRuntimeForTests, resolveAgentGUIExpandedWindowFrame, setAgentActivityRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useOptionalAgentActivityRuntime };