@tutti-os/agent-gui 0.0.66 → 0.0.68

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 (92) hide show
  1. package/dist/agent-conversation/index.d.ts +2 -2
  2. package/dist/agent-conversation/index.js +8 -8
  3. package/dist/agent-env/index.js +2 -1
  4. package/dist/agent-env/index.js.map +1 -1
  5. package/dist/agent-message-center/index.js +10 -10
  6. package/dist/{agentGuiNodeTypes-B9Aq3UEU.d.ts → agentGuiNodeTypes-BTHu_g4m.d.ts} +2 -1
  7. package/dist/app/renderer/agentactivity.css +132 -5
  8. package/dist/app/renderer/assets/icons/agents/opencode-rounded.png +0 -0
  9. package/dist/app/renderer/assets/icons/agents/provider-rail-opencode-colorful.png +0 -0
  10. package/dist/app/renderer/assets/icons/agents/tutti-flat-filled.svg +12 -0
  11. package/dist/{chunk-KRJF7WLJ.js → chunk-3QPN2Y7R.js} +53 -7
  12. package/dist/chunk-3QPN2Y7R.js.map +1 -0
  13. package/dist/{chunk-R2NGSPQS.js → chunk-4I2VCAMW.js} +16 -1
  14. package/dist/chunk-4I2VCAMW.js.map +1 -0
  15. package/dist/chunk-4US2YHBY.js +195 -0
  16. package/dist/chunk-4US2YHBY.js.map +1 -0
  17. package/dist/{chunk-DXVMRZHH.js → chunk-A2KZVRUO.js} +2 -2
  18. package/dist/{chunk-6ULTMCKP.js → chunk-AIR6A4NP.js} +2 -2
  19. package/dist/{chunk-2IMBPRKV.js → chunk-ATEZXUHK.js} +1 -1
  20. package/dist/chunk-ATEZXUHK.js.map +1 -0
  21. package/dist/{chunk-CKCUEHBW.js → chunk-BHNJN2TR.js} +13 -9
  22. package/dist/chunk-BHNJN2TR.js.map +1 -0
  23. package/dist/{chunk-NOTZW5WH.js → chunk-C2M2ELXF.js} +3 -3
  24. package/dist/{chunk-HNODQVG2.js → chunk-D22A3KGQ.js} +10 -2
  25. package/dist/chunk-D22A3KGQ.js.map +1 -0
  26. package/dist/{chunk-JTFWT6DK.js → chunk-DYX6466P.js} +4 -4
  27. package/dist/{chunk-VBTPXEFH.js → chunk-GOEL3BO7.js} +2 -2
  28. package/dist/{chunk-Z26P2QNT.js → chunk-GXHZNIWT.js} +4 -166
  29. package/dist/chunk-GXHZNIWT.js.map +1 -0
  30. package/dist/{chunk-UBBHWDMP.js → chunk-J335PQ5H.js} +9 -9
  31. package/dist/chunk-J335PQ5H.js.map +1 -0
  32. package/dist/{chunk-T3KGZV35.js → chunk-KJLSZETD.js} +3 -3
  33. package/dist/{chunk-DL6BMEHI.js → chunk-LQRD4X6R.js} +12 -3
  34. package/dist/chunk-LQRD4X6R.js.map +1 -0
  35. package/dist/{chunk-CTJQTUQ3.js → chunk-QGKK6FHC.js} +5 -5
  36. package/dist/{chunk-LQHYHF36.js → chunk-TB7PKP6F.js} +75 -18
  37. package/dist/chunk-TB7PKP6F.js.map +1 -0
  38. package/dist/{chunk-P5C3ED3V.js → chunk-UAAXRSW2.js} +3 -3
  39. package/dist/{chunk-LJE2W4EM.js → chunk-VRV6GBF5.js} +33 -5
  40. package/dist/chunk-VRV6GBF5.js.map +1 -0
  41. package/dist/{chunk-UI3YDJTC.js → chunk-YE5JSME7.js} +10 -4
  42. package/dist/chunk-YE5JSME7.js.map +1 -0
  43. package/dist/{chunk-N4I3TD4G.js → chunk-ZZBLWZJR.js} +79 -5
  44. package/dist/chunk-ZZBLWZJR.js.map +1 -0
  45. package/dist/context-mention-palette/index.js +9 -9
  46. package/dist/cursor-flat-filled-CL7N3BTZ.svg +3 -0
  47. package/dist/i18n/index.d.ts +52 -6
  48. package/dist/i18n/index.js +2 -2
  49. package/dist/index.d.ts +61 -6
  50. package/dist/index.js +2164 -1069
  51. package/dist/index.js.map +1 -1
  52. package/dist/queued-prompt-runtime.d.ts +2 -2
  53. package/dist/tutti-flat-filled-K32QBTZE.svg +12 -0
  54. package/dist/{types-Bxn8bLEp.d.ts → types-BwDrG654.d.ts} +3 -3
  55. package/dist/workbench/contribution.d.ts +1 -1
  56. package/dist/workbench/contribution.js +8 -8
  57. package/dist/workbench/index.d.ts +3 -2
  58. package/dist/workbench/index.js +11 -11
  59. package/dist/workbench/launch.d.ts +1 -1
  60. package/dist/workbench/launch.js +3 -3
  61. package/dist/workbench/providerCatalog.d.ts +5 -5
  62. package/dist/workbench/providerCatalog.js +1 -1
  63. package/dist/workbench/sessionTitle.d.ts +1 -1
  64. package/dist/workbench/sessionTitle.js +3 -3
  65. package/dist/workbench/state.d.ts +11 -2
  66. package/dist/workbench/state.js +5 -3
  67. package/dist/workbench/types.d.ts +2 -2
  68. package/dist/workbench/types.js +1 -1
  69. package/dist/workspace-agent-generated-files.js +4 -4
  70. package/package.json +12 -12
  71. package/dist/chunk-2IMBPRKV.js.map +0 -1
  72. package/dist/chunk-CKCUEHBW.js.map +0 -1
  73. package/dist/chunk-DL6BMEHI.js.map +0 -1
  74. package/dist/chunk-HNODQVG2.js.map +0 -1
  75. package/dist/chunk-KRJF7WLJ.js.map +0 -1
  76. package/dist/chunk-LJE2W4EM.js.map +0 -1
  77. package/dist/chunk-LQHYHF36.js.map +0 -1
  78. package/dist/chunk-N4I3TD4G.js.map +0 -1
  79. package/dist/chunk-R2NGSPQS.js.map +0 -1
  80. package/dist/chunk-TYGL25EL.js +0 -30
  81. package/dist/chunk-TYGL25EL.js.map +0 -1
  82. package/dist/chunk-UBBHWDMP.js.map +0 -1
  83. package/dist/chunk-UI3YDJTC.js.map +0 -1
  84. package/dist/chunk-Z26P2QNT.js.map +0 -1
  85. /package/dist/{chunk-DXVMRZHH.js.map → chunk-A2KZVRUO.js.map} +0 -0
  86. /package/dist/{chunk-6ULTMCKP.js.map → chunk-AIR6A4NP.js.map} +0 -0
  87. /package/dist/{chunk-NOTZW5WH.js.map → chunk-C2M2ELXF.js.map} +0 -0
  88. /package/dist/{chunk-JTFWT6DK.js.map → chunk-DYX6466P.js.map} +0 -0
  89. /package/dist/{chunk-VBTPXEFH.js.map → chunk-GOEL3BO7.js.map} +0 -0
  90. /package/dist/{chunk-T3KGZV35.js.map → chunk-KJLSZETD.js.map} +0 -0
  91. /package/dist/{chunk-CTJQTUQ3.js.map → chunk-QGKK6FHC.js.map} +0 -0
  92. /package/dist/{chunk-P5C3ED3V.js.map → chunk-UAAXRSW2.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 { 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-Bxn8bLEp.js';
8
- export { d as AgentGUIProviderReadinessGateAction, e as AgentGUIProviderReadinessGateStatus } from './types-Bxn8bLEp.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-B9Aq3UEU.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-B9Aq3UEU.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-BwDrG654.js';
8
+ export { d as AgentGUIProviderReadinessGateAction, e as AgentGUIProviderReadinessGateStatus } from './types-BwDrG654.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-BTHu_g4m.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-BTHu_g4m.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,23 @@ 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;
394
+ /**
395
+ * The session cwd is not resolvable on the local filesystem (e.g. a
396
+ * shared/cloud sandbox not mounted locally), so AgentGUI must not run its
397
+ * local stat-based "working directory missing" existence check — it would
398
+ * always false-positive. Absent/false (default) => local, legacy behaviour.
399
+ * Only that one guard is gated; project selection/listing is unaffected.
400
+ */
401
+ projectPathIsRemote?: boolean;
385
402
  promptContentUploadSupport?: {
386
403
  file?: boolean;
387
404
  image?: boolean;
@@ -441,6 +458,10 @@ interface WorkspaceDesktopAgentProbesState {
441
458
  snapshot: AgentProbeSnapshot | null;
442
459
  isLoadingAvailability: boolean;
443
460
  isLoadingUsage: boolean;
461
+ /** True when the most recent usage probe fetch failed (the retained snapshot,
462
+ * if any, is stale). Lets surfaces show a refresh/retry affordance instead of
463
+ * silently displaying old numbers. Absent is treated as "no failure". */
464
+ usageLoadFailed?: boolean;
444
465
  }
445
466
  type WorkspaceDesktopAgentProbeDemandChange = (provider: AgentProvider | null, sourceId?: string) => void;
446
467
  type WorkspaceDesktopAgentProbeRefreshRequest = (provider: AgentProvider, sourceId?: string) => void;
@@ -469,6 +490,37 @@ interface AgentGUIPrefillPromptRequest {
469
490
  userProjectPath?: string | null;
470
491
  }
471
492
 
493
+ interface AgentGUIAccountMenuState {
494
+ user: {
495
+ userId: string;
496
+ name?: string | null;
497
+ email?: string | null;
498
+ avatar?: string | null;
499
+ } | null;
500
+ membershipLabel: string;
501
+ creditsLabel: string | null;
502
+ loading: boolean;
503
+ error: string | null;
504
+ partialError?: boolean;
505
+ registrationCreditsToast?: {
506
+ id: string;
507
+ creditsLabel: string;
508
+ visible: boolean;
509
+ autoDismissMs?: number;
510
+ onDismiss(): void;
511
+ } | null;
512
+ links: {
513
+ planUrl: string;
514
+ usageUrl: string;
515
+ settingsUrl: string;
516
+ };
517
+ onOpenChange(open: boolean): void;
518
+ onLogin(): void;
519
+ onLogout?(): void;
520
+ onSettings?(): void;
521
+ onOpenExternal(url: string): void;
522
+ }
523
+
472
524
  interface AgentSlashCommandCapability {
473
525
  aliases?: readonly string[];
474
526
  capability: "browserUse" | "computerUse";
@@ -864,6 +916,7 @@ interface AgentGUINodeProps {
864
916
  capabilityMenuState?: AgentComposerCapabilityMenuState;
865
917
  onCapabilitySettingsRequest?: (capability: AgentComposerCapabilitySettingsTarget) => void;
866
918
  onAgentProviderLogin?: (provider: AgentProvider) => void;
919
+ accountMenuState?: AgentGUIAccountMenuState | null;
867
920
  providerTargets?: readonly AgentGUIProviderTarget[];
868
921
  providerTargetsLoading?: boolean;
869
922
  /**
@@ -929,7 +982,7 @@ interface AgentGUIProps extends AgentGUINodeProps {
929
982
  }
930
983
  declare const AgentGUI: react.NamedExoticComponent<AgentGUIProps>;
931
984
 
932
- declare const agentGUIDefaultTargetProviders: readonly ["codex", "claude-code", "cursor", "nexight", "hermes", "openclaw"];
985
+ declare const agentGUIDefaultTargetProviders: readonly ["codex", "claude-code", "cursor", "tutti-agent", "opencode", "hermes", "openclaw"];
933
986
  declare function createLocalAgentGUIProviderTarget(provider: AgentGUIProvider): AgentGUIProviderTarget;
934
987
  declare function createSharedAgentGUIProviderTarget(input: {
935
988
  provider: AgentGUIProvider;
@@ -967,6 +1020,8 @@ declare const agentGuiDockIconUrls: {
967
1020
  readonly hermes: string;
968
1021
  readonly nexight: string;
969
1022
  readonly openclaw: string;
1023
+ readonly opencode: string;
1024
+ readonly "tutti-agent": string;
970
1025
  };
971
1026
 
972
1027
  interface AgentGUIExpandedWindowFrameInput {
@@ -1000,4 +1055,4 @@ interface AgentActivityHostProviderProps extends PropsWithChildren {
1000
1055
  }
1001
1056
  declare function AgentActivityHostProvider({ agentActivityRuntime, agentHostApi, children }: AgentActivityHostProviderProps): JSX.Element;
1002
1057
 
1003
- 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, 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 };
1058
+ 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 };