@embeddables/cli 0.10.0 → 0.12.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 (61) hide show
  1. package/.prompts/custom/build-funnel.md +1 -1
  2. package/.prompts/embeddables-cli.md +308 -26
  3. package/dist/assets-manifest.d.ts +31 -0
  4. package/dist/assets-manifest.d.ts.map +1 -0
  5. package/dist/assets-manifest.js +59 -0
  6. package/dist/assets-manifest.js.map +1 -0
  7. package/dist/cli.js +283 -1
  8. package/dist/cli.js.map +1 -1
  9. package/dist/commands/assets-sync.d.ts +6 -0
  10. package/dist/commands/assets-sync.d.ts.map +1 -0
  11. package/dist/commands/assets-sync.js +35 -0
  12. package/dist/commands/assets-sync.js.map +1 -0
  13. package/dist/commands/assets-upload.d.ts +13 -0
  14. package/dist/commands/assets-upload.d.ts.map +1 -0
  15. package/dist/commands/assets-upload.js +475 -0
  16. package/dist/commands/assets-upload.js.map +1 -0
  17. package/dist/commands/experiments-connect.js +22 -19
  18. package/dist/commands/experiments-connect.js.map +1 -1
  19. package/dist/commands/init.d.ts.map +1 -1
  20. package/dist/commands/init.js +37 -91
  21. package/dist/commands/init.js.map +1 -1
  22. package/dist/commands/pull.d.ts.map +1 -1
  23. package/dist/commands/pull.js +3 -0
  24. package/dist/commands/pull.js.map +1 -1
  25. package/dist/compiler/reverse.d.ts.map +1 -1
  26. package/dist/compiler/reverse.js +19 -6
  27. package/dist/compiler/reverse.js.map +1 -1
  28. package/dist/constants/defaultTagStylesV4.d.ts +6 -0
  29. package/dist/constants/defaultTagStylesV4.d.ts.map +1 -0
  30. package/dist/constants/defaultTagStylesV4.js +659 -0
  31. package/dist/constants/defaultTagStylesV4.js.map +1 -0
  32. package/dist/constants.d.ts +2 -0
  33. package/dist/constants.d.ts.map +1 -1
  34. package/dist/constants.js +2 -0
  35. package/dist/constants.js.map +1 -1
  36. package/dist/group-context.d.ts +2 -0
  37. package/dist/group-context.d.ts.map +1 -0
  38. package/dist/group-context.js +29 -0
  39. package/dist/group-context.js.map +1 -0
  40. package/dist/helpers/typeStubs.d.ts +25 -0
  41. package/dist/helpers/typeStubs.d.ts.map +1 -0
  42. package/dist/helpers/typeStubs.js +153 -0
  43. package/dist/helpers/typeStubs.js.map +1 -0
  44. package/dist/prompts/experiments.d.ts +3 -1
  45. package/dist/prompts/experiments.d.ts.map +1 -1
  46. package/dist/prompts/experiments.js +12 -5
  47. package/dist/prompts/experiments.js.map +1 -1
  48. package/dist/workbench/FieldEditorPanel.d.ts +2 -1
  49. package/dist/workbench/FieldEditorPanel.d.ts.map +1 -1
  50. package/dist/workbench/FieldEditorPanel.js +21 -10
  51. package/dist/workbench/FieldEditorPanel.js.map +1 -1
  52. package/dist/workbench/UserDataPanel.d.ts.map +1 -1
  53. package/dist/workbench/UserDataPanel.js +103 -3
  54. package/dist/workbench/UserDataPanel.js.map +1 -1
  55. package/dist/{commands/build-workbench.d.ts → workbench/build.d.ts} +1 -1
  56. package/dist/workbench/build.d.ts.map +1 -0
  57. package/dist/{commands/build-workbench.js → workbench/build.js} +1 -1
  58. package/dist/workbench/build.js.map +1 -0
  59. package/package.json +1 -1
  60. package/dist/commands/build-workbench.d.ts.map +0 -1
  61. package/dist/commands/build-workbench.js.map +0 -1
package/dist/cli.js CHANGED
@@ -36,6 +36,8 @@ import { runLogin } from './commands/login.js';
36
36
  import { runLogout } from './commands/logout.js';
37
37
  import { runPull } from './commands/pull.js';
38
38
  import { runSave } from './commands/save.js';
