@ultrst-armada/floks 2.0.18 → 2.0.20

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "packageName": "@ultrst-armada/floks",
4
- "version": "2.0.18",
5
- "sourceCommit": "62287ab556bd87fcfa3e8af1d6345ecb515076de",
4
+ "version": "2.0.20",
5
+ "sourceCommit": "763e337e1b365be85059c2c273f2d7614a3bd8dc",
6
6
  "releaseWorkflow": "npm Release",
7
- "workflowRunId": "45114224479"
7
+ "workflowRunId": "46015722155"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrst-armada/floks",
3
- "version": "2.0.18",
3
+ "version": "2.0.20",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,34 +1,26 @@
1
1
  import {
2
- BIOME_CONFIGS,
3
- COORD_SCALE,
4
- CanvasBackground2D,
5
- CanvasErrorBoundary,
6
- ContainerNode2D,
7
- EffectNode2D,
8
- MagneticTraces2D,
9
- ModuleNode2D,
10
- NODE_CARD_WIDTH,
11
- Node2DBase,
12
- NodeRenderer2D,
13
- RecorderWaveformDisplay,
14
- RotaryKnob,
15
- SOCKET_ROW_HEIGHT,
16
- Socket2D,
17
- TriggerNode2D,
18
- Wire2D,
19
- renderSpriteIcon,
20
- useCanvas2DCoordinates,
21
- useCanvas2DMagnetic
22
- } from "./chunk-ZDADZVQ2.js";
2
+ FodModule,
3
+ authorizedRemoteCategories,
4
+ filterRemoteDefinitions,
5
+ filteredCapabilityPicker,
6
+ invokeKloksPublishedWorkflow,
7
+ isLiveFrontendDefinition,
8
+ isRemoteGraphNode,
9
+ readRemoteHandle,
10
+ readRemotePortSnapshot,
11
+ remoteCapabilityCategory,
12
+ remoteExecutionFeedback,
13
+ remotePortFingerprint,
14
+ snapshotRemotePorts,
15
+ toKloksPublishedWorkflowCall,
16
+ validateRemoteConnections,
17
+ validateRemoteGraph
18
+ } from "./chunk-ZX2OTCIC.js";
23
19
  import {
24
20
  PredictiveGhostNodeCard,
25
21
  PredictiveHudToolbar,
26
22
  PredictiveLayer2D
27
23
  } from "./chunk-A7BSZ5QO.js";
