@tutti-os/agent-gui 0.0.14 → 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 +35 -2
  38. package/dist/index.js +1481 -997
  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,9 +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';
7
+ import { ReferenceLocateTarget, WorkspaceFileReferenceAdapter, WorkspaceFileReference } from '@tutti-os/workspace-file-reference/contracts';
8
8
  import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
9
- import { W as WorkspaceLinkAction } from './workspaceLinkActions-BlLN8Pvz.js';
9
+ import { W as WorkspaceLinkAction } from './workspaceLinkActions-Mjktl_Be.js';
10
+ import { A as AgentContextMentionItem } from './agentFileMentionExtension-CM1c9bqk.js';
10
11
  import { AgentContextMentionProvider } from './context-mention-provider.js';
11
12
  export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionProviderId } from './context-mention-provider.js';
12
13
  import { A as AgentMessageMarkdownWorkspaceAppIcon } from './AgentMessageMarkdown-DeYPURtF.js';
@@ -37,6 +38,7 @@ interface AgentHostAgentSessionComposerSettings {
37
38
  speed?: AgentHostAgentSessionSpeed | null;
38
39
  planMode?: boolean;
39
40
  browserUse?: boolean;
41
+ computerUse?: boolean;
40
42
  permissionModeId?: string | null;
41
43
  }
42
44
  interface AgentHostAgentSession {
@@ -254,6 +256,8 @@ interface AgentActivityRuntimeActivateSessionInput {
254
256
  agentSessionId: string;
255
257
  cwd?: string;
256
258
  initialContent?: AgentActivitySendInput["content"];
259
+ /** 仅展示用首轮文本(bundle 折叠成一个 chip);initialContent 仍带展开后的文件。 */
260
+ initialDisplayPrompt?: string | null;
257
261
  mode: "existing" | "new";
258
262
  openclawGatewayReady?: boolean;
259
263
  provider?: string;
@@ -689,11 +693,30 @@ interface AgentGUIOpenSessionRequest {
689
693
  sequence: number;
690
694
  }
691
695
  interface AgentGUIPrefillPromptRequest {
696
+ autoSubmit?: boolean;
692
697
  draftPrompt: string;
693
698
  sequence: number;
694
699
  userProjectPath?: string | null;
695
700
  }
696
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";
697
720
  interface AgentComposerGitBranches {
698
721
  branches: readonly string[];
699
722
  currentBranch?: string | null;
@@ -703,6 +726,12 @@ type AgentComposerGitBranchLoader = (input: {
703
726
  workingDirectory?: string | null;
704
727
  }) => Promise<AgentComposerGitBranches>;
705
728
 
729
+ /**
730
+ * 把 @ 面板里的任务/应用 mention 解析为引用 picker 的定位目标(sourceId + 语义 params)。
731
+ * 由宿主(desktop)注入 —— 源 id 与 params 形态是宿主侧 reference source 的知识。
732
+ */
733
+ type AgentMentionReferenceTargetResolver = (item: AgentContextMentionItem) => ReferenceLocateTarget | null;
734
+
706
735
  interface AgentGUINodeProps {
707
736
  nodeId: string;
708
737
  workspaceId: string;
@@ -711,6 +740,7 @@ interface AgentGUINodeProps {
711
740
  workspaceFileReferenceAdapter?: WorkspaceFileReferenceAdapter | null;
712
741
  onRequestGitBranches?: AgentComposerGitBranchLoader | null;
713
742
  referenceSourceAggregator?: ReferenceSourceAggregator | null;
743
+ resolveMentionReferenceTarget?: AgentMentionReferenceTargetResolver | null;
714
744
  agentSettings: Pick<AgentSettings, "avoidGroupingEdits">;
715
745
  title: string;
716
746
  state: AgentGUINodeData;
@@ -719,6 +749,8 @@ interface AgentGUINodeProps {
719
749
  height: number;
720
750
  desktopSize: DesktopSize;
721
751
  onLinkAction?: (action: WorkspaceLinkAction) => void;
752
+ capabilityMenuState?: AgentComposerCapabilityMenuState;
753
+ onCapabilitySettingsRequest?: (capability: AgentComposerCapabilitySettingsTarget) => void;
722
754
  onAgentProviderLogin?: (provider: AgentProvider) => void;
723
755
  onWorkspaceFileReferencesAdded?: (input: {
724
756
  provider: AgentProvider;
@@ -734,6 +766,7 @@ interface AgentGUINodeProps {
734
766
  prefillPromptRequest?: AgentGUIPrefillPromptRequest | null;
735
767
  showProjectSelector?: boolean;
736
768
  isMuted?: boolean;
769
+ newConversationRequestSequence?: number | null;
737
770
  onMinimize?: () => void;
738
771
  onToggleMaximize?: () => void;
739
772
  onShowMessage?: (message: string, tone?: "info" | "warning" | "error") => void;