39
+ import { runAssetsUpload } from './commands/assets-upload.js';
40
+ import { runAssetsSync } from './commands/assets-sync.js';
39
41
  import { runUpgrade } from './commands/upgrade.js';
40
42
  import { configureCustomHelp } from './help.js';
41
43
  import { exit } from './logger.js';
@@ -43,6 +45,17 @@ import * as stdout from './stdout.js';
43
45
  import { withCommandSpan } from './tracing.js';
44
46
  /** Only these commands may run without being logged in. All others require login. */
45
47
  const COMMANDS_ALLOWED_WITHOUT_LOGIN = new Set(['login', 'logout', 'upgrade', 'feedback']);
48
+ /**
49
+ * Ensures the user is logged in before running a CLI command.
50
+ *
51
+ * Checks the allowlist of commands that may run without authentication (login, logout,
52
+ * upgrade, feedback). For all other commands, verifies that the user is logged in.
53
+ * If the user is not logged in, prints a warning and terminates the process.
54
+ *
55
+ * @param commandName - The full command name, which may include subcommand segments (e.g., "builder open").
56
+ * @returns A promise that resolves when the login check is complete.
57
+ * @remarks This function may terminate the process by calling `exit(1)` if the user is not logged in.
58
+ */
46
59
  async function requireLogin(commandName) {
47
60
  const baseCommand = commandName.split(' ')[0];
48
61
  if (COMMANDS_ALLOWED_WITHOUT_LOGIN.has(baseCommand))
@@ -53,7 +66,17 @@ async function requireLogin(commandName) {
53
66
  stdout.dim('Run "embeddables login" first.');
54
67
  await exit(1);
55
68
  }
56
- /** Set Sentry context from config and auth for the current command. */
69
+ /**
70
+ * Sets Sentry context from project config and auth for the current command.
71
+ *
72
+ * Tags the Sentry scope with the command name, loads Sentry context (project ID,
73
+ * embeddable ID, environment, version) from the project configuration, and populates
74
+ * the Sentry user from the authentication cache. If the cache is unavailable, attempts
75
+ * to fetch user information from the auth service asynchronously.
76
+ *
77
+ * @param command - The command name to tag in Sentry (e.g., "init", "build", "builder open").
78
+ * @remarks This function mutates global Sentry state and may trigger asynchronous auth lookups.
79
+ */
57
80
  function setSentryContextForCommand(command) {
58
81
  Sentry.setTag('command', command);
59
82
  setSentryContext(getSentryContextFromProjectConfig());
@@ -72,12 +95,32 @@ configureCustomHelp(program, pkg.version);
72
95
  let _historyStart = 0;
73
96
  let _historyCommand = '';
74
97
  let _historyArgs = [];
98
+ /**
99
+ * Records the start timestamp, resolved command name, and truncated arguments before each command executes.
100
+ *
101
+ * Captures performance timing and argument metadata that will be used by the postAction hook
102
+ * to construct a command history entry. Arguments longer than 200 characters are truncated
103
+ * with an ellipsis to avoid storing excessively large data.
104
+ *
105
+ * @param thisCommand - The Commander.js command instance about to be executed.
106
+ * @remarks This hook mutates module-level `_history*` variables that are read by the postAction hook.
107
+ */
75
108
  program.hook('preAction', (thisCommand) => {
76
109
  _historyStart = performance.now();
77
110
  _historyCommand = thisCommand.args?.[0] ?? thisCommand.name();
78
111
  _historyArgs = process.argv.slice(3).map((a) => (a.length > 200 ? a.slice(0, 200) + '…' : a));
79
112
  });
80
113
  const COMMANDS_EXCLUDED_FROM_HISTORY = new Set(['feedback']);
114
+ /**
115
+ * Constructs and writes a command history entry after each command completes.
116
+ *
117
+ * Uses the timing and argument metadata captured by the preAction hook to build a
118
+ * CommandHistoryEntry and persist it via `writeHistoryEntry`. Commands in the exclusion
119
+ * list (currently only "feedback") are skipped. Any errors during history writing are
120
+ * swallowed to prevent CLI failures.
121
+ *
122
+ * @remarks This hook writes to the user's command history file and swallows exceptions to ensure CLI stability.
123
+ */
81
124
  program.hook('postAction', () => {
82
125
  if (COMMANDS_EXCLUDED_FROM_HISTORY.has(_historyCommand))
83
126
  return;
@@ -95,6 +138,19 @@ program.hook('postAction', () => {
95
138
  // Never let history logging break the CLI
96
139
  }
97
140
  });
141
+ /**
142
+ * Initializes a new Embeddables project in the current directory.
143
+ *
144
+ * Ensures the user is logged in, sets Sentry context, and orchestrates the project
145
+ * scaffolding via `runInit`. Optionally accepts a project ID and a flag to skip
146
+ * interactive prompts.
147
+ *
148
+ * @param opts - Options object with optional `projectId` and `yes` flag.
149
+ * @returns A promise that resolves when initialization is complete.
150
+ * @remarks Requires login. Traced via Sentry with the "init" command span.
151
+ * @see requireLogin
152
+ * @see setSentryContextForCommand
153
+ */
98
154
  program
99
155
  .command('init')
100
156
  .description('Initialize a new Embeddables project')
@@ -105,6 +161,19 @@ program
105
161
  setSentryContextForCommand('init');
106
162
  await withCommandSpan('init', () => runInit({ projectId: opts.projectId, yes: opts.yes }));
107
163
  });
164
+ /**
165
+ * Compiles React components into embeddable JSON.
166
+ *
167
+ * Ensures the user is logged in, sets Sentry context, and orchestrates the forward
168
+ * compilation via `runBuild`. Accepts options for the embeddable ID, pages glob pattern,
169
+ * output path, lint fix mode, and page key extraction strategy.
170
+ *
171
+ * @param opts - Options object with optional `id`, `pages`, `out`, `fix`, and `pageKeyFrom`.
172
+ * @returns A promise that resolves when the build is complete.
173
+ * @remarks Requires login. Traced via Sentry with the "build" command span.
174
+ * @see requireLogin
175
+ * @see setSentryContextForCommand
176
+ */
108
177
  program
109
178
  .command('build')
110
179
  .description('Compile React components into embeddable JSON')
@@ -118,6 +187,19 @@ program
118
187
  setSentryContextForCommand('build');
119
188
  await withCommandSpan('build', () => runBuild(opts));
120
189
  });
