@popcraft/cli 0.53.8 → 0.53.9
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.
- package/dist/popcraft.mjs +13 -10
- package/package.json +2 -2
package/dist/popcraft.mjs
CHANGED
|
@@ -1198,7 +1198,7 @@ function operations(spec = openapi) {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
async function call(target2, method, path, opts = {}) {
|
|
1200
1200
|
const qs = new URLSearchParams(opts.query ?? {}).toString();
|
|
1201
|
-
const headers = { "user-agent": `popcraft-cli/${"0.53.
|
|
1201
|
+
const headers = { "user-agent": `popcraft-cli/${"0.53.9"}`, ...opts.headers };
|
|
1202
1202
|
if (target2.token) headers.authorization = `Bearer ${target2.token}`;
|
|
1203
1203
|
if (opts.contentType) headers["content-type"] = opts.contentType;
|
|
1204
1204
|
try {
|
|
@@ -252662,6 +252662,7 @@ function resizeWindow(doc2, target2, rect) {
|
|
|
252662
252662
|
}
|
|
252663
252663
|
var init_crop = __esm({
|
|
252664
252664
|
"lib/editor/crop.ts"() {
|
|
252665
|
+
"use strict";
|
|
252665
252666
|
init_dist_node();
|
|
252666
252667
|
init_scene_graph();
|
|
252667
252668
|
init_photo_frames();
|
|
@@ -256745,7 +256746,6 @@ function mergeFonts(fonts, incoming) {
|
|
|
256745
256746
|
var fontWeightOf, fontStyleOf, sameSlot, hashOf, documentFontHashes;
|
|
256746
256747
|
var init_document_fonts = __esm({
|
|
256747
256748
|
"lib/fonts/document-fonts.ts"() {
|
|
256748
|
-
"use strict";
|
|
256749
256749
|
init_media_store();
|
|
256750
256750
|
init_media_hash();
|
|
256751
256751
|
fontWeightOf = (f2) => f2.weight ?? 400;
|
|
@@ -260751,6 +260751,7 @@ function retuneShaderAudio(node2, fillId) {
|
|
|
260751
260751
|
}
|
|
260752
260752
|
var init_shader_audio = __esm({
|
|
260753
260753
|
"lib/motion/shader-audio.ts"() {
|
|
260754
|
+
"use strict";
|
|
260754
260755
|
init_shader_params();
|
|
260755
260756
|
init_modifier_edit();
|
|
260756
260757
|
init_keys();
|
|
@@ -262764,7 +262765,6 @@ function formatDate(date5, opts = { month: "short", day: "numeric", year: "numer
|
|
|
262764
262765
|
var cache5, nf;
|
|
262765
262766
|
var init_format = __esm({
|
|
262766
262767
|
"lib/i18n/format.ts"() {
|
|
262767
|
-
"use strict";
|
|
262768
262768
|
init_runtime();
|
|
262769
262769
|
cache5 = /* @__PURE__ */ new Map();
|
|
262770
262770
|
nf = (opts) => cached2("n", opts, (l) => new Intl.NumberFormat(l, opts));
|
|
@@ -262784,6 +262784,7 @@ function formatLimit(key5, max3) {
|
|
|
262784
262784
|
var formatBytes;
|
|
262785
262785
|
var init_limits2 = __esm({
|
|
262786
262786
|
"lib/billing/limits.ts"() {
|
|
262787
|
+
"use strict";
|
|
262787
262788
|
init_format();
|
|
262788
262789
|
init_plans();
|
|
262789
262790
|
formatBytes = formatFileSize;
|
|
@@ -307000,6 +307001,7 @@ function decodeSource(key5, label3) {
|
|
|
307000
307001
|
var DECODE_CACHE_BYTES, cache7, pending4, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
|
|
307001
307002
|
var init_audio_decode = __esm({
|
|
307002
307003
|
"lib/motion/audio-decode.ts"() {
|
|
307004
|
+
"use strict";
|
|
307003
307005
|
init_media_store();
|
|
307004
307006
|
init_audio_plan();
|
|
307005
307007
|
init_time_stretch();
|
|
@@ -311780,7 +311782,6 @@ function startCloudSync() {
|
|
|
311780
311782
|
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;
|
|
311781
311783
|
var init_sync2 = __esm({
|
|
311782
311784
|
"lib/client/cloud/sync.ts"() {
|
|
311783
|
-
"use strict";
|
|
311784
311785
|
init_paint_repair();
|
|
311785
311786
|
init_migrate();
|
|
311786
311787
|
init_view();
|
|
@@ -311990,6 +311991,7 @@ async function dispatchShaped(key5, options) {
|
|
|
311990
311991
|
var onViolation;
|
|
311991
311992
|
var init_dispatch = __esm({
|
|
311992
311993
|
"lib/commands/dispatch.ts"() {
|
|
311994
|
+
"use strict";
|
|
311993
311995
|
init_errors();
|
|
311994
311996
|
init_registry();
|
|
311995
311997
|
init_confirm();
|
|
@@ -312389,7 +312391,6 @@ function creditLine(c2) {
|
|
|
312389
312391
|
var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
|
|
312390
312392
|
var init_stock = __esm({
|
|
312391
312393
|
"lib/photos/stock.ts"() {
|
|
312392
|
-
"use strict";
|
|
312393
312394
|
MAX_PHOTO_PAGE = 12;
|
|
312394
312395
|
MAX_PHOTO_QUERY = 200;
|
|
312395
312396
|
UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -313051,7 +313052,6 @@ function applyTextPath(layout2, path, tp, rebase = true) {
|
|
|
313051
313052
|
var defaultCircleRadius, ownsPath, mapPoint;
|
|
313052
313053
|
var init_text_path = __esm({
|
|
313053
313054
|
"lib/engine/text/text-path.ts"() {
|
|
313054
|
-
"use strict";
|
|
313055
313055
|
init_scene_graph();
|
|
313056
313056
|
init_transform();
|
|
313057
313057
|
init_shape_to_path();
|
|
@@ -317605,7 +317605,6 @@ async function selectionReferenceImages(doc2, selection, opts = {}) {
|
|
|
317605
317605
|
var FIT_QUALITIES, FIT_SCALES, blobToDataUrl;
|
|
317606
317606
|
var init_reference_images = __esm({
|
|
317607
317607
|
"lib/ai/reference-images.ts"() {
|
|
317608
|
-
"use strict";
|
|
317609
317608
|
init_export();
|
|
317610
317609
|
init_selection_bounds();
|
|
317611
317610
|
init_renderer_registry();
|
|
@@ -318448,7 +318447,6 @@ function agentToolList() {
|
|
|
318448
318447
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
318449
318448
|
var init_agent = __esm({
|
|
318450
318449
|
"lib/commands/agent.ts"() {
|
|
318451
|
-
"use strict";
|
|
318452
318450
|
init_types5();
|
|
318453
318451
|
init_registry();
|
|
318454
318452
|
init_errors();
|
|
@@ -328801,7 +328799,7 @@ var init_package = __esm({
|
|
|
328801
328799
|
"packages/runtime/package.json"() {
|
|
328802
328800
|
package_default = {
|
|
328803
328801
|
name: "@popcraft/runtime",
|
|
328804
|
-
version: "0.53.
|
|
328802
|
+
version: "0.53.9",
|
|
328805
328803
|
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.",
|
|
328806
328804
|
license: "MIT",
|
|
328807
328805
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -362560,6 +362558,7 @@ var init_delete_current_file = __esm({
|
|
|
362560
362558
|
var storeOpsSeam;
|
|
362561
362559
|
var init_seams = __esm({
|
|
362562
362560
|
"lib/commands/seams.ts"() {
|
|
362561
|
+
"use strict";
|
|
362563
362562
|
storeOpsSeam = (st) => ({
|
|
362564
362563
|
booleanOperation: (op4) => st().booleanOperation(op4),
|
|
362565
362564
|
flatten: () => st().flattenSelection(),
|
|
@@ -368170,6 +368169,7 @@ var init_doc2 = __esm({
|
|
|
368170
368169
|
var POSTER_KEY, MAX_PREVIEW_BYTES2, PREVIEW_STILL_TYPE, previewPath;
|
|
368171
368170
|
var init_motion3 = __esm({
|
|
368172
368171
|
"lib/marketplace/motion.ts"() {
|
|
368172
|
+
"use strict";
|
|
368173
368173
|
init_instances2();
|
|
368174
368174
|
POSTER_KEY = "poster";
|
|
368175
368175
|
MAX_PREVIEW_BYTES2 = 4 * 1024 * 1024;
|
|
@@ -401617,6 +401617,7 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
|
|
|
401617
401617
|
var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
|
|
401618
401618
|
var init_build3 = __esm({
|
|
401619
401619
|
"lib/agent/design-script/build.ts"() {
|
|
401620
|
+
"use strict";
|
|
401620
401621
|
init_hash();
|
|
401621
401622
|
init_scene_graph();
|
|
401622
401623
|
init_libraries();
|
|
@@ -401646,6 +401647,7 @@ function designFrameOf(doc2, id3) {
|
|
|
401646
401647
|
}
|
|
401647
401648
|
var init_locate = __esm({
|
|
401648
401649
|
"lib/agent/design-script/locate.ts"() {
|
|
401650
|
+
"use strict";
|
|
401649
401651
|
}
|
|
401650
401652
|
});
|
|
401651
401653
|
|
|
@@ -406832,6 +406834,7 @@ function registerBuiltinCommands() {
|
|
|
406832
406834
|
var builtinCommands, uiOnlyCommands;
|
|
406833
406835
|
var init_builtin4 = __esm({
|
|
406834
406836
|
"lib/commands/builtin.ts"() {
|
|
406837
|
+
"use strict";
|
|
406835
406838
|
init_registry();
|
|
406836
406839
|
init_node();
|
|
406837
406840
|
init_node();
|
|
@@ -414393,7 +414396,7 @@ init_resources();
|
|
|
414393
414396
|
init_desktop();
|
|
414394
414397
|
init_hypery();
|
|
414395
414398
|
import { createInterface } from "node:readline";
|
|
414396
|
-
var VERSION2 = "0.53.
|
|
414399
|
+
var VERSION2 = "0.53.9";
|
|
414397
414400
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
414398
414401
|
|
|
414399
414402
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.9",
|
|
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.53.
|
|
37
|
+
"@popcraft/kit": "0.53.9"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|