@tutti-os/agent-gui 0.0.13 → 0.0.15

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 (64) hide show
  1. package/dist/agent-conversation/index.d.ts +1 -1
  2. package/dist/agent-conversation/index.js +4 -4
  3. package/dist/agent-message-center/index.d.ts +1 -1
  4. package/dist/agent-message-center/index.js +4 -4
  5. package/dist/agentFileMentionExtension-CM1c9bqk.d.ts +86 -0
  6. package/dist/app/renderer/agentactivity.css +33 -9
  7. package/dist/{chunk-WME2V26J.js → chunk-2CA4NPP3.js} +15 -33
  8. package/dist/chunk-2CA4NPP3.js.map +1 -0
  9. package/dist/{chunk-ZO3SZCIX.js → chunk-7CBJJNX6.js} +5 -2
  10. package/dist/chunk-7CBJJNX6.js.map +1 -0
  11. package/dist/{chunk-ASAZDEQE.js → chunk-EK5RDKG7.js} +54 -14
  12. package/dist/chunk-EK5RDKG7.js.map +1 -0
  13. package/dist/{chunk-GZHQPPK2.js → chunk-H4HT3FE6.js} +113 -36
  14. package/dist/chunk-H4HT3FE6.js.map +1 -0
  15. package/dist/{chunk-YXSO4ITT.js → chunk-HIREVEZM.js} +1 -1
  16. package/dist/chunk-HIREVEZM.js.map +1 -0
  17. package/dist/{chunk-VDNMTW2E.js → chunk-IXIGWLQY.js} +1 -1
  18. package/dist/chunk-IXIGWLQY.js.map +1 -0
  19. package/dist/{chunk-FSTZDNRM.js → chunk-KJPMZ7G5.js} +243 -167
  20. package/dist/chunk-KJPMZ7G5.js.map +1 -0
  21. package/dist/{chunk-GEXHKJK5.js → chunk-MUZMBEFO.js} +35 -17
  22. package/dist/chunk-MUZMBEFO.js.map +1 -0
  23. package/dist/{chunk-HSXDSFKB.js → chunk-OFGXNXYT.js} +2 -2
  24. package/dist/{chunk-3YZX5EUC.js → chunk-SVOGXWFJ.js} +53 -17
  25. package/dist/{chunk-3YZX5EUC.js.map → chunk-SVOGXWFJ.js.map} +1 -1
  26. package/dist/{chunk-MU2LODEV.js → chunk-U4F3COKL.js} +160 -10
  27. package/dist/chunk-U4F3COKL.js.map +1 -0
  28. package/dist/{chunk-KEKPOVQD.js → chunk-XHQGCP7A.js} +2 -2
  29. package/dist/{chunk-RLPVFX7V.js → chunk-YKDFQADM.js} +36 -7
  30. package/dist/chunk-YKDFQADM.js.map +1 -0
  31. package/dist/context-mention-palette/index.d.ts +8 -68
  32. package/dist/context-mention-palette/index.js +6 -6
  33. package/dist/context-mention-provider.d.ts +6 -1
  34. package/dist/context-mention-provider.js +1 -1
  35. package/dist/i18n/index.d.ts +239 -163
  36. package/dist/i18n/index.js +1 -1
  37. package/dist/index.d.ts +37 -2
  38. package/dist/index.js +1495 -990
  39. package/dist/index.js.map +1 -1
  40. package/dist/workbench/contribution.d.ts +7 -1
  41. package/dist/workbench/contribution.js +6 -4
  42. package/dist/workbench/index.d.ts +4 -2
  43. package/dist/workbench/index.js +6 -4
  44. package/dist/workbench/launch.d.ts +2 -0
  45. package/dist/workbench/launch.js +2 -2
  46. package/dist/workbench/state.d.ts +3 -2
  47. package/dist/workbench/state.js +1 -1
  48. package/dist/workbench/types.d.ts +3 -0
  49. package/dist/workbench/types.js +1 -1
  50. package/dist/workspace-agent-generated-files.js +2 -2
  51. package/dist/{workspaceLinkActions-BlLN8Pvz.d.ts → workspaceLinkActions-Mjktl_Be.d.ts} +3 -0
  52. package/package.json +15 -13
  53. package/dist/chunk-ASAZDEQE.js.map +0 -1
  54. package/dist/chunk-FSTZDNRM.js.map +0 -1
  55. package/dist/chunk-GEXHKJK5.js.map +0 -1
  56. package/dist/chunk-GZHQPPK2.js.map +0 -1
  57. package/dist/chunk-MU2LODEV.js.map +0 -1
  58. package/dist/chunk-RLPVFX7V.js.map +0 -1
  59. package/dist/chunk-VDNMTW2E.js.map +0 -1
  60. package/dist/chunk-WME2V26J.js.map +0 -1
  61. package/dist/chunk-YXSO4ITT.js.map +0 -1
  62. package/dist/chunk-ZO3SZCIX.js.map +0 -1
  63. /package/dist/{chunk-HSXDSFKB.js.map → chunk-OFGXNXYT.js.map} +0 -0
  64. /package/dist/{chunk-KEKPOVQD.js.map → chunk-XHQGCP7A.js.map} +0 -0
