@tutti-os/agent-gui 0.0.17 → 0.0.18
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/{chunk-VNAQ6QFE.js → chunk-4RUK7VPA.js} +4 -4
- package/dist/{chunk-KHTIC52P.js → chunk-5Z5HILKT.js} +2 -2
- package/dist/{chunk-OJ5WX7SZ.js → chunk-B7DTDZVT.js} +2 -2
- package/dist/{chunk-HVOPJU2K.js → chunk-DT4W5Z2A.js} +4 -4
- package/dist/{chunk-CDTTIUPL.js → chunk-F7XLV7M3.js} +2 -2
- package/dist/{chunk-VO2TZNKV.js → chunk-FEWMACBN.js} +4 -4
- package/dist/{chunk-65YMY2M3.js → chunk-GLDKFIWM.js} +7 -3
- package/dist/chunk-GLDKFIWM.js.map +1 -0
- package/dist/{chunk-K44WER5Z.js → chunk-S5GS4GRM.js} +2 -2
- package/dist/chunk-S5GS4GRM.js.map +1 -0
- package/dist/{chunk-GWR6WGZY.js → chunk-XHJQNUH4.js} +41 -28
- package/dist/chunk-XHJQNUH4.js.map +1 -0
- package/dist/context-mention-palette/index.js +5 -5
- package/dist/i18n/index.d.ts +6 -2
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +65 -33
- package/dist/index.js.map +1 -1
- package/dist/workbench/contribution.d.ts +1 -0
- package/dist/workbench/contribution.js +1 -1
- package/dist/workbench/index.js +1 -1
- package/dist/workspace-agent-generated-files.js +2 -2
- package/dist/{workspaceLinkActions-Mjktl_Be.d.ts → workspaceLinkActions-CqWZaCY4.d.ts} +1 -0
- package/package.json +12 -12
- package/dist/chunk-65YMY2M3.js.map +0 -1
- package/dist/chunk-GWR6WGZY.js.map +0 -1
- package/dist/chunk-K44WER5Z.js.map +0 -1
- /package/dist/{chunk-VNAQ6QFE.js.map → chunk-4RUK7VPA.js.map} +0 -0
- /package/dist/{chunk-KHTIC52P.js.map → chunk-5Z5HILKT.js.map} +0 -0
- /package/dist/{chunk-OJ5WX7SZ.js.map → chunk-B7DTDZVT.js.map} +0 -0
- /package/dist/{chunk-HVOPJU2K.js.map → chunk-DT4W5Z2A.js.map} +0 -0
- /package/dist/{chunk-CDTTIUPL.js.map → chunk-F7XLV7M3.js.map} +0 -0
- /package/dist/{chunk-VO2TZNKV.js.map → chunk-FEWMACBN.js.map} +0 -0
package/dist/i18n/index.d.ts
CHANGED
|
@@ -471,6 +471,7 @@ declare const agentGuiI18nResources: {
|
|
|
471
471
|
readonly slashStatusContextUnavailable: "Context usage unavailable";
|
|
472
472
|
readonly slashStatusLimitsUnavailable: "Rate limits unavailable from this agent";
|
|
473
473
|
readonly usageChipLabel: "Context {{percent}}%";
|
|
474
|
+
readonly usageTooltipLabel: "Context usage";
|
|
474
475
|
readonly usagePopoverTitle: "Plan usage";
|
|
475
476
|
readonly usageContextWindowLabel: "Context window";
|
|
476
477
|
readonly usageTokensLabel: "Tokens";
|
|
@@ -624,6 +625,7 @@ declare const agentGuiI18nResources: {
|
|
|
624
625
|
readonly sectionEarlier: "Earlier";
|
|
625
626
|
readonly projectSectionEdit: "New session";
|
|
626
627
|
readonly projectSectionMoreActions: "Project actions";
|
|
628
|
+
readonly projectSectionViewFiles: "Open folder";
|
|
627
629
|
readonly projectRailCreateProject: "New project";
|
|
628
630
|
readonly projectRailLinkExistingProject: "Link existing project folder";
|
|
629
631
|
readonly removeProject: "Remove";
|
|
@@ -768,7 +770,7 @@ declare const agentGuiI18nResources: {
|
|
|
768
770
|
readonly referenceWorkspaceFiles: "Reference workspace files";
|
|
769
771
|
readonly referencePicker: {
|
|
770
772
|
readonly clearFilter: "Clear filter";
|
|
771
|
-
readonly confirm: "Use
|
|
773
|
+
readonly confirm: "Use references";
|
|
772
774
|
readonly emptyDirectory: "This folder is empty.";
|
|
773
775
|
readonly emptyPreview: "Select a file to see details";
|
|
774
776
|
readonly emptySearch: "No matching files or folders.";
|
|
@@ -2846,6 +2848,7 @@ declare const agentGuiI18nResources: {
|
|
|
2846
2848
|
readonly slashStatusContextUnavailable: "上下文用量不可用";
|
|
2847
2849
|
readonly slashStatusLimitsUnavailable: "当前 Agent 未提供额度限制";
|
|
2848
2850
|
readonly usageChipLabel: "上下文 {{percent}}%";
|
|
2851
|
+
readonly usageTooltipLabel: "上下文用量";
|
|
2849
2852
|
readonly usagePopoverTitle: "计划用量";
|
|
2850
2853
|
readonly usageContextWindowLabel: "上下文窗口";
|
|
2851
2854
|
readonly usageTokensLabel: "Token 用量";
|
|
@@ -2999,6 +3002,7 @@ declare const agentGuiI18nResources: {
|
|
|
2999
3002
|
readonly sectionEarlier: "更早";
|
|
3000
3003
|
readonly projectSectionEdit: "新建会话";
|
|
3001
3004
|
readonly projectSectionMoreActions: "项目操作";
|
|
3005
|
+
readonly projectSectionViewFiles: "打开文件夹";
|
|
3002
3006
|
readonly projectRailCreateProject: "新建项目";
|
|
3003
3007
|
readonly projectRailLinkExistingProject: "关联已有项目文件";
|
|
3004
3008
|
readonly removeProject: "移除";
|
|
@@ -3143,7 +3147,7 @@ declare const agentGuiI18nResources: {
|
|
|
3143
3147
|
readonly referenceWorkspaceFiles: "引用空间文件";
|
|
3144
3148
|
readonly referencePicker: {
|
|
3145
3149
|
readonly clearFilter: "清除筛选";
|
|
3146
|
-
readonly confirm: "
|
|
3150
|
+
readonly confirm: "引用文件";
|
|
3147
3151
|
readonly emptyDirectory: "当前目录为空";
|
|
3148
3152
|
readonly emptyPreview: "选择一个文件查看详情";
|
|
3149
3153
|
readonly emptySearch: "没有匹配的文件或文件夹";
|
package/dist/i18n/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
|
|
|
7
7
|
import { WorkspaceUserProjectService } from '@tutti-os/workspace-user-project/contracts';
|
|
8
8
|
import { ReferenceLocateTarget, WorkspaceFileReferenceAdapter, WorkspaceFileReference } from '@tutti-os/workspace-file-reference/contracts';
|
|
9
9
|
import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
|
|
10
|
-
import { W as WorkspaceLinkAction } from './workspaceLinkActions-
|
|
10
|
+
import { W as WorkspaceLinkAction } from './workspaceLinkActions-CqWZaCY4.js';
|
|
11
11
|
import { A as AgentContextMentionItem } from './AgentMentionSearchController-DqssJ2-b.js';
|
|
12
12
|
export { p as preloadAgentMentionBrowse } from './AgentMentionSearchController-DqssJ2-b.js';
|
|
13
13
|
import { AgentContextMentionProvider } from './context-mention-provider.js';
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
AgentInteractivePromptSurface,
|
|
15
15
|
approvalOptionDisplayLabel
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FEWMACBN.js";
|
|
17
17
|
import {
|
|
18
18
|
PLAN_IMPLEMENTATION_ACTION_FEEDBACK,
|
|
19
19
|
PLAN_IMPLEMENTATION_ACTION_IMPLEMENT,
|
|
@@ -37,12 +37,12 @@ import {
|
|
|
37
37
|
skillDescriptionForDisplay,
|
|
38
38
|
skillTriggerForPrefix,
|
|
39
39
|
useProjectedAgentConversation
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-DT4W5Z2A.js";
|
|
41
41
|
import {
|
|
42
42
|
AgentMessageMarkdown,
|
|
43
43
|
cn,
|
|
44
44
|
resolveWorkspaceLinkAction
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-S5GS4GRM.js";
|
|
46
46
|
import {
|
|
47
47
|
AGENT_MENTION_FILTER_TAB_ORDER,
|
|
48
48
|
AgentFileMentionPalette,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
DEFAULT_AGENT_MENTION_FILTER,
|
|
51
51
|
flattenAgentMentionPaletteEntries,
|
|
52
52
|
preloadAgentMentionBrowse
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-4RUK7VPA.js";
|
|
54
54
|
import {
|
|
55
55
|
WORKSPACE_AGENT_ACTIVITY_RUNTIME_SESSION_ORIGIN,
|
|
56
56
|
buildWorkspaceAgentActivityListViewModel,
|
|
@@ -59,13 +59,13 @@ import {
|
|
|
59
59
|
mergeWorkspaceAgentActivityDurableAndOverlayMessages,
|
|
60
60
|
normalizeOptionalWorkspaceAgentStatus,
|
|
61
61
|
selectWorkspaceAgentActivityOverlayMessages
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-B7DTDZVT.js";
|
|
63
63
|
import {
|
|
64
64
|
MANAGED_AGENT_ICON_FALLBACK_URL,
|
|
65
65
|
MANAGED_AGENT_ICON_URLS,
|
|
66
66
|
Spinner,
|
|
67
67
|
normalizeManagedAgentProvider
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-F7XLV7M3.js";
|
|
69
69
|
import "./chunk-MTFSQWZ6.js";
|
|
70
70
|
import {
|
|
71
71
|
resolveWorkspaceAgentSessionSortTimeUnixMs
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
mentionItemToAttrs,
|
|
79
79
|
normalizeAgentSessionMentionTitle,
|
|
80
80
|
parseMentionItemFromHref
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-5Z5HILKT.js";
|
|
82
82
|
import "./chunk-XJ34OIEQ.js";
|
|
83
83
|
import {
|
|
84
84
|
AgentActivityHostProvider,
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
getActiveUiLanguage,
|
|
108
108
|
translate,
|
|
109
109
|
useTranslation
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-GLDKFIWM.js";
|
|
111
111
|
import "./chunk-LUGELG5V.js";
|
|
112
112
|
import "./chunk-PJP5BUU6.js";
|
|
113
113
|
|
|
@@ -8642,17 +8642,18 @@ function useAgentGUINodeController({
|
|
|
8642
8642
|
defaultReasoningEffort,
|
|
8643
8643
|
drafts: draftSettingsBySessionIdRef.current
|
|
8644
8644
|
});
|
|
8645
|
+
const composerOptionsCwd = selectedProjectPathRef.current?.trim() || workspacePath.trim() || "";
|
|
8645
8646
|
void Promise.resolve(
|
|
8646
8647
|
agentActivityRuntime.getComposerOptions({
|
|
8647
8648
|
workspaceId,
|
|
8648
|
-
cwd:
|
|
8649
|
+
cwd: composerOptionsCwd,
|
|
8649
8650
|
force: options?.force,
|
|
8650
8651
|
provider,
|
|
8651
8652
|
settings
|
|
8652
8653
|
})
|
|
8653
8654
|
).catch(() => void 0);
|
|
8654
8655
|
},
|
|
8655
|
-
[agentActivityRuntime, defaultReasoningEffort, workspaceId]
|
|
8656
|
+
[agentActivityRuntime, defaultReasoningEffort, workspaceId, workspacePath]
|
|
8656
8657
|
);
|
|
8657
8658
|
useEffect4(() => {
|
|
8658
8659
|
if (previewMode) {
|
|
@@ -12951,7 +12952,7 @@ function AgentSessionChrome({
|
|
|
12951
12952
|
tabIndex: expandableCards.has("recovery") ? 0 : void 0,
|
|
12952
12953
|
className: cn(
|
|
12953
12954
|
AgentGUIChrome_styles_default.chromeCard,
|
|
12954
|
-
visibleRecovery.kind === "failed" ? AgentGUIChrome_styles_default.chromeCardDanger : visibleRecovery.kind === "warning" ? AgentGUIChrome_styles_default.
|
|
12955
|
+
visibleRecovery.kind === "failed" ? AgentGUIChrome_styles_default.chromeCardDanger : visibleRecovery.kind === "warning" ? AgentGUIChrome_styles_default.chromeCardDanger : visibleRecovery.kind === "activating" ? AgentGUIChrome_styles_default.chromeCardConnecting : AgentGUIChrome_styles_default.chromeCardMuted
|
|
12955
12956
|
),
|
|
12956
12957
|
onClick: () => toggleExpandedCard("recovery"),
|
|
12957
12958
|
onKeyDown: handleExpandableCardKeyDown("recovery"),
|
|
@@ -16450,27 +16451,30 @@ function AgentUsageChip({
|
|
|
16450
16451
|
const usageLevel = agentUsageChipLevel(clampedPercent);
|
|
16451
16452
|
const ringColor = agentUsageRingColor(usageLevel);
|
|
16452
16453
|
return /* @__PURE__ */ jsxs13(Popover, { children: [
|
|
16453
|
-
/* @__PURE__ */ jsx26(
|
|
16454
|
-
|
|
16455
|
-
|
|
16456
|
-
|
|
16457
|
-
|
|
16458
|
-
|
|
16459
|
-
|
|
16460
|
-
|
|
16461
|
-
|
|
16462
|
-
|
|
16463
|
-
|
|
16464
|
-
|
|
16465
|
-
|
|
16466
|
-
|
|
16467
|
-
|
|
16468
|
-
|
|
16469
|
-
|
|
16470
|
-
|
|
16471
|
-
|
|
16472
|
-
|
|
16473
|
-
|
|
16454
|
+
/* @__PURE__ */ jsx26(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsxs13(Tooltip, { children: [
|
|
16455
|
+
/* @__PURE__ */ jsx26(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx26(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx26(
|
|
16456
|
+
"button",
|
|
16457
|
+
{
|
|
16458
|
+
type: "button",
|
|
16459
|
+
"aria-label": chipLabel,
|
|
16460
|
+
className: "nodrag relative mr-2 inline-flex size-4 shrink-0 cursor-default items-center justify-center rounded-full p-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:color-mix(in_srgb,var(--text-primary)_34%,transparent)] [-webkit-app-region:no-drag]",
|
|
16461
|
+
"data-testid": "agent-gui-usage-chip",
|
|
16462
|
+
"data-usage-level": usageLevel,
|
|
16463
|
+
title: chipLabel,
|
|
16464
|
+
style: {
|
|
16465
|
+
background: `conic-gradient(${ringColor} ${clampedPercent}%, color-mix(in srgb, ${ringColor} 16%, transparent) 0)`
|
|
16466
|
+
},
|
|
16467
|
+
children: /* @__PURE__ */ jsx26(
|
|
16468
|
+
"span",
|
|
16469
|
+
{
|
|
16470
|
+
"aria-hidden": "true",
|
|
16471
|
+
className: "absolute inset-0.5 rounded-full bg-[var(--agent-gui-surface-raised,var(--background-fronted))]"
|
|
16472
|
+
}
|
|
16473
|
+
)
|
|
16474
|
+
}
|
|
16475
|
+
) }) }),
|
|
16476
|
+
/* @__PURE__ */ jsx26(TooltipContent, { side: "top", children: labels.usageTooltipLabel })
|
|
16477
|
+
] }) }),
|
|
16474
16478
|
/* @__PURE__ */ jsx26(
|
|
16475
16479
|
PopoverContent,
|
|
16476
16480
|
{
|
|
@@ -18178,6 +18182,7 @@ function AgentComposer({
|
|
|
18178
18182
|
limits: slashStatus?.limits ?? [],
|
|
18179
18183
|
labels: {
|
|
18180
18184
|
usageChipLabel: labels.usageChipLabel,
|
|
18185
|
+
usageTooltipLabel: labels.usageTooltipLabel,
|
|
18181
18186
|
usagePopoverTitle: labels.usagePopoverTitle,
|
|
18182
18187
|
usageContextWindowLabel: labels.usageContextWindowLabel,
|
|
18183
18188
|
usageLimitsLabel: labels.usageLimitsLabel
|
|
@@ -19031,6 +19036,7 @@ function AgentGUINodeView({
|
|
|
19031
19036
|
const openConversationWindow = useOptionalStableEventCallback(
|
|
19032
19037
|
onOpenConversationWindow
|
|
19033
19038
|
);
|
|
19039
|
+
const openProjectFiles = useOptionalStableEventCallback(onLinkAction);
|
|
19034
19040
|
const detailComposerFocusRequestSequence = localComposerFocusRequestSequence === 0 ? composerFocusRequestSequence : (composerFocusRequestSequence ?? 0) + localComposerFocusRequestSequence;
|
|
19035
19041
|
const requestCreateConversation = useCallback10(
|
|
19036
19042
|
(options) => {
|
|
@@ -19206,6 +19212,7 @@ function AgentGUINodeView({
|
|
|
19206
19212
|
onRequestDeleteConversation: requestDeleteConversation,
|
|
19207
19213
|
onCancelDeleteConversation: cancelDeleteConversation,
|
|
19208
19214
|
onConfirmDeleteConversation: confirmDeleteConversation,
|
|
19215
|
+
onOpenProjectFiles: openProjectFiles,
|
|
19209
19216
|
onOpenConversationWindow: openConversationWindow
|
|
19210
19217
|
}),
|
|
19211
19218
|
[
|
|
@@ -19216,6 +19223,7 @@ function AgentGUINodeView({
|
|
|
19216
19223
|
createConversationDisabled,
|
|
19217
19224
|
labels,
|
|
19218
19225
|
openConversationWindow,
|
|
19226
|
+
openProjectFiles,
|
|
19219
19227
|
openclawGateway,
|
|
19220
19228
|
removeProject,
|
|
19221
19229
|
requestCreateConversation,
|
|
@@ -19721,6 +19729,7 @@ var AgentGUIDetailPane = memo(function AgentGUIDetailPane2({
|
|
|
19721
19729
|
slashStatusContextUnavailable: labels.slashStatusContextUnavailable,
|
|
19722
19730
|
slashStatusLimitsUnavailable: labels.slashStatusLimitsUnavailable,
|
|
19723
19731
|
usageChipLabel: labels.usageChipLabel,
|
|
19732
|
+
usageTooltipLabel: labels.usageTooltipLabel,
|
|
19724
19733
|
usagePopoverTitle: labels.usagePopoverTitle,
|
|
19725
19734
|
usageContextWindowLabel: labels.usageContextWindowLabel,
|
|
19726
19735
|
usageTokensLabel: labels.usageTokensLabel,
|
|
@@ -20608,7 +20617,7 @@ function syncAgentGUIConversationRailStore(store, next) {
|
|
|
20608
20617
|
Object.assign(store, next);
|
|
20609
20618
|
}
|
|
20610
20619
|
function agentGUIConversationRailStoreSnapshotsEqual(current, next) {
|
|
20611
|
-
return current.conversations === next.conversations && current.userProjects === next.userProjects && current.activeConversationId === next.activeConversationId && current.pendingDeleteConversationId === next.pendingDeleteConversationId && current.isLoadingConversations === next.isLoadingConversations && current.isDeletingConversation === next.isDeletingConversation && current.isDeletingProjectConversations === next.isDeletingProjectConversations && current.labels === next.labels && current.workspaceUserProjectI18n === next.workspaceUserProjectI18n && current.uiLanguage === next.uiLanguage && current.showProjectSelector === next.showProjectSelector && current.createConversationDisabled === next.createConversationDisabled && current.openclawGateway === next.openclawGateway && current.isCollapsed === next.isCollapsed && current.onCreateConversation === next.onCreateConversation && current.onRetryOpenclawGateway === next.onRetryOpenclawGateway && current.onSelectConversation === next.onSelectConversation && current.onToggleConversationPinned === next.onToggleConversationPinned && current.onOpenConversationWindow === next.onOpenConversationWindow && current.onRemoveProject === next.onRemoveProject && current.onConfirmDeleteProjectConversations === next.onConfirmDeleteProjectConversations && current.onRequestDeleteConversation === next.onRequestDeleteConversation && current.onCancelDeleteConversation === next.onCancelDeleteConversation && current.onConfirmDeleteConversation === next.onConfirmDeleteConversation;
|
|
20620
|
+
return current.conversations === next.conversations && current.userProjects === next.userProjects && current.activeConversationId === next.activeConversationId && current.pendingDeleteConversationId === next.pendingDeleteConversationId && current.isLoadingConversations === next.isLoadingConversations && current.isDeletingConversation === next.isDeletingConversation && current.isDeletingProjectConversations === next.isDeletingProjectConversations && current.labels === next.labels && current.workspaceUserProjectI18n === next.workspaceUserProjectI18n && current.uiLanguage === next.uiLanguage && current.showProjectSelector === next.showProjectSelector && current.createConversationDisabled === next.createConversationDisabled && current.openclawGateway === next.openclawGateway && current.isCollapsed === next.isCollapsed && current.onCreateConversation === next.onCreateConversation && current.onRetryOpenclawGateway === next.onRetryOpenclawGateway && current.onSelectConversation === next.onSelectConversation && current.onToggleConversationPinned === next.onToggleConversationPinned && current.onOpenProjectFiles === next.onOpenProjectFiles && current.onOpenConversationWindow === next.onOpenConversationWindow && current.onRemoveProject === next.onRemoveProject && current.onConfirmDeleteProjectConversations === next.onConfirmDeleteProjectConversations && current.onRequestDeleteConversation === next.onRequestDeleteConversation && current.onCancelDeleteConversation === next.onCancelDeleteConversation && current.onConfirmDeleteConversation === next.onConfirmDeleteConversation;
|
|
20612
20621
|
}
|
|
20613
20622
|
var AgentGUIConversationRailStorePane = memo(
|
|
20614
20623
|
function AgentGUIConversationRailStorePane2({
|
|
@@ -20647,6 +20656,7 @@ var AgentGUIConversationRailPane = memo(
|
|
|
20647
20656
|
onRetryOpenclawGateway,
|
|
20648
20657
|
onSelectConversation,
|
|
20649
20658
|
onToggleConversationPinned,
|
|
20659
|
+
onOpenProjectFiles,
|
|
20650
20660
|
onOpenConversationWindow,
|
|
20651
20661
|
onRemoveProject,
|
|
20652
20662
|
onConfirmDeleteProjectConversations,
|
|
@@ -20849,6 +20859,7 @@ var AgentGUIConversationRailPane = memo(
|
|
|
20849
20859
|
onSelectConversation,
|
|
20850
20860
|
setPendingProjectAction,
|
|
20851
20861
|
onToggleConversationPinned,
|
|
20862
|
+
onOpenProjectFiles,
|
|
20852
20863
|
onOpenConversationWindow,
|
|
20853
20864
|
onToggleProjectSectionCollapsed: toggleProjectSectionCollapsed
|
|
20854
20865
|
}
|
|
@@ -20919,6 +20930,7 @@ var AgentGUIConversationRailSection = memo(
|
|
|
20919
20930
|
onSelectConversation,
|
|
20920
20931
|
setPendingProjectAction,
|
|
20921
20932
|
onToggleConversationPinned,
|
|
20933
|
+
onOpenProjectFiles,
|
|
20922
20934
|
onOpenConversationWindow,
|
|
20923
20935
|
onRequestDeleteConversation,
|
|
20924
20936
|
onCancelDeleteConversation,
|
|
@@ -21029,6 +21041,24 @@ var AgentGUIConversationRailSection = memo(
|
|
|
21029
21041
|
className: `${AgentGUINode_styles_default.composerMenuContent} nodrag [-webkit-app-region:no-drag]`,
|
|
21030
21042
|
sideOffset: 6,
|
|
21031
21043
|
children: [
|
|
21044
|
+
/* @__PURE__ */ jsx29(
|
|
21045
|
+
DropdownMenuItem,
|
|
21046
|
+
{
|
|
21047
|
+
className: `${AgentGUINode_styles_default.composerMenuItem} nodrag [-webkit-app-region:no-drag]`,
|
|
21048
|
+
disabled: !onOpenProjectFiles,
|
|
21049
|
+
onSelect: () => {
|
|
21050
|
+
onOpenProjectFiles?.({
|
|
21051
|
+
directoryPath: projectPath,
|
|
21052
|
+
mode: "open-directory",
|
|
21053
|
+
path: projectPath,
|
|
21054
|
+
source: "agent-project-menu",
|
|
21055
|
+
type: "open-workspace-file",
|
|
21056
|
+
workspaceRoot: projectPath
|
|
21057
|
+
});
|
|
21058
|
+
},
|
|
21059
|
+
children: /* @__PURE__ */ jsx29("span", { children: labels.projectSectionViewFiles })
|
|
21060
|
+
}
|
|
21061
|
+
),
|
|
21032
21062
|
projectConversationCount > 0 ? /* @__PURE__ */ jsx29(
|
|
21033
21063
|
DropdownMenuItem,
|
|
21034
21064
|
{
|
|
@@ -22360,6 +22390,7 @@ var AgentGUINode = memo2(function AgentGUINode2({
|
|
|
22360
22390
|
"agentHost.agentGui.slashStatusLimitsUnavailable"
|
|
22361
22391
|
),
|
|
22362
22392
|
usageChipLabel: (input) => t("agentHost.agentGui.usageChipLabel", { percent: input.percent }),
|
|
22393
|
+
usageTooltipLabel: t("agentHost.agentGui.usageTooltipLabel"),
|
|
22363
22394
|
usagePopoverTitle: t("agentHost.agentGui.usagePopoverTitle"),
|
|
22364
22395
|
usageContextWindowLabel: t("agentHost.agentGui.usageContextWindowLabel"),
|
|
22365
22396
|
usageTokensLabel: t("agentHost.agentGui.usageTokensLabel"),
|
|
@@ -22407,6 +22438,7 @@ var AgentGUINode = memo2(function AgentGUINode2({
|
|
|
22407
22438
|
projectSectionMoreActions: t(
|
|
22408
22439
|
"agentHost.agentGui.projectSectionMoreActions"
|
|
22409
22440
|
),
|
|
22441
|
+
projectSectionViewFiles: t("agentHost.agentGui.projectSectionViewFiles"),
|
|
22410
22442
|
projectRailCreateProject: t(
|
|
22411
22443
|
"agentHost.agentGui.projectRailCreateProject"
|
|
22412
22444
|
),
|