190
+ /**
191
+ * Starts the development server with watch mode and proxy.
192
+ *
193
+ * Ensures the user is logged in, sets Sentry context, and orchestrates the dev server
194
+ * via `runDev`. Watches for file changes and rebuilds automatically. Optionally overrides
195
+ * the engine URL to use a local instance when `--local` is passed.
196
+ *
197
+ * @param opts - Options object with optional `id`, `pages`, `out`, `fix`, `local`, `engine`, `port`, `overrideRoute`, and `pageKeyFrom`.
198
+ * @returns A promise that resolves when the dev server is started.
199
+ * @remarks Requires login. If `--local` is passed, the engine is overridden to `http://localhost:8787`. Traced via Sentry with the "dev" command span.
200
+ * @see requireLogin
201
+ * @see setSentryContextForCommand
202
+ */
121
203
  program
122
204
  .command('dev')
123
205
  .description('Start dev server with watch and proxy')
@@ -138,6 +220,15 @@ program
138
220
  }
139
221
  await withCommandSpan('dev', () => runDev(opts));
140
222
  });
223
+ /**
224
+ * Initiates the login flow for the Embeddables CLI.
225
+ *
226
+ * Sets the Sentry command tag and orchestrates the OTP authentication flow via `runLogin`.
227
+ * Does not require an existing login session.
228
+ *
229
+ * @returns A promise that resolves when the login flow is complete.
230
+ * @remarks Does not require prior authentication. Traced via Sentry with the "login" command span.
231
+ */
141
232
  program
142
233
  .command('login')
143
234
  .description('Login to Embeddables')
@@ -145,6 +236,15 @@ program
145
236
  Sentry.setTag('command', 'login');
146
237
  await withCommandSpan('login', () => runLogin());
147
238
  });
239
+ /**
240
+ * Logs out from the Embeddables CLI.
241
+ *
242
+ * Sets the Sentry command tag and clears the authentication token via `runLogout`.
243
+ * Does not require an existing login session.
244
+ *
245
+ * @returns A promise that resolves when the logout flow is complete.
246
+ * @remarks Does not require prior authentication. Traced via Sentry with the "logout" command span.
247
+ */
148
248
  program
149
249
  .command('logout')
150
250
  .description('Logout from Embeddables')