@@ -6,7 +6,7 @@ import {
6
6
  translate,
7
7
  translateInUiLanguage,
8
8
  useTranslation
9
- } from "../chunk-FSTZDNRM.js";
9
+ } from "../chunk-KJPMZ7G5.js";
10
10
  export {
11
11
  AgentGuiI18nProvider,
12
12
  agentGuiI18nModule,
package/dist/index.d.ts CHANGED
@@ -4,8 +4,10 @@ import { m as WorkspaceAgentActivityListViewModel, g as AgentHostWorkspaceAgentS
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
- import { WorkspaceFileReferenceAdapter, WorkspaceFileReference } from '@tutti-os/workspace-file-reference/contracts';
8
- import { W as WorkspaceLinkAction } from './workspaceLinkActions-BlLN8Pvz.js';
7
+ import { ReferenceLocateTarget, WorkspaceFileReferenceAdapter, WorkspaceFileReference } from '@tutti-os/workspace-file-reference/contracts';
8
+ import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
9
+ import { W as WorkspaceLinkAction } from './workspaceLinkActions-Mjktl_Be.js';
10
+ import { A as AgentContextMentionItem } from './agentFileMentionExtension-CM1c9bqk.js';
9
11
  import { AgentContextMentionProvider } from './context-mention-provider.js';
10
12
  export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionProviderId } from './context-mention-provider.js';
11
13
  import { A as AgentMessageMarkdownWorkspaceAppIcon } from './AgentMessageMarkdown-DeYPURtF.js';
@@ -36,6 +38,7 @@ interface AgentHostAgentSessionComposerSettings {
36
38
  speed?: AgentHostAgentSessionSpeed | null;
37
39
  planMode?: boolean;
38
40
  browserUse?: boolean;
41
+ computerUse?: boolean;
39
42
  permissionModeId?: string | null;
40
43
  }
41
44
  interface AgentHostAgentSession {
@@ -253,6 +256,8 @@ interface AgentActivityRuntimeActivateSessionInput {
253
256
  agentSessionId: string;
254
257
  cwd?: string;
255
258
  initialContent?: AgentActivitySendInput["content"];
259
+ /** 仅展示用首轮文本(bundle 折叠成一个 chip);initialContent 仍带展开后的文件。 */
260
+ initialDisplayPrompt?: string | null;
256
261
  mode: "existing" | "new";
257
262
  openclawGatewayReady?: boolean;
258
263
  provider?: string;
@@ -688,11 +693,30 @@ interface AgentGUIOpenSessionRequest {
688
693
  sequence: number;
689
694
  }
690
695
  interface AgentGUIPrefillPromptRequest {
696
+ autoSubmit?: boolean;
691
697
  draftPrompt: string;
692
698
  sequence: number;
693
699
  userProjectPath?: string | null;
694
700
  }
695
701
 
702
+ interface AgentSlashCommandCapability {
703
+ aliases?: readonly string[];
704
+ capability: "browserUse" | "computerUse";
705
+ kind: "capability";
706
+ name: string;
707
+ }
708
+
709
+ type AgentComposerCapabilitySettingsTarget = AgentSlashCommandCapability["capability"];
710
+ interface AgentComposerCapabilityMenuState {
711
+ browserUse?: {
712
+ connectionMode?: "autoConnect" | "isolated" | null;
713
+ };
714
+ computerUse?: {
715
+ authorization?: AgentComposerComputerUseAuthorizationState | null;
716
+ installed?: boolean | null;
717
+ };
718
+ }
719
+ type AgentComposerComputerUseAuthorizationState = "authorized" | "needs-authorization" | "unknown";
696
720
  interface AgentComposerGitBranches {
697
721
  branches: readonly string[];
698
722
  currentBranch?: string | null;
@@ -702,6 +726,12 @@ type AgentComposerGitBranchLoader = (input: {
702
726
  workingDirectory?: string | null;
703
727
  }) => Promise<AgentComposerGitBranches>;
704
728
 
729
+ /**
730
+ * 把 @ 面板里的任务/应用 mention 解析为引用 picker 的定位目标(sourceId + 语义 params)。
731
+ * 由宿主(desktop)注入 —— 源 id 与 params 形态是宿主侧 reference source 的知识。
732
+ */
733
+ type AgentMentionReferenceTargetResolver = (item: AgentContextMentionItem) => ReferenceLocateTarget | null;
734
+
705
735
  interface AgentGUINodeProps {
706
736
  nodeId: string;
707
737
  workspaceId: string;
@@ -709,6 +739,8 @@ interface AgentGUINodeProps {
709
739
  workspacePath: string;
710
740
  workspaceFileReferenceAdapter?: WorkspaceFileReferenceAdapter | null;
711
741
  onRequestGitBranches?: AgentComposerGitBranchLoader | null;
742
+ referenceSourceAggregator?: ReferenceSourceAggregator | null;
743
+ resolveMentionReferenceTarget?: AgentMentionReferenceTargetResolver | null;
712
744
  agentSettings: Pick<AgentSettings, "avoidGroupingEdits">;
713
745
  title: string;
714
746
  state: AgentGUINodeData;
@@ -717,6 +749,8 @@ interface AgentGUINodeProps {
717
749
  height: number;
718
750
  desktopSize: DesktopSize;
719
751
  onLinkAction?: (action: WorkspaceLinkAction) => void;
752
+ capabilityMenuState?: AgentComposerCapabilityMenuState;
753
+ onCapabilitySettingsRequest?: (capability: AgentComposerCapabilitySettingsTarget) => void;
720
754
  onAgentProviderLogin?: (provider: AgentProvider) => void;
721
755
  onWorkspaceFileReferencesAdded?: (input: {
722
756
  provider: AgentProvider;
@@ -732,6 +766,7 @@ interface AgentGUINodeProps {
732
766
  prefillPromptRequest?: AgentGUIPrefillPromptRequest | null;
733
767
  showProjectSelector?: boolean;
734
768
  isMuted?: boolean;
769
+ newConversationRequestSequence?: number | null;
735
770
  onMinimize?: () => void;
736
771
  onToggleMaximize?: () => void;
737
772
  onShowMessage?: (message: string, tone?: "info" | "warning" | "error") => void;