@tutti-os/agent-gui 0.0.215 → 0.0.217

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 (76) hide show
  1. package/README.md +9 -5
  2. package/dist/{agentFileMentionContracts-BeBex-Sf.d.ts → AgentMentionSearchContracts-y1_u9cPi.d.ts} +73 -1
  3. package/dist/{AgentRichTextReadonly-56TZAJ47.js → AgentRichTextReadonly-WZHUIARR.js} +7 -7
  4. package/dist/agent-conversation/index.d.ts +0 -2
  5. package/dist/agent-conversation/index.js +9 -9
  6. package/dist/agent-gui.d.ts +14 -8
  7. package/dist/agent-gui.js +23 -22
  8. package/dist/agent-message-center/index.d.ts +1 -2
  9. package/dist/agent-message-center/index.js +6 -6
  10. package/dist/app/renderer/agentactivity.css +93 -93
  11. package/dist/{chunk-KVFBUOKZ.js → chunk-2QF3RBR4.js} +4 -4
  12. package/dist/{chunk-XERDRMSF.js → chunk-44OCOBJS.js} +9 -11
  13. package/dist/chunk-44OCOBJS.js.map +1 -0
  14. package/dist/chunk-6GX57XB5.js +135 -0
  15. package/dist/chunk-6GX57XB5.js.map +1 -0
  16. package/dist/{chunk-AQ7CRDGX.js → chunk-FS7EMOVD.js} +8 -14
  17. package/dist/chunk-FS7EMOVD.js.map +1 -0
  18. package/dist/{chunk-ISC67YBJ.js → chunk-G2KRK7Z5.js} +44 -18
  19. package/dist/chunk-G2KRK7Z5.js.map +1 -0
  20. package/dist/{chunk-YTU6IUO2.js → chunk-GDLM6FLK.js} +123 -184
  21. package/dist/chunk-GDLM6FLK.js.map +1 -0
  22. package/dist/{chunk-BYHNJQYH.js → chunk-GLVENTN6.js} +2 -2
  23. package/dist/{chunk-2HYADTQP.js → chunk-JQOQETPN.js} +5 -5
  24. package/dist/{chunk-YBIT37P5.js → chunk-M6WEFXPL.js} +2 -2
  25. package/dist/{chunk-AD2RTSMS.js → chunk-N2M4B3G3.js} +2 -2
  26. package/dist/{chunk-MWAUXAD2.js → chunk-NXQGAXIE.js} +8 -8
  27. package/dist/{chunk-GUD5NOHO.js → chunk-O4QFGCLU.js} +44 -189
  28. package/dist/chunk-O4QFGCLU.js.map +1 -0
  29. package/dist/{chunk-KNSLQO52.js → chunk-PPAV2TB4.js} +7 -13
  30. package/dist/chunk-PPAV2TB4.js.map +1 -0
  31. package/dist/{chunk-4CHBM3G3.js → chunk-SUVMLCED.js} +5 -5
  32. package/dist/{chunk-JOUEYIV3.js → chunk-TKECUCUW.js} +863 -946
  33. package/dist/chunk-TKECUCUW.js.map +1 -0
  34. package/dist/{chunk-QVLEP54U.js → chunk-ZXEICU6J.js} +5 -3
  35. package/dist/chunk-ZXEICU6J.js.map +1 -0
  36. package/dist/context-mention-palette/index.d.ts +3 -3
  37. package/dist/context-mention-palette/index.js +12 -12
  38. package/dist/{contribution-DfeuQHH6.d.ts → contribution-D4lcOjSU.d.ts} +2 -14
  39. package/dist/headerLayout-CP4ujEbo.d.ts +14 -0
  40. package/dist/i18n/index.d.ts +4 -2
  41. package/dist/i18n/index.js +2 -2
  42. package/dist/index.d.ts +77 -53
  43. package/dist/index.js +46 -39
  44. package/dist/index.js.map +1 -1
  45. package/dist/layout.d.ts +7 -0
  46. package/dist/layout.js +9 -0
  47. package/dist/layout.js.map +1 -0
  48. package/dist/mention-search.d.ts +6 -73
  49. package/dist/mention-search.js +8 -8
  50. package/dist/workbench/browser-element-context/index.js +2 -2
  51. package/dist/workbench/contribution.d.ts +1 -1
  52. package/dist/workbench/contribution.js +7 -8
  53. package/dist/workbench/index.d.ts +5 -3
  54. package/dist/workbench/index.js +10 -11
  55. package/dist/workbench/launch.js +2 -2
  56. package/dist/workbench/sessionTitle.js +2 -2
  57. package/dist/workbench/tool-sidebar/index.d.ts +14 -13
  58. package/dist/workbench/tool-sidebar/index.js +66 -55
  59. package/dist/workbench/tool-sidebar/index.js.map +1 -1
  60. package/package.json +23 -16
  61. package/dist/chunk-AQ7CRDGX.js.map +0 -1
  62. package/dist/chunk-GUD5NOHO.js.map +0 -1
  63. package/dist/chunk-ISC67YBJ.js.map +0 -1
  64. package/dist/chunk-JOUEYIV3.js.map +0 -1
  65. package/dist/chunk-KNSLQO52.js.map +0 -1
  66. package/dist/chunk-QVLEP54U.js.map +0 -1
  67. package/dist/chunk-XERDRMSF.js.map +0 -1
  68. package/dist/chunk-YTU6IUO2.js.map +0 -1
  69. /package/dist/{AgentRichTextReadonly-56TZAJ47.js.map → AgentRichTextReadonly-WZHUIARR.js.map} +0 -0
  70. /package/dist/{chunk-KVFBUOKZ.js.map → chunk-2QF3RBR4.js.map} +0 -0
  71. /package/dist/{chunk-BYHNJQYH.js.map → chunk-GLVENTN6.js.map} +0 -0
  72. /package/dist/{chunk-2HYADTQP.js.map → chunk-JQOQETPN.js.map} +0 -0
  73. /package/dist/{chunk-YBIT37P5.js.map → chunk-M6WEFXPL.js.map} +0 -0
  74. /package/dist/{chunk-AD2RTSMS.js.map → chunk-N2M4B3G3.js.map} +0 -0
  75. /package/dist/{chunk-MWAUXAD2.js.map → chunk-NXQGAXIE.js.map} +0 -0
  76. /package/dist/{chunk-4CHBM3G3.js.map → chunk-SUVMLCED.js.map} +0 -0
