@popcraft/cli 0.8.0 → 0.8.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 +13 -6
- 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.8.
|
|
1176
|
+
const headers = { "user-agent": `popcraft-cli/${"0.8.2"}`, ...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 {
|
|
@@ -85978,7 +85978,6 @@ function repairDocumentPaints(doc2) {
|
|
|
85978
85978
|
var broken;
|
|
85979
85979
|
var init_paint_repair = __esm({
|
|
85980
85980
|
"lib/document/paint-repair.ts"() {
|
|
85981
|
-
"use strict";
|
|
85982
85981
|
init_shader_graph();
|
|
85983
85982
|
broken = (p2) => {
|
|
85984
85983
|
if (!p2 || typeof p2 !== "object") return false;
|
|
@@ -87203,6 +87202,7 @@ function relinkCopies(doc2, copies) {
|
|
|
87203
87202
|
var TEXT_PATH_SOURCE_TYPES, isPathSource;
|
|
87204
87203
|
var init_text_links = __esm({
|
|
87205
87204
|
"lib/document/text-links.ts"() {
|
|
87205
|
+
"use strict";
|
|
87206
87206
|
init_transform();
|
|
87207
87207
|
TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
|
|
87208
87208
|
isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
|
|
@@ -87914,6 +87914,7 @@ function isAutoLayout(node2) {
|
|
|
87914
87914
|
}
|
|
87915
87915
|
var init_auto_layout = __esm({
|
|
87916
87916
|
"lib/document/auto-layout.ts"() {
|
|
87917
|
+
"use strict";
|
|
87917
87918
|
init_instance_layout();
|
|
87918
87919
|
setLayoutEngine(applyAutoLayout);
|
|
87919
87920
|
}
|
|
@@ -90858,6 +90859,7 @@ function layerInputPatch(node2, name2, path) {
|
|
|
90858
90859
|
var NO_RUNTIME, MAX_DEPTH, freshIndex, indexOf, isComponentLike, selfStarting, startedAt, endMemo, HOST_OWNS, rootTracksMemo, layerMemo, idle;
|
|
90859
90860
|
var init_instances2 = __esm({
|
|
90860
90861
|
"lib/motion/instances.ts"() {
|
|
90862
|
+
"use strict";
|
|
90861
90863
|
init_node_delta();
|
|
90862
90864
|
init_instances();
|
|
90863
90865
|
init_scene_graph();
|
|
@@ -91129,6 +91131,7 @@ function repairStateMachine(raw, markerIds, hasNode) {
|
|
|
91129
91131
|
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;
|
|
91130
91132
|
var init_state_machine = __esm({
|
|
91131
91133
|
"lib/motion/state-machine.ts"() {
|
|
91134
|
+
"use strict";
|
|
91132
91135
|
STATE_MACHINE_INPUT_TYPES = ["boolean", "number", "string", "event"];
|
|
91133
91136
|
STATE_MACHINE_GUARD_OPS = ["eq", "neq", "gt", "gte", "lt", "lte"];
|
|
91134
91137
|
STATE_MACHINE_ACTION_TYPES = ["set", "toggle", "increment", "decrement", "fire", "reset"];
|
|
@@ -235309,6 +235312,7 @@ function repairCompositions(comps, nodes) {
|
|
|
235309
235312
|
var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
|
|
235310
235313
|
var init_invariants = __esm({
|
|
235311
235314
|
"lib/motion/invariants.ts"() {
|
|
235315
|
+
"use strict";
|
|
235312
235316
|
init_easing();
|
|
235313
235317
|
init_properties();
|
|
235314
235318
|
init_markers();
|
|
@@ -239833,6 +239837,7 @@ function resizeWindow(doc2, target2, rect) {
|
|
|
239833
239837
|
}
|
|
239834
239838
|
var init_crop = __esm({
|
|
239835
239839
|
"lib/editor/crop.ts"() {
|
|
239840
|
+
"use strict";
|
|
239836
239841
|
init_dist_node();
|
|
239837
239842
|
init_scene_graph();
|
|
239838
239843
|
init_photo_frames();
|
|
@@ -243355,6 +243360,7 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
|
|
|
243355
243360
|
var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
|
|
243356
243361
|
var init_shader_presets = __esm({
|
|
243357
243362
|
"lib/engine/shader-presets.ts"() {
|
|
243363
|
+
"use strict";
|
|
243358
243364
|
init_shader_graph();
|
|
243359
243365
|
init_shader_graph_presets();
|
|
243360
243366
|
init_shader_presets_legacy();
|
|
@@ -296894,7 +296900,6 @@ function startCloudSync() {
|
|
|
296894
296900
|
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;
|
|
296895
296901
|
var init_sync2 = __esm({
|
|
296896
296902
|
"lib/client/cloud/sync.ts"() {
|
|
296897
|
-
"use strict";
|
|
296898
296903
|
init_paint_repair();
|
|
296899
296904
|
init_migrate();
|
|
296900
296905
|
init_view();
|
|
@@ -312788,7 +312793,7 @@ var init_package = __esm({
|
|
|
312788
312793
|
"packages/runtime/package.json"() {
|
|
312789
312794
|
package_default = {
|
|
312790
312795
|
name: "@popcraft/runtime",
|
|
312791
|
-
version: "0.8.
|
|
312796
|
+
version: "0.8.2",
|
|
312792
312797
|
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.",
|
|
312793
312798
|
license: "MIT",
|
|
312794
312799
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -313414,6 +313419,7 @@ function routesOf(screens) {
|
|
|
313414
313419
|
var slug2;
|
|
313415
313420
|
var init_routes = __esm({
|
|
313416
313421
|
"lib/document/routes.ts"() {
|
|
313422
|
+
"use strict";
|
|
313417
313423
|
slug2 = (s) => s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
313418
313424
|
}
|
|
313419
313425
|
});
|
|
@@ -313543,6 +313549,7 @@ function fieldPart(nodes, id3) {
|
|
|
313543
313549
|
var cleanName2;
|
|
313544
313550
|
var init_controls = __esm({
|
|
313545
313551
|
"lib/document/controls.ts"() {
|
|
313552
|
+
"use strict";
|
|
313546
313553
|
cleanName2 = (raw) => raw.trim().replace(/[^A-Za-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
313547
313554
|
}
|
|
313548
313555
|
});
|
|
@@ -344467,7 +344474,6 @@ function publishSite(key5, files, opts = {}) {
|
|
|
344467
344474
|
var siteStatus, setSiteVersion, renameSite;
|
|
344468
344475
|
var init_sites = __esm({
|
|
344469
344476
|
"lib/client/cloud/sites.ts"() {
|
|
344470
|
-
"use strict";
|
|
344471
344477
|
init_files();
|
|
344472
344478
|
init_upload2();
|
|
344473
344479
|
init_api4();
|
|
@@ -344981,6 +344987,7 @@ function designRecorder() {
|
|
|
344981
344987
|
var installed;
|
|
344982
344988
|
var init_recorders = __esm({
|
|
344983
344989
|
"lib/agent/design-script/recorders.ts"() {
|
|
344990
|
+
"use strict";
|
|
344984
344991
|
installed = null;
|
|
344985
344992
|
}
|
|
344986
344993
|
});
|
|
@@ -393340,7 +393347,7 @@ init_resources();
|
|
|
393340
393347
|
init_desktop();
|
|
393341
393348
|
init_hypery();
|
|
393342
393349
|
import { createInterface } from "node:readline";
|
|
393343
|
-
var VERSION2 = "0.8.
|
|
393350
|
+
var VERSION2 = "0.8.2";
|
|
393344
393351
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
393345
393352
|
|
|
393346
393353
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.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.8.
|
|
37
|
+
"@popcraft/kit": "0.8.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|