@mcp-b/react-components 0.57.0 → 0.58.0

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 (165) hide show
  1. package/dist/Card-BPkXIkBz.d.ts +46 -0
  2. package/dist/{CodeBlock-Dw1z6jc8.js → CodeBlock-Bs_Z03eC.js} +2 -1
  3. package/dist/{CodeBlock-CPotpyyM.d.ts → CodeBlock-DYp5V_4O.d.ts} +1 -1
  4. package/dist/{EmployeeChrome-CN99SVfF.d.ts → EmployeeChrome-DsdIek0l.d.ts} +2 -10
  5. package/dist/ExecutionBoard-DHfMvKlB.d.ts +64 -0
  6. package/dist/ExecutionResult-BSZsUbrL.js +279 -0
  7. package/dist/{FileTree-D61EeWRU.js → FileTree-DyLBn7O_.js} +1 -1
  8. package/dist/{ManagerOffice-D4L_xO4i.js → ManagerOffice-DHcLRhFu.js} +2 -17
  9. package/dist/{McpConnectorForm-BPWCo9bU.d.ts → McpConnectorForm-D4bY-lm_.d.ts} +1 -1
  10. package/dist/{McpPluginCatalog-uSh0gGeY.d.ts → McpPluginCatalog-2FZDLCeK.d.ts} +2 -2
  11. package/dist/{SetupChecklist-DWyifWWg.js → SetupChecklist-CKQ-mKYt.js} +1 -1
  12. package/dist/{ThinkRoutine-DGlKJbIy.d.ts → ThinkRoutine-DoZjbzyn.d.ts} +15 -3
  13. package/dist/{Workspace-Cr-aGDfx.d.ts → Workspace-iCkXvQRJ.d.ts} +1 -1
  14. package/dist/WorkspaceConcept-ByaG-kBq.d.ts +38 -0
  15. package/dist/WorkspaceExecutionTable-DNhj6YDX.d.ts +239 -0
  16. package/dist/{WorkspaceFile-DiwiJEwO.d.ts → WorkspaceFile-DkIZKoK6.d.ts} +1 -1
  17. package/dist/{WorkspaceFileView-DCvGBsI1.js → WorkspaceFileView-M2jC2P4p.js} +217 -139
  18. package/dist/components/agents-sdk/AgentActivity.js +1 -1
  19. package/dist/components/agents-sdk/AgentChat.js +4 -4
  20. package/dist/components/agents-sdk/BrowserLiveScreen.js +1 -1
  21. package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
  22. package/dist/components/agents-sdk/BrowserReplay.js +1 -1
  23. package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
  24. package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
  25. package/dist/components/agents-sdk/EmployeeApp.js +3 -7
  26. package/dist/components/agents-sdk/EmployeeChat.d.ts +3 -1
  27. package/dist/components/agents-sdk/EmployeeChat.js +11 -4
  28. package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
  29. package/dist/components/agents-sdk/EmployeeChrome.js +72 -57
  30. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +6 -3
  31. package/dist/components/agents-sdk/EmployeeSchedules.js +12 -10
  32. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
  33. package/dist/components/agents-sdk/EmployeeStartScreen.js +2 -2
  34. package/dist/components/agents-sdk/ExecutionBoard.d.ts +2 -0
  35. package/dist/components/agents-sdk/ExecutionBoard.js +648 -0
  36. package/dist/components/agents-sdk/ManagerAccountActions.js +1 -1
  37. package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
  38. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  39. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  40. package/dist/components/agents-sdk/ManagerOfficeScreens.js +4 -3
  41. package/dist/components/agents-sdk/McpConnectionRequest.d.ts +1 -1
  42. package/dist/components/agents-sdk/McpConnectionRequest.js +1 -1
  43. package/dist/components/agents-sdk/McpConnectorForm.d.ts +1 -1
  44. package/dist/components/agents-sdk/McpPluginCatalog.d.ts +1 -1
  45. package/dist/components/agents-sdk/McpPluginCatalog.js +16 -7
  46. package/dist/components/agents-sdk/McpServerIcon.d.ts +1 -1
  47. package/dist/components/agents-sdk/McpServerPicker.d.ts +2 -2
  48. package/dist/components/agents-sdk/McpServerPicker.js +1 -1
  49. package/dist/components/agents-sdk/ModelSelector.js +1 -1
  50. package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
  51. package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
  52. package/dist/components/agents-sdk/SubagentRunPanel.js +1 -1
  53. package/dist/components/agents-sdk/ThinkChatToolPanels.js +238 -209
  54. package/dist/components/agents-sdk/ThinkExecutionDetail.js +13 -34
  55. package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
  56. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +1 -1
  57. package/dist/components/agents-sdk/ThinkRoutine.d.ts +2 -2
  58. package/dist/components/agents-sdk/ThinkRoutineActions.d.ts +2 -2
  59. package/dist/components/agents-sdk/ThinkRoutineActions.js +25 -15
  60. package/dist/components/agents-sdk/ThinkRoutineBrowser.d.ts +1 -1
  61. package/dist/components/agents-sdk/ThinkRoutineBrowser.js +1 -1
  62. package/dist/components/agents-sdk/ThinkRoutineDetail.d.ts +5 -2
  63. package/dist/components/agents-sdk/ThinkRoutineDetail.js +13 -7
  64. package/dist/components/agents-sdk/ThinkRoutineForm.d.ts +23 -6
  65. package/dist/components/agents-sdk/ThinkRoutineForm.js +519 -212
  66. package/dist/components/agents-sdk/ThinkThreadPicker.js +1 -1
  67. package/dist/components/agents-sdk/TypeSafeConnectionDialog.d.ts +10 -0
  68. package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +34 -0
  69. package/dist/components/agents-sdk/WorkbenchBack.js +1 -1
  70. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  71. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
  72. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  73. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +2 -37
  74. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +2 -2
  75. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +3 -2
  76. package/dist/components/agents-sdk/WorkspaceExecution.d.ts +2 -92
  77. package/dist/components/agents-sdk/WorkspaceExecution.js +648 -131
  78. package/dist/components/agents-sdk/WorkspaceExecutionTable.d.ts +2 -0
  79. package/dist/components/agents-sdk/WorkspaceExecutionTable.js +824 -0
  80. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +3 -1
  81. package/dist/components/agents-sdk/WorkspaceExplorer.js +4 -3
  82. package/dist/components/agents-sdk/WorkspaceFile.d.ts +1 -1
  83. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +4 -2
  84. package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
  85. package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
  86. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
  87. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  88. package/dist/components/agents-sdk/WorkspaceProject.js +4 -3
  89. package/dist/components/agents-sdk/WorkspaceUserScript.d.ts +1 -1
  90. package/dist/components/agents-sdk/WorkspaceUserScript.js +3 -2
  91. package/dist/components/ai-sdk/Activity.js +1 -1
  92. package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
  93. package/dist/components/ai-sdk/Approval.js +1 -1
  94. package/dist/components/ai-sdk/Artifact.js +1 -1
  95. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  96. package/dist/components/ai-sdk/ChainOfThought.js +1 -1
  97. package/dist/components/ai-sdk/Checkpoint.js +1 -1
  98. package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
  99. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  100. package/dist/components/ai-sdk/ComposerLink.js +1 -1
  101. package/dist/components/ai-sdk/ConnectedAppCards.d.ts +1 -1
  102. package/dist/components/ai-sdk/ConnectedAppCards.js +1 -1
  103. package/dist/components/ai-sdk/Context.js +2 -2
  104. package/dist/components/ai-sdk/Conversation.js +1 -1
  105. package/dist/components/ai-sdk/Goal.js +1 -1
  106. package/dist/components/ai-sdk/MediaPreviewCard.d.ts +1 -1
  107. package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
  108. package/dist/components/ai-sdk/Message.js +2 -2
  109. package/dist/components/ai-sdk/MessageScroller.js +1 -1
  110. package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
  111. package/dist/components/ai-sdk/Plan.js +1 -1
  112. package/dist/components/ai-sdk/PromptInput.js +1 -1
  113. package/dist/components/ai-sdk/Queue.js +1 -1
  114. package/dist/components/ai-sdk/Reasoning.js +1 -1
  115. package/dist/components/ai-sdk/Sources.js +1 -1
  116. package/dist/components/ai-sdk/Task.js +1 -1
  117. package/dist/components/extension/ChatGptSignInScreen.js +2 -2
  118. package/dist/components/extension/CodexModelSelector.js +1 -1
  119. package/dist/components/extension/ConversationTabPicker.js +1 -1
  120. package/dist/components/foundations/Card.d.ts +2 -45
  121. package/dist/components/foundations/Checkbox.js +1 -1
  122. package/dist/components/foundations/ContextMenu.js +1 -1
  123. package/dist/components/foundations/Menubar.js +1 -1
  124. package/dist/components/foundations/SearchField.js +1 -1
  125. package/dist/components/foundations/Select.js +1 -1
  126. package/dist/components/foundations/Stepper.js +1 -1
  127. package/dist/components/foundations/Toast.js +1 -1
  128. package/dist/components/foundations/icons.d.ts +2 -2
  129. package/dist/components/foundations/icons.js +2 -2
  130. package/dist/components/general-purpose/Commit.js +2 -2
  131. package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
  132. package/dist/components/general-purpose/FileTree.js +1 -1
  133. package/dist/components/general-purpose/PricingPlanCard.js +1 -1
  134. package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
  135. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  136. package/dist/components/general-purpose/Terminal.js +2 -2
  137. package/dist/components/general-purpose/TestResults.js +1 -1
  138. package/dist/components/general-purpose/ThemeModeControl.js +1 -1
  139. package/dist/components/general-purpose/WebPreview.js +1 -1
  140. package/dist/components/nanites/AgentConnection.js +2 -2
  141. package/dist/components/nanites/AgentToolDetail.js +1 -1
  142. package/dist/{copy-button-Dk2vRe9j.js → copy-button-M4sAp9xS.js} +1 -1
  143. package/dist/execution-result-DWVmm-bL.js +80 -0
  144. package/dist/{icons-CUuD7iEh.d.ts → icons-Dj6id76o.d.ts} +2 -1
  145. package/dist/{icons-CeGfXO21.js → icons-DvlrWt54.js} +3 -2
  146. package/dist/{mcp-server-catalog-DgA9BnL0.d.ts → mcp-server-catalog-kaMWaSAL.d.ts} +3 -1
  147. package/dist/styles/app-top-bar.css +2 -1
  148. package/dist/styles/base.css +1 -0
  149. package/dist/styles/chatgpt-sign-in-screen.css +8 -14
  150. package/dist/styles/context.css +8 -0
  151. package/dist/styles/description-list.css +12 -9
  152. package/dist/styles/execution-board.css +383 -0
  153. package/dist/styles/index.css +3 -0
  154. package/dist/styles/mcp-plugin-catalog.css +8 -7
  155. package/dist/styles/think-chat-tool-panels.css +1 -2
  156. package/dist/styles/think-execution-workbench.css +1 -12
  157. package/dist/styles/think-routine.css +39 -41
  158. package/dist/styles/workspace-concepts.css +441 -17
  159. package/dist/styles/workspace-explorer.css +18 -4
  160. package/dist/utils/mcp-server-catalog.d.ts +2 -2
  161. package/dist/utils/mcp-server-catalog.js +18 -1
  162. package/dist/utils/structured-code.d.ts +1 -1
  163. package/dist/{workspace-assets-wW_lQLYK.js → workspace-assets-DVn0d-fN.js} +24 -81
  164. package/dist/workspace-delete-DfloiBWp.js +80 -0
  165. package/package.json +3 -2
