@popcraft/cli 0.42.2 → 0.42.3

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 +28 -9
  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.2"}`, ...opts.headers };
1199
+ const headers = { "user-agent": `popcraft-cli/${"0.42.3"}`, ...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 {
@@ -94491,6 +94491,7 @@ function hasMessage(key5) {
94491
94491
  var current2, loading, listeners, formats, asts;
94492
94492
  var init_runtime = __esm({
94493
94493
  "lib/i18n/runtime.ts"() {
94494
+ "use strict";
94494
94495
  init_intl_messageformat();
94495
94496
  init_icu_messageformat_parser();
94496
94497
  init_catalogs();
@@ -97348,6 +97349,7 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
97348
97349
  }
97349
97350
  var init_selection_bounds = __esm({
97350
97351
  "lib/editor/selection-bounds.ts"() {
97352
+ "use strict";
97351
97353
  init_scene_graph();
97352
97354
  init_transform();
97353
97355
  }
@@ -97539,6 +97541,7 @@ function relinkCopies(doc2, copies) {
97539
97541
  var TEXT_PATH_SOURCE_TYPES, isPathSource;
97540
97542
  var init_text_links = __esm({
97541
97543
  "lib/document/text-links.ts"() {
97544
+ "use strict";
97542
97545
  init_transform();
97543
97546
  TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
97544
97547
  isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
@@ -247891,7 +247894,6 @@ function repairCompositions(comps, nodes) {
247891
247894
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
247892
247895
  var init_invariants = __esm({
247893
247896
  "lib/motion/invariants.ts"() {
247894
- "use strict";
247895
247897
  init_easing();
247896
247898
  init_properties();
247897
247899
  init_markers();
@@ -252423,6 +252425,7 @@ function resizeWindow(doc2, target2, rect) {
252423
252425
  }
252424
252426
  var init_crop = __esm({
252425
252427
  "lib/editor/crop.ts"() {
252428
+ "use strict";
252426
252429
  init_dist_node();
252427
252430
  init_scene_graph();
252428
252431
  init_photo_frames();
@@ -252886,6 +252889,7 @@ function getActiveRenderer() {
252886
252889
  var active;
252887
252890
  var init_renderer_registry = __esm({
252888
252891
  "lib/engine/renderer-registry.ts"() {
252892
+ "use strict";
252889
252893
  active = null;
252890
252894
  }
252891
252895
  });
@@ -256910,6 +256914,7 @@ function followPeers(peers) {
256910
256914
  var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
256911
256915
  var init_presence = __esm({
256912
256916
  "lib/collab/presence.ts"() {
256917
+ "use strict";
256913
256918
  init_esm();
256914
256919
  init_editor_store();
256915
256920
  init_status_announcements();
@@ -260441,6 +260446,7 @@ function retuneShaderAudio(node2, fillId) {
260441
260446
  }
260442
260447
  var init_shader_audio = __esm({
260443
260448
  "lib/motion/shader-audio.ts"() {
260449
+ "use strict";
260444
260450
  init_shader_params();
260445
260451
  init_modifier_edit();
260446
260452
  init_keys();
@@ -262408,6 +262414,7 @@ function formatLimit(key5, max3) {
262408
262414
  var formatBytes;
262409
262415
  var init_limits2 = __esm({
262410
262416
  "lib/billing/limits.ts"() {
262417
+ "use strict";
262411
262418
  init_format();
262412
262419
  init_plans();
262413
262420
  formatBytes = formatFileSize;
@@ -262669,7 +262676,6 @@ function invalidateMe() {
262669
262676
  var ApiError, inFlight, fileUrl, meInFlight, provisioned, ME_TTL_MS, cloudApi;
262670
262677
  var init_api4 = __esm({
262671
262678
  "lib/client/cloud/api.ts"() {
262672
- "use strict";
262673
262679
  init_session();
262674
262680
  init_plan_limit();
262675
262681
  init_purchases();
@@ -262680,6 +262686,9 @@ var init_api4 = __esm({
262680
262686
  this.code = code;
262681
262687
  this.body = body;
262682
262688
  }
262689
+ status;
262690
+ code;
262691
+ body;
262683
262692
  /** `{ limit, max, used, tier, upgradeTo }` when a plan limit blocked the request (`code === 'plan_limit'`). */
262684
262693
  get planLimit() {
262685
262694
  if (this.code !== "plan_limit") return null;
@@ -262939,7 +262948,6 @@ function planEntryAction({ home }) {
262939
262948
  var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
262940
262949
  var init_team = __esm({
262941
262950
  "lib/client/cloud/team.ts"() {
262942
- "use strict";
262943
262951
  init_esm();
262944
262952
  init_api4();
262945
262953
  init_session();
@@ -310738,6 +310746,7 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
310738
310746
  var online, goesLocal;
310739
310747
  var init_new_file = __esm({
310740
310748
  "lib/client/cloud/new-file.ts"() {
310749
+ "use strict";
310741
310750
  init_scene_graph();
310742
310751
  init_print_pages();
310743
310752
  init_page_presets();
@@ -311278,7 +311287,6 @@ function startCloudSync() {
311278
311287
  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;
311279
311288
  var init_sync2 = __esm({
311280
311289
  "lib/client/cloud/sync.ts"() {
311281
- "use strict";
311282
311290
  init_paint_repair();
311283
311291
  init_migrate();
311284
311292
  init_view();
@@ -311485,6 +311493,7 @@ async function dispatchShaped(key5, options) {
311485
311493
  var onViolation;
311486
311494
  var init_dispatch = __esm({
311487
311495
  "lib/commands/dispatch.ts"() {
311496
+ "use strict";
311488
311497
  init_errors();
311489
311498
  init_registry();
311490
311499
  init_confirm();
@@ -312545,6 +312554,7 @@ function applyTextPath(layout2, path, tp, rebase = true) {
312545
312554
  var defaultCircleRadius, ownsPath, mapPoint;
312546
312555
  var init_text_path = __esm({
312547
312556
  "lib/engine/text/text-path.ts"() {
312557
+ "use strict";
312548
312558
  init_scene_graph();
312549
312559
  init_transform();
312550
312560
  init_shape_to_path();
@@ -312662,6 +312672,7 @@ function areaBounds(rings) {
312662
312672
  }
312663
312673
  var init_text_area = __esm({
312664
312674
  "lib/engine/text/text-area.ts"() {
312675
+ "use strict";
312665
312676
  }
312666
312677
  });
312667
312678
 
@@ -317006,6 +317017,7 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
317006
317017
  var MIME, DEFAULT_EXPORT, exportSettingsOf;
317007
317018
  var init_export = __esm({
317008
317019
  "lib/io/export.ts"() {
317020
+ "use strict";
317009
317021
  init_download();
317010
317022
  init_scene_graph();
317011
317023
  init_codecs();
@@ -317097,7 +317109,6 @@ async function selectionReferenceImages(doc2, selection, opts = {}) {
317097
317109
  var FIT_QUALITIES, FIT_SCALES, blobToDataUrl;
317098
317110
  var init_reference_images = __esm({
317099
317111
  "lib/ai/reference-images.ts"() {
317100
- "use strict";
317101
317112
  init_export();
317102
317113
  init_selection_bounds();
317103
317114
  init_renderer_registry();
@@ -317940,7 +317951,6 @@ function agentToolList() {
317940
317951
  var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
317941
317952
  var init_agent = __esm({
317942
317953
  "lib/commands/agent.ts"() {
317943
- "use strict";
317944
317954
  init_types5();
317945
317955
  init_registry();
317946
317956
  init_errors();
@@ -320660,6 +320670,7 @@ function buildDesignContext(doc2, maxChars = AI_LIMITS.maxContextChars) {
320660
320670
  var hex8;
320661
320671
  var init_context = __esm({
320662
320672
  "lib/ai/context.ts"() {
320673
+ "use strict";
320663
320674
  init_limits();
320664
320675
  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("");
320665
320676
  }
@@ -320999,6 +321010,7 @@ function outerSizeFor(want, inner, outer) {
320999
321010
  var AUDIENCE_PRESETS, DEFAULT_AUDIENCE_RESOLUTION, MIN_SIDE, MAX_SIDE, FIT_OPEN_SIZE, clampSide, formatResolution, sameResolution, captureSize;
321000
321011
  var init_resolution = __esm({
321001
321012
  "lib/slides/audience/resolution.ts"() {
321013
+ "use strict";
321002
321014
  init_stage_view();
321003
321015
  AUDIENCE_PRESETS = [
321004
321016
  { id: "720p", label: "1280 \xD7 720 (720p)", resolution: { kind: "fixed", width: 1280, height: 720 } },
@@ -327804,7 +327816,7 @@ var init_package = __esm({
327804
327816
  "packages/runtime/package.json"() {
327805
327817
  package_default = {
327806
327818
  name: "@popcraft/runtime",
327807
- version: "0.42.2",
327819
+ version: "0.42.3",
327808
327820
  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.",
327809
327821
  license: "MIT",
327810
327822
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -352470,6 +352482,7 @@ function exportsOf(source3) {
352470
352482
  var CODE_LIMITS, packageOf;
352471
352483
  var init_source2 = __esm({
352472
352484
  "lib/code/source.ts"() {
352485
+ "use strict";
352473
352486
  CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
352474
352487
  packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
352475
352488
  }
@@ -352512,6 +352525,7 @@ function compileModule(module2) {
352512
352525
  var import_sucrase, BUILT_IN, memo4;
352513
352526
  var init_compile2 = __esm({
352514
352527
  "lib/code/compile.ts"() {
352528
+ "use strict";
352515
352529
  import_sucrase = __toESM(require_dist2());
352516
352530
  init_source2();
352517
352531
  init_source2();
@@ -352589,6 +352603,7 @@ function hashOf2(text) {
352589
352603
  }
352590
352604
  var init_hash = __esm({
352591
352605
  "lib/code/hash.ts"() {
352606
+ "use strict";
352592
352607
  }
352593
352608
  });
352594
352609
 
@@ -361551,6 +361566,7 @@ var init_delete_current_file = __esm({
361551
361566
  var storeOpsSeam;
361552
361567
  var init_seams = __esm({
361553
361568
  "lib/commands/seams.ts"() {
361569
+ "use strict";
361554
361570
  storeOpsSeam = (st) => ({
361555
361571
  booleanOperation: (op4) => st().booleanOperation(op4),
361556
361572
  flatten: () => st().flattenSelection(),
@@ -400322,6 +400338,7 @@ function record(source, namespaces, globals, limits) {
400322
400338
  var HELPER_NAMES;
400323
400339
  var init_helper_names = __esm({
400324
400340
  "lib/agent/design-script/helper-names.ts"() {
400341
+ "use strict";
400325
400342
  HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
400326
400343
  }
400327
400344
  });
@@ -400424,6 +400441,7 @@ async function replay(rec, namespaces2) {
400424
400441
  var BLOCKED, isRef2, isFn;
400425
400442
  var init_replay = __esm({
400426
400443
  "lib/agent/design-script/replay.ts"() {
400444
+ "use strict";
400427
400445
  BLOCKED = /* @__PURE__ */ new Set(["constructor", "prototype", "__proto__", "caller", "callee", "arguments", "call", "apply", "bind"]);
400428
400446
  isRef2 = (v) => !!v && typeof v === "object" && "$ref" in v && Array.isArray(v.path);
400429
400447
  isFn = (v) => !!v && typeof v === "object" && "$fn" in v && Array.isArray(v.ops);
@@ -405766,6 +405784,7 @@ function registerBuiltinCommands() {
405766
405784
  var builtinCommands, uiOnlyCommands;
405767
405785
  var init_builtin4 = __esm({
405768
405786
  "lib/commands/builtin.ts"() {
405787
+ "use strict";
405769
405788
  init_registry();
405770
405789
  init_node();
405771
405790
  init_node();
@@ -413355,7 +413374,7 @@ init_resources();
413355
413374
  init_desktop();
413356
413375
  init_hypery();
413357
413376
  import { createInterface } from "node:readline";
413358
- var VERSION2 = "0.42.2";
413377
+ var VERSION2 = "0.42.3";
413359
413378
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
413360
413379
 
413361
413380
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.42.2",
3
+ "version": "0.42.3",
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.2"
37
+ "@popcraft/kit": "0.42.3"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",