@popcraft/cli 0.51.0 → 0.52.0

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 -20
  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.51.0"}`, ...opts.headers };
1199
+ const headers = { "user-agent": `popcraft-cli/${"0.52.0"}`, ...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 {
@@ -33524,12 +33524,6 @@ var init_en2 = __esm({
33524
33524
  "drawSettingsPanel.wetMix": "Wet mix",
33525
33525
  "drawSettingsPanel.wetPaint": "Wet paint",
33526
33526
  "drawSettingsPanel.whatTheTipRotatesWith": "What the tip rotates with",
33527
- "duoHarness.closed": "Closed",
33528
- "duoHarness.frameTitle": "PopCraft on an iPhone Duo",
33529
- "duoHarness.halfOpen": "Half open",
33530
- "duoHarness.open": "Open",
33531
- "duoHarness.posture": "Fold posture",
33532
- "duoHarness.rotate": "Rotate",
33533
33527
  "editorStore.leftNothingThoseShapesProduce": "{toLowerCase} left nothing \u2014 those shapes produce an empty result.",
33534
33528
  "editorStore.readOnlyPickAMode": "This file is read only. Pick Design, or another mode, to edit it.",
33535
33529
  "editorStore.savingToBrowserStorageFailed": "Saving to browser storage failed \u2014 recent changes may not be saved.",
@@ -33955,9 +33949,9 @@ var init_en2 = __esm({
33955
33949
  "homeTemplates.browseAll": "Browse all templates",
33956
33950
  "homeTemplates.communityBody": "Templates people made and shared. Tap one to start from a copy.",
33957
33951
  "homeTemplates.fromTheCommunity": "From the community",
33958
- "homeTemplates.loadMore": "Load more templates",
33959
33952
  "homeTemplates.loading": "Loading templates\u2026",
33960
33953
  "homeTemplates.loadingMore": "Loading more templates\u2026",
33954
+ "homeTemplates.loadMore": "Load more templates",
33961
33955
  "homeTemplates.noneInThisGroup": "No templates in this group yet.",
33962
33956
  "homeTemplates.pickOneToOpen": "Pick one and it opens as a new file, ready to edit.",
33963
33957
  "homeTemplates.startFromATemplate": "Start from a template",
@@ -94515,6 +94509,7 @@ function hasMessage(key5) {
94515
94509
  var current2, loading, listeners, formats, asts;
94516
94510
  var init_runtime = __esm({
94517
94511
  "lib/i18n/runtime.ts"() {
94512
+ "use strict";
94518
94513
  init_intl_messageformat();
94519
94514
  init_icu_messageformat_parser();
94520
94515
  init_catalogs();
@@ -96217,6 +96212,7 @@ function repairDocumentPaints(doc2) {
96217
96212
  var broken;
96218
96213
  var init_paint_repair = __esm({
96219
96214
  "lib/document/paint-repair.ts"() {
96215
+ "use strict";
96220
96216
  init_shader_graph();
96221
96217
  broken = (p2) => {
96222
96218
  if (!p2 || typeof p2 !== "object") return false;
@@ -96492,7 +96488,6 @@ async function sha256Prefix(bytes2) {
96492
96488
  }
96493
96489
  var init_media_hash = __esm({
96494
96490
  "lib/storage/media-hash.ts"() {
96495
- "use strict";
96496
96491
  }
96497
96492
  });
96498
96493
 
@@ -96875,7 +96870,6 @@ function releaseMediaMemory(hash3) {
96875
96870
  var key2, peaksKey, objectUrls, sourceKey, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, isImageDataUrl, memory, pendingLoads, sourceAliases, PAINT_KEYS, URL_KEYS;
96876
96871
  var init_media_store = __esm({
96877
96872
  "lib/storage/media-store.ts"() {
96878
- "use strict";
96879
96873
  init_media_types();
96880
96874
  init_idb();
96881
96875
  init_media_hash();
@@ -97584,7 +97578,6 @@ function relinkCopies(doc2, copies) {
97584
97578
  var TEXT_PATH_SOURCE_TYPES, isPathSource;
97585
97579
  var init_text_links = __esm({
97586
97580
  "lib/document/text-links.ts"() {
97587
- "use strict";
97588
97581
  init_transform();
97589
97582
  TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
97590
97583
  isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
@@ -248033,7 +248026,6 @@ function repairCompositions(comps, nodes) {
248033
248026
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
248034
248027
  var init_invariants = __esm({
248035
248028
  "lib/motion/invariants.ts"() {
248036
- "use strict";
248037
248029
  init_easing();
248038
248030
  init_properties();
248039
248031
  init_markers();
@@ -249011,7 +249003,6 @@ function fillPhotoFrame(doc2, groupId, imageUrl, size6, name2 = "Photo", credit)
249011
249003
  var isPhotoFrame;
249012
249004
  var init_photo_frames = __esm({
249013
249005
  "lib/document/photo-frames.ts"() {
249014
- "use strict";
249015
249006
  init_dist_node();
249016
249007
  init_scene_graph();
249017
249008
  init_types();
@@ -249156,7 +249147,6 @@ function beforeWrite() {
249156
249147
  var leave;
249157
249148
  var init_read_only = __esm({
249158
249149
  "lib/editor/modes/read-only.ts"() {
249159
- "use strict";
249160
249150
  leave = null;
249161
249151
  }
249162
249152
  });
@@ -252598,7 +252588,6 @@ function resizeWindow(doc2, target2, rect) {
252598
252588
  }
252599
252589
  var init_crop = __esm({
252600
252590
  "lib/editor/crop.ts"() {
252601
- "use strict";
252602
252591
  init_dist_node();
252603
252592
  init_scene_graph();
252604
252593
  init_photo_frames();
@@ -257095,7 +257084,6 @@ function followPeers(peers) {
257095
257084
  var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
257096
257085
  var init_presence = __esm({
257097
257086
  "lib/collab/presence.ts"() {
257098
- "use strict";
257099
257087
  init_esm();
257100
257088
  init_editor_store();
257101
257089
  init_status_announcements();
@@ -311663,6 +311651,7 @@ function startCloudSync() {
311663
311651
  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;
311664
311652
  var init_sync2 = __esm({
311665
311653
  "lib/client/cloud/sync.ts"() {
311654
+ "use strict";
311666
311655
  init_paint_repair();
311667
311656
  init_migrate();
311668
311657
  init_view();
@@ -318329,6 +318318,7 @@ function agentToolList() {
318329
318318
  var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
318330
318319
  var init_agent = __esm({
318331
318320
  "lib/commands/agent.ts"() {
318321
+ "use strict";
318332
318322
  init_types5();
318333
318323
  init_registry();
318334
318324
  init_errors();
@@ -328483,7 +328473,7 @@ var init_package = __esm({
328483
328473
  "packages/runtime/package.json"() {
328484
328474
  package_default = {
328485
328475
  name: "@popcraft/runtime",
328486
- version: "0.51.0",
328476
+ version: "0.52.0",
328487
328477
  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.",
328488
328478
  license: "MIT",
328489
328479
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -353149,6 +353139,7 @@ function exportsOf(source3) {
353149
353139
  var CODE_LIMITS, packageOf;
353150
353140
  var init_source2 = __esm({
353151
353141
  "lib/code/source.ts"() {
353142
+ "use strict";
353152
353143
  CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
353153
353144
  packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
353154
353145
  }
@@ -353191,6 +353182,7 @@ function compileModule(module2) {
353191
353182
  var import_sucrase, BUILT_IN, memo4;
353192
353183
  var init_compile2 = __esm({
353193
353184
  "lib/code/compile.ts"() {
353185
+ "use strict";
353194
353186
  import_sucrase = __toESM(require_dist2());
353195
353187
  init_source2();
353196
353188
  init_source2();
@@ -401247,7 +401239,6 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
401247
401239
  var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
401248
401240
  var init_build3 = __esm({
401249
401241
  "lib/agent/design-script/build.ts"() {
401250
- "use strict";
401251
401242
  init_hash();
401252
401243
  init_scene_graph();
401253
401244
  init_libraries();
@@ -401277,7 +401268,6 @@ function designFrameOf(doc2, id3) {
401277
401268
  }
401278
401269
  var init_locate = __esm({
401279
401270
  "lib/agent/design-script/locate.ts"() {
401280
- "use strict";
401281
401271
  }
401282
401272
  });
401283
401273
 
@@ -414064,7 +414054,7 @@ init_resources();
414064
414054
  init_desktop();
414065
414055
  init_hypery();
414066
414056
  import { createInterface } from "node:readline";
414067
- var VERSION2 = "0.51.0";
414057
+ var VERSION2 = "0.52.0";
414068
414058
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
414069
414059
 
414070
414060
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
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.51.0"
37
+ "@popcraft/kit": "0.52.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",