@popcraft/cli 0.49.0 → 0.50.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 +7 -10
- 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.50.1"}`, ...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 {
|
|
@@ -248125,6 +248125,7 @@ function resyncText(doc2, ids2) {
|
|
|
248125
248125
|
var isVirtualId;
|
|
248126
248126
|
var init_invariants2 = __esm({
|
|
248127
248127
|
"lib/document/invariants.ts"() {
|
|
248128
|
+
"use strict";
|
|
248128
248129
|
init_auto_layout();
|
|
248129
248130
|
init_scene_graph();
|
|
248130
248131
|
init_text_bounds();
|
|
@@ -252592,7 +252593,6 @@ function resizeWindow(doc2, target2, rect) {
|
|
|
252592
252593
|
}
|
|
252593
252594
|
var init_crop = __esm({
|
|
252594
252595
|
"lib/editor/crop.ts"() {
|
|
252595
|
-
"use strict";
|
|
252596
252596
|
init_dist_node();
|
|
252597
252597
|
init_scene_graph();
|
|
252598
252598
|
init_photo_frames();
|
|
@@ -256676,7 +256676,6 @@ function mergeFonts(fonts, incoming) {
|
|
|
256676
256676
|
var fontWeightOf, fontStyleOf, sameSlot, hashOf, documentFontHashes;
|
|
256677
256677
|
var init_document_fonts = __esm({
|
|
256678
256678
|
"lib/fonts/document-fonts.ts"() {
|
|
256679
|
-
"use strict";
|
|
256680
256679
|
init_media_store();
|
|
256681
256680
|
init_media_hash();
|
|
256682
256681
|
fontWeightOf = (f2) => f2.weight ?? 400;
|
|
@@ -311655,6 +311654,7 @@ function startCloudSync() {
|
|
|
311655
311654
|
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, started2;
|
|
311656
311655
|
var init_sync2 = __esm({
|
|
311657
311656
|
"lib/client/cloud/sync.ts"() {
|
|
311657
|
+
"use strict";
|
|
311658
311658
|
init_paint_repair();
|
|
311659
311659
|
init_migrate();
|
|
311660
311660
|
init_view();
|
|
@@ -312925,7 +312925,6 @@ function applyTextPath(layout2, path, tp, rebase = true) {
|
|
|
312925
312925
|
var defaultCircleRadius, ownsPath, mapPoint;
|
|
312926
312926
|
var init_text_path = __esm({
|
|
312927
312927
|
"lib/engine/text/text-path.ts"() {
|
|
312928
|
-
"use strict";
|
|
312929
312928
|
init_scene_graph();
|
|
312930
312929
|
init_transform();
|
|
312931
312930
|
init_shape_to_path();
|
|
@@ -313043,7 +313042,6 @@ function areaBounds(rings) {
|
|
|
313043
313042
|
}
|
|
313044
313043
|
var init_text_area = __esm({
|
|
313045
313044
|
"lib/engine/text/text-area.ts"() {
|
|
313046
|
-
"use strict";
|
|
313047
313045
|
}
|
|
313048
313046
|
});
|
|
313049
313047
|
|
|
@@ -317388,7 +317386,6 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
|
|
|
317388
317386
|
var MIME, DEFAULT_EXPORT, exportSettingsOf;
|
|
317389
317387
|
var init_export = __esm({
|
|
317390
317388
|
"lib/io/export.ts"() {
|
|
317391
|
-
"use strict";
|
|
317392
317389
|
init_download();
|
|
317393
317390
|
init_scene_graph();
|
|
317394
317391
|
init_codecs();
|
|
@@ -317480,6 +317477,7 @@ async function selectionReferenceImages(doc2, selection, opts = {}) {
|
|
|
317480
317477
|
var FIT_QUALITIES, FIT_SCALES, blobToDataUrl;
|
|
317481
317478
|
var init_reference_images = __esm({
|
|
317482
317479
|
"lib/ai/reference-images.ts"() {
|
|
317480
|
+
"use strict";
|
|
317483
317481
|
init_export();
|
|
317484
317482
|
init_selection_bounds();
|
|
317485
317483
|
init_renderer_registry();
|
|
@@ -318322,6 +318320,7 @@ function agentToolList() {
|
|
|
318322
318320
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
318323
318321
|
var init_agent = __esm({
|
|
318324
318322
|
"lib/commands/agent.ts"() {
|
|
318323
|
+
"use strict";
|
|
318325
318324
|
init_types5();
|
|
318326
318325
|
init_registry();
|
|
318327
318326
|
init_errors();
|
|
@@ -328476,7 +328475,7 @@ var init_package = __esm({
|
|
|
328476
328475
|
"packages/runtime/package.json"() {
|
|
328477
328476
|
package_default = {
|
|
328478
328477
|
name: "@popcraft/runtime",
|
|
328479
|
-
version: "0.
|
|
328478
|
+
version: "0.50.1",
|
|
328480
328479
|
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.",
|
|
328481
328480
|
license: "MIT",
|
|
328482
328481
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -353142,7 +353141,6 @@ function exportsOf(source3) {
|
|
|
353142
353141
|
var CODE_LIMITS, packageOf;
|
|
353143
353142
|
var init_source2 = __esm({
|
|
353144
353143
|
"lib/code/source.ts"() {
|
|
353145
|
-
"use strict";
|
|
353146
353144
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
353147
353145
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
353148
353146
|
}
|
|
@@ -353185,7 +353183,6 @@ function compileModule(module2) {
|
|
|
353185
353183
|
var import_sucrase, BUILT_IN, memo4;
|
|
353186
353184
|
var init_compile2 = __esm({
|
|
353187
353185
|
"lib/code/compile.ts"() {
|
|
353188
|
-
"use strict";
|
|
353189
353186
|
import_sucrase = __toESM(require_dist2());
|
|
353190
353187
|
init_source2();
|
|
353191
353188
|
init_source2();
|
|
@@ -414057,7 +414054,7 @@ init_resources();
|
|
|
414057
414054
|
init_desktop();
|
|
414058
414055
|
init_hypery();
|
|
414059
414056
|
import { createInterface } from "node:readline";
|
|
414060
|
-
var VERSION2 = "0.
|
|
414057
|
+
var VERSION2 = "0.50.1";
|
|
414061
414058
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
414062
414059
|
|
|
414063
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.50.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.
|
|
37
|
+
"@popcraft/kit": "0.50.1"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|