@tutti-os/agent-gui 0.0.94 → 0.0.96
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/README.md +86 -38
- package/dist/AgentGUI-DWdvUV4x.d.ts +1038 -0
- package/dist/agent-conversation/index.d.ts +6 -7
- package/dist/agent-conversation/index.js +15 -10
- package/dist/agent-conversation/index.js.map +1 -1
- package/dist/agent-env/index.d.ts +10 -36
- package/dist/agent-env/index.js +2 -57
- package/dist/agent-env/index.js.map +1 -1
- package/dist/agent-gui.d.ts +21 -0
- package/dist/agent-gui.js +39 -0
- package/dist/agent-message-center/index.d.ts +156 -124
- package/dist/agent-message-center/index.js +1656 -1463
- package/dist/agent-message-center/index.js.map +1 -1
- package/dist/{agentConversationVM-Cl4G0Lln.d.ts → agentConversationVM-C335TR6S.d.ts} +112 -7
- package/dist/agentFileMentionContracts-58IjMU-u.d.ts +108 -0
- package/dist/{agentGuiNodeTypes-CAioPXK9.d.ts → agentGuiNodeTypes-B9X4aWfv.d.ts} +123 -163
- package/dist/agentPlanPromptDispatch-C7cCMjve.d.ts +37 -0
- package/dist/agents.d.ts +13 -0
- package/dist/agents.js +13 -0
- package/dist/app/renderer/agentactivity.css +276 -83
- package/dist/app/renderer/assets/icons/agent-vinyls/tutti-vinyl.png +0 -0
- package/dist/app/renderer/assets/icons/open-link-lined.svg +4 -0
- package/dist/{chunk-7BUYFVRI.js → chunk-2HJEOO7W.js} +2931 -2946
- package/dist/chunk-2HJEOO7W.js.map +1 -0
- package/dist/{chunk-E5FOXRUM.js → chunk-3XXBDYAI.js} +293 -258
- package/dist/chunk-3XXBDYAI.js.map +1 -0
- package/dist/{chunk-ZUW4B5AT.js → chunk-3Y3F7CS5.js} +21 -32
- package/dist/chunk-3Y3F7CS5.js.map +1 -0
- package/dist/{chunk-SCLLP5DO.js → chunk-4PQPJ5OY.js} +50 -155
- package/dist/chunk-4PQPJ5OY.js.map +1 -0
- package/dist/chunk-4YG7YK7S.js +23 -0
- package/dist/chunk-4YG7YK7S.js.map +1 -0
- package/dist/chunk-5X7YDOC6.js +42 -0
- package/dist/chunk-5X7YDOC6.js.map +1 -0
- package/dist/{chunk-R2EWECUP.js → chunk-7BXWPI4F.js} +17 -2
- package/dist/{chunk-R2EWECUP.js.map → chunk-7BXWPI4F.js.map} +1 -1
- package/dist/chunk-AGT7MUTV.js +491 -0
- package/dist/chunk-AGT7MUTV.js.map +1 -0
- package/dist/chunk-C35SNDVZ.js +96 -0
- package/dist/chunk-C35SNDVZ.js.map +1 -0
- package/dist/{chunk-5FE7M42A.js → chunk-E4HQUTM3.js} +2 -2
- package/dist/chunk-FGLQZ6I4.js +9 -0
- package/dist/chunk-FGLQZ6I4.js.map +1 -0
- package/dist/chunk-H5F3QSCF.js +25 -0
- package/dist/chunk-H5F3QSCF.js.map +1 -0
- package/dist/chunk-H6IQ63DQ.js +14 -0
- package/dist/chunk-H6IQ63DQ.js.map +1 -0
- package/dist/{chunk-45FF4DQU.js → chunk-IYEXLOUE.js} +22 -27
- package/dist/chunk-IYEXLOUE.js.map +1 -0
- package/dist/{chunk-P72YLKC6.js → chunk-JKIZA7EJ.js} +3573 -3755
- package/dist/chunk-JKIZA7EJ.js.map +1 -0
- package/dist/chunk-KJQERFKX.js +259 -0
- package/dist/chunk-KJQERFKX.js.map +1 -0
- package/dist/{chunk-XW4CVBUH.js → chunk-L3GMMGRS.js} +25 -16
- package/dist/chunk-L3GMMGRS.js.map +1 -0
- package/dist/chunk-MASXZENX.js +231 -0
- package/dist/chunk-MASXZENX.js.map +1 -0
- package/dist/{chunk-BXVPOGYK.js → chunk-O3Q5SIJH.js} +505 -504
- package/dist/chunk-O3Q5SIJH.js.map +1 -0
- package/dist/{chunk-554VG7ZW.js → chunk-QVBF5BN5.js} +2 -2
- package/dist/{chunk-AWAIUYG4.js → chunk-RE4AXS27.js} +532 -565
- package/dist/chunk-RE4AXS27.js.map +1 -0
- package/dist/{chunk-7LMJXF4R.js → chunk-TVIGLNNI.js} +20 -16
- package/dist/chunk-TVIGLNNI.js.map +1 -0
- package/dist/{chunk-XDV4ZRVK.js → chunk-UGVI47X6.js} +98 -37
- package/dist/chunk-UGVI47X6.js.map +1 -0
- package/dist/{chunk-GAPTLVII.js → chunk-UHBCM6RO.js} +1 -1
- package/dist/chunk-UHBCM6RO.js.map +1 -0
- package/dist/{chunk-UBDPV34P.js → chunk-W6WAGPMD.js} +1385 -1305
- package/dist/chunk-W6WAGPMD.js.map +1 -0
- package/dist/chunk-WKSFPJHZ.js +33054 -0
- package/dist/chunk-WKSFPJHZ.js.map +1 -0
- package/dist/{chunk-IGY4ASUF.js → chunk-WMNS4MAQ.js} +1288 -1696
- package/dist/chunk-WMNS4MAQ.js.map +1 -0
- package/dist/{chunk-MATIJPGF.js → chunk-XPFHJMZP.js} +541 -401
- package/dist/chunk-XPFHJMZP.js.map +1 -0
- package/dist/chunk-YMXYBG7U.js +12 -0
- package/dist/chunk-YMXYBG7U.js.map +1 -0
- package/dist/context-mention-palette/index.d.ts +3 -2
- package/dist/context-mention-palette/index.js +17 -12
- package/dist/custom-mention.d.ts +42 -0
- package/dist/custom-mention.js +17 -0
- package/dist/custom-mention.js.map +1 -0
- package/dist/dock-icons.d.ts +4 -0
- package/dist/dock-icons.js +11 -0
- package/dist/dock-icons.js.map +1 -0
- package/dist/i18n/index.d.ts +880 -841
- package/dist/i18n/index.js +2 -2
- package/dist/index.d.ts +56 -1063
- package/dist/index.js +78 -35532
- package/dist/index.js.map +1 -1
- package/dist/mention-search.d.ts +226 -0
- package/dist/mention-search.js +29 -0
- package/dist/mention-search.js.map +1 -0
- package/dist/open-link-lined-JWEKUKME.svg +4 -0
- package/dist/pastedTextKinds-D-XuInaS.d.ts +4 -0
- package/dist/provider-icons.d.ts +6 -0
- package/dist/provider-icons.js +12 -0
- package/dist/provider-icons.js.map +1 -0
- package/dist/provider-identity.d.ts +9 -0
- package/dist/provider-identity.js +21 -0
- package/dist/provider-identity.js.map +1 -0
- package/dist/runtime-BBNdWgDU.d.ts +10 -0
- package/dist/startup-shell.d.ts +8 -0
- package/dist/startup-shell.js +184 -0
- package/dist/startup-shell.js.map +1 -0
- package/dist/{types-PLFZ8SBX.d.ts → types-CnT8rNUI.d.ts} +43 -87
- package/dist/workbench/contribution.d.ts +34 -41
- package/dist/workbench/contribution.js +10 -6
- package/dist/workbench/index.d.ts +5 -4
- package/dist/workbench/index.js +27 -25
- package/dist/workbench/launch.d.ts +4 -7
- package/dist/workbench/launch.js +4 -3
- package/dist/workbench/providerCatalog.d.ts +2 -2
- package/dist/workbench/providerCatalog.js +2 -1
- package/dist/workbench/sessionTitle.d.ts +11 -14
- package/dist/workbench/sessionTitle.js +6 -7
- package/dist/workbench/state.d.ts +1 -1
- package/dist/workbench/state.js +3 -2
- package/dist/workbench/types.d.ts +2 -4
- package/dist/workbench/types.js +1 -1
- package/dist/workspace-agent-generated-files.d.ts +20 -2
- package/dist/workspace-agent-generated-files.js +6 -5
- package/dist/workspaceAgentActivityListTypes-C7gPWYiA.d.ts +71 -0
- package/package.json +70 -26
- package/dist/AgentMentionSearchController-DD_WOred.d.ts +0 -241
- package/dist/AgentMessageMarkdown-DeYPURtF.d.ts +0 -7
- package/dist/chunk-45FF4DQU.js.map +0 -1
- package/dist/chunk-4HP6V2YA.js +0 -207
- package/dist/chunk-4HP6V2YA.js.map +0 -1
- package/dist/chunk-7BUYFVRI.js.map +0 -1
- package/dist/chunk-7LMJXF4R.js.map +0 -1
- package/dist/chunk-AWAIUYG4.js.map +0 -1
- package/dist/chunk-BXVPOGYK.js.map +0 -1
- package/dist/chunk-E5FOXRUM.js.map +0 -1
- package/dist/chunk-GAPTLVII.js.map +0 -1
- package/dist/chunk-IBIMGLCD.js +0 -66
- package/dist/chunk-IBIMGLCD.js.map +0 -1
- package/dist/chunk-IGY4ASUF.js.map +0 -1
- package/dist/chunk-LR4FA5X6.js +0 -368
- package/dist/chunk-LR4FA5X6.js.map +0 -1
- package/dist/chunk-MATIJPGF.js.map +0 -1
- package/dist/chunk-MKHDRIGN.js +0 -71
- package/dist/chunk-MKHDRIGN.js.map +0 -1
- package/dist/chunk-P72YLKC6.js.map +0 -1
- package/dist/chunk-SCLLP5DO.js.map +0 -1
- package/dist/chunk-UBDPV34P.js.map +0 -1
- package/dist/chunk-VAKFNNKT.js +0 -410
- package/dist/chunk-VAKFNNKT.js.map +0 -1
- package/dist/chunk-XDV4ZRVK.js.map +0 -1
- package/dist/chunk-XW4CVBUH.js.map +0 -1
- package/dist/chunk-ZUW4B5AT.js.map +0 -1
- package/dist/plan-decision-ops.d.ts +0 -70
- package/dist/plan-decision-ops.js +0 -19
- package/dist/queued-prompt-runtime.d.ts +0 -115
- package/dist/queued-prompt-runtime.js +0 -9
- package/dist/uiSettings-BQS9r2eo.d.ts +0 -6
- package/dist/workspaceAgentActivityListViewModel-BzV-cf0D.d.ts +0 -340
- package/dist/workspaceLinkActions-DS9LWqzI.d.ts +0 -74
- /package/dist/{plan-decision-ops.js.map → agent-gui.js.map} +0 -0
- /package/dist/{queued-prompt-runtime.js.map → agents.js.map} +0 -0
- /package/dist/{chunk-5FE7M42A.js.map → chunk-E4HQUTM3.js.map} +0 -0
- /package/dist/{chunk-554VG7ZW.js.map → chunk-QVBF5BN5.js.map} +0 -0
|
@@ -1,4 +1,112 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WorkspaceIssueMentionMode } from '@tutti-os/workspace-issue-manager/core';
|
|
2
|
+
import { W as WorkspaceAgentActivityCard, T as ToolCallStatusKind } from './workspaceAgentActivityListTypes-C7gPWYiA.js';
|
|
3
|
+
import { AgentActivitySession } from '@tutti-os/agent-activity-core';
|
|
4
|
+
|
|
5
|
+
type WorkspaceLinkActionSource = "agent-markdown" | "agent-file-change" | string;
|
|
6
|
+
interface OpenWorkspaceFileLinkAction {
|
|
7
|
+
type: "open-workspace-file";
|
|
8
|
+
mode?: "reveal" | "open-directory";
|
|
9
|
+
path: string;
|
|
10
|
+
directoryPath: string;
|
|
11
|
+
workspaceRoot: string;
|
|
12
|
+
source: WorkspaceLinkActionSource;
|
|
13
|
+
prefetchedDirectoryListing?: WorkspaceFileLinkDirectoryListing | null;
|
|
14
|
+
}
|
|
15
|
+
interface OpenLocalAssetPreviewLinkAction {
|
|
16
|
+
type: "open-local-asset-preview";
|
|
17
|
+
path: string;
|
|
18
|
+
name: string;
|
|
19
|
+
source: WorkspaceLinkActionSource;
|
|
20
|
+
}
|
|
21
|
+
interface WorkspaceFileLinkDirectoryEntry {
|
|
22
|
+
path: string;
|
|
23
|
+
name: string;
|
|
24
|
+
kind: "file" | "directory" | "unknown";
|
|
25
|
+
hasChildren: boolean | null;
|
|
26
|
+
sizeBytes: number | null;
|
|
27
|
+
mtimeMs: number | null;
|
|
28
|
+
}
|
|
29
|
+
interface WorkspaceFileLinkDirectoryListing {
|
|
30
|
+
workspaceId: string;
|
|
31
|
+
root: string;
|
|
32
|
+
directoryPath: string;
|
|
33
|
+
entries: WorkspaceFileLinkDirectoryEntry[];
|
|
34
|
+
}
|
|
35
|
+
interface OpenWorkspaceUrlLinkAction {
|
|
36
|
+
type: "open-url";
|
|
37
|
+
url: string;
|
|
38
|
+
source: WorkspaceLinkActionSource;
|
|
39
|
+
}
|
|
40
|
+
interface OpenAgentSessionLinkAction {
|
|
41
|
+
type: "open-agent-session";
|
|
42
|
+
workspaceId: string;
|
|
43
|
+
agentSessionId: string;
|
|
44
|
+
agentTargetId?: string | null;
|
|
45
|
+
source: WorkspaceLinkActionSource;
|
|
46
|
+
}
|
|
47
|
+
interface OpenWorkspaceIssueLinkAction {
|
|
48
|
+
type: "open-workspace-issue";
|
|
49
|
+
workspaceId: string;
|
|
50
|
+
issueId: string | null;
|
|
51
|
+
mode?: WorkspaceIssueMentionMode;
|
|
52
|
+
outputDir?: string | null;
|
|
53
|
+
runId?: string | null;
|
|
54
|
+
taskId?: string | null;
|
|
55
|
+
topicId?: string | null;
|
|
56
|
+
source: WorkspaceLinkActionSource;
|
|
57
|
+
}
|
|
58
|
+
interface OpenWorkspaceAppLinkAction {
|
|
59
|
+
type: "open-workspace-app";
|
|
60
|
+
workspaceId: string;
|
|
61
|
+
appId: string;
|
|
62
|
+
conversationId?: string | null;
|
|
63
|
+
messageId?: string | null;
|
|
64
|
+
summaryTaskId?: string | null;
|
|
65
|
+
source: WorkspaceLinkActionSource;
|
|
66
|
+
}
|
|
67
|
+
interface OpenCustomMentionLinkAction {
|
|
68
|
+
type: "open-custom-mention";
|
|
69
|
+
/** 注册表里的 kind(= mention:// providerId)。 */
|
|
70
|
+
kind: string;
|
|
71
|
+
href: string;
|
|
72
|
+
source: WorkspaceLinkActionSource;
|
|
73
|
+
}
|
|
74
|
+
type WorkspaceLinkAction = OpenWorkspaceFileLinkAction | OpenLocalAssetPreviewLinkAction | OpenWorkspaceUrlLinkAction | OpenAgentSessionLinkAction | OpenWorkspaceIssueLinkAction | OpenWorkspaceAppLinkAction | OpenCustomMentionLinkAction;
|
|
75
|
+
|
|
76
|
+
interface WorkspaceAgentActivityFileChange {
|
|
77
|
+
path: string;
|
|
78
|
+
change?: "added" | "modified" | "deleted" | "moved" | string;
|
|
79
|
+
tools?: string[];
|
|
80
|
+
}
|
|
81
|
+
interface WorkspaceAgentActivityFileChanges {
|
|
82
|
+
coverage?: string;
|
|
83
|
+
files?: WorkspaceAgentActivityFileChange[];
|
|
84
|
+
}
|
|
85
|
+
interface WorkspaceAgentActivityTimelineItem {
|
|
86
|
+
id: number;
|
|
87
|
+
workspaceId?: string;
|
|
88
|
+
agentSessionId: string;
|
|
89
|
+
seq?: number;
|
|
90
|
+
turnId?: string;
|
|
91
|
+
eventSource?: string;
|
|
92
|
+
eventId: string;
|
|
93
|
+
actorType: string;
|
|
94
|
+
actorId: string;
|
|
95
|
+
itemType: "message" | "call" | "event" | "error" | "lifecycle" | string;
|
|
96
|
+
role?: string;
|
|
97
|
+
callType?: "tool" | "skill" | "subagent" | "approval" | "workflow" | string;
|
|
98
|
+
callId?: string;
|
|
99
|
+
name?: string;
|
|
100
|
+
status?: string | null;
|
|
101
|
+
content?: string;
|
|
102
|
+
payload?: Record<string, unknown> & {
|
|
103
|
+
content?: unknown;
|
|
104
|
+
text?: unknown;
|
|
105
|
+
fileChanges?: WorkspaceAgentActivityFileChanges;
|
|
106
|
+
};
|
|
107
|
+
occurredAtUnixMs?: number;
|
|
108
|
+
createdAtUnixMs?: number;
|
|
109
|
+
}
|
|
2
110
|
|
|
3
111
|
interface WorkspaceAgentSessionDetailMessage {
|
|
4
112
|
id: string;
|
|
@@ -81,7 +189,7 @@ interface WorkspaceAgentSessionDetailTurn {
|
|
|
81
189
|
}
|
|
82
190
|
interface WorkspaceAgentSessionDetailViewModel {
|
|
83
191
|
activity: WorkspaceAgentActivityCard;
|
|
84
|
-
session:
|
|
192
|
+
session: AgentActivitySession;
|
|
85
193
|
cwd: string;
|
|
86
194
|
workspaceRoot: string | null;
|
|
87
195
|
turns: WorkspaceAgentSessionDetailTurn[];
|
|
@@ -89,7 +197,7 @@ interface WorkspaceAgentSessionDetailViewModel {
|
|
|
89
197
|
}
|
|
90
198
|
interface BuildWorkspaceAgentSessionDetailInput {
|
|
91
199
|
activity: WorkspaceAgentActivityCard;
|
|
92
|
-
session:
|
|
200
|
+
session: AgentActivitySession;
|
|
93
201
|
timelineItems: WorkspaceAgentActivityTimelineItem[];
|
|
94
202
|
workspaceRoot?: string | null;
|
|
95
203
|
}
|
|
@@ -376,14 +484,11 @@ type AgentConversationPromptVM = AgentApprovalItemVM | {
|
|
|
376
484
|
requestId: string;
|
|
377
485
|
title: string;
|
|
378
486
|
};
|
|
379
|
-
type AgentConversationPendingInteractivePromptVM = Exclude<AgentConversationPromptVM, AgentApprovalItemVM>;
|
|
380
487
|
interface AgentConversationVM {
|
|
381
488
|
activity: WorkspaceAgentActivityCard;
|
|
382
489
|
workspaceRoot: string | null;
|
|
383
490
|
sourceDetail: WorkspaceAgentSessionDetailViewModel;
|
|
384
491
|
rows: AgentTranscriptRowVM[];
|
|
385
|
-
pendingApproval: AgentApprovalItemVM | null;
|
|
386
|
-
pendingInteractivePrompt: AgentConversationPendingInteractivePromptVM | null;
|
|
387
492
|
}
|
|
388
493
|
|
|
389
|
-
export { type AgentApprovalItemVM as A, type BuildWorkspaceAgentSessionDetailInput as B, type
|
|
494
|
+
export { type AgentApprovalItemVM as A, type BuildWorkspaceAgentSessionDetailInput as B, type WorkspaceAgentActivityTimelineItem as W, type AgentAskUserQuestionVM as a, type AgentConversationPromptVM as b, type AgentConversationVM as c, type WorkspaceAgentSessionDetailViewModel as d, type WorkspaceLinkAction as e, buildWorkspaceAgentSessionDetailViewModel as f };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
type AgentFileMentionKind = "file" | "directory" | "unknown";
|
|
2
|
+
type AgentMentionFileNavigationAction = "agent-generated-folder" | "agent-generated-folder-back";
|
|
3
|
+
type AgentMentionScope = "my_sessions" | "collab_sessions";
|
|
4
|
+
type AgentMentionReferenceSource = "app" | "task";
|
|
5
|
+
interface AgentMentionFileItem {
|
|
6
|
+
kind: "file";
|
|
7
|
+
path: string;
|
|
8
|
+
href: string;
|
|
9
|
+
name: string;
|
|
10
|
+
entryKind: AgentFileMentionKind;
|
|
11
|
+
directoryPath: string;
|
|
12
|
+
score?: number;
|
|
13
|
+
thumbnailUrl?: string | null;
|
|
14
|
+
mentionNavigation?: AgentMentionFileNavigationAction;
|
|
15
|
+
childCount?: number;
|
|
16
|
+
}
|
|
17
|
+
interface AgentMentionSessionItem {
|
|
18
|
+
kind: "session";
|
|
19
|
+
href: string;
|
|
20
|
+
workspaceId: string;
|
|
21
|
+
targetId: string;
|
|
22
|
+
agentTargetId?: string;
|
|
23
|
+
name: string;
|
|
24
|
+
title: string;
|
|
25
|
+
scope: AgentMentionScope;
|
|
26
|
+
initiatorName: string;
|
|
27
|
+
initiatorAvatarUrl?: string;
|
|
28
|
+
agentName: string;
|
|
29
|
+
agentIconUrl?: string;
|
|
30
|
+
status?: string;
|
|
31
|
+
inputPreview?: string;
|
|
32
|
+
summaryPreview?: string;
|
|
33
|
+
updatedAtUnixMs?: number;
|
|
34
|
+
}
|
|
35
|
+
interface AgentMentionWorkspaceIssueItem {
|
|
36
|
+
kind: "workspace-issue";
|
|
37
|
+
href: string;
|
|
38
|
+
workspaceId: string;
|
|
39
|
+
targetId: string;
|
|
40
|
+
topicId?: string;
|
|
41
|
+
name: string;
|
|
42
|
+
title: string;
|
|
43
|
+
creatorName?: string;
|
|
44
|
+
status?: string;
|
|
45
|
+
contentPreview?: string;
|
|
46
|
+
updatedAtUnixMs?: number;
|
|
47
|
+
}
|
|
48
|
+
interface AgentMentionWorkspaceAppItem {
|
|
49
|
+
kind: "workspace-app";
|
|
50
|
+
href: string;
|
|
51
|
+
workspaceId: string;
|
|
52
|
+
targetId: string;
|
|
53
|
+
appId: string;
|
|
54
|
+
name: string;
|
|
55
|
+
description?: string;
|
|
56
|
+
iconUrl?: string;
|
|
57
|
+
/** 应用是否能够提供产物文件(reference),决定 @ 面板行末尾是否展示「查看产物」入口。 */
|
|
58
|
+
referencesListSupported?: boolean;
|
|
59
|
+
}
|
|
60
|
+
interface AgentMentionAgentTargetItem {
|
|
61
|
+
kind: "agent-target";
|
|
62
|
+
href: string;
|
|
63
|
+
workspaceId: string;
|
|
64
|
+
targetId: string;
|
|
65
|
+
name: string;
|
|
66
|
+
description?: string;
|
|
67
|
+
agentProviderId?: string;
|
|
68
|
+
iconUrl?: string;
|
|
69
|
+
}
|
|
70
|
+
interface AgentMentionWorkspaceReferenceItem {
|
|
71
|
+
kind: "workspace-reference";
|
|
72
|
+
href: string;
|
|
73
|
+
workspaceId: string;
|
|
74
|
+
/** URI path id:source=app 时为 appId,source=task 时为 topicId。 */
|
|
75
|
+
targetId: string;
|
|
76
|
+
source: AgentMentionReferenceSource;
|
|
77
|
+
/** 子级 id:app 子分组 / issueId。缺省表示整个 app / topic。 */
|
|
78
|
+
groupId?: string;
|
|
79
|
+
name: string;
|
|
80
|
+
iconUrl?: string;
|
|
81
|
+
/** 展示用文件数(来自 picker 节点 childCount);序列化不再展开文件。 */
|
|
82
|
+
fileCount: number;
|
|
83
|
+
}
|
|
84
|
+
interface AgentMentionWorkspaceAppFactoryItem {
|
|
85
|
+
kind: "workspace-app-factory";
|
|
86
|
+
href: string;
|
|
87
|
+
workspaceId: string;
|
|
88
|
+
targetId: string;
|
|
89
|
+
jobId: string;
|
|
90
|
+
name: string;
|
|
91
|
+
action?: string;
|
|
92
|
+
contextPath?: string;
|
|
93
|
+
}
|
|
94
|
+
interface AgentMentionCustomItem {
|
|
95
|
+
kind: "custom";
|
|
96
|
+
/** 注册表里的 kind(= mention:// providerId)。 */
|
|
97
|
+
customKind: string;
|
|
98
|
+
href: string;
|
|
99
|
+
workspaceId: string;
|
|
100
|
+
targetId: string;
|
|
101
|
+
/** chip 第一行。 */
|
|
102
|
+
name: string;
|
|
103
|
+
/** chip 第二行(通用双行卡)。 */
|
|
104
|
+
summary?: string;
|
|
105
|
+
}
|
|
106
|
+
type AgentContextMentionItem = AgentMentionFileItem | AgentMentionAgentTargetItem | AgentMentionSessionItem | AgentMentionWorkspaceAppItem | AgentMentionWorkspaceReferenceItem | AgentMentionWorkspaceAppFactoryItem | AgentMentionWorkspaceIssueItem | AgentMentionCustomItem;
|
|
107
|
+
|
|
108
|
+
export type { AgentContextMentionItem as A };
|