@popcraft/cli 0.53.0 → 0.53.1
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 +11 -19
- 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.53.
|
|
1199
|
+
const headers = { "user-agent": `popcraft-cli/${"0.53.1"}`, ...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 {
|
|
@@ -94509,6 +94509,7 @@ function hasMessage(key5) {
|
|
|
94509
94509
|
var current2, loading, listeners, formats, asts;
|
|
94510
94510
|
var init_runtime = __esm({
|
|
94511
94511
|
"lib/i18n/runtime.ts"() {
|
|
94512
|
+
"use strict";
|
|
94512
94513
|
init_intl_messageformat();
|
|
94513
94514
|
init_icu_messageformat_parser();
|
|
94514
94515
|
init_catalogs();
|
|
@@ -96211,6 +96212,7 @@ function repairDocumentPaints(doc2) {
|
|
|
96211
96212
|
var broken;
|
|
96212
96213
|
var init_paint_repair = __esm({
|
|
96213
96214
|
"lib/document/paint-repair.ts"() {
|
|
96215
|
+
"use strict";
|
|
96214
96216
|
init_shader_graph();
|
|
96215
96217
|
broken = (p2) => {
|
|
96216
96218
|
if (!p2 || typeof p2 !== "object") return false;
|
|
@@ -96868,7 +96870,6 @@ function releaseMediaMemory(hash3) {
|
|
|
96868
96870
|
var key2, peaksKey, objectUrls, sourceKey, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, isImageDataUrl, memory, pendingLoads, sourceAliases, PAINT_KEYS, URL_KEYS;
|
|
96869
96871
|
var init_media_store = __esm({
|
|
96870
96872
|
"lib/storage/media-store.ts"() {
|
|
96871
|
-
"use strict";
|
|
96872
96873
|
init_media_types();
|
|
96873
96874
|
init_idb();
|
|
96874
96875
|
init_media_hash();
|
|
@@ -97385,7 +97386,6 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
|
|
|
97385
97386
|
}
|
|
97386
97387
|
var init_selection_bounds = __esm({
|
|
97387
97388
|
"lib/editor/selection-bounds.ts"() {
|
|
97388
|
-
"use strict";
|
|
97389
97389
|
init_scene_graph();
|
|
97390
97390
|
init_transform();
|
|
97391
97391
|
}
|
|
@@ -97577,7 +97577,6 @@ function relinkCopies(doc2, copies) {
|
|
|
97577
97577
|
var TEXT_PATH_SOURCE_TYPES, isPathSource;
|
|
97578
97578
|
var init_text_links = __esm({
|
|
97579
97579
|
"lib/document/text-links.ts"() {
|
|
97580
|
-
"use strict";
|
|
97581
97580
|
init_transform();
|
|
97582
97581
|
TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
|
|
97583
97582
|
isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
|
|
@@ -248026,7 +248025,6 @@ function repairCompositions(comps, nodes) {
|
|
|
248026
248025
|
var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
|
|
248027
248026
|
var init_invariants = __esm({
|
|
248028
248027
|
"lib/motion/invariants.ts"() {
|
|
248029
|
-
"use strict";
|
|
248030
248028
|
init_easing();
|
|
248031
248029
|
init_properties();
|
|
248032
248030
|
init_markers();
|
|
@@ -249149,7 +249147,6 @@ function beforeWrite() {
|
|
|
249149
249147
|
var leave;
|
|
249150
249148
|
var init_read_only = __esm({
|
|
249151
249149
|
"lib/editor/modes/read-only.ts"() {
|
|
249152
|
-
"use strict";
|
|
249153
249150
|
leave = null;
|
|
249154
249151
|
}
|
|
249155
249152
|
});
|
|
@@ -252591,7 +252588,6 @@ function resizeWindow(doc2, target2, rect) {
|
|
|
252591
252588
|
}
|
|
252592
252589
|
var init_crop = __esm({
|
|
252593
252590
|
"lib/editor/crop.ts"() {
|
|
252594
|
-
"use strict";
|
|
252595
252591
|
init_dist_node();
|
|
252596
252592
|
init_scene_graph();
|
|
252597
252593
|
init_photo_frames();
|
|
@@ -256124,7 +256120,6 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
|
|
|
256124
256120
|
var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
|
|
256125
256121
|
var init_shader_presets = __esm({
|
|
256126
256122
|
"lib/engine/shader-presets.ts"() {
|
|
256127
|
-
"use strict";
|
|
256128
256123
|
init_shader_graph();
|
|
256129
256124
|
init_shader_graph_presets();
|
|
256130
256125
|
init_shader_presets_legacy();
|
|
@@ -257088,7 +257083,6 @@ function followPeers(peers) {
|
|
|
257088
257083
|
var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
|
|
257089
257084
|
var init_presence = __esm({
|
|
257090
257085
|
"lib/collab/presence.ts"() {
|
|
257091
|
-
"use strict";
|
|
257092
257086
|
init_esm();
|
|
257093
257087
|
init_editor_store();
|
|
257094
257088
|
init_status_announcements();
|
|
@@ -260624,7 +260618,6 @@ function retuneShaderAudio(node2, fillId) {
|
|
|
260624
260618
|
}
|
|
260625
260619
|
var init_shader_audio = __esm({
|
|
260626
260620
|
"lib/motion/shader-audio.ts"() {
|
|
260627
|
-
"use strict";
|
|
260628
260621
|
init_shader_params();
|
|
260629
260622
|
init_modifier_edit();
|
|
260630
260623
|
init_keys();
|
|
@@ -306875,7 +306868,6 @@ function decodeSource(key5, label3) {
|
|
|
306875
306868
|
var DECODE_CACHE_BYTES, cache7, pending4, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
|
|
306876
306869
|
var init_audio_decode = __esm({
|
|
306877
306870
|
"lib/motion/audio-decode.ts"() {
|
|
306878
|
-
"use strict";
|
|
306879
306871
|
init_media_store();
|
|
306880
306872
|
init_audio_plan();
|
|
306881
306873
|
init_time_stretch();
|
|
@@ -310262,7 +310254,6 @@ function importSVGFile(file2, document2, parentId) {
|
|
|
310262
310254
|
var ENTITIES, decode3, I, mul2, apply2, scaleOf, NUM2, nums, near, NAMED, INHERITED, PRESENTATION, len2, CAP, JOIN, SKIPPED, refId;
|
|
310263
310255
|
var init_svg_import = __esm({
|
|
310264
310256
|
"lib/io/svg-import.ts"() {
|
|
310265
|
-
"use strict";
|
|
310266
310257
|
init_dist_node();
|
|
310267
310258
|
init_types();
|
|
310268
310259
|
ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', apos: "'", nbsp: "\xA0" };
|
|
@@ -311656,6 +311647,7 @@ function startCloudSync() {
|
|
|
311656
311647
|
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;
|
|
311657
311648
|
var init_sync2 = __esm({
|
|
311658
311649
|
"lib/client/cloud/sync.ts"() {
|
|
311650
|
+
"use strict";
|
|
311659
311651
|
init_paint_repair();
|
|
311660
311652
|
init_migrate();
|
|
311661
311653
|
init_view();
|
|
@@ -311865,6 +311857,7 @@ async function dispatchShaped(key5, options) {
|
|
|
311865
311857
|
var onViolation;
|
|
311866
311858
|
var init_dispatch = __esm({
|
|
311867
311859
|
"lib/commands/dispatch.ts"() {
|
|
311860
|
+
"use strict";
|
|
311868
311861
|
init_errors();
|
|
311869
311862
|
init_registry();
|
|
311870
311863
|
init_confirm();
|
|
@@ -313044,7 +313037,6 @@ function areaBounds(rings) {
|
|
|
313044
313037
|
}
|
|
313045
313038
|
var init_text_area = __esm({
|
|
313046
313039
|
"lib/engine/text/text-area.ts"() {
|
|
313047
|
-
"use strict";
|
|
313048
313040
|
}
|
|
313049
313041
|
});
|
|
313050
313042
|
|
|
@@ -317481,6 +317473,7 @@ async function selectionReferenceImages(doc2, selection, opts = {}) {
|
|
|
317481
317473
|
var FIT_QUALITIES, FIT_SCALES, blobToDataUrl;
|
|
317482
317474
|
var init_reference_images = __esm({
|
|
317483
317475
|
"lib/ai/reference-images.ts"() {
|
|
317476
|
+
"use strict";
|
|
317484
317477
|
init_export();
|
|
317485
317478
|
init_selection_bounds();
|
|
317486
317479
|
init_renderer_registry();
|
|
@@ -318323,6 +318316,7 @@ function agentToolList() {
|
|
|
318323
318316
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
318324
318317
|
var init_agent = __esm({
|
|
318325
318318
|
"lib/commands/agent.ts"() {
|
|
318319
|
+
"use strict";
|
|
318326
318320
|
init_types5();
|
|
318327
318321
|
init_registry();
|
|
318328
318322
|
init_errors();
|
|
@@ -328477,7 +328471,7 @@ var init_package = __esm({
|
|
|
328477
328471
|
"packages/runtime/package.json"() {
|
|
328478
328472
|
package_default = {
|
|
328479
328473
|
name: "@popcraft/runtime",
|
|
328480
|
-
version: "0.53.
|
|
328474
|
+
version: "0.53.1",
|
|
328481
328475
|
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.",
|
|
328482
328476
|
license: "MIT",
|
|
328483
328477
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -353143,7 +353137,6 @@ function exportsOf(source3) {
|
|
|
353143
353137
|
var CODE_LIMITS, packageOf;
|
|
353144
353138
|
var init_source2 = __esm({
|
|
353145
353139
|
"lib/code/source.ts"() {
|
|
353146
|
-
"use strict";
|
|
353147
353140
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
353148
353141
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
353149
353142
|
}
|
|
@@ -353186,7 +353179,6 @@ function compileModule(module2) {
|
|
|
353186
353179
|
var import_sucrase, BUILT_IN, memo4;
|
|
353187
353180
|
var init_compile2 = __esm({
|
|
353188
353181
|
"lib/code/compile.ts"() {
|
|
353189
|
-
"use strict";
|
|
353190
353182
|
import_sucrase = __toESM(require_dist2());
|
|
353191
353183
|
init_source2();
|
|
353192
353184
|
init_source2();
|
|
@@ -362229,6 +362221,7 @@ var init_delete_current_file = __esm({
|
|
|
362229
362221
|
var storeOpsSeam;
|
|
362230
362222
|
var init_seams = __esm({
|
|
362231
362223
|
"lib/commands/seams.ts"() {
|
|
362224
|
+
"use strict";
|
|
362232
362225
|
storeOpsSeam = (st) => ({
|
|
362233
362226
|
booleanOperation: (op4) => st().booleanOperation(op4),
|
|
362234
362227
|
flatten: () => st().flattenSelection(),
|
|
@@ -401284,7 +401277,6 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
|
|
|
401284
401277
|
var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
|
|
401285
401278
|
var init_build3 = __esm({
|
|
401286
401279
|
"lib/agent/design-script/build.ts"() {
|
|
401287
|
-
"use strict";
|
|
401288
401280
|
init_hash();
|
|
401289
401281
|
init_scene_graph();
|
|
401290
401282
|
init_libraries();
|
|
@@ -401314,7 +401306,6 @@ function designFrameOf(doc2, id3) {
|
|
|
401314
401306
|
}
|
|
401315
401307
|
var init_locate = __esm({
|
|
401316
401308
|
"lib/agent/design-script/locate.ts"() {
|
|
401317
|
-
"use strict";
|
|
401318
401309
|
}
|
|
401319
401310
|
});
|
|
401320
401311
|
|
|
@@ -406496,6 +406487,7 @@ function registerBuiltinCommands() {
|
|
|
406496
406487
|
var builtinCommands, uiOnlyCommands;
|
|
406497
406488
|
var init_builtin4 = __esm({
|
|
406498
406489
|
"lib/commands/builtin.ts"() {
|
|
406490
|
+
"use strict";
|
|
406499
406491
|
init_registry();
|
|
406500
406492
|
init_node();
|
|
406501
406493
|
init_node();
|
|
@@ -414100,7 +414092,7 @@ init_resources();
|
|
|
414100
414092
|
init_desktop();
|
|
414101
414093
|
init_hypery();
|
|
414102
414094
|
import { createInterface } from "node:readline";
|
|
414103
|
-
var VERSION2 = "0.53.
|
|
414095
|
+
var VERSION2 = "0.53.1";
|
|
414104
414096
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
414105
414097
|
|
|
414106
414098
|
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.1",
|
|
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.1"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|