@popcraft/cli 0.13.1 → 0.13.2

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 +17 -10
  2. package/package.json +2 -2
package/dist/popcraft.mjs CHANGED
@@ -1186,7 +1186,7 @@ function operations(spec = openapi) {
1186
1186
  }
1187
1187
  async function call(target2, method, path, opts = {}) {
1188
1188
  const qs = new URLSearchParams(opts.query ?? {}).toString();
1189
- const headers = { "user-agent": `popcraft-cli/${"0.13.1"}`, ...opts.headers };
1189
+ const headers = { "user-agent": `popcraft-cli/${"0.13.2"}`, ...opts.headers };
1190
1190
  if (target2.token) headers.authorization = `Bearer ${target2.token}`;
1191
1191
  if (opts.contentType) headers["content-type"] = opts.contentType;
1192
1192
  try {
@@ -92090,7 +92090,6 @@ function repairDocumentPaints(doc2) {
92090
92090
  var broken;
92091
92091
  var init_paint_repair = __esm({
92092
92092
  "lib/document/paint-repair.ts"() {
92093
- "use strict";
92094
92093
  init_shader_graph();
92095
92094
  broken = (p2) => {
92096
92095
  if (!p2 || typeof p2 !== "object") return false;
@@ -93396,6 +93395,7 @@ function relinkCopies(doc2, copies) {
93396
93395
  var TEXT_PATH_SOURCE_TYPES, isPathSource;
93397
93396
  var init_text_links = __esm({
93398
93397
  "lib/document/text-links.ts"() {
93398
+ "use strict";
93399
93399
  init_transform();
93400
93400
  TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
93401
93401
  isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
@@ -94107,6 +94107,7 @@ function isAutoLayout(node2) {
94107
94107
  }
94108
94108
  var init_auto_layout = __esm({
94109
94109
  "lib/document/auto-layout.ts"() {
94110
+ "use strict";
94110
94111
  init_instance_layout();
94111
94112
  setLayoutEngine(applyAutoLayout);
94112
94113
  }
@@ -97052,6 +97053,7 @@ function layerInputPatch(node2, name2, path) {
97052
97053
  var NO_RUNTIME, MAX_DEPTH, freshIndex, indexOf, isComponentLike, selfStarting, startedAt, endMemo, HOST_OWNS, rootTracksMemo, layerMemo, idle;
97053
97054
  var init_instances2 = __esm({
97054
97055
  "lib/motion/instances.ts"() {
97056
+ "use strict";
97055
97057
  init_node_delta();
97056
97058
  init_instances();
97057
97059
  init_scene_graph();
@@ -241515,6 +241517,7 @@ function repairCompositions(comps, nodes) {
241515
241517
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
241516
241518
  var init_invariants = __esm({
241517
241519
  "lib/motion/invariants.ts"() {
241520
+ "use strict";
241518
241521
  init_easing();
241519
241522
  init_properties();
241520
241523
  init_markers();
@@ -246039,6 +246042,7 @@ function resizeWindow(doc2, target2, rect) {
246039
246042
  }
246040
246043
  var init_crop = __esm({
246041
246044
  "lib/editor/crop.ts"() {
246045
+ "use strict";
246042
246046
  init_dist_node();
246043
246047
  init_scene_graph();
246044
246048
  init_photo_frames();
@@ -255994,7 +255998,6 @@ function activeTeamWorkspaceId() {
255994
255998
  var STORAGE_KEY2, useHyperyTeam, useTeamPrompt;
255995
255999
  var init_team = __esm({
255996
256000
  "lib/client/cloud/team.ts"() {
255997
- "use strict";
255998
256001
  init_esm();
255999
256002
  init_api4();
256000
256003
  init_session();
@@ -304204,7 +304207,6 @@ function startCloudSync() {
304204
304207
  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, putThumbnail, openingFiles, mediaHealed, started;
304205
304208
  var init_sync2 = __esm({
304206
304209
  "lib/client/cloud/sync.ts"() {
304207
- "use strict";
304208
304210
  init_paint_repair();
304209
304211
  init_migrate();
304210
304212
  init_view();
@@ -304581,6 +304583,7 @@ function downloadBlob(blob, filename) {
304581
304583
  }
304582
304584
  var init_download = __esm({
304583
304585
  "lib/io/download.ts"() {
304586
+ "use strict";
304584
304587
  }
304585
304588
  });
304586
304589
 
@@ -304798,6 +304801,7 @@ function creditLine(c2) {
304798
304801
  var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
304799
304802
  var init_stock = __esm({
304800
304803
  "lib/photos/stock.ts"() {
304804
+ "use strict";
304801
304805
  MAX_PHOTO_PAGE = 12;
304802
304806
  MAX_PHOTO_QUERY = 200;
304803
304807
  UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -305459,6 +305463,7 @@ function applyTextPath(layout2, path, tp, rebase = true) {
305459
305463
  var defaultCircleRadius, ownsPath, mapPoint;
305460
305464
  var init_text_path = __esm({
305461
305465
  "lib/engine/text/text-path.ts"() {
305466
+ "use strict";
305462
305467
  init_scene_graph();
305463
305468
  init_transform();
305464
305469
  init_shape_to_path();
@@ -305576,6 +305581,7 @@ function areaBounds(rings) {
305576
305581
  }
305577
305582
  var init_text_area = __esm({
305578
305583
  "lib/engine/text/text-area.ts"() {
305584
+ "use strict";
305579
305585
  }
305580
305586
  });
305581
305587
 
@@ -309808,7 +309814,6 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
309808
309814
  var MIME, DEFAULT_EXPORT, exportSettingsOf;
309809
309815
  var init_export = __esm({
309810
309816
  "lib/io/export.ts"() {
309811
- "use strict";
309812
309817
  init_download();
309813
309818
  init_scene_graph();
309814
309819
  init_codecs();
@@ -309900,7 +309905,6 @@ async function selectionReferenceImages(doc2, selection, opts = {}) {
309900
309905
  var FIT_QUALITIES, FIT_SCALES, blobToDataUrl;
309901
309906
  var init_reference_images = __esm({
309902
309907
  "lib/ai/reference-images.ts"() {
309903
- "use strict";
309904
309908
  init_export();
309905
309909
  init_selection_bounds();
309906
309910
  init_renderer_registry();
@@ -310244,6 +310248,7 @@ function videoPixelSize(resolution, aspect) {
310244
310248
  var VIDEO_ASPECTS, VIDEO_RESOLUTIONS, SEEDANCE_ASPECTS, range, VIDEO_MODELS, DEFAULT_VIDEO_MODEL, videoModel, VIDEO_LIMITS;
310245
310249
  var init_video_models = __esm({
310246
310250
  "lib/ai/video-models.ts"() {
310251
+ "use strict";
310247
310252
  VIDEO_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
310248
310253
  VIDEO_RESOLUTIONS = ["480p", "720p", "1080p"];
310249
310254
  SEEDANCE_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
@@ -310732,7 +310737,6 @@ function agentToolList() {
310732
310737
  var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
310733
310738
  var init_agent = __esm({
310734
310739
  "lib/commands/agent.ts"() {
310735
- "use strict";
310736
310740
  init_types5();
310737
310741
  init_registry();
310738
310742
  init_errors();
@@ -319278,7 +319282,7 @@ var init_package = __esm({
319278
319282
  "packages/runtime/package.json"() {
319279
319283
  package_default = {
319280
319284
  name: "@popcraft/runtime",
319281
- version: "0.13.1",
319285
+ version: "0.13.2",
319282
319286
  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.",
319283
319287
  license: "MIT",
319284
319288
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -351298,7 +351302,9 @@ function findContainingFrame(state, nodeId2) {
351298
351302
  for (const id3 of ids2) {
351299
351303
  const n = allNodes[id3];
351300
351304
  if (!n) continue;
351301
- const acceptsNode = n.type === "FRAME" || n.type === "SECTION" || n.type === "PIXEL_GRID" && canBePixelLayer(node2);
351305
+ const parentType = n.parentId ? allNodes[n.parentId]?.type : void 0;
351306
+ const topFrame = n.type === "FRAME" && (parentType === "PAGE" || parentType === "SECTION");
351307
+ const acceptsNode = topFrame || n.type === "SECTION" || n.type === "PIXEL_GRID" && canBePixelLayer(node2);
351302
351308
  if (acceptsNode && id3 !== nodeId2 && id3 !== node2.parentId) {
351303
351309
  containers.push(n);
351304
351310
  }
@@ -352283,6 +352289,7 @@ function publishSite(key5, files, opts = {}) {
352283
352289
  var siteStatus, setSiteVersion, renameSite;
352284
352290
  var init_sites = __esm({
352285
352291
  "lib/client/cloud/sites.ts"() {
352292
+ "use strict";
352286
352293
  init_files();
352287
352294
  init_upload2();
352288
352295
  init_api4();
@@ -401349,7 +401356,7 @@ init_resources();
401349
401356
  init_desktop();
401350
401357
  init_hypery();
401351
401358
  import { createInterface } from "node:readline";
401352
- var VERSION2 = "0.13.1";
401359
+ var VERSION2 = "0.13.2";
401353
401360
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
401354
401361
 
401355
401362
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
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.13.1"
37
+ "@popcraft/kit": "0.13.2"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",