@popcraft/cli 0.53.18 → 0.53.20
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 +14 -10
- 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.53.
|
|
1201
|
+
const headers = { "user-agent": `popcraft-cli/${"0.53.20"}`, ...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 {
|
|
@@ -29217,7 +29217,6 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
|
|
|
29217
29217
|
}
|
|
29218
29218
|
var init_selection_bounds = __esm({
|
|
29219
29219
|
"lib/editor/selection-bounds.ts"() {
|
|
29220
|
-
"use strict";
|
|
29221
29220
|
init_scene_graph();
|
|
29222
29221
|
init_transform();
|
|
29223
29222
|
}
|
|
@@ -178853,6 +178852,7 @@ function findContainingFrame(state, nodeId2) {
|
|
|
178853
178852
|
for (const id3 of ids2) {
|
|
178854
178853
|
const n = allNodes[id3];
|
|
178855
178854
|
if (!n) continue;
|
|
178855
|
+
if (n.locked) continue;
|
|
178856
178856
|
const parentType = n.parentId ? allNodes[n.parentId]?.type : void 0;
|
|
178857
178857
|
const topFrame = n.type === "FRAME" && (parentType === "PAGE" || parentType === "SECTION");
|
|
178858
178858
|
const acceptsNode = topFrame || n.type === "SECTION" || n.type === "PIXEL_GRID" && canBePixelLayer(node2);
|
|
@@ -244372,6 +244372,7 @@ function hasMessage(key5) {
|
|
|
244372
244372
|
var current2, loading2, listeners, formats, asts;
|
|
244373
244373
|
var init_runtime = __esm({
|
|
244374
244374
|
"lib/i18n/runtime.ts"() {
|
|
244375
|
+
"use strict";
|
|
244375
244376
|
init_intl_messageformat();
|
|
244376
244377
|
init_icu_messageformat_parser();
|
|
244377
244378
|
init_catalogs();
|
|
@@ -246074,6 +246075,7 @@ function repairDocumentPaints(doc2) {
|
|
|
246074
246075
|
var broken;
|
|
246075
246076
|
var init_paint_repair = __esm({
|
|
246076
246077
|
"lib/document/paint-repair.ts"() {
|
|
246078
|
+
"use strict";
|
|
246077
246079
|
init_shader_graph();
|
|
246078
246080
|
broken = (p2) => {
|
|
246079
246081
|
if (!p2 || typeof p2 !== "object") return false;
|
|
@@ -251504,7 +251506,6 @@ function repairCompositions(comps, nodes) {
|
|
|
251504
251506
|
var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
|
|
251505
251507
|
var init_invariants = __esm({
|
|
251506
251508
|
"lib/motion/invariants.ts"() {
|
|
251507
|
-
"use strict";
|
|
251508
251509
|
init_easing();
|
|
251509
251510
|
init_properties();
|
|
251510
251511
|
init_markers();
|
|
@@ -254303,7 +254304,6 @@ function resizeWindow(doc2, target2, rect) {
|
|
|
254303
254304
|
}
|
|
254304
254305
|
var init_crop = __esm({
|
|
254305
254306
|
"lib/editor/crop.ts"() {
|
|
254306
|
-
"use strict";
|
|
254307
254307
|
init_dist_node();
|
|
254308
254308
|
init_scene_graph();
|
|
254309
254309
|
init_photo_frames();
|
|
@@ -263908,6 +263908,7 @@ function formatDate(date5, opts = { month: "short", day: "numeric", year: "numer
|
|
|
263908
263908
|
var cache5, nf;
|
|
263909
263909
|
var init_format = __esm({
|
|
263910
263910
|
"lib/i18n/format.ts"() {
|
|
263911
|
+
"use strict";
|
|
263911
263912
|
init_runtime();
|
|
263912
263913
|
cache5 = /* @__PURE__ */ new Map();
|
|
263913
263914
|
nf = (opts) => cached2("n", opts, (l) => new Intl.NumberFormat(l, opts));
|
|
@@ -263927,6 +263928,7 @@ function formatLimit(key5, max3) {
|
|
|
263927
263928
|
var formatBytes;
|
|
263928
263929
|
var init_limits2 = __esm({
|
|
263929
263930
|
"lib/billing/limits.ts"() {
|
|
263931
|
+
"use strict";
|
|
263930
263932
|
init_format();
|
|
263931
263933
|
init_plans();
|
|
263932
263934
|
formatBytes = formatFileSize;
|
|
@@ -264460,7 +264462,6 @@ function planEntryAction({ home }) {
|
|
|
264460
264462
|
var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
|
|
264461
264463
|
var init_team = __esm({
|
|
264462
264464
|
"lib/client/cloud/team.ts"() {
|
|
264463
|
-
"use strict";
|
|
264464
264465
|
init_esm();
|
|
264465
264466
|
init_api4();
|
|
264466
264467
|
init_session();
|
|
@@ -312928,6 +312929,7 @@ function startCloudSync() {
|
|
|
312928
312929
|
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;
|
|
312929
312930
|
var init_sync2 = __esm({
|
|
312930
312931
|
"lib/client/cloud/sync.ts"() {
|
|
312932
|
+
"use strict";
|
|
312931
312933
|
init_kinds();
|
|
312932
312934
|
init_paint_repair();
|
|
312933
312935
|
init_migrate();
|
|
@@ -314200,6 +314202,7 @@ function applyTextPath(layout2, path, tp, rebase = true) {
|
|
|
314200
314202
|
var defaultCircleRadius, ownsPath, mapPoint;
|
|
314201
314203
|
var init_text_path = __esm({
|
|
314202
314204
|
"lib/engine/text/text-path.ts"() {
|
|
314205
|
+
"use strict";
|
|
314203
314206
|
init_scene_graph();
|
|
314204
314207
|
init_transform();
|
|
314205
314208
|
init_shape_to_path();
|
|
@@ -314317,6 +314320,7 @@ function areaBounds(rings) {
|
|
|
314317
314320
|
}
|
|
314318
314321
|
var init_text_area = __esm({
|
|
314319
314322
|
"lib/engine/text/text-area.ts"() {
|
|
314323
|
+
"use strict";
|
|
314320
314324
|
}
|
|
314321
314325
|
});
|
|
314322
314326
|
|
|
@@ -318516,7 +318520,6 @@ async function selectionReferenceImages(doc2, selection, opts = {}) {
|
|
|
318516
318520
|
var FIT_QUALITIES, FIT_SCALES, blobToDataUrl;
|
|
318517
318521
|
var init_reference_images = __esm({
|
|
318518
318522
|
"lib/ai/reference-images.ts"() {
|
|
318519
|
-
"use strict";
|
|
318520
318523
|
init_export();
|
|
318521
318524
|
init_selection_bounds();
|
|
318522
318525
|
init_renderer_registry();
|
|
@@ -319359,6 +319362,7 @@ function agentToolList() {
|
|
|
319359
319362
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
319360
319363
|
var init_agent = __esm({
|
|
319361
319364
|
"lib/commands/agent.ts"() {
|
|
319365
|
+
"use strict";
|
|
319362
319366
|
init_types5();
|
|
319363
319367
|
init_registry();
|
|
319364
319368
|
init_errors();
|
|
@@ -329744,7 +329748,7 @@ var init_package = __esm({
|
|
|
329744
329748
|
"packages/runtime/package.json"() {
|
|
329745
329749
|
package_default = {
|
|
329746
329750
|
name: "@popcraft/runtime",
|
|
329747
|
-
version: "0.53.
|
|
329751
|
+
version: "0.53.20",
|
|
329748
329752
|
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.",
|
|
329749
329753
|
license: "MIT",
|
|
329750
329754
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -354410,6 +354414,7 @@ function exportsOf(source3) {
|
|
|
354410
354414
|
var CODE_LIMITS, packageOf;
|
|
354411
354415
|
var init_source2 = __esm({
|
|
354412
354416
|
"lib/code/source.ts"() {
|
|
354417
|
+
"use strict";
|
|
354413
354418
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
354414
354419
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
354415
354420
|
}
|
|
@@ -354452,6 +354457,7 @@ function compileModule(module2) {
|
|
|
354452
354457
|
var import_sucrase, BUILT_IN, memo4;
|
|
354453
354458
|
var init_compile2 = __esm({
|
|
354454
354459
|
"lib/code/compile.ts"() {
|
|
354460
|
+
"use strict";
|
|
354455
354461
|
import_sucrase = __toESM(require_dist2());
|
|
354456
354462
|
init_source2();
|
|
354457
354463
|
init_source2();
|
|
@@ -401855,7 +401861,6 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
|
|
|
401855
401861
|
var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
|
|
401856
401862
|
var init_build3 = __esm({
|
|
401857
401863
|
"lib/agent/design-script/build.ts"() {
|
|
401858
|
-
"use strict";
|
|
401859
401864
|
init_hash();
|
|
401860
401865
|
init_scene_graph();
|
|
401861
401866
|
init_libraries();
|
|
@@ -401885,7 +401890,6 @@ function designFrameOf(doc2, id3) {
|
|
|
401885
401890
|
}
|
|
401886
401891
|
var init_locate = __esm({
|
|
401887
401892
|
"lib/agent/design-script/locate.ts"() {
|
|
401888
|
-
"use strict";
|
|
401889
401893
|
}
|
|
401890
401894
|
});
|
|
401891
401895
|
|
|
@@ -414651,7 +414655,7 @@ init_resources();
|
|
|
414651
414655
|
init_desktop();
|
|
414652
414656
|
init_hypery();
|
|
414653
414657
|
import { createInterface } from "node:readline";
|
|
414654
|
-
var VERSION2 = "0.53.
|
|
414658
|
+
var VERSION2 = "0.53.20";
|
|
414655
414659
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
414656
414660
|
|
|
414657
414661
|
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.20",
|
|
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.20"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|