@popcraft/cli 0.50.2 → 0.52.0
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
|
@@ -1196,7 +1196,7 @@ function operations(spec = openapi) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
async function call(target2, method, path, opts = {}) {
|
|
1198
1198
|
const qs = new URLSearchParams(opts.query ?? {}).toString();
|
|
1199
|
-
const headers = { "user-agent": `popcraft-cli/${"0.
|
|
1199
|
+
const headers = { "user-agent": `popcraft-cli/${"0.52.0"}`, ...opts.headers };
|
|
1200
1200
|
if (target2.token) headers.authorization = `Bearer ${target2.token}`;
|
|
1201
1201
|
if (opts.contentType) headers["content-type"] = opts.contentType;
|
|
1202
1202
|
try {
|
|
@@ -33524,12 +33524,6 @@ var init_en2 = __esm({
|
|
|
33524
33524
|
"drawSettingsPanel.wetMix": "Wet mix",
|
|
33525
33525
|
"drawSettingsPanel.wetPaint": "Wet paint",
|
|
33526
33526
|
"drawSettingsPanel.whatTheTipRotatesWith": "What the tip rotates with",
|
|
33527
|
-
"duoHarness.closed": "Closed",
|
|
33528
|
-
"duoHarness.frameTitle": "PopCraft on an iPhone Duo",
|
|
33529
|
-
"duoHarness.halfOpen": "Half open",
|
|
33530
|
-
"duoHarness.open": "Open",
|
|
33531
|
-
"duoHarness.posture": "Fold posture",
|
|
33532
|
-
"duoHarness.rotate": "Rotate",
|
|
33533
33527
|
"editorStore.leftNothingThoseShapesProduce": "{toLowerCase} left nothing \u2014 those shapes produce an empty result.",
|
|
33534
33528
|
"editorStore.readOnlyPickAMode": "This file is read only. Pick Design, or another mode, to edit it.",
|
|
33535
33529
|
"editorStore.savingToBrowserStorageFailed": "Saving to browser storage failed \u2014 recent changes may not be saved.",
|
|
@@ -33956,9 +33950,12 @@ var init_en2 = __esm({
|
|
|
33956
33950
|
"homeTemplates.communityBody": "Templates people made and shared. Tap one to start from a copy.",
|
|
33957
33951
|
"homeTemplates.fromTheCommunity": "From the community",
|
|
33958
33952
|
"homeTemplates.loading": "Loading templates\u2026",
|
|
33953
|
+
"homeTemplates.loadingMore": "Loading more templates\u2026",
|
|
33954
|
+
"homeTemplates.loadMore": "Load more templates",
|
|
33959
33955
|
"homeTemplates.noneInThisGroup": "No templates in this group yet.",
|
|
33960
33956
|
"homeTemplates.pickOneToOpen": "Pick one and it opens as a new file, ready to edit.",
|
|
33961
33957
|
"homeTemplates.startFromATemplate": "Start from a template",
|
|
33958
|
+
"homeTemplates.thatsEverything": "That\u2019s every template for now.",
|
|
33962
33959
|
"homeTemplates.useTemplate": "Use the {name} template",
|
|
33963
33960
|
"homeWelcome.about": "About",
|
|
33964
33961
|
"homeWelcome.aboutPopCraft": "About PopCraft",
|
|
@@ -96215,6 +96212,7 @@ function repairDocumentPaints(doc2) {
|
|
|
96215
96212
|
var broken;
|
|
96216
96213
|
var init_paint_repair = __esm({
|
|
96217
96214
|
"lib/document/paint-repair.ts"() {
|
|
96215
|
+
"use strict";
|
|
96218
96216
|
init_shader_graph();
|
|
96219
96217
|
broken = (p2) => {
|
|
96220
96218
|
if (!p2 || typeof p2 !== "object") return false;
|
|
@@ -97388,6 +97386,7 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
|
|
|
97388
97386
|
}
|
|
97389
97387
|
var init_selection_bounds = __esm({
|
|
97390
97388
|
"lib/editor/selection-bounds.ts"() {
|
|
97389
|
+
"use strict";
|
|
97391
97390
|
init_scene_graph();
|
|
97392
97391
|
init_transform();
|
|
97393
97392
|
}
|
|
@@ -97579,7 +97578,6 @@ function relinkCopies(doc2, copies) {
|
|
|
97579
97578
|
var TEXT_PATH_SOURCE_TYPES, isPathSource;
|
|
97580
97579
|
var init_text_links = __esm({
|
|
97581
97580
|
"lib/document/text-links.ts"() {
|
|
97582
|
-
"use strict";
|
|
97583
97581
|
init_transform();
|
|
97584
97582
|
TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
|
|
97585
97583
|
isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
|
|
@@ -249005,7 +249003,6 @@ function fillPhotoFrame(doc2, groupId, imageUrl, size6, name2 = "Photo", credit)
|
|
|
249005
249003
|
var isPhotoFrame;
|
|
249006
249004
|
var init_photo_frames = __esm({
|
|
249007
249005
|
"lib/document/photo-frames.ts"() {
|
|
249008
|
-
"use strict";
|
|
249009
249006
|
init_dist_node();
|
|
249010
249007
|
init_scene_graph();
|
|
249011
249008
|
init_types();
|
|
@@ -253054,6 +253051,7 @@ function getActiveRenderer() {
|
|
|
253054
253051
|
var active;
|
|
253055
253052
|
var init_renderer_registry = __esm({
|
|
253056
253053
|
"lib/engine/renderer-registry.ts"() {
|
|
253054
|
+
"use strict";
|
|
253057
253055
|
active = null;
|
|
253058
253056
|
}
|
|
253059
253057
|
});
|
|
@@ -311863,6 +311861,7 @@ async function dispatchShaped(key5, options) {
|
|
|
311863
311861
|
var onViolation;
|
|
311864
311862
|
var init_dispatch = __esm({
|
|
311865
311863
|
"lib/commands/dispatch.ts"() {
|
|
311864
|
+
"use strict";
|
|
311866
311865
|
init_errors();
|
|
311867
311866
|
init_registry();
|
|
311868
311867
|
init_confirm();
|
|
@@ -312924,7 +312923,6 @@ function applyTextPath(layout2, path, tp, rebase = true) {
|
|
|
312924
312923
|
var defaultCircleRadius, ownsPath, mapPoint;
|
|
312925
312924
|
var init_text_path = __esm({
|
|
312926
312925
|
"lib/engine/text/text-path.ts"() {
|
|
312927
|
-
"use strict";
|
|
312928
312926
|
init_scene_graph();
|
|
312929
312927
|
init_transform();
|
|
312930
312928
|
init_shape_to_path();
|
|
@@ -313042,7 +313040,6 @@ function areaBounds(rings) {
|
|
|
313042
313040
|
}
|
|
313043
313041
|
var init_text_area = __esm({
|
|
313044
313042
|
"lib/engine/text/text-area.ts"() {
|
|
313045
|
-
"use strict";
|
|
313046
313043
|
}
|
|
313047
313044
|
});
|
|
313048
313045
|
|
|
@@ -317387,6 +317384,7 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
|
|
|
317387
317384
|
var MIME, DEFAULT_EXPORT, exportSettingsOf;
|
|
317388
317385
|
var init_export = __esm({
|
|
317389
317386
|
"lib/io/export.ts"() {
|
|
317387
|
+
"use strict";
|
|
317390
317388
|
init_download();
|
|
317391
317389
|
init_scene_graph();
|
|
317392
317390
|
init_codecs();
|
|
@@ -328475,7 +328473,7 @@ var init_package = __esm({
|
|
|
328475
328473
|
"packages/runtime/package.json"() {
|
|
328476
328474
|
package_default = {
|
|
328477
328475
|
name: "@popcraft/runtime",
|
|
328478
|
-
version: "0.
|
|
328476
|
+
version: "0.52.0",
|
|
328479
328477
|
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.",
|
|
328480
328478
|
license: "MIT",
|
|
328481
328479
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -362227,6 +362225,7 @@ var init_delete_current_file = __esm({
|
|
|
362227
362225
|
var storeOpsSeam;
|
|
362228
362226
|
var init_seams = __esm({
|
|
362229
362227
|
"lib/commands/seams.ts"() {
|
|
362228
|
+
"use strict";
|
|
362230
362229
|
storeOpsSeam = (st) => ({
|
|
362231
362230
|
booleanOperation: (op4) => st().booleanOperation(op4),
|
|
362232
362231
|
flatten: () => st().flattenSelection(),
|
|
@@ -401240,7 +401239,6 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
|
|
|
401240
401239
|
var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
|
|
401241
401240
|
var init_build3 = __esm({
|
|
401242
401241
|
"lib/agent/design-script/build.ts"() {
|
|
401243
|
-
"use strict";
|
|
401244
401242
|
init_hash();
|
|
401245
401243
|
init_scene_graph();
|
|
401246
401244
|
init_libraries();
|
|
@@ -401270,7 +401268,6 @@ function designFrameOf(doc2, id3) {
|
|
|
401270
401268
|
}
|
|
401271
401269
|
var init_locate = __esm({
|
|
401272
401270
|
"lib/agent/design-script/locate.ts"() {
|
|
401273
|
-
"use strict";
|
|
401274
401271
|
}
|
|
401275
401272
|
});
|
|
401276
401273
|
|
|
@@ -406452,6 +406449,7 @@ function registerBuiltinCommands() {
|
|
|
406452
406449
|
var builtinCommands, uiOnlyCommands;
|
|
406453
406450
|
var init_builtin4 = __esm({
|
|
406454
406451
|
"lib/commands/builtin.ts"() {
|
|
406452
|
+
"use strict";
|
|
406455
406453
|
init_registry();
|
|
406456
406454
|
init_node();
|
|
406457
406455
|
init_node();
|
|
@@ -414056,7 +414054,7 @@ init_resources();
|
|
|
414056
414054
|
init_desktop();
|
|
414057
414055
|
init_hypery();
|
|
414058
414056
|
import { createInterface } from "node:readline";
|
|
414059
|
-
var VERSION2 = "0.
|
|
414057
|
+
var VERSION2 = "0.52.0";
|
|
414060
414058
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
414061
414059
|
|
|
414062
414060
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.0",
|
|
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.
|
|
37
|
+
"@popcraft/kit": "0.52.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|