@popcraft/cli 0.8.0 → 0.8.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 +16 -11
- 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.1"}`, ...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();
|
|
@@ -249716,7 +249722,6 @@ function activeTeamWorkspaceId() {
|
|
|
249716
249722
|
var STORAGE_KEY2, useHyperyTeam, useTeamPrompt;
|
|
249717
249723
|
var init_team = __esm({
|
|
249718
249724
|
"lib/client/cloud/team.ts"() {
|
|
249719
|
-
"use strict";
|
|
249720
249725
|
init_esm();
|
|
249721
249726
|
init_api4();
|
|
249722
249727
|
init_session();
|
|
@@ -296894,7 +296899,6 @@ function startCloudSync() {
|
|
|
296894
296899
|
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
296900
|
var init_sync2 = __esm({
|
|
296896
296901
|
"lib/client/cloud/sync.ts"() {
|
|
296897
|
-
"use strict";
|
|
296898
296902
|
init_paint_repair();
|
|
296899
296903
|
init_migrate();
|
|
296900
296904
|
init_view();
|
|
@@ -297100,7 +297104,6 @@ async function dispatchShaped(key5, options) {
|
|
|
297100
297104
|
var onViolation;
|
|
297101
297105
|
var init_dispatch = __esm({
|
|
297102
297106
|
"lib/commands/dispatch.ts"() {
|
|
297103
|
-
"use strict";
|
|
297104
297107
|
init_errors();
|
|
297105
297108
|
init_registry();
|
|
297106
297109
|
init_confirm();
|
|
@@ -297483,6 +297486,7 @@ function creditLine(c2) {
|
|
|
297483
297486
|
var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
|
|
297484
297487
|
var init_stock = __esm({
|
|
297485
297488
|
"lib/photos/stock.ts"() {
|
|
297489
|
+
"use strict";
|
|
297486
297490
|
MAX_PHOTO_PAGE = 12;
|
|
297487
297491
|
MAX_PHOTO_QUERY = 200;
|
|
297488
297492
|
UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -298144,6 +298148,7 @@ function applyTextPath(layout2, path, tp, rebase = true) {
|
|
|
298144
298148
|
var defaultCircleRadius, ownsPath, mapPoint;
|
|
298145
298149
|
var init_text_path = __esm({
|
|
298146
298150
|
"lib/engine/text/text-path.ts"() {
|
|
298151
|
+
"use strict";
|
|
298147
298152
|
init_scene_graph();
|
|
298148
298153
|
init_transform();
|
|
298149
298154
|
init_shape_to_path();
|
|
@@ -298261,6 +298266,7 @@ function areaBounds(rings) {
|
|
|
298261
298266
|
}
|
|
298262
298267
|
var init_text_area = __esm({
|
|
298263
298268
|
"lib/engine/text/text-area.ts"() {
|
|
298269
|
+
"use strict";
|
|
298264
298270
|
}
|
|
298265
298271
|
});
|
|
298266
298272
|
|
|
@@ -302492,7 +302498,6 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
|
|
|
302492
302498
|
var MIME, DEFAULT_EXPORT, exportSettingsOf;
|
|
302493
302499
|
var init_export = __esm({
|
|
302494
302500
|
"lib/io/export.ts"() {
|
|
302495
|
-
"use strict";
|
|
302496
302501
|
init_download();
|
|
302497
302502
|
init_scene_graph();
|
|
302498
302503
|
init_codecs();
|
|
@@ -302869,6 +302874,7 @@ function videoPixelSize(resolution, aspect) {
|
|
|
302869
302874
|
var VIDEO_ASPECTS, VIDEO_RESOLUTIONS, SEEDANCE_ASPECTS, range, VIDEO_MODELS, DEFAULT_VIDEO_MODEL, videoModel, VIDEO_LIMITS;
|
|
302870
302875
|
var init_video_models = __esm({
|
|
302871
302876
|
"lib/ai/video-models.ts"() {
|
|
302877
|
+
"use strict";
|
|
302872
302878
|
VIDEO_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
|
|
302873
302879
|
VIDEO_RESOLUTIONS = ["480p", "720p", "1080p"];
|
|
302874
302880
|
SEEDANCE_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
|
|
@@ -303357,7 +303363,6 @@ function agentToolList() {
|
|
|
303357
303363
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
303358
303364
|
var init_agent = __esm({
|
|
303359
303365
|
"lib/commands/agent.ts"() {
|
|
303360
|
-
"use strict";
|
|
303361
303366
|
init_types5();
|
|
303362
303367
|
init_registry();
|
|
303363
303368
|
init_errors();
|
|
@@ -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.1",
|
|
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
|
});
|
|
@@ -347619,7 +347626,6 @@ var init_plugin_widget = __esm({
|
|
|
347619
347626
|
var storeOpsSeam;
|
|
347620
347627
|
var init_seams = __esm({
|
|
347621
347628
|
"lib/commands/seams.ts"() {
|
|
347622
|
-
"use strict";
|
|
347623
347629
|
storeOpsSeam = (st) => ({
|
|
347624
347630
|
booleanOperation: (op4) => st().booleanOperation(op4),
|
|
347625
347631
|
flatten: () => st().flattenSelection(),
|
|
@@ -380507,7 +380513,6 @@ function registerBuiltinCommands() {
|
|
|
380507
380513
|
var builtinCommands, uiOnlyCommands;
|
|
380508
380514
|
var init_builtin2 = __esm({
|
|
380509
380515
|
"lib/commands/builtin.ts"() {
|
|
380510
|
-
"use strict";
|
|
380511
380516
|
init_registry();
|
|
380512
380517
|
init_node();
|
|
380513
380518
|
init_node();
|
|
@@ -393340,7 +393345,7 @@ init_resources();
|
|
|
393340
393345
|
init_desktop();
|
|
393341
393346
|
init_hypery();
|
|
393342
393347
|
import { createInterface } from "node:readline";
|
|
393343
|
-
var VERSION2 = "0.8.
|
|
393348
|
+
var VERSION2 = "0.8.1";
|
|
393344
393349
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
393345
393350
|
|
|
393346
393351
|
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.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.8.
|
|
37
|
+
"@popcraft/kit": "0.8.1"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|