@tutti-os/agent-gui 0.0.133 → 0.0.135
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 +19 -5
- package/dist/{AgentRichTextReadonly-PEKCMRPE.js → AgentRichTextReadonly-HCKTNAYO.js} +7 -6
- package/dist/agent-conversation/index.d.ts +2 -2
- package/dist/agent-conversation/index.js +9 -9
- package/dist/agent-gui.d.ts +34 -6
- package/dist/agent-gui.js +17 -17
- package/dist/agent-message-center/index.js +7 -7
- package/dist/{agentFileMentionContracts-CWAeuL7S.d.ts → agentFileMentionContracts-B0yQizXB.d.ts} +5 -0
- package/dist/{agentGuiNodeTypes-B57MfwVo.d.ts → agentGuiNodeTypes-DV7KvZRe.d.ts} +6 -5
- package/dist/agents.d.ts +1 -1
- package/dist/agents.js +1 -1
- package/dist/app/renderer/agentactivity.css +6 -0
- package/dist/{chunk-GBBNYGL7.js → chunk-25VMCMAQ.js} +4 -4
- package/dist/{chunk-VS5BRBY6.js → chunk-5WOCGIXJ.js} +4 -1
- package/dist/chunk-5WOCGIXJ.js.map +1 -0
- package/dist/chunk-DLCZJKCA.js +1 -0
- package/dist/chunk-DLCZJKCA.js.map +1 -0
- package/dist/{chunk-QQRTUHCH.js → chunk-EU7DCT4F.js} +2 -2
- package/dist/{chunk-SZOTLVH6.js → chunk-GIYGO2PB.js} +2 -2
- package/dist/{chunk-HCRROERX.js → chunk-IN3HXYOO.js} +4 -4
- package/dist/{chunk-N62NVPHT.js → chunk-IYZ4GOSN.js} +4 -4
- package/dist/{chunk-A6NSHCRP.js → chunk-JI5KND3K.js} +54 -51
- package/dist/chunk-JI5KND3K.js.map +1 -0
- package/dist/{chunk-J4TTEMRW.js → chunk-KWGMK4IZ.js} +4 -4
- package/dist/{chunk-NE6H7S5Z.js → chunk-OFJNIQWR.js} +2 -2
- package/dist/{chunk-NE6H7S5Z.js.map → chunk-OFJNIQWR.js.map} +1 -1
- package/dist/{chunk-UARZZJJB.js → chunk-OI6BYC7P.js} +4 -4
- package/dist/{chunk-OBWM2RFE.js → chunk-QPEO4OQS.js} +308 -8
- package/dist/chunk-QPEO4OQS.js.map +1 -0
- package/dist/{chunk-XNE2ROCP.js → chunk-UA75CGAG.js} +3 -3
- package/dist/{chunk-PVTAFUDS.js → chunk-VGS7S7YT.js} +2 -2
- package/dist/{chunk-OQR3HXPF.js → chunk-VUNVGEQG.js} +7 -1
- package/dist/chunk-VUNVGEQG.js.map +1 -0
- package/dist/{chunk-IZ626FDO.js → chunk-Y5HD6XHP.js} +485 -361
- package/dist/chunk-Y5HD6XHP.js.map +1 -0
- package/dist/{chunk-KPMQGPYU.js → chunk-ZVYUTXQJ.js} +1 -1
- package/dist/chunk-ZVYUTXQJ.js.map +1 -0
- package/dist/context-mention-palette/index.d.ts +1 -1
- package/dist/context-mention-palette/index.js +8 -7
- package/dist/{contribution-BbW-kkpi.d.ts → contribution-CDdwTppn.d.ts} +2 -0
- package/dist/custom-mention.js +1 -0
- package/dist/i18n/index.d.ts +6 -0
- package/dist/i18n/index.js +2 -2
- package/dist/index.d.ts +53 -9
- package/dist/index.js +20 -20
- package/dist/index.js.map +1 -1
- package/dist/mention-search.d.ts +1 -1
- package/dist/mention-search.js +6 -5
- package/dist/{types-BeAVr4of.d.ts → types-ee3zJ6Cc.d.ts} +3 -0
- package/dist/workbench/browser-element-context/index.d.ts +37 -0
- package/dist/workbench/browser-element-context/index.js +750 -0
- package/dist/workbench/browser-element-context/index.js.map +1 -0
- package/dist/workbench/contribution.d.ts +1 -1
- package/dist/workbench/contribution.js +4 -4
- package/dist/workbench/index.d.ts +1 -1
- package/dist/workbench/index.js +4 -4
- package/dist/workbench/sessionTitle.js +2 -2
- package/dist/workbench/tool-sidebar/index.d.ts +189 -0
- package/dist/workbench/tool-sidebar/index.js +1492 -0
- package/dist/workbench/tool-sidebar/index.js.map +1 -0
- package/package.json +27 -12
- package/dist/chunk-A6NSHCRP.js.map +0 -1
- package/dist/chunk-IZ626FDO.js.map +0 -1
- package/dist/chunk-KPMQGPYU.js.map +0 -1
- package/dist/chunk-OBWM2RFE.js.map +0 -1
- package/dist/chunk-OQR3HXPF.js.map +0 -1
- package/dist/chunk-VS5BRBY6.js.map +0 -1
- /package/dist/{AgentRichTextReadonly-PEKCMRPE.js.map → AgentRichTextReadonly-HCKTNAYO.js.map} +0 -0
- /package/dist/{chunk-GBBNYGL7.js.map → chunk-25VMCMAQ.js.map} +0 -0
- /package/dist/{chunk-QQRTUHCH.js.map → chunk-EU7DCT4F.js.map} +0 -0
- /package/dist/{chunk-SZOTLVH6.js.map → chunk-GIYGO2PB.js.map} +0 -0
- /package/dist/{chunk-HCRROERX.js.map → chunk-IN3HXYOO.js.map} +0 -0
- /package/dist/{chunk-N62NVPHT.js.map → chunk-IYZ4GOSN.js.map} +0 -0
- /package/dist/{chunk-J4TTEMRW.js.map → chunk-KWGMK4IZ.js.map} +0 -0
- /package/dist/{chunk-UARZZJJB.js.map → chunk-OI6BYC7P.js.map} +0 -0
- /package/dist/{chunk-XNE2ROCP.js.map → chunk-UA75CGAG.js.map} +0 -0
- /package/dist/{chunk-PVTAFUDS.js.map → chunk-VGS7S7YT.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../app/renderer/lib/utils.ts","../shared/AgentTargetPresentationContext.tsx"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs));\n}\n","import { createContext, useContext, type JSX, type ReactNode } from \"react\";\n\nexport interface AgentMessageMarkdownAgentTarget {\n agentTargetId: string;\n iconUrl?: string | null;\n maskIconUrl?: string | null;\n name?: string | null;\n provider?: string | null;\n workspaceId?: string | null;\n}\n\nconst EMPTY_AGENT_TARGETS: readonly AgentMessageMarkdownAgentTarget[] =\n Object.freeze([]);\n\nconst AgentTargetPresentationContext =\n createContext<readonly AgentMessageMarkdownAgentTarget[]>(\n EMPTY_AGENT_TARGETS\n );\n\nexport function AgentTargetPresentationProvider({\n agentTargets,\n children\n}: {\n agentTargets: readonly AgentMessageMarkdownAgentTarget[];\n children: ReactNode;\n}): JSX.Element {\n return (\n <AgentTargetPresentationContext.Provider value={agentTargets}>\n {children}\n </AgentTargetPresentationContext.Provider>\n );\n}\n\nexport function useAgentTargetPresentations(): readonly AgentMessageMarkdownAgentTarget[] {\n return useContext(AgentTargetPresentationContext);\n}\n\nexport function resolveAgentTargetPresentation(input: {\n agentTargetId: string;\n agentTargets: readonly AgentMessageMarkdownAgentTarget[];\n workspaceId?: string | null;\n}): AgentMessageMarkdownAgentTarget | null {\n const agentTargetId = input.agentTargetId.trim();\n if (!agentTargetId) {\n return null;\n }\n const workspaceId = input.workspaceId?.trim() ?? \"\";\n return (\n input.agentTargets.find(\n (target) =>\n target.agentTargetId.trim() === agentTargetId &&\n (target.workspaceId?.trim() ?? \"\") === workspaceId\n ) ??\n input.agentTargets.find(\n (target) => target.agentTargetId.trim() === agentTargetId\n ) ??\n null\n );\n}\n"],"mappings":";AAAA,SAA0B,YAAY;AACtC,SAAS,eAAe;AAEjB,SAAS,MAAM,QAA8B;AAClD,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;;;ACLA,SAAS,eAAe,kBAA4C;AA2BhE;AAhBJ,IAAM,sBACJ,OAAO,OAAO,CAAC,CAAC;AAElB,IAAM,iCACJ;AAAA,EACE;AACF;AAEK,SAAS,gCAAgC;AAAA,EAC9C;AAAA,EACA;AACF,GAGgB;AACd,SACE,oBAAC,+BAA+B,UAA/B,EAAwC,OAAO,cAC7C,UACH;AAEJ;AAEO,SAAS,8BAA0E;AACxF,SAAO,WAAW,8BAA8B;AAClD;AAEO,SAAS,+BAA+B,OAIJ;AACzC,QAAM,gBAAgB,MAAM,cAAc,KAAK;AAC/C,MAAI,CAAC,eAAe;AAClB,WAAO;AAAA,EACT;AACA,QAAM,cAAc,MAAM,aAAa,KAAK,KAAK;AACjD,SACE,MAAM,aAAa;AAAA,IACjB,CAAC,WACC,OAAO,cAAc,KAAK,MAAM,kBAC/B,OAAO,aAAa,KAAK,KAAK,QAAQ;AAAA,EAC3C,KACA,MAAM,aAAa;AAAA,IACjB,CAAC,WAAW,OAAO,cAAc,KAAK,MAAM;AAAA,EAC9C,KACA;AAEJ;","names":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AgentContextMentionItem } from '../agentFileMentionContracts-
|
|
1
|
+
import { A as AgentContextMentionItem } from '../agentFileMentionContracts-B0yQizXB.js';
|
|
2
2
|
import { AgentMentionSearchState, AgentMentionBrowseCategory, AgentMentionFilterId, AgentMentionGroupId } from '../mention-search.js';
|
|
3
3
|
export { AgentMentionGroup, AgentMentionSearchController } from '../mention-search.js';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
@@ -3,27 +3,28 @@ import {
|
|
|
3
3
|
AgentFileMentionPalette,
|
|
4
4
|
flattenAgentMentionPaletteEntries,
|
|
5
5
|
groupStartKeys
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-OI6BYC7P.js";
|
|
7
7
|
import {
|
|
8
8
|
AgentMentionSearchController
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-KWGMK4IZ.js";
|
|
10
10
|
import "../chunk-USIFGHT3.js";
|
|
11
11
|
import "../chunk-XJ34OIEQ.js";
|
|
12
12
|
import "../chunk-R7AXDQCA.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-QPEO4OQS.js";
|
|
14
14
|
import "../chunk-5QPOMKMQ.js";
|
|
15
15
|
import {
|
|
16
16
|
AGENT_CONTEXT_MENTION_PROVIDER_IDS
|
|
17
17
|
} from "../chunk-RMQREVJY.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-FGLQZ6I4.js";
|
|
19
|
+
import "../chunk-EU7DCT4F.js";
|
|
19
20
|
import "../chunk-YMXYBG7U.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-OFJNIQWR.js";
|
|
21
22
|
import "../chunk-F5UR6EJG.js";
|
|
22
23
|
import "../chunk-EDNJMG5T.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-GIYGO2PB.js";
|
|
24
25
|
import "../chunk-PJP5BUU6.js";
|
|
25
26
|
import "../chunk-7KVZPJ3O.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-VUNVGEQG.js";
|
|
27
28
|
import "../chunk-MIJXEELH.js";
|
|
28
29
|
import "../chunk-D2JUDUYY.js";
|
|
29
30
|
import "../chunk-6CUELYIF.js";
|
|
@@ -34,6 +34,8 @@ interface AgentGUIAgent {
|
|
|
34
34
|
agentTargetId: string;
|
|
35
35
|
name: string;
|
|
36
36
|
iconUrl: string;
|
|
37
|
+
/** Single-color artwork rendered through the conversation rail CSS mask. */
|
|
38
|
+
maskIconUrl?: string | null;
|
|
37
39
|
sidebarIconUrl?: string | null;
|
|
38
40
|
heroImageUrl?: string | null;
|
|
39
41
|
description?: string | null;
|
package/dist/custom-mention.js
CHANGED
package/dist/i18n/index.d.ts
CHANGED
|
@@ -370,6 +370,9 @@ declare const agentGuiI18nResources: {
|
|
|
370
370
|
readonly fileMentionError: "Unable to search Files.";
|
|
371
371
|
readonly fileMentionTabHint: "Tab switch category | ←→ enter/leave folder | ↑↓ switch selection";
|
|
372
372
|
readonly fileDropHint: "Drop files to add them to the session";
|
|
373
|
+
readonly composerFileFolderUnsupported: "Folders cannot be attached here";
|
|
374
|
+
readonly composerFileTooLarge: "File is too large";
|
|
375
|
+
readonly composerFilePreparationFailed: "File preparation failed";
|
|
373
376
|
readonly mentionPalette: "Mention context";
|
|
374
377
|
readonly addReference: "Add reference";
|
|
375
378
|
readonly addContent: "Add files and more";
|
|
@@ -2954,6 +2957,9 @@ declare const agentGuiI18nResources: {
|
|
|
2954
2957
|
readonly fileMentionError: "无法搜索工作区文件。";
|
|
2955
2958
|
readonly fileMentionTabHint: "Tab 切换分类 | ←→ 进入/返回文件夹 | ↑↓ 切换选中";
|
|
2956
2959
|
readonly fileDropHint: "拖放文件以添加到会话";
|
|
2960
|
+
readonly composerFileFolderUnsupported: "暂不支持在这里附加文件夹";
|
|
2961
|
+
readonly composerFileTooLarge: "文件过大";
|
|
2962
|
+
readonly composerFilePreparationFailed: "文件处理失败";
|
|
2957
2963
|
readonly mentionPalette: "提及上下文";
|
|
2958
2964
|
readonly addReference: "添加引用";
|
|
2959
2965
|
readonly addContent: "添加文件等内容";
|
package/dist/i18n/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -667,10 +667,6 @@ type AgentHostWorkspaceApi = AgentHostRecord & {
|
|
|
667
667
|
ensureDirectory: (input: {
|
|
668
668
|
path: string;
|
|
669
669
|
}) => AgentHostAsyncResult<void>;
|
|
670
|
-
getReferenceForFile?: (file: File) => {
|
|
671
|
-
kind: "file" | "folder";
|
|
672
|
-
path: string;
|
|
673
|
-
};
|
|
674
670
|
readFile: (input: {
|
|
675
671
|
path: string;
|
|
676
672
|
}) => AgentHostAsyncResult<ReadWorkspaceFileResult>;
|
|
@@ -1015,6 +1011,8 @@ interface AgentGUIAgent {
|
|
|
1015
1011
|
agentTargetId: string;
|
|
1016
1012
|
name: string;
|
|
1017
1013
|
iconUrl: string;
|
|
1014
|
+
/** Single-color artwork rendered through the conversation rail CSS mask. */
|
|
1015
|
+
maskIconUrl?: string | null;
|
|
1018
1016
|
sidebarIconUrl?: string | null;
|
|
1019
1017
|
heroImageUrl?: string | null;
|
|
1020
1018
|
description?: string | null;
|
|
@@ -1055,6 +1053,7 @@ interface AgentGUIAgentTarget {
|
|
|
1055
1053
|
label: string;
|
|
1056
1054
|
description?: string;
|
|
1057
1055
|
iconUrl?: string | null;
|
|
1056
|
+
maskIconUrl?: string | null;
|
|
1058
1057
|
sidebarIconUrl?: string | null;
|
|
1059
1058
|
heroImageUrl?: string | null;
|
|
1060
1059
|
badge?: AgentGUIAgentTargetBadge | null;
|
|
@@ -1702,11 +1701,16 @@ interface AgentMentionFileItem {
|
|
|
1702
1701
|
name: string;
|
|
1703
1702
|
entryKind: AgentFileMentionKind;
|
|
1704
1703
|
directoryPath: string;
|
|
1704
|
+
/** Present only for a regular file attached from the local composer. */
|
|
1705
|
+
attachmentId?: string;
|
|
1706
|
+
attachmentStatus?: AgentComposerFileMentionStatus;
|
|
1707
|
+
attachmentErrorCode?: string;
|
|
1705
1708
|
score?: number;
|
|
1706
1709
|
thumbnailUrl?: string | null;
|
|
1707
1710
|
mentionNavigation?: AgentMentionFileNavigationAction;
|
|
1708
1711
|
childCount?: number;
|
|
1709
1712
|
}
|
|
1713
|
+
type AgentComposerFileMentionStatus = "uploading" | "ready" | "error";
|
|
1710
1714
|
interface AgentMentionSessionItem {
|
|
1711
1715
|
kind: "session";
|
|
1712
1716
|
href: string;
|
|
@@ -1830,8 +1834,6 @@ type AgentContextMentionProvider<TItem = any> = Omit<RichTextTriggerProvider<TIt
|
|
|
1830
1834
|
queryDirectory?(input: AgentContextMentionDirectoryQueryInput): Promise<readonly TItem[]> | readonly TItem[];
|
|
1831
1835
|
};
|
|
1832
1836
|
|
|
1833
|
-
type AgentDroppedFileReferenceResolver = (files: readonly File[]) => Promise<readonly WorkspaceFileReference[]> | readonly WorkspaceFileReference[];
|
|
1834
|
-
|
|
1835
1837
|
type AgentGUIResolvedProvider = AgentGUIProvider | "unknown";
|
|
1836
1838
|
type AgentGUIConversationTitleFallback = "untitled-conversation" | null;
|
|
1837
1839
|
type AgentGUIConversationTitleLeadingMentionKind = "agent" | "app" | "file" | "session" | "task";
|
|
@@ -1984,10 +1986,15 @@ interface AgentComposerFileBlockBase {
|
|
|
1984
1986
|
mimeType?: string;
|
|
1985
1987
|
path?: string;
|
|
1986
1988
|
hostPath?: string;
|
|
1989
|
+
url?: string;
|
|
1990
|
+
uri?: string;
|
|
1987
1991
|
assetId?: string;
|
|
1992
|
+
uploadStatus?: string;
|
|
1988
1993
|
sizeBytes?: number;
|
|
1989
1994
|
uploading?: boolean;
|
|
1990
1995
|
uploadError?: string;
|
|
1996
|
+
uploadErrorCode?: string;
|
|
1997
|
+
uploadRetryable?: boolean;
|
|
1991
1998
|
}
|
|
1992
1999
|
interface AgentComposerRegularFileBlock extends AgentComposerFileBlockBase {
|
|
1993
2000
|
kind: "file";
|
|
@@ -2146,6 +2153,34 @@ interface AgentGUINodeViewModel {
|
|
|
2146
2153
|
operations: AgentGUIOperationsViewModel;
|
|
2147
2154
|
}
|
|
2148
2155
|
|
|
2156
|
+
interface AgentPreparedExternalPromptFileMetadata {
|
|
2157
|
+
assetId?: string;
|
|
2158
|
+
mimeType?: string;
|
|
2159
|
+
name: string;
|
|
2160
|
+
sizeBytes?: number;
|
|
2161
|
+
uploadStatus?: string;
|
|
2162
|
+
uri?: string;
|
|
2163
|
+
}
|
|
2164
|
+
type AgentPreparedExternalPromptFile = AgentPreparedExternalPromptFileMetadata & ({
|
|
2165
|
+
path: string;
|
|
2166
|
+
url?: string;
|
|
2167
|
+
} | {
|
|
2168
|
+
path?: string;
|
|
2169
|
+
url: string;
|
|
2170
|
+
});
|
|
2171
|
+
type AgentExternalPromptFilePreparationErrorCode = "file_too_large" | "folder_unsupported" | "preparation_failed";
|
|
2172
|
+
type AgentExternalPromptFilePreparationResult = {
|
|
2173
|
+
sourceIndex: number;
|
|
2174
|
+
status: "prepared";
|
|
2175
|
+
file: AgentPreparedExternalPromptFile;
|
|
2176
|
+
} | {
|
|
2177
|
+
sourceIndex: number;
|
|
2178
|
+
status: "error";
|
|
2179
|
+
errorCode: AgentExternalPromptFilePreparationErrorCode;
|
|
2180
|
+
retryable?: boolean;
|
|
2181
|
+
};
|
|
2182
|
+
type AgentExternalPromptFilePreparer = (files: readonly File[]) => Promise<readonly AgentExternalPromptFilePreparationResult[]>;
|
|
2183
|
+
|
|
2149
2184
|
interface AgentProjectPathChangeMetadata {
|
|
2150
2185
|
action: WorkspaceUserProjectSelectChangeAction;
|
|
2151
2186
|
project?: WorkspaceUserProject;
|
|
@@ -2452,7 +2487,8 @@ interface AgentComposerProps {
|
|
|
2452
2487
|
}) => void;
|
|
2453
2488
|
onLinkAction?: (action: WorkspaceLinkAction) => void;
|
|
2454
2489
|
onRequestWorkspaceReferences?: ((entity?: AgentContextMentionItem | null) => Promise<WorkspaceReferencePickResult>) | null;
|
|
2455
|
-
|
|
2490
|
+
prepareExternalPromptFiles?: AgentExternalPromptFilePreparer | null;
|
|
2491
|
+
promptAssetLimit?: number | null;
|
|
2456
2492
|
selectProjectDirectory?: () => Promise<{
|
|
2457
2493
|
path: string;
|
|
2458
2494
|
} | null>;
|
|
@@ -2621,7 +2657,8 @@ interface AgentGUINodeWorkspace {
|
|
|
2621
2657
|
selectProjectDirectory?: () => Promise<{
|
|
2622
2658
|
path: string;
|
|
2623
2659
|
} | null>;
|
|
2624
|
-
|
|
2660
|
+
prepareExternalPromptFiles?: AgentComposerProps["prepareExternalPromptFiles"];
|
|
2661
|
+
promptAssetLimit?: number | null;
|
|
2625
2662
|
referenceSourceAggregator?: ReferenceSourceAggregator | null;
|
|
2626
2663
|
resolveReferenceEntryIconUrl?: (entry: WorkspaceFileEntry) => Promise<string | null | undefined>;
|
|
2627
2664
|
resolveMentionReferenceTarget?: AgentMentionReferenceTargetResolver | null;
|
|
@@ -3089,6 +3126,9 @@ declare const agentGuiI18nResources: {
|
|
|
3089
3126
|
readonly fileMentionError: "Unable to search Files.";
|
|
3090
3127
|
readonly fileMentionTabHint: "Tab switch category | ←→ enter/leave folder | ↑↓ switch selection";
|
|
3091
3128
|
readonly fileDropHint: "Drop files to add them to the session";
|
|
3129
|
+
readonly composerFileFolderUnsupported: "Folders cannot be attached here";
|
|
3130
|
+
readonly composerFileTooLarge: "File is too large";
|
|
3131
|
+
readonly composerFilePreparationFailed: "File preparation failed";
|
|
3092
3132
|
readonly mentionPalette: "Mention context";
|
|
3093
3133
|
readonly addReference: "Add reference";
|
|
3094
3134
|
readonly addContent: "Add files and more";
|
|
@@ -5673,6 +5713,9 @@ declare const agentGuiI18nResources: {
|
|
|
5673
5713
|
readonly fileMentionError: "无法搜索工作区文件。";
|
|
5674
5714
|
readonly fileMentionTabHint: "Tab 切换分类 | ←→ 进入/返回文件夹 | ↑↓ 切换选中";
|
|
5675
5715
|
readonly fileDropHint: "拖放文件以添加到会话";
|
|
5716
|
+
readonly composerFileFolderUnsupported: "暂不支持在这里附加文件夹";
|
|
5717
|
+
readonly composerFileTooLarge: "文件过大";
|
|
5718
|
+
readonly composerFilePreparationFailed: "文件处理失败";
|
|
5676
5719
|
readonly mentionPalette: "提及上下文";
|
|
5677
5720
|
readonly addReference: "添加引用";
|
|
5678
5721
|
readonly addContent: "添加文件等内容";
|
|
@@ -7945,6 +7988,7 @@ declare function createSharedAgentGUIAgentTarget(input: {
|
|
|
7945
7988
|
badge?: AgentGUIAgentTargetBadge | null;
|
|
7946
7989
|
ownerLabel?: string | null;
|
|
7947
7990
|
iconUrl?: string | null;
|
|
7991
|
+
maskIconUrl?: string | null;
|
|
7948
7992
|
sidebarIconUrl?: string | null;
|
|
7949
7993
|
unavailableReason?: string | null;
|
|
7950
7994
|
disabled?: boolean;
|
|
@@ -8044,4 +8088,4 @@ declare function dispatchAgentPlanPromptAction(input: {
|
|
|
8044
8088
|
workspaceId: string;
|
|
8045
8089
|
}): boolean;
|
|
8046
8090
|
|
|
8047
|
-
export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, 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 AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, AgentGUI, type AgentGUIAccountMenuState, 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 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 AgentGuiI18nLocale, AgentGuiI18nProvider, type AgentHostAgentTargetAuthenticatedAccount, type AgentHostAgentTargetSetupSnapshot, type AgentHostAgentTargetSetupState, type AgentHostAgentTargetSetupWatch, type AgentHostApi, type AgentHostApplyWorkspaceGitPatchInput, type AgentHostInputApi, type AgentHostRuntimeApi, type AgentHostSelectFilesInput, type AgentHostUserProject, type AgentPlanPromptAction, type AgentProbeProvider, type AgentProbeSnapshot, type AgentProviderProbeListInput, type AgentProviderProbeListResult, type AgentUsageQuota, type AgentUsageSnapshot, type EngineStateStore, type PersistWriteResult, type ReadWorkspaceAgentReadStateInput, type WorkspaceAgentReadStateSnapshot, type WriteWorkspaceAgentReadStateInput, agentGUIAgentIsReady, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentGuiI18nModule, agentGuiI18nResources, createLocalAgentGUIAgentTarget, createLocalAgentGUIAgentTargets, createSharedAgentGUIAgentTarget, dispatchAgentPlanPromptAction, getAgentCustomMentionKind, localAgentGUIAgentTargetId, normalizeAgentGUIAgentTargets, normalizeAgentGUIAgents, preloadAgentMentionBrowse, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resolveAgentGUIAgentTarget, resolveAgentGUIExpandedWindowFrame, resolveAgentGUISelectedDirectoryAgent, selectAgentPlanPromptTurn, setAgentActivityRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useEngineSelector, useOptionalAgentActivityRuntime };
|
|
8091
|
+
export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, 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 AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, type AgentExternalPromptFilePreparationErrorCode, type AgentExternalPromptFilePreparationResult, type AgentExternalPromptFilePreparer, AgentGUI, type AgentGUIAccountMenuState, 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 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 AgentGuiI18nLocale, AgentGuiI18nProvider, type AgentHostAgentTargetAuthenticatedAccount, type AgentHostAgentTargetSetupSnapshot, type AgentHostAgentTargetSetupState, type AgentHostAgentTargetSetupWatch, type AgentHostApi, type AgentHostApplyWorkspaceGitPatchInput, type AgentHostInputApi, type AgentHostRuntimeApi, type AgentHostSelectFilesInput, type AgentHostUserProject, type AgentPlanPromptAction, type AgentPreparedExternalPromptFile, type AgentProbeProvider, type AgentProbeSnapshot, type AgentProviderProbeListInput, type AgentProviderProbeListResult, type AgentUsageQuota, type AgentUsageSnapshot, type EngineStateStore, type PersistWriteResult, type ReadWorkspaceAgentReadStateInput, type WorkspaceAgentReadStateSnapshot, type WriteWorkspaceAgentReadStateInput, agentGUIAgentIsReady, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentGuiI18nModule, agentGuiI18nResources, createLocalAgentGUIAgentTarget, createLocalAgentGUIAgentTargets, createSharedAgentGUIAgentTarget, dispatchAgentPlanPromptAction, getAgentCustomMentionKind, localAgentGUIAgentTargetId, normalizeAgentGUIAgentTargets, normalizeAgentGUIAgents, preloadAgentMentionBrowse, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resolveAgentGUIAgentTarget, resolveAgentGUIExpandedWindowFrame, resolveAgentGUISelectedDirectoryAgent, selectAgentPlanPromptTurn, setAgentActivityRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useEngineSelector, useOptionalAgentActivityRuntime };
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
localAgentGUIAgentTargetId,
|
|
8
8
|
normalizeAgentGUIAgentTargets,
|
|
9
9
|
resolveAgentGUIAgentTarget
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y5HD6XHP.js";
|
|
11
11
|
import "./chunk-A4WCTHWS.js";
|
|
12
12
|
import {
|
|
13
13
|
AGENT_GUI_DETAIL_MIN_WIDTH_PX,
|
|
@@ -15,51 +15,51 @@ import {
|
|
|
15
15
|
AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX,
|
|
16
16
|
resolveAgentGUIExpandedWindowFrame,
|
|
17
17
|
shouldAutoCollapseAgentGUIConversationRail
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IN3HXYOO.js";
|
|
19
19
|
import "./chunk-TUWQV2MC.js";
|
|
20
20
|
import "./chunk-MHOYBRCY.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-VGS7S7YT.js";
|
|
22
22
|
import "./chunk-5HIF53K5.js";
|
|
23
23
|
import "./chunk-R2ZADXRB.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-JI5KND3K.js";
|
|
25
|
+
import "./chunk-UA75CGAG.js";
|
|
26
26
|
import "./chunk-FM42UN2J.js";
|
|
27
27
|
import "./chunk-UP3ZDYTN.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-OI6BYC7P.js";
|
|
29
29
|
import {
|
|
30
30
|
agentGUIAgentIsReady,
|
|
31
31
|
normalizeAgentGUIAgents,
|
|
32
32
|
resolveAgentGUISelectedDirectoryAgent
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import {
|
|
35
|
-
AGENT_PASTED_TEXT_BLOCK_KIND,
|
|
36
|
-
AGENT_PASTED_TEXT_MENTION_KIND
|
|
37
|
-
} from "./chunk-FGLQZ6I4.js";
|
|
33
|
+
} from "./chunk-5WOCGIXJ.js";
|
|
38
34
|
import {
|
|
39
35
|
agentGuiDockIconUrl,
|
|
40
36
|
agentGuiDockIconUrls
|
|
41
37
|
} from "./chunk-DXT4W2SU.js";
|
|
42
38
|
import {
|
|
43
39
|
preloadAgentMentionBrowse
|
|
44
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-KWGMK4IZ.js";
|
|
45
41
|
import "./chunk-USIFGHT3.js";
|
|
46
42
|
import "./chunk-XJ34OIEQ.js";
|
|
47
43
|
import "./chunk-R7AXDQCA.js";
|
|
48
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-QPEO4OQS.js";
|
|
49
45
|
import "./chunk-5QPOMKMQ.js";
|
|
50
46
|
import {
|
|
51
47
|
AGENT_CONTEXT_MENTION_PROVIDER_IDS
|
|
52
48
|
} from "./chunk-RMQREVJY.js";
|
|
49
|
+
import {
|
|
50
|
+
AGENT_PASTED_TEXT_BLOCK_KIND,
|
|
51
|
+
AGENT_PASTED_TEXT_MENTION_KIND
|
|
52
|
+
} from "./chunk-FGLQZ6I4.js";
|
|
53
53
|
import {
|
|
54
54
|
dispatchAgentPlanPromptAction,
|
|
55
55
|
selectAgentPlanPromptTurn
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-25VMCMAQ.js";
|
|
57
57
|
import {
|
|
58
58
|
useEngineSelector
|
|
59
59
|
} from "./chunk-2RQM7PJN.js";
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-IYZ4GOSN.js";
|
|
61
|
+
import "./chunk-ZVYUTXQJ.js";
|
|
62
|
+
import "./chunk-EU7DCT4F.js";
|
|
63
63
|
import "./chunk-YMXYBG7U.js";
|
|
64
64
|
import {
|
|
65
65
|
AgentActivityHostProvider,
|
|
@@ -69,17 +69,17 @@ import {
|
|
|
69
69
|
useAgentActivityRuntime,
|
|
70
70
|
useAgentActivitySnapshot,
|
|
71
71
|
useOptionalAgentActivityRuntime
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-OFJNIQWR.js";
|
|
73
73
|
import "./chunk-F5UR6EJG.js";
|
|
74
74
|
import "./chunk-EDNJMG5T.js";
|
|
75
75
|
import {
|
|
76
76
|
AgentGuiI18nProvider,
|
|
77
77
|
agentGuiI18nModule,
|
|
78
78
|
agentGuiI18nResources
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-GIYGO2PB.js";
|
|
80
80
|
import "./chunk-PJP5BUU6.js";
|
|
81
81
|
import "./chunk-7KVZPJ3O.js";
|
|
82
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-VUNVGEQG.js";
|
|
83
83
|
import "./chunk-MIJXEELH.js";
|
|
84
84
|
import {
|
|
85
85
|
getAgentCustomMentionKind,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../index.ts"],"sourcesContent":["export {\n getAgentCustomMentionKind,\n registerAgentCustomMentionKind,\n resetAgentCustomMentionKindsForTests,\n type AgentCustomMentionChipContext,\n type AgentCustomMentionIdentity,\n type AgentCustomMentionKindDefinition,\n type AgentCustomMentionPresentation\n} from \"./shared/agentCustomMentionKinds\";\nexport {\n AGENT_PASTED_TEXT_BLOCK_KIND,\n AGENT_PASTED_TEXT_MENTION_KIND\n} from \"./shared/pastedTextKinds\";\nexport { AgentGUI } from \"./AgentGUI\";\nexport type {\n AgentGUIProps,\n AgentGUIReferenceProvenanceFilterCatalog\n} from \"./AgentGUI\";\nexport type { AgentGUIComposerAppendRequest } from \"./agent-gui/agentGuiNode/controller/useAgentGUIComposerAppendRequest\";\nexport type { AgentComposerDraftFile } from \"./agent-gui/agentGuiNode/model/agentGuiNodeTypes\";\nexport type { AgentGUIAccountMenuState } from \"./agent-gui/agentGuiNode/accountMenuState\";\nexport type {\n AgentGUIComposerContentType,\n AgentGUIComposerFocusMethod,\n AgentGUIEngagementContext,\n AgentGUIEngagementEvent,\n AgentGUIEngagementEventSink\n} from \"./agent-gui/agentGuiNode/engagement/agentGUIEngagement.types\";\nexport {\n agentGUIAgentIsReady,\n normalizeAgentGUIAgents,\n resolveAgentGUISelectedDirectoryAgent\n} from \"./agents\";\nexport {\n agentGUIDefaultTargetProviders,\n createLocalAgentGUIAgentTarget,\n createLocalAgentGUIAgentTargets,\n createSharedAgentGUIAgentTarget,\n localAgentGUIAgentTargetId,\n normalizeAgentGUIAgentTargets,\n resolveAgentGUIAgentTarget\n} from \"./agentTargets\";\nexport type {\n AgentGUIAgent,\n AgentGUIAgentDirectoryPort,\n AgentGUIAgentDirectorySnapshot,\n AgentGUIAgentDirectoryStatus,\n AgentGUIAgentAvailability,\n AgentGUIAgentAvailabilityAction,\n AgentGUIAgentAvailabilityStatus,\n AgentGUIAgentOwner,\n AgentGUIAgentOwnership,\n AgentGUIHomeSuggestionId,\n AgentGUIAllAgentsPresentation,\n AgentGUIProvider,\n AgentGUIProviderRailAllPresentation,\n AgentGUIProviderRailMode,\n AgentGUIProviderReadinessGate,\n AgentGUIProviderReadinessGateAction,\n AgentGUIProviderReadinessGateStatus,\n AgentGUIAgentTarget,\n AgentGUIAgentTargetBadge,\n AgentGUIAgentTargetRef\n} from \"./types\";\nexport {\n AgentGuiI18nProvider,\n agentGuiI18nModule,\n agentGuiI18nResources\n} from \"./i18n/index\";\nexport type { AgentGuiI18nLocale } from \"./i18n/index\";\nexport { agentGuiDockIconUrl, agentGuiDockIconUrls } from \"./dockIcons\";\nexport {\n AGENT_GUI_DETAIL_MIN_WIDTH_PX,\n AGENT_GUI_EXPANDED_TARGET_WIDTH_PX,\n AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX,\n resolveAgentGUIExpandedWindowFrame,\n shouldAutoCollapseAgentGUIConversationRail\n} from \"./agent-gui/agentGuiNode/model/agentGuiRailLayout\";\nexport type {\n AgentGUIAgentsEmptyRenderer,\n AgentGUIProviderUnavailableStateContext,\n AgentGUIProviderUnavailableStateRenderer,\n AgentGUISidebarFooterContext,\n AgentGUISidebarFooterRenderer\n} from \"./agent-gui/agentGuiNode/AgentGUINodeView\";\nexport {\n AGENT_CONTEXT_MENTION_PROVIDER_IDS,\n type AgentContextMentionProviderId,\n type AgentContextMentionProvider\n} from \"./agent-gui/agentGuiNode/agentContextMentionProvider\";\nexport { preloadAgentMentionBrowse } from \"./agent-gui/agentGuiNode/AgentMentionSearchController\";\nexport { AgentActivityHostProvider } from \"./agentActivityHost\";\nexport type { AgentActivityHostProviderProps } from \"./agentActivityHost\";\nexport { useEngineSelector } from \"./shared/engine/useEngineSelector\";\nexport type { EngineStateStore } from \"./shared/engine/useEngineSelector\";\nexport {\n dispatchAgentPlanPromptAction,\n selectAgentPlanPromptTurn\n} from \"./shared/agentConversation/agentPlanPromptDispatch\";\nexport type { AgentPlanPromptAction } from \"./shared/agentConversation/agentPlanPromptDispatch\";\nexport {\n AgentActivityRuntimeProvider,\n resetAgentActivityRuntimeForTests,\n setAgentActivityRuntimeForTests,\n useAgentActivitySnapshot,\n useAgentActivityRuntime,\n useOptionalAgentActivityRuntime\n} from \"./agentActivityRuntime\";\nexport type {\n AgentActivityRuntime,\n AgentActivityRuntimeListSessionMessagesInput,\n AgentActivityRuntimeProviderProps,\n AgentActivityRuntimePromptContentBlock,\n AgentActivityRuntimeDeleteSessionsBatchInput,\n AgentActivityRuntimeDeleteSessionsBatchResult,\n AgentActivityRuntimeSessionSectionDeletionCandidates,\n AgentActivityRuntimeSessionSectionScopeInput,\n AgentActivityRuntimeSetSessionPinnedInput,\n AgentActivityRuntimeUploadPromptContentInput,\n AgentActivityRuntimeUploadPromptContentResult,\n AgentActivityRuntimeUpdateSessionSettingsInput,\n AgentActivityRuntimeUpdateSessionSettingsResult\n} from \"./agentActivityRuntime\";\nexport type {\n AgentHostApi,\n AgentHostAgentTargetAuthenticatedAccount,\n AgentHostAgentTargetSetupSnapshot,\n AgentHostAgentTargetSetupState,\n AgentHostAgentTargetSetupWatch,\n AgentHostApplyWorkspaceGitPatchInput,\n AgentHostInputApi,\n AgentHostSelectFilesInput,\n AgentHostRuntimeApi,\n AgentHostUserProject,\n AgentProviderProbeListInput,\n AgentProviderProbeListResult\n} from \"./host/agentHostApi\";\nexport type {\n AgentProbeProvider,\n AgentProbeSnapshot,\n PersistWriteResult,\n ReadWorkspaceAgentReadStateInput,\n AgentUsageQuota,\n AgentUsageSnapshot,\n WorkspaceAgentReadStateSnapshot,\n WriteWorkspaceAgentReadStateInput\n} from \"./shared/contracts/dto\";\nexport {\n selectNeedsAttentionCount,\n selectNeedsAttentionItems\n} from \"@tutti-os/agent-activity-core\";\nexport type {\n AgentActivityAdapter,\n AgentActivityMessage,\n AgentActivityNeedsAttentionItem,\n AgentActivitySnapshot\n} from \"@tutti-os/agent-activity-core\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../index.ts"],"sourcesContent":["export {\n getAgentCustomMentionKind,\n registerAgentCustomMentionKind,\n resetAgentCustomMentionKindsForTests,\n type AgentCustomMentionChipContext,\n type AgentCustomMentionIdentity,\n type AgentCustomMentionKindDefinition,\n type AgentCustomMentionPresentation\n} from \"./shared/agentCustomMentionKinds\";\nexport {\n AGENT_PASTED_TEXT_BLOCK_KIND,\n AGENT_PASTED_TEXT_MENTION_KIND\n} from \"./shared/pastedTextKinds\";\nexport { AgentGUI } from \"./AgentGUI\";\nexport type {\n AgentGUIProps,\n AgentGUIReferenceProvenanceFilterCatalog\n} from \"./AgentGUI\";\nexport type { AgentGUIComposerAppendRequest } from \"./agent-gui/agentGuiNode/controller/useAgentGUIComposerAppendRequest\";\nexport type { AgentComposerDraftFile } from \"./agent-gui/agentGuiNode/model/agentGuiNodeTypes\";\nexport type {\n AgentExternalPromptFilePreparationErrorCode,\n AgentExternalPromptFilePreparationResult,\n AgentExternalPromptFilePreparer,\n AgentPreparedExternalPromptFile\n} from \"./agent-gui/agentGuiNode/model/agentExternalPromptFiles\";\nexport type { AgentGUIAccountMenuState } from \"./agent-gui/agentGuiNode/accountMenuState\";\nexport type {\n AgentGUIComposerContentType,\n AgentGUIComposerFocusMethod,\n AgentGUIEngagementContext,\n AgentGUIEngagementEvent,\n AgentGUIEngagementEventSink\n} from \"./agent-gui/agentGuiNode/engagement/agentGUIEngagement.types\";\nexport {\n agentGUIAgentIsReady,\n normalizeAgentGUIAgents,\n resolveAgentGUISelectedDirectoryAgent\n} from \"./agents\";\nexport {\n agentGUIDefaultTargetProviders,\n createLocalAgentGUIAgentTarget,\n createLocalAgentGUIAgentTargets,\n createSharedAgentGUIAgentTarget,\n localAgentGUIAgentTargetId,\n normalizeAgentGUIAgentTargets,\n resolveAgentGUIAgentTarget\n} from \"./agentTargets\";\nexport type {\n AgentGUIAgent,\n AgentGUIAgentDirectoryPort,\n AgentGUIAgentDirectorySnapshot,\n AgentGUIAgentDirectoryStatus,\n AgentGUIAgentAvailability,\n AgentGUIAgentAvailabilityAction,\n AgentGUIAgentAvailabilityStatus,\n AgentGUIAgentOwner,\n AgentGUIAgentOwnership,\n AgentGUIHomeSuggestionId,\n AgentGUIAllAgentsPresentation,\n AgentGUIProvider,\n AgentGUIProviderRailAllPresentation,\n AgentGUIProviderRailMode,\n AgentGUIProviderReadinessGate,\n AgentGUIProviderReadinessGateAction,\n AgentGUIProviderReadinessGateStatus,\n AgentGUIAgentTarget,\n AgentGUIAgentTargetBadge,\n AgentGUIAgentTargetRef\n} from \"./types\";\nexport {\n AgentGuiI18nProvider,\n agentGuiI18nModule,\n agentGuiI18nResources\n} from \"./i18n/index\";\nexport type { AgentGuiI18nLocale } from \"./i18n/index\";\nexport { agentGuiDockIconUrl, agentGuiDockIconUrls } from \"./dockIcons\";\nexport {\n AGENT_GUI_DETAIL_MIN_WIDTH_PX,\n AGENT_GUI_EXPANDED_TARGET_WIDTH_PX,\n AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX,\n resolveAgentGUIExpandedWindowFrame,\n shouldAutoCollapseAgentGUIConversationRail\n} from \"./agent-gui/agentGuiNode/model/agentGuiRailLayout\";\nexport type {\n AgentGUIAgentsEmptyRenderer,\n AgentGUIProviderUnavailableStateContext,\n AgentGUIProviderUnavailableStateRenderer,\n AgentGUISidebarFooterContext,\n AgentGUISidebarFooterRenderer\n} from \"./agent-gui/agentGuiNode/AgentGUINodeView\";\nexport {\n AGENT_CONTEXT_MENTION_PROVIDER_IDS,\n type AgentContextMentionProviderId,\n type AgentContextMentionProvider\n} from \"./agent-gui/agentGuiNode/agentContextMentionProvider\";\nexport { preloadAgentMentionBrowse } from \"./agent-gui/agentGuiNode/AgentMentionSearchController\";\nexport { AgentActivityHostProvider } from \"./agentActivityHost\";\nexport type { AgentActivityHostProviderProps } from \"./agentActivityHost\";\nexport { useEngineSelector } from \"./shared/engine/useEngineSelector\";\nexport type { EngineStateStore } from \"./shared/engine/useEngineSelector\";\nexport {\n dispatchAgentPlanPromptAction,\n selectAgentPlanPromptTurn\n} from \"./shared/agentConversation/agentPlanPromptDispatch\";\nexport type { AgentPlanPromptAction } from \"./shared/agentConversation/agentPlanPromptDispatch\";\nexport {\n AgentActivityRuntimeProvider,\n resetAgentActivityRuntimeForTests,\n setAgentActivityRuntimeForTests,\n useAgentActivitySnapshot,\n useAgentActivityRuntime,\n useOptionalAgentActivityRuntime\n} from \"./agentActivityRuntime\";\nexport type {\n AgentActivityRuntime,\n AgentActivityRuntimeListSessionMessagesInput,\n AgentActivityRuntimeProviderProps,\n AgentActivityRuntimePromptContentBlock,\n AgentActivityRuntimeDeleteSessionsBatchInput,\n AgentActivityRuntimeDeleteSessionsBatchResult,\n AgentActivityRuntimeSessionSectionDeletionCandidates,\n AgentActivityRuntimeSessionSectionScopeInput,\n AgentActivityRuntimeSetSessionPinnedInput,\n AgentActivityRuntimeUploadPromptContentInput,\n AgentActivityRuntimeUploadPromptContentResult,\n AgentActivityRuntimeUpdateSessionSettingsInput,\n AgentActivityRuntimeUpdateSessionSettingsResult\n} from \"./agentActivityRuntime\";\nexport type {\n AgentHostApi,\n AgentHostAgentTargetAuthenticatedAccount,\n AgentHostAgentTargetSetupSnapshot,\n AgentHostAgentTargetSetupState,\n AgentHostAgentTargetSetupWatch,\n AgentHostApplyWorkspaceGitPatchInput,\n AgentHostInputApi,\n AgentHostSelectFilesInput,\n AgentHostRuntimeApi,\n AgentHostUserProject,\n AgentProviderProbeListInput,\n AgentProviderProbeListResult\n} from \"./host/agentHostApi\";\nexport type {\n AgentProbeProvider,\n AgentProbeSnapshot,\n PersistWriteResult,\n ReadWorkspaceAgentReadStateInput,\n AgentUsageQuota,\n AgentUsageSnapshot,\n WorkspaceAgentReadStateSnapshot,\n WriteWorkspaceAgentReadStateInput\n} from \"./shared/contracts/dto\";\nexport {\n selectNeedsAttentionCount,\n selectNeedsAttentionItems\n} from \"@tutti-os/agent-activity-core\";\nexport type {\n AgentActivityAdapter,\n AgentActivityMessage,\n AgentActivityNeedsAttentionItem,\n AgentActivitySnapshot\n} from \"@tutti-os/agent-activity-core\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyJA;AAAA,EACE;AAAA,EACA;AAAA,OACK;","names":[]}
|
package/dist/mention-search.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AgentContextMentionItem } from './agentFileMentionContracts-
|
|
1
|
+
import { A as AgentContextMentionItem } from './agentFileMentionContracts-B0yQizXB.js';
|
|
2
2
|
import { AgentContextMentionProvider } from './context-mention-provider.js';
|
|
3
3
|
import { MentionPaletteGroup, MentionPaletteState } from '@tutti-os/ui-rich-text/at-panel';
|
|
4
4
|
import { ReferenceProvenanceFilter, ReferenceProvenanceCatalog } from '@tutti-os/workspace-file-reference/contracts';
|
package/dist/mention-search.js
CHANGED
|
@@ -3,21 +3,22 @@ import {
|
|
|
3
3
|
MAX_BROWSE_CACHE_ENTRIES,
|
|
4
4
|
preloadAgentMentionBrowse,
|
|
5
5
|
resetAgentMentionSearchBrowseCacheForTests
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KWGMK4IZ.js";
|
|
7
7
|
import "./chunk-USIFGHT3.js";
|
|
8
8
|
import "./chunk-XJ34OIEQ.js";
|
|
9
9
|
import "./chunk-R7AXDQCA.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-QPEO4OQS.js";
|
|
11
11
|
import "./chunk-5QPOMKMQ.js";
|
|
12
12
|
import "./chunk-RMQREVJY.js";
|
|
13
|
+
import "./chunk-FGLQZ6I4.js";
|
|
13
14
|
import "./chunk-YMXYBG7U.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-OFJNIQWR.js";
|
|
15
16
|
import "./chunk-F5UR6EJG.js";
|
|
16
17
|
import "./chunk-EDNJMG5T.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-GIYGO2PB.js";
|
|
18
19
|
import "./chunk-PJP5BUU6.js";
|
|
19
20
|
import "./chunk-7KVZPJ3O.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-VUNVGEQG.js";
|
|
21
22
|
import "./chunk-MIJXEELH.js";
|
|
22
23
|
import "./chunk-D2JUDUYY.js";
|
|
23
24
|
import "./chunk-6CUELYIF.js";
|
|
@@ -96,6 +96,8 @@ interface AgentGUIAgent {
|
|
|
96
96
|
agentTargetId: string;
|
|
97
97
|
name: string;
|
|
98
98
|
iconUrl: string;
|
|
99
|
+
/** Single-color artwork rendered through the conversation rail CSS mask. */
|
|
100
|
+
maskIconUrl?: string | null;
|
|
99
101
|
sidebarIconUrl?: string | null;
|
|
100
102
|
heroImageUrl?: string | null;
|
|
101
103
|
description?: string | null;
|
|
@@ -132,6 +134,7 @@ interface AgentGUIAgentTarget {
|
|
|
132
134
|
label: string;
|
|
133
135
|
description?: string;
|
|
134
136
|
iconUrl?: string | null;
|
|
137
|
+
maskIconUrl?: string | null;
|
|
135
138
|
sidebarIconUrl?: string | null;
|
|
136
139
|
heroImageUrl?: string | null;
|
|
137
140
|
badge?: AgentGUIAgentTargetBadge | null;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface BrowserElementContextCopy {
|
|
4
|
+
cancel: string;
|
|
5
|
+
failed: string;
|
|
6
|
+
select: string;
|
|
7
|
+
}
|
|
8
|
+
declare function BrowserElementContextAction({ copy, onAppendMention, onError, workspaceId }: {
|
|
9
|
+
copy: BrowserElementContextCopy;
|
|
10
|
+
onAppendMention: (mention: string) => void;
|
|
11
|
+
onError: (message: string) => void;
|
|
12
|
+
workspaceId: string;
|
|
13
|
+
}): ReactNode;
|
|
14
|
+
|
|
15
|
+
declare const browserElementMentionKind = "browser-element";
|
|
16
|
+
interface BrowserElementMentionReference {
|
|
17
|
+
context: string;
|
|
18
|
+
id: string;
|
|
19
|
+
tagName: string;
|
|
20
|
+
workspaceId: string;
|
|
21
|
+
}
|
|
22
|
+
interface BrowserElementMentionIdentity {
|
|
23
|
+
label: string;
|
|
24
|
+
scope?: Readonly<Record<string, string>>;
|
|
25
|
+
}
|
|
26
|
+
interface BrowserElementMentionPresentation {
|
|
27
|
+
name: string;
|
|
28
|
+
workspaceId?: string;
|
|
29
|
+
}
|
|
30
|
+
declare function createBrowserElementMentionMarkdown(reference: BrowserElementMentionReference): string;
|
|
31
|
+
declare function browserElementMentionLabel(tagName: string): string;
|
|
32
|
+
declare function presentBrowserElementMention(mention: BrowserElementMentionIdentity): BrowserElementMentionPresentation | null;
|
|
33
|
+
|
|
34
|
+
/** Registers browser DOM references before the first AgentGUI surface mounts. */
|
|
35
|
+
declare function registerBrowserElementMention(): void;
|
|
36
|
+
|
|
37
|
+
export { BrowserElementContextAction, type BrowserElementContextCopy, type BrowserElementMentionIdentity, type BrowserElementMentionPresentation, type BrowserElementMentionReference, browserElementMentionKind, browserElementMentionLabel, createBrowserElementMentionMarkdown, presentBrowserElementMention, registerBrowserElementMention };
|