@@ -11,23 +11,6 @@
11
11
  background: var(--sigvelo-color-canvas);
12
12
  }
13
13
 
14
- /* Session run outcome on the execution card's Last run row. */
15
- .workspace-execution-outcome {
16
- display: inline-flex;
17
- align-items: center;
18
- gap: var(--sigvelo-spacing-1);
19
- font-size: var(--sigvelo-text-xs);
20
- line-height: var(--sigvelo-text-xs-leading);
21
- white-space: nowrap;
22
- color: var(--sigvelo-color-success-text);
23
- }
24
-
25
- @media (forced-colors: active) {
26
- .workspace-execution-outcome {
27
- color: CanvasText;
28
- }
29
- }
30
-
31
14
  .workspace-concept-panel__header {
32
15
  display: flex;
33
16
  align-items: center;
@@ -53,3 +36,444 @@
53
36
  overflow: auto;
54
37
  padding: var(--sigvelo-layout-gutter);
55
38
  }
39
+
40
+ /* The library stays compact; the selected workflow owns inputs, results and steps. */
41
+ .workspace-execution-card__actions,
42
+ .workspace-execution-card__meta,
43
+ .workspace-execution-status,
44
+ .workspace-execution-apps,
45
+ .workspace-execution-apps a {
46
+ display: flex;
47
+ align-items: center;
48
+ gap: var(--sigvelo-spacing-2);
49
+ min-inline-size: 0;
50
+ }
51
+ .workspace-execution-card__actions {
52
+ gap: var(--sigvelo-spacing-1);
53
+ }
54
+ .workspace-execution-card__body {
55
+ display: grid;
56
+ gap: var(--sigvelo-spacing-2);
57
+ }
58
+ .workspace-execution-card__body:has(> .workspace-execution-card__meta:empty):not(
59
+ :has(> :nth-child(2))
60
+ ) {
61
+ display: none;
62
+ }
63
+ .workspace-execution-card__meta {
64
+ flex-wrap: wrap;
65
+ }
66
+ .workspace-execution-card__summary {
67
+ margin: 0;
68
+ overflow: hidden;
69
+ text-overflow: ellipsis;
70
+ white-space: nowrap;
71
+ color: var(--sigvelo-color-text-muted);
72
+ font-size: var(--sigvelo-text-sm);
73
+ }
74
+ .workspace-execution-status {
75
+ margin: 0;
76
+ color: var(--sigvelo-color-text-muted);
77
+ font-size: var(--sigvelo-text-sm);
78
+ }
79
+ .workspace-execution-status > svg {
80
+ inline-size: var(--sigvelo-control-icon-size-sm);
81
+ block-size: var(--sigvelo-control-icon-size-sm);
82
+ flex: none;
83
+ }
84
+ .workspace-execution-apps {
85
+ flex-wrap: wrap;
86
+ }
87
+ .workspace-execution-apps a {
88
+ color: var(--sigvelo-color-text-muted);
89
+ font-size: var(--sigvelo-text-xs);
90
+ text-decoration: none;
91
+ border-radius: var(--sigvelo-radius-sm);
92
+ }
93
+ .workspace-execution-apps a:hover {
94
+ color: var(--sigvelo-color-primary-text);
95
+ }
96
+ .workspace-execution-apps a:focus-visible {
97
+ outline: var(--sigvelo-border-width) solid var(--sigvelo-color-primary-border);
98
+ outline-offset: var(--sigvelo-spacing-1);
99
+ }
100
+ .workspace-execution-workbench,
101
+ .workspace-execution-workbench > form {
102
+ display: flex;
103
+ flex-direction: column;
104
+ min-inline-size: 0;
105
+ min-block-size: 0;
106
+ block-size: 100%;
107
+ overflow: hidden;
108
+ }
109
+ .workspace-execution-workbench {
110
+ color: var(--sigvelo-color-text);
111
+ background: var(--sigvelo-color-canvas);
112
+ }
113
+ .workspace-execution-workbench > form {
114
+ gap: 0;
115
+ }
116
+ .workspace-execution-workbench__header {
117
+ display: grid;
118
+ flex: none;
119
+ gap: var(--sigvelo-spacing-3);
120
+ padding: var(--sigvelo-layout-gutter);
121
+ }
122
+ .workspace-execution-workbench__back {
123
+ justify-self: start;
124
+ }
125
+ .workspace-execution-workbench__heading,
126
+ .workspace-execution-workbench__actions {
127
+ display: flex;
128
+ align-items: center;
129
+ gap: var(--sigvelo-spacing-2);
130
+ min-inline-size: 0;
131
+ }
132
+ .workspace-execution-workbench__heading h2 {
133
+ margin: 0;
134
+ min-inline-size: 0;
135
+ overflow-wrap: anywhere;
136
+ font-size: var(--sigvelo-text-sm);
137
+ font-weight: var(--sigvelo-font-weight-semibold);
138
+ line-height: var(--sigvelo-leading-tight);
139
+ letter-spacing: var(--sigvelo-tracking-tight);
140
+ }
141
+ .workspace-execution-workbench__heading > button {
142
+ flex: none;
143
+ }
144
+ .workspace-execution-workbench__actions {
145
+ flex-wrap: wrap;
146
+ }
147
+ .workspace-execution-workbench__content,
148
+ .workspace-execution-workbench__tabs,
149
+ .workspace-execution-workbench__steps {
150
+ display: flex;
151
+ flex-direction: column;
152
+ flex: 1;
153
+ min-inline-size: 0;
154
+ min-block-size: 0;
155
+ overflow: hidden;
156
+ }
157
+ .workspace-execution-workbench__inputs {
158
+ flex: none;
159
+ max-block-size: 40%;
160
+ padding: var(--sigvelo-spacing-2) var(--sigvelo-layout-gutter);
161
+ overflow: auto;
162
+ }
163
+ .workspace-execution-workbench__inputs > summary,
164
+ .workspace-execution-card__options > summary,
165
+ .workspace-execution-workbench__history > summary {
166
+ cursor: pointer;
167
+ color: var(--sigvelo-color-text-muted);
168
+ font-size: var(--sigvelo-text-sm);
169
+ }
170
+ .workspace-execution-workbench__inputs[open] > summary,
171
+ .workspace-execution-card__options[open] > summary,
172
+ .workspace-execution-workbench__history[open] > summary {
173
+ margin-block-end: var(--sigvelo-spacing-2);
174
+ }
175
+ .workspace-execution-workbench__tab-list {
176
+ flex: none;
177
+ padding-inline: var(--sigvelo-layout-gutter);
178
+ border-block-end-color: var(--sigvelo-color-neutral-border-subtle);
179
+ }
180
+ .workspace-execution-workbench__tab {
181
+ gap: var(--sigvelo-spacing-2);
182
+ }
183
+ .workspace-execution-workbench__tab > svg {
184
+ inline-size: var(--sigvelo-control-icon-size-sm);
185
+ block-size: var(--sigvelo-control-icon-size-sm);
186
+ }
187
+ .workspace-execution-workbench__results {
188
+ display: flex;
189
+ flex: 1;
190
+ flex-direction: column;
191
+ gap: var(--sigvelo-spacing-4);
192
+ min-block-size: 0;
193
+ padding: var(--sigvelo-layout-gutter);
194
+ overflow: auto;
195
+ }
196
+ .workspace-execution-workbench__steps {
197
+ padding: 0;
198
+ }
199
+ .workspace-execution-workbench__results[hidden],
200
+ .workspace-execution-workbench__steps[hidden] {
201
+ display: none;
202
+ }
203
+ .workspace-execution-workbench__board {
204
+ display: flex;
205
+ flex-direction: column;
206
+ flex: 1;
207
+ block-size: auto;
208
+ min-block-size: 0;
209
+ }
210
+ .workspace-execution-workbench__board .execution-board__stage {
211
+ min-block-size: 0;
212
+ }
213
+
214
+ .workspace-execution-table {
215
+ display: flex;
216
+ flex: 1;
217
+ flex-direction: column;
218
+ min-inline-size: 0;
219
+ min-block-size: 0;
220
+ overflow: hidden;
221
+ }
222
+ .workspace-execution-table__body {
223
+ flex: 1;
224
+ gap: var(--sigvelo-layout-gutter);
225
+ padding-block: var(--sigvelo-layout-gutter);
226
+ padding-inline: var(--sigvelo-spacing-2);
227
+ min-block-size: 0;
228
+ overflow: auto;
229
+ }
230
+ /* Navigation above an individual row's steps. */
231
+ .workspace-execution-table__source {
232
+ display: flex;
233
+ align-items: center;
234
+ justify-content: space-between;
235
+ padding-block: var(--sigvelo-layout-gutter);
236
+ padding-inline: var(--sigvelo-spacing-2);
237
+ font-size: var(--sigvelo-text-sm);
238
+ }
239
+ .workspace-execution-table__source-section {
240
+ display: grid;
241
+ gap: var(--sigvelo-spacing-1);
242
+ min-inline-size: 0;
243
+ }
244
+ .workspace-execution-table__source-line {
245
+ display: flex;
246
+ align-items: center;
247
+ gap: var(--sigvelo-spacing-2);
248
+ min-inline-size: 0;
249
+ font-size: var(--sigvelo-text-sm);
250
+ }
251
+ .workspace-execution-table__source-line > .workspace-execution-table__hint {
252
+ flex: none;
253
+ }
254
+ .workspace-execution-table__hint {
255
+ color: var(--sigvelo-color-text-muted);
256
+ font-size: var(--sigvelo-text-xs);
257
+ margin: 0;
258
+ overflow-wrap: anywhere;
259
+ }
260
+ .workspace-execution-table__scroll,
261
+ .execution-result__scroll {
262
+ overflow: auto;
263
+ min-block-size: 0;
264
+ min-inline-size: 0;
265
+ }
266
+ .workspace-execution-table__scroll {
267
+ flex-shrink: 0;
268
+ }
269
+ .workspace-execution-table__preview .workspace-execution-table__row-number {
270
+ inline-size: var(--sigvelo-control-height-sm);
271
+ min-inline-size: var(--sigvelo-control-height-sm);
272
+ padding-inline: 0;
273
+ text-align: center;
274
+ color: var(--sigvelo-color-text-muted);
275
+ }
276
+ .workspace-execution-table__row-number > [role="img"] {
277
+ display: grid;
278
+ place-items: center;
279
+ }
280
+ .workspace-execution-table__row-number > [role="img"] svg {
281
+ inline-size: var(--sigvelo-control-icon-size-sm);
282
+ block-size: var(--sigvelo-control-icon-size-sm);
283
+ }
284
+ .workspace-execution-table__preview [data-result] {
285
+ background: var(--sigvelo-color-primary-bg-subtle);
286
+ }
287
+ .workspace-execution-table__preview thead [data-result] {
288
+ color: var(--sigvelo-color-primary-text-on-subtle);
289
+ }
290
+ .workspace-execution-table__preview > tbody > tr[data-status="running"] {
291
+ background: var(--sigvelo-color-neutral-bg-subtle);
292
+ }
293
+ .workspace-execution-table__footer {
294
+ display: grid;
295
+ flex: none;
296
+ grid-template-columns: repeat(2, minmax(0, 1fr));
297
+ gap: var(--sigvelo-layout-cluster);
298
+ padding-block: var(--sigvelo-layout-gutter);
299
+ padding-inline: var(--sigvelo-spacing-2);
300
+ border-block-start: var(--sigvelo-border-width) var(--sigvelo-border-style)
301
+ var(--sigvelo-color-neutral-border-subtle);
302
+ }
303
+ .workspace-execution-table__footer > [data-slot="field-error"] {
304
+ grid-column: 1 / -1;
305
+ }
306
+ .workspace-execution-table__footer:empty {
307
+ display: none;
308
+ }
309
+ .workspace-execution-table__footer > button {
310
+ white-space: normal;
311
+ }
312
+ .workspace-execution-table__footer > button:only-of-type {
313
+ grid-column: 1 / -1;
314
+ }
315
+ .workspace-execution-table table,
316
+ .execution-result__table {
317
+ border-collapse: collapse;
318
+ inline-size: 100%;
319
+ font-size: var(--sigvelo-text-sm);
320
+ text-align: start;
321
+ }
322
+ .workspace-execution-table th,
323
+ .workspace-execution-table td,
324
+ .execution-result__table :is(th, td) {
325
+ border-block-end: var(--sigvelo-border-width) var(--sigvelo-border-style)
326
+ var(--sigvelo-color-neutral-border-subtle);
327
+ overflow-wrap: anywhere;
328
+ max-inline-size: 14rem;
329
+ }
330
+ .workspace-execution-table__preview > :is(thead, tbody) > tr > :is(th, td) {
331
+ overflow-wrap: break-word;
332
+ padding: var(--sigvelo-spacing-2);
333
+ vertical-align: middle;
334
+ }
335
+ .workspace-execution-table th,
336
+ .execution-result__table th {
337
+ text-align: start;
338
+ }
339
+ .workspace-execution-table th {
340
+ font-weight: var(--sigvelo-font-weight-normal);
341
+ }
342
+ .workspace-execution-table thead,
343
+ .execution-result__table thead {
344
+ color: var(--sigvelo-color-text-muted);
345
+ }
346
+
347
+ .execution-result {
348
+ display: grid;
349
+ gap: var(--sigvelo-spacing-2);
350
+ min-inline-size: 0;
351
+ overflow-wrap: anywhere;
352
+ }
353
+ .execution-result__summary {
354
+ margin: 0;
355
+ }
356
+ .execution-result__text,
357
+ .execution-result__summary {
358
+ white-space: pre-wrap;
359
+ }
360
+ .execution-result__fields {
361
+ font-size: var(--sigvelo-text-sm);
362
+ }
363
+ .execution-result__list {
364
+ display: grid;
365
+ gap: var(--sigvelo-spacing-3);
366
+ margin: 0;
367
+ padding-inline-start: var(--sigvelo-spacing-4);
368
+ }
369
+
370
+ .execution-result > .execution-result__fields {
371
+ display: flex;
372
+ flex-wrap: wrap;
373
+ gap: var(--sigvelo-spacing-3) var(--sigvelo-spacing-5);
374
+ }
375
+ .execution-result > .execution-result__fields > .execution-result__field {
376
+ inline-size: 100%;
377
+ grid-template-columns: fit-content(40%) minmax(0, 1fr);
378
+ }
379
+ .execution-result > .execution-result__fields > .execution-result__field[data-number] {
380
+ display: flex;
381
+ inline-size: auto;
382
+ align-items: baseline;
383
+ gap: var(--sigvelo-spacing-1-5);
384
+ }
385
+ .execution-result
386
+ > .execution-result__fields
387
+ > .execution-result__field[data-number]
388
+ > .execution-result__value {
389
+ order: -1;
390
+ flex: none;
391
+ font-weight: var(--sigvelo-font-weight-semibold);
392
+ font-variant-numeric: tabular-nums;
393
+ }
394
+ .execution-result
395
+ .execution-result__field:has(
396
+ .execution-result__list,
397
+ .execution-result__fields,
398
+ .execution-result__scroll
399
+ ) {
400
+ grid-template-columns: minmax(0, 1fr);
401
+ gap: var(--sigvelo-spacing-2);
402
+ }
403
+ .execution-result__scroll {
404
+ border: var(--sigvelo-border-width) var(--sigvelo-border-style)
405
+ var(--sigvelo-color-neutral-border-subtle);
406
+ border-radius: var(--sigvelo-radius-md);
407
+ }
408
+ .execution-result__table :is(th, td) {
409
+ padding: var(--sigvelo-spacing-3);
410
+ vertical-align: middle;
411
+ }
412
+ .execution-result__table thead {
413
+ background: var(--sigvelo-color-neutral-bg-subtle);
414
+ }
415
+ .execution-result__table th {
416
+ padding-block: var(--sigvelo-spacing-2);
417
+ white-space: nowrap;
418
+ font-weight: var(--sigvelo-font-weight-semibold);
419
+ }
420
+ .execution-result__table th[scope="colgroup"] {
421
+ text-align: center;
422
+ color: var(--sigvelo-color-text);
423
+ }
424
+ .execution-result__table th + th,
425
+ .execution-result__table [data-group-start] {
426
+ border-inline-start: var(--sigvelo-border-width) var(--sigvelo-border-style)
427
+ var(--sigvelo-color-neutral-border-subtle);
428
+ }
429
+ .execution-result__table [data-kind="text"] {
430
+ min-inline-size: 8rem;
431
+ max-inline-size: 20rem;
432
+ }
433
+ .execution-result__table [data-kind="prose"] {
434
+ min-inline-size: 18rem;
435
+ max-inline-size: 26rem;
436
+ }
437
+ .execution-result__table [data-kind="number"] {
438
+ inline-size: 1%;
439
+ min-inline-size: 4rem;
440
+ text-align: end;
441
+ font-variant-numeric: tabular-nums;
442
+ }
443
+ .execution-result__table > tbody > tr:hover,
444
+ .execution-result__table > tbody > tr[data-expanded] {
445
+ background: var(--sigvelo-color-neutral-bg-subtle);
446
+ }
447
+ .execution-result__table > tbody > tr:last-child > td {
448
+ border-block-end: 0;
449
+ }
450
+ .execution-result__table .execution-result__toggle-cell {
451
+ inline-size: 1%;
452
+ padding: var(--sigvelo-spacing-1);
453
+ }
454
+ .execution-result__expand[aria-expanded="true"] svg {
455
+ rotate: 90deg;
456
+ }
457
+ .execution-result__table .execution-result__detail-cell {
458
+ max-inline-size: none;
459
+ padding: var(--sigvelo-spacing-4) var(--sigvelo-spacing-5);
460
+ }
461
+ .execution-result__detail {
462
+ display: grid;
463
+ gap: var(--sigvelo-spacing-4);
464
+ min-inline-size: 0;
465
+ padding-inline-start: var(--sigvelo-spacing-3);
466
+ border-inline-start: var(--sigvelo-border-width) var(--sigvelo-border-style)
467
+ var(--sigvelo-color-neutral-border-subtle);
468
+ }
469
+ .execution-result__detail-title {
470
+ margin: 0 0 var(--sigvelo-spacing-2);
471
+ font-weight: var(--sigvelo-font-weight-semibold);
472
+ }
473
+ .execution-result__muted {
474
+ color: var(--sigvelo-color-text-muted);
475
+ }
476
+ .execution-result__field:has(> dd > .execution-result__scroll) > dt {
477
+ font-weight: var(--sigvelo-font-weight-semibold);
478
+ color: var(--sigvelo-color-text);
479
+ }
@@ -243,7 +243,7 @@
243
243
 
