@tutti-os/agent-gui 0.0.60 → 0.0.62

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 (55) hide show
  1. package/dist/agent-conversation/index.js +5 -5
  2. package/dist/agent-message-center/index.js +7 -7
  3. package/dist/app/renderer/agentactivity.css +13 -1
  4. package/dist/{chunk-K3UBSTJ5.js → chunk-3KS22CG2.js} +2 -2
  5. package/dist/{chunk-BB2SVMEV.js → chunk-4UTWOSHP.js} +4 -1
  6. package/dist/chunk-4UTWOSHP.js.map +1 -0
  7. package/dist/{chunk-YZ3POK7G.js → chunk-6MUKWI6Z.js} +9 -5
  8. package/dist/chunk-6MUKWI6Z.js.map +1 -0
  9. package/dist/{chunk-I5ZIKJVN.js → chunk-7P6CUYQT.js} +2 -2
  10. package/dist/{chunk-6VVBG4BF.js → chunk-CA25GD5Q.js} +5 -3
  11. package/dist/chunk-CA25GD5Q.js.map +1 -0
  12. package/dist/{chunk-4OPTXOOZ.js → chunk-CVSCZ3CK.js} +2 -2
  13. package/dist/{chunk-2LGUBUEJ.js → chunk-FQQDBBNI.js} +2 -2
  14. package/dist/{chunk-6TEPDMX6.js → chunk-G6UO6JVM.js} +2 -2
  15. package/dist/{chunk-MPZ3CW5C.js → chunk-IIVHPXAB.js} +1 -1
  16. package/dist/chunk-IIVHPXAB.js.map +1 -0
  17. package/dist/{chunk-AWIZJQXW.js → chunk-K4UUEG7X.js} +14 -8
  18. package/dist/chunk-K4UUEG7X.js.map +1 -0
  19. package/dist/{chunk-WNVIKTJK.js → chunk-NZN43XT5.js} +2 -2
  20. package/dist/{chunk-CZSMZRAV.js → chunk-QC642RAG.js} +4 -4
  21. package/dist/{chunk-24CUBQKJ.js → chunk-RO6KQD3J.js} +2 -2
  22. package/dist/{chunk-CUMZV32B.js → chunk-SGXYVGQT.js} +4 -4
  23. package/dist/{chunk-B6YDXIZW.js → chunk-SW6JCJCO.js} +2 -2
  24. package/dist/{chunk-74TIEA6X.js → chunk-ZUVEBW5T.js} +2 -2
  25. package/dist/context-mention-palette/index.js +6 -6
  26. package/dist/i18n/index.d.ts +4 -2
  27. package/dist/i18n/index.js +2 -2
  28. package/dist/index.d.ts +22 -7
  29. package/dist/index.js +320 -78
  30. package/dist/index.js.map +1 -1
  31. package/dist/workbench/contribution.js +5 -5
  32. package/dist/workbench/index.js +8 -8
  33. package/dist/workbench/launch.js +2 -2
  34. package/dist/workbench/sessionTitle.js +3 -3
  35. package/dist/workbench/state.js +2 -2
  36. package/dist/workbench/types.d.ts +1 -0
  37. package/dist/workbench/types.js +1 -1
  38. package/dist/workspace-agent-generated-files.js +3 -3
  39. package/package.json +12 -12
  40. package/dist/chunk-6VVBG4BF.js.map +0 -1
  41. package/dist/chunk-AWIZJQXW.js.map +0 -1
  42. package/dist/chunk-BB2SVMEV.js.map +0 -1
  43. package/dist/chunk-MPZ3CW5C.js.map +0 -1
  44. package/dist/chunk-YZ3POK7G.js.map +0 -1
  45. /package/dist/{chunk-K3UBSTJ5.js.map → chunk-3KS22CG2.js.map} +0 -0
  46. /package/dist/{chunk-I5ZIKJVN.js.map → chunk-7P6CUYQT.js.map} +0 -0
  47. /package/dist/{chunk-4OPTXOOZ.js.map → chunk-CVSCZ3CK.js.map} +0 -0
  48. /package/dist/{chunk-2LGUBUEJ.js.map → chunk-FQQDBBNI.js.map} +0 -0
  49. /package/dist/{chunk-6TEPDMX6.js.map → chunk-G6UO6JVM.js.map} +0 -0
  50. /package/dist/{chunk-WNVIKTJK.js.map → chunk-NZN43XT5.js.map} +0 -0
  51. /package/dist/{chunk-CZSMZRAV.js.map → chunk-QC642RAG.js.map} +0 -0
  52. /package/dist/{chunk-24CUBQKJ.js.map → chunk-RO6KQD3J.js.map} +0 -0
  53. /package/dist/{chunk-CUMZV32B.js.map → chunk-SGXYVGQT.js.map} +0 -0
  54. /package/dist/{chunk-B6YDXIZW.js.map → chunk-SW6JCJCO.js.map} +0 -0
  55. /package/dist/{chunk-74TIEA6X.js.map → chunk-ZUVEBW5T.js.map} +0 -0
