@tutti-os/agent-gui 0.0.11 → 0.0.13

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 +49 -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 +136 -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-B7K776UD.js → chunk-FSTZDNRM.js} +51 -3
  17. package/dist/chunk-FSTZDNRM.js.map +1 -0
  18. package/dist/{chunk-ZEFETOTS.js → chunk-GZHQPPK2.js} +718 -2010
  19. package/dist/chunk-GZHQPPK2.js.map +1 -0
  20. package/dist/{chunk-CGBRAWTD.js → chunk-HSXDSFKB.js} +10 -1123
  21. package/dist/chunk-HSXDSFKB.js.map +1 -0
  22. package/dist/{chunk-ITMKZRCT.js → chunk-KEKPOVQD.js} +15 -8
  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-QTZALZIV.js → chunk-RLPVFX7V.js} +140 -58
  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 +50 -2
  44. package/dist/i18n/index.js +1 -1
  45. package/dist/index.d.ts +33 -6
  46. package/dist/index.js +3466 -4473
  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 -63
  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-77HBKGHF.js +0 -13
  67. package/dist/chunk-77HBKGHF.js.map +0 -1
  68. package/dist/chunk-B7K776UD.js.map +0 -1
  69. package/dist/chunk-CGBRAWTD.js.map +0 -1
  70. package/dist/chunk-ITMKZRCT.js.map +0 -1
  71. package/dist/chunk-QTZALZIV.js.map +0 -1
  72. package/dist/chunk-QU4F2RSS.js.map +0 -1
  73. package/dist/chunk-ZEFETOTS.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
