@popcraft/cli 0.48.1 → 0.48.2

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 +18 -8
  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.48.1"}`, ...opts.headers };
1199
+ const headers = { "user-agent": `popcraft-cli/${"0.48.2"}`, ...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 {
@@ -247966,7 +247966,6 @@ function repairCompositions(comps, nodes) {
247966
247966
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
247967
247967
  var init_invariants = __esm({
247968
247968
  "lib/motion/invariants.ts"() {
247969
- "use strict";
247970
247969
  init_easing();
247971
247970
  init_properties();
247972
247971
  init_markers();
@@ -248063,7 +248062,6 @@ function resyncText(doc2, ids2) {
248063
248062
  var isVirtualId;
248064
248063
  var init_invariants2 = __esm({
248065
248064
  "lib/document/invariants.ts"() {
248066
- "use strict";
248067
248065
  init_auto_layout();
248068
248066
  init_scene_graph();
248069
248067
  init_text_bounds();
@@ -249090,6 +249088,7 @@ function beforeWrite() {
249090
249088
  var leave;
249091
249089
  var init_read_only = __esm({
249092
249090
  "lib/editor/modes/read-only.ts"() {
249091
+ "use strict";
249093
249092
  leave = null;
249094
249093
  }
249095
249094
  });
@@ -262503,6 +262502,7 @@ function networkSignal(signal, timeoutMs = NETWORK_TIMEOUT_MS) {
262503
262502
  var import_react3, NETWORK_TIMEOUT_MS, OfflineError;
262504
262503
  var init_network = __esm({
262505
262504
  "lib/client/network.ts"() {
262505
+ "use strict";
262506
262506
  import_react3 = __toESM(require_react());
262507
262507
  NETWORK_TIMEOUT_MS = 8e3;
262508
262508
  OfflineError = class extends Error {
@@ -263131,7 +263131,6 @@ function planEntryAction({ home }) {
263131
263131
  var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
263132
263132
  var init_team = __esm({
263133
263133
  "lib/client/cloud/team.ts"() {
263134
- "use strict";
263135
263134
  init_esm();
263136
263135
  init_api4();
263137
263136
  init_session();
@@ -311804,6 +311803,7 @@ async function dispatchShaped(key5, options) {
311804
311803
  var onViolation;
311805
311804
  var init_dispatch = __esm({
311806
311805
  "lib/commands/dispatch.ts"() {
311806
+ "use strict";
311807
311807
  init_errors();
311808
311808
  init_registry();
311809
311809
  init_confirm();
@@ -312203,6 +312203,7 @@ function creditLine(c2) {
312203
312203
  var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
312204
312204
  var init_stock = __esm({
312205
312205
  "lib/photos/stock.ts"() {
312206
+ "use strict";
312206
312207
  MAX_PHOTO_PAGE = 12;
312207
312208
  MAX_PHOTO_QUERY = 200;
312208
312209
  UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -312864,6 +312865,7 @@ function applyTextPath(layout2, path, tp, rebase = true) {
312864
312865
  var defaultCircleRadius, ownsPath, mapPoint;
312865
312866
  var init_text_path = __esm({
312866
312867
  "lib/engine/text/text-path.ts"() {
312868
+ "use strict";
312867
312869
  init_scene_graph();
312868
312870
  init_transform();
312869
312871
  init_shape_to_path();
@@ -312981,6 +312983,7 @@ function areaBounds(rings) {
312981
312983
  }
312982
312984
  var init_text_area = __esm({
312983
312985
  "lib/engine/text/text-area.ts"() {
312986
+ "use strict";
312984
312987
  }
312985
312988
  });
312986
312989
 
@@ -317325,6 +317328,7 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
317325
317328
  var MIME, DEFAULT_EXPORT, exportSettingsOf;
317326
317329
  var init_export = __esm({
317327
317330
  "lib/io/export.ts"() {
317331
+ "use strict";
317328
317332
  init_download();
317329
317333
  init_scene_graph();
317330
317334
  init_codecs();
@@ -317416,7 +317420,6 @@ async function selectionReferenceImages(doc2, selection, opts = {}) {
317416
317420
  var FIT_QUALITIES, FIT_SCALES, blobToDataUrl;
317417
317421
  var init_reference_images = __esm({
317418
317422
  "lib/ai/reference-images.ts"() {
317419
- "use strict";
317420
317423
  init_export();
317421
317424
  init_selection_bounds();
317422
317425
  init_renderer_registry();
@@ -318259,7 +318262,6 @@ function agentToolList() {
318259
318262
  var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
318260
318263
  var init_agent = __esm({
318261
318264
  "lib/commands/agent.ts"() {
318262
- "use strict";
318263
318265
  init_types5();
318264
318266
  init_registry();
318265
318267
  init_errors();
@@ -321318,6 +321320,7 @@ function outerSizeFor(want, inner, outer) {
321318
321320
  var AUDIENCE_PRESETS, DEFAULT_AUDIENCE_RESOLUTION, MIN_SIDE, MAX_SIDE, FIT_OPEN_SIZE, clampSide, formatResolution, sameResolution, captureSize;
321319
321321
  var init_resolution = __esm({
321320
321322
  "lib/slides/audience/resolution.ts"() {
321323
+ "use strict";
321321
321324
  init_stage_view();
321322
321325
  AUDIENCE_PRESETS = [
321323
321326
  { id: "720p", label: "1280 \xD7 720 (720p)", resolution: { kind: "fixed", width: 1280, height: 720 } },
@@ -328147,7 +328150,7 @@ var init_package = __esm({
328147
328150
  "packages/runtime/package.json"() {
328148
328151
  package_default = {
328149
328152
  name: "@popcraft/runtime",
328150
- version: "0.48.1",
328153
+ version: "0.48.2",
328151
328154
  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.",
328152
328155
  license: "MIT",
328153
328156
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -352813,6 +352816,7 @@ function exportsOf(source3) {
352813
352816
  var CODE_LIMITS, packageOf;
352814
352817
  var init_source2 = __esm({
352815
352818
  "lib/code/source.ts"() {
352819
+ "use strict";
352816
352820
  CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
352817
352821
  packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
352818
352822
  }
@@ -352855,6 +352859,7 @@ function compileModule(module2) {
352855
352859
  var import_sucrase, BUILT_IN, memo4;
352856
352860
  var init_compile2 = __esm({
352857
352861
  "lib/code/compile.ts"() {
352862
+ "use strict";
352858
352863
  import_sucrase = __toESM(require_dist2());
352859
352864
  init_source2();
352860
352865
  init_source2();
@@ -361369,6 +361374,7 @@ function publishSite(key5, files, opts = {}) {
361369
361374
  var siteStatus, setSiteVersion, workspaceSites, deleteSite, renameSite;
361370
361375
  var init_sites = __esm({
361371
361376
  "lib/client/cloud/sites.ts"() {
361377
+ "use strict";
361372
361378
  init_files();
361373
361379
  init_upload2();
361374
361380
  init_api4();
@@ -361896,6 +361902,7 @@ var init_delete_current_file = __esm({
361896
361902
  var storeOpsSeam;
361897
361903
  var init_seams = __esm({
361898
361904
  "lib/commands/seams.ts"() {
361905
+ "use strict";
361899
361906
  storeOpsSeam = (st) => ({
361900
361907
  booleanOperation: (op4) => st().booleanOperation(op4),
361901
361908
  flatten: () => st().flattenSelection(),
@@ -400670,6 +400677,7 @@ function record(source, namespaces, globals, limits) {
400670
400677
  var HELPER_NAMES;
400671
400678
  var init_helper_names = __esm({
400672
400679
  "lib/agent/design-script/helper-names.ts"() {
400680
+ "use strict";
400673
400681
  HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
400674
400682
  }
400675
400683
  });
@@ -400772,6 +400780,7 @@ async function replay(rec, namespaces2) {
400772
400780
  var BLOCKED, isRef2, isFn;
400773
400781
  var init_replay = __esm({
400774
400782
  "lib/agent/design-script/replay.ts"() {
400783
+ "use strict";
400775
400784
  BLOCKED = /* @__PURE__ */ new Set(["constructor", "prototype", "__proto__", "caller", "callee", "arguments", "call", "apply", "bind"]);
400776
400785
  isRef2 = (v) => !!v && typeof v === "object" && "$ref" in v && Array.isArray(v.path);
400777
400786
  isFn = (v) => !!v && typeof v === "object" && "$fn" in v && Array.isArray(v.ops);
@@ -406121,6 +406130,7 @@ function registerBuiltinCommands() {
406121
406130
  var builtinCommands, uiOnlyCommands;
406122
406131
  var init_builtin4 = __esm({
406123
406132
  "lib/commands/builtin.ts"() {
406133
+ "use strict";
406124
406134
  init_registry();
406125
406135
  init_node();
406126
406136
  init_node();
@@ -413724,7 +413734,7 @@ init_resources();
413724
413734
  init_desktop();
413725
413735
  init_hypery();
413726
413736
  import { createInterface } from "node:readline";
413727
- var VERSION2 = "0.48.1";
413737
+ var VERSION2 = "0.48.2";
413728
413738
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
413729
413739
 
413730
413740
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.48.1",
3
+ "version": "0.48.2",
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.48.1"
37
+ "@popcraft/kit": "0.48.2"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",