244
244
  .workspace-explorer__skill-name {
245
245
  margin: 0;
246
- font-size: var(--sigvelo-text-xl);
246
+ font-size: var(--sigvelo-text-sm);
247
247
  font-weight: var(--sigvelo-font-weight-bold);
248
248
  line-height: var(--sigvelo-leading-tight);
249
249
  }
@@ -452,13 +452,13 @@
452
452
  --yarl__button_filter: none;
453
453
  --yarl__button_margin: var(--sigvelo-spacing-1);
454
454
  --yarl__button_padding: var(--sigvelo-spacing-2);
455
- --yarl__icon_size: var(--sigvelo-control-icon-size-xl);
455
+ --yarl__icon_size: var(--sigvelo-density-compact-control-icon-size);
456
456
  --yarl__toolbar_padding: var(--sigvelo-spacing-2);
457
457
  }
458
458
 
459
459
  .workspace-media-lightbox .yarl__button {
460
- min-inline-size: var(--sigvelo-control-height-xl);
461
- min-block-size: var(--sigvelo-control-height-xl);
460
+ min-inline-size: var(--sigvelo-density-compact-control-height);
461
+ min-block-size: var(--sigvelo-density-compact-control-height);
462
462
  border-radius: var(--sigvelo-radius-md);
463
463
  }