@@ -4,19 +4,19 @@ import {
4
4
  AgentMentionSearchController,
5
5
  flattenAgentMentionPaletteEntries,
6
6
  groupStartKeys
7
- } from "../chunk-CUMZV32B.js";
8
- import "../chunk-I5ZIKJVN.js";
9
- import "../chunk-74TIEA6X.js";
7
+ } from "../chunk-SGXYVGQT.js";
8
+ import "../chunk-7P6CUYQT.js";
9
+ import "../chunk-ZUVEBW5T.js";
10
10
  import "../chunk-IBIMGLCD.js";
11
- import "../chunk-2LGUBUEJ.js";
11
+ import "../chunk-FQQDBBNI.js";
12
12
  import "../chunk-Y35GDLP2.js";
13
13
  import "../chunk-LUGELG5V.js";
14
14
  import "../chunk-FRCIPTUD.js";
15
15
  import "../chunk-TYGL25EL.js";
16
- import "../chunk-24CUBQKJ.js";
16
+ import "../chunk-RO6KQD3J.js";
17
17
  import "../chunk-PJP5BUU6.js";
18
18
  import "../chunk-V4JGVBUN.js";
19
- import "../chunk-6VVBG4BF.js";
19
+ import "../chunk-CA25GD5Q.js";
20
20
  import {
21
21
  AGENT_CONTEXT_MENTION_PROVIDER_IDS
22
22
  } from "../chunk-JM24HADP.js";
