@popcraft/cli 0.9.1 → 0.9.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 +3 -13
  2. package/package.json +2 -2
package/dist/popcraft.mjs CHANGED
@@ -1173,7 +1173,7 @@ function operations(spec = openapi) {
1173
1173
  }
1174
1174
  async function call(target2, method, path, opts = {}) {
1175
1175
  const qs = new URLSearchParams(opts.query ?? {}).toString();
1176
- const headers = { "user-agent": `popcraft-cli/${"0.9.1"}`, ...opts.headers };
1176
+ const headers = { "user-agent": `popcraft-cli/${"0.9.3"}`, ...opts.headers };
1177
1177
  if (target2.token) headers.authorization = `Bearer ${target2.token}`;
1178
1178
  if (opts.contentType) headers["content-type"] = opts.contentType;
1179
1179
  try {
@@ -253703,7 +253703,6 @@ function formatDate(date5, opts = { month: "short", day: "numeric", year: "numer
253703
253703
  var cache5, nf;
253704
253704
  var init_format = __esm({
253705
253705
  "lib/i18n/format.ts"() {
253706
- "use strict";
253707
253706
  init_runtime();
253708
253707
  cache5 = /* @__PURE__ */ new Map();
253709
253708
  nf = (opts) => cached2("n", opts, (l) => new Intl.NumberFormat(l, opts));
@@ -303483,7 +303482,6 @@ function applyTextPath(layout2, path, tp, rebase = true) {
303483
303482
  var defaultCircleRadius, ownsPath, mapPoint;
303484
303483
  var init_text_path = __esm({
303485
303484
  "lib/engine/text/text-path.ts"() {
303486
- "use strict";
303487
303485
  init_scene_graph();
303488
303486
  init_transform();
303489
303487
  init_shape_to_path();
@@ -307832,7 +307830,6 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
307832
307830
  var MIME, DEFAULT_EXPORT, exportSettingsOf;
307833
307831
  var init_export = __esm({
307834
307832
  "lib/io/export.ts"() {
307835
- "use strict";
307836
307833
  init_download();
307837
307834
  init_scene_graph();
307838
307835
  init_codecs();
@@ -316204,7 +316201,6 @@ popcraftMount(document.querySelector('[data-pc="0"]'), ${JSON.stringify(spec)});
316204
316201
  var routeFile, routeUp, bytesOf;
316205
316202
  var init_files = __esm({
316206
316203
  "lib/io/web/project/files.ts"() {
316207
- "use strict";
316208
316204
  routeFile = (route2) => route2 === "/" ? "index.html" : `${route2.replace(/^\//, "")}/index.html`;
316209
316205
  routeUp = (route2) => route2 === "/" ? "" : "../".repeat(route2.replace(/^\//, "").split("/").length);
316210
316206
  bytesOf = (f2) => typeof f2.content === "string" ? new TextEncoder().encode(f2.content) : f2.content;
@@ -317231,7 +317227,7 @@ var init_package = __esm({
317231
317227
  "packages/runtime/package.json"() {
317232
317228
  package_default = {
317233
317229
  name: "@popcraft/runtime",
317234
- version: "0.9.1",
317230
+ version: "0.9.3",
317235
317231
  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.",
317236
317232
  license: "MIT",
317237
317233
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -317857,7 +317853,6 @@ function routesOf(screens) {
317857
317853
  var slug2;
317858
317854
  var init_routes = __esm({
317859
317855
  "lib/document/routes.ts"() {
317860
- "use strict";
317861
317856
  slug2 = (s) => s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
317862
317857
  }
317863
317858
  });
@@ -317987,7 +317982,6 @@ function fieldPart(nodes, id3) {
317987
317982
  var cleanName2;
317988
317983
  var init_controls = __esm({
317989
317984
  "lib/document/controls.ts"() {
317990
- "use strict";
317991
317985
  cleanName2 = (raw) => raw.trim().replace(/[^A-Za-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
317992
317986
  }
317993
317987
  });
@@ -342832,7 +342826,6 @@ function hashOf(text) {
342832
342826
  }
342833
342827
  var init_hash = __esm({
342834
342828
  "lib/code/hash.ts"() {
342835
- "use strict";
342836
342829
  }
342837
342830
  });
342838
342831
 
@@ -345957,7 +345950,6 @@ function diagnosticsText(diagnostics) {
345957
345950
  var HARNESS_NAMES, plainDiagnostics;
345958
345951
  var init_shader_diagnostics = __esm({
345959
345952
  "lib/engine/shader-diagnostics.ts"() {
345960
- "use strict";
345961
345953
  HARNESS_NAMES = ["ShaderUniforms", "VOut", "vs_main", "fs_main", "u", "p"];
345962
345954
  plainDiagnostics = (errors2) => errors2.map((message) => ({ line: null, column: null, message, severity: "error" }));
345963
345955
  }
@@ -348916,7 +348908,6 @@ function publishSite(key5, files, opts = {}) {
348916
348908
  var siteStatus, setSiteVersion, renameSite;
348917
348909
  var init_sites = __esm({
348918
348910
  "lib/client/cloud/sites.ts"() {
348919
- "use strict";
348920
348911
  init_files();
348921
348912
  init_upload2();
348922
348913
  init_api4();
@@ -349430,7 +349421,6 @@ function designRecorder() {
349430
349421
  var installed;
349431
349422
  var init_recorders = __esm({
349432
349423
  "lib/agent/design-script/recorders.ts"() {
349433
- "use strict";
349434
349424
  installed = null;
349435
349425
  }
349436
349426
  });
@@ -397797,7 +397787,7 @@ init_resources();
397797
397787
  init_desktop();
397798
397788
  init_hypery();
397799
397789
  import { createInterface } from "node:readline";
397800
- var VERSION2 = "0.9.1";
397790
+ var VERSION2 = "0.9.3";
397801
397791
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
397802
397792
 
397803
397793
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.9.1",
3
+ "version": "0.9.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.9.1"
37
+ "@popcraft/kit": "0.9.3"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",