@popcraft/cli 0.56.3 → 0.56.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.
- package/dist/popcraft.mjs +8 -13
- 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.56.
|
|
1201
|
+
const headers = { "user-agent": `popcraft-cli/${"0.56.4"}`, ...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 {
|
|
@@ -254685,7 +254685,6 @@ function relinkCopies(doc2, copies) {
|
|
|
254685
254685
|
var TEXT_PATH_SOURCE_TYPES, isPathSource;
|
|
254686
254686
|
var init_text_links = __esm({
|
|
254687
254687
|
"lib/document/text-links.ts"() {
|
|
254688
|
-
"use strict";
|
|
254689
254688
|
init_transform();
|
|
254690
254689
|
TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
|
|
254691
254690
|
isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
|
|
@@ -260365,6 +260364,7 @@ function repairFx(raw) {
|
|
|
260365
260364
|
var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH, LAYER_KINDS, ADJUSTMENT_TYPES, OPACITY_PROPERTY, CAPTION_PRESET_NAMES, inRange;
|
|
260366
260365
|
var init_invariants = __esm({
|
|
260367
260366
|
"lib/motion/invariants.ts"() {
|
|
260367
|
+
"use strict";
|
|
260368
260368
|
init_adjustments();
|
|
260369
260369
|
init_captions();
|
|
260370
260370
|
init_lut();
|
|
@@ -261352,7 +261352,6 @@ function fillPhotoFrame(doc2, groupId, imageUrl, size6, name2 = "Photo", credit)
|
|
|
261352
261352
|
var isPhotoFrame;
|
|
261353
261353
|
var init_photo_frames = __esm({
|
|
261354
261354
|
"lib/document/photo-frames.ts"() {
|
|
261355
|
-
"use strict";
|
|
261356
261355
|
init_dist_node();
|
|
261357
261356
|
init_scene_graph();
|
|
261358
261357
|
init_types();
|
|
@@ -266203,7 +266202,6 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
|
|
|
266203
266202
|
var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
|
|
266204
266203
|
var init_shader_presets = __esm({
|
|
266205
266204
|
"lib/engine/shader-presets.ts"() {
|
|
266206
|
-
"use strict";
|
|
266207
266205
|
init_shader_graph();
|
|
266208
266206
|
init_shader_graph_presets();
|
|
266209
266207
|
init_shader_presets_legacy();
|
|
@@ -270746,7 +270744,6 @@ function retuneShaderAudio(node2, fillId) {
|
|
|
270746
270744
|
}
|
|
270747
270745
|
var init_shader_audio = __esm({
|
|
270748
270746
|
"lib/motion/shader-audio.ts"() {
|
|
270749
|
-
"use strict";
|
|
270750
270747
|
init_shader_params();
|
|
270751
270748
|
init_modifier_edit();
|
|
270752
270749
|
init_keys();
|
|
@@ -272789,7 +272786,6 @@ function formatDate(date5, opts = { month: "short", day: "numeric", year: "numer
|
|
|
272789
272786
|
var cache5, nf;
|
|
272790
272787
|
var init_format = __esm({
|
|
272791
272788
|
"lib/i18n/format.ts"() {
|
|
272792
|
-
"use strict";
|
|
272793
272789
|
init_runtime();
|
|
272794
272790
|
cache5 = /* @__PURE__ */ new Map();
|
|
272795
272791
|
nf = (opts) => cached2("n", opts, (l) => new Intl.NumberFormat(l, opts));
|
|
@@ -272809,7 +272805,6 @@ function formatLimit(key5, max3) {
|
|
|
272809
272805
|
var formatBytes;
|
|
272810
272806
|
var init_limits2 = __esm({
|
|
272811
272807
|
"lib/billing/limits.ts"() {
|
|
272812
|
-
"use strict";
|
|
272813
272808
|
init_format();
|
|
272814
272809
|
init_plans();
|
|
272815
272810
|
formatBytes = formatFileSize;
|
|
@@ -317022,7 +317017,6 @@ function decodeSource(key5, label3) {
|
|
|
317022
317017
|
var DECODE_CACHE_BYTES, cache7, pending4, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
|
|
317023
317018
|
var init_audio_decode = __esm({
|
|
317024
317019
|
"lib/motion/audio-decode.ts"() {
|
|
317025
|
-
"use strict";
|
|
317026
317020
|
init_media_store();
|
|
317027
317021
|
init_audio_plan();
|
|
317028
317022
|
init_time_stretch();
|
|
@@ -323605,6 +323599,7 @@ function areaBounds(rings) {
|
|
|
323605
323599
|
}
|
|
323606
323600
|
var init_text_area = __esm({
|
|
323607
323601
|
"lib/engine/text/text-area.ts"() {
|
|
323602
|
+
"use strict";
|
|
323608
323603
|
}
|
|
323609
323604
|
});
|
|
323610
323605
|
|
|
@@ -327737,7 +327732,6 @@ async function selectionReferenceImages(doc2, selection, opts = {}) {
|
|
|
327737
327732
|
var FIT_QUALITIES, FIT_SCALES, blobToDataUrl;
|
|
327738
327733
|
var init_reference_images = __esm({
|
|
327739
327734
|
"lib/ai/reference-images.ts"() {
|
|
327740
|
-
"use strict";
|
|
327741
327735
|
init_export();
|
|
327742
327736
|
init_selection_bounds();
|
|
327743
327737
|
init_renderer_registry();
|
|
@@ -328091,7 +328085,6 @@ function videoPixelSize(resolution, aspect) {
|
|
|
328091
328085
|
var VIDEO_ASPECTS, VIDEO_RESOLUTIONS, SEEDANCE_ASPECTS, range, VIDEO_MODELS, DEFAULT_VIDEO_MODEL, videoModel, VIDEO_LIMITS;
|
|
328092
328086
|
var init_video_models = __esm({
|
|
328093
328087
|
"lib/ai/video-models.ts"() {
|
|
328094
|
-
"use strict";
|
|
328095
328088
|
VIDEO_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
|
|
328096
328089
|
VIDEO_RESOLUTIONS = ["480p", "720p", "1080p"];
|
|
328097
328090
|
SEEDANCE_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
|
|
@@ -338640,7 +338633,7 @@ var init_package = __esm({
|
|
|
338640
338633
|
"packages/runtime/package.json"() {
|
|
338641
338634
|
package_default = {
|
|
338642
338635
|
name: "@popcraft/runtime",
|
|
338643
|
-
version: "0.56.
|
|
338636
|
+
version: "0.56.4",
|
|
338644
338637
|
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.",
|
|
338645
338638
|
license: "MIT",
|
|
338646
338639
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -372823,7 +372816,6 @@ function publishSite(key5, files, opts = {}) {
|
|
|
372823
372816
|
var siteStatus, setSiteVersion, workspaceSites, deleteSite, renameSite;
|
|
372824
372817
|
var init_sites = __esm({
|
|
372825
372818
|
"lib/client/cloud/sites.ts"() {
|
|
372826
|
-
"use strict";
|
|
372827
372819
|
init_files();
|
|
372828
372820
|
init_upload2();
|
|
372829
372821
|
init_api4();
|
|
@@ -378980,6 +378972,7 @@ var init_doc2 = __esm({
|
|
|
378980
378972
|
var POSTER_KEY, MAX_PREVIEW_BYTES2, PREVIEW_STILL_TYPE, previewPath;
|
|
378981
378973
|
var init_motion3 = __esm({
|
|
378982
378974
|
"lib/marketplace/motion.ts"() {
|
|
378975
|
+
"use strict";
|
|
378983
378976
|
init_instances2();
|
|
378984
378977
|
POSTER_KEY = "poster";
|
|
378985
378978
|
MAX_PREVIEW_BYTES2 = 4 * 1024 * 1024;
|
|
@@ -412427,6 +412420,7 @@ function placeDesign(doc2, built, source3, size6, name2, at5) {
|
|
|
412427
412420
|
var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
|
|
412428
412421
|
var init_build3 = __esm({
|
|
412429
412422
|
"lib/agent/design-script/build.ts"() {
|
|
412423
|
+
"use strict";
|
|
412430
412424
|
init_hash();
|
|
412431
412425
|
init_scene_graph();
|
|
412432
412426
|
init_libraries();
|
|
@@ -412456,6 +412450,7 @@ function designFrameOf(doc2, id3) {
|
|
|
412456
412450
|
}
|
|
412457
412451
|
var init_locate = __esm({
|
|
412458
412452
|
"lib/agent/design-script/locate.ts"() {
|
|
412453
|
+
"use strict";
|
|
412459
412454
|
}
|
|
412460
412455
|
});
|
|
412461
412456
|
|
|
@@ -425257,7 +425252,7 @@ init_resources();
|
|
|
425257
425252
|
init_desktop();
|
|
425258
425253
|
init_hypery();
|
|
425259
425254
|
import { createInterface } from "node:readline";
|
|
425260
|
-
var VERSION2 = "0.56.
|
|
425255
|
+
var VERSION2 = "0.56.4";
|
|
425261
425256
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
425262
425257
|
|
|
425263
425258
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.56.
|
|
3
|
+
"version": "0.56.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.56.
|
|
37
|
+
"@popcraft/kit": "0.56.4"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|