@@ -152,6 +252,19 @@ program
152
252
  Sentry.setTag('command', 'logout');
153
253
  await withCommandSpan('logout', () => runLogout());
154
254
  });
255
+ /**
256
+ * Pulls an embeddable from the cloud and reverse-compiles it to local files.
257
+ *
258
+ * Ensures the user is logged in, sets Sentry context, and orchestrates the pull and
259
+ * reverse-compilation via `runPull`. Accepts options for the embeddable ID, version,
260
+ * branch, output path, fix mode, and component order preservation.
261
+ *
262
+ * @param opts - Options object with optional `id`, `out`, `version`, `branch`, `fix`, and `preserve`.
263
+ * @returns A promise that resolves when the pull is complete.
264
+ * @remarks Requires login. If `--version` is used as a boolean flag (without a value), an interactive version selector is shown. Traced via Sentry with the "pull" command span.
265
+ * @see requireLogin
266
+ * @see setSentryContextForCommand
267
+ */
155
268
  program
156
269
  .command('pull')
157
270
  .description('Pull an embeddable from the cloud')
@@ -171,6 +284,20 @@ program
171
284
  selectVersion,
172
285
  }));
173
286
  });
287
+ /**
288
+ * Fetches, reverse-compiles, and rebuilds an embeddable for debugging round-trip issues.
289
+ *
290
+ * Optionally bypasses login when `--bypass-auth` is set (useful for CI or automated tools).
291
+ * Sets Sentry context and orchestrates the inspect workflow via `runInspect`, which fetches
292
+ * the embeddable JSON, reverse-compiles it to React, rebuilds it back to JSON, and compares
293
+ * the two versions to identify discrepancies.
294
+ *
295
+ * @param opts - Options object with required `id` and optional `version`, `branch`, `fix`, `preserve`, `engine`, and hidden `bypassAuth`.
296
+ * @returns A promise that resolves when the inspect workflow is complete.
297
+ * @remarks Login is required unless `--bypass-auth` is set. Traced via Sentry with the "inspect" command span.
298
+ * @see requireLogin
299
+ * @see setSentryContextForCommand
300
+ */
174
301
  program
175
302
  .command('inspect')
176
303
  .description('Fetch, reverse-compile, and rebuild an embeddable for debugging')
@@ -195,6 +322,19 @@ program
195
322
  engine: opts.engine,
196
323
  }));
197
324
  });
325
+ /**
326
+ * Shows differences between two versions of an embeddable.
327
+ *
328
+ * Conditionally requires login if either `--from` or `--to` references a cloud version
329
+ * (i.e., not "local"). Sets Sentry context and orchestrates the diff workflow via `runDiff`,
330
+ * which fetches and compares the two versions at the specified detail level (pages, components, or props).
331
+ *
332
+ * @param opts - Options object with optional `id`, `from`, `to`, `depth`, `page`, `component`, `color`, `engine`, and `branch`.
333
+ * @returns A promise that resolves when the diff is complete.
334
+ * @remarks Login is required if either version is fetched from the cloud. Not traced via `withCommandSpan`.
335
+ * @see requireLogin
336
+ * @see setSentryContextForCommand
337
+ */
198
338
  program
199
339
  .command('diff')
200
340
  .description('Show differences between two versions of an embeddable')
@@ -225,6 +365,19 @@ program
225
365
  branch: opts.branch,
226
366
  });
227
367
  });
368
+ /**
369
+ * Builds and saves an embeddable to the cloud.
370
+ *
371
+ * Ensures the user is logged in, sets Sentry context, and orchestrates the build and
372
+ * upload workflow via `runSave`. Accepts options for the embeddable ID, version label,
373
+ * branch, skip-build flag, and base version number.
374
+ *
375
+ * @param opts - Options object with optional `id`, `label`, `branch`, `skipBuild`, and `fromVersion`.
376
+ * @returns A promise that resolves when the save is complete.
377
+ * @remarks Requires login. Traced via Sentry with the "save" command span.
378
+ * @see requireLogin
379
+ * @see setSentryContextForCommand
380
+ */
228
381
  program
229
382
  .command('save')
230
383
  .description('Build and save an embeddable to the cloud')
@@ -244,6 +397,15 @@ program
244
397
  fromVersion: opts.fromVersion,
245
398
  }));
246
399
  });
