@popcraft/cli 0.26.1 → 0.28.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.
package/dist/popcraft.mjs CHANGED
@@ -1188,7 +1188,7 @@ function operations(spec = openapi) {
1188
1188
  }
1189
1189
  async function call(target2, method, path, opts = {}) {
1190
1190
  const qs = new URLSearchParams(opts.query ?? {}).toString();
1191
- const headers = { "user-agent": `popcraft-cli/${"0.26.1"}`, ...opts.headers };
1191
+ const headers = { "user-agent": `popcraft-cli/${"0.28.0"}`, ...opts.headers };
1192
1192
  if (target2.token) headers.authorization = `Bearer ${target2.token}`;
1193
1193
  if (opts.contentType) headers["content-type"] = opts.contentType;
1194
1194
  try {
@@ -308926,7 +308926,6 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
308926
308926
  var online, goesLocal;
308927
308927
  var init_new_file = __esm({
308928
308928
  "lib/client/cloud/new-file.ts"() {
308929
- "use strict";
308930
308929
  init_scene_graph();
308931
308930
  init_print_pages();
308932
308931
  init_page_presets();
@@ -309651,6 +309650,7 @@ async function dispatchShaped(key5, options) {
309651
309650
  var onViolation;
309652
309651
  var init_dispatch = __esm({
309653
309652
  "lib/commands/dispatch.ts"() {
309653
+ "use strict";
309654
309654
  init_errors();
309655
309655
  init_registry();
309656
309656
  init_confirm();
@@ -309821,7 +309821,6 @@ function downloadBlob(blob, filename) {
309821
309821
  }
309822
309822
  var init_download = __esm({
309823
309823
  "lib/io/download.ts"() {
309824
- "use strict";
309825
309824
  }
309826
309825
  });
309827
309826
 
@@ -310041,7 +310040,6 @@ function creditLine(c2) {
310041
310040
  var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
310042
310041
  var init_stock = __esm({
310043
310042
  "lib/photos/stock.ts"() {
310044
- "use strict";
310045
310043
  MAX_PHOTO_PAGE = 12;
310046
310044
  MAX_PHOTO_QUERY = 200;
310047
310045
  UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -325937,7 +325935,7 @@ var init_package = __esm({
325937
325935
  "packages/runtime/package.json"() {
325938
325936
  package_default = {
325939
325937
  name: "@popcraft/runtime",
325940
- version: "0.26.1",
325938
+ version: "0.28.0",
325941
325939
  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.",
325942
325940
  license: "MIT",
325943
325941
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -350603,7 +350601,6 @@ function exportsOf(source3) {
350603
350601
  var CODE_LIMITS, packageOf;
350604
350602
  var init_source2 = __esm({
350605
350603
  "lib/code/source.ts"() {
350606
- "use strict";
350607
350604
  CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
350608
350605
  packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
350609
350606
  }
@@ -350646,7 +350643,6 @@ function compileModule(module2) {
350646
350643
  var import_sucrase, BUILT_IN, memo4;
350647
350644
  var init_compile2 = __esm({
350648
350645
  "lib/code/compile.ts"() {
350649
- "use strict";
350650
350646
  import_sucrase = __toESM(require_dist2());
350651
350647
  init_source2();
350652
350648
  init_source2();
@@ -359551,7 +359547,6 @@ var init_publish = __esm({
359551
359547
  var storeOpsSeam;
359552
359548
  var init_seams = __esm({
359553
359549
  "lib/commands/seams.ts"() {
359554
- "use strict";
359555
359550
  storeOpsSeam = (st) => ({
359556
359551
  booleanOperation: (op4) => st().booleanOperation(op4),
359557
359552
  flatten: () => st().flattenSelection(),
@@ -408741,7 +408736,7 @@ init_resources();
408741
408736
  init_desktop();
408742
408737
  init_hypery();
408743
408738
  import { createInterface } from "node:readline";
408744
- var VERSION2 = "0.26.1";
408739
+ var VERSION2 = "0.28.0";
408745
408740
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
408746
408741
 
408747
408742
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.26.1",
3
+ "version": "0.28.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.26.1"
37
+ "@popcraft/kit": "0.28.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",