@popcraft/cli 0.9.4 → 0.9.5

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 +7 -21
  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.4"}`, ...opts.headers };
1176
+ const headers = { "user-agent": `popcraft-cli/${"0.9.5"}`, ...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 {
@@ -90237,6 +90237,7 @@ function repairDocumentPaints(doc2) {
90237
90237
  var broken;
90238
90238
  var init_paint_repair = __esm({
90239
90239
  "lib/document/paint-repair.ts"() {
90240
+ "use strict";
90240
90241
  init_shader_graph();
90241
90242
  broken = (p2) => {
90242
90243
  if (!p2 || typeof p2 !== "object") return false;
@@ -91515,7 +91516,6 @@ function relinkCopies(doc2, copies) {
91515
91516
  var TEXT_PATH_SOURCE_TYPES, isPathSource;
91516
91517
  var init_text_links = __esm({
91517
91518
  "lib/document/text-links.ts"() {
91518
- "use strict";
91519
91519
  init_transform();
91520
91520
  TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
91521
91521
  isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
@@ -92227,7 +92227,6 @@ function isAutoLayout(node2) {
92227
92227
  }
92228
92228
  var init_auto_layout = __esm({
92229
92229
  "lib/document/auto-layout.ts"() {
92230
- "use strict";
92231
92230
  init_instance_layout();
92232
92231
  setLayoutEngine(applyAutoLayout);
92233
92232
  }
@@ -95172,7 +95171,6 @@ function layerInputPatch(node2, name2, path) {
95172
95171
  var NO_RUNTIME, MAX_DEPTH, freshIndex, indexOf, isComponentLike, selfStarting, startedAt, endMemo, HOST_OWNS, rootTracksMemo, layerMemo, idle;
95173
95172
  var init_instances2 = __esm({
95174
95173
  "lib/motion/instances.ts"() {
95175
- "use strict";
95176
95174
  init_node_delta();
95177
95175
  init_instances();
95178
95176
  init_scene_graph();
@@ -95444,7 +95442,6 @@ function repairStateMachine(raw, markerIds, hasNode) {
95444
95442
  var STATE_MACHINE_INPUT_TYPES, STATE_MACHINE_GUARD_OPS, STATE_MACHINE_ACTION_TYPES, STATE_MACHINE_LISTENER_TYPES, isKeyListener, ANY_STATE, MAX_STEPS2, byId2, sortedValues, machineOf, startValue, isObj3, finite4, isValue, goodId;
95445
95443
  var init_state_machine = __esm({
95446
95444
  "lib/motion/state-machine.ts"() {
95447
- "use strict";
95448
95445
  STATE_MACHINE_INPUT_TYPES = ["boolean", "number", "string", "event"];
95449
95446
  STATE_MACHINE_GUARD_OPS = ["eq", "neq", "gt", "gte", "lt", "lte"];
95450
95447
  STATE_MACHINE_ACTION_TYPES = ["set", "toggle", "increment", "decrement", "fire", "reset"];
@@ -239625,7 +239622,6 @@ function repairCompositions(comps, nodes) {
239625
239622
  var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
239626
239623
  var init_invariants = __esm({
239627
239624
  "lib/motion/invariants.ts"() {
239628
- "use strict";
239629
239625
  init_easing();
239630
239626
  init_properties();
239631
239627
  init_markers();
@@ -239716,7 +239712,6 @@ function resyncText(doc2, ids2) {
239716
239712
  var isVirtualId;
239717
239713
  var init_invariants2 = __esm({
239718
239714
  "lib/document/invariants.ts"() {
239719
- "use strict";
239720
239715
  init_auto_layout();
239721
239716
  init_scene_graph();
239722
239717
  init_text_bounds();
@@ -240597,7 +240592,6 @@ function fillPhotoFrame(doc2, groupId, imageUrl, size6, name2 = "Photo", credit)
240597
240592
  var isPhotoFrame;
240598
240593
  var init_photo_frames = __esm({
240599
240594
  "lib/document/photo-frames.ts"() {
240600
- "use strict";
240601
240595
  init_dist_node();
240602
240596
  init_scene_graph();
240603
240597
  init_types();
@@ -244151,7 +244145,6 @@ function resizeWindow(doc2, target2, rect) {
244151
244145
  }
244152
244146
  var init_crop = __esm({
244153
244147
  "lib/editor/crop.ts"() {
244154
- "use strict";
244155
244148
  init_dist_node();
244156
244149
  init_scene_graph();
244157
244150
  init_photo_frames();
@@ -247674,7 +247667,6 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
247674
247667
  var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
247675
247668
  var init_shader_presets = __esm({
247676
247669
  "lib/engine/shader-presets.ts"() {
247677
- "use strict";
247678
247670
  init_shader_graph();
247679
247671
  init_shader_graph_presets();
247680
247672
  init_shader_presets_legacy();
@@ -252015,7 +252007,6 @@ function retuneShaderAudio(node2, fillId) {
252015
252007
  }
252016
252008
  var init_shader_audio = __esm({
252017
252009
  "lib/motion/shader-audio.ts"() {
252018
- "use strict";
252019
252010
  init_shader_params();
252020
252011
  init_modifier_edit();
252021
252012
  init_keys();
@@ -301728,7 +301719,6 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
301728
301719
  var online, goesLocal;
301729
301720
  var init_new_file = __esm({
301730
301721
  "lib/client/cloud/new-file.ts"() {
301731
- "use strict";
301732
301722
  init_scene_graph();
301733
301723
  init_print_pages();
301734
301724
  init_page_presets();
@@ -302236,6 +302226,7 @@ function startCloudSync() {
302236
302226
  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, putThumbnail, openingFiles, mediaHealed, started;
302237
302227
  var init_sync2 = __esm({
302238
302228
  "lib/client/cloud/sync.ts"() {
302229
+ "use strict";
302239
302230
  init_paint_repair();
302240
302231
  init_migrate();
302241
302232
  init_view();
@@ -303485,7 +303476,6 @@ function applyTextPath(layout2, path, tp, rebase = true) {
303485
303476
  var defaultCircleRadius, ownsPath, mapPoint;
303486
303477
  var init_text_path = __esm({
303487
303478
  "lib/engine/text/text-path.ts"() {
303488
- "use strict";
303489
303479
  init_scene_graph();
303490
303480
  init_transform();
303491
303481
  init_shape_to_path();
@@ -303603,7 +303593,6 @@ function areaBounds(rings) {
303603
303593
  }
303604
303594
  var init_text_area = __esm({
303605
303595
  "lib/engine/text/text-area.ts"() {
303606
- "use strict";
303607
303596
  }
303608
303597
  });
303609
303598
 
@@ -308700,6 +308689,7 @@ function agentToolList() {
308700
308689
  var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
308701
308690
  var init_agent = __esm({
308702
308691
  "lib/commands/agent.ts"() {
308692
+ "use strict";
308703
308693
  init_types5();
308704
308694
  init_registry();
308705
308695
  init_errors();
@@ -317233,7 +317223,7 @@ var init_package = __esm({
317233
317223
  "packages/runtime/package.json"() {
317234
317224
  package_default = {
317235
317225
  name: "@popcraft/runtime",
317236
- version: "0.9.4",
317226
+ version: "0.9.5",
317237
317227
  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.",
317238
317228
  license: "MIT",
317239
317229
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -342834,6 +342824,7 @@ function hashOf(text) {
342834
342824
  }
342835
342825
  var init_hash = __esm({
342836
342826
  "lib/code/hash.ts"() {
342827
+ "use strict";
342837
342828
  }
342838
342829
  });
342839
342830
 
@@ -348917,7 +348908,6 @@ function publishSite(key5, files, opts = {}) {
348917
348908
  var siteStatus, setSiteVersion, renameSite;
348918
348909
  var init_sites = __esm({
348919
348910
  "lib/client/cloud/sites.ts"() {
348920
- "use strict";
348921
348911
  init_files();
348922
348912
  init_upload2();
348923
348913
  init_api4();
@@ -349431,7 +349421,6 @@ function designRecorder() {
349431
349421
  var installed;
349432
349422
  var init_recorders = __esm({
349433
349423
  "lib/agent/design-script/recorders.ts"() {
349434
- "use strict";
349435
349424
  installed = null;
349436
349425
  }
349437
349426
  });
@@ -349440,7 +349429,6 @@ var init_recorders = __esm({
349440
349429
  var HELPER_NAMES;
349441
349430
  var init_helper_names = __esm({
349442
349431
  "lib/agent/design-script/helper-names.ts"() {
349443
- "use strict";
349444
349432
  HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
349445
349433
  }
349446
349434
  });
@@ -349459,7 +349447,6 @@ function designFrameOf(doc2, id3) {
349459
349447
  }
349460
349448
  var init_locate = __esm({
349461
349449
  "lib/agent/design-script/locate.ts"() {
349462
- "use strict";
349463
349450
  }
349464
349451
  });
349465
349452
 
@@ -349698,7 +349685,6 @@ function placeDesign(doc2, built, source3, size6, name2, at3) {
349698
349685
  var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
349699
349686
  var init_build3 = __esm({
349700
349687
  "lib/agent/design-script/build.ts"() {
349701
- "use strict";
349702
349688
  init_hash();
349703
349689
  init_scene_graph();
349704
349690
  init_libraries();
@@ -397799,7 +397785,7 @@ init_resources();
397799
397785
  init_desktop();
397800
397786
  init_hypery();
397801
397787
  import { createInterface } from "node:readline";
397802
- var VERSION2 = "0.9.4";
397788
+ var VERSION2 = "0.9.5";
397803
397789
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
397804
397790
 
397805
397791
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
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.4"
37
+ "@popcraft/kit": "0.9.5"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",