@tutti-os/agent-gui 0.0.13 → 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 +37 -2
- package/dist/index.js +1495 -990
- 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,8 +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';
|
|
8
|
-
import {
|
|
7
|
+
import { ReferenceLocateTarget, WorkspaceFileReferenceAdapter, WorkspaceFileReference } from '@tutti-os/workspace-file-reference/contracts';
|
|
8
|
+
import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
|
|
9
|
+
import { W as WorkspaceLinkAction } from './workspaceLinkActions-Mjktl_Be.js';
|
|
10
|
+
import { A as AgentContextMentionItem } from './agentFileMentionExtension-CM1c9bqk.js';
|
|
9
11
|
import { AgentContextMentionProvider } from './context-mention-provider.js';
|
|
10
12
|
export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionProviderId } from './context-mention-provider.js';
|
|
11
13
|
import { A as AgentMessageMarkdownWorkspaceAppIcon } from './AgentMessageMarkdown-DeYPURtF.js';
|
|
@@ -36,6 +38,7 @@ interface AgentHostAgentSessionComposerSettings {
|
|
|
36
38
|
speed?: AgentHostAgentSessionSpeed | null;
|
|
37
39
|
planMode?: boolean;
|
|
38
40
|
browserUse?: boolean;
|
|
41
|
+
computerUse?: boolean;
|
|
39
42
|
permissionModeId?: string | null;
|
|
40
43
|
}
|
|
41
44
|
interface AgentHostAgentSession {
|
|
@@ -253,6 +256,8 @@ interface AgentActivityRuntimeActivateSessionInput {
|
|
|
253
256
|
agentSessionId: string;
|
|
254
257
|
cwd?: string;
|
|
255
258
|
initialContent?: AgentActivitySendInput["content"];
|
|
259
|
+
/** 仅展示用首轮文本(bundle 折叠成一个 chip);initialContent 仍带展开后的文件。 */
|
|
260
|
+
initialDisplayPrompt?: string | null;
|
|
256
261
|
mode: "existing" | "new";
|
|
257
262
|
openclawGatewayReady?: boolean;
|
|
258
263
|
provider?: string;
|
|
@@ -688,11 +693,30 @@ interface AgentGUIOpenSessionRequest {
|
|
|
688
693
|
sequence: number;
|
|
689
694
|
}
|
|
690
695
|
interface AgentGUIPrefillPromptRequest {
|
|
696
|
+
autoSubmit?: boolean;
|
|
691
697
|
draftPrompt: string;
|
|
692
698
|
sequence: number;
|
|
693
699
|
userProjectPath?: string | null;
|
|
694
700
|
}
|
|
695
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";
|
|
696
720
|
interface AgentComposerGitBranches {
|
|
697
721
|
branches: readonly string[];
|
|
698
722
|
currentBranch?: string | null;
|
|
@@ -702,6 +726,12 @@ type AgentComposerGitBranchLoader = (input: {
|
|
|
702
726
|
workingDirectory?: string | null;
|
|
703
727
|
}) => Promise<AgentComposerGitBranches>;
|
|
704
728
|
|
|
729
|
+
/**
|
|
730
|
+
* 把 @ 面板里的任务/应用 mention 解析为引用 picker 的定位目标(sourceId + 语义 params)。
|
|
731
|
+
* 由宿主(desktop)注入 —— 源 id 与 params 形态是宿主侧 reference source 的知识。
|
|
732
|
+
*/
|
|
733
|
+
type AgentMentionReferenceTargetResolver = (item: AgentContextMentionItem) => ReferenceLocateTarget | null;
|
|
734
|
+
|
|
705
735
|
interface AgentGUINodeProps {
|
|
706
736
|
nodeId: string;
|
|
707
737
|
workspaceId: string;
|
|
@@ -709,6 +739,8 @@ interface AgentGUINodeProps {
|
|
|
709
739
|
workspacePath: string;
|
|
710
740
|
workspaceFileReferenceAdapter?: WorkspaceFileReferenceAdapter | null;
|
|
711
741
|
onRequestGitBranches?: AgentComposerGitBranchLoader | null;
|
|
742
|
+
referenceSourceAggregator?: ReferenceSourceAggregator | null;
|
|
743
|
+
resolveMentionReferenceTarget?: AgentMentionReferenceTargetResolver | null;
|
|
712
744
|
agentSettings: Pick<AgentSettings, "avoidGroupingEdits">;
|
|
713
745
|
title: string;
|
|
714
746
|
state: AgentGUINodeData;
|
|
@@ -717,6 +749,8 @@ interface AgentGUINodeProps {
|
|
|
717
749
|
height: number;
|
|
718
750
|
desktopSize: DesktopSize;
|
|
719
751
|
onLinkAction?: (action: WorkspaceLinkAction) => void;
|
|
752
|
+
capabilityMenuState?: AgentComposerCapabilityMenuState;
|
|
753
|
+
onCapabilitySettingsRequest?: (capability: AgentComposerCapabilitySettingsTarget) => void;
|
|
720
754
|
onAgentProviderLogin?: (provider: AgentProvider) => void;
|
|
721
755
|
onWorkspaceFileReferencesAdded?: (input: {
|
|
722
756
|
provider: AgentProvider;
|
|
@@ -732,6 +766,7 @@ interface AgentGUINodeProps {
|
|
|
732
766
|
prefillPromptRequest?: AgentGUIPrefillPromptRequest | null;
|
|
733
767
|
showProjectSelector?: boolean;
|
|
734
768
|
isMuted?: boolean;
|
|
769
|
+
newConversationRequestSequence?: number | null;
|
|
735
770
|
onMinimize?: () => void;
|
|
736
771
|
onToggleMaximize?: () => void;
|
|
737
772
|
onShowMessage?: (message: string, tone?: "info" | "warning" | "error") => void;
|