28
- import {
29
- getSocketLocalOffset,
30
- getSocketScreenPosition
31
- } from "./chunk-FPRATI44.js";
32
24
  import {
33
25
  Tile,
34
26
  TileCreateButton,
@@ -39,6 +31,17 @@ import {
39
31
  AikoModule,
40
32
  EmbeddedAikoModule
41
33
  } from "./chunk-OH7S4XFZ.js";
34
+ import {
35
+ CanvasViewport,
36
+ InfiniteCanvas,
37
+ MiniMap,
38
+ useCanvas
39
+ } from "./chunk-34YRDZPJ.js";
40
+ import {
41
+ DockBar,
42
+ DockItem,
43
+ useDock
44
+ } from "./chunk-6VB74RCH.js";
42
45
  import {
43
46
  UiAuthoringBindingEditor,
44
47
  UiAuthoringInspector,
@@ -57,40 +60,11 @@ import {
57
60
  setAuthoringOperations,
58
61
  updateAuthoringNode
59
62
  } from "./chunk-CI4C6DJR.js";
60
- import {
61
- DockBar,
62
- DockItem,
63
- useDock
64
- } from "./chunk-6VB74RCH.js";
65
63
  import {
66
64
  MonacoEditor,
67
65
  skipoDarkTheme,
68
66
  useMonaco
69
67
  } from "./chunk-KAKAFGVH.js";
70
- import {
71
- CanvasViewport,
72
- InfiniteCanvas,
73
- MiniMap,
74
- useCanvas
75
- } from "./chunk-34YRDZPJ.js";
76
- import {
77
- FodModule,
78
- authorizedRemoteCategories,
79
- filterRemoteDefinitions,
80
- filteredCapabilityPicker,
81
- invokeKloksPublishedWorkflow,
82
- isLiveFrontendDefinition,
83
- isRemoteGraphNode,
84
- readRemoteHandle,
85
- readRemotePortSnapshot,
86
- remoteCapabilityCategory,
87
- remoteExecutionFeedback,
88
- remotePortFingerprint,
89
- snapshotRemotePorts,
90
- toKloksPublishedWorkflowCall,
91
- validateRemoteConnections,
92
- validateRemoteGraph
93
- } from "./chunk-ZX2OTCIC.js";
94
68
  import {
95
69
  CanvasContextMenu,
96
70
  CompatibleNodePicker,
@@ -103,6 +77,32 @@ import {
103
77
  import {
104
78
  usePredictiveGraph2D
105
79
  } from "./chunk-ZSVXR3HU.js";
80
+ import {
81
+ BIOME_CONFIGS,
82
+ COORD_SCALE,
83
+ CanvasBackground2D,
84
+ CanvasErrorBoundary,
85
+ ContainerNode2D,
86
+ EffectNode2D,
87
+ MagneticTraces2D,
88
+ ModuleNode2D,
89
+ NODE_CARD_WIDTH,
90
+ Node2DBase,
91
+ NodeRenderer2D,
92
+ RecorderWaveformDisplay,
93
+ RotaryKnob,
94
+ SOCKET_ROW_HEIGHT,
95
+ Socket2D,
96
+ TriggerNode2D,
97
+ Wire2D,
98
+ renderSpriteIcon,
99
+ useCanvas2DCoordinates,
100
+ useCanvas2DMagnetic
101
+ } from "./chunk-ZDADZVQ2.js";
102
+ import {
103
+ getSocketLocalOffset,
104
+ getSocketScreenPosition
105
+ } from "./chunk-FPRATI44.js";
106
106
 
107
107
  // src/node-graph-ui/widgets/MidpointWidgets.tsx
108
108
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -3,10 +3,10 @@ import {
3
3
  PredictiveHudToolbar,
4
4
  PredictiveLayer2D
5
5
  } from "../chunk-A7BSZ5QO.js";
6
- import "../chunk-FPRATI44.js";
7
6
  import {
8
7
  usePredictiveGraph2D
9
8
  } from "../chunk-ZSVXR3HU.js";
9
+ import "../chunk-FPRATI44.js";
10
10
  export {
11
11
  PredictiveGhostNodeCard,
12
12
  PredictiveHudToolbar,
@@ -243,6 +243,7 @@ function GoogleDriveWorkspacePicker({
243
243
  userId,
244
244
  connection,
245
245
  connectGoogleDrive,
246
+ availabilityReason,
246
247
  listGoogleDriveFolders,
247
248
  onConnected,
248
249
  onSelectFolder,
@@ -352,9 +353,11 @@ function GoogleDriveWorkspacePicker({
352
353
  onClick: handleConnect,
353
354
  disabled: connecting || !connectGoogleDrive,
354
355
  className: "border px-3 py-2 text-xs font-bold disabled:opacity-50",
355
- children: connecting ? "Connecting to Google\u2026" : connectGoogleDrive ? "Connect Google Drive" : "Google Drive authorization unavailable"
356
+ ...!connectGoogleDrive && availabilityReason ? { title: availabilityReason } : {},
357
+ children: connecting ? "Opening Google account chooser\u2026" : connectGoogleDrive ? "Add Google account" : "Google Drive authorization unavailable"
356
358
  }
357
- )
359
+ ),
360
+ !connectGoogleDrive && availabilityReason && /* @__PURE__ */ jsx3("p", { role: "note", className: "text-[10px] opacity-70", children: availabilityReason })
358
361
  ] });
359
362
  }
360
363
  return /* @__PURE__ */ jsxs3("section", { "aria-label": "Google Drive folder picker", className: "space-y-2 border p-3", children: [
@@ -363,16 +366,28 @@ function GoogleDriveWorkspacePicker({
363
366
  /* @__PURE__ */ jsx3("p", { className: "text-xs font-bold", children: "Google Drive connected" }),
364
367
  /* @__PURE__ */ jsx3("p", { className: "truncate text-[10px] opacity-70", children: connection.googleEmail || connection.label || connection.name || connection.id })
365
368
  ] }),
366
- /* @__PURE__ */ jsx3(
367
- "button",
368
- {
369
- type: "button",
370
- onClick: () => void loadFolders(connection.id, folderPath[folderPath.length - 1]?.id),
371
- disabled: loading,
372
- className: "border px-2 py-1 text-[10px] disabled:opacity-50",
373
- children: loading ? "Loading\u2026" : "Refresh"
374
- }
375
- )
369
+ /* @__PURE__ */ jsxs3("div", { className: "flex shrink-0 flex-wrap gap-2", children: [
370
+ connectGoogleDrive && /* @__PURE__ */ jsx3(
371
+ "button",
372
+ {
373
+ type: "button",
374
+ onClick: () => void handleConnect(),
375
+ disabled: connecting,
376
+ className: "border px-2 py-1 text-[10px] disabled:opacity-50",
377
+ children: connecting ? "Opening Google\u2026" : "Add Google account"
378
+ }
379
+ ),
380
+ /* @__PURE__ */ jsx3(
381
+ "button",
382
+ {
383
+ type: "button",
384
+ onClick: () => void loadFolders(connection.id, folderPath[folderPath.length - 1]?.id),
385
+ disabled: loading,
386
+ className: "border px-2 py-1 text-[10px] disabled:opacity-50",
387
+ children: loading ? "Loading\u2026" : "Refresh"
388
+ }
389
+ )
390
+ ] })
376
391
  ] }),
377
392
  folderPath.length > 0 && /* @__PURE__ */ jsxs3("div", { className: "flex flex-wrap items-center gap-2", children: [
378
393
  /* @__PURE__ */ jsx3("button", { type: "button", onClick: goBack, disabled: loading, className: "border px-2 py-1 text-[10px] disabled:opacity-50", children: "Back" }),
@@ -1026,7 +1041,7 @@ function WorkspaceCreateDialog({
1026
1041
  disabled: loadingStorage || submitting,
1027
1042
  className: "h-10 min-w-0 flex-1 border px-2 text-xs",
1028
1043
  style: { backgroundColor: background, borderColor: border },
1029
- children: availableOptions.map((option) => /* @__PURE__ */ jsx4("option", { value: option.id, children: providerLabel(option) + " \u2014 " + (option.label || option.name || option.id) }, option.id))
1044
+ children: availableOptions.map((option) => /* @__PURE__ */ jsx4("option", { value: option.id, children: providerLabel(option) + " \u2014 " + (option.provider === "google_drive" && option.googleEmail ? option.googleEmail : option.label || option.name || option.id) }, option.id))
1030
1045
  }
1031
1046
  ) }),
1032
1047
  !hiddenFields.has("backblaze") && backblazeMode && /* @__PURE__ */ jsx4("div", { className: "mt-3 space-y-3 border-t pt-3", style: { borderColor: border }, children: /* @__PURE__ */ jsxs4("div", { className: "space-y-2 border p-3", style: { borderColor: border, backgroundColor: background }, children: [
@@ -1144,6 +1159,7 @@ function WorkspaceCreateDialog({
1144
1159
  userId: effectiveUserId,
1145
1160
  connection: googleDriveConnection,
1146
1161
  connectGoogleDrive: canAuthorizeGoogleDrive ? storageService.connectGoogleDrive : void 0,
1162
+ ...!canAuthorizeGoogleDrive && googleDriveCapability?.availabilityReason ? { availabilityReason: googleDriveCapability.availabilityReason } : {},
1147
1163
  listGoogleDriveFolders: storageService.listGoogleDriveFolders ? browseGoogleDriveFolders : void 0,
1148
1164
  selectedFolder: googleDriveFolder,
1149
1165
  onConnected: (connection) => {
@@ -22,7 +22,6 @@ import {
22
22
  TimelineScrubber,
23
23
  getProviderIcon
24
24
  } from "../../chunk-6J5J56YO.js";
25
- import "../../chunk-CIH4FVXM.js";
26
25
  import {
27
26
  AgentChatDock,
28
27
  AgentChatPanel,
@@ -31,6 +30,7 @@ import {
31
30
  matchAgentMentions,
32
31
  selectedAgentIsValid
33
32
  } from "../../chunk-5Y2HGI37.js";
33
+ import "../../chunk-CIH4FVXM.js";
34
34
  import "../../chunk-F5XUUMSI.js";
35
35
  import "../../chunk-GKP6KHTI.js";
36
36
  import "../../chunk-UOR4P6PO.js";
@@ -3,11 +3,11 @@ import {
3
3
  BreadcrumbNav,
4
4
  HeaderBar,
5
5
  TopToolbar
6
- } from "../../chunk-KMVDLACR.js";
6
+ } from "../../chunk-QO5LFGWY.js";
7
+ import "../../chunk-C3L53YN4.js";
7
8
  import "../../chunk-5Y2HGI37.js";
8
9
  import "../../chunk-F5XUUMSI.js";
9
10
  import "../../chunk-GKP6KHTI.js";
10
- import "../../chunk-C3L53YN4.js";
11
11
  import "../../chunk-62ITRDJX.js";
12
12
  import "../../chunk-A2CDQISJ.js";
13
13
  export {
@@ -15,6 +15,8 @@ export interface GoogleDriveWorkspacePickerProps {
15
15
  userId: string;
16
16
  connection?: GoogleDriveConnection;
17
17
  connectGoogleDrive?: (userId: string) => Promise<GoogleDriveConnection | void>;
18
+ /** Why the backend disabled Drive authorization, when connectGoogleDrive is absent. */
19
+ availabilityReason?: string;
18
20
  listGoogleDriveFolders?: (connectionId: string, parentFolderId?: string, userId?: string) => Promise<GoogleDriveFolder[]>;
19
21
  onConnected: (connection: GoogleDriveConnection) => void;
20
22
  onSelectFolder: (folder: GoogleDriveFolder) => void;
@@ -28,4 +30,4 @@ export declare function describeGoogleDriveError(error: unknown): string;
28
30
  * behind the injected storage service. This component never collects Google
29
31
  * credentials or handles OAuth client IDs, client secrets, or access tokens.
30
32
  */
31
- export declare function GoogleDriveWorkspacePicker({ userId, connection, connectGoogleDrive, listGoogleDriveFolders, onConnected, onSelectFolder, selectedFolder, }: GoogleDriveWorkspacePickerProps): React.JSX.Element;
33
+ export declare function GoogleDriveWorkspacePicker({ userId, connection, connectGoogleDrive, availabilityReason, listGoogleDriveFolders, onConnected, onSelectFolder, selectedFolder, }: GoogleDriveWorkspacePickerProps): React.JSX.Element;
@@ -12,7 +12,7 @@ import {
12
12
  describeGoogleDriveError,
13
13
  formatWorkspaceFolderPreview,
14
14
  workspaceTilesMenuDefinition
15
- } from "../../chunk-EHKGMGSD.js";
15
+ } from "../../chunk-LCSPMWW2.js";
16
16
  import "../../chunk-DEKSKDSF.js";
17
17
  import "../../chunk-2YP2RPJY.js";
18
18
  export {
@@ -19,17 +19,28 @@ import {
19
19
  describeGoogleDriveError,
20
20
  formatWorkspaceFolderPreview,
21
21
  workspaceTilesMenuDefinition
22
- } from "./chunk-EHKGMGSD.js";
22
+ } from "./chunk-LCSPMWW2.js";
23
23
  import {
24
- ConfirmDialog,
25
- CopyableErrorAlert,
26
- EmptyState,
27
- LoadingOverlay,
28
- SearchInput,
29
- SearchableList,
30
- StatusIndicator,
31
- useSearchKeyboardNavigation
32
- } from "./chunk-VEWPTZGO.js";
24
+ AUTH_PAGE_REQUIRED_SERVICES,
25
+ AuthLoadingScreen,
26
+ AuthPage,
27
+ DEFAULT_LUTH_URL,
28
+ GoogleIcon,
29
+ GoogleSignInButton,
30
+ LoginModal,
31
+ LuthAuthClient,
32
+ LuthAuthError,
33
+ LuthAuthPage,
34
+ LuthOidcGate,
35
+ LuthProtectedRoute,
36
+ authPageDefinition,
37
+ createLuthAuthClient,
38
+ createLuthAuthClientForApplication,
39
+ resolveLuthEnvironment,
40
+ resolveLuthOrigin,
41
+ useApplicationOidcAuth,
42
+ useLuthAuth
43
+ } from "./chunk-UADCSN5P.js";
33
44
  import {
34
45
  DEFAULT_PANEL_GEOMETRY,
35
46
  DrawerContainer,
@@ -44,6 +55,16 @@ import {
44
55
  usePanelGeometry,
45
56
  usePanelInteraction
46
57
  } from "./chunk-TXKLROFC.js";
58
+ import {
59
+ ConfirmDialog,
60
+ CopyableErrorAlert,
61
+ EmptyState,
62
+ LoadingOverlay,
63
+ SearchInput,
64
+ SearchableList,
65
+ StatusIndicator,
66
+ useSearchKeyboardNavigation
67
+ } from "./chunk-VEWPTZGO.js";
47
68
  import {
48
69
  IconOnlyButton,
49
70
  ModalContainer
@@ -57,7 +78,7 @@ import {
57
78
  BreadcrumbNav,
58
79
  HeaderBar,
59
80
  TopToolbar
60
- } from "./chunk-KMVDLACR.js";
81
+ } from "./chunk-QO5LFGWY.js";
61
82
  import {
62
83
  AccountsSettingsSection,
63
84
  SettingsTab,
@@ -84,6 +105,28 @@ import {
84
105
  frnlToggleDefinition,
85
106
  frnlTopBar
86
107
  } from "./chunk-IYBFDSTU.js";
108
+ import {
109
+ frnlButton,
110
+ frnlButtonDefinition,
111
+ frnlTextInput,
112
+ frnlTextInputDefinition
113
+ } from "./chunk-RLM72WKL.js";
114
+ import "./chunk-5ZMXFCD4.js";
115
+ import {
116
+ ApiCallIndicator,
117
+ AutoSaveToggle,
118
+ BottomStrip,
119
+ StatusLight,
120
+ SystemMessageDisplay
121
+ } from "./chunk-C3L53YN4.js";
122
+ import {
123
+ FrnlStoreProvider,
124
+ floksFrnlFrontendApi,
125
+ floksFrnlStore,
126
+ getFloksFrnlFrontendApi,
127
+ getFloksFrnlStore,
128
+ useFloksFrnlStore
129
+ } from "./chunk-2YP2RPJY.js";
87
130
  import {
88
131
  DEFAULT_PALETTE_ID,
89
132
  THEME_STORAGE_KEY,
@@ -169,12 +212,6 @@ import {
169
212
  TimelineScrubber,
170
213
  getProviderIcon
171
214
  } from "./chunk-6J5J56YO.js";
172
- import {
173
- BaseSelect,
174
- BaseToggle,
175
- CredentialField,
176
- KNOWN_CREDENTIAL_URLS
177
- } from "./chunk-CIH4FVXM.js";
178
215
  import {
179
216
  AgentChatDock,
180
217
  AgentChatPanel,
@@ -183,6 +220,12 @@ import {
183
220
  matchAgentMentions,
184
221
  selectedAgentIsValid
185
222
  } from "./chunk-5Y2HGI37.js";
223
+ import {
224
+ BaseSelect,
225
+ BaseToggle,
226
+ CredentialField,
227
+ KNOWN_CREDENTIAL_URLS
228
+ } from "./chunk-CIH4FVXM.js";
186
229
  import {
187
230
  BaseTextarea
188
231
  } from "./chunk-F5XUUMSI.js";
@@ -193,49 +236,6 @@ import {
193
236
  BaseBadge,
194
237
  BaseCard
195
238
  } from "./chunk-UOR4P6PO.js";
196
- import {
197
- AUTH_PAGE_REQUIRED_SERVICES,
198
- AuthLoadingScreen,
199
- AuthPage,
200
- DEFAULT_LUTH_URL,
201
- GoogleIcon,
202
- GoogleSignInButton,
203
- LoginModal,
204
- LuthAuthClient,
205
- LuthAuthError,
206
- LuthAuthPage,
207
- LuthOidcGate,
208
- LuthProtectedRoute,
209
- authPageDefinition,
210
- createLuthAuthClient,
211
- createLuthAuthClientForApplication,
212
- resolveLuthEnvironment,
213
- resolveLuthOrigin,
214
- useApplicationOidcAuth,
215
- useLuthAuth
216
- } from "./chunk-UADCSN5P.js";
217
- import {
218
- frnlButton,
219
- frnlButtonDefinition,
220
- frnlTextInput,
221
- frnlTextInputDefinition
222
- } from "./chunk-RLM72WKL.js";
223
- import "./chunk-5ZMXFCD4.js";
224
- import {
225
- ApiCallIndicator,
226
- AutoSaveToggle,
227
- BottomStrip,
228
- StatusLight,
229
- SystemMessageDisplay
230
- } from "./chunk-C3L53YN4.js";
231
- import {
232
- FrnlStoreProvider,
233
- floksFrnlFrontendApi,
234
- floksFrnlStore,
235
- getFloksFrnlFrontendApi,
236
- getFloksFrnlStore,
237
- useFloksFrnlStore
238
- } from "./chunk-2YP2RPJY.js";
239
239
  import {
240
240
  BaseInput
241
241
  } from "./chunk-W42SJGOJ.js";
@@ -1,12 +1,12 @@
1
+ import {
2
+ BottomStrip
3
+ } from "./chunk-C3L53YN4.js";
1
4
  import {
2
5
  AgentChatDock
3
6
  } from "./chunk-5Y2HGI37.js";
4
7
  import {
5
8
  BaseTooltip
6
9
  } from "./chunk-GKP6KHTI.js";
7
- import {
8
- BottomStrip
9
- } from "./chunk-C3L53YN4.js";
10
10
  import {
11
11
  BottomStripProvider
12
12
  } from "./chunk-62ITRDJX.js";