@popcraft/cli 0.42.4 → 0.42.6

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 +10 -26
  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.4"}`, ...opts.headers };
1199
+ const headers = { "user-agent": `popcraft-cli/${"0.42.6"}`, ...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 {
@@ -94485,6 +94485,7 @@ function hasMessage(key5) {
94485
94485
  var current2, loading, listeners, formats, asts;
94486
94486
  var init_runtime = __esm({
94487
94487
  "lib/i18n/runtime.ts"() {
94488
+ "use strict";
94488
94489
  init_intl_messageformat();
94489
94490
  init_icu_messageformat_parser();
94490
94491
  init_catalogs();
@@ -96187,6 +96188,7 @@ function repairDocumentPaints(doc2) {
96187
96188
  var broken;
96188
96189
  var init_paint_repair = __esm({
96189
96190
  "lib/document/paint-repair.ts"() {
96191
+ "use strict";
96190
96192
  init_shader_graph();
96191
96193
  broken = (p2) => {
96192
96194
  if (!p2 || typeof p2 !== "object") return false;
@@ -96444,7 +96446,6 @@ async function sha256Prefix(bytes2) {
96444
96446
  }
96445
96447
  var init_media_hash = __esm({
96446
96448
  "lib/storage/media-hash.ts"() {
96447
- "use strict";
96448
96449
  }
96449
96450
  });
96450
96451
 
@@ -96827,7 +96828,6 @@ function releaseMediaMemory(hash3) {
96827
96828
  var key2, peaksKey, objectUrls, sourceKey, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, isImageDataUrl, memory, pendingLoads, sourceAliases, PAINT_KEYS, URL_KEYS;
96828
96829
  var init_media_store = __esm({
96829
96830
  "lib/storage/media-store.ts"() {
96830
- "use strict";
96831
96831
  init_media_types();
96832
96832
  init_idb();
96833
96833
  init_media_hash();
@@ -97344,7 +97344,6 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
97344
97344
  }
97345
97345
  var init_selection_bounds = __esm({
97346
97346
  "lib/editor/selection-bounds.ts"() {
97347
- "use strict";
97348
97347
  init_scene_graph();
97349
97348
  init_transform();
97350
97349
  }
@@ -247889,7 +247888,6 @@ function repairCompositions(comps, nodes) {
247889
247888
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
247890
247889
  var init_invariants = __esm({
247891
247890
  "lib/motion/invariants.ts"() {
247892
- "use strict";
247893
247891
  init_easing();
247894
247892
  init_properties();
247895
247893
  init_markers();
@@ -252885,7 +252883,6 @@ function getActiveRenderer() {
252885
252883
  var active;
252886
252884
  var init_renderer_registry = __esm({
252887
252885
  "lib/engine/renderer-registry.ts"() {
252888
- "use strict";
252889
252886
  active = null;
252890
252887
  }
252891
252888
  });
@@ -253986,7 +253983,6 @@ var init_draw_palette_slice = __esm({
253986
253983
  var MODE_PROFILES, FOCUS_PROFILES, MODE_LIST, FOCUS_BY_PRECEDENCE;
253987
253984
  var init_registry2 = __esm({
253988
253985
  "lib/editor/modes/registry.ts"() {
253989
- "use strict";
253990
253986
  MODE_PROFILES = {
253991
253987
  DESIGN: {
253992
253988
  id: "DESIGN",
@@ -255949,7 +255945,6 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
255949
255945
  var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
255950
255946
  var init_shader_presets = __esm({
255951
255947
  "lib/engine/shader-presets.ts"() {
255952
- "use strict";
255953
255948
  init_shader_graph();
255954
255949
  init_shader_graph_presets();
255955
255950
  init_shader_presets_legacy();
@@ -256910,7 +256905,6 @@ function followPeers(peers) {
256910
256905
  var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
256911
256906
  var init_presence = __esm({
256912
256907
  "lib/collab/presence.ts"() {
256913
- "use strict";
256914
256908
  init_esm();
256915
256909
  init_editor_store();
256916
256910
  init_status_announcements();
@@ -257751,7 +257745,6 @@ async function docExists(id3) {
257751
257745
  var INDEX_KEY, docKey, thumbKey, THUMB_MAX_BYTES, THUMB_TYPES, LEGACY_DATA_URL, migrating, SPLIT_LAYOUT, nodeKey, WRITER, persisted, saving, deletedHere, keyval, keyvalStore;
257752
257746
  var init_document_library = __esm({
257753
257747
  "lib/storage/document-library.ts"() {
257754
- "use strict";
257755
257748
  init_idb();
257756
257749
  init_media_types();
257757
257750
  init_collapse_duplicates();
@@ -257823,7 +257816,6 @@ function onTabMessage(fn) {
257823
257816
  var EDITOR_HOME, localDocPath, cloudFilePath, CHANNEL, channel;
257824
257817
  var init_tab_mode = __esm({
257825
257818
  "lib/desktop/tab-mode.ts"() {
257826
- "use strict";
257827
257819
  EDITOR_HOME = "/home";
257828
257820
  localDocPath = (docId) => `${EDITOR_HOME}?doc=${encodeURIComponent(docId)}`;
257829
257821
  cloudFilePath = (key5) => `/pop/${encodeURIComponent(key5)}`;
@@ -261164,7 +261156,6 @@ function shownBreakpoint(state) {
261164
261156
  var storedDocument;
261165
261157
  var init_view = __esm({
261166
261158
  "lib/motion/view.ts"() {
261167
- "use strict";
261168
261159
  init_motion_slice();
261169
261160
  init_transport_clock();
261170
261161
  init_autokey();
@@ -262410,7 +262401,6 @@ function formatLimit(key5, max3) {
262410
262401
  var formatBytes;
262411
262402
  var init_limits2 = __esm({
262412
262403
  "lib/billing/limits.ts"() {
262413
- "use strict";
262414
262404
  init_format();
262415
262405
  init_plans();
262416
262406
  formatBytes = formatFileSize;
@@ -311280,6 +311270,7 @@ function startCloudSync() {
311280
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;
311281
311271
  var init_sync2 = __esm({
311282
311272
  "lib/client/cloud/sync.ts"() {
311273
+ "use strict";
311283
311274
  init_paint_repair();
311284
311275
  init_migrate();
311285
311276
  init_view();
@@ -317009,7 +317000,6 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
317009
317000
  var MIME, DEFAULT_EXPORT, exportSettingsOf;
317010
317001
  var init_export = __esm({
317011
317002
  "lib/io/export.ts"() {
317012
- "use strict";
317013
317003
  init_download();
317014
317004
  init_scene_graph();
317015
317005
  init_codecs();
@@ -327806,7 +327796,7 @@ var init_package = __esm({
327806
327796
  "packages/runtime/package.json"() {
327807
327797
  package_default = {
327808
327798
  name: "@popcraft/runtime",
327809
- version: "0.42.4",
327799
+ version: "0.42.6",
327810
327800
  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.",
327811
327801
  license: "MIT",
327812
327802
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -352472,7 +352462,6 @@ function exportsOf(source3) {
352472
352462
  var CODE_LIMITS, packageOf;
352473
352463
  var init_source2 = __esm({
352474
352464
  "lib/code/source.ts"() {
352475
- "use strict";
352476
352465
  CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
352477
352466
  packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
352478
352467
  }
@@ -352515,7 +352504,6 @@ function compileModule(module2) {
352515
352504
  var import_sucrase, BUILT_IN, memo4;
352516
352505
  var init_compile2 = __esm({
352517
352506
  "lib/code/compile.ts"() {
352518
- "use strict";
352519
352507
  import_sucrase = __toESM(require_dist2());
352520
352508
  init_source2();
352521
352509
  init_source2();
@@ -364551,7 +364539,6 @@ async function loadUserProfiles() {
364551
364539
  var userCache2, fileCache2, findProfile;
364552
364540
  var init_profiles = __esm({
364553
364541
  "lib/agent/profiles/index.ts"() {
364554
- "use strict";
364555
364542
  init_builtin3();
364556
364543
  init_user_profiles();
364557
364544
  init_merge();
@@ -367166,7 +367153,6 @@ var init_doc2 = __esm({
367166
367153
  var POSTER_KEY, MAX_PREVIEW_BYTES2, PREVIEW_STILL_TYPE, previewPath;
367167
367154
  var init_motion3 = __esm({
367168
367155
  "lib/marketplace/motion.ts"() {
367169
- "use strict";
367170
367156
  init_instances2();
367171
367157
  POSTER_KEY = "poster";
367172
367158
  MAX_PREVIEW_BYTES2 = 4 * 1024 * 1024;
@@ -367282,7 +367268,6 @@ async function renderLibraryPreviews(renderer, doc2, listing, format = pickPrevi
367282
367268
  var PREVIEW_FORMATS, PREVIEW_FPS, PREVIEW_MAX_MS2, PREVIEW_HOLD_MS, PREVIEW_BOX, POSTER_CELL, PREVIEW_MAX_SCALE, POSTER_COLS, POSTER_MAX, previewScale, componentSchedule;
367283
367269
  var init_library_previews = __esm({
367284
367270
  "lib/motion/library-previews.ts"() {
367285
- "use strict";
367286
367271
  init_codecs();
367287
367272
  init_gpu_pixels();
367288
367273
  init_render_frames();
@@ -400327,7 +400312,6 @@ function record(source, namespaces, globals, limits) {
400327
400312
  var HELPER_NAMES;
400328
400313
  var init_helper_names = __esm({
400329
400314
  "lib/agent/design-script/helper-names.ts"() {
400330
- "use strict";
400331
400315
  HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
400332
400316
  }
400333
400317
  });
@@ -411138,13 +411122,13 @@ var init_hypery = __esm({
411138
411122
 
411139
411123
  // lib/agent/design-script/run-node.ts
411140
411124
  import vm from "node:vm";
411141
- function recordInNode(source3, namespaces2, globals) {
411142
- const ctx2 = vm.createContext({ __src: source3, __ns: [...namespaces2], __g: JSON.parse(JSON.stringify(globals)), __lim: { ...RECORD_LIMITS2 } });
411125
+ function recordInNode(source3, namespaces2, globals, limits2 = RECORD_LIMITS2) {
411126
+ const ctx2 = vm.createContext({ __src: source3, __ns: [...namespaces2], __g: JSON.parse(JSON.stringify(globals)), __lim: { ...limits2 } });
411143
411127
  vm.runInContext(RECORDER_SOURCE, ctx2);
411144
411128
  try {
411145
- return JSON.parse(vm.runInContext("JSON.stringify(record(__src, __ns, __g, __lim))", ctx2, { timeout: RECORD_LIMITS2.timeoutMs }));
411129
+ return JSON.parse(vm.runInContext("JSON.stringify(record(__src, __ns, __g, __lim))", ctx2, { timeout: limits2.timeoutMs }));
411146
411130
  } catch (err2) {
411147
- 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) } };
411131
+ 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) } };
411148
411132
  }
411149
411133
  }
411150
411134
  var init_run_node = __esm({
@@ -413361,7 +413345,7 @@ init_resources();
413361
413345
  init_desktop();
413362
413346
  init_hypery();
413363
413347
  import { createInterface } from "node:readline";
413364
- var VERSION2 = "0.42.4";
413348
+ var VERSION2 = "0.42.6";
413365
413349
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
413366
413350
 
413367
413351
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.42.4",
3
+ "version": "0.42.6",
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.4"
37
+ "@popcraft/kit": "0.42.6"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",