@tutti-os/agent-gui 0.0.38 → 0.0.40
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 +40 -0
- package/dist/{AgentMessageMarkdown-Cq-7DSV2.d.ts → AgentMessageMarkdown-GDgLA-im.d.ts} +7 -156
- package/dist/agent-conversation/index.d.ts +2 -1
- package/dist/agent-conversation/index.js +5 -5
- package/dist/agent-message-center/index.js +223 -14
- package/dist/agent-message-center/index.js.map +1 -1
- package/dist/app/renderer/agentactivity.css +67 -0
- package/dist/chunk-4K22O34C.js +123 -0
- package/dist/chunk-4K22O34C.js.map +1 -0
- package/dist/{chunk-7F4M55U3.js → chunk-DO7D7OOL.js} +24 -7
- package/dist/chunk-DO7D7OOL.js.map +1 -0
- package/dist/{chunk-MUZMBEFO.js → chunk-EFDGMXTB.js} +82 -8
- package/dist/chunk-EFDGMXTB.js.map +1 -0
- package/dist/{chunk-MKSRP5XS.js → chunk-EQ4RSPQE.js} +5 -5
- package/dist/{chunk-JNGYJ7GM.js → chunk-EU7RWKHE.js} +2 -2
- package/dist/{chunk-IXIGWLQY.js → chunk-F5DYXCY3.js} +1 -1
- package/dist/{chunk-IXIGWLQY.js.map → chunk-F5DYXCY3.js.map} +1 -1
- package/dist/{chunk-NCS7X3XY.js → chunk-R7XH3C4Y.js} +16 -4
- package/dist/chunk-R7XH3C4Y.js.map +1 -0
- package/dist/{chunk-XROBPALT.js → chunk-RE3AHBX6.js} +2 -2
- package/dist/{chunk-2ADVHCST.js → chunk-TXXWUG2J.js} +1 -1
- package/dist/chunk-TXXWUG2J.js.map +1 -0
- package/dist/{chunk-L7FBT3VR.js → chunk-UUM2GZXH.js} +98 -5
- package/dist/chunk-UUM2GZXH.js.map +1 -0
- package/dist/{chunk-44YASHVW.js → chunk-WC34LVH6.js} +433 -143
- package/dist/chunk-WC34LVH6.js.map +1 -0
- package/dist/{chunk-JL2WNRYC.js → chunk-WJPEKD3F.js} +17 -1
- package/dist/chunk-WJPEKD3F.js.map +1 -0
- package/dist/{chunk-WHWZZYBV.js → chunk-Y2DQJPTL.js} +2 -2
- package/dist/{chunk-SS5YEVAI.js → chunk-Y5SE2XMU.js} +2 -2
- package/dist/context-mention-palette/index.js +6 -6
- package/dist/i18n/index.d.ts +16 -0
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +124 -102
- package/dist/index.js +2298 -996
- package/dist/index.js.map +1 -1
- package/dist/types-xMz0lJWt.d.ts +173 -0
- package/dist/workbench/contribution.d.ts +1 -0
- package/dist/workbench/contribution.js +5 -4
- package/dist/workbench/index.d.ts +3 -1
- package/dist/workbench/index.js +5 -4
- package/dist/workbench/launch.d.ts +1 -0
- package/dist/workbench/launch.js +2 -2
- package/dist/workbench/providerCatalog.d.ts +1 -0
- package/dist/workbench/state.d.ts +7 -0
- package/dist/workbench/state.js +2 -1
- package/dist/workbench/types.d.ts +6 -0
- package/dist/workbench/types.js +1 -1
- package/dist/workspace-agent-generated-files.js +2 -2
- package/package.json +13 -12
- package/dist/chunk-2ADVHCST.js.map +0 -1
- package/dist/chunk-44YASHVW.js.map +0 -1
- package/dist/chunk-7F4M55U3.js.map +0 -1
- package/dist/chunk-JL2WNRYC.js.map +0 -1
- package/dist/chunk-L7FBT3VR.js.map +0 -1
- package/dist/chunk-MUZMBEFO.js.map +0 -1
- package/dist/chunk-NCS7X3XY.js.map +0 -1
- /package/dist/{chunk-MKSRP5XS.js.map → chunk-EQ4RSPQE.js.map} +0 -0
- /package/dist/{chunk-JNGYJ7GM.js.map → chunk-EU7RWKHE.js.map} +0 -0
- /package/dist/{chunk-XROBPALT.js.map → chunk-RE3AHBX6.js.map} +0 -0
- /package/dist/{chunk-WHWZZYBV.js.map → chunk-Y2DQJPTL.js.map} +0 -0
- /package/dist/{chunk-SS5YEVAI.js.map → chunk-Y5SE2XMU.js.map} +0 -0
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-MTFSQWZ6.js";
|
|
15
15
|
import {
|
|
16
16
|
translate
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WJPEKD3F.js";
|
|
18
18
|
|
|
19
19
|
// shared/managedAgentProviders.ts
|
|
20
20
|
function normalizeManagedAgentProvider(provider) {
|
|
@@ -113,4 +113,4 @@ export {
|
|
|
113
113
|
userAvatarPlaceholderUrl,
|
|
114
114
|
workspaceAgentActivityStatusLabel
|
|
115
115
|
};
|
|
116
|
-
//# sourceMappingURL=chunk-
|
|
116
|
+
//# sourceMappingURL=chunk-Y2DQJPTL.js.map
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
translate,
|
|
16
16
|
translateInUiLanguage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WJPEKD3F.js";
|
|
18
18
|
|
|
19
19
|
// shared/workspaceAgentActivityListViewModel.ts
|
|
20
20
|
import { normalizeAgentActivityDisplayStatus } from "@tutti-os/agent-activity-core";
|
|
@@ -990,4 +990,4 @@ export {
|
|
|
990
990
|
resolveWorkspaceAgentActivityStatus,
|
|
991
991
|
resolveWorkspaceAgentActivityTitle
|
|
992
992
|
};
|
|
993
|
-
//# sourceMappingURL=chunk-
|
|
993
|
+
//# sourceMappingURL=chunk-Y5SE2XMU.js.map
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
AgentMentionSearchController,
|
|
5
5
|
flattenAgentMentionPaletteEntries,
|
|
6
6
|
groupStartKeys
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-EQ4RSPQE.js";
|
|
8
|
+
import "../chunk-Y5SE2XMU.js";
|
|
9
|
+
import "../chunk-Y2DQJPTL.js";
|
|
10
10
|
import "../chunk-MTFSQWZ6.js";
|
|
11
11
|
import "../chunk-IBIMGLCD.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-RE3AHBX6.js";
|
|
13
13
|
import "../chunk-Y35GDLP2.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-TXXWUG2J.js";
|
|
15
15
|
import "../chunk-TYGL25EL.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENT_CONTEXT_MENTION_PROVIDER_IDS
|
|
18
18
|
} from "../chunk-JM24HADP.js";
|
|
19
19
|
import "../chunk-GCBDIQDX.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-WJPEKD3F.js";
|
|
21
21
|
import "../chunk-LUGELG5V.js";
|
|
22
22
|
import "../chunk-PJP5BUU6.js";
|
|
23
23
|
export {
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -19,9 +19,12 @@ declare const agentGuiI18nResources: {
|
|
|
19
19
|
readonly confirm: "Confirm";
|
|
20
20
|
readonly copy: "Copy";
|
|
21
21
|
readonly create: "Create";
|
|
22
|
+
readonly cut: "Cut";
|
|
22
23
|
readonly delete: "Delete";
|
|
23
24
|
readonly deleting: "Deleting...";
|
|
24
25
|
readonly download: "Download";
|
|
26
|
+
readonly copyImage: "Copy image";
|
|
27
|
+
readonly downloadImage: "Download image";
|
|
25
28
|
readonly expandImage: "Zoom image";
|
|
26
29
|
readonly error: "Error";
|
|
27
30
|
readonly generateByAi: "Generate by AI";
|
|
@@ -45,6 +48,7 @@ declare const agentGuiI18nResources: {
|
|
|
45
48
|
readonly followCliDefault: "Follow CLI default";
|
|
46
49
|
readonly unknownError: "Unknown error";
|
|
47
50
|
readonly notAvailable: "N/A";
|
|
51
|
+
readonly paste: "Paste";
|
|
48
52
|
readonly percentUnit: "%";
|
|
49
53
|
readonly pixelUnit: "px";
|
|
50
54
|
readonly minuteUnit: "min";
|
|
@@ -331,6 +335,7 @@ declare const agentGuiI18nResources: {
|
|
|
331
335
|
readonly modelLabel: "Model";
|
|
332
336
|
readonly modelSelectionLabel: "Model selection";
|
|
333
337
|
readonly defaultModel: "Default model";
|
|
338
|
+
readonly loadingOptions: "Loading…";
|
|
334
339
|
readonly inheritedUnavailable: "Inherited / unavailable";
|
|
335
340
|
readonly reasoningLabel: "Reasoning";
|
|
336
341
|
readonly reasoningDegreeLabel: "Reasoning level";
|
|
@@ -488,7 +493,9 @@ declare const agentGuiI18nResources: {
|
|
|
488
493
|
readonly planImplementationSend: "Send";
|
|
489
494
|
readonly planImplementationSkip: "Stay in Plan Mode";
|
|
490
495
|
readonly noRunningResponse: "No running response to stop.";
|
|
496
|
+
readonly composerTextMenu: "Composer text actions";
|
|
491
497
|
readonly copyMessage: "Copy message";
|
|
498
|
+
readonly copyImage: "Copy image";
|
|
492
499
|
readonly messageCopied: "Copied";
|
|
493
500
|
readonly promptTipsPrefix: "Tips: ";
|
|
494
501
|
readonly reviewPicker: {
|
|
@@ -538,6 +545,7 @@ declare const agentGuiI18nResources: {
|
|
|
538
545
|
readonly empty: "What can {{provider}} help you with?";
|
|
539
546
|
readonly conversations: "Sessions";
|
|
540
547
|
readonly newConversation: "New session";
|
|
548
|
+
readonly agentConfig: "Settings";
|
|
541
549
|
readonly agentEnvSetup: "Environment check";
|
|
542
550
|
readonly noConversations: "No sessions yet";
|
|
543
551
|
readonly emptyProjectConversations: "No chats yet";
|
|
@@ -2408,9 +2416,12 @@ declare const agentGuiI18nResources: {
|
|
|
2408
2416
|
readonly confirm: "确认";
|
|
2409
2417
|
readonly copy: "复制";
|
|
2410
2418
|
readonly create: "创建";
|
|
2419
|
+
readonly cut: "剪切";
|
|
2411
2420
|
readonly delete: "删除";
|
|
2412
2421
|
readonly deleting: "删除中...";
|
|
2413
2422
|
readonly download: "下载";
|
|
2423
|
+
readonly copyImage: "复制图片";
|
|
2424
|
+
readonly downloadImage: "下载图片";
|
|
2414
2425
|
readonly expandImage: "放大图片";
|
|
2415
2426
|
readonly error: "错误";
|
|
2416
2427
|
readonly generateByAi: "AI 生成";
|
|
@@ -2434,6 +2445,7 @@ declare const agentGuiI18nResources: {
|
|
|
2434
2445
|
readonly followCliDefault: "跟随 CLI 默认值";
|
|
2435
2446
|
readonly unknownError: "未知错误";
|
|
2436
2447
|
readonly notAvailable: "无";
|
|
2448
|
+
readonly paste: "粘贴";
|
|
2437
2449
|
readonly percentUnit: "%";
|
|
2438
2450
|
readonly pixelUnit: "px";
|
|
2439
2451
|
readonly minuteUnit: "分钟";
|
|
@@ -2720,6 +2732,7 @@ declare const agentGuiI18nResources: {
|
|
|
2720
2732
|
readonly modelLabel: "模型";
|
|
2721
2733
|
readonly modelSelectionLabel: "模型选择";
|
|
2722
2734
|
readonly defaultModel: "默认模型";
|
|
2735
|
+
readonly loadingOptions: "正在加载";
|
|
2723
2736
|
readonly inheritedUnavailable: "继承 / 不可用";
|
|
2724
2737
|
readonly reasoningLabel: "推理强度";
|
|
2725
2738
|
readonly reasoningDegreeLabel: "推理程度";
|
|
@@ -2877,7 +2890,9 @@ declare const agentGuiI18nResources: {
|
|
|
2877
2890
|
readonly planImplementationSend: "送出";
|
|
2878
2891
|
readonly planImplementationSkip: "留在计划模式";
|
|
2879
2892
|
readonly noRunningResponse: "当前没有正在运行的回复。";
|
|
2893
|
+
readonly composerTextMenu: "输入框文本操作";
|
|
2880
2894
|
readonly copyMessage: "复制消息";
|
|
2895
|
+
readonly copyImage: "复制图片";
|
|
2881
2896
|
readonly messageCopied: "已复制";
|
|
2882
2897
|
readonly promptTipsPrefix: "Tips:";
|
|
2883
2898
|
readonly reviewPicker: {
|
|
@@ -2927,6 +2942,7 @@ declare const agentGuiI18nResources: {
|
|
|
2927
2942
|
readonly empty: "需要 {{provider}} 帮你做些什么?";
|
|
2928
2943
|
readonly conversations: "会话";
|
|
2929
2944
|
readonly newConversation: "新建会话";
|
|
2945
|
+
readonly agentConfig: "配置";
|
|
2930
2946
|
readonly agentEnvSetup: "环境检测";
|
|
2931
2947
|
readonly noConversations: "还没有会话";
|
|
2932
2948
|
readonly emptyProjectConversations: "暂无对话";
|
package/dist/i18n/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,9 @@ import { m as WorkspaceAgentActivityListViewModel, g as AgentHostWorkspaceAgentS
|
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { PropsWithChildren, JSX } from 'react';
|
|
6
6
|
import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
|
|
7
|
-
import {
|
|
8
|
-
|
|
7
|
+
import { n as AgentProvider, c as AgentGUIProviderTargetRef, f as AgentHostAgentSessionComposerSettings, d as AgentHostActivateAgentSessionResult, l as AgentHostUpdateAgentSessionSettingsResult, j as AgentHostAgentSessionState, k as AgentHostUnactivateAgentSessionResult, A as AgentGUINodeData, P as Point, b as AgentGUIProviderTarget, N as NodeFrame, a as AgentGUIProvider } from './types-xMz0lJWt.js';
|
|
8
|
+
import { h as AgentProbeSnapshot, A as AgentGUINodeViewModel, f as AgentMessageMarkdownWorkspaceAppIcon, c as AgentHostInputApi } from './AgentMessageMarkdown-GDgLA-im.js';
|
|
9
|
+
export { b as AgentHostApi, d as AgentHostRuntimeApi, e as AgentHostSelectFilesInput, g as AgentProbeProvider, i as AgentProviderProbeListInput, j as AgentProviderProbeListResult, k as AgentUsageQuota, l as AgentUsageSnapshot, P as PersistWriteResult, R as ReadWorkspaceAgentReadStateInput, W as WorkspaceAgentReadStateSnapshot, m as WriteWorkspaceAgentReadStateInput } from './AgentMessageMarkdown-GDgLA-im.js';
|
|
9
10
|
import { ReferenceLocateTarget, WorkspaceFileReferenceAdapter, WorkspaceFileReference } from '@tutti-os/workspace-file-reference/contracts';
|
|
10
11
|
import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
|
|
11
12
|
import { W as WorkspaceLinkAction } from './workspaceLinkActions-C6POH38D.js';
|
|
@@ -41,6 +42,105 @@ declare function agentHostSnapshotFromAgentActivitySnapshot(snapshot: AgentActiv
|
|
|
41
42
|
*/
|
|
42
43
|
declare function projectCoreSessionStatus(status: string): string;
|
|
43
44
|
|
|
45
|
+
type AgentCustomModelEnabledByProvider<TProvider extends string> = Record<TProvider, boolean>;
|
|
46
|
+
type AgentCustomModelByProvider<TProvider extends string> = Record<TProvider, string>;
|
|
47
|
+
type AgentCustomModelOptionsByProvider<TProvider extends string> = Record<TProvider, string[]>;
|
|
48
|
+
|
|
49
|
+
type FocusNodeTargetZoom = number;
|
|
50
|
+
|
|
51
|
+
declare const UI_LANGUAGES: readonly ["en", "zh-CN"];
|
|
52
|
+
type UiLanguage = (typeof UI_LANGUAGES)[number];
|
|
53
|
+
declare const UI_THEMES: readonly ["system", "light", "dark"];
|
|
54
|
+
type UiTheme = (typeof UI_THEMES)[number];
|
|
55
|
+
|
|
56
|
+
declare const COMMAND_IDS: readonly ["commandCenter.toggle", "app.togglePrimarySidebar", "workspaceCanvas.createTerminal"];
|
|
57
|
+
type CommandId = (typeof COMMAND_IDS)[number];
|
|
58
|
+
type KeyChord = {
|
|
59
|
+
code: string;
|
|
60
|
+
altKey: boolean;
|
|
61
|
+
ctrlKey: boolean;
|
|
62
|
+
metaKey: boolean;
|
|
63
|
+
shiftKey: boolean;
|
|
64
|
+
};
|
|
65
|
+
type KeybindingOverrides = Partial<Record<CommandId, KeyChord | null>>;
|
|
66
|
+
|
|
67
|
+
declare const CANVAS_INPUT_MODES: readonly ["auto", "mouse", "trackpad"];
|
|
68
|
+
type CanvasInputMode = (typeof CANVAS_INPUT_MODES)[number];
|
|
69
|
+
declare const CANVAS_WHEEL_BEHAVIORS: readonly ["zoom", "pan"];
|
|
70
|
+
type CanvasWheelBehavior = (typeof CANVAS_WHEEL_BEHAVIORS)[number];
|
|
71
|
+
declare const CANVAS_WHEEL_ZOOM_MODIFIERS: readonly ["primary", "ctrl", "alt"];
|
|
72
|
+
type CanvasWheelZoomModifier = (typeof CANVAS_WHEEL_ZOOM_MODIFIERS)[number];
|
|
73
|
+
declare const STANDARD_WINDOW_SIZE_BUCKETS: readonly ["compact", "regular", "large"];
|
|
74
|
+
type StandardWindowSizeBucket = (typeof STANDARD_WINDOW_SIZE_BUCKETS)[number];
|
|
75
|
+
|
|
76
|
+
type QuickCommand = {
|
|
77
|
+
id: string;
|
|
78
|
+
title: string;
|
|
79
|
+
kind: "terminal";
|
|
80
|
+
command: string;
|
|
81
|
+
enabled: boolean;
|
|
82
|
+
pinned: boolean;
|
|
83
|
+
} | {
|
|
84
|
+
id: string;
|
|
85
|
+
title: string;
|
|
86
|
+
kind: "url";
|
|
87
|
+
url: string;
|
|
88
|
+
enabled: boolean;
|
|
89
|
+
pinned: boolean;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
type QuickPhrase = {
|
|
93
|
+
id: string;
|
|
94
|
+
title: string;
|
|
95
|
+
content: string;
|
|
96
|
+
enabled: boolean;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
type AgentEnvRow = {
|
|
100
|
+
id: string;
|
|
101
|
+
key: string;
|
|
102
|
+
value: string;
|
|
103
|
+
enabled: boolean;
|
|
104
|
+
};
|
|
105
|
+
type AgentEnvByProvider = Record<AgentProvider, AgentEnvRow[]>;
|
|
106
|
+
|
|
107
|
+
type TerminalProfileId = string | null;
|
|
108
|
+
interface AgentSettings {
|
|
109
|
+
language: UiLanguage;
|
|
110
|
+
uiTheme: UiTheme;
|
|
111
|
+
isPrimarySidebarCollapsed: boolean;
|
|
112
|
+
defaultProvider: AgentProvider;
|
|
113
|
+
agentProviderOrder: AgentProvider[];
|
|
114
|
+
agentFullAccess: boolean;
|
|
115
|
+
defaultTerminalProfileId: TerminalProfileId;
|
|
116
|
+
customModelEnabledByProvider: AgentCustomModelEnabledByProvider<AgentProvider>;
|
|
117
|
+
customModelByProvider: AgentCustomModelByProvider<AgentProvider>;
|
|
118
|
+
customModelOptionsByProvider: AgentCustomModelOptionsByProvider<AgentProvider>;
|
|
119
|
+
quickCommands: QuickCommand[];
|
|
120
|
+
quickPhrases: QuickPhrase[];
|
|
121
|
+
agentEnvByProvider: AgentEnvByProvider;
|
|
122
|
+
focusNodeOnClick: boolean;
|
|
123
|
+
focusNodeTargetZoom: FocusNodeTargetZoom;
|
|
124
|
+
focusNodeUseVisibleCanvasCenter: boolean;
|
|
125
|
+
standbyBannerEnabled: boolean;
|
|
126
|
+
standbyBannerShowTask: boolean;
|
|
127
|
+
standbyBannerShowSpace: boolean;
|
|
128
|
+
standbyBannerShowBranch: boolean;
|
|
129
|
+
disableAppShortcutsWhenTerminalFocused: boolean;
|
|
130
|
+
keybindings: KeybindingOverrides;
|
|
131
|
+
canvasInputMode: CanvasInputMode;
|
|
132
|
+
canvasWheelBehavior: CanvasWheelBehavior;
|
|
133
|
+
canvasWheelZoomModifier: CanvasWheelZoomModifier;
|
|
134
|
+
standardWindowSizeBucket: StandardWindowSizeBucket;
|
|
135
|
+
defaultTerminalWindowScalePercent: number;
|
|
136
|
+
terminalFontSize: number;
|
|
137
|
+
terminalFontFamily: string | null;
|
|
138
|
+
uiFontSize: number;
|
|
139
|
+
avoidGroupingEdits: boolean;
|
|
140
|
+
updatePolicy: AppUpdatePolicy;
|
|
141
|
+
hideWorktreeMismatchDropWarning: boolean;
|
|
142
|
+
}
|
|
143
|
+
|
|
44
144
|
interface AgentActivityRuntimeListSessionMessagesInput {
|
|
45
145
|
afterVersion?: number;
|
|
46
146
|
beforeVersion?: number;
|
|
@@ -126,6 +226,11 @@ interface AgentActivityRuntimeActivateSessionInput {
|
|
|
126
226
|
mode: "existing" | "new";
|
|
127
227
|
openclawGatewayReady?: boolean;
|
|
128
228
|
provider?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Opaque host-owned target reference. AgentGUI passes this through only; hosts
|
|
231
|
+
* must not treat it as authority and must re-authenticate before launch.
|
|
232
|
+
*/
|
|
233
|
+
providerTargetRef?: AgentGUIProviderTargetRef | null;
|
|
129
234
|
settings?: AgentHostAgentSessionComposerSettings;
|
|
130
235
|
title?: string;
|
|
131
236
|
visible?: boolean;
|
|
@@ -228,105 +333,6 @@ declare function getOptionalAgentActivityRuntime(): AgentActivityRuntime | null;
|
|
|
228
333
|
declare function resetAgentActivityRuntimeForTests(): void;
|
|
229
334
|
declare function setAgentActivityRuntimeForTests(runtime: AgentActivityRuntime | null): void;
|
|
230
335
|
|
|
231
|
-
type AgentCustomModelEnabledByProvider<TProvider extends string> = Record<TProvider, boolean>;
|
|
232
|
-
type AgentCustomModelByProvider<TProvider extends string> = Record<TProvider, string>;
|
|
233
|
-
type AgentCustomModelOptionsByProvider<TProvider extends string> = Record<TProvider, string[]>;
|
|
234
|
-
|
|
235
|
-
type FocusNodeTargetZoom = number;
|
|
236
|
-
|
|
237
|
-
declare const UI_LANGUAGES: readonly ["en", "zh-CN"];
|
|
238
|
-
type UiLanguage = (typeof UI_LANGUAGES)[number];
|
|
239
|
-
declare const UI_THEMES: readonly ["system", "light", "dark"];
|
|
240
|
-
type UiTheme = (typeof UI_THEMES)[number];
|
|
241
|
-
|
|
242
|
-
declare const COMMAND_IDS: readonly ["commandCenter.toggle", "app.togglePrimarySidebar", "workspaceCanvas.createTerminal"];
|
|
243
|
-
type CommandId = (typeof COMMAND_IDS)[number];
|
|
244
|
-
type KeyChord = {
|
|
245
|
-
code: string;
|
|
246
|
-
altKey: boolean;
|
|
247
|
-
ctrlKey: boolean;
|
|
248
|
-
metaKey: boolean;
|
|
249
|
-
shiftKey: boolean;
|
|
250
|
-
};
|
|
251
|
-
type KeybindingOverrides = Partial<Record<CommandId, KeyChord | null>>;
|
|
252
|
-
|
|
253
|
-
declare const CANVAS_INPUT_MODES: readonly ["auto", "mouse", "trackpad"];
|
|
254
|
-
type CanvasInputMode = (typeof CANVAS_INPUT_MODES)[number];
|
|
255
|
-
declare const CANVAS_WHEEL_BEHAVIORS: readonly ["zoom", "pan"];
|
|
256
|
-
type CanvasWheelBehavior = (typeof CANVAS_WHEEL_BEHAVIORS)[number];
|
|
257
|
-
declare const CANVAS_WHEEL_ZOOM_MODIFIERS: readonly ["primary", "ctrl", "alt"];
|
|
258
|
-
type CanvasWheelZoomModifier = (typeof CANVAS_WHEEL_ZOOM_MODIFIERS)[number];
|
|
259
|
-
declare const STANDARD_WINDOW_SIZE_BUCKETS: readonly ["compact", "regular", "large"];
|
|
260
|
-
type StandardWindowSizeBucket = (typeof STANDARD_WINDOW_SIZE_BUCKETS)[number];
|
|
261
|
-
|
|
262
|
-
type QuickCommand = {
|
|
263
|
-
id: string;
|
|
264
|
-
title: string;
|
|
265
|
-
kind: "terminal";
|
|
266
|
-
command: string;
|
|
267
|
-
enabled: boolean;
|
|
268
|
-
pinned: boolean;
|
|
269
|
-
} | {
|
|
270
|
-
id: string;
|
|
271
|
-
title: string;
|
|
272
|
-
kind: "url";
|
|
273
|
-
url: string;
|
|
274
|
-
enabled: boolean;
|
|
275
|
-
pinned: boolean;
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
type QuickPhrase = {
|
|
279
|
-
id: string;
|
|
280
|
-
title: string;
|
|
281
|
-
content: string;
|
|
282
|
-
enabled: boolean;
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
type AgentEnvRow = {
|
|
286
|
-
id: string;
|
|
287
|
-
key: string;
|
|
288
|
-
value: string;
|
|
289
|
-
enabled: boolean;
|
|
290
|
-
};
|
|
291
|
-
type AgentEnvByProvider = Record<AgentProvider, AgentEnvRow[]>;
|
|
292
|
-
|
|
293
|
-
type TerminalProfileId = string | null;
|
|
294
|
-
interface AgentSettings {
|
|
295
|
-
language: UiLanguage;
|
|
296
|
-
uiTheme: UiTheme;
|
|
297
|
-
isPrimarySidebarCollapsed: boolean;
|
|
298
|
-
defaultProvider: AgentProvider;
|
|
299
|
-
agentProviderOrder: AgentProvider[];
|
|
300
|
-
agentFullAccess: boolean;
|
|
301
|
-
defaultTerminalProfileId: TerminalProfileId;
|
|
302
|
-
customModelEnabledByProvider: AgentCustomModelEnabledByProvider<AgentProvider>;
|
|
303
|
-
customModelByProvider: AgentCustomModelByProvider<AgentProvider>;
|
|
304
|
-
customModelOptionsByProvider: AgentCustomModelOptionsByProvider<AgentProvider>;
|
|
305
|
-
quickCommands: QuickCommand[];
|
|
306
|
-
quickPhrases: QuickPhrase[];
|
|
307
|
-
agentEnvByProvider: AgentEnvByProvider;
|
|
308
|
-
focusNodeOnClick: boolean;
|
|
309
|
-
focusNodeTargetZoom: FocusNodeTargetZoom;
|
|
310
|
-
focusNodeUseVisibleCanvasCenter: boolean;
|
|
311
|
-
standbyBannerEnabled: boolean;
|
|
312
|
-
standbyBannerShowTask: boolean;
|
|
313
|
-
standbyBannerShowSpace: boolean;
|
|
314
|
-
standbyBannerShowBranch: boolean;
|
|
315
|
-
disableAppShortcutsWhenTerminalFocused: boolean;
|
|
316
|
-
keybindings: KeybindingOverrides;
|
|
317
|
-
canvasInputMode: CanvasInputMode;
|
|
318
|
-
canvasWheelBehavior: CanvasWheelBehavior;
|
|
319
|
-
canvasWheelZoomModifier: CanvasWheelZoomModifier;
|
|
320
|
-
standardWindowSizeBucket: StandardWindowSizeBucket;
|
|
321
|
-
defaultTerminalWindowScalePercent: number;
|
|
322
|
-
terminalFontSize: number;
|
|
323
|
-
terminalFontFamily: string | null;
|
|
324
|
-
uiFontSize: number;
|
|
325
|
-
avoidGroupingEdits: boolean;
|
|
326
|
-
updatePolicy: AppUpdatePolicy;
|
|
327
|
-
hideWorktreeMismatchDropWarning: boolean;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
336
|
interface DesktopSize {
|
|
331
337
|
width: number;
|
|
332
338
|
height: number;
|
|
@@ -414,6 +420,8 @@ interface AgentGUINodeProps {
|
|
|
414
420
|
capabilityMenuState?: AgentComposerCapabilityMenuState;
|
|
415
421
|
onCapabilitySettingsRequest?: (capability: AgentComposerCapabilitySettingsTarget) => void;
|
|
416
422
|
onAgentProviderLogin?: (provider: AgentProvider) => void;
|
|
423
|
+
providerTargets?: readonly AgentGUIProviderTarget[];
|
|
424
|
+
defaultProviderTargetId?: string | null;
|
|
417
425
|
onWorkspaceFileReferencesAdded?: (input: {
|
|
418
426
|
provider: AgentProvider;
|
|
419
427
|
references: readonly WorkspaceFileReference[];
|
|
@@ -450,6 +458,20 @@ interface AgentGUIProps extends AgentGUINodeProps {
|
|
|
450
458
|
}
|
|
451
459
|
declare const AgentGUI: react.NamedExoticComponent<AgentGUIProps>;
|
|
452
460
|
|
|
461
|
+
declare const agentGUIDefaultTargetProviders: readonly ["codex", "claude-code", "nexight", "hermes", "gemini", "openclaw"];
|
|
462
|
+
declare function createLocalAgentGUIProviderTarget(provider: AgentGUIProvider): AgentGUIProviderTarget;
|
|
463
|
+
declare function createLocalAgentGUIProviderTargets(providers?: readonly AgentGUIProvider[]): AgentGUIProviderTarget[];
|
|
464
|
+
declare function localAgentGUIProviderTargetId(provider: AgentGUIProvider): string;
|
|
465
|
+
declare function normalizeAgentGUIProviderTargets(targets: readonly AgentGUIProviderTarget[] | null | undefined, options?: {
|
|
466
|
+
fallbackToLocal?: boolean;
|
|
467
|
+
}): AgentGUIProviderTarget[];
|
|
468
|
+
declare function resolveAgentGUIProviderTarget(input: {
|
|
469
|
+
defaultProviderTargetId?: string | null;
|
|
470
|
+
provider: AgentGUIProvider;
|
|
471
|
+
providerTargetId?: string | null;
|
|
472
|
+
providerTargets: readonly AgentGUIProviderTarget[];
|
|
473
|
+
}): AgentGUIProviderTarget;
|
|
474
|
+
|
|
453
475
|
declare const agentGuiDockIconUrl: string;
|
|
454
476
|
declare const agentGuiDockIconUrls: {
|
|
455
477
|
readonly "claude-code": string;
|
|
@@ -491,4 +513,4 @@ interface AgentActivityHostProviderProps extends PropsWithChildren {
|
|
|
491
513
|
}
|
|
492
514
|
declare function AgentActivityHostProvider({ agentActivityRuntime, agentHostApi, children }: AgentActivityHostProviderProps): JSX.Element;
|
|
493
515
|
|
|
494
|
-
export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentContextMentionProvider, AgentGUI, type AgentGUIProps, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, getAgentActivityRuntime, getOptionalAgentActivityRuntime, projectCoreSessionStatus, resetAgentActivityRuntimeForTests, resolveAgentGUIExpandedWindowFrame, setAgentActivityRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useOptionalAgentActivityRuntime };
|
|
516
|
+
export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentContextMentionProvider, AgentGUI, type AgentGUIProps, AgentGUIProvider, AgentGUIProviderTarget, AgentGUIProviderTargetRef, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, createLocalAgentGUIProviderTarget, createLocalAgentGUIProviderTargets, getAgentActivityRuntime, getOptionalAgentActivityRuntime, localAgentGUIProviderTargetId, normalizeAgentGUIProviderTargets, projectCoreSessionStatus, resetAgentActivityRuntimeForTests, resolveAgentGUIExpandedWindowFrame, resolveAgentGUIProviderTarget, setAgentActivityRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useOptionalAgentActivityRuntime };
|