@tutti-os/agent-gui 0.0.211 → 0.0.213

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 (71) hide show
  1. package/README.md +19 -11
  2. package/dist/{AgentRichTextReadonly-GEGDM5UJ.js → AgentRichTextReadonly-TASIMIK4.js} +5 -5
  3. package/dist/agent-conversation/index.d.ts +1 -1
  4. package/dist/agent-conversation/index.js +9 -9
  5. package/dist/agent-conversation/interactive-answer.d.ts +34 -0
  6. package/dist/agent-conversation/interactive-answer.js +11 -0
  7. package/dist/agent-conversation/interactive-answer.js.map +1 -0
  8. package/dist/agent-env/index.d.ts +1 -8
  9. package/dist/agent-env/index.js +1 -1
  10. package/dist/agent-gui.d.ts +21 -48
  11. package/dist/agent-gui.js +17 -16
  12. package/dist/agent-message-center/index.js +8 -7
  13. package/dist/agent-message-center/index.js.map +1 -1
  14. package/dist/{agentFileMentionContracts-B0yQizXB.d.ts → agentFileMentionContracts-BeBex-Sf.d.ts} +5 -0
  15. package/dist/{agentGuiNodeTypes-DTeerTzS.d.ts → agentGuiNodeTypes-BMcpfKTn.d.ts} +5 -1
  16. package/dist/app/renderer/agentactivity.css +45 -30
  17. package/dist/{chunk-7CJEFNHW.js → chunk-2HYADTQP.js} +7 -2
  18. package/dist/chunk-2HYADTQP.js.map +1 -0
  19. package/dist/{chunk-4VXUWPPZ.js → chunk-7SSORDQY.js} +18 -32
  20. package/dist/chunk-7SSORDQY.js.map +1 -0
  21. package/dist/{chunk-3MMKYY6R.js → chunk-AD2RTSMS.js} +2 -2
  22. package/dist/{chunk-X2LSVRRX.js → chunk-BYHNJQYH.js} +2 -2
  23. package/dist/{chunk-SXZJ3MDI.js → chunk-FEUU4YMY.js} +31 -32
  24. package/dist/chunk-FEUU4YMY.js.map +1 -0
  25. package/dist/chunk-FMTWYOHM.js +25 -0
  26. package/dist/chunk-FMTWYOHM.js.map +1 -0
  27. package/dist/{chunk-CVGUT36H.js → chunk-G2QO6HPB.js} +2 -2
  28. package/dist/{chunk-PLAOIDNY.js → chunk-ISC67YBJ.js} +171 -36
  29. package/dist/chunk-ISC67YBJ.js.map +1 -0
  30. package/dist/{chunk-U5NVLMW2.js → chunk-L4E2Y52A.js} +2 -2
  31. package/dist/{chunk-Z23HCYYR.js → chunk-LQKLBDBK.js} +3 -3
  32. package/dist/{chunk-JZ6KUUDY.js → chunk-N4HLBSMJ.js} +2 -32
  33. package/dist/chunk-N4HLBSMJ.js.map +1 -0
  34. package/dist/{chunk-Y2VQMPUR.js → chunk-QVLEP54U.js} +4 -56
  35. package/dist/chunk-QVLEP54U.js.map +1 -0
  36. package/dist/{chunk-AT4DII34.js → chunk-RLFO3NJV.js} +1692 -2046
  37. package/dist/chunk-RLFO3NJV.js.map +1 -0
  38. package/dist/{chunk-KY2IYJXK.js → chunk-XERDRMSF.js} +11 -5
  39. package/dist/chunk-XERDRMSF.js.map +1 -0
  40. package/dist/{chunk-HH5EWBH2.js → chunk-YBIT37P5.js} +2 -2
  41. package/dist/{chunk-P4LVBSFC.js → chunk-ZNHMWCO4.js} +8 -8
  42. package/dist/context-mention-palette/index.d.ts +1 -1
  43. package/dist/context-mention-palette/index.js +8 -8
  44. package/dist/i18n/index.d.ts +3 -55
  45. package/dist/i18n/index.js +2 -2
  46. package/dist/index.d.ts +46 -624
  47. package/dist/index.js +18 -25
  48. package/dist/index.js.map +1 -1
  49. package/dist/mention-search.d.ts +2 -2
  50. package/dist/mention-search.js +6 -6
  51. package/dist/workbench/contribution.js +3 -3
  52. package/dist/workbench/index.js +6 -6
  53. package/dist/workbench/sessionTitle.js +2 -2
  54. package/package.json +22 -15
  55. package/dist/app/renderer/assets/commercial/registration-credits-bg.png +0 -0
  56. package/dist/chunk-4VXUWPPZ.js.map +0 -1
  57. package/dist/chunk-7CJEFNHW.js.map +0 -1
  58. package/dist/chunk-AT4DII34.js.map +0 -1
  59. package/dist/chunk-JZ6KUUDY.js.map +0 -1
  60. package/dist/chunk-KY2IYJXK.js.map +0 -1
  61. package/dist/chunk-PLAOIDNY.js.map +0 -1
  62. package/dist/chunk-SXZJ3MDI.js.map +0 -1
  63. package/dist/chunk-Y2VQMPUR.js.map +0 -1
  64. /package/dist/{AgentRichTextReadonly-GEGDM5UJ.js.map → AgentRichTextReadonly-TASIMIK4.js.map} +0 -0
  65. /package/dist/{chunk-3MMKYY6R.js.map → chunk-AD2RTSMS.js.map} +0 -0
  66. /package/dist/{chunk-X2LSVRRX.js.map → chunk-BYHNJQYH.js.map} +0 -0
  67. /package/dist/{chunk-CVGUT36H.js.map → chunk-G2QO6HPB.js.map} +0 -0
  68. /package/dist/{chunk-U5NVLMW2.js.map → chunk-L4E2Y52A.js.map} +0 -0
  69. /package/dist/{chunk-Z23HCYYR.js.map → chunk-LQKLBDBK.js.map} +0 -0
  70. /package/dist/{chunk-HH5EWBH2.js.map → chunk-YBIT37P5.js.map} +0 -0
  71. /package/dist/{chunk-P4LVBSFC.js.map → chunk-ZNHMWCO4.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -3,18 +3,18 @@ import react__default, { ReactNode, PropsWithChildren, JSX } from 'react';
3
3
  import * as _tutti_os_ui_i18n_runtime from '@tutti-os/ui-i18n-runtime';
4
4
  import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
5
5
  import * as _tutti_os_agent_activity_core from '@tutti-os/agent-activity-core';
6
- import { AgentActivityGoalControlInput, AgentActivityGoalControlResult, AgentActivityCreateSessionInput, AgentActivitySession, AgentActivityDeleteSessionInput, AgentActivityDeleteSessionResult, AgentActivitySendInput, AgentActivityRailPlacement, AgentActivitySessionSettings, AgentActivityActivateSessionResult, AgentActivityUpdateTuttiModeActivationInput, AgentActivityUpdateTuttiModeActivationResult, AgentActivitySnapshot, AgentSessionEngine, AgentActivityMessageOrder, AgentActivityMessagePage, AgentActivitySendInputResult, AgentActivityRenameSessionInput, AgentActivitySetCollaborationAdoptionInput, AgentActivityCollaborationRun, AgentActivitySubmitInteractiveInput, AgentActivitySubmitInteractiveResult, AgentActivitySnapshotListener, AgentActivityMessageSemantics, AgentActivityGoalControlAction, AgentActivityTurn, AgentActivitySlashCommandPolicy, AgentActivityUsage, CanonicalAgentSession, AgentActivitySubmitSettingsPatch, AgentSessionEngineState } from '@tutti-os/agent-activity-core';
6
+ import { AgentActivityGoalControlInput, AgentActivityGoalControlResult, AgentActivityCreateSessionInput, AgentActivitySession, AgentActivityDeleteSessionInput, AgentActivityDeleteSessionResult, AgentActivitySendInput, AgentActivityRailPlacement, AgentActivitySessionSettings, AgentActivityActivateSessionResult, AgentActivityUpdateTuttiModeActivationInput, AgentActivityUpdateTuttiModeActivationResult, AgentActivitySnapshot, AgentSessionEngine, AgentActivityMessageOrder, AgentActivityMessagePage, AgentActivitySendInputResult, AgentActivityRenameSessionInput, AgentActivitySetCollaborationAdoptionInput, AgentActivityCollaborationRun, AgentActivitySubmitInteractiveInput, AgentActivitySubmitInteractiveResult, AgentActivitySnapshotListener, AgentActivityMessageSemantics, AgentActivityGoalControlAction, AgentActivityTurn, AgentActivitySlashCommandPolicy, AgentActivityUsage, CanonicalAgentSession, SessionRuntimeAvailability, AgentActivitySubmitSettingsPatch, AgentSessionEngineState } from '@tutti-os/agent-activity-core';
7
7
  export { AgentActivityAdapter, AgentActivityMessage, AgentActivityNeedsAttentionItem, AgentActivitySnapshot, selectNeedsAttentionCount, selectNeedsAttentionItems } from '@tutti-os/agent-activity-core';
8
8
  import { WorkspaceUserProjectService, WorkspaceUserProject } from '@tutti-os/workspace-user-project/contracts';
9
9
  import { WorkspaceFileReference, ReferenceLocateTarget, WorkspaceFileReferenceAdapter, ReferenceProvenanceCatalog } from '@tutti-os/workspace-file-reference/contracts';
10
10
  export { ReferenceProvenanceCatalog as AgentGUIReferenceProvenanceFilterCatalog } from '@tutti-os/workspace-file-reference/contracts';
11
- import { WorkspaceUserProjectI18nRuntime } from '@tutti-os/workspace-user-project/i18n';
12
- import { WorkspaceIssueMentionMode } from '@tutti-os/workspace-issue-manager/core';
13
- import { WorkspaceUserProjectSelectChangeAction } from '@tutti-os/workspace-user-project/ui';
14
- import { ReferenceProvenanceFilterSnapshot, ReferenceProvenanceFilterController } from '@tutti-os/workspace-file-reference/react';
15
11
  import { WorkspaceFileEntry } from '@tutti-os/workspace-file-manager/services';
16
12
  import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
17
13
  import { ReferenceSourcePickerProps } from '@tutti-os/workspace-file-reference/ui';
14
+ import { WorkspaceIssueMentionMode } from '@tutti-os/workspace-issue-manager/core';
15
+ import { WorkspaceUserProjectI18nRuntime } from '@tutti-os/workspace-user-project/i18n';
16
+ import { WorkspaceUserProjectSelectChangeAction } from '@tutti-os/workspace-user-project/ui';
17
+ import { ReferenceProvenanceFilterSnapshot, ReferenceProvenanceFilterController } from '@tutti-os/workspace-file-reference/react';
18
18
  import { RichTextMentionService } from '@tutti-os/ui-rich-text/service';
19
19
  import { RichTextTriggerProvider, RichTextTriggerQueryInput } from '@tutti-os/ui-rich-text/types';
20
20
  import { TuttiExternalAtProviderId } from '@tutti-os/workspace-external-core/contracts';
@@ -1860,44 +1860,6 @@ interface AgentMessageMarkdownWorkspaceAppIcon {
1860
1860
  workspaceId?: string | null;
1861
1861
  }
1862
1862
 
1863
- type AgentGUIMembershipAccessState = "free" | "active" | "inactive" | "unknown";
1864
- interface AgentGUIAccountMenuState {
1865
- user: {
1866
- userId: string;
1867
- name?: string | null;
1868
- email?: string | null;
1869
- avatar?: string | null;
1870
- } | null;
1871
- membershipLabel: string;
1872
- /**
1873
- * Normalized by the Commerce domain. Hosts must not infer access from
1874
- * provider-specific tier/status strings.
1875
- */
1876
- membershipAccess?: AgentGUIMembershipAccessState;
1877
- creditsLabel: string | null;
1878
- loading: boolean;
1879
- error: string | null;
1880
- partialError?: boolean;
1881
- registrationCreditsToast?: {
1882
- id: string;
1883
- creditsLabel: string;
1884
- visible: boolean;
1885
- autoDismissMs?: number;
1886
- onDismiss(): void;
1887
- } | null;
1888
- links: {
1889
- planUrl: string;
1890
- usageUrl: string;
1891
- settingsUrl: string;
1892
- };
1893
- onOpenChange(open: boolean): void;
1894
- onLogin(): void;
1895
- onLogout?(): void;
1896
- onSettings?(): void;
1897
- onCopyUserId?(): void | Promise<void>;
1898
- onOpenExternal(url: string): void;
1899
- }
1900
-
1901
1863
  type AgentSessionCommand = AgentHostAgentSessionCommand;
1902
1864
  type AgentSessionComposerSettings = AgentHostAgentSessionComposerSettings;
1903
1865
  type AgentSessionPermissionConfig = AgentHostAgentSessionPermissionConfig;
@@ -1934,9 +1896,14 @@ interface AgentMentionSessionItem {
1934
1896
  name: string;
1935
1897
  title: string;
1936
1898
  scope: AgentMentionScope;
1899
+ initiatorUserId?: string;
1937
1900
  initiatorName: string;
1938
1901
  initiatorAvatarUrl?: string;
1939
1902
  agentName: string;
1903
+ /** Structured owner segment from the matching provenance Agent option. */
1904
+ agentOwnerLabel?: string;
1905
+ /** Structured Agent segment from the matching provenance Agent option. */
1906
+ agentLabel?: string;
1940
1907
  agentIconUrl?: string;
1941
1908
  status?: string;
1942
1909
  inputPreview?: string;
@@ -2236,48 +2203,6 @@ type AgentComposerDraftContent = [
2236
2203
  /** One atomic, unsent composer message. */
2237
2204
  type AgentComposerDraft = AgentComposerDraftContent;
2238
2205
  type AgentComposerDraftFile = Omit<AgentComposerRegularFileBlock, "type" | "kind">;
2239
- /**
2240
- * Built-in glyph for a home-suggestion category chip. Keeps the localized data
2241
- * free of any component references so it can live in the i18n label bundle.
2242
- */
2243
- type AgentHomeSuggestionIcon = "write" | "code" | "research" | "handoff" | "breakdown" | "review" | "interaction" | "about" | "import";
2244
- /**
2245
- * Host-level action a chip can trigger. A chip may carry an action alongside a
2246
- * `prompt` — both fire on click (the prompt fills, then the action runs).
2247
- * `import-session` opens the external-agent session import wizard.
2248
- */
2249
- type AgentHomeSuggestionAction = "import-session";
2250
- interface AgentHomeSuggestionItem {
2251
- id: string;
2252
- /** Text shown in the suggestion row. */
2253
- label: string;
2254
- /**
2255
- * Prompt inserted into the composer when the suggestion is chosen. Defaults
2256
- * to `label` when omitted so short labels can double as the prompt.
2257
- */
2258
- prompt?: string;
2259
- }
2260
- interface AgentHomeSuggestionCategory {
2261
- id: string;
2262
- /** Chip / card header label. */
2263
- label: string;
2264
- icon?: AgentHomeSuggestionIcon;
2265
- /**
2266
- * Suggestions revealed in an expandable card when the chip is chosen. Omit
2267
- * (or leave empty) for a direct-fill chip that uses `prompt` instead.
2268
- */
2269
- items?: AgentHomeSuggestionItem[];
2270
- /**
2271
- * When set, the chip fills the composer with this prompt immediately on click
2272
- * instead of expanding a card of `items`.
2273
- */
2274
- prompt?: string;
2275
- /**
2276
- * When set, the chip triggers a host action on click instead of filling the
2277
- * composer or expanding `items`.
2278
- */
2279
- action?: AgentHomeSuggestionAction;
2280
- }
2281
2206
  interface AgentGUIComposerModelPlanVM {
2282
2207
  id: string;
2283
2208
  name: string;
@@ -2409,11 +2334,15 @@ interface AgentGUIInteractionViewModel {
2409
2334
  sessionChrome: AgentGUISessionChrome;
2410
2335
  inlineNotice: AgentGUIInlineNotice | null;
2411
2336
  }
2337
+ type AgentGUIRuntimeBlockedReason = Extract<SessionRuntimeAvailability, {
2338
+ state: "blocked";
2339
+ }>["reason"];
2412
2340
  interface AgentGUIReadinessViewModel {
2413
2341
  activeLiveState: "inactive" | "activating" | "active" | "failed";
2414
2342
  activationError: string | null;
2415
2343
  activeConversationBusy: boolean;
2416
2344
  sessionRuntimeBlocked: boolean;
2345
+ sessionRuntimeBlockedReason: AgentGUIRuntimeBlockedReason | null;
2417
2346
  targetConnectionBlocked: boolean;
2418
2347
  providerReadinessGate: AgentGUIProviderReadinessGate | null;
2419
2348
  }
@@ -3211,17 +3140,12 @@ declare const agentGuiI18nResources: {
3211
3140
  readonly visibleErrorConfigTimeout: "{{provider}} couldn't apply session settings before the request timed out. Try again in a moment.";
3212
3141
  readonly visibleErrorStreamDisconnected: "{{provider}}'s response was interrupted before it completed. Try again in a moment.";
3213
3142
  readonly visibleErrorConcurrencyLimit: "{{provider}} is handling too many requests right now. Try again after another task finishes.";
3214
- readonly visibleErrorInsufficientCreditsFree: "Your available credits are exhausted. Upgrade your membership for more credits";
3215
- readonly visibleErrorInsufficientCreditsActive: "Your Tutti credits are insufficient. Recharge credits to continue";
3216
3143
  readonly visibleErrorInsufficientCreditsUnknown: "Your Tutti credits are insufficient. Review credit options to continue";
3217
3144
  readonly visibleErrorActionInstall: "Connect";
3218
3145
  readonly visibleErrorActionUpgrade: "Upgrade";
3219
3146
  readonly visibleErrorActionRelogin: "Sign in";
3220
3147
  readonly visibleErrorActionCheckNetwork: "Check network";
3221
3148
  readonly visibleErrorActionDetect: "Open setup";
3222
- readonly visibleErrorActionUpgradeMembership: "Upgrade membership";
3223
- readonly visibleErrorActionRechargeCredits: "Recharge credits";
3224
- readonly visibleErrorActionViewCreditPlans: "View credit options";
3225
3149
  readonly systemNoticeTransportRetry: "Agent connection interrupted. Reconnecting...";
3226
3150
  readonly systemNoticeTransportFallback: "Agent switched to HTTPS transport";
3227
3151
  readonly systemNoticePlanImplementationPendingConfirmation: "Plan implementation is awaiting confirmation";
@@ -3454,25 +3378,6 @@ declare const agentGuiI18nResources: {
3454
3378
  };
3455
3379
  readonly conversations: "Sessions";
3456
3380
  readonly newConversation: "New session";
3457
- readonly accountMenuTitle: "Tutti Agent";
3458
- readonly accountMenuMember: "Membership";
3459
- readonly accountMenuUpgrade: "Upgrade";
3460
- readonly accountMenuRecharge: "Recharge credits";
3461
- readonly accountMenuViewPlans: "View credit options";
3462
- readonly accountMenuCreditsBalance: "Credits";
3463
- readonly accountMenuAccountCenter: "Account center";
3464
- readonly accountMenuSettings: "Settings";
3465
- readonly accountMenuFree: "Free";
3466
- readonly accountMenuSignIn: "Sign in";
3467
- readonly accountMenuSignOut: "Sign out";
3468
- readonly accountMenuCopyUserId: "Copy user ID";
3469
- readonly accountMenuLoading: "Loading";
3470
- readonly accountMenuUnavailable: "--";
3471
- readonly accountMenuDataUnavailable: "Some account data is unavailable";
3472
- readonly accountRewardToastTitle: "New user credits";
3473
- readonly accountRewardToastCreditsUnit: "credits";
3474
- readonly accountRewardToastDescription: "Added to account balance";
3475
- readonly accountRewardToastClose: "Close credits reward notification";
3476
3381
  readonly agentConfig: "Check & Settings";
3477
3382
  readonly agentSettingsMenu: "Settings";
3478
3383
  readonly agentEnvSetup: "Environment Check";
@@ -3526,19 +3431,17 @@ declare const agentGuiI18nResources: {
3526
3431
  readonly tuttiBudgetIntensityLabel: "Intensity";
3527
3432
  readonly tuttiBudgetPreviewTitle: "Planner tendency";
3528
3433
  readonly tuttiBudgetPreviewHint: "The exact model, total task count, and safe parallelism are inferred from the request and selected Skills.";
3529
- readonly tuttiBudgetPreviewCost: "Cost";
3530
- readonly tuttiBudgetPreviewBalance: "Balance";
3434
+ readonly tuttiBudgetPreviewCost: "Economical";
3435
+ readonly tuttiBudgetPreviewBalance: "Balanced";
3531
3436
  readonly tuttiBudgetPreviewPowerful: "Powerful";
3532
3437
  readonly tuttiBudgetModelStrengthLabel: "Model strength";
3533
3438
  readonly tuttiBudgetModelStrengthCost: "Economical";
3534
3439
  readonly tuttiBudgetModelStrengthBalance: "Balanced";
3535
- readonly tuttiBudgetModelStrengthPowerful: "Most capable";
3440
+ readonly tuttiBudgetModelStrengthPowerful: "Powerful";
3536
3441
  readonly tuttiBudgetAgentCountLabel: "Parallel Agents";
3537
3442
  readonly tuttiBudgetAgentCountCost: "1";
3538
3443
  readonly tuttiBudgetAgentCountBalance: "2–3";
3539
3444
  readonly tuttiBudgetAgentCountPowerful: "Up to 4";
3540
- readonly tuttiBudgetConfirm: "Confirm";
3541
- readonly tuttiBudgetCancel: "Cancel";
3542
3445
  readonly tuttiModeUpdateFailed: "Tutti mode couldn't be updated. Try again.";
3543
3446
  readonly tuttiModeUpdateUncertain: "Tutti mode is still being reconciled. Try again after it finishes.";
3544
3447
  readonly tuttiModePlan: {
@@ -6023,17 +5926,12 @@ declare const agentGuiI18nResources: {
6023
5926
  readonly visibleErrorConfigTimeout: "{{provider}} 在请求超时前未能应用会话设置。请稍后重试。";
6024
5927
  readonly visibleErrorStreamDisconnected: "{{provider}} 的响应在完成前被中断。请稍后重试。";
6025
5928
  readonly visibleErrorConcurrencyLimit: "{{provider}} 当前处理的请求过多。请在其他任务完成后再试。";
6026
- readonly visibleErrorInsufficientCreditsFree: "您账户下可用的积分额度已耗尽,升级会员获取更多额度";
6027
- readonly visibleErrorInsufficientCreditsActive: "Tutti 积分不足,充值积分后可继续使用";
6028
5929
  readonly visibleErrorInsufficientCreditsUnknown: "Tutti 积分不足,请查看积分方案后继续";
6029
5930
  readonly visibleErrorActionInstall: "去连接";
6030
5931
  readonly visibleErrorActionUpgrade: "去升级";
6031
5932
  readonly visibleErrorActionRelogin: "登录";
6032
5933
  readonly visibleErrorActionCheckNetwork: "检测网络";
6033
5934
  readonly visibleErrorActionDetect: "打开检测";
6034
- readonly visibleErrorActionUpgradeMembership: "升级会员";
6035
- readonly visibleErrorActionRechargeCredits: "充值积分";
6036
- readonly visibleErrorActionViewCreditPlans: "查看积分方案";
6037
5935
  readonly systemNoticeTransportRetry: "Agent 连接中断,正在重连";
6038
5936
  readonly systemNoticeTransportFallback: "Agent 已切换到 HTTPS 传输";
6039
5937
  readonly systemNoticePlanImplementationPendingConfirmation: "计划实现正在等待确认";
@@ -6418,8 +6316,6 @@ declare const agentGuiI18nResources: {
6418
6316
  readonly tuttiBudgetAgentCountCost: "1 个";
6419
6317
  readonly tuttiBudgetAgentCountBalance: "2–3 个";
6420
6318
  readonly tuttiBudgetAgentCountPowerful: "最多 4 个";
6421
- readonly tuttiBudgetConfirm: "确认";
6422
- readonly tuttiBudgetCancel: "取消";
6423
6319
  readonly tuttiModeUpdateFailed: "Tutti 模式更新失败,请重试";
6424
6320
  readonly tuttiModeUpdateUncertain: "Tutti 模式状态仍在确认中,请稍后重试";
6425
6321
  readonly tuttiModePlan: {
@@ -6604,25 +6500,6 @@ declare const agentGuiI18nResources: {
6604
6500
  };
6605
6501
  readonly conversations: "会话";
6606
6502
  readonly newConversation: "新建会话";
6607
- readonly accountMenuTitle: "Tutti Agent";
6608
- readonly accountMenuMember: "会员";
6609
- readonly accountMenuUpgrade: "升级会员";
6610
- readonly accountMenuRecharge: "充值积分";
6611
- readonly accountMenuViewPlans: "查看积分方案";
6612
- readonly accountMenuCreditsBalance: "积分余额";
6613
- readonly accountMenuAccountCenter: "账号中心";
6614
- readonly accountMenuSettings: "设置";
6615
- readonly accountMenuFree: "Free";
6616
- readonly accountMenuSignIn: "登录";
6617
- readonly accountMenuSignOut: "退出登录";
6618
- readonly accountMenuCopyUserId: "复制用户 ID";
6619
- readonly accountMenuLoading: "加载中";
6620
- readonly accountMenuUnavailable: "--";
6621
- readonly accountMenuDataUnavailable: "部分账号数据暂不可用";
6622
- readonly accountRewardToastTitle: "新用户积分到账";
6623
- readonly accountRewardToastCreditsUnit: "积分";
6624
- readonly accountRewardToastDescription: "已加入账户余额";
6625
- readonly accountRewardToastClose: "关闭积分到账提示";
6626
6503
  readonly agentConfig: "检测与设置";
6627
6504
  readonly agentSettingsMenu: "设置";
6628
6505
  readonly agentEnvSetup: "环境检测";
@@ -8344,8 +8221,6 @@ interface AgentComposerProps {
8344
8221
  tuttiBudgetAgentCountCost: string;
8345
8222
  tuttiBudgetAgentCountBalance: string;
8346
8223
  tuttiBudgetAgentCountPowerful: string;
8347
- tuttiBudgetConfirm: string;
8348
- tuttiBudgetCancel: string;
8349
8224
  planModeDescription?: string;
8350
8225
  planModeOnLabel: string;
8351
8226
  planModeOffLabel: string;
@@ -8610,10 +8485,30 @@ interface OpenAgentEnvPanelInput {
8610
8485
  focus?: AgentEnvPanelFocus | null;
8611
8486
  }
8612
8487
 
8613
- interface AgentGUICommercePresentation {
8614
- membershipAccess?: AgentGUIMembershipAccessState;
8615
- planUrl?: string | null;
8488
+ /**
8489
+ * Run-failure codes actually emitted by the daemon runtime classifier
8490
+ * (packages/agent/daemon/runtime/visible_error.go `visibleFailureCode`). These
8491
+ * are the codes the conversation error card really receives — unlike the
8492
+ * aspirational `CODEX_*` codes, which the run pipeline never produces.
8493
+ *
8494
+ * Keep this union aligned with the Go switch in `visibleFailureCode`.
8495
+ */
8496
+ type AgentRunErrorCode = "auth_required" | "cli_not_found" | "cli_version_unsupported" | "network_error" | "runtime_unavailable" | "request_timed_out" | "provider_config_timeout" | "provider_stream_disconnected" | "provider_concurrency_limit" | "insufficient_credits" | "quota_or_rate_limit" | "process_exited" | "provider_error" | "unknown";
8497
+ interface AgentVisibleErrorOverride {
8498
+ message: string;
8499
+ /** Provider ids for which this product-owned override is valid. */
8500
+ providers: readonly string[];
8501
+ action?: {
8502
+ label: string;
8503
+ url: string;
8504
+ } | null;
8616
8505
  }
8506
+ /**
8507
+ * Product-owned structured errors whose copy may be supplied by a Host.
8508
+ * Environment/runtime errors remain canonical AgentGUI policy.
8509
+ */
8510
+ type AgentVisibleErrorOverrideCode = "insufficient_credits";
8511
+ type AgentVisibleErrorOverrides = Partial<Record<AgentVisibleErrorOverrideCode, AgentVisibleErrorOverride>>;
8617
8512
 
8618
8513
  type TuttiModePlanWorkflowStatus = "pending_review" | "in_progress" | "accepted" | "rejected" | "completed" | "failed" | "canceled";
8619
8514
  type TuttiModePlanCheckpointKind = "configuration_review" | "task_review";
@@ -8865,60 +8760,6 @@ interface TuttiModePlanReviewRuntime {
8865
8760
  planIssues?: TuttiPlanIssueSource;
8866
8761
  }
8867
8762
 
8868
- interface TuttiPlanIssuePanelLabels {
8869
- openIssue: string;
8870
- stopExecution: string;
8871
- listView: string;
8872
- boardView: string;
8873
- parallelizable: string;
8874
- autoAccept: string;
8875
- accept: string;
8876
- rework: string;
8877
- dependencies: string;
8878
- stageParallel: (index: string, count: string) => string;
8879
- stageSequential: (index: string) => string;
8880
- summary: (done: string, total: string, running: string) => string;
8881
- statusNotStarted: string;
8882
- statusRunning: string;
8883
- statusPendingAcceptance: string;
8884
- statusCompleted: string;
8885
- statusFailed: string;
8886
- statusCanceled: string;
8887
- }
8888
-
8889
- interface TuttiModePlanPanelLabels {
8890
- tasks: string;
8891
- priority: string;
8892
- priorityHigh: string;
8893
- priorityMedium: string;
8894
- priorityLow: string;
8895
- agentTarget: string;
8896
- model: string;
8897
- permissionMode: string;
8898
- reasoningEffort: string;
8899
- parallelizable: string;
8900
- autoAccept: string;
8901
- notSpecified: string;
8902
- assignmentOptionsLoading: string;
8903
- }
8904
-
8905
- interface TuttiWorkflowDockLabels {
8906
- cancel: string;
8907
- collapse: string;
8908
- errorTitle: string;
8909
- expand: string;
8910
- issueDone(done: string, total: string): string;
8911
- issueFailed(count: string): string;
8912
- issuePendingAcceptance(count: string): string;
8913
- issueRunning(count: string): string;
8914
- materializingHint: string;
8915
- materializingTitle: string;
8916
- retry: string;
8917
- reviewHint: string;
8918
- reviewHintReplan: string;
8919
- reviewTitle: string;
8920
- }
8921
-
8922
8763
  type AgentMentionReferenceTargetResolver = (item: AgentContextMentionItem) => ReferenceLocateTarget | null;
8923
8764
  interface AgentWorkspaceReferenceInitialTargetInput {
8924
8765
  activeConversation: AgentGUINodeViewModel["rail"]["activeConversation"];
@@ -8932,387 +8773,6 @@ interface AgentGUIConversationRailLayout {
8932
8773
  leftPanelWidthPx: number;
8933
8774
  resizing: boolean;
8934
8775
  }
8935
- interface AgentGUIViewLabels {
8936
- initialPlaceholder: string;
8937
- followupPlaceholder: string;
8938
- installRequiredPlaceholder: string;
8939
- installRequiredAction: string;
8940
- providerGateCheckingTitle: string;
8941
- providerGateCheckingDescription: string;
8942
- providerGateCheckingAgentsDescription: string;
8943
- providerGateInstallTitle: string;
8944
- providerGateInstallDescription: string;
8945
- providerGateInstallAction: string;
8946
- providerGateLoginTitle: string;
8947
- providerGateLoginDescription: string;
8948
- providerGateLoginAction: string;
8949
- providerGateComingSoonTitle: string;
8950
- providerGateComingSoonDescription: string;
8951
- providerGateComingSoonAction: string;
8952
- providerGateUnavailableTitle: string;
8953
- providerGateUnavailableDescription: string;
8954
- providerGateRetryAction: string;
8955
- providerGatePendingInstall: string;
8956
- providerGatePendingLogin: string;
8957
- providerGatePendingRefresh: string;
8958
- collaboratorSessionReadOnlyPlaceholder: string;
8959
- send: string;
8960
- modelLabel: string;
8961
- modelSelectionLabel: string;
8962
- modelContextWindowSuffix: string;
8963
- modelTooltipVersionLabel: string;
8964
- defaultModel: string;
8965
- loadingOptions: string;
8966
- inheritedUnavailable: string;
8967
- reasoningLabel: string;
8968
- reasoningDegreeLabel: string;
8969
- reasoningOptionDefault: string;
8970
- reasoningOptionMinimal: string;
8971
- reasoningOptionLow: string;
8972
- reasoningOptionMedium: string;
8973
- reasoningOptionHigh: string;
8974
- reasoningOptionXHigh: string;
8975
- reasoningOptionMax: string;
8976
- reasoningOptionUltra: string;
8977
- speedLabel: string;
8978
- speedSelectionLabel: string;
8979
- speedOptionStandard: string;
8980
- speedOptionStandardDescription: string;
8981
- speedOptionFast: string;
8982
- speedOptionFastDescription: string;
8983
- permissionLabel: string;
8984
- permissionModeReadOnly: string;
8985
- permissionModeAuto: string;
8986
- permissionModeFullAccess: string;
8987
- permissionModeChangeUnavailableDuringTurn: string;
8988
- modelDescriptions: {
8989
- frontierComplexCoding: string;
8990
- everydayCoding: string;
8991
- smallFastCostEfficient: string;
8992
- codingOptimized: string;
8993
- ultraFastCoding: string;
8994
- professionalLongRunning: string;
8995
- };
8996
- planModeLabel: string;
8997
- normalModeLabel?: string;
8998
- normalModeDescription?: string;
8999
- tuttiModeLabel: string;
9000
- tuttiModeDescription: string;
9001
- tuttiModeRemove: string;
9002
- tuttiBudgetTitle: string;
9003
- tuttiBudgetIntensityLabel: string;
9004
- tuttiBudgetPreviewTitle: string;
9005
- tuttiBudgetPreviewHint: string;
9006
- tuttiBudgetPreviewCost: string;
9007
- tuttiBudgetPreviewBalance: string;
9008
- tuttiBudgetPreviewPowerful: string;
9009
- tuttiBudgetModelStrengthLabel: string;
9010
- tuttiBudgetModelStrengthCost: string;
9011
- tuttiBudgetModelStrengthBalance: string;
9012
- tuttiBudgetModelStrengthPowerful: string;
9013
- tuttiBudgetAgentCountLabel: string;
9014
- tuttiBudgetAgentCountCost: string;
9015
- tuttiBudgetAgentCountBalance: string;
9016
- tuttiBudgetAgentCountPowerful: string;
9017
- tuttiBudgetConfirm: string;
9018
- tuttiBudgetCancel: string;
9019
- tuttiModeUpdateFailed: string;
9020
- tuttiModeUpdateUncertain: string;
9021
- tuttiModePlanPanel: TuttiModePlanPanelLabels;
9022
- tuttiWorkflowDock: TuttiWorkflowDockLabels;
9023
- tuttiModePlanIssuePanel: TuttiPlanIssuePanelLabels;
9024
- tuttiModePlanSendAccept: string;
9025
- tuttiModePlanSendRequestChanges: string;
9026
- /** Auto feedback for an empty send after the intensity diverged. */
9027
- tuttiModePlanReplanFeedback: (from: string, to: string) => string;
9028
- /** Appended to typed feedback when the intensity diverged. */
9029
- tuttiModePlanReplanFeedbackSuffix: (to: string) => string;
9030
- tuttiModePlanLoadFailed: string;
9031
- tuttiModePlanRetry: string;
9032
- /** Accepted plan whose Issue creation durably failed; message is the cause. */
9033
- tuttiModePlanIssueCreateFailed: (message: string) => string;
9034
- planModeDescription?: string;
9035
- planModeOnLabel: string;
9036
- planModeOffLabel: string;
9037
- planUnavailable: string;
9038
- queuedLabel: string;
9039
- queuePausedByUserLabel: string;
9040
- sendQueuedPromptNext: string;
9041
- editQueuedPrompt: string;
9042
- deleteQueuedPrompt: string;
9043
- queuedPromptMoreActions: string;
9044
- stop: string;
9045
- stopping: string;
9046
- noRunningResponse: string;
9047
- empty: string;
9048
- emptyForProvider?: (provider: string) => string;
9049
- emptyProvider?: string;
9050
- emptyProviderForProvider?: (provider: string) => string;
9051
- /** Starter-prompt suggestion categories shown under the new-session composer. */
9052
- homeSuggestions?: readonly AgentHomeSuggestionCategory[];
9053
- /** Accessible label for the button that dismisses an expanded suggestion category. */
9054
- homeSuggestionsClose?: string;
9055
- conversations: string;
9056
- newConversation: string;
9057
- accountMenuTitle: string;
9058
- accountMenuMember: string;
9059
- accountMenuUpgrade: string;
9060
- accountMenuRecharge: string;
9061
- accountMenuViewPlans: string;
9062
- accountMenuCreditsBalance: string;
9063
- accountMenuAccountCenter: string;
9064
- accountMenuSettings: string;
9065
- accountMenuFree: string;
9066
- accountMenuSignIn: string;
9067
- accountMenuSignOut: string;
9068
- accountMenuCopyUserId: string;
9069
- accountMenuLoading: string;
9070
- accountMenuUnavailable: string;
9071
- accountMenuDataUnavailable: string;
9072
- accountRewardToastTitle: string;
9073
- accountRewardToastCreditsUnit: string;
9074
- accountRewardToastDescription: string;
9075
- accountRewardToastClose: string;
9076
- agentConfig: string;
9077
- agentSettingsMenu: string;
9078
- agentEnvSetup: string;
9079
- manageAgents: string;
9080
- manageAgentsTitle: string;
9081
- manageAgentsDescription: string;
9082
- manageAgentsAvailable: string;
9083
- manageAgentsDisabled: string;
9084
- manageAgentsNoAvailable: string;
9085
- manageAgentsNoDisabled: string;
9086
- manageAgentsKeepOneAvailable: string;
9087
- manageAgentsRunningBlocked: (agent: string) => string;
9088
- removeAgentFromSidebar: (agent: string) => string;
9089
- addAgentToSidebar: (agent: string) => string;
9090
- dragAgentToReorder: (agent: string) => string;
9091
- noConversations: string;
9092
- emptyProjectConversations: string;
9093
- conversationFilterAll: string;
9094
- conversationFilterCodex: string;
9095
- conversationFilterClaudeCode: string;
9096
- conversationFilterTutti: string;
9097
- providerSwitchLabel: string;
9098
- sharedAgentOwnerSeparator: string;
9099
- startConversation: string;
9100
- selectConversation: string;
9101
- loadingConversations: string;
9102
- loadingConversation: string;
9103
- scrollToBottom: string;
9104
- searchNoConversations: string;
9105
- searchFailed: string;
9106
- retrySearch: string;
9107
- conversationUnavailable: string;
9108
- fallbackAgentTitle: string;
9109
- untitledConversationTitle: string;
9110
- searchPlaceholder: string;
9111
- sectionConversations: string;
9112
- sectionToday: string;
9113
- sectionPinned: string;
9114
- sectionYesterday: string;
9115
- sectionEarlier: string;
9116
- projectSectionEdit: string;
9117
- projectSectionMoreActions: string;
9118
- projectSectionViewFiles: string;
9119
- pinProject: string;
9120
- unpinProject: string;
9121
- pinnedProjectAccessibleName: (projectLabel: string) => string;
9122
- projectRailCreateProject: string;
9123
- projectRailLinkExistingProject: string;
9124
- removeProject: string;
9125
- removeProjectConfirmDescription: (projectLabel: string) => string;
9126
- removeProjectConfirmTitle: string;
9127
- batchDeleteProjectSessions: string;
9128
- batchDeleteProjectSessionsTitle: string;
9129
- batchDeleteProjectSessionsBody: (count: number, project: string) => string;
9130
- batchDeleteProjectSessionsConfirm: string;
9131
- conversationsSectionMoreActions: string;
9132
- batchDeleteConversations: string;
9133
- batchDeleteConversationsTitle: string;
9134
- batchDeleteConversationsBody: (count: number) => string;
9135
- batchDeleteConversationsConfirm: string;
9136
- approvalRequired: string;
9137
- fileChangeApprovalRequired: string;
9138
- approvalUnavailable: string;
9139
- authRequired: string;
9140
- authLogin: string;
9141
- activatingSession: string;
9142
- cancellingSession: string;
9143
- retryActivation: string;
9144
- continueInNewConversation: string;
9145
- goalLabel: string;
9146
- goalTitleActive: string;
9147
- goalTitlePaused: string;
9148
- goalTitleBlocked: string;
9149
- goalTitleUsageLimited: string;
9150
- goalTitleBudgetLimited: string;
9151
- goalTitleComplete: string;
9152
- goalBudgetUsage: (used: number, budget: number) => string;
9153
- goalClearHint: string;
9154
- goalEditAction: string;
9155
- goalPauseAction: string;
9156
- goalResumeAction: string;
9157
- goalClearAction: string;
9158
- goalRemoved: string;
9159
- processing: string;
9160
- turnSummary: string;
9161
- userMessageLocator: string;
9162
- planLead: string;
9163
- planModes: Array<{
9164
- id: string;
9165
- label: string;
9166
- description: string;
9167
- }>;
9168
- stayInPlan: string;
9169
- sendFeedback: string;
9170
- feedbackPlaceholder: string;
9171
- previousQuestion: string;
9172
- nextQuestion: string;
9173
- submitAnswers: string;
9174
- answerPlaceholder: string;
9175
- waitingForAnswer: string;
9176
- thinkingLabel: string;
9177
- toolCallsLabel: (count: number) => string;
9178
- openConversationWindow: string;
9179
- showMoreConversations: string;
9180
- showLessConversations: string;
9181
- deleteSession: string;
9182
- pinSession: string;
9183
- moreSessionActions: string;
9184
- copyAsMarkdown: string;
9185
- copyAsReference: string;
9186
- conversationCopyImage: string;
9187
- conversationCopyImagesOmitted: string;
9188
- conversationCopyInProgress: string;
9189
- conversationCopyMentionPrefix: string;
9190
- conversationCopyFile: string;
9191
- conversationCopyPreviousMessages: string;
9192
- copiedToClipboard: string;
9193
- copyFailed: string;
9194
- sessionActionUnavailable: string;
9195
- renameSession: string;
9196
- renameSessionTitle: string;
9197
- renameSessionDescription: string;
9198
- renameSessionPlaceholder: string;
9199
- renameSessionSave: string;
9200
- unpinSession: string;
9201
- markSessionUnread: string;
9202
- deleteSessionTitle: string;
9203
- deleteSessionBody: string;
9204
- deleteSessionConfirm: string;
9205
- cancel: string;
9206
- conversationRailResizeAria: string;
9207
- relativeTimeJustNow: string;
9208
- relativeTimeMinutes: (count: number) => string;
9209
- relativeTimeHours: (count: number) => string;
9210
- relativeTimeDays: (count: number) => string;
9211
- relativeTimeMonths: (count: number) => string;
9212
- relativeTimeYears: (count: number) => string;
9213
- slashCommandPalette: string;
9214
- skillPickerPalette: string;
9215
- slashPaletteCommandsGroup: string;
9216
- slashPaletteCapabilitiesGroup: string;
9217
- slashPaletteCapabilitiesLoading: string;
9218
- slashPaletteSkillsGroup: string;
9219
- slashPalettePluginsGroup: string;
9220
- slashPaletteConnectorsGroup: string;
9221
- slashPaletteMcpGroup: string;
9222
- slashCommandCompactLabel: string;
9223
- slashCommandContextLabel: string;
9224
- slashCommandFastLabel: string;
9225
- slashCommandGoalLabel: string;
9226
- slashCommandInitLabel: string;
9227
- slashCommandPlanLabel: string;
9228
- slashCommandReviewLabel: string;
9229
- slashCommandStatusLabel: string;
9230
- slashCommandUsageLabel: string;
9231
- slashCommandCompactDescription: string;
9232
- slashCommandContextDescription: string;
9233
- slashCommandFastDescription: string;
9234
- slashCommandGoalDescription: string;
9235
- slashCommandInitDescription: string;
9236
- slashCommandPlanDescription: string;
9237
- slashCommandReviewDescription: string;
9238
- slashCommandStatusDescription: string;
9239
- slashCommandUsageDescription: string;
9240
- browserUseCapabilityLabel: string;
9241
- browserUseCapabilityDescription: string;
9242
- browserUseCapabilityDescriptionAutoConnect: string;
9243
- browserUseCapabilityDescriptionIsolated: string;
9244
- browserUseCapabilitySettingsLabel: string;
9245
- browserUseCapabilitySettingsDescription: string;
9246
- capabilityInlineSettingsLabel: string;
9247
- computerUseCapabilityLabel: string;
9248
- computerUseCapabilityDescription: string;
9249
- computerUseCapabilitySetupRequiredDescription: string;
9250
- computerUseCapabilityAuthorizationRequiredDescription: string;
9251
- computerUseCapabilityAuthorizationUnknownDescription: string;
9252
- computerUseCapabilitySettingsLabel: string;
9253
- computerUseCapabilitySettingsDescription: string;
9254
- slashStatusTitle: string;
9255
- slashStatusSession: string;
9256
- slashStatusBaseUrl: string;
9257
- slashStatusContext: string;
9258
- slashStatusLimits: string;
9259
- slashStatusAccount: string;
9260
- slashStatusClose: string;
9261
- slashStatusContextValue: (input: {
9262
- percentLeft: number;
9263
- usedTokens: string;
9264
- totalTokens: string;
9265
- }) => string;
9266
- slashStatusContextUnavailable: string;
9267
- slashStatusLimitsUnavailable: string;
9268
- slashStatusEmptyValue: string;
9269
- slashStatusUsageJustUpdated: string;
9270
- slashStatusUsageMinutesAgo: (count: number) => string;
9271
- slashStatusUsageHoursAgo: (count: number) => string;
9272
- slashStatusUsageUpdating: string;
9273
- slashStatusUsageRefreshFailed: string;
9274
- slashStatusUsageRefreshAria: string;
9275
- usageChipLabel: (input: {
9276
- percent: number;
9277
- }) => string;
9278
- usageTooltipLabel: string;
9279
- usagePopoverTitle: string;
9280
- usageContextWindowLabel: string;
9281
- usageTokensLabel: string;
9282
- usageLimitsLabel: string;
9283
- usageCompactAction: string;
9284
- planImplementationLead: string;
9285
- planImplementationConfirm: string;
9286
- planImplementationFeedbackPlaceholder: string;
9287
- planImplementationSend: string;
9288
- planImplementationSkip: string;
9289
- fileMentionPalette: string;
9290
- fileMentionLoading: string;
9291
- fileMentionEmpty: string;
9292
- fileMentionError: string;
9293
- fileMentionTabHint: string;
9294
- fileDropHint: string;
9295
- mentionPalette: string;
9296
- removeMention: string;
9297
- addReference: string;
9298
- addContent: string;
9299
- referenceWorkspaceFiles: string;
9300
- handoffConversation: string;
9301
- handoffConversationTooltip: string;
9302
- handoffConversationMenu: string;
9303
- handoffTargetDeviceSource: (deviceLabel: string) => string;
9304
- handoffTargetSelf: string;
9305
- handoffTargetShared: string;
9306
- projectLocked: string;
9307
- projectMissingDescription: string;
9308
- syncPending: string;
9309
- syncSynced: string;
9310
- syncFailed: string;
9311
- promptTipsPrefix: string;
9312
- promptTips: readonly AgentComposerPromptTip[];
9313
- reviewPicker: AgentComposerProps["labels"]["reviewPicker"];
9314
- quickPrompts: AgentComposerProps["labels"]["quickPrompts"];
9315
- }
9316
8776
  interface AgentGUISidebarFooterContext {
9317
8777
  currentUserId?: string | null;
9318
8778
  activeConversation: AgentGUINodeViewModel["rail"]["activeConversation"];
@@ -9551,9 +9011,11 @@ interface AgentGUINodeHostCapabilities {
9551
9011
  * preventing this host from mutating device-owned capability settings.
9552
9012
  */
9553
9013
  capabilityControlsReadOnly?: boolean;
9554
- accountMenuState?: AgentGUIAccountMenuState | null;
9555
- /** Host-owned Commerce projection used by account and error presentation. */
9556
- commercePresentation?: AgentGUICommercePresentation | null;
9014
+ /**
9015
+ * Host-owned product copy and external action for structured run errors.
9016
+ * AgentGUI owns the generic card; product domains own product semantics.
9017
+ */
9018
+ visibleErrorPresentationOverrides?: AgentVisibleErrorOverrides | null;
9557
9019
  agentTargets?: readonly AgentGUIAgentTarget[];
9558
9020
  agentTargetsLoading?: boolean;
9559
9021
  /** Launch-only targets for active-conversation handoff. */
@@ -9666,46 +9128,6 @@ interface AgentHandoffMenuProps {
9666
9128
  */
9667
9129
  declare function AgentHandoffMenu({ align, contentClassName, disabled, iconOnly, isolateTriggerEvents, labels, onSelect, targets, testId, triggerClassName, triggerLabel }: AgentHandoffMenuProps): JSX.Element;
9668
9130
 
9669
- interface AgentGUIAccountMenuLabels {
9670
- title: string;
9671
- member: string;
9672
- upgradeMembership: string;
9673
- rechargeCredits: string;
9674
- viewCreditPlans: string;
9675
- creditsBalance: string;
9676
- accountCenter: string;
9677
- settings: string;
9678
- free: string;
9679
- signIn: string;
9680
- signOut: string;
9681
- copyUserId: string;
9682
- loading: string;
9683
- unavailable: string;
9684
- dataUnavailable: string;
9685
- }
9686
- interface AgentGUIAccountMenuProps {
9687
- state: AgentGUIAccountMenuState;
9688
- labels: AgentGUIAccountMenuLabels;
9689
- trigger: ReactNode;
9690
- side?: "top" | "right" | "bottom" | "left";
9691
- align?: "start" | "center" | "end";
9692
- sideOffset?: number;
9693
- testId?: string;
9694
- }
9695
- declare function AgentGUIAccountMenu({ state, labels, trigger, side, align, sideOffset, testId }: AgentGUIAccountMenuProps): React.JSX.Element;
9696
- declare function AgentGUIAccountAvatar({ state, children, label }: {
9697
- state: AgentGUIAccountMenuState;
9698
- children: ReactNode;
9699
- label: string;
9700
- }): React.JSX.Element;
9701
- declare function agentGUIAccountInitials(label: string): string;
9702
-
9703
- interface AgentGUIAccountRewardToastProps {
9704
- toast: NonNullable<AgentGUIAccountMenuState["registrationCreditsToast"]>;
9705
- labels: Pick<AgentGUIViewLabels, "accountRewardToastTitle" | "accountRewardToastCreditsUnit" | "accountRewardToastDescription" | "accountRewardToastClose">;
9706
- }
9707
- declare const AgentGUIAccountRewardToast: react.NamedExoticComponent<AgentGUIAccountRewardToastProps>;
9708
-
9709
9131
  declare function normalizeAgentGUIAgents(agents: readonly AgentGUIAgent[] | null | undefined): AgentGUIAgent[];
9710
9132
  declare function agentGUIAgentIsReady(agent: AgentGUIAgent): boolean;
9711
9133
  declare function resolveAgentGUISelectedDirectoryAgent(input: {
@@ -9852,4 +9274,4 @@ declare function dispatchAgentPlanPromptAction(input: {
9852
9274
  workspaceId: string;
9853
9275
  }): boolean;
9854
9276
 
9855
- export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AGENT_CONVERSATION_RAIL_RUNTIME_METHODS, AGENT_GUI_DETAIL_MIN_WIDTH_PX, AGENT_GUI_EXPANDED_TARGET_WIDTH_PX, AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX, AGENT_PASTED_TEXT_BLOCK_KIND, AGENT_PASTED_TEXT_MENTION_KIND, AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeDeleteSessionsBatchInput, type AgentActivityRuntimeDeleteSessionsBatchResult, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeSessionSectionDeletionCandidates, type AgentActivityRuntimeSessionSectionScopeInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUpdateSessionSettingsResult, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentComposerDraftFile, type AgentContextMentionProvider, type AgentContextMentionProviderId, type AgentConversationBatchDeletionCapability, type AgentConversationRailRuntime, type AgentConversationRailRuntimeSource, type AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, type AgentExternalPromptEntryResolution, type AgentExternalPromptEntryResolver, type AgentExternalPromptFilePreparationErrorCode, type AgentExternalPromptFilePreparationResult, type AgentExternalPromptFilePreparer, AgentGUI, AgentGUIAccountAvatar, AgentGUIAccountMenu, type AgentGUIAccountMenuLabels, type AgentGUIAccountMenuProps, type AgentGUIAccountMenuState, AgentGUIAccountRewardToast, type AgentGUIAgent, type AgentGUIAgentAvailability, type AgentGUIAgentAvailabilityAction, type AgentGUIAgentAvailabilityStatus, type AgentGUIAgentDirectoryPort, type AgentGUIAgentDirectorySnapshot, type AgentGUIAgentDirectoryStatus, type AgentGUIAgentOwner, type AgentGUIAgentOwnership, type AgentGUIAgentTarget, type AgentGUIAgentTargetBadge, type AgentGUIAgentTargetRef, type AgentGUIAgentsEmptyRenderer, type AgentGUIAllAgentsPresentation, type AgentGUICommercePresentation, type AgentGUIComposerAppendRequest, type AgentGUIComposerContentType, type AgentGUIComposerFocusMethod, type AgentGUIConversationRailLayout, type AgentGUIEngagementContext, type AgentGUIEngagementEvent, type AgentGUIEngagementEventSink, type AgentGUIHomeSuggestionId, type AgentGUIMembershipAccessState, type AgentGUIProps, type AgentGUIProvider, type AgentGUIProviderRailAllPresentation, type AgentGUIProviderRailMode, type AgentGUIProviderReadinessGate, type AgentGUIProviderReadinessGateAction, type AgentGUIProviderReadinessGateStatus, type AgentGUIProviderUnavailableStateContext, type AgentGUIProviderUnavailableStateRenderer, type AgentGUISidebarFooterContext, type AgentGUISidebarFooterRenderer, type AgentGUITargetConnectionSource, type AgentGUITargetConnectionState, type AgentGUITargetConnectionStatus, type AgentGuiI18nLocale, AgentGuiI18nProvider, AgentHandoffMenu, type AgentHandoffMenuLabels, type AgentHandoffMenuProps, type AgentHostAgentTargetAuthenticatedAccount, type AgentHostAgentTargetSetupSnapshot, type AgentHostAgentTargetSetupState, type AgentHostAgentTargetSetupWatch, type AgentHostApi, type AgentHostApplyWorkspaceGitPatchInput, type AgentHostInputApi, type AgentHostQuickPrompt, type AgentHostQuickPromptSnapshot, type AgentHostQuickPromptsApi, type AgentHostRuntimeApi, type AgentHostSelectFilesInput, type AgentHostUserProject, type AgentPlanPromptAction, type AgentPreparedExternalPromptFile, type AgentProbeProvider, type AgentProbeSnapshot, type AgentProviderProbeListInput, type AgentProviderProbeListResult, type AgentStatusController, type AgentStatusControllerOptions, type AgentStatusControllerSnapshot, type AgentStatusFrame, type AgentStatusQuery, type AgentStatusRequestPhase, type AgentStatusRequestReason, type AgentStatusSectionState, type AgentStatusSelectionKey, type AgentStatusSource, type AgentStatusSourceError, type AgentStatusStreamObserver, type AgentStatusValue, type AgentUsageQuota, type AgentUsageSnapshot, type CreateAgentSessionHandoffPromptInput, type CreateAgentSessionMarkdownLinkInput, type EngineStateStore, type PersistWriteResult, type ReadWorkspaceAgentReadStateInput, type TuttiModePlanAssignmentAgentDetail, type TuttiModePlanAssignmentAgentOption, type TuttiModePlanAssignmentOptionsSource, type TuttiModePlanReviewRuntime, type TuttiModePlanReviewSnapshot, type TuttiModePlanTaskAssignmentInput, type TuttiPlanIssueMaterializationFailure, type TuttiPlanIssueQueryResult, type TuttiPlanIssueSnapshot, type TuttiPlanIssueSource, type TuttiPlanIssueTaskSnapshot, type WorkspaceAgentReadStateSnapshot, type WriteWorkspaceAgentReadStateInput, agentGUIAccountInitials, agentGUIAgentIsReady, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentGuiI18nModule, agentGuiI18nResources, createAgentConversationRailRuntime, createAgentSessionHandoffPrompt, createAgentSessionMarkdownLink, createAgentStatusController, createLocalAgentGUIAgentTarget, createLocalAgentGUIAgentTargets, createSharedAgentGUIAgentTarget, dispatchAgentPlanPromptAction, getAgentCustomMentionKind, inspectAgentConversationBatchDeletionCapability, localAgentGUIAgentTargetId, normalizeAgentGUIAgentTargets, normalizeAgentGUIAgents, preloadAgentMentionBrowse, projectAgentGUIAgentsToTargets, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resolveAgentGUIAgentTarget, resolveAgentGUIExpandedWindowFrame, resolveAgentGUISelectedDirectoryAgent, selectAgentPlanPromptTurn, selectAgentStatusControllerSnapshot, setAgentActivityRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useEngineSelector, useOptionalAgentActivityRuntime };
9277
+ export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AGENT_CONVERSATION_RAIL_RUNTIME_METHODS, AGENT_GUI_DETAIL_MIN_WIDTH_PX, AGENT_GUI_EXPANDED_TARGET_WIDTH_PX, AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX, AGENT_PASTED_TEXT_BLOCK_KIND, AGENT_PASTED_TEXT_MENTION_KIND, AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeDeleteSessionsBatchInput, type AgentActivityRuntimeDeleteSessionsBatchResult, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeSessionSectionDeletionCandidates, type AgentActivityRuntimeSessionSectionScopeInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUpdateSessionSettingsResult, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentComposerDraftFile, type AgentContextMentionProvider, type AgentContextMentionProviderId, type AgentConversationBatchDeletionCapability, type AgentConversationRailRuntime, type AgentConversationRailRuntimeSource, type AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, type AgentExternalPromptEntryResolution, type AgentExternalPromptEntryResolver, type AgentExternalPromptFilePreparationErrorCode, type AgentExternalPromptFilePreparationResult, type AgentExternalPromptFilePreparer, AgentGUI, type AgentGUIAgent, type AgentGUIAgentAvailability, type AgentGUIAgentAvailabilityAction, type AgentGUIAgentAvailabilityStatus, type AgentGUIAgentDirectoryPort, type AgentGUIAgentDirectorySnapshot, type AgentGUIAgentDirectoryStatus, type AgentGUIAgentOwner, type AgentGUIAgentOwnership, type AgentGUIAgentTarget, type AgentGUIAgentTargetBadge, type AgentGUIAgentTargetRef, type AgentGUIAgentsEmptyRenderer, type AgentGUIAllAgentsPresentation, type AgentGUIComposerAppendRequest, type AgentGUIComposerContentType, type AgentGUIComposerFocusMethod, type AgentGUIConversationRailLayout, type AgentGUIEngagementContext, type AgentGUIEngagementEvent, type AgentGUIEngagementEventSink, type AgentGUIHomeSuggestionId, type AgentGUIProps, type AgentGUIProvider, type AgentGUIProviderRailAllPresentation, type AgentGUIProviderRailMode, type AgentGUIProviderReadinessGate, type AgentGUIProviderReadinessGateAction, type AgentGUIProviderReadinessGateStatus, type AgentGUIProviderUnavailableStateContext, type AgentGUIProviderUnavailableStateRenderer, type AgentGUISidebarFooterContext, type AgentGUISidebarFooterRenderer, type AgentGUITargetConnectionSource, type AgentGUITargetConnectionState, type AgentGUITargetConnectionStatus, type AgentGuiI18nLocale, AgentGuiI18nProvider, AgentHandoffMenu, type AgentHandoffMenuLabels, type AgentHandoffMenuProps, type AgentHostAgentTargetAuthenticatedAccount, type AgentHostAgentTargetSetupSnapshot, type AgentHostAgentTargetSetupState, type AgentHostAgentTargetSetupWatch, type AgentHostApi, type AgentHostApplyWorkspaceGitPatchInput, type AgentHostInputApi, type AgentHostQuickPrompt, type AgentHostQuickPromptSnapshot, type AgentHostQuickPromptsApi, type AgentHostRuntimeApi, type AgentHostSelectFilesInput, type AgentHostUserProject, type AgentPlanPromptAction, type AgentPreparedExternalPromptFile, type AgentProbeProvider, type AgentProbeSnapshot, type AgentProviderProbeListInput, type AgentProviderProbeListResult, type AgentRunErrorCode, type AgentStatusController, type AgentStatusControllerOptions, type AgentStatusControllerSnapshot, type AgentStatusFrame, type AgentStatusQuery, type AgentStatusRequestPhase, type AgentStatusRequestReason, type AgentStatusSectionState, type AgentStatusSelectionKey, type AgentStatusSource, type AgentStatusSourceError, type AgentStatusStreamObserver, type AgentStatusValue, type AgentUsageQuota, type AgentUsageSnapshot, type AgentVisibleErrorOverride, type AgentVisibleErrorOverrideCode, type AgentVisibleErrorOverrides, type CreateAgentSessionHandoffPromptInput, type CreateAgentSessionMarkdownLinkInput, type EngineStateStore, type PersistWriteResult, type ReadWorkspaceAgentReadStateInput, type TuttiModePlanAssignmentAgentDetail, type TuttiModePlanAssignmentAgentOption, type TuttiModePlanAssignmentOptionsSource, type TuttiModePlanReviewRuntime, type TuttiModePlanReviewSnapshot, type TuttiModePlanTaskAssignmentInput, type TuttiPlanIssueMaterializationFailure, type TuttiPlanIssueQueryResult, type TuttiPlanIssueSnapshot, type TuttiPlanIssueSource, type TuttiPlanIssueTaskSnapshot, type WorkspaceAgentReadStateSnapshot, type WriteWorkspaceAgentReadStateInput, agentGUIAgentIsReady, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentGuiI18nModule, agentGuiI18nResources, createAgentConversationRailRuntime, createAgentSessionHandoffPrompt, createAgentSessionMarkdownLink, createAgentStatusController, createLocalAgentGUIAgentTarget, createLocalAgentGUIAgentTargets, createSharedAgentGUIAgentTarget, dispatchAgentPlanPromptAction, getAgentCustomMentionKind, inspectAgentConversationBatchDeletionCapability, localAgentGUIAgentTargetId, normalizeAgentGUIAgentTargets, normalizeAgentGUIAgents, preloadAgentMentionBrowse, projectAgentGUIAgentsToTargets, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resolveAgentGUIAgentTarget, resolveAgentGUIExpandedWindowFrame, resolveAgentGUISelectedDirectoryAgent, selectAgentPlanPromptTurn, selectAgentStatusControllerSnapshot, setAgentActivityRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useEngineSelector, useOptionalAgentActivityRuntime };