@popcraft/cli 0.40.5 → 0.40.6
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 -27
- 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.40.
|
|
1199
|
+
const headers = { "user-agent": `popcraft-cli/${"0.40.6"}`, ...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 {
|
|
@@ -3880,7 +3880,6 @@ function paramLabel(name2) {
|
|
|
3880
3880
|
var AUDIO_SIGNAL_NAMES, XY, XYZ, RGB, RGBA, LAYOUT, TYPE_NAMES, roundUp, IDENT2, WHITE, numbers, MAX_SHADER_CHARS, reflections, isNum, EMPTY, packed, defaults;
|
|
3881
3881
|
var init_shader_params = __esm({
|
|
3882
3882
|
"lib/document/shader-params.ts"() {
|
|
3883
|
-
"use strict";
|
|
3884
3883
|
AUDIO_SIGNAL_NAMES = ["level", "bass", "mid", "treble", "beat", "onset", "spectrum"];
|
|
3885
3884
|
XY = ["x", "y"];
|
|
3886
3885
|
XYZ = ["x", "y", "z"];
|
|
@@ -96272,6 +96271,7 @@ async function sha256Prefix(bytes2) {
|
|
|
96272
96271
|
}
|
|
96273
96272
|
var init_media_hash = __esm({
|
|
96274
96273
|
"lib/storage/media-hash.ts"() {
|
|
96274
|
+
"use strict";
|
|
96275
96275
|
}
|
|
96276
96276
|
});
|
|
96277
96277
|
|
|
@@ -96654,6 +96654,7 @@ function releaseMediaMemory(hash3) {
|
|
|
96654
96654
|
var key2, peaksKey, objectUrls, sourceKey, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, isImageDataUrl, memory, pendingLoads, sourceAliases, PAINT_KEYS, URL_KEYS;
|
|
96655
96655
|
var init_media_store = __esm({
|
|
96656
96656
|
"lib/storage/media-store.ts"() {
|
|
96657
|
+
"use strict";
|
|
96657
96658
|
init_media_types();
|
|
96658
96659
|
init_idb();
|
|
96659
96660
|
init_media_hash();
|
|
@@ -97170,7 +97171,6 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
|
|
|
97170
97171
|
}
|
|
97171
97172
|
var init_selection_bounds = __esm({
|
|
97172
97173
|
"lib/editor/selection-bounds.ts"() {
|
|
97173
|
-
"use strict";
|
|
97174
97174
|
init_scene_graph();
|
|
97175
97175
|
init_transform();
|
|
97176
97176
|
}
|
|
@@ -97362,7 +97362,6 @@ function relinkCopies(doc2, copies) {
|
|
|
97362
97362
|
var TEXT_PATH_SOURCE_TYPES, isPathSource;
|
|
97363
97363
|
var init_text_links = __esm({
|
|
97364
97364
|
"lib/document/text-links.ts"() {
|
|
97365
|
-
"use strict";
|
|
97366
97365
|
init_transform();
|
|
97367
97366
|
TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
|
|
97368
97367
|
isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
|
|
@@ -246734,7 +246733,6 @@ function rescaleTextEffect(node2) {
|
|
|
246734
246733
|
var DEFAULTS, BLACK5, WHITE5, fillPaint, fillColor, shadow, round, OUTLINED;
|
|
246735
246734
|
var init_effect_presets = __esm({
|
|
246736
246735
|
"lib/text/effect-presets.ts"() {
|
|
246737
|
-
"use strict";
|
|
246738
246736
|
init_effects();
|
|
246739
246737
|
DEFAULTS = {
|
|
246740
246738
|
SHADOW: { distance: 17.68, angle: 45, blur: 12.5, thickness: 0, intensity: 45 },
|
|
@@ -247715,7 +247713,6 @@ function repairCompositions(comps, nodes) {
|
|
|
247715
247713
|
var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
|
|
247716
247714
|
var init_invariants = __esm({
|
|
247717
247715
|
"lib/motion/invariants.ts"() {
|
|
247718
|
-
"use strict";
|
|
247719
247716
|
init_easing();
|
|
247720
247717
|
init_properties();
|
|
247721
247718
|
init_markers();
|
|
@@ -247812,7 +247809,6 @@ function resyncText(doc2, ids2) {
|
|
|
247812
247809
|
var isVirtualId;
|
|
247813
247810
|
var init_invariants2 = __esm({
|
|
247814
247811
|
"lib/document/invariants.ts"() {
|
|
247815
|
-
"use strict";
|
|
247816
247812
|
init_auto_layout();
|
|
247817
247813
|
init_scene_graph();
|
|
247818
247814
|
init_text_bounds();
|
|
@@ -252248,7 +252244,6 @@ function resizeWindow(doc2, target2, rect) {
|
|
|
252248
252244
|
}
|
|
252249
252245
|
var init_crop = __esm({
|
|
252250
252246
|
"lib/editor/crop.ts"() {
|
|
252251
|
-
"use strict";
|
|
252252
252247
|
init_dist_node();
|
|
252253
252248
|
init_scene_graph();
|
|
252254
252249
|
init_photo_frames();
|
|
@@ -252712,7 +252707,6 @@ function getActiveRenderer() {
|
|
|
252712
252707
|
var active;
|
|
252713
252708
|
var init_renderer_registry = __esm({
|
|
252714
252709
|
"lib/engine/renderer-registry.ts"() {
|
|
252715
|
-
"use strict";
|
|
252716
252710
|
active = null;
|
|
252717
252711
|
}
|
|
252718
252712
|
});
|
|
@@ -255776,7 +255770,6 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
|
|
|
255776
255770
|
var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
|
|
255777
255771
|
var init_shader_presets = __esm({
|
|
255778
255772
|
"lib/engine/shader-presets.ts"() {
|
|
255779
|
-
"use strict";
|
|
255780
255773
|
init_shader_graph();
|
|
255781
255774
|
init_shader_graph_presets();
|
|
255782
255775
|
init_shader_presets_legacy();
|
|
@@ -256737,7 +256730,6 @@ function followPeers(peers) {
|
|
|
256737
256730
|
var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
|
|
256738
256731
|
var init_presence = __esm({
|
|
256739
256732
|
"lib/collab/presence.ts"() {
|
|
256740
|
-
"use strict";
|
|
256741
256733
|
init_esm();
|
|
256742
256734
|
init_editor_store();
|
|
256743
256735
|
init_status_announcements();
|
|
@@ -257650,7 +257642,6 @@ function onTabMessage(fn) {
|
|
|
257650
257642
|
var EDITOR_HOME, localDocPath, cloudFilePath, CHANNEL, channel;
|
|
257651
257643
|
var init_tab_mode = __esm({
|
|
257652
257644
|
"lib/desktop/tab-mode.ts"() {
|
|
257653
|
-
"use strict";
|
|
257654
257645
|
EDITOR_HOME = "/home";
|
|
257655
257646
|
localDocPath = (docId) => `${EDITOR_HOME}?doc=${encodeURIComponent(docId)}`;
|
|
257656
257647
|
cloudFilePath = (key5) => `/pop/${encodeURIComponent(key5)}`;
|
|
@@ -260269,7 +260260,6 @@ function retuneShaderAudio(node2, fillId) {
|
|
|
260269
260260
|
}
|
|
260270
260261
|
var init_shader_audio = __esm({
|
|
260271
260262
|
"lib/motion/shader-audio.ts"() {
|
|
260272
|
-
"use strict";
|
|
260273
260263
|
init_shader_params();
|
|
260274
260264
|
init_modifier_edit();
|
|
260275
260265
|
init_keys();
|
|
@@ -272828,7 +272818,6 @@ async function prepareTemplate(t3) {
|
|
|
272828
272818
|
var templateMediaSources;
|
|
272829
272819
|
var init_use = __esm({
|
|
272830
272820
|
"lib/templates/use.ts"() {
|
|
272831
|
-
"use strict";
|
|
272832
272821
|
init_capture();
|
|
272833
272822
|
templateMediaSources = (t3, hash3) => [
|
|
272834
272823
|
`/templates/media/${hash3}`,
|
|
@@ -309708,7 +309697,6 @@ function importSVGFile(file2, document2, parentId) {
|
|
|
309708
309697
|
var ENTITIES, decode3, I, mul2, apply2, scaleOf, NUM2, nums, near, NAMED, INHERITED, PRESENTATION, len2, CAP, JOIN, SKIPPED, refId;
|
|
309709
309698
|
var init_svg_import = __esm({
|
|
309710
309699
|
"lib/io/svg-import.ts"() {
|
|
309711
|
-
"use strict";
|
|
309712
309700
|
init_dist_node();
|
|
309713
309701
|
init_types();
|
|
309714
309702
|
ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', apos: "'", nbsp: "\xA0" };
|
|
@@ -310544,7 +310532,6 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
|
|
|
310544
310532
|
var online, goesLocal;
|
|
310545
310533
|
var init_new_file = __esm({
|
|
310546
310534
|
"lib/client/cloud/new-file.ts"() {
|
|
310547
|
-
"use strict";
|
|
310548
310535
|
init_scene_graph();
|
|
310549
310536
|
init_print_pages();
|
|
310550
310537
|
init_page_presets();
|
|
@@ -311085,6 +311072,7 @@ function startCloudSync() {
|
|
|
311085
311072
|
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;
|
|
311086
311073
|
var init_sync2 = __esm({
|
|
311087
311074
|
"lib/client/cloud/sync.ts"() {
|
|
311075
|
+
"use strict";
|
|
311088
311076
|
init_paint_repair();
|
|
311089
311077
|
init_migrate();
|
|
311090
311078
|
init_view();
|
|
@@ -312350,7 +312338,6 @@ function applyTextPath(layout2, path, tp, rebase = true) {
|
|
|
312350
312338
|
var defaultCircleRadius, ownsPath, mapPoint;
|
|
312351
312339
|
var init_text_path = __esm({
|
|
312352
312340
|
"lib/engine/text/text-path.ts"() {
|
|
312353
|
-
"use strict";
|
|
312354
312341
|
init_scene_graph();
|
|
312355
312342
|
init_transform();
|
|
312356
312343
|
init_shape_to_path();
|
|
@@ -312468,7 +312455,6 @@ function areaBounds(rings) {
|
|
|
312468
312455
|
}
|
|
312469
312456
|
var init_text_area = __esm({
|
|
312470
312457
|
"lib/engine/text/text-area.ts"() {
|
|
312471
|
-
"use strict";
|
|
312472
312458
|
}
|
|
312473
312459
|
});
|
|
312474
312460
|
|
|
@@ -316813,7 +316799,6 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
|
|
|
316813
316799
|
var MIME, DEFAULT_EXPORT, exportSettingsOf;
|
|
316814
316800
|
var init_export = __esm({
|
|
316815
316801
|
"lib/io/export.ts"() {
|
|
316816
|
-
"use strict";
|
|
316817
316802
|
init_download();
|
|
316818
316803
|
init_scene_graph();
|
|
316819
316804
|
init_codecs();
|
|
@@ -317258,6 +317243,7 @@ function videoPixelSize(resolution, aspect) {
|
|
|
317258
317243
|
var VIDEO_ASPECTS, VIDEO_RESOLUTIONS, SEEDANCE_ASPECTS, range, VIDEO_MODELS, DEFAULT_VIDEO_MODEL, videoModel, VIDEO_LIMITS;
|
|
317259
317244
|
var init_video_models = __esm({
|
|
317260
317245
|
"lib/ai/video-models.ts"() {
|
|
317246
|
+
"use strict";
|
|
317261
317247
|
VIDEO_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
|
|
317262
317248
|
VIDEO_RESOLUTIONS = ["480p", "720p", "1080p"];
|
|
317263
317249
|
SEEDANCE_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
|
|
@@ -317746,6 +317732,7 @@ function agentToolList() {
|
|
|
317746
317732
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
317747
317733
|
var init_agent = __esm({
|
|
317748
317734
|
"lib/commands/agent.ts"() {
|
|
317735
|
+
"use strict";
|
|
317749
317736
|
init_types5();
|
|
317750
317737
|
init_registry();
|
|
317751
317738
|
init_errors();
|
|
@@ -327609,7 +327596,7 @@ var init_package = __esm({
|
|
|
327609
327596
|
"packages/runtime/package.json"() {
|
|
327610
327597
|
package_default = {
|
|
327611
327598
|
name: "@popcraft/runtime",
|
|
327612
|
-
version: "0.40.
|
|
327599
|
+
version: "0.40.6",
|
|
327613
327600
|
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.",
|
|
327614
327601
|
license: "MIT",
|
|
327615
327602
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -365525,7 +365512,6 @@ var init_doc2 = __esm({
|
|
|
365525
365512
|
var POSTER_KEY, MAX_PREVIEW_BYTES2, PREVIEW_STILL_TYPE, previewPath;
|
|
365526
365513
|
var init_motion3 = __esm({
|
|
365527
365514
|
"lib/marketplace/motion.ts"() {
|
|
365528
|
-
"use strict";
|
|
365529
365515
|
init_instances2();
|
|
365530
365516
|
POSTER_KEY = "poster";
|
|
365531
365517
|
MAX_PREVIEW_BYTES2 = 4 * 1024 * 1024;
|
|
@@ -365641,7 +365627,6 @@ async function renderLibraryPreviews(renderer, doc2, listing, format = pickPrevi
|
|
|
365641
365627
|
var PREVIEW_FORMATS, PREVIEW_FPS, PREVIEW_MAX_MS2, PREVIEW_HOLD_MS, PREVIEW_BOX, POSTER_CELL, PREVIEW_MAX_SCALE, POSTER_COLS, POSTER_MAX, previewScale, componentSchedule;
|
|
365642
365628
|
var init_library_previews = __esm({
|
|
365643
365629
|
"lib/motion/library-previews.ts"() {
|
|
365644
|
-
"use strict";
|
|
365645
365630
|
init_codecs();
|
|
365646
365631
|
init_gpu_pixels();
|
|
365647
365632
|
init_render_frames();
|
|
@@ -398405,7 +398390,6 @@ function record(source, namespaces, globals, limits) {
|
|
|
398405
398390
|
var HELPER_NAMES;
|
|
398406
398391
|
var init_helper_names = __esm({
|
|
398407
398392
|
"lib/agent/design-script/helper-names.ts"() {
|
|
398408
|
-
"use strict";
|
|
398409
398393
|
HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
|
|
398410
398394
|
}
|
|
398411
398395
|
});
|
|
@@ -398645,7 +398629,6 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
|
|
|
398645
398629
|
var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
|
|
398646
398630
|
var init_build3 = __esm({
|
|
398647
398631
|
"lib/agent/design-script/build.ts"() {
|
|
398648
|
-
"use strict";
|
|
398649
398632
|
init_hash();
|
|
398650
398633
|
init_scene_graph();
|
|
398651
398634
|
init_libraries();
|
|
@@ -398675,7 +398658,6 @@ function designFrameOf(doc2, id3) {
|
|
|
398675
398658
|
}
|
|
398676
398659
|
var init_locate = __esm({
|
|
398677
398660
|
"lib/agent/design-script/locate.ts"() {
|
|
398678
|
-
"use strict";
|
|
398679
398661
|
}
|
|
398680
398662
|
});
|
|
398681
398663
|
|
|
@@ -398788,7 +398770,6 @@ function designRecorder() {
|
|
|
398788
398770
|
var installed;
|
|
398789
398771
|
var init_recorders = __esm({
|
|
398790
398772
|
"lib/agent/design-script/recorders.ts"() {
|
|
398791
|
-
"use strict";
|
|
398792
398773
|
installed = null;
|
|
398793
398774
|
}
|
|
398794
398775
|
});
|
|
@@ -411196,7 +411177,7 @@ init_resources();
|
|
|
411196
411177
|
init_desktop();
|
|
411197
411178
|
init_hypery();
|
|
411198
411179
|
import { createInterface } from "node:readline";
|
|
411199
|
-
var VERSION2 = "0.40.
|
|
411180
|
+
var VERSION2 = "0.40.6";
|
|
411200
411181
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
411201
411182
|
|
|
411202
411183
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.6",
|
|
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.40.
|
|
37
|
+
"@popcraft/kit": "0.40.6"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|