@tutti-os/agent-gui 0.0.48 → 0.0.50

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.
Files changed (60) hide show
  1. package/dist/agent-conversation/index.d.ts +5 -3
  2. package/dist/agent-conversation/index.js +6 -6
  3. package/dist/agent-message-center/index.d.ts +1 -1
  4. package/dist/agent-message-center/index.js +8 -8
  5. package/dist/{agentConversationVM-DSXrFL9v.d.ts → agentConversationVM-Qbz9GBwR.d.ts} +25 -0
  6. package/dist/{agentGuiNodeTypes-Bp1G8pOj.d.ts → agentGuiNodeTypes-wzOITHRW.d.ts} +1 -1
  7. package/dist/app/renderer/agentactivity.css +466 -85
  8. package/dist/{chunk-2RYZ4EBF.js → chunk-5Y3PC7HP.js} +9 -4
  9. package/dist/chunk-5Y3PC7HP.js.map +1 -0
  10. package/dist/{chunk-U6JWW45G.js → chunk-66EQ6EQO.js} +1 -1
  11. package/dist/chunk-66EQ6EQO.js.map +1 -0
  12. package/dist/{chunk-7W3VWU5R.js → chunk-ARCM7YB2.js} +2 -2
  13. package/dist/{chunk-RNIY43TA.js → chunk-BQVYICR7.js} +5 -5
  14. package/dist/{chunk-ZVKRNEOF.js → chunk-DPG2J7N5.js} +2 -2
  15. package/dist/{chunk-VGDPBC6W.js → chunk-FS26J46N.js} +5 -5
  16. package/dist/{chunk-OB43QOMC.js → chunk-FYVVHRLZ.js} +2 -2
  17. package/dist/{chunk-EUOGIKT7.js → chunk-HDBKB5RA.js} +2 -2
  18. package/dist/{chunk-R6GOICRO.js → chunk-OBFDA7RG.js} +69 -10
  19. package/dist/chunk-OBFDA7RG.js.map +1 -0
  20. package/dist/{chunk-LWMC2YA3.js → chunk-RPXRNKU5.js} +1793 -599
  21. package/dist/chunk-RPXRNKU5.js.map +1 -0
  22. package/dist/{chunk-SD56WDSC.js → chunk-TG3ZXLPM.js} +42 -1
  23. package/dist/chunk-TG3ZXLPM.js.map +1 -0
  24. package/dist/{chunk-OYQZRLJQ.js → chunk-UUY5VEK4.js} +2 -2
  25. package/dist/{chunk-6YN7HQL5.js → chunk-VKP5ZW5O.js} +5 -3
  26. package/dist/{chunk-6YN7HQL5.js.map → chunk-VKP5ZW5O.js.map} +1 -1
  27. package/dist/{chunk-N6HRVMIS.js → chunk-Y7ZVTWMZ.js} +2 -2
  28. package/dist/{chunk-NETHPCSA.js → chunk-ZTSS2NU2.js} +23 -1
  29. package/dist/chunk-ZTSS2NU2.js.map +1 -0
  30. package/dist/context-mention-palette/index.js +7 -7
  31. package/dist/i18n/index.d.ts +22 -0
  32. package/dist/i18n/index.js +2 -2
  33. package/dist/index.d.ts +50 -3
  34. package/dist/index.js +911 -818
  35. package/dist/index.js.map +1 -1
  36. package/dist/plan-decision-ops.d.ts +1 -1
  37. package/dist/queued-prompt-runtime.d.ts +3 -2
  38. package/dist/queued-prompt-runtime.js +1 -1
  39. package/dist/workbench/contribution.d.ts +5 -1
  40. package/dist/workbench/contribution.js +4 -2
  41. package/dist/workbench/index.js +5 -5
  42. package/dist/workbench/launch.d.ts +26 -1
  43. package/dist/workbench/launch.js +13 -3
  44. package/dist/workbench/sessionTitle.js +3 -3
  45. package/dist/workspace-agent-generated-files.js +3 -3
  46. package/package.json +12 -12
  47. package/dist/chunk-2RYZ4EBF.js.map +0 -1
  48. package/dist/chunk-LWMC2YA3.js.map +0 -1
  49. package/dist/chunk-NETHPCSA.js.map +0 -1
  50. package/dist/chunk-R6GOICRO.js.map +0 -1
  51. package/dist/chunk-SD56WDSC.js.map +0 -1
  52. package/dist/chunk-U6JWW45G.js.map +0 -1
  53. /package/dist/{chunk-7W3VWU5R.js.map → chunk-ARCM7YB2.js.map} +0 -0
  54. /package/dist/{chunk-RNIY43TA.js.map → chunk-BQVYICR7.js.map} +0 -0
  55. /package/dist/{chunk-ZVKRNEOF.js.map → chunk-DPG2J7N5.js.map} +0 -0
  56. /package/dist/{chunk-VGDPBC6W.js.map → chunk-FS26J46N.js.map} +0 -0
  57. /package/dist/{chunk-OB43QOMC.js.map → chunk-FYVVHRLZ.js.map} +0 -0
  58. /package/dist/{chunk-EUOGIKT7.js.map → chunk-HDBKB5RA.js.map} +0 -0
  59. /package/dist/{chunk-OYQZRLJQ.js.map → chunk-UUY5VEK4.js.map} +0 -0
  60. /package/dist/{chunk-N6HRVMIS.js.map → chunk-Y7ZVTWMZ.js.map} +0 -0