400
+ /**
401
+ * Updates the CLI to the latest stable version.
402
+ *
403
+ * Sets the Sentry command tag and orchestrates the upgrade workflow via `runUpgrade`.
404
+ * Does not require an existing login session.
405
+ *
406
+ * @returns A promise that resolves when the upgrade is complete.
407
+ * @remarks Does not require prior authentication. Traced via Sentry with the "upgrade" command span.
408
+ */
247
409
  program
248
410
  .command('upgrade')
249
411
  .description('Update the CLI to the latest stable version')
@@ -251,6 +413,19 @@ program
251
413
  Sentry.setTag('command', 'upgrade');
252
414
  await withCommandSpan('upgrade', () => runUpgrade());
253
415
  });
416
+ /**
417
+ * Switches to a different branch of an embeddable.
418
+ *
419
+ * Ensures the user is logged in, sets Sentry context, and orchestrates the branch
420
+ * switching workflow via `runBranch`. Accepts an optional embeddable ID; prompts
421
+ * interactively if not provided.
422
+ *
423
+ * @param opts - Options object with optional `id`.
424
+ * @returns A promise that resolves when the branch switch is complete.
425
+ * @remarks Requires login. Traced via Sentry with the "branch" command span.
426
+ * @see requireLogin
427
+ * @see setSentryContextForCommand
428
+ */
254
429
  program
255
430
  .command('branch')
256
431
  .description('Switch to a different branch of an embeddable')
@@ -260,6 +435,19 @@ program
260
435
  setSentryContextForCommand('branch');
261
436
  await withCommandSpan('branch', () => runBranch(opts));
262
437
  });
438
+ /**
439
+ * Sends feedback about the CLI or AI prompts.
440
+ *
441
+ * Sets Sentry context and orchestrates the feedback submission via `runFeedback`.
442
+ * Accepts an optional message and flags for sentiment (positive/negative) and category.
443
+ * Does not require an existing login session.
444
+ *
445
+ * @param message - Optional feedback message text.
446
+ * @param opts - Options object with optional `positive`, `negative`, and `category` flags.
447
+ * @returns A promise that resolves when the feedback submission is complete.
448
+ * @remarks Does not require prior authentication. Traced via Sentry with the "feedback" command span. This command is excluded from command history.
449
+ * @see setSentryContextForCommand
450
+ */
263
451
  program
264
452
  .command('feedback [message]')
265
453
  .description('Send feedback about the CLI or AI prompts')
@@ -276,6 +464,19 @@ program
276
464
  }));
277
465
  });
278
466
  const builder = program.command('builder').description('Embeddables Builder utilities');
467
+ /**
468
+ * Opens the Embeddables Builder in the browser.
469
+ *
470
+ * Ensures the user is logged in, sets Sentry context for the "builder open" command,
471
+ * and orchestrates the browser launch via `runBuilderOpen`. Accepts an optional
472
+ * embeddable ID; prompts interactively if not provided.
473
+ *
474
+ * @param opts - Options object with optional `id`.
475
+ * @returns A promise that resolves when the browser is opened.
476
+ * @remarks Requires login. Traced via Sentry with the "builder_open" command span.
477
+ * @see requireLogin
478
+ * @see setSentryContextForCommand
479
+ */
279
480
  builder
280
481
  .command('open')
281
482
  .description('Open the Embeddables Builder in the browser')
@@ -286,6 +487,19 @@ builder
286
487
  await withCommandSpan('builder_open', () => runBuilderOpen({ id: opts.id }));
287
488
  });
288
489
  const experiments = program.command('experiments').description('Manage embeddable experiments');
490
+ /**
491
+ * Connects an experiment to an embeddable.
492
+ *
493
+ * Ensures the user is logged in, sets Sentry context for the "experiments connect" command,
494
+ * and orchestrates the connection workflow via `runExperimentsConnect`. Accepts optional
495
+ * embeddable ID, experiment ID, and experiment key; prompts interactively if not provided.
496
+ *
497
+ * @param opts - Options object with optional `id`, `experimentId`, and `experimentKey`.
498
+ * @returns A promise that resolves when the experiment connection is complete.
499
+ * @remarks Requires login. Traced via Sentry with the "experiments_connect" command span.
500
+ * @see requireLogin
501
+ * @see setSentryContextForCommand
502
+ */
289
503
  experiments
290
504
  .command('connect')
291
505
  .description('Connect an experiment to an embeddable')
