@popcraft/cli 0.50.1 → 0.51.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 +17 -7
  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.50.1"}`, ...opts.headers };
1199
+ const headers = { "user-agent": `popcraft-cli/${"0.51.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 {
@@ -33955,10 +33955,13 @@ var init_en2 = __esm({
33955
33955
  "homeTemplates.browseAll": "Browse all templates",
33956
33956
  "homeTemplates.communityBody": "Templates people made and shared. Tap one to start from a copy.",
33957
33957
  "homeTemplates.fromTheCommunity": "From the community",
33958
+ "homeTemplates.loadMore": "Load more templates",
33958
33959
  "homeTemplates.loading": "Loading templates\u2026",
33960
+ "homeTemplates.loadingMore": "Loading more templates\u2026",
33959
33961
  "homeTemplates.noneInThisGroup": "No templates in this group yet.",
33960
33962
  "homeTemplates.pickOneToOpen": "Pick one and it opens as a new file, ready to edit.",
33961
33963
  "homeTemplates.startFromATemplate": "Start from a template",
33964
+ "homeTemplates.thatsEverything": "That\u2019s every template for now.",
33962
33965
  "homeTemplates.useTemplate": "Use the {name} template",
33963
33966
  "homeWelcome.about": "About",
33964
33967
  "homeWelcome.aboutPopCraft": "About PopCraft",
@@ -96489,6 +96492,7 @@ async function sha256Prefix(bytes2) {
96489
96492
  }
96490
96493
  var init_media_hash = __esm({
96491
96494
  "lib/storage/media-hash.ts"() {
96495
+ "use strict";
96492
96496
  }
96493
96497
  });
96494
96498
 
@@ -96871,6 +96875,7 @@ function releaseMediaMemory(hash3) {
96871
96875
  var key2, peaksKey, objectUrls, sourceKey, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, isImageDataUrl, memory, pendingLoads, sourceAliases, PAINT_KEYS, URL_KEYS;
96872
96876
  var init_media_store = __esm({
96873
96877
  "lib/storage/media-store.ts"() {
96878
+ "use strict";
96874
96879
  init_media_types();
96875
96880
  init_idb();
96876
96881
  init_media_hash();
@@ -248125,7 +248130,6 @@ function resyncText(doc2, ids2) {
248125
248130
  var isVirtualId;
248126
248131
  var init_invariants2 = __esm({
248127
248132
  "lib/document/invariants.ts"() {
248128
- "use strict";
248129
248133
  init_auto_layout();
248130
248134
  init_scene_graph();
248131
248135
  init_text_bounds();
@@ -249152,6 +249156,7 @@ function beforeWrite() {
249152
249156
  var leave;
249153
249157
  var init_read_only = __esm({
249154
249158
  "lib/editor/modes/read-only.ts"() {
249159
+ "use strict";
249155
249160
  leave = null;
249156
249161
  }
249157
249162
  });
@@ -252593,6 +252598,7 @@ function resizeWindow(doc2, target2, rect) {
252593
252598
  }
252594
252599
  var init_crop = __esm({
252595
252600
  "lib/editor/crop.ts"() {
252601
+ "use strict";
252596
252602
  init_dist_node();
252597
252603
  init_scene_graph();
252598
252604
  init_photo_frames();
@@ -256676,6 +256682,7 @@ function mergeFonts(fonts, incoming) {
256676
256682
  var fontWeightOf, fontStyleOf, sameSlot, hashOf, documentFontHashes;
256677
256683
  var init_document_fonts = __esm({
256678
256684
  "lib/fonts/document-fonts.ts"() {
256685
+ "use strict";
256679
256686
  init_media_store();
256680
256687
  init_media_hash();
256681
256688
  fontWeightOf = (f2) => f2.weight ?? 400;
@@ -257088,6 +257095,7 @@ function followPeers(peers) {
257088
257095
  var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
257089
257096
  var init_presence = __esm({
257090
257097
  "lib/collab/presence.ts"() {
257098
+ "use strict";
257091
257099
  init_esm();
257092
257100
  init_editor_store();
257093
257101
  init_status_announcements();
@@ -262657,6 +262665,7 @@ function formatLimit(key5, max3) {
262657
262665
  var formatBytes;
262658
262666
  var init_limits2 = __esm({
262659
262667
  "lib/billing/limits.ts"() {
262668
+ "use strict";
262660
262669
  init_format();
262661
262670
  init_plans();
262662
262671
  formatBytes = formatFileSize;
@@ -311654,7 +311663,6 @@ function startCloudSync() {
311654
311663
  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;
311655
311664
  var init_sync2 = __esm({
311656
311665
  "lib/client/cloud/sync.ts"() {
311657
- "use strict";
311658
311666
  init_paint_repair();
311659
311667
  init_migrate();
311660
311668
  init_view();
@@ -311864,6 +311872,7 @@ async function dispatchShaped(key5, options) {
311864
311872
  var onViolation;
311865
311873
  var init_dispatch = __esm({
311866
311874
  "lib/commands/dispatch.ts"() {
311875
+ "use strict";
311867
311876
  init_errors();
311868
311877
  init_registry();
311869
311878
  init_confirm();
@@ -317386,6 +317395,7 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
317386
317395
  var MIME, DEFAULT_EXPORT, exportSettingsOf;
317387
317396
  var init_export = __esm({
317388
317397
  "lib/io/export.ts"() {
317398
+ "use strict";
317389
317399
  init_download();
317390
317400
  init_scene_graph();
317391
317401
  init_codecs();
@@ -317477,7 +317487,6 @@ async function selectionReferenceImages(doc2, selection, opts = {}) {
317477
317487
  var FIT_QUALITIES, FIT_SCALES, blobToDataUrl;
317478
317488
  var init_reference_images = __esm({
317479
317489
  "lib/ai/reference-images.ts"() {
317480
- "use strict";
317481
317490
  init_export();
317482
317491
  init_selection_bounds();
317483
317492
  init_renderer_registry();
@@ -318320,7 +318329,6 @@ function agentToolList() {
318320
318329
  var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
318321
318330
  var init_agent = __esm({
318322
318331
  "lib/commands/agent.ts"() {
318323
- "use strict";
318324
318332
  init_types5();
318325
318333
  init_registry();
318326
318334
  init_errors();
@@ -328475,7 +328483,7 @@ var init_package = __esm({
328475
328483
  "packages/runtime/package.json"() {
328476
328484
  package_default = {
328477
328485
  name: "@popcraft/runtime",
328478
- version: "0.50.1",
328486
+ version: "0.51.0",
328479
328487
  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.",
328480
328488
  license: "MIT",
328481
328489
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -362225,6 +362233,7 @@ var init_delete_current_file = __esm({
362225
362233
  var storeOpsSeam;
362226
362234
  var init_seams = __esm({
362227
362235
  "lib/commands/seams.ts"() {
362236
+ "use strict";
362228
362237
  storeOpsSeam = (st) => ({
362229
362238
  booleanOperation: (op4) => st().booleanOperation(op4),
362230
362239
  flatten: () => st().flattenSelection(),
@@ -406450,6 +406459,7 @@ function registerBuiltinCommands() {
406450
406459
  var builtinCommands, uiOnlyCommands;
406451
406460
  var init_builtin4 = __esm({
406452
406461
  "lib/commands/builtin.ts"() {
406462
+ "use strict";
406453
406463
  init_registry();
406454
406464
  init_node();
406455
406465
  init_node();
@@ -414054,7 +414064,7 @@ init_resources();
414054
414064
  init_desktop();
414055
414065
  init_hypery();
414056
414066
  import { createInterface } from "node:readline";
414057
- var VERSION2 = "0.50.1";
414067
+ var VERSION2 = "0.51.0";
414058
414068
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
414059
414069
 
414060
414070
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.50.1",
3
+ "version": "0.51.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.50.1"
37
+ "@popcraft/kit": "0.51.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",