@@ -4,23 +4,23 @@ import {
4
4
  AgentMentionSearchController,
5
5
  flattenAgentMentionPaletteEntries,
6
6
  groupStartKeys
7
- } from "../chunk-RNIY43TA.js";
8
- import "../chunk-7W3VWU5R.js";
9
- import "../chunk-EUOGIKT7.js";
7
+ } from "../chunk-BQVYICR7.js";
8
+ import "../chunk-ARCM7YB2.js";
9
+ import "../chunk-HDBKB5RA.js";
10
10
  import "../chunk-IBIMGLCD.js";
11
11
  import "../chunk-MTFSQWZ6.js";
12
- import "../chunk-OYQZRLJQ.js";
12
+ import "../chunk-UUY5VEK4.js";
13
13
  import "../chunk-Y35GDLP2.js";
14
14
  import "../chunk-LUGELG5V.js";
15
- import "../chunk-U6JWW45G.js";
15
+ import "../chunk-66EQ6EQO.js";
16
16
  import "../chunk-TYGL25EL.js";
17
17
  import "../chunk-PJP5BUU6.js";
18
18
  import {
19
19
  AGENT_CONTEXT_MENTION_PROVIDER_IDS
20
20
  } from "../chunk-JM24HADP.js";
21
21
  import "../chunk-GCBDIQDX.js";