@@ -347,7 +347,7 @@ declare const agentGuiI18nResources: {
347
347
  readonly providerGateLoginAction: "Connect";
348
348
  readonly providerGateComingSoonTitle: "{{provider}} is coming soon";
349
349
  readonly providerGateComingSoonDescription: "{{provider}} is not available yet. We will enable this agent when it is ready.";
350
- readonly providerGateComingSoonAction: "Coming soon";
350
+ readonly providerGateComingSoonAction: "comming soon";
351
351
  readonly providerGateUnavailableTitle: "{{provider}} is not ready yet";
352
352
  readonly providerGateUnavailableDescription: "We could not confirm that {{provider}} is ready. Try checking again.";
353
353
  readonly providerGateRetryAction: "Check again";
@@ -2491,6 +2491,7 @@ declare const agentGuiI18nResources: {
2491
2491
  readonly agentProviderSessionNotFound: "This session history is still available, but the underlying provider session can no longer be restored.";
2492
2492
  readonly agentResumeSessionNotLocal: "This session cannot be resumed on this device. Start a new session and @this session to keep going.";
2493
2493
  readonly agentSettingsRequireNewSession: "This model can only be used in a new session to preserve context.";
2494
+ readonly agentPermissionModeAppliesNextTurn: "Permission mode will apply starting with your next message.";
2494
2495
  readonly agentThisSessionMentionLabel: "this session";
2495
2496
  readonly terminalLaunchFailed: "Terminal launch failed: {{message}}";
2496
2497
  readonly fallbackTerminalFailed: "Fallback terminal launch also failed: {{message}}";
@@ -2840,7 +2841,7 @@ declare const agentGuiI18nResources: {
2840
2841
  readonly providerGateLoginAction: "连接";
2841
2842
  readonly providerGateComingSoonTitle: "{{provider}} 即将上线";
2842
2843
  readonly providerGateComingSoonDescription: "{{provider}} 暂未开放。准备好后即可在这里使用这个 Agent。";
2843
- readonly providerGateComingSoonAction: "即将上线";
2844
+ readonly providerGateComingSoonAction: "comming soon";
2844
2845
  readonly providerGateUnavailableTitle: "{{provider}} 暂时还不可用";
2845
2846
  readonly providerGateUnavailableDescription: "我们还不能确认 {{provider}} 已准备好,可以再检测一次。";
2846
2847
  readonly providerGateRetryAction: "重新检测";
@@ -4984,6 +4985,7 @@ declare const agentGuiI18nResources: {
4984
4985
  readonly agentProviderSessionNotFound: "这条会话历史仍可查看,但底层 Provider 会话已经无法恢复。";
4985
4986
  readonly agentResumeSessionNotLocal: "这个会话没法在当前设备里直接恢复,你可以在新会话里 @这段对话,接着继续聊。";
4986
4987
  readonly agentSettingsRequireNewSession: "为了保留上下文,这个模型只能在新会话中使用";
4988
+ readonly agentPermissionModeAppliesNextTurn: "权限模式将从你的下一条消息开始生效。";
4987
4989
  readonly agentThisSessionMentionLabel: "本 session";
4988
4990
  readonly terminalLaunchFailed: "终端启动失败:{{message}}";
4989
4991
  readonly fallbackTerminalFailed: "兜底终端启动也失败了:{{message}}";
@@ -6,8 +6,8 @@ import {
6
6
  translate,
7
7
  translateInUiLanguage,
8
8
  useTranslation
9
- } from "../chunk-24CUBQKJ.js";
10
- import "../chunk-6VVBG4BF.js";
9
+ } from "../chunk-RO6KQD3J.js";
10
+ import "../chunk-CA25GD5Q.js";
11
11
  export {
12
12
  AgentGuiI18nProvider,
13
13
  agentGuiI18nModule,
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { AgentActivityNeedsAttentionItem, AgentActivitySnapshot, AgentActivityCa
2
2
  export { AgentActivityAdapter, AgentActivityController, AgentActivityMessage, AgentActivityNeedsAttentionItem, AgentActivitySnapshot, selectNeedsAttentionCount, selectNeedsAttentionItems } from '@tutti-os/agent-activity-core';
3
3
  import { m as WorkspaceAgentActivityListViewModel, g as AgentHostWorkspaceAgentSession, f as AgentHostWorkspaceAgentMessage, l as AgentHostWorkspaceAgentSnapshot, B as BuildWorkspaceAgentActivityListOptions, d as AgentHostRuntimeOpenclawGatewayWarmupResult, c as AgentHostManagedAgentsState } from './workspaceAgentActivityListViewModel-DJvAqZso.js';
4
4
  import * as react from 'react';
5
- import { ReactNode, PropsWithChildren, JSX } from 'react';
5
+ import { ReactNode, PropsWithChildren, JSX, HTMLAttributes } from 'react';
6
6
  import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
7
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-DSc2ta3s.js';
8
8
  export { c as AgentGUIProviderReadinessGateAction, d as AgentGUIProviderReadinessGateStatus } from './types-DSc2ta3s.js';
@@ -13,13 +13,13 @@ import { WorkspaceFileReference, ReferenceLocateTarget, WorkspaceFileReferenceAd
13
13
  import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
14
14
  import { U as UiLanguage, a as UiTheme } from './uiSettings-BQS9r2eo.js';
15
15
  import { W as WorkspaceLinkAction } from './workspaceLinkActions-Bjy_XfBm.js';
16
- import { A as AgentContextMentionItem } from './AgentMentionSearchController-Po0KQLcL.js';
17
- export { p as preloadAgentMentionBrowse } from './AgentMentionSearchController-Po0KQLcL.js';
18
16
  import { b as AgentConversationPromptVM } from './agentConversationVM-DPAgUJlR.js';
19
17
  import { WorkspaceUserProjectI18nRuntime } from '@tutti-os/workspace-user-project/i18n';
20
18
  import { WorkspaceUserProjectSelectChangeAction } from '@tutti-os/workspace-user-project/ui';
21
19
  import { WorkspaceUserProject } from '@tutti-os/workspace-user-project/contracts';
22
20
  import { A as AgentMessageMarkdownWorkspaceAppIcon } from './AgentMessageMarkdown-DeYPURtF.js';
21
+ import { A as AgentContextMentionItem } from './AgentMentionSearchController-Po0KQLcL.js';
22
+ export { p as preloadAgentMentionBrowse } from './AgentMentionSearchController-Po0KQLcL.js';
23
23
  import { AgentContextMentionProvider } from './context-mention-provider.js';
24
24
  export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionProviderId } from './context-mention-provider.js';
25
25
  import { AgentQueuedPromptRuntime, AgentQueuedPromptQueueSnapshot } from './queued-prompt-runtime.js';
@@ -446,11 +446,13 @@ type WorkspaceDesktopAgentProbeDemandChange = (provider: AgentProvider | null, s
446
446
  type WorkspaceDesktopAgentProbeRefreshRequest = (provider: AgentProvider, sourceId?: string) => void;
447
447
 
448
448
  interface AgentGUIComposerDefaults {
449
- model?: string;
450
- permissionModeId?: string;
451
- reasoningEffort?: string;
449
+ model?: string | null;
450
+ permissionModeId?: string | null;
451
+ reasoningEffort?: string | null;
452
+ speed?: string | null;
452
453
  }
453
454
  interface AgentGUIRememberComposerDefaultsInput {
455
+ agentTargetId: string | null;
454
456
  provider: AgentGUINodeData["provider"];
455
457
  defaults: AgentGUIComposerDefaults | null;
456
458
  }
@@ -481,6 +483,18 @@ interface AgentProjectPathChangeMetadata {
481
483
 
482
484
  type AgentDroppedFileReferenceResolver = (files: readonly File[]) => Promise<readonly WorkspaceFileReference[]> | readonly WorkspaceFileReference[];
483
485
 
486
+ type DotLottieElementProps = HTMLAttributes<HTMLElement> & {
487
+ autoplay?: boolean;
488
+ loop?: boolean;
489
+ src?: string;
490
+ };
491
+ declare module "react" {
492
+ namespace JSX {
493
+ interface IntrinsicElements {
494
+ "dotlottie-wc": DotLottieElementProps;
495
+ }
496
+ }
497
+ }
484
498
  /**
485
499
  * 引用 picker 的确认结果:松散文件按 file mention 插入;mentionItems(如文件夹 bundle)
486
500
  * 作为整体节点插入。两者各走各的插入路径,composer 不需要理解 bundle 内部结构。
@@ -897,6 +911,7 @@ declare const agentGUIDefaultTargetProviders: readonly ["codex", "claude-code",
897
911
  declare function createLocalAgentGUIProviderTarget(provider: AgentGUIProvider): AgentGUIProviderTarget;
898
912
  declare function createLocalAgentGUIProviderTargets(providers?: readonly AgentGUIProvider[]): AgentGUIProviderTarget[];
899
913
  declare function localAgentGUIProviderTargetId(provider: AgentGUIProvider): string;
914
+ declare function localAgentGUIAgentTargetId(provider: AgentGUIProvider): string | null;
900
915
  declare function normalizeAgentGUIProviderTargets(targets: readonly AgentGUIProviderTarget[] | null | undefined, options?: {
901
916
  includeDisabledPlaceholders?: boolean;
902
917
  useStaticCatalog?: boolean;
@@ -951,4 +966,4 @@ interface AgentActivityHostProviderProps extends PropsWithChildren {
951
966
  }
952
967
  declare function AgentActivityHostProvider({ agentActivityRuntime, agentHostApi, children }: AgentActivityHostProviderProps): JSX.Element;
953
968
 
954
- 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, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, AgentQueuedPromptQueueSnapshot, AgentQueuedPromptRuntime, AgentQueuedPromptRuntimeProvider, type AgentQueuedPromptRuntimeProviderProps, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, createLocalAgentGUIProviderTarget, createLocalAgentGUIProviderTargets, getAgentActivityRuntime, getAgentCustomMentionKind, getOptionalAgentActivityRuntime, localAgentGUIProviderTargetId, normalizeAgentGUIProviderTargets, projectCoreSessionStatus, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resetAgentQueuedPromptRuntimeForTests, resolveAgentGUIExpandedWindowFrame, resolveAgentGUIProviderTarget, setAgentActivityRuntimeForTests, setAgentQueuedPromptRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useAgentQueuedPromptRuntime, useAgentQueuedPromptSessionSnapshot, useOptionalAgentActivityRuntime };
969
+ 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, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, AgentQueuedPromptQueueSnapshot, AgentQueuedPromptRuntime, AgentQueuedPromptRuntimeProvider, type AgentQueuedPromptRuntimeProviderProps, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, createLocalAgentGUIProviderTarget, createLocalAgentGUIProviderTargets, getAgentActivityRuntime, getAgentCustomMentionKind, getOptionalAgentActivityRuntime, localAgentGUIAgentTargetId, localAgentGUIProviderTargetId, normalizeAgentGUIProviderTargets, projectCoreSessionStatus, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resetAgentQueuedPromptRuntimeForTests, resolveAgentGUIExpandedWindowFrame, resolveAgentGUIProviderTarget, setAgentActivityRuntimeForTests, setAgentQueuedPromptRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useAgentQueuedPromptRuntime, useAgentQueuedPromptSessionSnapshot, useOptionalAgentActivityRuntime };