@popcraft/cli 0.42.5 → 0.42.7

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 -7
  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.42.5"}`, ...opts.headers };
1199
+ const headers = { "user-agent": `popcraft-cli/${"0.42.7"}`, ...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 {
@@ -96188,7 +96188,6 @@ function repairDocumentPaints(doc2) {
96188
96188
  var broken;
96189
96189
  var init_paint_repair = __esm({
96190
96190
  "lib/document/paint-repair.ts"() {
96191
- "use strict";
96192
96191
  init_shader_graph();
96193
96192
  broken = (p2) => {
96194
96193
  if (!p2 || typeof p2 !== "object") return false;
@@ -97536,6 +97535,7 @@ function relinkCopies(doc2, copies) {
97536
97535
  var TEXT_PATH_SOURCE_TYPES, isPathSource;
97537
97536
  var init_text_links = __esm({
97538
97537
  "lib/document/text-links.ts"() {
97538
+ "use strict";
97539
97539
  init_transform();
97540
97540
  TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
97541
97541
  isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
@@ -248865,6 +248865,7 @@ function fillPhotoFrame(doc2, groupId, imageUrl, size6, name2 = "Photo", credit)
248865
248865
  var isPhotoFrame;
248866
248866
  var init_photo_frames = __esm({
248867
248867
  "lib/document/photo-frames.ts"() {
248868
+ "use strict";
248868
248869
  init_dist_node();
248869
248870
  init_scene_graph();
248870
248871
  init_types();
@@ -252418,6 +252419,7 @@ function resizeWindow(doc2, target2, rect) {
252418
252419
  }
252419
252420
  var init_crop = __esm({
252420
252421
  "lib/editor/crop.ts"() {
252422
+ "use strict";
252421
252423
  init_dist_node();
252422
252424
  init_scene_graph();
252423
252425
  init_photo_frames();
@@ -255945,6 +255947,7 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
255945
255947
  var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
255946
255948
  var init_shader_presets = __esm({
255947
255949
  "lib/engine/shader-presets.ts"() {
255950
+ "use strict";
255948
255951
  init_shader_graph();
255949
255952
  init_shader_graph_presets();
255950
255953
  init_shader_presets_legacy();
@@ -256638,6 +256641,7 @@ var init_apply2 = __esm({
256638
256641
  var HYPERY_CLIENT_ID, HYPERY_GATEWAY_URL, HYPERY_AI_SCOPES, plansEnabled, HYPERY_BILLING_SCOPES, HYPERY_AUDIO_SCOPES, HYPERY_SCOPES, cloudEnabled;
256639
256642
  var init_config2 = __esm({
256640
256643
  "lib/client/cloud/config.ts"() {
256644
+ "use strict";
256641
256645
  HYPERY_CLIENT_ID = process.env.NEXT_PUBLIC_HYPERY_CLIENT_ID ?? "";
256642
256646
  HYPERY_GATEWAY_URL = process.env.NEXT_PUBLIC_HYPERY_GATEWAY_URL ?? "https://hypery.ai";
256643
256647
  HYPERY_AI_SCOPES = ["ai:chat", "ai:completions", "ai:models", "ai:images"];
@@ -256904,6 +256908,7 @@ function followPeers(peers) {
256904
256908
  var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
256905
256909
  var init_presence = __esm({
256906
256910
  "lib/collab/presence.ts"() {
256911
+ "use strict";
256907
256912
  init_esm();
256908
256913
  init_editor_store();
256909
256914
  init_status_announcements();
@@ -257816,6 +257821,7 @@ function onTabMessage(fn) {
257816
257821
  var EDITOR_HOME, localDocPath, cloudFilePath, CHANNEL, channel;
257817
257822
  var init_tab_mode = __esm({
257818
257823
  "lib/desktop/tab-mode.ts"() {
257824
+ "use strict";
257819
257825
  EDITOR_HOME = "/home";
257820
257826
  localDocPath = (docId) => `${EDITOR_HOME}?doc=${encodeURIComponent(docId)}`;
257821
257827
  cloudFilePath = (key5) => `/pop/${encodeURIComponent(key5)}`;
@@ -260434,6 +260440,7 @@ function retuneShaderAudio(node2, fillId) {
260434
260440
  }
260435
260441
  var init_shader_audio = __esm({
260436
260442
  "lib/motion/shader-audio.ts"() {
260443
+ "use strict";
260437
260444
  init_shader_params();
260438
260445
  init_modifier_edit();
260439
260446
  init_keys();
@@ -262401,7 +262408,6 @@ function formatLimit(key5, max3) {
262401
262408
  var formatBytes;
262402
262409
  var init_limits2 = __esm({
262403
262410
  "lib/billing/limits.ts"() {
262404
- "use strict";
262405
262411
  init_format();
262406
262412
  init_plans();
262407
262413
  formatBytes = formatFileSize;
@@ -262933,7 +262939,6 @@ function planEntryAction({ home }) {
262933
262939
  var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
262934
262940
  var init_team = __esm({
262935
262941
  "lib/client/cloud/team.ts"() {
262936
- "use strict";
262937
262942
  init_esm();
262938
262943
  init_api4();
262939
262944
  init_session();
@@ -273016,6 +273021,7 @@ async function prepareTemplate(t3) {
273016
273021
  var templateMediaSources;
273017
273022
  var init_use = __esm({
273018
273023
  "lib/templates/use.ts"() {
273024
+ "use strict";
273019
273025
  init_capture();
273020
273026
  templateMediaSources = (t3, hash3) => [
273021
273027
  `/templates/media/${hash3}`,
@@ -306508,6 +306514,7 @@ function decodeSource(key5, label3) {
306508
306514
  var DECODE_CACHE_BYTES, cache7, pending4, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
306509
306515
  var init_audio_decode = __esm({
306510
306516
  "lib/motion/audio-decode.ts"() {
306517
+ "use strict";
306511
306518
  init_media_store();
306512
306519
  init_audio_plan();
306513
306520
  init_time_stretch();
@@ -311270,7 +311277,6 @@ function startCloudSync() {
311270
311277
  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, THUMB_MIN_GAP_MS, putThumbnail, openingFiles, mediaHealed, started2;
311271
311278
  var init_sync2 = __esm({
311272
311279
  "lib/client/cloud/sync.ts"() {
311273
- "use strict";
311274
311280
  init_paint_repair();
311275
311281
  init_migrate();
311276
311282
  init_view();
@@ -311477,6 +311483,7 @@ async function dispatchShaped(key5, options) {
311477
311483
  var onViolation;
311478
311484
  var init_dispatch = __esm({
311479
311485
  "lib/commands/dispatch.ts"() {
311486
+ "use strict";
311480
311487
  init_errors();
311481
311488
  init_registry();
311482
311489
  init_confirm();
@@ -327798,7 +327805,7 @@ var init_package = __esm({
327798
327805
  "packages/runtime/package.json"() {
327799
327806
  package_default = {
327800
327807
  name: "@popcraft/runtime",
327801
- version: "0.42.5",
327808
+ version: "0.42.7",
327802
327809
  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.",
327803
327810
  license: "MIT",
327804
327811
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -361548,6 +361555,7 @@ var init_delete_current_file = __esm({
361548
361555
  var storeOpsSeam;
361549
361556
  var init_seams = __esm({
361550
361557
  "lib/commands/seams.ts"() {
361558
+ "use strict";
361551
361559
  storeOpsSeam = (st) => ({
361552
361560
  booleanOperation: (op4) => st().booleanOperation(op4),
361553
361561
  flatten: () => st().flattenSelection(),
@@ -400558,6 +400566,7 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
400558
400566
  var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
400559
400567
  var init_build3 = __esm({
400560
400568
  "lib/agent/design-script/build.ts"() {
400569
+ "use strict";
400561
400570
  init_hash();
400562
400571
  init_scene_graph();
400563
400572
  init_libraries();
@@ -400587,6 +400596,7 @@ function designFrameOf(doc2, id3) {
400587
400596
  }
400588
400597
  var init_locate = __esm({
400589
400598
  "lib/agent/design-script/locate.ts"() {
400599
+ "use strict";
400590
400600
  }
400591
400601
  });
400592
400602
 
@@ -405761,6 +405771,7 @@ function registerBuiltinCommands() {
405761
405771
  var builtinCommands, uiOnlyCommands;
405762
405772
  var init_builtin4 = __esm({
405763
405773
  "lib/commands/builtin.ts"() {
405774
+ "use strict";
405764
405775
  init_registry();
405765
405776
  init_node();
405766
405777
  init_node();
@@ -413350,7 +413361,7 @@ init_resources();
413350
413361
  init_desktop();
413351
413362
  init_hypery();
413352
413363
  import { createInterface } from "node:readline";
413353
- var VERSION2 = "0.42.5";
413364
+ var VERSION2 = "0.42.7";
413354
413365
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
413355
413366
 
413356
413367
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.42.5",
3
+ "version": "0.42.7",
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.42.5"
37
+ "@popcraft/kit": "0.42.7"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",