@popcraft/cli 0.9.3 → 0.9.4

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 -5
  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.3"}`, ...opts.headers };
1176
+ const headers = { "user-agent": `popcraft-cli/${"0.9.4"}`, ...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 {
@@ -239716,6 +239716,7 @@ function resyncText(doc2, ids2) {
239716
239716
  var isVirtualId;
239717
239717
  var init_invariants2 = __esm({
239718
239718
  "lib/document/invariants.ts"() {
239719
+ "use strict";
239719
239720
  init_auto_layout();
239720
239721
  init_scene_graph();
239721
239722
  init_text_bounds();
@@ -253703,6 +253704,7 @@ function formatDate(date5, opts = { month: "short", day: "numeric", year: "numer
253703
253704
  var cache5, nf;
253704
253705
  var init_format = __esm({
253705
253706
  "lib/i18n/format.ts"() {
253707
+ "use strict";
253706
253708
  init_runtime();
253707
253709
  cache5 = /* @__PURE__ */ new Map();
253708
253710
  nf = (opts) => cached2("n", opts, (l) => new Intl.NumberFormat(l, opts));
@@ -301726,6 +301728,7 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
301726
301728
  var online, goesLocal;
301727
301729
  var init_new_file = __esm({
301728
301730
  "lib/client/cloud/new-file.ts"() {
301731
+ "use strict";
301729
301732
  init_scene_graph();
301730
301733
  init_print_pages();
301731
301734
  init_page_presets();
@@ -301826,7 +301829,7 @@ function reflectUrl() {
301826
301829
  const docId = useEditorStore.getState().document.id;
301827
301830
  if (isUnsavedPlaceholder(docId)) return;
301828
301831
  if (!isDesktopTabs() && isWebHome(window.location.pathname, window.location.search)) return;
301829
- const localDocId = !isDesktopTabs() && !activeLink && isPersistableDocument(docId) ? docId : null;
301832
+ const localDocId = !activeLink && isPersistableDocument(docId) ? docId : null;
301830
301833
  const base = documentPath({ linkKey: activeLink?.key, localDocId });
301831
301834
  const atSameAddress = window.location.pathname === base.split("?")[0];
301832
301835
  const path = atSameAddress ? withDeepLink(base, parseDeepLink(window.location.search)) : base;
@@ -303482,6 +303485,7 @@ function applyTextPath(layout2, path, tp, rebase = true) {
303482
303485
  var defaultCircleRadius, ownsPath, mapPoint;
303483
303486
  var init_text_path = __esm({
303484
303487
  "lib/engine/text/text-path.ts"() {
303488
+ "use strict";
303485
303489
  init_scene_graph();
303486
303490
  init_transform();
303487
303491
  init_shape_to_path();
@@ -303599,6 +303603,7 @@ function areaBounds(rings) {
303599
303603
  }
303600
303604
  var init_text_area = __esm({
303601
303605
  "lib/engine/text/text-area.ts"() {
303606
+ "use strict";
303602
303607
  }
303603
303608
  });
303604
303609
 
@@ -307830,6 +307835,7 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
307830
307835
  var MIME, DEFAULT_EXPORT, exportSettingsOf;
307831
307836
  var init_export = __esm({
307832
307837
  "lib/io/export.ts"() {
307838
+ "use strict";
307833
307839
  init_download();
307834
307840
  init_scene_graph();
307835
307841
  init_codecs();
@@ -308694,7 +308700,6 @@ function agentToolList() {
308694
308700
  var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
308695
308701
  var init_agent = __esm({
308696
308702
  "lib/commands/agent.ts"() {
308697
- "use strict";
308698
308703
  init_types5();
308699
308704
  init_registry();
308700
308705
  init_errors();
@@ -316201,6 +316206,7 @@ popcraftMount(document.querySelector('[data-pc="0"]'), ${JSON.stringify(spec)});
316201
316206
  var routeFile, routeUp, bytesOf;
316202
316207
  var init_files = __esm({
316203
316208
  "lib/io/web/project/files.ts"() {
316209
+ "use strict";
316204
316210
  routeFile = (route2) => route2 === "/" ? "index.html" : `${route2.replace(/^\//, "")}/index.html`;
316205
316211
  routeUp = (route2) => route2 === "/" ? "" : "../".repeat(route2.replace(/^\//, "").split("/").length);
316206
316212
  bytesOf = (f2) => typeof f2.content === "string" ? new TextEncoder().encode(f2.content) : f2.content;
@@ -317227,7 +317233,7 @@ var init_package = __esm({
317227
317233
  "packages/runtime/package.json"() {
317228
317234
  package_default = {
317229
317235
  name: "@popcraft/runtime",
317230
- version: "0.9.3",
317236
+ version: "0.9.4",
317231
317237
  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.",
317232
317238
  license: "MIT",
317233
317239
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -317853,6 +317859,7 @@ function routesOf(screens) {
317853
317859
  var slug2;
317854
317860
  var init_routes = __esm({
317855
317861
  "lib/document/routes.ts"() {
317862
+ "use strict";
317856
317863
  slug2 = (s) => s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
317857
317864
  }
317858
317865
  });
@@ -317982,6 +317989,7 @@ function fieldPart(nodes, id3) {
317982
317989
  var cleanName2;
317983
317990
  var init_controls = __esm({
317984
317991
  "lib/document/controls.ts"() {
317992
+ "use strict";
317985
317993
  cleanName2 = (raw) => raw.trim().replace(/[^A-Za-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
317986
317994
  }
317987
317995
  });
@@ -345950,6 +345958,7 @@ function diagnosticsText(diagnostics) {
345950
345958
  var HARNESS_NAMES, plainDiagnostics;
345951
345959
  var init_shader_diagnostics = __esm({
345952
345960
  "lib/engine/shader-diagnostics.ts"() {
345961
+ "use strict";
345953
345962
  HARNESS_NAMES = ["ShaderUniforms", "VOut", "vs_main", "fs_main", "u", "p"];
345954
345963
  plainDiagnostics = (errors2) => errors2.map((message) => ({ line: null, column: null, message, severity: "error" }));
345955
345964
  }
@@ -348908,6 +348917,7 @@ function publishSite(key5, files, opts = {}) {
348908
348917
  var siteStatus, setSiteVersion, renameSite;
348909
348918
  var init_sites = __esm({
348910
348919
  "lib/client/cloud/sites.ts"() {
348920
+ "use strict";
348911
348921
  init_files();
348912
348922
  init_upload2();
348913
348923
  init_api4();
@@ -349421,6 +349431,7 @@ function designRecorder() {
349421
349431
  var installed;
349422
349432
  var init_recorders = __esm({
349423
349433
  "lib/agent/design-script/recorders.ts"() {
349434
+ "use strict";
349424
349435
  installed = null;
349425
349436
  }
349426
349437
  });
@@ -349429,6 +349440,7 @@ var init_recorders = __esm({
349429
349440
  var HELPER_NAMES;
349430
349441
  var init_helper_names = __esm({
349431
349442
  "lib/agent/design-script/helper-names.ts"() {
349443
+ "use strict";
349432
349444
  HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
349433
349445
  }
349434
349446
  });
@@ -397787,7 +397799,7 @@ init_resources();
397787
397799
  init_desktop();
397788
397800
  init_hypery();
397789
397801
  import { createInterface } from "node:readline";
397790
- var VERSION2 = "0.9.3";
397802
+ var VERSION2 = "0.9.4";
397791
397803
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
397792
397804
 
397793
397805
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
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.3"
37
+ "@popcraft/kit": "0.9.4"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",