22
- import "../chunk-N6HRVMIS.js";
23
- import "../chunk-NETHPCSA.js";
22
+ import "../chunk-Y7ZVTWMZ.js";
23
+ import "../chunk-ZTSS2NU2.js";
24
24
  export {
25
25
  AGENT_CONTEXT_MENTION_PROVIDER_IDS,
26
26
  AgentContextMentionPalette,
@@ -713,6 +713,7 @@ declare const agentGuiI18nResources: {
713
713
  readonly systemNoticeWarning: "Codex warning";
714
714
  readonly systemNoticeDefault: "Agent notice";
715
715
  readonly turnSummary: "Changed files";
716
+ readonly userMessageLocator: "User messages";
716
717
  readonly turnSummaryFilesChanged: "{{count}} files changed";
717
718
  readonly turnSummaryModified: "{{count}} modified";
718
719
  readonly turnSummaryCreated: "{{count}} new";
@@ -1235,6 +1236,14 @@ declare const agentGuiI18nResources: {
1235
1236
  readonly waitingForAnswer: "Waiting for answer…";
1236
1237
  readonly questionFallback: "Question";
1237
1238
  readonly delegateSession: "Delegate session";
1239
+ readonly subAgents: "Sub-agents";
1240
+ readonly subAgentStarting: "Starting…";
1241
+ readonly subAgentQueued: "Queued — waiting for an agent slot…";
1242
+ readonly subAgentFallbackName: "Sub-agent";
1243
+ readonly subAgentEarlierOmitted: "{{count}} earlier steps omitted";
1244
+ readonly subAgentTask: "TASK";
1245
+ readonly subAgentProgress: "PROGRESS";
1246
+ readonly missingFailureDetails: "The provider reported failure without details.";
1238
1247
  readonly noMatches: "No matches";
1239
1248
  readonly noMatchingTools: "No matching tools";
1240
1249
  readonly loadedAvailable: "{{loaded}} loaded · {{available}} available";
@@ -1265,6 +1274,8 @@ declare const agentGuiI18nResources: {
1265
1274
  readonly editNotebook: "Edit notebook";
1266
1275
  readonly updateTodos: "Update todos";
1267
1276
  readonly delegateAgent: "Delegate agent";
1277
+ readonly closeAgent: "End agent";
1278
+ readonly waitAgent: "Wait for agent";
1268
1279
  readonly currentIssue: "Current task";
1269
1280
  readonly thinking: "Thinking";
1270
1281
  readonly responding: "Responding";
@@ -3151,6 +3162,7 @@ declare const agentGuiI18nResources: {
3151
3162
  readonly systemNoticeWarning: "Codex 警告";
3152
3163
  readonly systemNoticeDefault: "Agent 通知";
3153
3164
  readonly turnSummary: "已变更文件";
3165
+ readonly userMessageLocator: "用户消息";
3154
3166
  readonly turnSummaryFilesChanged: "变更了 {{count}} 个文件";
3155
3167
  readonly turnSummaryModified: "{{count}} 个修改";
3156
3168
  readonly turnSummaryCreated: "{{count}} 个新增";
@@ -3674,6 +3686,14 @@ declare const agentGuiI18nResources: {
3674
3686
  readonly waitingForAnswer: "等待用户回答…";
3675
3687
  readonly questionFallback: "问题";
3676
3688
  readonly delegateSession: "委托会话";
3689
+ readonly subAgents: "子智能体";
3690
+ readonly subAgentStarting: "正在启动…";
3691
+ readonly subAgentQueued: "排队中——等待可用执行槽…";
3692
+ readonly subAgentFallbackName: "子智能体";
3693
+ readonly subAgentEarlierOmitted: "已省略较早的 {{count}} 步";
3694
+ readonly subAgentTask: "任务";
3695
+ readonly subAgentProgress: "进展";
3696
+ readonly missingFailureDetails: "Provider 报告失败,但没有返回失败详情。";
3677
3697
  readonly noMatches: "没有匹配结果";
3678
3698
  readonly noMatchingTools: "没有匹配的工具";
3679
3699
  readonly loadedAvailable: "已加载 {{loaded}} 个 · 共 {{available}} 个";
@@ -3704,6 +3724,8 @@ declare const agentGuiI18nResources: {
3704
3724
  readonly editNotebook: "编辑 Notebook";
3705
3725
  readonly updateTodos: "更新待办";
3706
3726
  readonly delegateAgent: "委托 Agent";
3727
+ readonly closeAgent: "结束 Agent";
3728
+ readonly waitAgent: "等待 Agent";
3707
3729
  readonly currentIssue: "当前任务";
3708
3730
  readonly thinking: "思考";
3709
3731
  readonly responding: "回复";
@@ -6,8 +6,8 @@ import {
6
6
  translate,
7
7
  translateInUiLanguage,
8
8
  useTranslation
9
- } from "../chunk-N6HRVMIS.js";
10
- import "../chunk-NETHPCSA.js";
9
+ } from "../chunk-Y7ZVTWMZ.js";
10
+ import "../chunk-ZTSS2NU2.js";
11
11
  export {
12
12
  AgentGuiI18nProvider,
13
13
  agentGuiI18nModule,
package/dist/index.d.ts CHANGED
@@ -5,8 +5,8 @@ import * as react from 'react';
5
5
  import { PropsWithChildren, JSX } from 'react';
6
6
  import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
7
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, m as AgentPromptContentBlock, P as Point, b as AgentGUIProviderTarget, N as NodeFrame, a as AgentGUIProvider } from './types-xMz0lJWt.js';
8
- import { k as AgentProbeSnapshot, A as AgentComposerDraft, n as AgentSessionCommand, c as AgentGUIProviderSkillOption, a as AgentGUIComposerSettingsVM, d as AgentGUIQueuedPromptVM, b as AgentGUINodeViewModel, g as AgentHostInputApi } from './agentGuiNodeTypes-Bp1G8pOj.js';
9
- export { e as AgentHostApi, f as AgentHostApplyWorkspaceGitPatchInput, h as AgentHostRuntimeApi, i as AgentHostSelectFilesInput, j as AgentProbeProvider, l as AgentProviderProbeListInput, m as AgentProviderProbeListResult, o as AgentUsageQuota, p as AgentUsageSnapshot, P as PersistWriteResult, R as ReadWorkspaceAgentReadStateInput, W as WorkspaceAgentReadStateSnapshot, q as WriteWorkspaceAgentReadStateInput } from './agentGuiNodeTypes-Bp1G8pOj.js';
8
+ import { k as AgentProbeSnapshot, A as AgentComposerDraft, n as AgentSessionCommand, c as AgentGUIProviderSkillOption, a as AgentGUIComposerSettingsVM, d as AgentGUIQueuedPromptVM, b as AgentGUINodeViewModel, g as AgentHostInputApi } from './agentGuiNodeTypes-wzOITHRW.js';
9
+ export { e as AgentHostApi, f as AgentHostApplyWorkspaceGitPatchInput, h as AgentHostRuntimeApi, i as AgentHostSelectFilesInput, j as AgentProbeProvider, l as AgentProviderProbeListInput, m as AgentProviderProbeListResult, o as AgentUsageQuota, p as AgentUsageSnapshot, P as PersistWriteResult, R as ReadWorkspaceAgentReadStateInput, W as WorkspaceAgentReadStateSnapshot, q as WriteWorkspaceAgentReadStateInput } from './agentGuiNodeTypes-wzOITHRW.js';
10
10
  import { WorkspaceFileEntry } from '@tutti-os/workspace-file-manager/services';
11
11
  import { WorkspaceFileReference, ReferenceLocateTarget, WorkspaceFileReferenceAdapter } from '@tutti-os/workspace-file-reference/contracts';
12
12
  import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
@@ -14,7 +14,7 @@ import { U as UiLanguage, a as UiTheme } from './uiSettings-BQS9r2eo.js';
14
14
  import { W as WorkspaceLinkAction } from './workspaceLinkActions-C6POH38D.js';
15
15
  import { A as AgentContextMentionItem } from './AgentMentionSearchController-CExFPobz.js';
16
16
  export { p as preloadAgentMentionBrowse } from './AgentMentionSearchController-CExFPobz.js';
17
- import { b as AgentConversationPromptVM } from './agentConversationVM-DSXrFL9v.js';
17
+ import { b as AgentConversationPromptVM } from './agentConversationVM-Qbz9GBwR.js';
18
18
  import { WorkspaceUserProjectI18nRuntime } from '@tutti-os/workspace-user-project/i18n';
19
19
  import { WorkspaceUserProjectSelectChangeAction } from '@tutti-os/workspace-user-project/ui';
20
20
  import { WorkspaceUserProject } from '@tutti-os/workspace-user-project/contracts';
@@ -160,6 +160,45 @@ interface AgentActivityRuntimeListGeneratedFilesInput {
160
160
  signal?: AbortSignal;
161
161
  workspaceId: string;
162
162
  }
163
+ interface AgentActivityRuntimeSearchSessionsInput {
164
+ cursor?: string;
165
+ limit?: number;
166
+ query: string;
167
+ signal?: AbortSignal;
168
+ workspaceId: string;
169
+ }
170
+ interface AgentActivityRuntimeSearchSessionsResult {
171
+ hasMore: boolean;
172
+ nextCursor?: string;
173
+ sessions: AgentActivitySession[];
174
+ workspaceId: string;
175
+ }
176
+ interface AgentActivityRuntimeListSessionsPageInput {
177
+ cursor?: string;
178
+ cwd?: string;
179
+ limit?: number;
180
+ signal?: AbortSignal;
181
+ visibleOnly?: boolean;
182
+ workspaceId: string;
183
+ }
184
+ interface AgentActivityRuntimeSessionPageResult {
185
+ hasMore: boolean;
186
+ nextCursor?: string;
187
+ sessions: AgentActivitySession[];
188
+ workspaceId: string;
189
+ }
190
+ interface AgentActivityRuntimeSessionGroup {
191
+ cwd: string;
192
+ hasMore: boolean;
193
+ latestSessionUpdatedAtUnixMs: number;
194
+ nextCursor?: string;
195
+ sessionCount: number;
196
+ sessions: AgentActivitySession[];
197
+ }
198
+ interface AgentActivityRuntimeSessionGroupsResult {
199
+ groups: AgentActivityRuntimeSessionGroup[];
200
+ workspaceId: string;
201
+ }
163
202
  interface AgentActivityRuntimeGeneratedFile {
164
203
  label: string;
165
204
  path: string;
@@ -310,6 +349,14 @@ interface AgentActivityRuntime {
310
349
  getSnapshot(workspaceId: string): AgentActivitySnapshot;
311
350
  listSessionMessages(input: AgentActivityRuntimeListSessionMessagesInput): Promise<AgentActivityMessagePage>;
312
351
  listAgentGeneratedFiles?(input: AgentActivityRuntimeListGeneratedFilesInput): Promise<AgentActivityRuntimeGeneratedFileList>;
352
+ listSessionGroups?(input: {
353
+ sessionLimit?: number;
354
+ signal?: AbortSignal;
355
+ visibleOnly?: boolean;
356
+ workspaceId: string;
357
+ }): Promise<AgentActivityRuntimeSessionGroupsResult>;
358
+ listSessionsPage?(input: AgentActivityRuntimeListSessionsPageInput): Promise<AgentActivityRuntimeSessionPageResult>;
359
+ searchSessions?(input: AgentActivityRuntimeSearchSessionsInput): Promise<AgentActivityRuntimeSearchSessionsResult>;
313
360
  load(workspaceId: string, signal?: AbortSignal): Promise<AgentActivitySnapshot>;
314
361
  ensureSessionSynchronized?(input: AgentActivityRuntimeEnsureSessionSynchronizedInput): () => void;
315
362
  /** @deprecated Use ensureSessionSynchronized. */