464
464
 
@@ -467,6 +467,13 @@
467
467
  outline-offset: var(--sigvelo-focus-offset);
468
468
  }
469
469
 
470
+ @media (any-pointer: coarse) {
471
+ .workspace-media-lightbox .yarl__button {
472
+ min-inline-size: var(--sigvelo-control-height-xl);
473
+ min-block-size: var(--sigvelo-control-height-xl);
474
+ }
475
+ }
476
+
470
477
  @media (forced-colors: active) {
471
478
  .workspace-explorer__image-trigger,
472
479
  .workspace-explorer__pdf,
@@ -515,3 +522,10 @@
515
522
  flex-direction: column;
516
523
  }
517
524
  }
525
+
526
+ .workspace-explorer__preview {
527
+ flex: 1;
528
+ min-block-size: 0;
529
+ overflow: auto;
530
+ padding: var(--sigvelo-spacing-4);
531
+ }
@@ -1,2 +1,2 @@
1
- import { a as MCP_SERVER_SETUP_AUTH, c as McpServerSetupAuth, d as McpServerSetupLink, f as findCatalogMcpServerCard, h as getMcpServerRuntimeState, i as MANUAL_MCP_SERVER_CARDS, l as McpServerSetupAuthField, m as getMcpServerIconSrc, n as DCR_MCP_SERVER_CARDS, o as McpServerCard, p as getMcpServerEntry, r as DEFAULT_MCP_SERVER_CARDS, s as McpServerManualSetup, t as CUSTOM_MCP_SERVER_CARD, u as McpServerSetupAuthFieldName } from "../mcp-server-catalog-DgA9BnL0.js";
2
- export { CUSTOM_MCP_SERVER_CARD, DCR_MCP_SERVER_CARDS, DEFAULT_MCP_SERVER_CARDS, MANUAL_MCP_SERVER_CARDS, MCP_SERVER_SETUP_AUTH, McpServerCard, McpServerManualSetup, McpServerSetupAuth, McpServerSetupAuthField, McpServerSetupAuthFieldName, McpServerSetupLink, findCatalogMcpServerCard, getMcpServerEntry, getMcpServerIconSrc, getMcpServerRuntimeState };
1
+ import { a as MCP_SERVER_SETUP_AUTH, c as McpServerSetupAuth, d as McpServerSetupLink, f as findCatalogMcpServerCard, g as providerCardForHref, h as getMcpServerRuntimeState, i as MANUAL_MCP_SERVER_CARDS, l as McpServerSetupAuthField, m as getMcpServerIconSrc, n as DCR_MCP_SERVER_CARDS, o as McpServerCard, p as getMcpServerEntry, r as DEFAULT_MCP_SERVER_CARDS, s as McpServerManualSetup, t as CUSTOM_MCP_SERVER_CARD, u as McpServerSetupAuthFieldName } from "../mcp-server-catalog-kaMWaSAL.js";
2
+ export { CUSTOM_MCP_SERVER_CARD, DCR_MCP_SERVER_CARDS, DEFAULT_MCP_SERVER_CARDS, MANUAL_MCP_SERVER_CARDS, MCP_SERVER_SETUP_AUTH, McpServerCard, McpServerManualSetup, McpServerSetupAuth, McpServerSetupAuthField, McpServerSetupAuthFieldName, McpServerSetupLink, findCatalogMcpServerCard, getMcpServerEntry, getMcpServerIconSrc, getMcpServerRuntimeState, providerCardForHref };
@@ -156,6 +156,23 @@ const CUSTOM_MCP_SERVER_CARD = {
156
156
  function getMcpServerIconSrc(server) {
157
157
  return server.icon ?? bundledSimpleIcon(server) ?? inferFaviconUrl(server.url);
158
158
  }
159
+ /** Product identity for document URLs whose apps share an origin. */
160
+ function providerCardForHref(href) {
161
+ let parsed;
162
+ try {
163
+ parsed = new URL(href);
164
+ } catch {
165
+ return;
166
+ }
167
+ if (parsed.protocol !== "https:" && parsed.protocol !== "http:") return void 0;
168
+ const host = parsed.hostname.toLowerCase();
169
+ if (host === "docs.google.com" || host.endsWith(".docs.google.com")) {
170
+ if (parsed.pathname.includes("/spreadsheets/")) return findCatalogMcpServerCard({ id: "google-sheets" });
171
+ if (parsed.pathname.includes("/document/")) return findCatalogMcpServerCard({ id: "google-docs" });
172
+ if (parsed.pathname.includes("/presentation/")) return findCatalogMcpServerCard({ id: "google-slides" });
173
+ }
174
+ if (host === "drive.google.com" || host.endsWith(".drive.google.com")) return findCatalogMcpServerCard({ id: "google-drive" });
175
+ }
159
176
  /** Match a live MCP entry or channel name to a catalog card that already has a brand mark. */
160
177
  function findCatalogMcpServerCard(query) {
161
178
  const id = query.id?.trim().toLowerCase();
@@ -959,4 +976,4 @@ const DEFAULT_MCP_SERVER_CARDS = [
959
976
  } : server;
960
977
  });
