@popcraft/cli 0.57.1 → 0.57.2
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 +6 -30
- 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.57.
|
|
1201
|
+
const headers = { "user-agent": `popcraft-cli/${"0.57.2"}`, ...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 {
|
|
@@ -29244,7 +29244,6 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
|
|
|
29244
29244
|
}
|
|
29245
29245
|
var init_selection_bounds = __esm({
|
|
29246
29246
|
"lib/editor/selection-bounds.ts"() {
|
|
29247
|
-
"use strict";
|
|
29248
29247
|
init_scene_graph();
|
|
29249
29248
|
init_transform();
|
|
29250
29249
|
}
|
|
@@ -29360,7 +29359,6 @@ function scaleSubtreePatches(nodes, id3, sx, sy, includeSelf = true) {
|
|
|
29360
29359
|
var scalePoint;
|
|
29361
29360
|
var init_scale_geometry = __esm({
|
|
29362
29361
|
"lib/document/scale-geometry.ts"() {
|
|
29363
|
-
"use strict";
|
|
29364
29362
|
scalePoint = (p2, sx, sy) => ({
|
|
29365
29363
|
...p2,
|
|
29366
29364
|
x: p2.x * sx,
|
|
@@ -172574,6 +172572,7 @@ async function sha256Prefix(bytes2) {
|
|
|
172574
172572
|
}
|
|
172575
172573
|
var init_media_hash = __esm({
|
|
172576
172574
|
"lib/storage/media-hash.ts"() {
|
|
172575
|
+
"use strict";
|
|
172577
172576
|
}
|
|
172578
172577
|
});
|
|
172579
172578
|
|
|
@@ -176242,7 +176241,6 @@ var init_frame_labels = __esm({
|
|
|
176242
176241
|
var MODE_PROFILES, isTimelineMode, FOCUS_PROFILES, MODE_LIST, FOCUS_BY_PRECEDENCE;
|
|
176243
176242
|
var init_registry2 = __esm({
|
|
176244
176243
|
"lib/editor/modes/registry.ts"() {
|
|
176245
|
-
"use strict";
|
|
176246
176244
|
MODE_PROFILES = {
|
|
176247
176245
|
DESIGN: {
|
|
176248
176246
|
id: "DESIGN",
|
|
@@ -252579,7 +252577,6 @@ function hasMessage(key5) {
|
|
|
252579
252577
|
var current3, loading2, listeners2, formats, asts;
|
|
252580
252578
|
var init_runtime = __esm({
|
|
252581
252579
|
"lib/i18n/runtime.ts"() {
|
|
252582
|
-
"use strict";
|
|
252583
252580
|
init_intl_messageformat();
|
|
252584
252581
|
init_icu_messageformat_parser();
|
|
252585
252582
|
init_catalogs();
|
|
@@ -254979,7 +254976,6 @@ function relinkCopies(doc2, copies) {
|
|
|
254979
254976
|
var TEXT_PATH_SOURCE_TYPES, isPathSource;
|
|
254980
254977
|
var init_text_links = __esm({
|
|
254981
254978
|
"lib/document/text-links.ts"() {
|
|
254982
|
-
"use strict";
|
|
254983
254979
|
init_transform();
|
|
254984
254980
|
TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
|
|
254985
254981
|
isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
|
|
@@ -263720,7 +263716,6 @@ function getActiveRenderer() {
|
|
|
263720
263716
|
var active;
|
|
263721
263717
|
var init_renderer_registry = __esm({
|
|
263722
263718
|
"lib/engine/renderer-registry.ts"() {
|
|
263723
|
-
"use strict";
|
|
263724
263719
|
active = null;
|
|
263725
263720
|
}
|
|
263726
263721
|
});
|
|
@@ -268303,7 +268298,6 @@ async function docExists(id3) {
|
|
|
268303
268298
|
var INDEX_KEY, docKey, thumbKey, THUMB_MAX_BYTES, THUMB_TYPES, LEGACY_DATA_URL, migrating, SPLIT_LAYOUT, nodeKey, WRITER, persisted, saving, deletedHere, keyval, keyvalStore;
|
|
268304
268299
|
var init_document_library = __esm({
|
|
268305
268300
|
"lib/storage/document-library.ts"() {
|
|
268306
|
-
"use strict";
|
|
268307
268301
|
init_idb();
|
|
268308
268302
|
init_media_types();
|
|
268309
268303
|
init_collapse_duplicates();
|
|
@@ -268375,7 +268369,6 @@ function onTabMessage(fn) {
|
|
|
268375
268369
|
var EDITOR_HOME, localDocPath, cloudFilePath, CHANNEL2, channel2;
|
|
268376
268370
|
var init_tab_mode = __esm({
|
|
268377
268371
|
"lib/desktop/tab-mode.ts"() {
|
|
268378
|
-
"use strict";
|
|
268379
268372
|
EDITOR_HOME = "/home";
|
|
268380
268373
|
localDocPath = (docId) => `${EDITOR_HOME}?doc=${encodeURIComponent(docId)}`;
|
|
268381
268374
|
cloudFilePath = (key5) => `/pop/${encodeURIComponent(key5)}`;
|
|
@@ -269977,7 +269970,6 @@ function staggerDocument(doc2, ids2, opts) {
|
|
|
269977
269970
|
var PRESET_IDS, num6, restOpacity, overshoots, fadeCurve, span, enter2, leave2, fadeIn, fadeOut, along, scaleSpan, wave, BLUR_ID, SMEAR_ID, SHAKE_STEPS, SHAKE, clips, clipping, WIPE_MIN, wipeGroupId, wipeMaskId, any2, CONTAINERS2, isContainer, autoRise, CAM, zoomOf, camTravel, camArrive, dollyAxis, cameraOrGroup, isPlainText, TEXT_NEEDS, unitRise, cascade, cascadeKeys, cascadeAmount, slideDistance, LIBRARY, BY_ID2, MOTION_PRESETS, presetById2, lengthenedTo;
|
|
269978
269971
|
var init_presets = __esm({
|
|
269979
269972
|
"lib/motion/presets.ts"() {
|
|
269980
|
-
"use strict";
|
|
269981
269973
|
init_author();
|
|
269982
269974
|
init_keys();
|
|
269983
269975
|
init_markers();
|
|
@@ -271139,7 +271131,6 @@ function retuneShaderAudio(node2, fillId) {
|
|
|
271139
271131
|
}
|
|
271140
271132
|
var init_shader_audio = __esm({
|
|
271141
271133
|
"lib/motion/shader-audio.ts"() {
|
|
271142
|
-
"use strict";
|
|
271143
271134
|
init_shader_params();
|
|
271144
271135
|
init_modifier_edit();
|
|
271145
271136
|
init_keys();
|
|
@@ -271932,7 +271923,6 @@ function breakpointView(state, doc2 = state.document) {
|
|
|
271932
271923
|
var storedDocument;
|
|
271933
271924
|
var init_view = __esm({
|
|
271934
271925
|
"lib/motion/view.ts"() {
|
|
271935
|
-
"use strict";
|
|
271936
271926
|
init_registry2();
|
|
271937
271927
|
init_motion_slice();
|
|
271938
271928
|
init_transport_clock();
|
|
@@ -273316,8 +273306,7 @@ function isAppPage(href, origin) {
|
|
|
273316
273306
|
function chromeIntent(href) {
|
|
273317
273307
|
const url4 = new URL(href);
|
|
273318
273308
|
if (url4.protocol !== "https:" && url4.protocol !== "http:") return null;
|
|
273319
|
-
|
|
273320
|
-
return `intent://${url4.host}${url4.pathname}${url4.search}#Intent;scheme=${scheme};package=com.android.chrome;S.browser_fallback_url=${encodeURIComponent(url4.href)};end`;
|
|
273309
|
+
return `intent://open?url=${encodeURIComponent(url4.href)}#Intent;scheme=popcraft;package=app.popcraft;S.browser_fallback_url=${encodeURIComponent(url4.href)};end`;
|
|
273321
273310
|
}
|
|
273322
273311
|
function openOutside(href) {
|
|
273323
273312
|
const url4 = new URL(href, window.location.href);
|
|
@@ -283947,7 +283936,6 @@ async function prepareTemplate(t3) {
|
|
|
283947
283936
|
var templateMediaSources, MEDIA_FETCH_TIMEOUT_MS2, PREPARE_BUDGET_MS, MEDIA_CONCURRENCY, timeoutOf;
|
|
283948
283937
|
var init_use = __esm({
|
|
283949
283938
|
"lib/templates/use.ts"() {
|
|
283950
|
-
"use strict";
|
|
283951
283939
|
init_capture();
|
|
283952
283940
|
templateMediaSources = (t3, hash3) => [
|
|
283953
283941
|
`/templates/media/${hash3}`,
|
|
@@ -322643,6 +322631,7 @@ function startCloudSync() {
|
|
|
322643
322631
|
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, SEEN_KEY, started2;
|
|
322644
322632
|
var init_sync2 = __esm({
|
|
322645
322633
|
"lib/client/cloud/sync.ts"() {
|
|
322634
|
+
"use strict";
|
|
322646
322635
|
init_kinds();
|
|
322647
322636
|
init_paint_repair();
|
|
322648
322637
|
init_migrate();
|
|
@@ -322854,7 +322843,6 @@ async function dispatchShaped(key5, options) {
|
|
|
322854
322843
|
var onViolation;
|
|
322855
322844
|
var init_dispatch = __esm({
|
|
322856
322845
|
"lib/commands/dispatch.ts"() {
|
|
322857
|
-
"use strict";
|
|
322858
322846
|
init_errors();
|
|
322859
322847
|
init_registry();
|
|
322860
322848
|
init_confirm();
|
|
@@ -323254,7 +323242,6 @@ function creditLine(c2) {
|
|
|
323254
323242
|
var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
|
|
323255
323243
|
var init_stock = __esm({
|
|
323256
323244
|
"lib/photos/stock.ts"() {
|
|
323257
|
-
"use strict";
|
|
323258
323245
|
MAX_PHOTO_PAGE = 12;
|
|
323259
323246
|
MAX_PHOTO_QUERY = 200;
|
|
323260
323247
|
UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -323916,7 +323903,6 @@ function applyTextPath(layout2, path, tp, rebase = true) {
|
|
|
323916
323903
|
var defaultCircleRadius, ownsPath, mapPoint;
|
|
323917
323904
|
var init_text_path = __esm({
|
|
323918
323905
|
"lib/engine/text/text-path.ts"() {
|
|
323919
|
-
"use strict";
|
|
323920
323906
|
init_scene_graph();
|
|
323921
323907
|
init_transform();
|
|
323922
323908
|
init_shape_to_path();
|
|
@@ -324034,7 +324020,6 @@ function areaBounds(rings) {
|
|
|
324034
324020
|
}
|
|
324035
324021
|
var init_text_area = __esm({
|
|
324036
324022
|
"lib/engine/text/text-area.ts"() {
|
|
324037
|
-
"use strict";
|
|
324038
324023
|
}
|
|
324039
324024
|
});
|
|
324040
324025
|
|
|
@@ -328075,7 +328060,6 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
|
|
|
328075
328060
|
var MIME, DEFAULT_EXPORT, exportSettingsOf;
|
|
328076
328061
|
var init_export = __esm({
|
|
328077
328062
|
"lib/io/export.ts"() {
|
|
328078
|
-
"use strict";
|
|
328079
328063
|
init_download();
|
|
328080
328064
|
init_scene_graph();
|
|
328081
328065
|
init_codecs();
|
|
@@ -339069,7 +339053,7 @@ var init_package = __esm({
|
|
|
339069
339053
|
"packages/runtime/package.json"() {
|
|
339070
339054
|
package_default = {
|
|
339071
339055
|
name: "@popcraft/runtime",
|
|
339072
|
-
version: "0.57.
|
|
339056
|
+
version: "0.57.2",
|
|
339073
339057
|
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.",
|
|
339074
339058
|
license: "MIT",
|
|
339075
339059
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -363777,7 +363761,6 @@ function compileModule(module2) {
|
|
|
363777
363761
|
var import_sucrase, BUILT_IN, memo7;
|
|
363778
363762
|
var init_compile2 = __esm({
|
|
363779
363763
|
"lib/code/compile.ts"() {
|
|
363780
|
-
"use strict";
|
|
363781
363764
|
import_sucrase = __toESM(require_dist2());
|
|
363782
363765
|
init_source2();
|
|
363783
363766
|
init_source2();
|
|
@@ -370953,7 +370936,6 @@ function diagnosticsText(diagnostics) {
|
|
|
370953
370936
|
var HARNESS_NAMES, plainDiagnostics;
|
|
370954
370937
|
var init_shader_diagnostics = __esm({
|
|
370955
370938
|
"lib/engine/shader-diagnostics.ts"() {
|
|
370956
|
-
"use strict";
|
|
370957
370939
|
HARNESS_NAMES = ["ShaderUniforms", "VOut", "vs_main", "fs_main", "u", "p"];
|
|
370958
370940
|
plainDiagnostics = (errors2) => errors2.map((message) => ({ line: null, column: null, message, severity: "error" }));
|
|
370959
370941
|
}
|
|
@@ -373941,7 +373923,6 @@ var init_source_monitor = __esm({
|
|
|
373941
373923
|
var storeOpsSeam;
|
|
373942
373924
|
var init_seams = __esm({
|
|
373943
373925
|
"lib/commands/seams.ts"() {
|
|
373944
|
-
"use strict";
|
|
373945
373926
|
storeOpsSeam = (st3) => ({
|
|
373946
373927
|
booleanOperation: (op4) => st3().booleanOperation(op4),
|
|
373947
373928
|
flatten: () => st3().flattenSelection(),
|
|
@@ -379469,7 +379450,6 @@ var init_doc2 = __esm({
|
|
|
379469
379450
|
var POSTER_KEY, MAX_PREVIEW_BYTES2, PREVIEW_STILL_TYPE, previewPath;
|
|
379470
379451
|
var init_motion3 = __esm({
|
|
379471
379452
|
"lib/marketplace/motion.ts"() {
|
|
379472
|
-
"use strict";
|
|
379473
379453
|
init_instances2();
|
|
379474
379454
|
POSTER_KEY = "poster";
|
|
379475
379455
|
MAX_PREVIEW_BYTES2 = 4 * 1024 * 1024;
|
|
@@ -379585,7 +379565,6 @@ async function renderLibraryPreviews(renderer, doc2, listing, format = pickPrevi
|
|
|
379585
379565
|
var PREVIEW_FORMATS, PREVIEW_FPS, PREVIEW_MAX_MS2, PREVIEW_HOLD_MS, PREVIEW_BOX, POSTER_CELL, PREVIEW_MAX_SCALE, POSTER_COLS, POSTER_MAX, previewScale, componentSchedule;
|
|
379586
379566
|
var init_library_previews = __esm({
|
|
379587
379567
|
"lib/motion/library-previews.ts"() {
|
|
379588
|
-
"use strict";
|
|
379589
379568
|
init_codecs();
|
|
379590
379569
|
init_gpu_pixels();
|
|
379591
379570
|
init_render_frames();
|
|
@@ -412917,7 +412896,6 @@ function placeDesign(doc2, built, source3, size6, name2, at5) {
|
|
|
412917
412896
|
var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
|
|
412918
412897
|
var init_build3 = __esm({
|
|
412919
412898
|
"lib/agent/design-script/build.ts"() {
|
|
412920
|
-
"use strict";
|
|
412921
412899
|
init_hash();
|
|
412922
412900
|
init_scene_graph();
|
|
412923
412901
|
init_libraries();
|
|
@@ -412947,7 +412925,6 @@ function designFrameOf(doc2, id3) {
|
|
|
412947
412925
|
}
|
|
412948
412926
|
var init_locate = __esm({
|
|
412949
412927
|
"lib/agent/design-script/locate.ts"() {
|
|
412950
|
-
"use strict";
|
|
412951
412928
|
}
|
|
412952
412929
|
});
|
|
412953
412930
|
|
|
@@ -418144,7 +418121,6 @@ function registerBuiltinCommands() {
|
|
|
418144
418121
|
var builtinCommands, uiOnlyCommands;
|
|
418145
418122
|
var init_builtin4 = __esm({
|
|
418146
418123
|
"lib/commands/builtin.ts"() {
|
|
418147
|
-
"use strict";
|
|
418148
418124
|
init_registry();
|
|
418149
418125
|
init_node();
|
|
418150
418126
|
init_node();
|
|
@@ -425776,7 +425752,7 @@ init_resources();
|
|
|
425776
425752
|
init_desktop();
|
|
425777
425753
|
init_hypery();
|
|
425778
425754
|
import { createInterface } from "node:readline";
|
|
425779
|
-
var VERSION2 = "0.57.
|
|
425755
|
+
var VERSION2 = "0.57.2";
|
|
425780
425756
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
425781
425757
|
|
|
425782
425758
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.2",
|
|
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.57.
|
|
37
|
+
"@popcraft/kit": "0.57.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|