@tutti-os/agent-gui 0.0.14 → 0.0.16

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 (69) hide show
  1. package/dist/AgentMentionSearchController-DqssJ2-b.d.ts +218 -0
  2. package/dist/agent-conversation/index.d.ts +4 -2
  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 +3 -2
  6. package/dist/agent-message-center/index.js +547 -287
  7. package/dist/agent-message-center/index.js.map +1 -1
  8. package/dist/app/renderer/agentactivity.css +177 -17
  9. package/dist/{chunk-GZHQPPK2.js → chunk-267VY3EJ.js} +130 -43
  10. package/dist/chunk-267VY3EJ.js.map +1 -0
  11. package/dist/{chunk-KEKPOVQD.js → chunk-CABHBFYH.js} +2 -2
  12. package/dist/{chunk-HSXDSFKB.js → chunk-EKATXC3W.js} +2 -2
  13. package/dist/{chunk-RLPVFX7V.js → chunk-FJYH2ZPX.js} +196 -322
  14. package/dist/chunk-FJYH2ZPX.js.map +1 -0
  15. package/dist/{chunk-ASAZDEQE.js → chunk-GWR6WGZY.js} +72 -22
  16. package/dist/chunk-GWR6WGZY.js.map +1 -0
  17. package/dist/{chunk-YXSO4ITT.js → chunk-HIREVEZM.js} +1 -1
  18. package/dist/chunk-HIREVEZM.js.map +1 -0
  19. package/dist/{chunk-VDNMTW2E.js → chunk-IXIGWLQY.js} +1 -1
  20. package/dist/chunk-IXIGWLQY.js.map +1 -0
  21. package/dist/{chunk-ZO3SZCIX.js → chunk-JNGYJ7GM.js} +6 -3
  22. package/dist/chunk-JNGYJ7GM.js.map +1 -0
  23. package/dist/{chunk-MU2LODEV.js → chunk-KWPL3JYS.js} +131 -13
  24. package/dist/chunk-KWPL3JYS.js.map +1 -0
  25. package/dist/{chunk-WME2V26J.js → chunk-LW2S255I.js} +21 -36
  26. package/dist/chunk-LW2S255I.js.map +1 -0
  27. package/dist/{chunk-3YZX5EUC.js → chunk-LWRYYGPZ.js} +610 -480
  28. package/dist/chunk-LWRYYGPZ.js.map +1 -0
  29. package/dist/{chunk-GEXHKJK5.js → chunk-MUZMBEFO.js} +35 -17
  30. package/dist/chunk-MUZMBEFO.js.map +1 -0
  31. package/dist/chunk-O5TUTXHT.js +196 -0
  32. package/dist/chunk-O5TUTXHT.js.map +1 -0
  33. package/dist/{chunk-FSTZDNRM.js → chunk-SIDWRR5I.js} +281 -183
  34. package/dist/chunk-SIDWRR5I.js.map +1 -0
  35. package/dist/context-mention-palette/index.d.ts +11 -170
  36. package/dist/context-mention-palette/index.js +7 -6
  37. package/dist/context-mention-provider.d.ts +6 -1
  38. package/dist/context-mention-provider.js +1 -1
  39. package/dist/i18n/index.d.ts +277 -179
  40. package/dist/i18n/index.js +1 -1
  41. package/dist/index.d.ts +56 -3
  42. package/dist/index.js +2706 -1700
  43. package/dist/index.js.map +1 -1
  44. package/dist/workbench/contribution.d.ts +7 -1
  45. package/dist/workbench/contribution.js +6 -4
  46. package/dist/workbench/index.d.ts +5 -2
  47. package/dist/workbench/index.js +6 -4
  48. package/dist/workbench/launch.d.ts +2 -0
  49. package/dist/workbench/launch.js +2 -2
  50. package/dist/workbench/state.d.ts +3 -2
  51. package/dist/workbench/state.js +1 -1
  52. package/dist/workbench/types.d.ts +3 -0
  53. package/dist/workbench/types.js +1 -1
  54. package/dist/workspace-agent-generated-files.js +2 -2
  55. package/dist/{workspaceLinkActions-BlLN8Pvz.d.ts → workspaceLinkActions-Mjktl_Be.d.ts} +3 -0
  56. package/package.json +15 -13
  57. package/dist/chunk-3YZX5EUC.js.map +0 -1
  58. package/dist/chunk-ASAZDEQE.js.map +0 -1
  59. package/dist/chunk-FSTZDNRM.js.map +0 -1
  60. package/dist/chunk-GEXHKJK5.js.map +0 -1
  61. package/dist/chunk-GZHQPPK2.js.map +0 -1
  62. package/dist/chunk-MU2LODEV.js.map +0 -1
  63. package/dist/chunk-RLPVFX7V.js.map +0 -1
  64. package/dist/chunk-VDNMTW2E.js.map +0 -1
  65. package/dist/chunk-WME2V26J.js.map +0 -1
  66. package/dist/chunk-YXSO4ITT.js.map +0 -1
  67. package/dist/chunk-ZO3SZCIX.js.map +0 -1
  68. /package/dist/{chunk-KEKPOVQD.js.map → chunk-CABHBFYH.js.map} +0 -0
  69. /package/dist/{chunk-HSXDSFKB.js.map → chunk-EKATXC3W.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-SIDWRR5I.js";
10
10
  export {
11
11
  AgentGuiI18nProvider,
12
12
  agentGuiI18nModule,
package/dist/index.d.ts CHANGED
@@ -1,18 +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
- import { WorkspaceFileReferenceAdapter, WorkspaceFileReference } from '@tutti-os/workspace-file-reference/contracts';
8
+ import { ReferenceLocateTarget, WorkspaceFileReferenceAdapter, WorkspaceFileReference } from '@tutti-os/workspace-file-reference/contracts';
8
9
  import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
9
- import { W as WorkspaceLinkAction } from './workspaceLinkActions-BlLN8Pvz.js';
10
+ import { W as WorkspaceLinkAction } from './workspaceLinkActions-Mjktl_Be.js';
11
+ import { A as AgentContextMentionItem } from './AgentMentionSearchController-DqssJ2-b.js';
12
+ export { p as preloadAgentMentionBrowse } from './AgentMentionSearchController-DqssJ2-b.js';
10
13
  import { AgentContextMentionProvider } from './context-mention-provider.js';
11
14
  export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionProviderId } from './context-mention-provider.js';
12
15
  import { A as AgentMessageMarkdownWorkspaceAppIcon } from './AgentMessageMarkdown-DeYPURtF.js';
13
16
  import { AgentGuiI18nLocale } from './i18n/index.js';
14
17
  export { AgentGuiI18nProvider, agentGuiI18nModule, agentGuiI18nResources } from './i18n/index.js';
15
18
  import '@tutti-os/workspace-issue-manager/core';
19
+ import '@tutti-os/ui-rich-text/at-panel';
16
20
  import '@tutti-os/ui-rich-text/types';
17
21
  import '@tutti-os/workspace-external-core/contracts';
18
22
 
@@ -37,6 +41,7 @@ interface AgentHostAgentSessionComposerSettings {
37
41
  speed?: AgentHostAgentSessionSpeed | null;
38
42
  planMode?: boolean;
39
43
  browserUse?: boolean;
44
+ computerUse?: boolean;
40
45
  permissionModeId?: string | null;
41
46
  }
42
47
  interface AgentHostAgentSession {
@@ -200,6 +205,21 @@ interface AgentActivityRuntimeListSessionMessagesInput {
200
205
  signal?: AbortSignal;
201
206
  workspaceId: string;
202
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
+ }
203
223
  interface AgentActivityRuntimeEnsureSessionSynchronizedInput {
204
224
  afterVersion?: number;
205
225
  agentSessionId: string;
@@ -254,6 +274,8 @@ interface AgentActivityRuntimeActivateSessionInput {
254
274
  agentSessionId: string;
255
275
  cwd?: string;
256
276
  initialContent?: AgentActivitySendInput["content"];
277
+ /** 仅展示用首轮文本(bundle 折叠成一个 chip);initialContent 仍带展开后的文件。 */
278
+ initialDisplayPrompt?: string | null;
257
279
  mode: "existing" | "new";
258
280
  openclawGatewayReady?: boolean;
259
281
  provider?: string;
@@ -289,6 +311,7 @@ interface AgentActivityRuntime {
289
311
  getSessionControlState(input: AgentActivityRuntimeGetSessionControlStateInput): Promise<AgentHostAgentSessionState>;
290
312
  getSnapshot(workspaceId: string): AgentActivitySnapshot;
291
313
  listSessionMessages(input: AgentActivityRuntimeListSessionMessagesInput): Promise<AgentActivityMessagePage>;
314
+ listAgentGeneratedFiles?(input: AgentActivityRuntimeListGeneratedFilesInput): Promise<AgentActivityRuntimeGeneratedFileList>;
292
315
  load(workspaceId: string, signal?: AbortSignal): Promise<AgentActivitySnapshot>;
293
316
  ensureSessionSynchronized?(input: AgentActivityRuntimeEnsureSessionSynchronizedInput): () => void;
294
317
  /** @deprecated Use ensureSessionSynchronized. */
@@ -689,11 +712,30 @@ interface AgentGUIOpenSessionRequest {
689
712
  sequence: number;
690
713
  }
691
714
  interface AgentGUIPrefillPromptRequest {
715
+ autoSubmit?: boolean;
692
716
  draftPrompt: string;
693
717
  sequence: number;
694
718
  userProjectPath?: string | null;
695
719
  }
696
720
 
721
+ interface AgentSlashCommandCapability {
722
+ aliases?: readonly string[];
723
+ capability: "browserUse" | "computerUse";
724
+ kind: "capability";
725
+ name: string;
726
+ }
727
+
728
+ type AgentComposerCapabilitySettingsTarget = AgentSlashCommandCapability["capability"];
729
+ interface AgentComposerCapabilityMenuState {
730
+ browserUse?: {
731
+ connectionMode?: "autoConnect" | "isolated" | null;
732
+ };
733
+ computerUse?: {
734
+ authorization?: AgentComposerComputerUseAuthorizationState | null;
735
+ installed?: boolean | null;
736
+ };
737
+ }
738
+ type AgentComposerComputerUseAuthorizationState = "authorized" | "needs-authorization" | "unknown";
697
739
  interface AgentComposerGitBranches {
698
740
  branches: readonly string[];
699
741
  currentBranch?: string | null;
@@ -703,6 +745,12 @@ type AgentComposerGitBranchLoader = (input: {
703
745
  workingDirectory?: string | null;
704
746
  }) => Promise<AgentComposerGitBranches>;
705
747
 
748
+ /**
749
+ * 把 @ 面板里的任务/应用 mention 解析为引用 picker 的定位目标(sourceId + 语义 params)。
750
+ * 由宿主(desktop)注入 —— 源 id 与 params 形态是宿主侧 reference source 的知识。
751
+ */
752
+ type AgentMentionReferenceTargetResolver = (item: AgentContextMentionItem) => ReferenceLocateTarget | null;
753
+
706
754
  interface AgentGUINodeProps {
707
755
  nodeId: string;
708
756
  workspaceId: string;
@@ -711,6 +759,7 @@ interface AgentGUINodeProps {
711
759
  workspaceFileReferenceAdapter?: WorkspaceFileReferenceAdapter | null;
712
760
  onRequestGitBranches?: AgentComposerGitBranchLoader | null;
713
761
  referenceSourceAggregator?: ReferenceSourceAggregator | null;
762
+ resolveMentionReferenceTarget?: AgentMentionReferenceTargetResolver | null;
714
763
  agentSettings: Pick<AgentSettings, "avoidGroupingEdits">;
715
764
  title: string;
716
765
  state: AgentGUINodeData;
@@ -719,11 +768,14 @@ interface AgentGUINodeProps {
719
768
  height: number;
720
769
  desktopSize: DesktopSize;
721
770
  onLinkAction?: (action: WorkspaceLinkAction) => void;
771
+ capabilityMenuState?: AgentComposerCapabilityMenuState;
772
+ onCapabilitySettingsRequest?: (capability: AgentComposerCapabilitySettingsTarget) => void;
722
773
  onAgentProviderLogin?: (provider: AgentProvider) => void;
723
774
  onWorkspaceFileReferencesAdded?: (input: {
724
775
  provider: AgentProvider;
725
776
  references: readonly WorkspaceFileReference[];
726
777
  }) => void | Promise<void>;
778
+ onOpenConversationWindow?: (agentSessionId: string) => void;
727
779
  onClose: () => void;
728
780
  onResize: (frame: NodeFrame) => void;
729
781
  onUpdateNode: (updater: (current: AgentGUINodeData) => AgentGUINodeData) => void;
@@ -734,6 +786,7 @@ interface AgentGUINodeProps {
734
786
  prefillPromptRequest?: AgentGUIPrefillPromptRequest | null;
735
787
  showProjectSelector?: boolean;
736
788
  isMuted?: boolean;
789
+ newConversationRequestSequence?: number | null;
737
790
  onMinimize?: () => void;
738
791
  onToggleMaximize?: () => void;
739
792
  onShowMessage?: (message: string, tone?: "info" | "warning" | "error") => void;
@@ -753,7 +806,7 @@ interface AgentGUIProps extends AgentGUINodeProps {
753
806
  i18n?: I18nRuntime<string> | null;
754
807
  locale?: AgentGuiI18nLocale;
755
808
  }
756
- declare function AgentGUI({ agentActivityRuntime, agentHostApi, i18n, locale, ...props }: AgentGUIProps): JSX.Element;
809
+ declare const AgentGUI: react.NamedExoticComponent<AgentGUIProps>;
757
810
 
758
811
  declare const agentGuiDockIconUrl: string;
759
812
  declare const agentGuiDockIconUrls: {