961
978
  //#endregion
962
- export { CUSTOM_MCP_SERVER_CARD, DCR_MCP_SERVER_CARDS, DEFAULT_MCP_SERVER_CARDS, MANUAL_MCP_SERVER_CARDS, MCP_SERVER_SETUP_AUTH, findCatalogMcpServerCard, getMcpServerEntry, getMcpServerIconSrc, getMcpServerRuntimeState };
979
+ export { CUSTOM_MCP_SERVER_CARD, DCR_MCP_SERVER_CARDS, DEFAULT_MCP_SERVER_CARDS, MANUAL_MCP_SERVER_CARDS, MCP_SERVER_SETUP_AUTH, findCatalogMcpServerCard, getMcpServerEntry, getMcpServerIconSrc, getMcpServerRuntimeState, providerCardForHref };
@@ -1,4 +1,4 @@
1
- import { O as CodeBlockLanguage } from "../CodeBlock-CPotpyyM.js";
1
+ import { O as CodeBlockLanguage } from "../CodeBlock-DYp5V_4O.js";
2
2
  //#region src/utils/structured-code.d.ts
3
3
  export interface StructuredCodeDisplay {
4
4
  code: string;
@@ -1,87 +1,12 @@
1
1
  import { composerLinkHref } from "./utils/composer-link.js";
2
2
  import { canRequestFavicon, inferFaviconUrl } from "./utils/favicon.js";
3
- import { Q as TrashIcon, S as FileIcon } from "./icons-CeGfXO21.js";
4
- import { Button } from "./components/foundations/Button.js";
3
+ import { getMcpServerIconSrc, providerCardForHref } from "./utils/mcp-server-catalog.js";
4
+ import { D as LinkIcon, S as FileIcon } from "./icons-DvlrWt54.js";
5
5
  import { Tooltip } from "./components/foundations/Tooltip.js";
6
- import { IconButton } from "./components/foundations/IconButton.js";
7
6
  import { ComposerLink } from "./components/ai-sdk/ComposerLink.js";
8
- import { AlertDialog } from "./components/foundations/AlertDialog.js";
9
7
  import { AppIcon } from "./components/foundations/AppIcon.js";
10
8
  import * as React from "react";
11
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
- //#region src/components/_internal/workspace-delete.tsx
13
- /**
14
- * Header trash control for a workspace file. The card owns the confirm dialog;
15
- * the host deletes the file.
16
- */
17
- function WorkspaceDeleteControl({ name, onDelete }) {
18
- const triggerRef = React.useRef(null);
19
- const [open, setOpen] = React.useState(false);
20
- const [busy, setBusy] = React.useState(false);
21
- const [errorMessage, setErrorMessage] = React.useState("");
22
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(IconButton, {
23
- ref: triggerRef,
24
- type: "button",
25
- label: `Delete ${name}`,
26
- tooltip: "Delete",
27
- variant: "ghost",
28
- color: "neutral",
29
- disabled: busy,
30
- "aria-haspopup": "dialog",
31
- onClick: () => {
32
- setErrorMessage("");
33
- setOpen(true);
34
- },
35
- children: /* @__PURE__ */ jsx(TrashIcon, {})
36
- }), /* @__PURE__ */ jsx(AlertDialog.Root, {
37
- open,
38
- onOpenChange: (nextOpen, eventDetails) => {
39
- if (busy) {
40
- eventDetails.cancel();
41
- return;
42
- }
43
- setOpen(nextOpen);
44
- if (!nextOpen) setErrorMessage("");
45
- },
46
- children: /* @__PURE__ */ jsxs(AlertDialog.Portal, { children: [/* @__PURE__ */ jsx(AlertDialog.Backdrop, {}), /* @__PURE__ */ jsx(AlertDialog.Viewport, { children: /* @__PURE__ */ jsxs(AlertDialog.Popup, {
47
- finalFocus: triggerRef,
48
- children: [
49
- /* @__PURE__ */ jsxs(AlertDialog.Title, { children: [
50
- "Delete ",
51
- name,
52
- "?"
53
- ] }),
54
- /* @__PURE__ */ jsx(AlertDialog.Description, { children: "This deletes the file. This cannot be undone." }),
55
- errorMessage ? /* @__PURE__ */ jsx("p", {
56
- role: "alert",
57
- children: errorMessage
58
- }) : null,
59
- /* @__PURE__ */ jsxs(AlertDialog.Footer, { children: [/* @__PURE__ */ jsx(AlertDialog.Close, {
60
- disabled: busy,
61
- children: "Cancel"
62
- }), /* @__PURE__ */ jsx(Button, {
63
- type: "button",
64
- color: "destructive",
65
- disabled: busy,
66
- onClick: () => {
67
- if (busy) return;
68
- setBusy(true);
69
- setErrorMessage("");
70
- Promise.resolve(onDelete()).then(() => {
71
- setOpen(false);
72
- }).catch((error) => {
73
- setErrorMessage(error instanceof Error && error.message.trim() ? error.message : "The file could not be deleted. Try again.");
74
- }).finally(() => {
75
- setBusy(false);
76
- });
77
- },
78
- children: busy ? "Deleting…" : "Delete"
79
- })] })
80
- ]
81
- }) })] })
82
- })] });
83
- }
84
- //#endregion
9
+ import { jsx, jsxs } from "react/jsx-runtime";
85
10
  //#region src/components/_internal/workspace-assets.tsx
