@popcraft/cli 0.9.3 → 0.9.5
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 -15
- package/package.json +2 -2
package/dist/popcraft.mjs
CHANGED
|
@@ -1173,7 +1173,7 @@ function operations(spec = openapi) {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
async function call(target2, method, path, opts = {}) {
|
|
1175
1175
|
const qs = new URLSearchParams(opts.query ?? {}).toString();
|
|
1176
|
-
const headers = { "user-agent": `popcraft-cli/${"0.9.
|
|
1176
|
+
const headers = { "user-agent": `popcraft-cli/${"0.9.5"}`, ...opts.headers };
|
|
1177
1177
|
if (target2.token) headers.authorization = `Bearer ${target2.token}`;
|
|
1178
1178
|
if (opts.contentType) headers["content-type"] = opts.contentType;
|
|
1179
1179
|
try {
|
|
@@ -90237,6 +90237,7 @@ function repairDocumentPaints(doc2) {
|
|
|
90237
90237
|
var broken;
|
|
90238
90238
|
var init_paint_repair = __esm({
|
|
90239
90239
|
"lib/document/paint-repair.ts"() {
|
|
90240
|
+
"use strict";
|
|
90240
90241
|
init_shader_graph();
|
|
90241
90242
|
broken = (p2) => {
|
|
90242
90243
|
if (!p2 || typeof p2 !== "object") return false;
|
|
@@ -91515,7 +91516,6 @@ function relinkCopies(doc2, copies) {
|
|
|
91515
91516
|
var TEXT_PATH_SOURCE_TYPES, isPathSource;
|
|
91516
91517
|
var init_text_links = __esm({
|
|
91517
91518
|
"lib/document/text-links.ts"() {
|
|
91518
|
-
"use strict";
|
|
91519
91519
|
init_transform();
|
|
91520
91520
|
TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
|
|
91521
91521
|
isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
|
|
@@ -92227,7 +92227,6 @@ function isAutoLayout(node2) {
|
|
|
92227
92227
|
}
|
|
92228
92228
|
var init_auto_layout = __esm({
|
|
92229
92229
|
"lib/document/auto-layout.ts"() {
|
|
92230
|
-
"use strict";
|
|
92231
92230
|
init_instance_layout();
|
|
92232
92231
|
setLayoutEngine(applyAutoLayout);
|
|
92233
92232
|
}
|
|
@@ -95172,7 +95171,6 @@ function layerInputPatch(node2, name2, path) {
|
|
|
95172
95171
|
var NO_RUNTIME, MAX_DEPTH, freshIndex, indexOf, isComponentLike, selfStarting, startedAt, endMemo, HOST_OWNS, rootTracksMemo, layerMemo, idle;
|
|
95173
95172
|
var init_instances2 = __esm({
|
|
95174
95173
|
"lib/motion/instances.ts"() {
|
|
95175
|
-
"use strict";
|
|
95176
95174
|
init_node_delta();
|
|
95177
95175
|
init_instances();
|
|
95178
95176
|
init_scene_graph();
|
|
@@ -95444,7 +95442,6 @@ function repairStateMachine(raw, markerIds, hasNode) {
|
|
|
95444
95442
|
var STATE_MACHINE_INPUT_TYPES, STATE_MACHINE_GUARD_OPS, STATE_MACHINE_ACTION_TYPES, STATE_MACHINE_LISTENER_TYPES, isKeyListener, ANY_STATE, MAX_STEPS2, byId2, sortedValues, machineOf, startValue, isObj3, finite4, isValue, goodId;
|
|
95445
95443
|
var init_state_machine = __esm({
|
|
95446
95444
|
"lib/motion/state-machine.ts"() {
|
|
95447
|
-
"use strict";
|
|
95448
95445
|
STATE_MACHINE_INPUT_TYPES = ["boolean", "number", "string", "event"];
|
|
95449
95446
|
STATE_MACHINE_GUARD_OPS = ["eq", "neq", "gt", "gte", "lt", "lte"];
|
|
95450
95447
|
STATE_MACHINE_ACTION_TYPES = ["set", "toggle", "increment", "decrement", "fire", "reset"];
|
|
@@ -239625,7 +239622,6 @@ function repairCompositions(comps, nodes) {
|
|
|
239625
239622
|
var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
|
|
239626
239623
|
var init_invariants = __esm({
|
|
239627
239624
|
"lib/motion/invariants.ts"() {
|
|
239628
|
-
"use strict";
|
|
239629
239625
|
init_easing();
|
|
239630
239626
|
init_properties();
|
|
239631
239627
|
init_markers();
|
|
@@ -240596,7 +240592,6 @@ function fillPhotoFrame(doc2, groupId, imageUrl, size6, name2 = "Photo", credit)
|
|
|
240596
240592
|
var isPhotoFrame;
|
|
240597
240593
|
var init_photo_frames = __esm({
|
|
240598
240594
|
"lib/document/photo-frames.ts"() {
|
|
240599
|
-
"use strict";
|
|
240600
240595
|
init_dist_node();
|
|
240601
240596
|
init_scene_graph();
|
|
240602
240597
|
init_types();
|
|
@@ -244150,7 +244145,6 @@ function resizeWindow(doc2, target2, rect) {
|
|
|
244150
244145
|
}
|
|
244151
244146
|
var init_crop = __esm({
|
|
244152
244147
|
"lib/editor/crop.ts"() {
|
|
244153
|
-
"use strict";
|
|
244154
244148
|
init_dist_node();
|
|
244155
244149
|
init_scene_graph();
|
|
244156
244150
|
init_photo_frames();
|
|
@@ -247673,7 +247667,6 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
|
|
|
247673
247667
|
var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
|
|
247674
247668
|
var init_shader_presets = __esm({
|
|
247675
247669
|
"lib/engine/shader-presets.ts"() {
|
|
247676
|
-
"use strict";
|
|
247677
247670
|
init_shader_graph();
|
|
247678
247671
|
init_shader_graph_presets();
|
|
247679
247672
|
init_shader_presets_legacy();
|
|
@@ -252014,7 +252007,6 @@ function retuneShaderAudio(node2, fillId) {
|
|
|
252014
252007
|
}
|
|
252015
252008
|
var init_shader_audio = __esm({
|
|
252016
252009
|
"lib/motion/shader-audio.ts"() {
|
|
252017
|
-
"use strict";
|
|
252018
252010
|
init_shader_params();
|
|
252019
252011
|
init_modifier_edit();
|
|
252020
252012
|
init_keys();
|
|
@@ -253703,6 +253695,7 @@ function formatDate(date5, opts = { month: "short", day: "numeric", year: "numer
|
|
|
253703
253695
|
var cache5, nf;
|
|
253704
253696
|
var init_format = __esm({
|
|
253705
253697
|
"lib/i18n/format.ts"() {
|
|
253698
|
+
"use strict";
|
|
253706
253699
|
init_runtime();
|
|
253707
253700
|
cache5 = /* @__PURE__ */ new Map();
|
|
253708
253701
|
nf = (opts) => cached2("n", opts, (l) => new Intl.NumberFormat(l, opts));
|
|
@@ -301826,7 +301819,7 @@ function reflectUrl() {
|
|
|
301826
301819
|
const docId = useEditorStore.getState().document.id;
|
|
301827
301820
|
if (isUnsavedPlaceholder(docId)) return;
|
|
301828
301821
|
if (!isDesktopTabs() && isWebHome(window.location.pathname, window.location.search)) return;
|
|
301829
|
-
const localDocId = !
|
|
301822
|
+
const localDocId = !activeLink && isPersistableDocument(docId) ? docId : null;
|
|
301830
301823
|
const base = documentPath({ linkKey: activeLink?.key, localDocId });
|
|
301831
301824
|
const atSameAddress = window.location.pathname === base.split("?")[0];
|
|
301832
301825
|
const path = atSameAddress ? withDeepLink(base, parseDeepLink(window.location.search)) : base;
|
|
@@ -302233,6 +302226,7 @@ function startCloudSync() {
|
|
|
302233
302226
|
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, putThumbnail, openingFiles, mediaHealed, started;
|
|
302234
302227
|
var init_sync2 = __esm({
|
|
302235
302228
|
"lib/client/cloud/sync.ts"() {
|
|
302229
|
+
"use strict";
|
|
302236
302230
|
init_paint_repair();
|
|
302237
302231
|
init_migrate();
|
|
302238
302232
|
init_view();
|
|
@@ -307830,6 +307824,7 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
|
|
|
307830
307824
|
var MIME, DEFAULT_EXPORT, exportSettingsOf;
|
|
307831
307825
|
var init_export = __esm({
|
|
307832
307826
|
"lib/io/export.ts"() {
|
|
307827
|
+
"use strict";
|
|
307833
307828
|
init_download();
|
|
307834
307829
|
init_scene_graph();
|
|
307835
307830
|
init_codecs();
|
|
@@ -316201,6 +316196,7 @@ popcraftMount(document.querySelector('[data-pc="0"]'), ${JSON.stringify(spec)});
|
|
|
316201
316196
|
var routeFile, routeUp, bytesOf;
|
|
316202
316197
|
var init_files = __esm({
|
|
316203
316198
|
"lib/io/web/project/files.ts"() {
|
|
316199
|
+
"use strict";
|
|
316204
316200
|
routeFile = (route2) => route2 === "/" ? "index.html" : `${route2.replace(/^\//, "")}/index.html`;
|
|
316205
316201
|
routeUp = (route2) => route2 === "/" ? "" : "../".repeat(route2.replace(/^\//, "").split("/").length);
|
|
316206
316202
|
bytesOf = (f2) => typeof f2.content === "string" ? new TextEncoder().encode(f2.content) : f2.content;
|
|
@@ -317227,7 +317223,7 @@ var init_package = __esm({
|
|
|
317227
317223
|
"packages/runtime/package.json"() {
|
|
317228
317224
|
package_default = {
|
|
317229
317225
|
name: "@popcraft/runtime",
|
|
317230
|
-
version: "0.9.
|
|
317226
|
+
version: "0.9.5",
|
|
317231
317227
|
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.",
|
|
317232
317228
|
license: "MIT",
|
|
317233
317229
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -317853,6 +317849,7 @@ function routesOf(screens) {
|
|
|
317853
317849
|
var slug2;
|
|
317854
317850
|
var init_routes = __esm({
|
|
317855
317851
|
"lib/document/routes.ts"() {
|
|
317852
|
+
"use strict";
|
|
317856
317853
|
slug2 = (s) => s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
317857
317854
|
}
|
|
317858
317855
|
});
|
|
@@ -317982,6 +317979,7 @@ function fieldPart(nodes, id3) {
|
|
|
317982
317979
|
var cleanName2;
|
|
317983
317980
|
var init_controls = __esm({
|
|
317984
317981
|
"lib/document/controls.ts"() {
|
|
317982
|
+
"use strict";
|
|
317985
317983
|
cleanName2 = (raw) => raw.trim().replace(/[^A-Za-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
317986
317984
|
}
|
|
317987
317985
|
});
|
|
@@ -342826,6 +342824,7 @@ function hashOf(text) {
|
|
|
342826
342824
|
}
|
|
342827
342825
|
var init_hash = __esm({
|
|
342828
342826
|
"lib/code/hash.ts"() {
|
|
342827
|
+
"use strict";
|
|
342829
342828
|
}
|
|
342830
342829
|
});
|
|
342831
342830
|
|
|
@@ -345950,6 +345949,7 @@ function diagnosticsText(diagnostics) {
|
|
|
345950
345949
|
var HARNESS_NAMES, plainDiagnostics;
|
|
345951
345950
|
var init_shader_diagnostics = __esm({
|
|
345952
345951
|
"lib/engine/shader-diagnostics.ts"() {
|
|
345952
|
+
"use strict";
|
|
345953
345953
|
HARNESS_NAMES = ["ShaderUniforms", "VOut", "vs_main", "fs_main", "u", "p"];
|
|
345954
345954
|
plainDiagnostics = (errors2) => errors2.map((message) => ({ line: null, column: null, message, severity: "error" }));
|
|
345955
345955
|
}
|
|
@@ -349447,7 +349447,6 @@ function designFrameOf(doc2, id3) {
|
|
|
349447
349447
|
}
|
|
349448
349448
|
var init_locate = __esm({
|
|
349449
349449
|
"lib/agent/design-script/locate.ts"() {
|
|
349450
|
-
"use strict";
|
|
349451
349450
|
}
|
|
349452
349451
|
});
|
|
349453
349452
|
|
|
@@ -349686,7 +349685,6 @@ function placeDesign(doc2, built, source3, size6, name2, at3) {
|
|
|
349686
349685
|
var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
|
|
349687
349686
|
var init_build3 = __esm({
|
|
349688
349687
|
"lib/agent/design-script/build.ts"() {
|
|
349689
|
-
"use strict";
|
|
349690
349688
|
init_hash();
|
|
349691
349689
|
init_scene_graph();
|
|
349692
349690
|
init_libraries();
|
|
@@ -397787,7 +397785,7 @@ init_resources();
|
|
|
397787
397785
|
init_desktop();
|
|
397788
397786
|
init_hypery();
|
|
397789
397787
|
import { createInterface } from "node:readline";
|
|
397790
|
-
var VERSION2 = "0.9.
|
|
397788
|
+
var VERSION2 = "0.9.5";
|
|
397791
397789
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
397792
397790
|
|
|
397793
397791
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
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.9.
|
|
37
|
+
"@popcraft/kit": "0.9.5"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|