@tutti-os/agent-gui 0.0.14 → 0.0.15
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.
- package/dist/agent-conversation/index.d.ts +1 -1
- package/dist/agent-conversation/index.js +4 -4
- package/dist/agent-message-center/index.d.ts +1 -1
- package/dist/agent-message-center/index.js +4 -4
- package/dist/agentFileMentionExtension-CM1c9bqk.d.ts +86 -0
- package/dist/app/renderer/agentactivity.css +33 -9
- package/dist/{chunk-WME2V26J.js → chunk-2CA4NPP3.js} +15 -33
- package/dist/chunk-2CA4NPP3.js.map +1 -0
- package/dist/{chunk-ZO3SZCIX.js → chunk-7CBJJNX6.js} +5 -2
- package/dist/chunk-7CBJJNX6.js.map +1 -0
- package/dist/{chunk-ASAZDEQE.js → chunk-EK5RDKG7.js} +54 -14
- package/dist/chunk-EK5RDKG7.js.map +1 -0
- package/dist/{chunk-GZHQPPK2.js → chunk-H4HT3FE6.js} +113 -36
- package/dist/chunk-H4HT3FE6.js.map +1 -0
- package/dist/{chunk-YXSO4ITT.js → chunk-HIREVEZM.js} +1 -1
- package/dist/chunk-HIREVEZM.js.map +1 -0
- package/dist/{chunk-VDNMTW2E.js → chunk-IXIGWLQY.js} +1 -1
- package/dist/chunk-IXIGWLQY.js.map +1 -0
- package/dist/{chunk-FSTZDNRM.js → chunk-KJPMZ7G5.js} +243 -167
- package/dist/chunk-KJPMZ7G5.js.map +1 -0
- package/dist/{chunk-GEXHKJK5.js → chunk-MUZMBEFO.js} +35 -17
- package/dist/chunk-MUZMBEFO.js.map +1 -0
- package/dist/{chunk-HSXDSFKB.js → chunk-OFGXNXYT.js} +2 -2
- package/dist/{chunk-3YZX5EUC.js → chunk-SVOGXWFJ.js} +53 -17
- package/dist/{chunk-3YZX5EUC.js.map → chunk-SVOGXWFJ.js.map} +1 -1
- package/dist/{chunk-MU2LODEV.js → chunk-U4F3COKL.js} +160 -10
- package/dist/chunk-U4F3COKL.js.map +1 -0
- package/dist/{chunk-KEKPOVQD.js → chunk-XHQGCP7A.js} +2 -2
- package/dist/{chunk-RLPVFX7V.js → chunk-YKDFQADM.js} +36 -7
- package/dist/chunk-YKDFQADM.js.map +1 -0
- package/dist/context-mention-palette/index.d.ts +8 -68
- package/dist/context-mention-palette/index.js +6 -6
- package/dist/context-mention-provider.d.ts +6 -1
- package/dist/context-mention-provider.js +1 -1
- package/dist/i18n/index.d.ts +239 -163
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +35 -2
- package/dist/index.js +1481 -997
- package/dist/index.js.map +1 -1
- package/dist/workbench/contribution.d.ts +7 -1
- package/dist/workbench/contribution.js +6 -4
- package/dist/workbench/index.d.ts +4 -2
- package/dist/workbench/index.js +6 -4
- package/dist/workbench/launch.d.ts +2 -0
- package/dist/workbench/launch.js +2 -2
- package/dist/workbench/state.d.ts +3 -2
- package/dist/workbench/state.js +1 -1
- package/dist/workbench/types.d.ts +3 -0
- package/dist/workbench/types.js +1 -1
- package/dist/workspace-agent-generated-files.js +2 -2
- package/dist/{workspaceLinkActions-BlLN8Pvz.d.ts → workspaceLinkActions-Mjktl_Be.d.ts} +3 -0
- package/package.json +15 -13
- package/dist/chunk-ASAZDEQE.js.map +0 -1
- package/dist/chunk-FSTZDNRM.js.map +0 -1
- package/dist/chunk-GEXHKJK5.js.map +0 -1
- package/dist/chunk-GZHQPPK2.js.map +0 -1
- package/dist/chunk-MU2LODEV.js.map +0 -1
- package/dist/chunk-RLPVFX7V.js.map +0 -1
- package/dist/chunk-VDNMTW2E.js.map +0 -1
- package/dist/chunk-WME2V26J.js.map +0 -1
- package/dist/chunk-YXSO4ITT.js.map +0 -1
- package/dist/chunk-ZO3SZCIX.js.map +0 -1
- /package/dist/{chunk-HSXDSFKB.js.map → chunk-OFGXNXYT.js.map} +0 -0
- /package/dist/{chunk-KEKPOVQD.js.map → chunk-XHQGCP7A.js.map} +0 -0
package/dist/i18n/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -4,9 +4,10 @@ import { m as WorkspaceAgentActivityListViewModel, g as AgentHostWorkspaceAgentS
|
|
|
4
4
|
import { PropsWithChildren, JSX } from 'react';
|
|
5
5
|
import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
|
|
6
6
|
import { WorkspaceUserProjectService } from '@tutti-os/workspace-user-project/contracts';
|
|
7
|
-
import { WorkspaceFileReferenceAdapter, WorkspaceFileReference } from '@tutti-os/workspace-file-reference/contracts';
|
|
7
|
+
import { ReferenceLocateTarget, WorkspaceFileReferenceAdapter, WorkspaceFileReference } from '@tutti-os/workspace-file-reference/contracts';
|
|
8
8
|
import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
|
|
9
|
-
import { W as WorkspaceLinkAction } from './workspaceLinkActions-
|
|
9
|
+
import { W as WorkspaceLinkAction } from './workspaceLinkActions-Mjktl_Be.js';
|
|
10
|
+
import { A as AgentContextMentionItem } from './agentFileMentionExtension-CM1c9bqk.js';
|
|
10
11
|
import { AgentContextMentionProvider } from './context-mention-provider.js';
|
|
11
12
|
export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionProviderId } from './context-mention-provider.js';
|
|
12
13
|
import { A as AgentMessageMarkdownWorkspaceAppIcon } from './AgentMessageMarkdown-DeYPURtF.js';
|
|
@@ -37,6 +38,7 @@ interface AgentHostAgentSessionComposerSettings {
|
|
|
37
38
|
speed?: AgentHostAgentSessionSpeed | null;
|
|
38
39
|
planMode?: boolean;
|
|
39
40
|
browserUse?: boolean;
|
|
41
|
+
computerUse?: boolean;
|
|
40
42
|
permissionModeId?: string | null;
|
|
41
43
|
}
|
|
42
44
|
interface AgentHostAgentSession {
|
|
@@ -254,6 +256,8 @@ interface AgentActivityRuntimeActivateSessionInput {
|
|
|
254
256
|
agentSessionId: string;
|
|
255
257
|
cwd?: string;
|
|
256
258
|
initialContent?: AgentActivitySendInput["content"];
|
|
259
|
+
/** 仅展示用首轮文本(bundle 折叠成一个 chip);initialContent 仍带展开后的文件。 */
|
|
260
|
+
initialDisplayPrompt?: string | null;
|
|
257
261
|
mode: "existing" | "new";
|
|
258
262
|
openclawGatewayReady?: boolean;
|
|
259
263
|
provider?: string;
|
|
@@ -689,11 +693,30 @@ interface AgentGUIOpenSessionRequest {
|
|
|
689
693
|
sequence: number;
|
|
690
694
|
}
|
|
691
695
|
interface AgentGUIPrefillPromptRequest {
|
|
696
|
+
autoSubmit?: boolean;
|
|
692
697
|
draftPrompt: string;
|
|
693
698
|
sequence: number;
|
|
694
699
|
userProjectPath?: string | null;
|
|
695
700
|
}
|
|
696
701
|
|
|
702
|
+
interface AgentSlashCommandCapability {
|
|
703
|
+
aliases?: readonly string[];
|
|
704
|
+
capability: "browserUse" | "computerUse";
|
|
705
|
+
kind: "capability";
|
|
706
|
+
name: string;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
type AgentComposerCapabilitySettingsTarget = AgentSlashCommandCapability["capability"];
|
|
710
|
+
interface AgentComposerCapabilityMenuState {
|
|
711
|
+
browserUse?: {
|
|
712
|
+
connectionMode?: "autoConnect" | "isolated" | null;
|
|
713
|
+
};
|
|
714
|
+
computerUse?: {
|
|
715
|
+
authorization?: AgentComposerComputerUseAuthorizationState | null;
|
|
716
|
+
installed?: boolean | null;
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
type AgentComposerComputerUseAuthorizationState = "authorized" | "needs-authorization" | "unknown";
|
|
697
720
|
interface AgentComposerGitBranches {
|
|
698
721
|
branches: readonly string[];
|
|
699
722
|
currentBranch?: string | null;
|
|
@@ -703,6 +726,12 @@ type AgentComposerGitBranchLoader = (input: {
|
|
|
703
726
|
workingDirectory?: string | null;
|
|
704
727
|
}) => Promise<AgentComposerGitBranches>;
|
|
705
728
|
|
|
729
|
+
/**
|
|
730
|
+
* 把 @ 面板里的任务/应用 mention 解析为引用 picker 的定位目标(sourceId + 语义 params)。
|
|
731
|
+
* 由宿主(desktop)注入 —— 源 id 与 params 形态是宿主侧 reference source 的知识。
|
|
732
|
+
*/
|
|
733
|
+
type AgentMentionReferenceTargetResolver = (item: AgentContextMentionItem) => ReferenceLocateTarget | null;
|
|
734
|
+
|
|
706
735
|
interface AgentGUINodeProps {
|
|
707
736
|
nodeId: string;
|
|
708
737
|
workspaceId: string;
|
|
@@ -711,6 +740,7 @@ interface AgentGUINodeProps {
|
|
|
711
740
|
workspaceFileReferenceAdapter?: WorkspaceFileReferenceAdapter | null;
|
|
712
741
|
onRequestGitBranches?: AgentComposerGitBranchLoader | null;
|
|
713
742
|
referenceSourceAggregator?: ReferenceSourceAggregator | null;
|
|
743
|
+
resolveMentionReferenceTarget?: AgentMentionReferenceTargetResolver | null;
|
|
714
744
|
agentSettings: Pick<AgentSettings, "avoidGroupingEdits">;
|
|
715
745
|
title: string;
|
|
716
746
|
state: AgentGUINodeData;
|
|
@@ -719,6 +749,8 @@ interface AgentGUINodeProps {
|
|
|
719
749
|
height: number;
|
|
720
750
|
desktopSize: DesktopSize;
|
|
721
751
|
onLinkAction?: (action: WorkspaceLinkAction) => void;
|
|
752
|
+
capabilityMenuState?: AgentComposerCapabilityMenuState;
|
|
753
|
+
onCapabilitySettingsRequest?: (capability: AgentComposerCapabilitySettingsTarget) => void;
|
|
722
754
|
onAgentProviderLogin?: (provider: AgentProvider) => void;
|
|
723
755
|
onWorkspaceFileReferencesAdded?: (input: {
|
|
724
756
|
provider: AgentProvider;
|
|
@@ -734,6 +766,7 @@ interface AgentGUINodeProps {
|
|
|
734
766
|
prefillPromptRequest?: AgentGUIPrefillPromptRequest | null;
|
|
735
767
|
showProjectSelector?: boolean;
|
|
736
768
|
isMuted?: boolean;
|
|
769
|
+
newConversationRequestSequence?: number | null;
|
|
737
770
|
onMinimize?: () => void;
|
|
738
771
|
onToggleMaximize?: () => void;
|
|
739
772
|
onShowMessage?: (message: string, tone?: "info" | "warning" | "error") => void;
|