@@ -301,5 +515,73 @@ experiments
301
515
  experimentKey: opts.experimentKey,
302
516
  }));
303
517
  });
518
+ const assets = program.command('assets').description('Manage embeddable assets');
519
+ /**
520
+ * Uploads local asset files to the Embeddables assets library.
521
+ *
522
+ * Ensures the user is logged in, sets Sentry context for the "assets upload" command,
523
+ * and orchestrates the upload workflow via `runAssetsUpload`. Accepts options for the
524
+ * embeddable ID, group ID, project-level flag, directory, recursion, dry-run mode,
525
+ * concurrency, and include/exclude glob patterns.
526
+ *
527
+ * @param opts - Options object with optional `id`, `groupId`, `project`, `dir`, `recursive`, `dryRun`, `concurrency`, `include`, and `exclude`.
528
+ * @returns A promise that resolves when the upload is complete.
529
+ * @remarks Requires login. Traced via Sentry with the "assets_upload" command span.
530
+ * @see requireLogin
531
+ * @see setSentryContextForCommand
532
+ */
533
+ assets
534
+ .command('upload')
535
+ .description('Upload local asset files to the Embeddables assets library')
536
+ .option('-i, --id <id>', 'Embeddable ID (will prompt if not provided)')
537
+ .option('--group-id <id>', 'Group ID (defaults to project ID)')
538
+ .option('--project', 'Upload from project-level assets/ folder (not tied to an embeddable)')
539
+ .option('--dir <path>', 'Asset directory (default: embeddables/<id>/assets)')
540
+ .option('-r, --recursive', 'Include files in subdirectories')
541
+ .option('--dry-run', 'Show what would be uploaded without uploading')
542
+ .option('--concurrency <n>', 'Number of parallel uploads (default: 5)')
543
+ .option('--include <glob>', 'Glob pattern(s) to include (comma-separated)')
544
+ .option('--exclude <glob>', 'Glob pattern(s) to exclude (comma-separated)')
545
+ .action(async (opts) => {
546
+ await requireLogin('assets upload');
547
+ setSentryContextForCommand('assets upload');
548
+ await withCommandSpan('assets_upload', () => runAssetsUpload({
549
+ id: opts.id,
550
+ groupId: opts.groupId,
551
+ project: opts.project,
552
+ dir: opts.dir,
553
+ recursive: opts.recursive,
554
+ dryRun: opts.dryRun,
555
+ concurrency: opts.concurrency,
556
+ include: opts.include,
557
+ exclude: opts.exclude,
558
+ }));
559
+ });
560
+ /**
561
+ * Syncs project asset metadata into assets.json.
562
+ *
563
+ * Ensures the user is logged in, sets Sentry context for the "assets sync" command,
564
+ * and orchestrates the sync workflow via `runAssetsSync`. Accepts options for the
565
+ * group ID and output file path.
566
+ *
567
+ * @param opts - Options object with optional `groupId` and `out`.
568
+ * @returns A promise that resolves when the sync is complete.
569
+ * @remarks Requires login. Traced via Sentry with the "assets_sync" command span.
570
+ * @see requireLogin
571
+ * @see setSentryContextForCommand
572
+ */
573
+ assets
574
+ .command('sync')
575
+ .description('Sync project asset metadata into assets.json')
576
+ .option('--group-id <id>', 'Group ID (defaults to project ID)')
577
+ .option('--out <path>', 'Output file path (default: assets.json)')
578
+ .action(async (opts) => {
579
+ await requireLogin('assets sync');
580
+ setSentryContextForCommand('assets sync');
581
+ await withCommandSpan('assets_sync', () => runAssetsSync({
582
+ groupId: opts.groupId,
583
+ out: opts.out,
584
+ }));
585
+ });
304
586
  await program.parseAsync(process.argv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;KAC3D,MAAM,CAAC,iBAAiB,EAAE,mCAAmC,CAAC;KAC9D,MAAM,CAAC,cAAc,EAAE,yCAAyC,CAAC;KACjE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;IACrB,MAAM,YAAY,CAAC,aAAa,CAAC,CAAA;IACjC,0BAA0B,CAAC,aAAa,CAAC,CAAA;IACzC,MAAM,eAAe,CAAC,aAAa,EAAE,GAAG,EAAE,CACxC,aAAa,CAAC;QACZ,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,GAAG,EAAE,IAAI,CAAC,GAAG;KACd,CAAC,CACH,CAAA;AACH,CAAC,CAAC,CAAA;AAEJ,MAAM,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export interface AssetsSyncOptions {
2
+ groupId?: string;
3
+ out?: string;
4
+ }
5
+ export declare function runAssetsSync(opts: AssetsSyncOptions): Promise<void>;
6
+ //# sourceMappingURL=assets-sync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assets-sync.d.ts","sourceRoot":"","sources":["../../src/commands/assets-sync.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiC1E"}
@@ -0,0 +1,35 @@
1
+ import { getAuthenticatedSupabaseClient, isLoggedIn } from '../auth/index.js';
2
+ import { syncAssetsManifest } from '../assets-manifest.js';
3
+ import { resolveGroupId } from '../group-context.js';
4
+ import { createLogger, exit } from '../logger.js';
5
+ import * as stdout from '../stdout.js';
6
+ export async function runAssetsSync(opts) {
7
+ const logger = createLogger('runAssetsSync');
8
+ if (!isLoggedIn()) {
9
+ stdout.warn('Not logged in.');
10
+ stdout.dim('Run "embeddables login" first.');
11
+ await exit(1);
12
+ return;
13
+ }
14
+ const groupId = await resolveGroupId(opts.groupId);
15
+ if (!groupId) {
16
+ stdout.error('Could not determine group ID for this project.');
17
+ stdout.dim('Set `org_id` in embeddables.json or pass `--group-id`.');
18
+ await exit(1);
19
+ return;
20
+ }
21
+ const supabase = await getAuthenticatedSupabaseClient();
22
+ if (!supabase) {
23
+ stdout.error('Could not create authenticated Supabase client. Run "embeddables login" again.');
24
+ await exit(1);
25
+ return;
26
+ }
27
+ const { outFilePath, count } = await syncAssetsManifest({
28
+ supabase,
29
+ groupId,
30
+ outFilePath: opts.out,
31
+ });
32
+ stdout.success(`Wrote ${count} asset metadata entr${count === 1 ? 'y' : 'ies'} to ${outFilePath}`);
33
+ logger.info('assets sync complete', { groupId, count, outFilePath });
34
+ }
35
+ //# sourceMappingURL=assets-sync.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assets-sync.js","sourceRoot":"","sources":["../../src/commands/assets-sync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AAOtC,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,IAAuB;IACzD,MAAM,MAAM,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;IAE5C,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC;QAClB,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;QAC7B,MAAM,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAA;QAC5C,MAAM,IAAI,CAAC,CAAC,CAAC,CAAA;QACb,OAAM;IACR,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAClD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAA;QAC9D,MAAM,CAAC,GAAG,CAAC,wDAAwD,CAAC,CAAA;QACpE,MAAM,IAAI,CAAC,CAAC,CAAC,CAAA;QACb,OAAM;IACR,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,8BAA8B,EAAE,CAAA;IACvD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,CAAC,KAAK,CAAC,gFAAgF,CAAC,CAAA;QAC9F,MAAM,IAAI,CAAC,CAAC,CAAC,CAAA;QACb,OAAM;IACR,CAAC;IAED,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,MAAM,kBAAkB,CAAC;QACtD,QAAQ;QACR,OAAO;QACP,WAAW,EAAE,IAAI,CAAC,GAAG;KACtB,CAAC,CAAA;IAEF,MAAM,CAAC,OAAO,CAAC,SAAS,KAAK,uBAAuB,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,OAAO,WAAW,EAAE,CAAC,CAAA;IAClG,MAAM,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAAA;AACtE,CAAC"}
@@ -0,0 +1,13 @@
1
+ export interface AssetsUploadOptions {
2
+ id?: string;
3
+ groupId?: string;
4
+ project?: boolean;
5
+ dir?: string;
6
+ recursive?: boolean;
7
+ dryRun?: boolean;
8
+ concurrency?: string;
9
+ include?: string;
10
+ exclude?: string;
11
+ }
12
+ export declare function runAssetsUpload(opts: AssetsUploadOptions): Promise<void>;
13
+ //# sourceMappingURL=assets-upload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assets-upload.d.ts","sourceRoot":"","sources":["../../src/commands/assets-upload.ts"],"names":[],"mappings":"AAmIA,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAyDD,wBAAsB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyB9E"}