@@ -1,79 +1,11 @@
1
- import { A as AgentContextMentionItem } from './agentFileMentionContracts-BeBex-Sf.js';
1
+ import { g as AgentMentionProviderQueryDiagnostic, h as AgentMentionRawGroups, m as AgentMentionTotalCounts, e as AgentMentionIssueTopicGroup, j as AgentMentionSearchDiagnosticLog, k as AgentMentionSearchListener, d as AgentMentionGroupId, b as AgentMentionFilterId, l as AgentMentionSearchState, i as AgentMentionSearchControllerOptions, f as AgentMentionLifecycleDiagnosticLog, R as RuntimeDiagnosticsDetailValue, A as AgentContextMentionItem, c as AgentMentionGroup } from './AgentMentionSearchContracts-y1_u9cPi.js';
2
+ export { a as AgentMentionBrowseCategory } from './AgentMentionSearchContracts-y1_u9cPi.js';
2
3
  import { AgentContextMentionProvider } from './context-mention-provider.js';
3
- import { MentionPaletteGroup, MentionPaletteState } from '@tutti-os/ui-rich-text/at-panel';
4
4
  import { ReferenceProvenanceFilter, ReferenceProvenanceCatalog } from '@tutti-os/workspace-file-reference/contracts';
5
+ import '@tutti-os/ui-rich-text/at-panel';
5
6
  import '@tutti-os/ui-rich-text/types';
6
7
  import '@tutti-os/workspace-external-core/contracts';
7
8
 
