@popcraft/cli 0.42.3 → 0.42.4

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 +14 -27
  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.4"}`, ...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",
@@ -94491,7 +94485,6 @@ function hasMessage(key5) {
94491
94485
  var current2, loading, listeners, formats, asts;
94492
94486
  var init_runtime = __esm({
94493
94487
  "lib/i18n/runtime.ts"() {
94494
- "use strict";
94495
94488
  init_intl_messageformat();
94496
94489
  init_icu_messageformat_parser();
94497
94490
  init_catalogs();
@@ -96451,6 +96444,7 @@ async function sha256Prefix(bytes2) {
96451
96444
  }
96452
96445
  var init_media_hash = __esm({
96453
96446
  "lib/storage/media-hash.ts"() {
96447
+ "use strict";
96454
96448
  }
96455
96449
  });
96456
96450
 
@@ -96833,6 +96827,7 @@ function releaseMediaMemory(hash3) {
96833
96827
  var key2, peaksKey, objectUrls, sourceKey, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, isImageDataUrl, memory, pendingLoads, sourceAliases, PAINT_KEYS, URL_KEYS;
96834
96828
  var init_media_store = __esm({
96835
96829
  "lib/storage/media-store.ts"() {
96830
+ "use strict";
96836
96831
  init_media_types();
96837
96832
  init_idb();
96838
96833
  init_media_hash();
@@ -247894,6 +247889,7 @@ function repairCompositions(comps, nodes) {
247894
247889
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
247895
247890
  var init_invariants = __esm({
247896
247891
  "lib/motion/invariants.ts"() {
247892
+ "use strict";
247897
247893
  init_easing();
247898
247894
  init_properties();
247899
247895
  init_markers();
@@ -262676,6 +262672,7 @@ function invalidateMe() {
262676
262672
  var ApiError, inFlight, fileUrl, meInFlight, provisioned, ME_TTL_MS, cloudApi;
262677
262673
  var init_api4 = __esm({
262678
262674
  "lib/client/cloud/api.ts"() {
262675
+ "use strict";
262679
262676
  init_session();
262680
262677
  init_plan_limit();
262681
262678
  init_purchases();
@@ -262686,9 +262683,6 @@ var init_api4 = __esm({
262686
262683
  this.code = code;
262687
262684
  this.body = body;
262688
262685
  }
262689
- status;
262690
- code;
262691
- body;
262692
262686
  /** `{ limit, max, used, tier, upgradeTo }` when a plan limit blocked the request (`code === 'plan_limit'`). */
262693
262687
  get planLimit() {
262694
262688
  if (this.code !== "plan_limit") return null;
@@ -310746,7 +310740,6 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
310746
310740
  var online, goesLocal;
310747
310741
  var init_new_file = __esm({
310748
310742
  "lib/client/cloud/new-file.ts"() {
310749
- "use strict";
310750
310743
  init_scene_graph();
310751
310744
  init_print_pages();
310752
310745
  init_page_presets();
@@ -311493,7 +311486,6 @@ async function dispatchShaped(key5, options) {
311493
311486
  var onViolation;
311494
311487
  var init_dispatch = __esm({
311495
311488
  "lib/commands/dispatch.ts"() {
311496
- "use strict";
311497
311489
  init_errors();
311498
311490
  init_registry();
311499
311491
  init_confirm();
@@ -320670,7 +320662,6 @@ function buildDesignContext(doc2, maxChars = AI_LIMITS.maxContextChars) {
320670
320662
  var hex8;
320671
320663
  var init_context = __esm({
320672
320664
  "lib/ai/context.ts"() {
320673
- "use strict";
320674
320665
  init_limits();
320675
320666
  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
320667
  }
@@ -321010,7 +321001,6 @@ function outerSizeFor(want, inner, outer) {
321010
321001
  var AUDIENCE_PRESETS, DEFAULT_AUDIENCE_RESOLUTION, MIN_SIDE, MAX_SIDE, FIT_OPEN_SIZE, clampSide, formatResolution, sameResolution, captureSize;
321011
321002
  var init_resolution = __esm({
321012
321003
  "lib/slides/audience/resolution.ts"() {
321013
- "use strict";
321014
321004
  init_stage_view();
321015
321005
  AUDIENCE_PRESETS = [
321016
321006
  { id: "720p", label: "1280 \xD7 720 (720p)", resolution: { kind: "fixed", width: 1280, height: 720 } },
@@ -327816,7 +327806,7 @@ var init_package = __esm({
327816
327806
  "packages/runtime/package.json"() {
327817
327807
  package_default = {
327818
327808
  name: "@popcraft/runtime",
327819
- version: "0.42.3",
327809
+ version: "0.42.4",
327820
327810
  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
327811
  license: "MIT",
327822
327812
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -361566,7 +361556,6 @@ var init_delete_current_file = __esm({
361566
361556
  var storeOpsSeam;
361567
361557
  var init_seams = __esm({
361568
361558
  "lib/commands/seams.ts"() {
361569
- "use strict";
361570
361559
  storeOpsSeam = (st) => ({
361571
361560
  booleanOperation: (op4) => st().booleanOperation(op4),
361572
361561
  flatten: () => st().flattenSelection(),
@@ -400441,7 +400430,6 @@ async function replay(rec, namespaces2) {
400441
400430
  var BLOCKED, isRef2, isFn;
400442
400431
  var init_replay = __esm({
400443
400432
  "lib/agent/design-script/replay.ts"() {
400444
- "use strict";
400445
400433
  BLOCKED = /* @__PURE__ */ new Set(["constructor", "prototype", "__proto__", "caller", "callee", "arguments", "call", "apply", "bind"]);
400446
400434
  isRef2 = (v) => !!v && typeof v === "object" && "$ref" in v && Array.isArray(v.path);
400447
400435
  isFn = (v) => !!v && typeof v === "object" && "$fn" in v && Array.isArray(v.ops);
@@ -405784,7 +405772,6 @@ function registerBuiltinCommands() {
405784
405772
  var builtinCommands, uiOnlyCommands;
405785
405773
  var init_builtin4 = __esm({
405786
405774
  "lib/commands/builtin.ts"() {
405787
- "use strict";
405788
405775
  init_registry();
405789
405776
  init_node();
405790
405777
  init_node();
@@ -413374,7 +413361,7 @@ init_resources();
413374
413361
  init_desktop();
413375
413362
  init_hypery();
413376
413363
  import { createInterface } from "node:readline";
413377
- var VERSION2 = "0.42.3";
413364
+ var VERSION2 = "0.42.4";
413378
413365
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
413379
413366
 
413380
413367
  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.4",
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.4"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",