@@ -338,6 +338,10 @@ declare const agentGuiI18nResources: {
338
338
  readonly reasoningOptionMedium: "Medium";
339
339
  readonly reasoningOptionHigh: "High";
340
340
  readonly reasoningOptionXHigh: "X-High";
341
+ readonly speedLabel: "Speed";
342
+ readonly speedSelectionLabel: "Speed";
343
+ readonly speedOptionStandard: "Standard";
344
+ readonly speedOptionFast: "Fast";
341
345
  readonly permissionModeReadOnly: "Ask for approval";
342
346
  readonly permissionModeAuto: "Approve for me";
343
347
  readonly permissionModeFullAccess: "Full access";
@@ -482,6 +486,24 @@ declare const agentGuiI18nResources: {
482
486
  readonly copyMessage: "Copy message";
483
487
  readonly messageCopied: "Copied";
484
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
+ };
485
507
  readonly promptTips: {
486
508
  readonly setWorkspace: {
487
509
  readonly label: "Set the workspace";
@@ -631,7 +653,6 @@ declare const agentGuiI18nResources: {
631
653
  readonly retryActivation: "Retry";
632
654
  readonly continueInNewConversation: "New session";
633
655
  readonly processing: "Planning next moves";
634
- readonly promptImagesCannotQueue: "Images can only be sent when the agent is ready for your next message.";
635
656
  readonly promptImagesUnsupported: "This agent does not support image input with the current model.";
636
657
  readonly visibleErrorStartFailed: "{{provider}} failed to start";
637
658
  readonly visibleErrorRequestFailed: "{{provider}} request failed";
@@ -702,7 +723,10 @@ declare const agentGuiI18nResources: {
702
723
  readonly slashCommandPalette: "Slash commands";
703
724
  readonly skillPickerPalette: "Skills";
704
725
  readonly slashPaletteCommandsGroup: "Commands";
726
+ readonly slashPaletteCapabilitiesGroup: "Capabilities";
705
727
  readonly slashPaletteSkillsGroup: "Skills";
728
+ readonly browserUseCapabilityLabel: "Browser";
729
+ readonly browserUseCapabilityDescription: "Let the agent use a browser.";
706
730
  readonly fileMentionPalette: "Files";
707
731
  readonly fileMentionLoading: "Searching...";
708
732
  readonly fileMentionEmpty: "Search workspace files based on your input";
@@ -2638,6 +2662,10 @@ declare const agentGuiI18nResources: {
2638
2662
  readonly reasoningOptionMedium: "中";
2639
2663
  readonly reasoningOptionHigh: "高";
2640
2664
  readonly reasoningOptionXHigh: "超高";
2665
+ readonly speedLabel: "速度";
2666
+ readonly speedSelectionLabel: "速度";
2667
+ readonly speedOptionStandard: "标准";
2668
+ readonly speedOptionFast: "快速";
2641
2669
  readonly permissionModeReadOnly: "请求批准";
2642
2670
  readonly permissionModeAuto: "代我批准";
2643
2671
  readonly permissionModeFullAccess: "完全访问权限";
@@ -2782,6 +2810,24 @@ declare const agentGuiI18nResources: {
2782
2810
  readonly copyMessage: "复制消息";
2783
2811
  readonly messageCopied: "已复制";
2784
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
+ };
2785
2831
  readonly promptTips: {
2786
2832
  readonly setWorkspace: {
2787
2833
  readonly label: "指定工作区";
@@ -2931,7 +2977,6 @@ declare const agentGuiI18nResources: {
2931
2977
  readonly retryActivation: "重试";
2932
2978
  readonly continueInNewConversation: "去新会话";
2933
2979
  readonly processing: "正在规划下一步";
2934
- readonly promptImagesCannotQueue: "图片只能在 Agent 准备好接收下一条消息时发送。";
2935
2980
  readonly promptImagesUnsupported: "当前模型不支持图片输入。";
2936
2981
  readonly visibleErrorStartFailed: "{{provider}} 启动失败";
2937
2982
  readonly visibleErrorRequestFailed: "{{provider}} 请求失败";
@@ -3002,7 +3047,10 @@ declare const agentGuiI18nResources: {
3002
3047
  readonly slashCommandPalette: "斜杠菜单";
3003
3048
  readonly skillPickerPalette: "技能";
3004
3049
  readonly slashPaletteCommandsGroup: "命令";
3050
+ readonly slashPaletteCapabilitiesGroup: "能力";
3005
3051
  readonly slashPaletteSkillsGroup: "技能";
3052
+ readonly browserUseCapabilityLabel: "浏览器";
3053
+ readonly browserUseCapabilityDescription: "让 Agent 使用浏览器。";
3006
3054
  readonly fileMentionPalette: "工作区文件";
3007
3055
  readonly fileMentionLoading: "正在搜索工作区...";
3008
3056
  readonly fileMentionEmpty: "根据你输入的内容搜索工作区文件";
@@ -6,7 +6,7 @@ import {
6
6
  translate,
7
7
  translateInUiLanguage,
8
8
  useTranslation
9
- } from "../chunk-B7K776UD.js";
9
+ } from "../chunk-FSTZDNRM.js";
10
10
  export {
11
11
  AgentGuiI18nProvider,
12
12
  agentGuiI18nModule,
package/dist/index.d.ts CHANGED
@@ -1,21 +1,24 @@
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 { W as WorkspaceLinkAction } from './workspaceLinkActions-BlLN8Pvz.js';
9
+ import { AgentContextMentionProvider } from './context-mention-provider.js';
10
+ export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionProviderId } from './context-mention-provider.js';
11
11
  import { A as AgentMessageMarkdownWorkspaceAppIcon } from './AgentMessageMarkdown-DeYPURtF.js';
12
12
  import { AgentGuiI18nLocale } from './i18n/index.js';
13
13
  export { AgentGuiI18nProvider, agentGuiI18nModule, agentGuiI18nResources } from './i18n/index.js';
14
14
  import '@tutti-os/workspace-issue-manager/core';
15
+ import '@tutti-os/ui-rich-text/types';
16
+ import '@tutti-os/workspace-external-core/contracts';
15
17
 
16
18
  type AgentHostAgentSessionProvider = "claude-code" | "codex" | "nexight" | "gemini" | "hermes" | "openclaw";
17
19
  type AgentHostAgentSessionPermissionModeSemantic = "ask-before-write" | "accept-edits" | "locked-down" | "auto" | "full-access" | "unconfigurable";
18
20
  type AgentHostAgentSessionReasoningEffort = "minimal" | "low" | "medium" | "high" | "xhigh" | string;
21
+ type AgentHostAgentSessionSpeed = "standard" | "fast" | string;
19
22
  interface AgentHostAgentSessionPermissionModeOption {
20
23
  id: string;
21
24
  label?: string;
@@ -30,7 +33,9 @@ interface AgentHostAgentSessionPermissionConfig {
30
33
  interface AgentHostAgentSessionComposerSettings {
31
34
  model?: string | null;
32
35
  reasoningEffort?: AgentHostAgentSessionReasoningEffort | null;
36
+ speed?: AgentHostAgentSessionSpeed | null;
33
37
  planMode?: boolean;
38
+ browserUse?: boolean;
34
39
  permissionModeId?: string | null;
35
40
  }
36
41
  interface AgentHostAgentSession {
@@ -678,12 +683,32 @@ interface WorkspaceDesktopAgentProbesState {
678
683
  }
679
684
  type WorkspaceDesktopAgentProbeDemandChange = (provider: AgentProvider | null, sourceId?: string) => void;
680
685
 
686
+ interface AgentGUIOpenSessionRequest {
687
+ agentSessionId: string;
688
+ sequence: number;
689
+ }
690
+ interface AgentGUIPrefillPromptRequest {
691
+ draftPrompt: string;
692
+ sequence: number;
693
+ userProjectPath?: string | null;
694
+ }
695
+
696
+ interface AgentComposerGitBranches {
697
+ branches: readonly string[];
698
+ currentBranch?: string | null;
699
+ }
700
+ type AgentComposerGitBranchLoader = (input: {
701
+ agentSessionId?: string | null;
702
+ workingDirectory?: string | null;
703
+ }) => Promise<AgentComposerGitBranches>;
704
+
681
705
  interface AgentGUINodeProps {
682
706
  nodeId: string;
683
707
  workspaceId: string;
684
708
  currentUserId?: string | null;
685
709
  workspacePath: string;
686
710
  workspaceFileReferenceAdapter?: WorkspaceFileReferenceAdapter | null;
711
+ onRequestGitBranches?: AgentComposerGitBranchLoader | null;
687
712
  agentSettings: Pick<AgentSettings, "avoidGroupingEdits">;
688
713
  title: string;
689
714
  state: AgentGUINodeData;
@@ -703,6 +728,8 @@ interface AgentGUINodeProps {
703
728
  isMaximized?: boolean;
704
729
  isActive: boolean;
705
730
  composerFocusRequestSequence?: number | null;
731
+ openSessionRequest?: AgentGUIOpenSessionRequest | null;
732
+ prefillPromptRequest?: AgentGUIPrefillPromptRequest | null;
706
733
  showProjectSelector?: boolean;
707
734
  isMuted?: boolean;
708
735
  onMinimize?: () => void;
@@ -711,7 +738,7 @@ interface AgentGUINodeProps {
711
738
  workspaceAgentProbes?: WorkspaceDesktopAgentProbesState | null;
712
739
  onAgentProbeDemandChange?: WorkspaceDesktopAgentProbeDemandChange;
713
740
  managedAgentsState?: AgentHostManagedAgentsState | null;
714
- richTextAtProviders?: readonly AgentRichTextAtProvider[];
741
+ contextMentionProviders?: readonly AgentContextMentionProvider[];
715
742
  workspaceAppIcons?: readonly AgentMessageMarkdownWorkspaceAppIcon[];
716
743
  embedded?: boolean;
717
744
  previewMode?: boolean;
@@ -767,4 +794,4 @@ interface AgentActivityHostProviderProps extends PropsWithChildren {
767
794
  }
768
795
  declare function AgentActivityHostProvider({ agentActivityRuntime, agentHostApi, children }: AgentActivityHostProviderProps): JSX.Element;
769
796
 
770
- 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 };
797
+ 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 };