@popcraft/cli 0.42.3 → 0.42.5

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 (2) hide show
  1. package/dist/popcraft.mjs +19 -43
  2. package/package.json +2 -2
package/dist/popcraft.mjs CHANGED
@@ -1196,7 +1196,7 @@ function operations(spec = openapi) {
1196
1196
  }
1197
1197
  async function call(target2, method, path, opts = {}) {
1198
1198
  const qs = new URLSearchParams(opts.query ?? {}).toString();
1199
- const headers = { "user-agent": `popcraft-cli/${"0.42.3"}`, ...opts.headers };
1199
+ const headers = { "user-agent": `popcraft-cli/${"0.42.5"}`, ...opts.headers };
1200
1200
  if (target2.token) headers.authorization = `Bearer ${target2.token}`;
1201
1201
  if (opts.contentType) headers["content-type"] = opts.contentType;
1202
1202
  try {
@@ -32538,7 +32538,6 @@ var init_en2 = __esm({
32538
32538
  "cloudFiles.tabDesigns": "Designs",
32539
32539
  "cloudFiles.tabLibrary": "Library",
32540
32540
  "cloudFiles.tabMarket": "Market",
32541
- "cloudFiles.thisBuildHasNoCloud": "This build has no cloud account configured, so there are no files to show.",
32542
32541
  "cloudFiles.today": "Today",
32543
32542
  "cloudFiles.trash": "Trash",
32544
32543
  "cloudFiles.trashIsEmpty": "Trash is empty",
@@ -33603,6 +33602,7 @@ var init_en2 = __esm({
33603
33602
  "exportDialog.webm": "WebM",
33604
33603
  "exportDialog.workArea": "Work area",
33605
33604
  "fileBrowser.close": "Close",
33605
+ "fileBrowser.files": "Files",
33606
33606
  "fileBrowser.new": "New",
33607
33607
  "fileBrowser.searchFiles": "Search files",
33608
33608
  "fileBrowser.settings": "Settings",
@@ -34318,6 +34318,12 @@ var init_en2 = __esm({
34318
34318
  "listingFields.httpsOnePngHttpsTwo": "https://\u2026/one.png\nhttps://\u2026/two.png",
34319
34319
  "listingFields.iconsExportFigma": "icons, export, figma",
34320
34320
  "listingFields.none": "None",
34321
+ "localFiles.emptyHint": "This build keeps files on this device. Make one to get started.",
34322
+ "localFiles.emptyTitle": "No files on this device yet",
34323
+ "localFiles.newFile": "New file",
34324
+ "localFiles.noMatch": "No files match \u201C{query}\u201D.",
34325
+ "localFiles.title": "On this device",
34326
+ "localFiles.untitled": "Untitled",
34321
34327
  "localStylesSection.addColorStyle": "Add color style",
34322
34328
  "localStylesSection.addTextStyle": "Add text style",
34323
34329
  "localStylesSection.deleteStyle": "Delete style",
@@ -37321,7 +37327,6 @@ var require_es = __commonJS({
37321
37327
  "cloudFiles.tabDesigns": "Dise\xF1os",
37322
37328
  "cloudFiles.tabLibrary": "Biblioteca",
37323
37329
  "cloudFiles.tabMarket": "Mercado",
37324
- "cloudFiles.thisBuildHasNoCloud": "Esta compilaci\xF3n no tiene una cuenta en la nube configurada, por lo que no hay archivos para mostrar.",
37325
37330
  "cloudFiles.today": "Hoy",
37326
37331
  "cloudFiles.trash": "Papelera",
37327
37332
  "cloudFiles.trashIsEmpty": "La papelera est\xE1 vac\xEDa",
@@ -42100,7 +42105,6 @@ var require_fr = __commonJS({
42100
42105
  "cloudFiles.tabDesigns": "Designs",
42101
42106
  "cloudFiles.tabLibrary": "Biblioth\xE8que",
42102
42107
  "cloudFiles.tabMarket": "March\xE9",
42103
- "cloudFiles.thisBuildHasNoCloud": "Cette version n\u2019a pas de compte cloud configur\xE9, il n\u2019y a donc aucun fichier \xE0 afficher.",
42104
42108
  "cloudFiles.today": "Aujourd\u2019hui",
42105
42109
  "cloudFiles.trash": "Corbeille",
42106
42110
  "cloudFiles.trashIsEmpty": "La corbeille est vide",
@@ -46879,7 +46883,6 @@ var require_de = __commonJS({
46879
46883
  "cloudFiles.tabDesigns": "Designs",
46880
46884
  "cloudFiles.tabLibrary": "Bibliothek",
46881
46885
  "cloudFiles.tabMarket": "Markt",
46882
- "cloudFiles.thisBuildHasNoCloud": "Diese Version hat kein Cloud-Konto konfiguriert, daher gibt es keine Dateien anzuzeigen.",
46883
46886
  "cloudFiles.today": "Heute",
46884
46887
  "cloudFiles.trash": "Papierkorb",
46885
46888
  "cloudFiles.trashIsEmpty": "Papierkorb ist leer",
@@ -51658,7 +51661,6 @@ var require_it = __commonJS({
51658
51661
  "cloudFiles.tabDesigns": "Design",
51659
51662
  "cloudFiles.tabLibrary": "Libreria",
51660
51663
  "cloudFiles.tabMarket": "Mercato",
51661
- "cloudFiles.thisBuildHasNoCloud": "Questa build non ha un account cloud configurato, quindi non ci sono file da mostrare.",
51662
51664
  "cloudFiles.today": "Oggi",
51663
51665
  "cloudFiles.trash": "Cestino",
51664
51666
  "cloudFiles.trashIsEmpty": "Il cestino \xE8 vuoto",
@@ -56437,7 +56439,6 @@ var require_pt_BR = __commonJS({
56437
56439
  "cloudFiles.tabDesigns": "Designs",
56438
56440
  "cloudFiles.tabLibrary": "Biblioteca",
56439
56441
  "cloudFiles.tabMarket": "Mercado",
56440
- "cloudFiles.thisBuildHasNoCloud": "Esta vers\xE3o n\xE3o tem uma conta na nuvem configurada, ent\xE3o n\xE3o h\xE1 arquivos para mostrar.",
56441
56442
  "cloudFiles.today": "Hoje",
56442
56443
  "cloudFiles.trash": "Lixeira",
56443
56444
  "cloudFiles.trashIsEmpty": "A lixeira est\xE1 vazia",
@@ -61216,7 +61217,6 @@ var require_ja = __commonJS({
61216
61217
  "cloudFiles.tabDesigns": "\u30C7\u30B6\u30A4\u30F3",
61217
61218
  "cloudFiles.tabLibrary": "\u30E9\u30A4\u30D6\u30E9\u30EA",
61218
61219
  "cloudFiles.tabMarket": "\u30DE\u30FC\u30B1\u30C3\u30C8",
61219
- "cloudFiles.thisBuildHasNoCloud": "\u3053\u306E\u30D3\u30EB\u30C9\u306B\u306F\u30AF\u30E9\u30A6\u30C9\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u306A\u3044\u305F\u3081\u3001\u8868\u793A\u3059\u308B\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
61220
61220
  "cloudFiles.today": "\u4ECA\u65E5",
61221
61221
  "cloudFiles.trash": "\u30B4\u30DF\u7BB1",
61222
61222
  "cloudFiles.trashIsEmpty": "\u30B4\u30DF\u7BB1\u306F\u7A7A\u3067\u3059",
@@ -65995,7 +65995,6 @@ var require_ko = __commonJS({
65995
65995
  "cloudFiles.tabDesigns": "\uB514\uC790\uC778",
65996
65996
  "cloudFiles.tabLibrary": "\uB77C\uC774\uBE0C\uB7EC\uB9AC",
65997
65997
  "cloudFiles.tabMarket": "\uB9C8\uCF13",
65998
- "cloudFiles.thisBuildHasNoCloud": "\uC774 \uBE4C\uB4DC\uC5D0\uB294 \uD074\uB77C\uC6B0\uB4DC \uACC4\uC815\uC774 \uAD6C\uC131\uB418\uC5B4 \uC788\uC9C0 \uC54A\uC544 \uD45C\uC2DC\uD560 \uD30C\uC77C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
65999
65998
  "cloudFiles.today": "\uC624\uB298",
66000
65999
  "cloudFiles.trash": "\uD734\uC9C0\uD1B5",
66001
66000
  "cloudFiles.trashIsEmpty": "\uD734\uC9C0\uD1B5\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",
@@ -70774,7 +70773,6 @@ var require_zh_CN = __commonJS({
70774
70773
  "cloudFiles.tabDesigns": "\u8BBE\u8BA1",
70775
70774
  "cloudFiles.tabLibrary": "\u5E93",
70776
70775
  "cloudFiles.tabMarket": "\u5E02\u573A",
70777
- "cloudFiles.thisBuildHasNoCloud": "\u6B64\u7248\u672C\u672A\u914D\u7F6E\u4E91\u8D26\u6237\uFF0C\u56E0\u6B64\u6CA1\u6709\u6587\u4EF6\u53EF\u663E\u793A\u3002",
70778
70776
  "cloudFiles.today": "\u4ECA\u5929",
70779
70777
  "cloudFiles.trash": "\u5E9F\u7EB8\u7BD3",
70780
70778
  "cloudFiles.trashIsEmpty": "\u5E9F\u7EB8\u7BD3\u4E3A\u7A7A",
@@ -75553,7 +75551,6 @@ var require_zh_TW = __commonJS({
75553
75551
  "cloudFiles.tabDesigns": "\u8A2D\u8A08",
75554
75552
  "cloudFiles.tabLibrary": "\u5716\u5EAB",
75555
75553
  "cloudFiles.tabMarket": "\u5E02\u96C6",
75556
- "cloudFiles.thisBuildHasNoCloud": "\u6B64\u7248\u672C\u672A\u8A2D\u5B9A\u96F2\u7AEF\u5E33\u6236\uFF0C\u56E0\u6B64\u6C92\u6709\u6A94\u6848\u53EF\u986F\u793A\u3002",
75557
75554
  "cloudFiles.today": "\u4ECA\u5929",
75558
75555
  "cloudFiles.trash": "\u5783\u573E\u6876",
75559
75556
  "cloudFiles.trashIsEmpty": "\u5783\u573E\u6876\u662F\u7A7A\u7684",
@@ -80332,7 +80329,6 @@ var require_ru = __commonJS({
80332
80329
  "cloudFiles.tabDesigns": "\u0414\u0438\u0437\u0430\u0439\u043D\u044B",
80333
80330
  "cloudFiles.tabLibrary": "\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430",
80334
80331
  "cloudFiles.tabMarket": "\u041C\u0430\u0440\u043A\u0435\u0442",
80335
- "cloudFiles.thisBuildHasNoCloud": "\u0412 \u044D\u0442\u043E\u0439 \u0441\u0431\u043E\u0440\u043A\u0435 \u043D\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0430 \u043E\u0431\u043B\u0430\u0447\u043D\u0430\u044F \u0443\u0447\u0435\u0442\u043D\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C, \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u043D\u0435\u0442 \u0444\u0430\u0439\u043B\u043E\u0432 \u0434\u043B\u044F \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F.",
80336
80332
  "cloudFiles.today": "\u0421\u0435\u0433\u043E\u0434\u043D\u044F",
80337
80333
  "cloudFiles.trash": "\u041A\u043E\u0440\u0437\u0438\u043D\u0430",
80338
80334
  "cloudFiles.trashIsEmpty": "\u041A\u043E\u0440\u0437\u0438\u043D\u0430 \u043F\u0443\u0441\u0442\u0430",
@@ -85111,7 +85107,6 @@ var require_ar = __commonJS({
85111
85107
  "cloudFiles.tabDesigns": "\u062A\u0635\u0645\u064A\u0645\u0627\u062A",
85112
85108
  "cloudFiles.tabLibrary": "\u0645\u0643\u062A\u0628\u0629",
85113
85109
  "cloudFiles.tabMarket": "\u0633\u0648\u0642",
85114
- "cloudFiles.thisBuildHasNoCloud": "\u0644\u0627 \u064A\u062D\u062A\u0648\u064A \u0647\u0630\u0627 \u0627\u0644\u0625\u0635\u062F\u0627\u0631 \u0639\u0644\u0649 \u062D\u0633\u0627\u0628 \u0633\u062D\u0627\u0628\u064A \u0645\u0647\u064A\u0623\u060C \u0644\u0630\u0627 \u0644\u0627 \u062A\u0648\u062C\u062F \u0645\u0644\u0641\u0627\u062A \u0644\u0639\u0631\u0636\u0647\u0627.",
85115
85110
  "cloudFiles.today": "\u0627\u0644\u064A\u0648\u0645",
85116
85111
  "cloudFiles.trash": "\u0633\u0644\u0629 \u0627\u0644\u0645\u0647\u0645\u0644\u0627\u062A",
85117
85112
  "cloudFiles.trashIsEmpty": "\u0633\u0644\u0629 \u0627\u0644\u0645\u0647\u0645\u0644\u0627\u062A \u0641\u0627\u0631\u063A\u0629",
@@ -89890,7 +89885,6 @@ var require_hi = __commonJS({
89890
89885
  "cloudFiles.tabDesigns": "\u0921\u093F\u091C\u093C\u093E\u0907\u0928",
89891
89886
  "cloudFiles.tabLibrary": "\u0932\u093E\u0907\u092C\u094D\u0930\u0947\u0930\u0940",
89892
89887
  "cloudFiles.tabMarket": "\u092E\u093E\u0930\u094D\u0915\u0947\u091F",
89893
- "cloudFiles.thisBuildHasNoCloud": "\u0907\u0938 \u092C\u093F\u0932\u094D\u0921 \u092E\u0947\u0902 \u0915\u094B\u0908 \u0915\u094D\u0932\u093E\u0909\u0921 \u0916\u093E\u0924\u093E \u0915\u0949\u0928\u094D\u092B\u093C\u093F\u0917\u0930 \u0928\u0939\u0940\u0902 \u0939\u0948, \u0907\u0938\u0932\u093F\u090F \u0926\u093F\u0916\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u094B\u0908 \u092B\u093C\u093E\u0907\u0932 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964",
89894
89888
  "cloudFiles.today": "\u0906\u091C",
89895
89889
  "cloudFiles.trash": "\u091F\u094D\u0930\u0948\u0936",
89896
89890
  "cloudFiles.trashIsEmpty": "\u091F\u094D\u0930\u0948\u0936 \u0916\u093E\u0932\u0940 \u0939\u0948",
@@ -96194,6 +96188,7 @@ function repairDocumentPaints(doc2) {
96194
96188
  var broken;
96195
96189
  var init_paint_repair = __esm({
96196
96190
  "lib/document/paint-repair.ts"() {
96191
+ "use strict";
96197
96192
  init_shader_graph();
96198
96193
  broken = (p2) => {
96199
96194
  if (!p2 || typeof p2 !== "object") return false;
@@ -97541,7 +97536,6 @@ function relinkCopies(doc2, copies) {
97541
97536
  var TEXT_PATH_SOURCE_TYPES, isPathSource;
97542
97537
  var init_text_links = __esm({
97543
97538
  "lib/document/text-links.ts"() {
97544
- "use strict";
97545
97539
  init_transform();
97546
97540
  TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
97547
97541
  isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
@@ -248871,7 +248865,6 @@ function fillPhotoFrame(doc2, groupId, imageUrl, size6, name2 = "Photo", credit)
248871
248865
  var isPhotoFrame;
248872
248866
  var init_photo_frames = __esm({
248873
248867
  "lib/document/photo-frames.ts"() {
248874
- "use strict";
248875
248868
  init_dist_node();
248876
248869
  init_scene_graph();
248877
248870
  init_types();
@@ -252425,7 +252418,6 @@ function resizeWindow(doc2, target2, rect) {
252425
252418
  }
252426
252419
  var init_crop = __esm({
252427
252420
  "lib/editor/crop.ts"() {
252428
- "use strict";
252429
252421
  init_dist_node();
252430
252422
  init_scene_graph();
252431
252423
  init_photo_frames();
@@ -255953,7 +255945,6 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
255953
255945
  var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
255954
255946
  var init_shader_presets = __esm({
255955
255947
  "lib/engine/shader-presets.ts"() {
255956
- "use strict";
255957
255948
  init_shader_graph();
255958
255949
  init_shader_graph_presets();
255959
255950
  init_shader_presets_legacy();
@@ -256647,7 +256638,6 @@ var init_apply2 = __esm({
256647
256638
  var HYPERY_CLIENT_ID, HYPERY_GATEWAY_URL, HYPERY_AI_SCOPES, plansEnabled, HYPERY_BILLING_SCOPES, HYPERY_AUDIO_SCOPES, HYPERY_SCOPES, cloudEnabled;
256648
256639
  var init_config2 = __esm({
256649
256640
  "lib/client/cloud/config.ts"() {
256650
- "use strict";
256651
256641
  HYPERY_CLIENT_ID = process.env.NEXT_PUBLIC_HYPERY_CLIENT_ID ?? "";
256652
256642
  HYPERY_GATEWAY_URL = process.env.NEXT_PUBLIC_HYPERY_GATEWAY_URL ?? "https://hypery.ai";
256653
256643
  HYPERY_AI_SCOPES = ["ai:chat", "ai:completions", "ai:models", "ai:images"];
@@ -256914,7 +256904,6 @@ function followPeers(peers) {
256914
256904
  var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
256915
256905
  var init_presence = __esm({
256916
256906
  "lib/collab/presence.ts"() {
256917
- "use strict";
256918
256907
  init_esm();
256919
256908
  init_editor_store();
256920
256909
  init_status_announcements();
@@ -257827,7 +257816,6 @@ function onTabMessage(fn) {
257827
257816
  var EDITOR_HOME, localDocPath, cloudFilePath, CHANNEL, channel;
257828
257817
  var init_tab_mode = __esm({
257829
257818
  "lib/desktop/tab-mode.ts"() {
257830
- "use strict";
257831
257819
  EDITOR_HOME = "/home";
257832
257820
  localDocPath = (docId) => `${EDITOR_HOME}?doc=${encodeURIComponent(docId)}`;
257833
257821
  cloudFilePath = (key5) => `/pop/${encodeURIComponent(key5)}`;
@@ -260446,7 +260434,6 @@ function retuneShaderAudio(node2, fillId) {
260446
260434
  }
260447
260435
  var init_shader_audio = __esm({
260448
260436
  "lib/motion/shader-audio.ts"() {
260449
- "use strict";
260450
260437
  init_shader_params();
260451
260438
  init_modifier_edit();
260452
260439
  init_keys();
@@ -262676,6 +262663,7 @@ function invalidateMe() {
262676
262663
  var ApiError, inFlight, fileUrl, meInFlight, provisioned, ME_TTL_MS, cloudApi;
262677
262664
  var init_api4 = __esm({
262678
262665
  "lib/client/cloud/api.ts"() {
262666
+ "use strict";
262679
262667
  init_session();
262680
262668
  init_plan_limit();
262681
262669
  init_purchases();
@@ -262686,9 +262674,6 @@ var init_api4 = __esm({
262686
262674
  this.code = code;
262687
262675
  this.body = body;
262688
262676
  }
262689
- status;
262690
- code;
262691
- body;
262692
262677
  /** `{ limit, max, used, tier, upgradeTo }` when a plan limit blocked the request (`code === 'plan_limit'`). */
262693
262678
  get planLimit() {
262694
262679
  if (this.code !== "plan_limit") return null;
@@ -262948,6 +262933,7 @@ function planEntryAction({ home }) {
262948
262933
  var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
262949
262934
  var init_team = __esm({
262950
262935
  "lib/client/cloud/team.ts"() {
262936
+ "use strict";
262951
262937
  init_esm();
262952
262938
  init_api4();
262953
262939
  init_session();
@@ -273030,7 +273016,6 @@ async function prepareTemplate(t3) {
273030
273016
  var templateMediaSources;
273031
273017
  var init_use = __esm({
273032
273018
  "lib/templates/use.ts"() {
273033
- "use strict";
273034
273019
  init_capture();
273035
273020
  templateMediaSources = (t3, hash3) => [
273036
273021
  `/templates/media/${hash3}`,
@@ -306523,7 +306508,6 @@ function decodeSource(key5, label3) {
306523
306508
  var DECODE_CACHE_BYTES, cache7, pending4, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
306524
306509
  var init_audio_decode = __esm({
306525
306510
  "lib/motion/audio-decode.ts"() {
306526
- "use strict";
306527
306511
  init_media_store();
306528
306512
  init_audio_plan();
306529
306513
  init_time_stretch();
@@ -310746,7 +310730,6 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
310746
310730
  var online, goesLocal;
310747
310731
  var init_new_file = __esm({
310748
310732
  "lib/client/cloud/new-file.ts"() {
310749
- "use strict";
310750
310733
  init_scene_graph();
310751
310734
  init_print_pages();
310752
310735
  init_page_presets();
@@ -311287,6 +311270,7 @@ function startCloudSync() {
311287
311270
  var status, readOnlyDoc, activeLink, statusListeners, notice, urlArmed, opening, syncStatus, canEdit, uploaded, MEDIA_UPLOAD_PARALLEL, pushTimer, pushing, dirty, pendingMedia, collab, collabSession, collabAnonymous, uploadedThumbs, thumbCheckedAt, THUMB_EVERY_MS, THUMB_MIN_GAP_MS, putThumbnail, openingFiles, mediaHealed, started2;
311288
311271
  var init_sync2 = __esm({
311289
311272
  "lib/client/cloud/sync.ts"() {
311273
+ "use strict";
311290
311274
  init_paint_repair();
311291
311275
  init_migrate();
311292
311276
  init_view();
@@ -311493,7 +311477,6 @@ async function dispatchShaped(key5, options) {
311493
311477
  var onViolation;
311494
311478
  var init_dispatch = __esm({
311495
311479
  "lib/commands/dispatch.ts"() {
311496
- "use strict";
311497
311480
  init_errors();
311498
311481
  init_registry();
311499
311482
  init_confirm();
@@ -317951,6 +317934,7 @@ function agentToolList() {
317951
317934
  var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
317952
317935
  var init_agent = __esm({
317953
317936
  "lib/commands/agent.ts"() {
317937
+ "use strict";
317954
317938
  init_types5();
317955
317939
  init_registry();
317956
317940
  init_errors();
@@ -320670,7 +320654,6 @@ function buildDesignContext(doc2, maxChars = AI_LIMITS.maxContextChars) {
320670
320654
  var hex8;
320671
320655
  var init_context = __esm({
320672
320656
  "lib/ai/context.ts"() {
320673
- "use strict";
320674
320657
  init_limits();
320675
320658
  hex8 = (c2) => "#" + [c2.r, c2.g, c2.b].map((v) => Math.round(Math.max(0, Math.min(1, v)) * 255).toString(16).padStart(2, "0")).join("");
320676
320659
  }
@@ -321010,7 +320993,6 @@ function outerSizeFor(want, inner, outer) {
321010
320993
  var AUDIENCE_PRESETS, DEFAULT_AUDIENCE_RESOLUTION, MIN_SIDE, MAX_SIDE, FIT_OPEN_SIZE, clampSide, formatResolution, sameResolution, captureSize;
321011
320994
  var init_resolution = __esm({
321012
320995
  "lib/slides/audience/resolution.ts"() {
321013
- "use strict";
321014
320996
  init_stage_view();
321015
320997
  AUDIENCE_PRESETS = [
321016
320998
  { id: "720p", label: "1280 \xD7 720 (720p)", resolution: { kind: "fixed", width: 1280, height: 720 } },
@@ -327816,7 +327798,7 @@ var init_package = __esm({
327816
327798
  "packages/runtime/package.json"() {
327817
327799
  package_default = {
327818
327800
  name: "@popcraft/runtime",
327819
- version: "0.42.3",
327801
+ version: "0.42.5",
327820
327802
  description: "What code exported from PopCraft shares: the meaning of expressions (operators and functions) and, as it grows, the parts of a design's behaviour that are common code rather than generated React.",
327821
327803
  license: "MIT",
327822
327804
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -361566,7 +361548,6 @@ var init_delete_current_file = __esm({
361566
361548
  var storeOpsSeam;
361567
361549
  var init_seams = __esm({
361568
361550
  "lib/commands/seams.ts"() {
361569
- "use strict";
361570
361551
  storeOpsSeam = (st) => ({
361571
361552
  booleanOperation: (op4) => st().booleanOperation(op4),
361572
361553
  flatten: () => st().flattenSelection(),
@@ -400338,7 +400319,6 @@ function record(source, namespaces, globals, limits) {
400338
400319
  var HELPER_NAMES;
400339
400320
  var init_helper_names = __esm({
400340
400321
  "lib/agent/design-script/helper-names.ts"() {
400341
- "use strict";
400342
400322
  HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
400343
400323
  }
400344
400324
  });
@@ -400441,7 +400421,6 @@ async function replay(rec, namespaces2) {
400441
400421
  var BLOCKED, isRef2, isFn;
400442
400422
  var init_replay = __esm({
400443
400423
  "lib/agent/design-script/replay.ts"() {
400444
- "use strict";
400445
400424
  BLOCKED = /* @__PURE__ */ new Set(["constructor", "prototype", "__proto__", "caller", "callee", "arguments", "call", "apply", "bind"]);
400446
400425
  isRef2 = (v) => !!v && typeof v === "object" && "$ref" in v && Array.isArray(v.path);
400447
400426
  isFn = (v) => !!v && typeof v === "object" && "$fn" in v && Array.isArray(v.ops);
@@ -400579,7 +400558,6 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
400579
400558
  var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
400580
400559
  var init_build3 = __esm({
400581
400560
  "lib/agent/design-script/build.ts"() {
400582
- "use strict";
400583
400561
  init_hash();
400584
400562
  init_scene_graph();
400585
400563
  init_libraries();
@@ -400609,7 +400587,6 @@ function designFrameOf(doc2, id3) {
400609
400587
  }
400610
400588
  var init_locate = __esm({
400611
400589
  "lib/agent/design-script/locate.ts"() {
400612
- "use strict";
400613
400590
  }
400614
400591
  });
400615
400592
 
@@ -405784,7 +405761,6 @@ function registerBuiltinCommands() {
405784
405761
  var builtinCommands, uiOnlyCommands;
405785
405762
  var init_builtin4 = __esm({
405786
405763
  "lib/commands/builtin.ts"() {
405787
- "use strict";
405788
405764
  init_registry();
405789
405765
  init_node();
405790
405766
  init_node();
@@ -411151,13 +411127,13 @@ var init_hypery = __esm({
411151
411127
 
411152
411128
  // lib/agent/design-script/run-node.ts
411153
411129
  import vm from "node:vm";
411154
- function recordInNode(source3, namespaces2, globals) {
411155
- const ctx2 = vm.createContext({ __src: source3, __ns: [...namespaces2], __g: JSON.parse(JSON.stringify(globals)), __lim: { ...RECORD_LIMITS2 } });
411130
+ function recordInNode(source3, namespaces2, globals, limits2 = RECORD_LIMITS2) {
411131
+ const ctx2 = vm.createContext({ __src: source3, __ns: [...namespaces2], __g: JSON.parse(JSON.stringify(globals)), __lim: { ...limits2 } });
411156
411132
  vm.runInContext(RECORDER_SOURCE, ctx2);
411157
411133
  try {
411158
- return JSON.parse(vm.runInContext("JSON.stringify(record(__src, __ns, __g, __lim))", ctx2, { timeout: RECORD_LIMITS2.timeoutMs }));
411134
+ return JSON.parse(vm.runInContext("JSON.stringify(record(__src, __ns, __g, __lim))", ctx2, { timeout: limits2.timeoutMs }));
411159
411135
  } catch (err2) {
411160
- return { ops: [], error: { message: /timed out/i.test(String(err2)) ? `The script ran longer than ${RECORD_LIMITS2.timeoutMs / 1e3} s (an endless loop?).` : String(err2.message ?? err2) } };
411136
+ return { ops: [], error: { message: /timed out/i.test(String(err2)) ? `The script ran longer than ${limits2.timeoutMs / 1e3} s (an endless loop?).` : String(err2.message ?? err2) } };
411161
411137
  }
411162
411138
  }
411163
411139
  var init_run_node = __esm({
@@ -413374,7 +413350,7 @@ init_resources();
413374
413350
  init_desktop();
413375
413351
  init_hypery();
413376
413352
  import { createInterface } from "node:readline";
413377
- var VERSION2 = "0.42.3";
413353
+ var VERSION2 = "0.42.5";
413378
413354
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
413379
413355
 
413380
413356
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.42.3",
3
+ "version": "0.42.5",
4
4
  "description": "The PopCraft command line: edit .popcraft files headlessly, call the REST API, publish to the marketplace and manage the desktop app's local plugins, themes, fonts, skills and agents.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://popcraft.app/docs/api/cli",
@@ -34,7 +34,7 @@
34
34
  "esbuild": "0.28.2"
35
35
  },
36
36
  "dependencies": {
37
- "@popcraft/kit": "0.42.3"
37
+ "@popcraft/kit": "0.42.5"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",