8
- type RuntimeDiagnosticsDetailValue = string | number | boolean | null;
9
-
10
- type AgentMentionProviderDiagnosticStatus = "success" | "timeout" | "error" | "missing";
11
- interface AgentMentionProviderQueryDiagnostic {
12
- durationMs: number;
13
- errorKind?: string;
14
- providerId: string;
15
- resultCount: number;
16
- status: AgentMentionProviderDiagnosticStatus;
17
- }
18
- interface AgentMentionSearchDiagnosticLog {
19
- debounceMs: number;
20
- durationMs: number;
21
- errorKind?: string;
22
- event: "agent_gui.mention_search";
23
- filter: AgentMentionFilterId;
24
- groupCount: number;
25
- itemCount: number;
26
- mode: "browse" | "results";
27
- providerResults: AgentMentionProviderQueryDiagnostic[];
28
- providerTimeoutMs: number;
29
- queryLength: number;
30
- requestId: number;
31
- status: "ready" | "error";
32
- workspaceId: string;
33
- }
34
-
35
- type AgentMentionFilterId = "session" | "file" | "issue" | "agent" | "app";
36
- type AgentMentionStaticGroupId = "apps" | "agents" | "files" | "opened_files" | "agent_generated_files" | "my_sessions" | "collab_sessions" | "issues";
37
- type AgentMentionIssueTopicGroupId = `issue-topic:${string}`;
38
- type AgentMentionProvenanceGroupId = `agent:${string}`;
39
- type AgentMentionMemberGroupId = `member:${string}`;
40
- type AgentMentionGroupId = AgentMentionStaticGroupId | AgentMentionIssueTopicGroupId | AgentMentionProvenanceGroupId | AgentMentionMemberGroupId;
41
- type AgentMentionRawGroupId = Exclude<AgentMentionStaticGroupId, "files" | "my_sessions" | "collab_sessions"> | "sessions";
42
- type AgentMentionRawGroups = Record<AgentMentionRawGroupId, AgentContextMentionItem[]>;
43
- type AgentMentionTotalCounts = Partial<Record<AgentMentionGroupId, number>>;
44
- interface AgentMentionIssueTopicGroup {
45
- id: `issue-topic:${string}`;
46
- providerGroupId: string;
47
- label: string;
48
- items: AgentContextMentionItem[];
49
- totalCount: number;
50
- nextPageToken: string | null;
51
- loadMoreStatus: "idle" | "loading" | "error";
52
- loadMoreError: string | null;
53
- }
54
- interface AgentMentionBrowseCategory {
55
- id: AgentMentionFilterId;
56
- label: string;
57
- }
58
- type AgentMentionGroup = MentionPaletteGroup<AgentContextMentionItem>;
59
- type AgentMentionSearchState = MentionPaletteState<AgentContextMentionItem>;
60
- interface AgentMentionSearchControllerOptions {
61
- contextMentionProviders?: readonly AgentContextMentionProvider[];
62
- debounceMs?: number;
63
- fileLimit?: number;
64
- issueLimit?: number;
65
- browseCacheTtlMs?: number;
66
- providerTimeoutMs?: number;
67
- diagnosticInfoLogger?: (payload: AgentMentionSearchDiagnosticLog) => void;
68
- diagnosticNow?: () => number;
69
- diagnosticSlowThresholdMs?: number;
70
- }
71
- type AgentMentionSearchListener = (state: AgentMentionSearchState) => void;
72
- interface AgentMentionLifecycleDiagnosticLog {
73
- event: "browse.open" | "browse.preload" | "browse.cache" | "browse.fetch.start" | "browse.fetch.dedupe" | "browse.fetch.success" | "browse.fetch.error" | "browse.apply.skipped";
74
- details: Record<string, RuntimeDiagnosticsDetailValue>;
75
- }
76
-
77
9
  interface AgentMentionBrowseFetchResult {
78
10
  providerDiagnostics: AgentMentionProviderQueryDiagnostic[];
79
11
  rawGroups: AgentMentionRawGroups;
@@ -252,8 +184,9 @@ declare class AgentMentionSearchControllerBase {
252
184
  declare class AgentMentionSearchController extends AgentMentionSearchControllerBase {
253
185
  private readonly issueLoadMoreRequests;
254
186
  private readonly directoryRequestLifecycle;
187
+ private readonly provenanceFilters;
255
188
  setProvenanceCatalog(catalog: ReferenceProvenanceCatalog | null): void;
256
- setProvenanceFilter(filter: ReferenceProvenanceFilter | null): void;
189
+ setProvenanceFilters(filters: Record<AgentMentionFilterId, ReferenceProvenanceFilter | null>): void;
257
190
  subscribe(listener: AgentMentionSearchListener): () => void;
258
191
  updateQuery(input: {
259
192
  workspaceId: string;
@@ -293,4 +226,4 @@ declare function preloadAgentMentionBrowse(input: {
293
226
  filter?: AgentMentionFilterId;
294
227
  }): void;
295
228
 
296
- export { type AgentMentionBrowseCategory, type AgentMentionFilterId, type AgentMentionGroup, type AgentMentionGroupId, AgentMentionSearchController, type AgentMentionSearchState, MAX_BROWSE_CACHE_ENTRIES, preloadAgentMentionBrowse, resetAgentMentionSearchBrowseCacheForTests };
229
+ export { AgentMentionFilterId, AgentMentionGroup, AgentMentionGroupId, AgentMentionSearchController, AgentMentionSearchState, MAX_BROWSE_CACHE_ENTRIES, preloadAgentMentionBrowse, resetAgentMentionSearchBrowseCacheForTests };
@@ -3,23 +3,23 @@ import {
3
3
  MAX_BROWSE_CACHE_ENTRIES,
4
4
  preloadAgentMentionBrowse,
5
5
  resetAgentMentionSearchBrowseCacheForTests
6
- } from "./chunk-ISC67YBJ.js";
6
+ } from "./chunk-G2KRK7Z5.js";
7
7
  import "./chunk-VMPA46ET.js";
8
+ import "./chunk-YMXYBG7U.js";
8
9
  import "./chunk-XJ34OIEQ.js";
9
- import "./chunk-2HYADTQP.js";
10
+ import "./chunk-JQOQETPN.js";
10
11
  import "./chunk-JDVP33S5.js";
11
12
  import "./chunk-3V5OCA2M.js";
12
- import "./chunk-RMQREVJY.js";
13
- import "./chunk-FGLQZ6I4.js";
14
- import "./chunk-YMXYBG7U.js";
15
- import "./chunk-YBIT37P5.js";
13
+ import "./chunk-M6WEFXPL.js";
16
14
  import "./chunk-M6HTOCQK.js";
17
15
  import "./chunk-F5UR6EJG.js";
18
- import "./chunk-BYHNJQYH.js";
16
+ import "./chunk-GLVENTN6.js";
19
17
  import "./chunk-5BJYO6X3.js";
20
18
  import "./chunk-AFUVWWQY.js";
21
- import "./chunk-QVLEP54U.js";
22
19
  import "./chunk-MIJXEELH.js";
20
+ import "./chunk-ZXEICU6J.js";
21
+ import "./chunk-RMQREVJY.js";
22
+ import "./chunk-FGLQZ6I4.js";
23
23
  import "./chunk-D2JUDUYY.js";
24
24
  import "./chunk-QNE2ZPPV.js";
25
25
  import "./chunk-O433KXLK.js";
@@ -1,8 +1,8 @@
1
- import "../../chunk-DLCZJKCA.js";
2
- import "../../chunk-FGLQZ6I4.js";
3
1
  import {
4
2
  useEngineSelector
5
3
  } from "../../chunk-EVQ4JY3N.js";
4
+ import "../../chunk-DLCZJKCA.js";
5
+ import "../../chunk-FGLQZ6I4.js";
6
6
  import {
7
7
  registerAgentCustomMentionKind
8
8
  } from "../../chunk-D2JUDUYY.js";
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
2
  import '@tutti-os/agent-activity-core';
3
3
  import '@tutti-os/workbench-surface';
4
- export { A as AGENT_GUI_WORKBENCH_CONVERSATION_RAIL_TOGGLE_EVENT, a as AGENT_GUI_WORKBENCH_NEW_CONVERSATION_EVENT, b as AGENT_GUI_WORKBENCH_OPEN_EXTERNAL_IMPORT_EVENT, c as AGENT_GUI_WORKBENCH_SESSION_ACTION_EVENT, d as AgentGuiWorkbenchContributionCopy, e as AgentGuiWorkbenchContributionCopyOverrides, f as AgentGuiWorkbenchConversationIdentity, g as AgentGuiWorkbenchConversationRailToggleDetail, h as AgentGuiWorkbenchNewConversationDetail, i as AgentGuiWorkbenchProviderAvailability, j as AgentGuiWorkbenchRenderBodyHelpers, k as AgentGuiWorkbenchSessionAction, l as AgentGuiWorkbenchSessionActionDetail, m as AgentGuiWorkbenchSessionActionRequest, n as AgentGuiWorkbenchSessionMenuCopy, B as BuildAgentGuiDockEntriesInput, C as CreateAgentGuiWorkbenchContributionInput, o as agentGuiWorkbenchCompactVisibleAreaRatio, q as agentGuiWorkbenchDefaultCopy, r as agentGuiWorkbenchDefaultNodeFrame, s as agentGuiWorkbenchDefaultUsableHeightRatio, t as agentGuiWorkbenchDefaultUsableWidthRatio, u as agentGuiWorkbenchNewWindowCascadeOffset, v as agentGuiWorkbenchProviderRailWidthPx, w as buildAgentGuiDockEntries, x as createAgentGuiWorkbenchContribution, y as createAgentGuiWorkbenchPreviewContent, z as dispatchAgentGuiWorkbenchSessionAction, D as isAgentGuiWorkbenchSessionAction, E as resolveAgentGuiUnifiedDockLaunchPayload, F as resolveAgentGuiWorkbenchContributionCopy, H as resolveAgentGuiWorkbenchDefaultLaunchFrame } from '../contribution-DfeuQHH6.js';
4
+ export { A as AGENT_GUI_WORKBENCH_CONVERSATION_RAIL_TOGGLE_EVENT, a as AGENT_GUI_WORKBENCH_NEW_CONVERSATION_EVENT, b as AGENT_GUI_WORKBENCH_OPEN_EXTERNAL_IMPORT_EVENT, c as AGENT_GUI_WORKBENCH_SESSION_ACTION_EVENT, d as AgentGuiWorkbenchContributionCopy, e as AgentGuiWorkbenchContributionCopyOverrides, f as AgentGuiWorkbenchConversationIdentity, g as AgentGuiWorkbenchConversationRailToggleDetail, h as AgentGuiWorkbenchNewConversationDetail, i as AgentGuiWorkbenchProviderAvailability, j as AgentGuiWorkbenchRenderBodyHelpers, k as AgentGuiWorkbenchSessionAction, l as AgentGuiWorkbenchSessionActionDetail, m as AgentGuiWorkbenchSessionActionRequest, n as AgentGuiWorkbenchSessionMenuCopy, B as BuildAgentGuiDockEntriesInput, C as CreateAgentGuiWorkbenchContributionInput, o as agentGuiWorkbenchCompactVisibleAreaRatio, q as agentGuiWorkbenchDefaultCopy, r as agentGuiWorkbenchDefaultNodeFrame, s as agentGuiWorkbenchDefaultUsableHeightRatio, t as agentGuiWorkbenchDefaultUsableWidthRatio, u as agentGuiWorkbenchNewWindowCascadeOffset, v as agentGuiWorkbenchProviderRailWidthPx, w as buildAgentGuiDockEntries, x as createAgentGuiWorkbenchContribution, y as dispatchAgentGuiWorkbenchSessionAction, z as isAgentGuiWorkbenchSessionAction, D as resolveAgentGuiUnifiedDockLaunchPayload, E as resolveAgentGuiWorkbenchContributionCopy, G as resolveAgentGuiWorkbenchDefaultLaunchFrame } from '../contribution-D4lcOjSU.js';
5
5
  import './types.js';
@@ -12,24 +12,24 @@ import {
12
12
  agentGuiWorkbenchProviderRailWidthPx,
13
13
  buildAgentGuiDockEntries,
14
14
  createAgentGuiWorkbenchContribution,
15
- createAgentGuiWorkbenchPreviewContent,
16
15
  dispatchAgentGuiWorkbenchSessionAction,
17
16
  isAgentGuiWorkbenchSessionAction,
18
17
  resolveAgentGuiUnifiedDockLaunchPayload,
19
18
  resolveAgentGuiWorkbenchContributionCopy,
20
19
  resolveAgentGuiWorkbenchDefaultLaunchFrame
21
- } from "../chunk-GUD5NOHO.js";
22
- import "../chunk-KVFBUOKZ.js";
20
+ } from "../chunk-O4QFGCLU.js";
21
+ import "../chunk-2QF3RBR4.js";
23
22
  import "../chunk-KDN6SLJM.js";
24
- import "../chunk-4CHBM3G3.js";
25
- import "../chunk-CBMWHQ7P.js";
23
+ import "../chunk-SUVMLCED.js";
26
24
  import "../chunk-MGSRWYRN.js";
25
+ import "../chunk-CBMWHQ7P.js";
26
+ import "../chunk-EVQ4JY3N.js";
27
27
  import "../chunk-3MVSOLX3.js";
28
28
  import "../chunk-G7DS23D4.js";
29
- import "../chunk-EVQ4JY3N.js";
29
+ import "../chunk-6GX57XB5.js";
30
30
  import "../chunk-AFUVWWQY.js";
31
- import "../chunk-QVLEP54U.js";
32
31
  import "../chunk-MIJXEELH.js";
32
+ import "../chunk-ZXEICU6J.js";
33
33
  import "../chunk-QNE2ZPPV.js";
34
34
  import "../chunk-O433KXLK.js";
35
35
  export {
@@ -46,7 +46,6 @@ export {
46
46
  agentGuiWorkbenchProviderRailWidthPx,
47
47
  buildAgentGuiDockEntries,
48
48
  createAgentGuiWorkbenchContribution,
49
- createAgentGuiWorkbenchPreviewContent,
50
49
  dispatchAgentGuiWorkbenchSessionAction,
51
50
  isAgentGuiWorkbenchSessionAction,
52
51
  resolveAgentGuiUnifiedDockLaunchPayload,
@@ -1,10 +1,11 @@
1
- import { n as AgentGuiWorkbenchSessionMenuCopy, k as AgentGuiWorkbenchSessionAction } from '../contribution-DfeuQHH6.js';
2
- export { A as AGENT_GUI_WORKBENCH_CONVERSATION_RAIL_TOGGLE_EVENT, a as AGENT_GUI_WORKBENCH_NEW_CONVERSATION_EVENT, c as AGENT_GUI_WORKBENCH_SESSION_ACTION_EVENT, d as AgentGuiWorkbenchContributionCopy, e as AgentGuiWorkbenchContributionCopyOverrides, f as AgentGuiWorkbenchConversationIdentity, g as AgentGuiWorkbenchConversationRailToggleDetail, h as AgentGuiWorkbenchNewConversationDetail, i as AgentGuiWorkbenchProviderAvailability, j as AgentGuiWorkbenchRenderBodyHelpers, l as AgentGuiWorkbenchSessionActionDetail, m as AgentGuiWorkbenchSessionActionRequest, B as BuildAgentGuiDockEntriesInput, C as CreateAgentGuiWorkbenchContributionInput, p as agentGuiWorkbenchConversationIdentitiesEqual, q as agentGuiWorkbenchDefaultCopy, r as agentGuiWorkbenchDefaultNodeFrame, w as buildAgentGuiDockEntries, x as createAgentGuiWorkbenchContribution, y as createAgentGuiWorkbenchPreviewContent, z as dispatchAgentGuiWorkbenchSessionAction, D as isAgentGuiWorkbenchSessionAction, E as resolveAgentGuiUnifiedDockLaunchPayload, F as resolveAgentGuiWorkbenchContributionCopy, G as resolveAgentGuiWorkbenchConversationIdentity } from '../contribution-DfeuQHH6.js';
1
+ import { n as AgentGuiWorkbenchSessionMenuCopy, k as AgentGuiWorkbenchSessionAction } from '../contribution-D4lcOjSU.js';
2
+ export { A as AGENT_GUI_WORKBENCH_CONVERSATION_RAIL_TOGGLE_EVENT, a as AGENT_GUI_WORKBENCH_NEW_CONVERSATION_EVENT, c as AGENT_GUI_WORKBENCH_SESSION_ACTION_EVENT, d as AgentGuiWorkbenchContributionCopy, e as AgentGuiWorkbenchContributionCopyOverrides, f as AgentGuiWorkbenchConversationIdentity, g as AgentGuiWorkbenchConversationRailToggleDetail, h as AgentGuiWorkbenchNewConversationDetail, i as AgentGuiWorkbenchProviderAvailability, j as AgentGuiWorkbenchRenderBodyHelpers, l as AgentGuiWorkbenchSessionActionDetail, m as AgentGuiWorkbenchSessionActionRequest, B as BuildAgentGuiDockEntriesInput, C as CreateAgentGuiWorkbenchContributionInput, p as agentGuiWorkbenchConversationIdentitiesEqual, q as agentGuiWorkbenchDefaultCopy, r as agentGuiWorkbenchDefaultNodeFrame, w as buildAgentGuiDockEntries, x as createAgentGuiWorkbenchContribution, y as dispatchAgentGuiWorkbenchSessionAction, z as isAgentGuiWorkbenchSessionAction, D as resolveAgentGuiUnifiedDockLaunchPayload, E as resolveAgentGuiWorkbenchContributionCopy, F as resolveAgentGuiWorkbenchConversationIdentity } from '../contribution-D4lcOjSU.js';
3
3
  export { agentGuiWorkbenchComingSoonProviders, agentGuiWorkbenchDefaultDockProviders, agentGuiWorkbenchDockSuppressedProviders, agentGuiWorkbenchProviderLabels, agentGuiWorkbenchProviders, isAgentGuiWorkbenchComingSoonProvider, isAgentGuiWorkbenchDefaultDockProvider, isAgentGuiWorkbenchDockSuppressedProvider, isAgentGuiWorkbenchProvider, normalizeAgentGuiWorkbenchProvider, resolveAgentGuiWorkbenchProviderLabel } from './providerCatalog.js';
4
4
  export { AgentGuiWorkbenchLaunchDescriptor, AgentGuiWorkbenchReusePolicy, agentGuiWorkbenchDockEntryId, agentGuiWorkbenchDockIdentityFromIdentifier, agentGuiWorkbenchProviderFromLaunchRequest, agentGuiWorkbenchTypeId, agentGuiWorkbenchUnifiedDockEntryId, createAgentGuiWorkbenchDraftLaunchRequest, createAgentGuiWorkbenchInstanceId, createAgentGuiWorkbenchLaunchDescriptor, createAgentGuiWorkbenchSessionLaunchRequest, resolveAgentGuiWorkbenchLaunchDockEntryId } from './launch.js';
5
5
  export { areAgentGuiWorkbenchNodeStatesEqual, areAgentGuiWorkbenchStatesEqual, createAgentGuiWorkbenchNodeStateSource, createDefaultAgentGuiWorkbenchNodeState, normalizeAgentGuiWorkbenchNodeState, normalizeAgentGuiWorkbenchState, projectAgentGuiWorkbenchState } from './state.js';
6
6
  import { ReactNode, HTMLAttributes } from 'react';
7
7
  import { WorkbenchDisplayMode, WorkbenchHostNodeHeaderWindowActions } from '@tutti-os/workbench-surface';
8
+ import { a as AgentToolSidebarHeaderLayout } from '../headerLayout-CP4ujEbo.js';
8
9
  export { AgentGuiWorkbenchSessionTitleResult, ResolveAgentGuiWorkbenchHeaderTitleInput, ResolveAgentGuiWorkbenchSessionTitleInput, resolveAgentGuiWorkbenchHeaderTitle, resolveAgentGuiWorkbenchSessionTitle } from './sessionTitle.js';
9
10
  export { AgentGuiWorkbenchComposerOverrides, AgentGuiWorkbenchNodeState, AgentGuiWorkbenchPrefillPromptPayload, AgentGuiWorkbenchProvider, AgentGuiWorkbenchState, AgentGuiWorkbenchWorkspaceState, agentGuiWorkbenchOpenSessionActivationType, agentGuiWorkbenchPrefillPromptActivationType } from './types.js';
10
11
  import '@tutti-os/agent-activity-core';
@@ -43,6 +44,7 @@ interface AgentGuiWorkbenchHeaderProps extends HTMLAttributes<HTMLElement> {
43
44
  providerRailWidthPx?: number | null;
44
45
  primaryAccessory?: ReactNode;
45
46
  secondaryAccessory?: ReactNode;
47
+ toolSidebar?: AgentToolSidebarHeaderLayout | null;
46
48
  sessionMenuAdditionalActions?: readonly AgentGuiWorkbenchSessionMenuAdditionalAction[];
47
49
  sessionMenuActions?: readonly AgentGuiWorkbenchSessionAction[];
48
50
  conversationTitle?: string | null;
@@ -58,6 +60,6 @@ interface AgentGuiWorkbenchHeaderProps extends HTMLAttributes<HTMLElement> {
58
60
  title?: string;
59
61
  windowActions?: Pick<WorkbenchHostNodeHeaderWindowActions, "close" | "minimize" | "toggleDisplayMode">;
60
62
  }
61
- declare function AgentGuiWorkbenchHeader({ className, copy, agentTitle, defaultActions: _defaultActions, displayMode, isConversationRailAutoCollapsed, isConversationRailCollapsed, conversationRailWidthPx, conversationIconUrl, conversationIconFallbackUrl, hasConversation, providerRailWidthPx, primaryAccessory, secondaryAccessory, sessionMenuAdditionalActions, sessionMenuActions, conversationTitle, conversationTitleDisplayPrompt, nodeId, onCreateConversation, onOpenDetachedWindow, onSessionAction, onToggleConversationRail, showAppTitle, showConversationRailToggle, showWindowControls, title: _title, windowActions, ...headerProps }: AgentGuiWorkbenchHeaderProps): ReactNode;
63
+ declare function AgentGuiWorkbenchHeader({ className, copy, agentTitle, defaultActions: _defaultActions, displayMode, isConversationRailAutoCollapsed, isConversationRailCollapsed, conversationRailWidthPx, conversationIconUrl, conversationIconFallbackUrl, hasConversation, providerRailWidthPx, primaryAccessory, secondaryAccessory, toolSidebar, sessionMenuAdditionalActions, sessionMenuActions, conversationTitle, conversationTitleDisplayPrompt, nodeId, onCreateConversation, onOpenDetachedWindow, onSessionAction, onToggleConversationRail, showAppTitle, showConversationRailToggle, showWindowControls, title: _title, windowActions, ...headerProps }: AgentGuiWorkbenchHeaderProps): ReactNode;
62
64
 
63
65
  export { AgentGuiWorkbenchHeader, type AgentGuiWorkbenchHeaderCopy, type AgentGuiWorkbenchHeaderProps, AgentGuiWorkbenchSessionAction, type AgentGuiWorkbenchSessionMenuAdditionalAction, AgentGuiWorkbenchSessionMenuCopy };
@@ -8,17 +8,16 @@ import {
8
8
  agentGuiWorkbenchDefaultNodeFrame,
9
9
  buildAgentGuiDockEntries,
10
10
  createAgentGuiWorkbenchContribution,
11
- createAgentGuiWorkbenchPreviewContent,
12
11
  dispatchAgentGuiWorkbenchSessionAction,
13
12
  isAgentGuiWorkbenchSessionAction,
14
13
  resolveAgentGuiUnifiedDockLaunchPayload,
15
14
  resolveAgentGuiWorkbenchContributionCopy,
16
15
  resolveAgentGuiWorkbenchConversationIdentity
17
- } from "../chunk-GUD5NOHO.js";
16
+ } from "../chunk-O4QFGCLU.js";
18
17
  import {
19
18
  resolveAgentGuiWorkbenchHeaderTitle,
20
19
  resolveAgentGuiWorkbenchSessionTitle
21
- } from "../chunk-KVFBUOKZ.js";
20
+ } from "../chunk-2QF3RBR4.js";
22
21
  import {
23
22
  areAgentGuiWorkbenchNodeStatesEqual,
24
23
  areAgentGuiWorkbenchStatesEqual,
@@ -39,11 +38,7 @@ import {
39
38
  createAgentGuiWorkbenchLaunchDescriptor,
40
39
  createAgentGuiWorkbenchSessionLaunchRequest,
41
40
  resolveAgentGuiWorkbenchLaunchDockEntryId
42
- } from "../chunk-4CHBM3G3.js";
43
- import {
44
- agentGuiWorkbenchOpenSessionActivationType,
45
- agentGuiWorkbenchPrefillPromptActivationType
46
- } from "../chunk-CBMWHQ7P.js";
41
+ } from "../chunk-SUVMLCED.js";
47
42
  import {
48
43
  agentGuiWorkbenchComingSoonProviders,
49
44
  agentGuiWorkbenchDefaultDockProviders,
@@ -57,12 +52,17 @@ import {
57
52
  normalizeAgentGuiWorkbenchProvider,
58
53
  resolveAgentGuiWorkbenchProviderLabel
59
54
  } from "../chunk-MGSRWYRN.js";
55
+ import {
56
+ agentGuiWorkbenchOpenSessionActivationType,
57
+ agentGuiWorkbenchPrefillPromptActivationType
58
+ } from "../chunk-CBMWHQ7P.js";
59
+ import "../chunk-EVQ4JY3N.js";
60
60
  import "../chunk-3MVSOLX3.js";
61
61
  import "../chunk-G7DS23D4.js";
62
- import "../chunk-EVQ4JY3N.js";
62
+ import "../chunk-6GX57XB5.js";
63
63
  import "../chunk-AFUVWWQY.js";
64
- import "../chunk-QVLEP54U.js";
65
64
  import "../chunk-MIJXEELH.js";
65
+ import "../chunk-ZXEICU6J.js";
66
66
  import "../chunk-QNE2ZPPV.js";
67
67
  import "../chunk-O433KXLK.js";
68
68
  export {
@@ -93,7 +93,6 @@ export {
93
93
  createAgentGuiWorkbenchInstanceId,
94
94
  createAgentGuiWorkbenchLaunchDescriptor,
95
95
  createAgentGuiWorkbenchNodeStateSource,
96
- createAgentGuiWorkbenchPreviewContent,
97
96
  createAgentGuiWorkbenchSessionLaunchRequest,
98
97
  createDefaultAgentGuiWorkbenchNodeState,
99
98
  dispatchAgentGuiWorkbenchSessionAction,
@@ -9,11 +9,11 @@ import {
9
9
  createAgentGuiWorkbenchLaunchDescriptor,
10
10
  createAgentGuiWorkbenchSessionLaunchRequest,
11
11
  resolveAgentGuiWorkbenchLaunchDockEntryId
12
- } from "../chunk-4CHBM3G3.js";
12
+ } from "../chunk-SUVMLCED.js";
13
+ import "../chunk-MGSRWYRN.js";
13
14
  import {
14
15
  agentGuiWorkbenchPrefillPromptActivationType
15
16
  } from "../chunk-CBMWHQ7P.js";
16
- import "../chunk-MGSRWYRN.js";
17
17
  import "../chunk-O433KXLK.js";
18
18
  export {
19
19
  agentGuiWorkbenchDockEntryId,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveAgentGuiWorkbenchHeaderTitle,
3
3
  resolveAgentGuiWorkbenchSessionTitle
4
- } from "../chunk-KVFBUOKZ.js";
5
- import "../chunk-QVLEP54U.js";
4
+ } from "../chunk-2QF3RBR4.js";
6
5
  import "../chunk-MIJXEELH.js";
6
+ import "../chunk-ZXEICU6J.js";
7
7
  import "../chunk-O433KXLK.js";
8
8
  export {
9
9
  resolveAgentGuiWorkbenchHeaderTitle,
@@ -1,5 +1,7 @@
1
+ import { A as AgentToolSidebarHeaderContract } from '../../headerLayout-CP4ujEbo.js';
2
+ export { a as AgentToolSidebarHeaderLayout } from '../../headerLayout-CP4ujEbo.js';
1
3
  import * as react from 'react';
2
- import { ReactNode, MouseEventHandler, PointerEventHandler } from 'react';
4
+ import { ReactNode } from 'react';
3
5
  import { BrowserNodeAutomationTargetMetadata, BrowserNodeHostApi, BrowserNodeChromeImportPromptAdapter, BrowserNodeSessionMode, BrowserNodeFeature } from '@tutti-os/browser-node';
4
6
  import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
5
7
  import { IconProps } from '@tutti-os/ui-system';
@@ -96,6 +98,11 @@ declare function shouldResizeAgentToolContainer(input: {
96
98
  } | null;
97
99
  requestedWidth: number;
98
100
  }): boolean;
101
+ declare function shouldAutoCollapseAgentToolSidebar(input: {
102
+ containerWidth: number;
103
+ mainContentMinWidth: number;
104
+ sidebarWidth: number;
105
+ }): boolean;
99
106
  declare function formatAgentToolReminderCount(value: number | null | undefined): string | null;
100
107
 
101
108
  declare const agentToolBrowserDefaultUrl = "https://www.google.com/";
@@ -143,7 +150,7 @@ type AgentToolSidebarReminderCounts = Partial<Record<AgentToolPanelId, number>>;
143
150
  declare function AgentToolPanelIcon({ panel, ...iconProps }: IconProps & {
144
151
  panel: AgentToolPanelId;
145
152
  }): ReactNode;
146
- declare function AgentToolSidebarToolbar({ activePanel, copy, isExpanded, isOpen, panels, quickActionPanels, reminders, onAddPanel, onOpenPanel, onToggleExpansion, onToggleSidebar }: {
153
+ declare function AgentToolSidebarToolbar({ activePanel, copy, isExpanded, isOpen, panels, quickActionPanels, reminders, showToggleButton, onAddPanel, onOpenPanel, onToggleExpansion, onToggleSidebar }: {
147
154
  activePanel: AgentToolPanelId | null;
148
155
  copy: AgentToolSidebarCopy;
149
156
  isExpanded: boolean;
@@ -151,6 +158,7 @@ declare function AgentToolSidebarToolbar({ activePanel, copy, isExpanded, isOpen
151
158
  panels: readonly AgentToolPanelDefinition[];
152
159
  quickActionPanels?: readonly AgentToolPanelId[];
153
160
  reminders?: AgentToolSidebarReminderCounts;
161
+ showToggleButton?: boolean;
154
162
  onAddPanel: (panel: AgentToolPanelId) => void;
155
163
  onOpenPanel: (panel: AgentToolPanelId) => void;
156
164
  onToggleExpansion: () => void;
@@ -160,28 +168,20 @@ declare function AgentToolSidebarToolbar({ activePanel, copy, isExpanded, isOpen
160
168
  interface AgentToolSidebarHandle {
161
169
  addPanel(panel: AgentToolPanelId, resourceId?: string): string | null;
162
170
  close(): void;
171
+ collapseForContainerConstraint(): void;
163
172
  closeTab(tabId: string): void;
164
173
  ensurePanel(panel: AgentToolPanelId, resourceId?: string): string | null;
165
174
  openPanel(panel: AgentToolPanelId, resourceId?: string): string | null;
166
175
  }
167
- type AgentToolSidebarHeaderDrag = {
168
- mode?: "native-window";
169
- } | {
170
- mode: "host";
171
- onDoubleClick?: MouseEventHandler<HTMLDivElement>;
172
- onPointerDown?: PointerEventHandler<HTMLDivElement>;
173
- };
174
176
  interface AgentToolSidebarProps {
175
177
  children: ReactNode;
176
178
  containerWidth: number;
177
179
  copy: AgentToolSidebarCopy;
178
- headerDrag?: AgentToolSidebarHeaderDrag;
179
- headerPlacement?: "inline" | "external" | "panel";
180
+ header: AgentToolSidebarHeaderContract;
180
181
  mainContentMinWidthPx?: number;
181
182
  panels: readonly AgentToolPanelDefinition[];
182
183
  quickActionPanels?: readonly AgentToolPanelId[];
183
184
  reminders?: AgentToolSidebarReminderCounts;
184
- renderHeader: (toolActions: ReactNode) => ReactNode;
185
185
  renderLoading?: (tab: AgentToolTab) => ReactNode;
186
186
  renderPanel: (input: {
187
187
  active: boolean;
@@ -190,6 +190,7 @@ interface AgentToolSidebarProps {
190
190
  }) => ReactNode;
191
191
  renderTabIcon?: (tab: AgentToolTab) => ReactNode;
192
192
  resolveTabLabel?: (tab: AgentToolTab, defaultLabel: string) => string;
193
+ showToggleButton?: boolean;
193
194
  resizeContainerContentWidth(width: number, animate?: boolean): Promise<{
194
195
  width: number;
195
196
  }>;
@@ -206,4 +207,4 @@ declare function AgentToolSidebarPicker({ panels, onSelect }: {
206
207
  onSelect: (panel: AgentToolPanelId) => void;
207
208
  }): ReactNode;
208
209
 
209
- export { type AgentToolBrowserController, AgentToolBrowserPanel, type AgentToolBrowserPanelProps, type AgentToolPanelDefinition, AgentToolPanelIcon, type AgentToolPanelId, AgentToolSidebar, type AgentToolSidebarAction, type AgentToolSidebarCopy, type AgentToolSidebarHandle, type AgentToolSidebarHeaderDrag, AgentToolSidebarPicker, type AgentToolSidebarProps, type AgentToolSidebarReminderCounts, type AgentToolSidebarState, AgentToolSidebarToolbar, type AgentToolTab, agentToolBrowserDefaultUrl, agentToolEmptySidebarWidth, agentToolMainMinWidth, agentToolPanelDefaultWidthById, agentToolPanelIds, agentToolPanelMaxWidthById, agentToolPanelMinWidthById, clampAgentToolPanelWidth, createAgentToolBrowserFeature, createAgentToolSidebarState, filterAgentToolPanels, formatAgentToolReminderCount, isAgentToolPanelId, reduceAgentToolSidebarState, resolveAgentToolPanelExpansionReset, resolveAgentToolPanelExpansionTransfer, resolveAgentToolPanelMaxWidth, resolveAgentToolPanelPreferredWidth, resolveAgentToolSidebarLayoutWidth, resolveAgentToolSidebarWidth, shouldResizeAgentToolContainer };
210
+ export { type AgentToolBrowserController, AgentToolBrowserPanel, type AgentToolBrowserPanelProps, type AgentToolPanelDefinition, AgentToolPanelIcon, type AgentToolPanelId, AgentToolSidebar, type AgentToolSidebarAction, type AgentToolSidebarCopy, type AgentToolSidebarHandle, AgentToolSidebarHeaderContract, AgentToolSidebarPicker, type AgentToolSidebarProps, type AgentToolSidebarReminderCounts, type AgentToolSidebarState, AgentToolSidebarToolbar, type AgentToolTab, agentToolBrowserDefaultUrl, agentToolEmptySidebarWidth, agentToolMainMinWidth, agentToolPanelDefaultWidthById, agentToolPanelIds, agentToolPanelMaxWidthById, agentToolPanelMinWidthById, clampAgentToolPanelWidth, createAgentToolBrowserFeature, createAgentToolSidebarState, filterAgentToolPanels, formatAgentToolReminderCount, isAgentToolPanelId, reduceAgentToolSidebarState, resolveAgentToolPanelExpansionReset, resolveAgentToolPanelExpansionTransfer, resolveAgentToolPanelMaxWidth, resolveAgentToolPanelPreferredWidth, resolveAgentToolSidebarLayoutWidth, resolveAgentToolSidebarWidth, shouldAutoCollapseAgentToolSidebar, shouldResizeAgentToolContainer };