@embeddables/cli 0.11.0 → 0.12.1
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.
- package/.prompts/custom/build-funnel.md +1 -1
- package/.prompts/embeddables-cli.md +245 -26
- package/dist/cli.js +240 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +26 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/compiler/reverse.d.ts.map +1 -1
- package/dist/compiler/reverse.js +19 -6
- package/dist/compiler/reverse.js.map +1 -1
- package/dist/workbench/UserDataPanel.d.ts.map +1 -1
- package/dist/workbench/UserDataPanel.js +61 -12
- package/dist/workbench/UserDataPanel.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -45,6 +45,17 @@ import * as stdout from './stdout.js';
|
|
|
45
45
|
import { withCommandSpan } from './tracing.js';
|
|
46
46
|
/** Only these commands may run without being logged in. All others require login. */
|
|
47
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
|
+
*/
|
|
48
59
|
async function requireLogin(commandName) {
|
|
49
60
|
const baseCommand = commandName.split(' ')[0];
|
|
50
61
|
if (COMMANDS_ALLOWED_WITHOUT_LOGIN.has(baseCommand))
|
|
@@ -55,7 +66,17 @@ async function requireLogin(commandName) {
|
|
|
55
66
|
stdout.dim('Run "embeddables login" first.');
|
|
56
67
|
await exit(1);
|
|
57
68
|
}
|
|
58
|
-
/**
|
|
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
|
+
*/
|
|
59
80
|
function setSentryContextForCommand(command) {
|
|
60
81
|
Sentry.setTag('command', command);
|
|
61
82
|
setSentryContext(getSentryContextFromProjectConfig());
|
|
@@ -74,12 +95,32 @@ configureCustomHelp(program, pkg.version);
|
|
|
74
95
|
let _historyStart = 0;
|
|
75
96
|
let _historyCommand = '';
|
|
76
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
|
+
*/
|
|
77
108
|
program.hook('preAction', (thisCommand) => {
|
|
78
109
|
_historyStart = performance.now();
|
|
79
110
|
_historyCommand = thisCommand.args?.[0] ?? thisCommand.name();
|
|
80
111
|
_historyArgs = process.argv.slice(3).map((a) => (a.length > 200 ? a.slice(0, 200) + '…' : a));
|
|
81
112
|
});
|
|
82
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
|
+
*/
|
|
83
124
|
program.hook('postAction', () => {
|
|
84
125
|
if (COMMANDS_EXCLUDED_FROM_HISTORY.has(_historyCommand))
|
|
85
126
|
return;
|
|
@@ -97,6 +138,19 @@ program.hook('postAction', () => {
|
|
|
97
138
|
// Never let history logging break the CLI
|
|
98
139
|
}
|
|
99
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
|
+
*/
|
|
100
154
|
program
|
|
101
155
|
.command('init')
|
|
102
156
|
.description('Initialize a new Embeddables project')
|
|
@@ -107,6 +161,19 @@ program
|
|
|
107
161
|
setSentryContextForCommand('init');
|
|
108
162
|
await withCommandSpan('init', () => runInit({ projectId: opts.projectId, yes: opts.yes }));
|
|
109
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
|
+
*/
|
|
110
177
|
program
|
|
111
178
|
.command('build')
|
|
112
179
|
.description('Compile React components into embeddable JSON')
|
|
@@ -120,6 +187,19 @@ program
|
|
|
120
187
|
setSentryContextForCommand('build');
|
|
121
188
|
await withCommandSpan('build', () => runBuild(opts));
|
|
122
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
|
+
*/
|
|
123
203
|
program
|
|
124
204
|
.command('dev')
|
|
125
205
|
.description('Start dev server with watch and proxy')
|
|
@@ -140,6 +220,15 @@ program
|
|
|
140
220
|
}
|
|
141
221
|
await withCommandSpan('dev', () => runDev(opts));
|
|
142
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
|
+
*/
|
|
143
232
|
program
|
|
144
233
|
.command('login')
|
|
145
234
|
.description('Login to Embeddables')
|
|
@@ -147,6 +236,15 @@ program
|
|
|
147
236
|
Sentry.setTag('command', 'login');
|
|
148
237
|
await withCommandSpan('login', () => runLogin());
|
|
149
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
|
+
*/
|
|
150
248
|
program
|
|
151
249
|
.command('logout')
|
|
152
250
|
.description('Logout from Embeddables')
|
|
@@ -154,6 +252,19 @@ program
|
|
|
154
252
|
Sentry.setTag('command', 'logout');
|
|
155
253
|
await withCommandSpan('logout', () => runLogout());
|
|
156
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
|
+
*/
|
|
157
268
|
program
|
|
158
269
|
.command('pull')
|
|
159
270
|
.description('Pull an embeddable from the cloud')
|
|
@@ -173,6 +284,20 @@ program
|
|
|
173
284
|
selectVersion,
|
|
174
285
|
}));
|
|
175
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
|
+
*/
|
|
176
301
|
program
|
|
177
302
|
.command('inspect')
|
|
178
303
|
.description('Fetch, reverse-compile, and rebuild an embeddable for debugging')
|
|
@@ -197,6 +322,19 @@ program
|
|
|
197
322
|
engine: opts.engine,
|
|
198
323
|
}));
|
|
199
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
|
+
*/
|
|
200
338
|
program
|
|
201
339
|
.command('diff')
|
|
202
340
|
.description('Show differences between two versions of an embeddable')
|
|
@@ -227,6 +365,19 @@ program
|
|
|
227
365
|
branch: opts.branch,
|
|
228
366
|
});
|
|
229
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
|
+
*/
|
|
230
381
|
program
|
|
231
382
|
.command('save')
|
|
232
383
|
.description('Build and save an embeddable to the cloud')
|
|
@@ -246,6 +397,15 @@ program
|
|
|
246
397
|
fromVersion: opts.fromVersion,
|
|
247
398
|
}));
|
|
248
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
|
+
*/
|
|
249
409
|
program
|
|
250
410
|
.command('upgrade')
|
|
251
411
|
.description('Update the CLI to the latest stable version')
|
|
@@ -253,6 +413,19 @@ program
|
|
|
253
413
|
Sentry.setTag('command', 'upgrade');
|
|
254
414
|
await withCommandSpan('upgrade', () => runUpgrade());
|
|
255
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
|
+
*/
|
|
256
429
|
program
|
|
257
430
|
.command('branch')
|
|
258
431
|
.description('Switch to a different branch of an embeddable')
|
|
@@ -262,6 +435,19 @@ program
|
|
|
262
435
|
setSentryContextForCommand('branch');
|
|
263
436
|
await withCommandSpan('branch', () => runBranch(opts));
|
|
264
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
|
+
*/
|
|
265
451
|
program
|
|
266
452
|
.command('feedback [message]')
|
|
267
453
|
.description('Send feedback about the CLI or AI prompts')
|
|
@@ -278,6 +464,19 @@ program
|
|
|
278
464
|
}));
|
|
279
465
|
});
|
|
280
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
|
+
*/
|
|
281
480
|
builder
|
|
282
481
|
.command('open')
|
|
283
482
|
.description('Open the Embeddables Builder in the browser')
|
|
@@ -288,6 +487,19 @@ builder
|
|
|
288
487
|
await withCommandSpan('builder_open', () => runBuilderOpen({ id: opts.id }));
|
|
289
488
|
});
|
|
290
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
|
+
*/
|
|
291
503
|
experiments
|
|
292
504
|
.command('connect')
|
|
293
505
|
.description('Connect an experiment to an embeddable')
|
|
@@ -304,6 +516,20 @@ experiments
|
|
|
304
516
|
}));
|
|
305
517
|
});
|
|
306
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
|
+
*/
|
|
307
533
|
assets
|
|
308
534
|
.command('upload')
|
|
309
535
|
.description('Upload local asset files to the Embeddables assets library')
|
|
@@ -331,6 +557,19 @@ assets
|
|
|
331
557
|
exclude: opts.exclude,
|
|
332
558
|
}));
|
|
333
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
|
+
*/
|
|
334
573
|
assets
|
|
335
574
|
.command('sync')
|
|
336
575
|
.description('Sync project asset metadata into assets.json')
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file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AAC,EAAE;QACX,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,GAAG,EAAE,IAAI,CAAC,GAAG;QACb,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,OAAO,EAAE,IAAI,CAAC,OAAO;KACtB,CAAC,CACH,CAAA;AACH,CAAC,CAAC,CAAA;AAEJ;;;;;;;;;;;;GAYG;AACH,MAAM;KACH,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,8CAA8C,CAAC;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAuCA,wBAAsB,OAAO,CAAC,IAAI,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,iBAqBxE"}
|
package/dist/commands/init.js
CHANGED
|
@@ -12,6 +12,16 @@ import { renderDefaultTagStylesCss } from '../constants/defaultTagStylesV4.js';
|
|
|
12
12
|
import * as stdout from '../stdout.js';
|
|
13
13
|
const __filename = fileURLToPath(import.meta.url);
|
|
14
14
|
const __dirname = path.dirname(__filename);
|
|
15
|
+
/** Strip the first YAML frontmatter block (--- ... ---) from content. Returns body only, or full content if no frontmatter. */
|
|
16
|
+
function stripFrontmatter(content) {
|
|
17
|
+
const open = content.startsWith('---\n');
|
|
18
|
+
if (!open)
|
|
19
|
+
return content;
|
|
20
|
+
const afterFirst = content.indexOf('\n---', 4);
|
|
21
|
+
if (afterFirst === -1)
|
|
22
|
+
return content;
|
|
23
|
+
return content.slice(afterFirst + 4).replace(/^\n/, '');
|
|
24
|
+
}
|
|
15
25
|
/** Recursively copy a directory, creating target dirs as needed. */
|
|
16
26
|
function copyDirSync(src, dest) {
|
|
17
27
|
fs.mkdirSync(dest, { recursive: true });
|
|
@@ -169,6 +179,7 @@ async function runInitInner(opts) {
|
|
|
169
179
|
const promptsSource = path.join(packageRoot, '.prompts', 'embeddables-cli.md');
|
|
170
180
|
const sourceCursorDir = path.join(packageRoot, '.cursor');
|
|
171
181
|
const sourceClaudeDir = path.join(packageRoot, '.claude');
|
|
182
|
+
const sourceAgentDir = path.join(packageRoot, '.agent');
|
|
172
183
|
if (fs.existsSync(promptsSource)) {
|
|
173
184
|
const content = fs.readFileSync(promptsSource, 'utf8');
|
|
174
185
|
const cursorFrontmatter = `---
|
|
@@ -176,6 +187,12 @@ globs:
|
|
|
176
187
|
alwaysApply: true
|
|
177
188
|
---
|
|
178
189
|
|
|
190
|
+
`;
|
|
191
|
+
const antigravityFrontmatter = `---
|
|
192
|
+
globs:
|
|
193
|
+
alwaysOn: true
|
|
194
|
+
---
|
|
195
|
+
|
|
179
196
|
`;
|
|
180
197
|
const claudeIntro = `# Embeddables project (Claude Code)
|
|
181
198
|
|
|
@@ -196,17 +213,21 @@ All TypeScript types are in \`.types/\` (generated by \`embeddables init\`). Use
|
|
|
196
213
|
`;
|
|
197
214
|
const cursorRulesDir = path.join(cwd, '.cursor', 'rules');
|
|
198
215
|
const claudeDir = path.join(cwd, '.claude');
|
|
216
|
+
const agentRulesDir = path.join(cwd, '.agent', 'rules');
|
|
199
217
|
fs.mkdirSync(cursorRulesDir, { recursive: true });
|
|
200
218
|
fs.mkdirSync(claudeDir, { recursive: true });
|
|
219
|
+
fs.mkdirSync(agentRulesDir, { recursive: true });
|
|
201
220
|
fs.writeFileSync(path.join(cursorRulesDir, 'embeddables-cli.md'), cursorFrontmatter + content, 'utf8');
|
|
202
221
|
fs.writeFileSync(path.join(claudeDir, 'CLAUDE.md'), claudeIntro, 'utf8');
|
|
203
222
|
fs.writeFileSync(path.join(claudeDir, 'embeddables-cli.md'), content, 'utf8');
|
|
204
223
|
fs.writeFileSync(path.join(cwd, 'AGENTS.md'), codexIntro + content, 'utf8');
|
|
224
|
+
fs.writeFileSync(path.join(agentRulesDir, 'embeddables-cli.md'), antigravityFrontmatter + stripFrontmatter(content), 'utf8');
|
|
205
225
|
stdout.success('Injected .cursor/ rules');
|
|
206
226
|
stdout.success('Injected .claude/');
|
|
207
227
|
stdout.success('Injected AGENTS.md (Codex)');
|
|
228
|
+
stdout.success('Injected .agent/ rules (Antigravity)');
|
|
208
229
|
}
|
|
209
|
-
else if (fs.existsSync(sourceCursorDir) || fs.existsSync(sourceClaudeDir)) {
|
|
230
|
+
else if (fs.existsSync(sourceCursorDir) || fs.existsSync(sourceClaudeDir) || fs.existsSync(sourceAgentDir)) {
|
|
210
231
|
if (fs.existsSync(sourceCursorDir)) {
|
|
211
232
|
copyDirSync(sourceCursorDir, path.join(cwd, '.cursor'));
|
|
212
233
|
stdout.success('Injected .cursor/ rules');
|
|
@@ -215,6 +236,10 @@ All TypeScript types are in \`.types/\` (generated by \`embeddables init\`). Use
|
|
|
215
236
|
copyDirSync(sourceClaudeDir, path.join(cwd, '.claude'));
|
|
216
237
|
stdout.success('Injected .claude/');
|
|
217
238
|
}
|
|
239
|
+
if (fs.existsSync(sourceAgentDir)) {
|
|
240
|
+
copyDirSync(sourceAgentDir, path.join(cwd, '.agent'));
|
|
241
|
+
stdout.success('Injected .agent/ rules (Antigravity)');
|
|
242
|
+
}
|
|
218
243
|
}
|
|
219
244
|
// Create tsconfig.json for editor support (JSX, type checking)
|
|
220
245
|
const tsconfigPath = path.join(cwd, 'tsconfig.json');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AAEtC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACjD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;AAE1C,oEAAoE;AACpE,SAAS,WAAW,CAAC,GAAW,EAAE,IAAY;IAC5C,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,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AM,cAAc,GAAG;QACrB,SAAS;YACP,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,4BAA4B,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,EAAE;YAC5E,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,4BAA4B,EAAE,CAAC,KAAK,CAAC,uCAAuC,CAAC,EAAE;QACnG,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,4BAA4B,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE;QACzE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,4BAA4B,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,EAAE;KAC3E,CAAA;IACD,MAAM,CAAC,GAAG,CACR,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC;QACvB,OAAO,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,kCAAkC,CAAC,EAAE,EAC3E,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,CAC7C,CAAA;IACD,MAAM,CAAC,GAAG,EAAE,CAAA;IACZ,MAAM,CAAC,GAAG,CACR,EAAE,CAAC,MAAM,CACP,sFAAsF,CACvF,EACD;QACE,WAAW,EAAE,QAAQ;QACrB,KAAK,EAAE,WAAW;KACnB,CACF,CAAA;IACD,MAAM,CAAC,GAAG,EAAE,CAAA;AACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reverse.d.ts","sourceRoot":"","sources":["../../src/compiler/reverse.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"reverse.d.ts","sourceRoot":"","sources":["../../src/compiler/reverse.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAA;AAgoBzD,wBAAsB,cAAc,CAClC,UAAU,EAAE;IACV,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5B,cAAc,CAAC,EAAE,GAAG,EAAE,CAAA;IACtB,WAAW,CAAC,EAAE,GAAG,EAAE,CAAA;IACnB,UAAU,CAAC,EAAE,GAAG,EAAE,CAAA;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB,EACD,YAAY,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE;IACL,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAC5E,iBAkFF;AAwjDD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAKpD"}
|
package/dist/compiler/reverse.js
CHANGED
|
@@ -34,7 +34,7 @@ const REVERSE_TYPE_MAP = Object.fromEntries(Object.entries(TYPE_MAP).map(([k, v]
|
|
|
34
34
|
// Component types to ignore during reverse compilation
|
|
35
35
|
const IGNORED_COMPONENT_TYPES = new Set(['PageTitle']);
|
|
36
36
|
// Component properties to ignore during reverse compilation
|
|
37
|
-
const IGNORED_COMPONENT_PROPERTIES = new Set(['clearable'
|
|
37
|
+
const IGNORED_COMPONENT_PROPERTIES = new Set(['clearable']);
|
|
38
38
|
// Base component properties (from BaseComponentProps)
|
|
39
39
|
const BASE_COMPONENT_PROPS = new Set([
|
|
40
40
|
'id',
|
|
@@ -174,7 +174,18 @@ const COMPONENT_SPECIFIC_PROPS = {
|
|
|
174
174
|
RichText: new Set([...BASE_COMPONENT_PROPS, 'text']),
|
|
175
175
|
RichTextMarkdown: new Set([...BASE_COMPONENT_PROPS, 'text']),
|
|
176
176
|
MediaImage: new Set([...BASE_COMPONENT_PROPS, 'src', 'caption', 'alt_text']),
|
|
177
|
-
MediaEmbed: new Set([
|
|
177
|
+
MediaEmbed: new Set([
|
|
178
|
+
...BASE_COMPONENT_PROPS,
|
|
179
|
+
'src',
|
|
180
|
+
'caption',
|
|
181
|
+
'silentAutoplayPreview',
|
|
182
|
+
'hide_controls',
|
|
183
|
+
'central_play_button',
|
|
184
|
+
'roundedCorners',
|
|
185
|
+
'embed_code',
|
|
186
|
+
'placeholder_image_url',
|
|
187
|
+
'embed_code_raw',
|
|
188
|
+
]),
|
|
178
189
|
Container: new Set([...BASE_COMPONENT_PROPS, 'container_type']),
|
|
179
190
|
FileUpload: new Set([
|
|
180
191
|
...INPUT_COMPONENT_PROPS,
|
|
@@ -1268,10 +1279,6 @@ function htmlToJSXChildren(html, indent) {
|
|
|
1268
1279
|
if (seenAttrs.has(attrName))
|
|
1269
1280
|
continue;
|
|
1270
1281
|
seenAttrs.add(attrName);
|
|
1271
|
-
// Skip attributes without values (like <img alt />) - these should be removed
|
|
1272
|
-
if (!attrMatch[0].includes('=')) {
|
|
1273
|
-
continue;
|
|
1274
|
-
}
|
|
1275
1282
|
// In CustomHTML we emit HTML-like attribute names (class, for, tabindex) so the
|
|
1276
1283
|
// TSX matches the serialized HTML. Normalize classname (wrong serialization) to class.
|
|
1277
1284
|
let jsxAttrName = attrName;
|
|
@@ -1282,6 +1289,12 @@ function htmlToJSXChildren(html, indent) {
|
|
|
1282
1289
|
jsxAttrName = 'for';
|
|
1283
1290
|
else if (attrLower === 'tabindex')
|
|
1284
1291
|
jsxAttrName = 'tabindex';
|
|
1292
|
+
// Boolean HTML attribute (no value, no '=') - preserve as JSX boolean attribute
|
|
1293
|
+
// e.g., <video muted autoplay loop> → <video muted autoplay loop />
|
|
1294
|
+
if (!attrMatch[0].includes('=')) {
|
|
1295
|
+
attrs.push(jsxAttrName);
|
|
1296
|
+
continue;
|
|
1297
|
+
}
|
|
1285
1298
|
// Handle style attribute: convert CSS string to JSX object
|
|
1286
1299
|
if (attrName === 'style' && attrValue) {
|
|
1287
1300
|
const styleObj = cssStringToStyleObject(attrValue);
|