@tutti-os/agent-gui 0.0.65 → 0.0.67

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 (108) hide show
  1. package/LICENSE +1 -2
  2. package/README.md +1 -1
  3. package/dist/agent-conversation/index.d.ts +2 -2
  4. package/dist/agent-conversation/index.js +8 -8
  5. package/dist/agent-message-center/index.js +10 -10
  6. package/dist/{agentGuiNodeTypes-CCjzXdTe.d.ts → agentGuiNodeTypes-DNXndXhV.d.ts} +3 -1
  7. package/dist/app/renderer/agentactivity.css +109 -0
  8. package/dist/app/renderer/assets/icons/agents/tutti-flat-filled.svg +12 -0
  9. package/dist/{chunk-N4I3TD4G.js → chunk-BX4UBTOI.js} +70 -2
  10. package/dist/chunk-BX4UBTOI.js.map +1 -0
  11. package/dist/{chunk-IDTB6OID.js → chunk-CTYXJGSW.js} +50 -12
  12. package/dist/chunk-CTYXJGSW.js.map +1 -0
  13. package/dist/{chunk-P5C3ED3V.js → chunk-DP2X4J2D.js} +3 -3
  14. package/dist/{chunk-LJE2W4EM.js → chunk-DQTBWOIK.js} +27 -4
  15. package/dist/chunk-DQTBWOIK.js.map +1 -0
  16. package/dist/chunk-IL2ORY23.js +193 -0
  17. package/dist/chunk-IL2ORY23.js.map +1 -0
  18. package/dist/{chunk-XZPAU7FC.js → chunk-JGU2VMDA.js} +3 -3
  19. package/dist/{chunk-DL6BMEHI.js → chunk-JWWHS34V.js} +3 -3
  20. package/dist/{chunk-UWBX3DZK.js → chunk-KS4ULVGM.js} +2 -2
  21. package/dist/{chunk-XLBJHHDX.js → chunk-MA254MXR.js} +51 -7
  22. package/dist/chunk-MA254MXR.js.map +1 -0
  23. package/dist/{chunk-TG3ZXLPM.js → chunk-MYD37I32.js} +27 -3
  24. package/dist/chunk-MYD37I32.js.map +1 -0
  25. package/dist/{chunk-2IMBPRKV.js → chunk-NCAVJEHI.js} +1 -1
  26. package/dist/chunk-NCAVJEHI.js.map +1 -0
  27. package/dist/{chunk-R2NGSPQS.js → chunk-OEJQJP65.js} +3 -1
  28. package/dist/{chunk-R2NGSPQS.js.map → chunk-OEJQJP65.js.map} +1 -1
  29. package/dist/{chunk-6OYLLPPN.js → chunk-PFKY5W76.js} +17 -13
  30. package/dist/chunk-PFKY5W76.js.map +1 -0
  31. package/dist/{chunk-N7BGNAA2.js → chunk-QZYGCZNQ.js} +7 -9
  32. package/dist/chunk-QZYGCZNQ.js.map +1 -0
  33. package/dist/{chunk-CKCUEHBW.js → chunk-RNFP7CUO.js} +9 -8
  34. package/dist/chunk-RNFP7CUO.js.map +1 -0
  35. package/dist/{chunk-UI3YDJTC.js → chunk-SKWDZTEV.js} +6 -4
  36. package/dist/chunk-SKWDZTEV.js.map +1 -0
  37. package/dist/{chunk-LQHYHF36.js → chunk-UAXKJNM2.js} +14 -7
  38. package/dist/chunk-UAXKJNM2.js.map +1 -0
  39. package/dist/{chunk-HKKC2U6J.js → chunk-VIJQ5C33.js} +6 -6
  40. package/dist/{chunk-HKKC2U6J.js.map → chunk-VIJQ5C33.js.map} +1 -1
  41. package/dist/{chunk-EIPQGFAE.js → chunk-XBR7D7X2.js} +2 -2
  42. package/dist/{chunk-R7PSPKBD.js → chunk-YU3XLPLC.js} +2 -6
  43. package/dist/chunk-YU3XLPLC.js.map +1 -0
  44. package/dist/{chunk-QULZNKPA.js → chunk-YYAP6IK7.js} +4 -166
  45. package/dist/chunk-YYAP6IK7.js.map +1 -0
  46. package/dist/{chunk-W3Q7B3DV.js → chunk-ZABN3POD.js} +6 -2
  47. package/dist/chunk-ZABN3POD.js.map +1 -0
  48. package/dist/context-mention-palette/index.js +9 -9
  49. package/dist/cursor-flat-filled-CL7N3BTZ.svg +3 -0
  50. package/dist/i18n/index.d.ts +50 -6
  51. package/dist/i18n/index.js +2 -2
  52. package/dist/index.d.ts +63 -6
  53. package/dist/index.js +1654 -1395
  54. package/dist/index.js.map +1 -1
  55. package/dist/queued-prompt-runtime.d.ts +22 -3
  56. package/dist/queued-prompt-runtime.js +1 -1
  57. package/dist/tutti-flat-filled-K32QBTZE.svg +12 -0
  58. package/dist/{types-BAPEle8b.d.ts → types-BxOwnK7K.d.ts} +17 -4
  59. package/dist/workbench/contribution.d.ts +1 -1
  60. package/dist/workbench/contribution.js +8 -8
  61. package/dist/workbench/index.d.ts +1 -1
  62. package/dist/workbench/index.js +11 -11
  63. package/dist/workbench/launch.d.ts +1 -1
  64. package/dist/workbench/launch.js +3 -3
  65. package/dist/workbench/providerCatalog.d.ts +4 -4
  66. package/dist/workbench/providerCatalog.js +1 -1
  67. package/dist/workbench/sessionTitle.d.ts +1 -1
  68. package/dist/workbench/sessionTitle.js +3 -3
  69. package/dist/workbench/state.d.ts +1 -1
  70. package/dist/workbench/state.js +3 -3
  71. package/dist/workbench/types.d.ts +2 -2
  72. package/dist/workbench/types.js +1 -1
  73. package/dist/workspace-agent-generated-files.js +4 -4
  74. package/package.json +12 -12
  75. package/dist/app/renderer/assets/icons/@-lined-14px.svg +0 -3
  76. package/dist/app/renderer/assets/icons/agents/manage-agent-claude-code.png +0 -0
  77. package/dist/app/renderer/assets/icons/agents/manage-agent-codex.png +0 -0
  78. package/dist/app/renderer/assets/icons/agents/manage-agent-gemini.png +0 -0
  79. package/dist/app/renderer/assets/icons/agents/manage-agent-hermes.png +0 -0
  80. package/dist/app/renderer/assets/icons/agents/manage-agent-openclaw.png +0 -0
  81. package/dist/app/renderer/assets/icons/agents/tutti-doc-rounded.png +0 -0
  82. package/dist/app/renderer/assets/icons/agents/workspace-dock-agent-claude-code.png +0 -0
  83. package/dist/app/renderer/assets/icons/agents/workspace-dock-agent-codex.png +0 -0
  84. package/dist/app/renderer/assets/icons/agents/workspace-dock-agent-gemini.png +0 -0
  85. package/dist/app/renderer/assets/icons/agents/workspace-dock-agent-nexight.png +0 -0
  86. package/dist/app/renderer/assets/icons/agents/workspace-dock-agent-openclaw.png +0 -0
  87. package/dist/app/renderer/assets/icons/arrow-left-filled.svg +0 -1
  88. package/dist/chunk-2IMBPRKV.js.map +0 -1
  89. package/dist/chunk-6OYLLPPN.js.map +0 -1
  90. package/dist/chunk-CKCUEHBW.js.map +0 -1
  91. package/dist/chunk-IDTB6OID.js.map +0 -1
  92. package/dist/chunk-LJE2W4EM.js.map +0 -1
  93. package/dist/chunk-LQHYHF36.js.map +0 -1
  94. package/dist/chunk-N4I3TD4G.js.map +0 -1
  95. package/dist/chunk-N7BGNAA2.js.map +0 -1
  96. package/dist/chunk-QULZNKPA.js.map +0 -1
  97. package/dist/chunk-R7PSPKBD.js.map +0 -1
  98. package/dist/chunk-TG3ZXLPM.js.map +0 -1
  99. package/dist/chunk-TYGL25EL.js +0 -30
  100. package/dist/chunk-TYGL25EL.js.map +0 -1
  101. package/dist/chunk-UI3YDJTC.js.map +0 -1
  102. package/dist/chunk-W3Q7B3DV.js.map +0 -1
  103. package/dist/chunk-XLBJHHDX.js.map +0 -1
  104. /package/dist/{chunk-P5C3ED3V.js.map → chunk-DP2X4J2D.js.map} +0 -0
  105. /package/dist/{chunk-XZPAU7FC.js.map → chunk-JGU2VMDA.js.map} +0 -0
  106. /package/dist/{chunk-DL6BMEHI.js.map → chunk-JWWHS34V.js.map} +0 -0
  107. /package/dist/{chunk-UWBX3DZK.js.map → chunk-KS4ULVGM.js.map} +0 -0
  108. /package/dist/{chunk-EIPQGFAE.js.map → chunk-XBR7D7X2.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -4,10 +4,10 @@ import { m as WorkspaceAgentActivityListViewModel, g as AgentHostWorkspaceAgentS
4
4
  import * as react from 'react';
5
5
  import { ReactNode, PropsWithChildren, JSX, HTMLAttributes } from 'react';
6
6
  import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
7
- import { q as AgentProvider, f as AgentGUIProviderTargetRef, i as AgentHostAgentSessionComposerSettings, g as AgentHostActivateAgentSessionResult, o as AgentHostUpdateAgentSessionSettingsResult, m as AgentHostAgentSessionState, n as AgentHostUnactivateAgentSessionResult, A as AgentGUINodeData, a as AgentGUIProvider, e as AgentGUIProviderTarget, p as AgentPromptContentBlock, P as Point, b as AgentGUIProviderReadinessGate, N as NodeFrame } from './types-BAPEle8b.js';
8
- export { c as AgentGUIProviderReadinessGateAction, d as AgentGUIProviderReadinessGateStatus } from './types-BAPEle8b.js';
9
- import { k as AgentProbeSnapshot, A as AgentComposerDraft, n as AgentSessionCommand, c as AgentGUIProviderSkillOption, a as AgentGUIComposerSettingsVM, d as AgentGUIQueuedPromptVM, b as AgentGUINodeViewModel, g as AgentHostInputApi } from './agentGuiNodeTypes-CCjzXdTe.js';
10
- export { e as AgentHostApi, f as AgentHostApplyWorkspaceGitPatchInput, h as AgentHostRuntimeApi, i as AgentHostSelectFilesInput, j as AgentProbeProvider, l as AgentProviderProbeListInput, m as AgentProviderProbeListResult, o as AgentUsageQuota, p as AgentUsageSnapshot, P as PersistWriteResult, R as ReadWorkspaceAgentReadStateInput, W as WorkspaceAgentReadStateSnapshot, q as WriteWorkspaceAgentReadStateInput } from './agentGuiNodeTypes-CCjzXdTe.js';
7
+ import { r as AgentProvider, g as AgentGUIProviderTargetRef, j as AgentHostAgentSessionComposerSettings, h as AgentHostActivateAgentSessionResult, p as AgentHostUpdateAgentSessionSettingsResult, n as AgentHostAgentSessionState, o as AgentHostUnactivateAgentSessionResult, A as AgentGUINodeData, a as AgentGUIProvider, f as AgentGUIProviderTarget, q as AgentPromptContentBlock, P as Point, b as AgentGUIProviderRailMode, c as AgentGUIProviderReadinessGate, N as NodeFrame } from './types-BxOwnK7K.js';
8
+ export { d as AgentGUIProviderReadinessGateAction, e as AgentGUIProviderReadinessGateStatus } from './types-BxOwnK7K.js';
9
+ import { k as AgentProbeSnapshot, A as AgentComposerDraft, n as AgentSessionCommand, c as AgentGUIProviderSkillOption, a as AgentGUIComposerSettingsVM, d as AgentGUIQueuedPromptVM, b as AgentGUINodeViewModel, g as AgentHostInputApi } from './agentGuiNodeTypes-DNXndXhV.js';
10
+ export { e as AgentHostApi, f as AgentHostApplyWorkspaceGitPatchInput, h as AgentHostRuntimeApi, i as AgentHostSelectFilesInput, j as AgentProbeProvider, l as AgentProviderProbeListInput, m as AgentProviderProbeListResult, o as AgentUsageQuota, p as AgentUsageSnapshot, P as PersistWriteResult, R as ReadWorkspaceAgentReadStateInput, W as WorkspaceAgentReadStateSnapshot, q as WriteWorkspaceAgentReadStateInput } from './agentGuiNodeTypes-DNXndXhV.js';
11
11
  import { WorkspaceFileEntry } from '@tutti-os/workspace-file-manager/services';
12
12
  import { WorkspaceFileReference, ReferenceLocateTarget, WorkspaceFileReferenceAdapter } from '@tutti-os/workspace-file-reference/contracts';
13
13
  import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
@@ -382,6 +382,15 @@ interface AgentActivityRuntimePromptAsset {
382
382
  data: string;
383
383
  }
384
384
  interface AgentActivityRuntime {
385
+ /**
386
+ * Stable identity of this runtime instance (e.g. a local origin vs a
387
+ * shared/room origin). When present, the conversation-list and session-view
388
+ * stores key their query state, runtime resolution, and subscriptions by this
389
+ * value, so multiple runtimes can coexist for the same workspace without
390
+ * fighting over a single module-global slot. Absent => legacy single-runtime
391
+ * behaviour resolved via the module-global.
392
+ */
393
+ origin?: string;
385
394
  promptContentUploadSupport?: {
386
395
  file?: boolean;
387
396
  image?: boolean;
@@ -469,6 +478,37 @@ interface AgentGUIPrefillPromptRequest {
469
478
  userProjectPath?: string | null;
470
479
  }
471
480
 
481
+ interface AgentGUIAccountMenuState {
482
+ user: {
483
+ userId: string;
484
+ name?: string | null;
485
+ email?: string | null;
486
+ avatar?: string | null;
487
+ } | null;
488
+ membershipLabel: string;
489
+ creditsLabel: string | null;
490
+ loading: boolean;
491
+ error: string | null;
492
+ partialError?: boolean;
493
+ registrationCreditsToast?: {
494
+ id: string;
495
+ creditsLabel: string;
496
+ visible: boolean;
497
+ autoDismissMs?: number;
498
+ onDismiss(): void;
499
+ } | null;
500
+ links: {
501
+ planUrl: string;
502
+ usageUrl: string;
503
+ settingsUrl: string;
504
+ };
505
+ onOpenChange(open: boolean): void;
506
+ onLogin(): void;
507
+ onLogout?(): void;
508
+ onSettings?(): void;
509
+ onOpenExternal(url: string): void;
510
+ }
511
+
472
512
  interface AgentSlashCommandCapability {
473
513
  aliases?: readonly string[];
474
514
  capability: "browserUse" | "computerUse";
@@ -824,6 +864,13 @@ interface AgentGUISidebarFooterContext {
824
864
  activeConversation: AgentGUINodeViewModel["activeConversation"];
825
865
  }
826
866
  type AgentGUISidebarFooterRenderer = (ctx: AgentGUISidebarFooterContext) => ReactNode;
867
+ /**
868
+ * Renders the provider rail body when the rail is in "exact" mode and the
869
+ * host-provided target list is empty (and not loading). Lets the host fully own
870
+ * the empty state (e.g. a "no shared agents" message or a create-agent prompt)
871
+ * instead of the library falling back to the static local catalog.
872
+ */
873
+ type AgentGUIProviderRailEmptyRenderer = () => ReactNode;
827
874
 
828
875
  interface AgentGUINodeProps {
829
876
  nodeId: string;
@@ -857,8 +904,17 @@ interface AgentGUINodeProps {
857
904
  capabilityMenuState?: AgentComposerCapabilityMenuState;
858
905
  onCapabilitySettingsRequest?: (capability: AgentComposerCapabilitySettingsTarget) => void;
859
906
  onAgentProviderLogin?: (provider: AgentProvider) => void;
907
+ accountMenuState?: AgentGUIAccountMenuState | null;
860
908
  providerTargets?: readonly AgentGUIProviderTarget[];
861
909
  providerTargetsLoading?: boolean;
910
+ /**
911
+ * Controls how the provider rail composes its list. "catalog" (default) adds
912
+ * the static local catalog + placeholders + coming-soon; "exact" renders only
913
+ * the provided targets and shows `renderProviderRailEmpty` when empty.
914
+ */
915
+ providerRailMode?: AgentGUIProviderRailMode;
916
+ /** Host-owned empty state for the provider rail in "exact" mode. */
917
+ renderProviderRailEmpty?: AgentGUIProviderRailEmptyRenderer;
862
918
  renderSidebarFooter?: (ctx: AgentGUISidebarFooterContext) => ReactNode;
863
919
  comingSoonProviders?: readonly AgentGUIProvider[];
864
920
  providerReadinessGates?: Partial<Record<AgentGUIProvider, AgentGUIProviderReadinessGate | null>> | null;
@@ -914,7 +970,7 @@ interface AgentGUIProps extends AgentGUINodeProps {
914
970
  }
915
971
  declare const AgentGUI: react.NamedExoticComponent<AgentGUIProps>;
916
972
 
917
- declare const agentGUIDefaultTargetProviders: readonly ["codex", "claude-code", "cursor", "nexight", "hermes", "openclaw"];
973
+ declare const agentGUIDefaultTargetProviders: readonly ["codex", "claude-code", "cursor", "tutti-agent", "hermes", "openclaw"];
918
974
  declare function createLocalAgentGUIProviderTarget(provider: AgentGUIProvider): AgentGUIProviderTarget;
919
975
  declare function createSharedAgentGUIProviderTarget(input: {
920
976
  provider: AgentGUIProvider;
@@ -952,6 +1008,7 @@ declare const agentGuiDockIconUrls: {
952
1008
  readonly hermes: string;
953
1009
  readonly nexight: string;
954
1010
  readonly openclaw: string;
1011
+ readonly "tutti-agent": string;
955
1012
  };
956
1013
 
957
1014
  interface AgentGUIExpandedWindowFrameInput {
@@ -985,4 +1042,4 @@ interface AgentActivityHostProviderProps extends PropsWithChildren {
985
1042
  }
986
1043
  declare function AgentActivityHostProvider({ agentActivityRuntime, agentHostApi, children }: AgentActivityHostProviderProps): JSX.Element;
987
1044
 
988
- export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentContextMentionProvider, type AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, AgentGUI, type AgentGUIProps, AgentGUIProvider, AgentGUIProviderReadinessGate, AgentGUIProviderTarget, AgentGUIProviderTargetRef, type AgentGUISidebarFooterContext, type AgentGUISidebarFooterRenderer, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, AgentQueuedPromptQueueSnapshot, AgentQueuedPromptRuntime, AgentQueuedPromptRuntimeProvider, type AgentQueuedPromptRuntimeProviderProps, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, createLocalAgentGUIProviderTarget, createLocalAgentGUIProviderTargets, createSharedAgentGUIProviderTarget, getAgentActivityRuntime, getAgentCustomMentionKind, getOptionalAgentActivityRuntime, localAgentGUIAgentTargetId, localAgentGUIProviderTargetId, normalizeAgentGUIProviderTargets, projectCoreSessionStatus, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resetAgentQueuedPromptRuntimeForTests, resolveAgentGUIExpandedWindowFrame, resolveAgentGUIProviderTarget, setAgentActivityRuntimeForTests, setAgentQueuedPromptRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useAgentQueuedPromptRuntime, useAgentQueuedPromptSessionSnapshot, useOptionalAgentActivityRuntime };
1045
+ export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentContextMentionProvider, type AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, AgentGUI, type AgentGUIAccountMenuState, type AgentGUIProps, AgentGUIProvider, type AgentGUIProviderRailEmptyRenderer, AgentGUIProviderRailMode, AgentGUIProviderReadinessGate, AgentGUIProviderTarget, AgentGUIProviderTargetRef, type AgentGUISidebarFooterContext, type AgentGUISidebarFooterRenderer, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, AgentQueuedPromptQueueSnapshot, AgentQueuedPromptRuntime, AgentQueuedPromptRuntimeProvider, type AgentQueuedPromptRuntimeProviderProps, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, createLocalAgentGUIProviderTarget, createLocalAgentGUIProviderTargets, createSharedAgentGUIProviderTarget, getAgentActivityRuntime, getAgentCustomMentionKind, getOptionalAgentActivityRuntime, localAgentGUIAgentTargetId, localAgentGUIProviderTargetId, normalizeAgentGUIProviderTargets, projectCoreSessionStatus, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resetAgentQueuedPromptRuntimeForTests, resolveAgentGUIExpandedWindowFrame, resolveAgentGUIProviderTarget, setAgentActivityRuntimeForTests, setAgentQueuedPromptRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useAgentQueuedPromptRuntime, useAgentQueuedPromptSessionSnapshot, useOptionalAgentActivityRuntime };