@popcraft/cli 0.56.1 → 0.56.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 +8 -10
  2. package/package.json +2 -2
package/dist/popcraft.mjs CHANGED
@@ -1198,7 +1198,7 @@ function operations(spec = openapi) {
1198
1198
  }
1199
1199
  async function call(target2, method, path, opts = {}) {
1200
1200
  const qs = new URLSearchParams(opts.query ?? {}).toString();
1201
- const headers = { "user-agent": `popcraft-cli/${"0.56.1"}`, ...opts.headers };
1201
+ const headers = { "user-agent": `popcraft-cli/${"0.56.3"}`, ...opts.headers };
1202
1202
  if (target2.token) headers.authorization = `Bearer ${target2.token}`;
1203
1203
  if (opts.contentType) headers["content-type"] = opts.contentType;
1204
1204
  try {
@@ -254086,7 +254086,6 @@ function repairDocumentPaints(doc2) {
254086
254086
  var broken;
254087
254087
  var init_paint_repair = __esm({
254088
254088
  "lib/document/paint-repair.ts"() {
254089
- "use strict";
254090
254089
  init_shader_graph();
254091
254090
  broken = (p2) => {
254092
254091
  if (!p2 || typeof p2 !== "object") return false;
@@ -263174,7 +263173,6 @@ function resizeWindow(doc2, target2, rect) {
263174
263173
  }
263175
263174
  var init_crop = __esm({
263176
263175
  "lib/editor/crop.ts"() {
263177
- "use strict";
263178
263176
  init_dist_node();
263179
263177
  init_scene_graph();
263180
263178
  init_photo_frames();
@@ -273357,6 +273355,7 @@ function planEntryAction({ home }) {
273357
273355
  var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
273358
273356
  var init_team = __esm({
273359
273357
  "lib/client/cloud/team.ts"() {
273358
+ "use strict";
273360
273359
  init_esm();
273361
273360
  init_api4();
273362
273361
  init_session();
@@ -322216,7 +322215,6 @@ function startCloudSync() {
322216
322215
  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, SEEN_KEY, started2;
322217
322216
  var init_sync2 = __esm({
322218
322217
  "lib/client/cloud/sync.ts"() {
322219
- "use strict";
322220
322218
  init_kinds();
322221
322219
  init_paint_repair();
322222
322220
  init_migrate();
@@ -323607,7 +323605,6 @@ function areaBounds(rings) {
323607
323605
  }
323608
323606
  var init_text_area = __esm({
323609
323607
  "lib/engine/text/text-area.ts"() {
323610
- "use strict";
323611
323608
  }
323612
323609
  });
323613
323610
 
@@ -327740,6 +327737,7 @@ async function selectionReferenceImages(doc2, selection, opts = {}) {
327740
327737
  var FIT_QUALITIES, FIT_SCALES, blobToDataUrl;
327741
327738
  var init_reference_images = __esm({
327742
327739
  "lib/ai/reference-images.ts"() {
327740
+ "use strict";
327743
327741
  init_export();
327744
327742
  init_selection_bounds();
327745
327743
  init_renderer_registry();
@@ -328582,6 +328580,7 @@ function agentToolList() {
328582
328580
  var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
328583
328581
  var init_agent = __esm({
328584
328582
  "lib/commands/agent.ts"() {
328583
+ "use strict";
328585
328584
  init_types5();
328586
328585
  init_registry();
328587
328586
  init_errors();
@@ -338641,7 +338640,7 @@ var init_package = __esm({
338641
338640
  "packages/runtime/package.json"() {
338642
338641
  package_default = {
338643
338642
  name: "@popcraft/runtime",
338644
- version: "0.56.1",
338643
+ version: "0.56.3",
338645
338644
  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.",
338646
338645
  license: "MIT",
338647
338646
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -363307,6 +363306,7 @@ function exportsOf(source3) {
363307
363306
  var CODE_LIMITS, packageOf;
363308
363307
  var init_source2 = __esm({
363309
363308
  "lib/code/source.ts"() {
363309
+ "use strict";
363310
363310
  CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
363311
363311
  packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
363312
363312
  }
@@ -363349,6 +363349,7 @@ function compileModule(module2) {
363349
363349
  var import_sucrase, BUILT_IN, memo6;
363350
363350
  var init_compile2 = __esm({
363351
363351
  "lib/code/compile.ts"() {
363352
+ "use strict";
363352
363353
  import_sucrase = __toESM(require_dist2());
363353
363354
  init_source2();
363354
363355
  init_source2();
@@ -378979,7 +378980,6 @@ var init_doc2 = __esm({
378979
378980
  var POSTER_KEY, MAX_PREVIEW_BYTES2, PREVIEW_STILL_TYPE, previewPath;
378980
378981
  var init_motion3 = __esm({
378981
378982
  "lib/marketplace/motion.ts"() {
378982
- "use strict";
378983
378983
  init_instances2();
378984
378984
  POSTER_KEY = "poster";
378985
378985
  MAX_PREVIEW_BYTES2 = 4 * 1024 * 1024;
@@ -412427,7 +412427,6 @@ function placeDesign(doc2, built, source3, size6, name2, at5) {
412427
412427
  var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
412428
412428
  var init_build3 = __esm({
412429
412429
  "lib/agent/design-script/build.ts"() {
412430
- "use strict";
412431
412430
  init_hash();
412432
412431
  init_scene_graph();
412433
412432
  init_libraries();
@@ -412457,7 +412456,6 @@ function designFrameOf(doc2, id3) {
412457
412456
  }
412458
412457
  var init_locate = __esm({
412459
412458
  "lib/agent/design-script/locate.ts"() {
412460
- "use strict";
412461
412459
  }
412462
412460
  });
412463
412461
 
@@ -425259,7 +425257,7 @@ init_resources();
425259
425257
  init_desktop();
425260
425258
  init_hypery();
425261
425259
  import { createInterface } from "node:readline";
425262
- var VERSION2 = "0.56.1";
425260
+ var VERSION2 = "0.56.3";
425263
425261
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
425264
425262
 
425265
425263
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.56.1",
3
+ "version": "0.56.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.56.1"
37
+ "@popcraft/kit": "0.56.3"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",