86
11
  /** HTTP(S) URL from a field value, or nothing. */
87
12
  function httpUrl(value) {
@@ -92,9 +17,10 @@ function httpUrl(value) {
92
17
  return;
93
18
  }
94
19
  }
95
- /** Site mark for a URL. Decorative — sit it next to visible text. */
20
+ /** Product or site mark for a URL. Decorative — sit it next to visible text. */
96
21
  function FaviconMark({ fallback, href }) {
97
- const src = href ? inferFaviconUrl(href) : void 0;
22
+ const product = href ? providerCardForHref(href) : void 0;
23
+ const src = product ? getMcpServerIconSrc(product) : href ? inferFaviconUrl(href) : void 0;
98
24
  const allowed = Boolean(src && canRequestFavicon(src));
99
25
  const [failedSrc, setFailedSrc] = React.useState(null);
100
26
  if (!src || !allowed || Boolean(src) && failedSrc === src) {
@@ -118,6 +44,23 @@ function FaviconMark({ fallback, href }) {
118
44
  }), /* @__PURE__ */ jsx(AppIcon.Fallback, { children: fallback ?? null })]
119
45
  });
120
46
  }
47
+ /** Compact site identity for source and result values; keeps the exact destination. */
48
+ function WebsiteLink({ href }) {
49
+ return /* @__PURE__ */ jsxs("a", {
50
+ className: "sigvelo-cluster",
51
+ href,
52
+ title: href,
53
+ target: "_blank",
54
+ rel: "noreferrer",
55
+ children: [/* @__PURE__ */ jsx(FaviconMark, {
56
+ href,
57
+ fallback: /* @__PURE__ */ jsx(LinkIcon, {})
58
+ }), /* @__PURE__ */ jsx("span", {
59
+ className: "sigvelo-truncate sigvelo-truncate-grow",
60
+ children: new URL(href).hostname
61
+ })]
62
+ });
63
+ }
121
64
  /**
122
65
  * Supplementary tooltip on an already-interactive control. Paths, globs, and
123
66
  * enable labels belong here — not as persistent body copy.
@@ -165,4 +108,4 @@ function WorkspaceComposerLink({ hint, icon, kind = "file", label, onOpen, value
165
108
  });
166
109
  }
167
110
  //#endregion
168
- export { WorkspaceDeleteControl as i, WorkspaceComposerLink as n, httpUrl as r, FaviconMark as t };
111
+ export { httpUrl as a, WorkspaceComposerLink as i, Hint as n, WebsiteLink as r, FaviconMark as t };