@popcraft/cli 0.49.0 → 0.50.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 +7 -5
- 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.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 {
|
|
@@ -249151,6 +249151,7 @@ function beforeWrite() {
|
|
|
249151
249151
|
var leave;
|
|
249152
249152
|
var init_read_only = __esm({
|
|
249153
249153
|
"lib/editor/modes/read-only.ts"() {
|
|
249154
|
+
"use strict";
|
|
249154
249155
|
leave = null;
|
|
249155
249156
|
}
|
|
249156
249157
|
});
|
|
@@ -257089,6 +257090,7 @@ function followPeers(peers) {
|
|
|
257089
257090
|
var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
|
|
257090
257091
|
var init_presence = __esm({
|
|
257091
257092
|
"lib/collab/presence.ts"() {
|
|
257093
|
+
"use strict";
|
|
257092
257094
|
init_esm();
|
|
257093
257095
|
init_editor_store();
|
|
257094
257096
|
init_status_announcements();
|
|
@@ -262658,6 +262660,7 @@ function formatLimit(key5, max3) {
|
|
|
262658
262660
|
var formatBytes;
|
|
262659
262661
|
var init_limits2 = __esm({
|
|
262660
262662
|
"lib/billing/limits.ts"() {
|
|
262663
|
+
"use strict";
|
|
262661
262664
|
init_format();
|
|
262662
262665
|
init_plans();
|
|
262663
262666
|
formatBytes = formatFileSize;
|
|
@@ -317480,6 +317483,7 @@ async function selectionReferenceImages(doc2, selection, opts = {}) {
|
|
|
317480
317483
|
var FIT_QUALITIES, FIT_SCALES, blobToDataUrl;
|
|
317481
317484
|
var init_reference_images = __esm({
|
|
317482
317485
|
"lib/ai/reference-images.ts"() {
|
|
317486
|
+
"use strict";
|
|
317483
317487
|
init_export();
|
|
317484
317488
|
init_selection_bounds();
|
|
317485
317489
|
init_renderer_registry();
|
|
@@ -328476,7 +328480,7 @@ var init_package = __esm({
|
|
|
328476
328480
|
"packages/runtime/package.json"() {
|
|
328477
328481
|
package_default = {
|
|
328478
328482
|
name: "@popcraft/runtime",
|
|
328479
|
-
version: "0.
|
|
328483
|
+
version: "0.50.0",
|
|
328480
328484
|
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
328485
|
license: "MIT",
|
|
328482
328486
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -353142,7 +353146,6 @@ function exportsOf(source3) {
|
|
|
353142
353146
|
var CODE_LIMITS, packageOf;
|
|
353143
353147
|
var init_source2 = __esm({
|
|
353144
353148
|
"lib/code/source.ts"() {
|
|
353145
|
-
"use strict";
|
|
353146
353149
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
353147
353150
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
353148
353151
|
}
|
|
@@ -353185,7 +353188,6 @@ function compileModule(module2) {
|
|
|
353185
353188
|
var import_sucrase, BUILT_IN, memo4;
|
|
353186
353189
|
var init_compile2 = __esm({
|
|
353187
353190
|
"lib/code/compile.ts"() {
|
|
353188
|
-
"use strict";
|
|
353189
353191
|
import_sucrase = __toESM(require_dist2());
|
|
353190
353192
|
init_source2();
|
|
353191
353193
|
init_source2();
|
|
@@ -414057,7 +414059,7 @@ init_resources();
|
|
|
414057
414059
|
init_desktop();
|
|
414058
414060
|
init_hypery();
|
|
414059
414061
|
import { createInterface } from "node:readline";
|
|
414060
|
-
var VERSION2 = "0.
|
|
414062
|
+
var VERSION2 = "0.50.0";
|
|
414061
414063
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
414062
414064
|
|
|
414063
414065
|
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.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.50.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|