@popcraft/cli 0.38.1 → 0.38.2
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 +4 -8
- 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.38.
|
|
1199
|
+
const headers = { "user-agent": `popcraft-cli/${"0.38.2"}`, ...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 {
|
|
@@ -96089,6 +96089,7 @@ async function sha256Prefix(bytes2) {
|
|
|
96089
96089
|
}
|
|
96090
96090
|
var init_media_hash = __esm({
|
|
96091
96091
|
"lib/storage/media-hash.ts"() {
|
|
96092
|
+
"use strict";
|
|
96092
96093
|
}
|
|
96093
96094
|
});
|
|
96094
96095
|
|
|
@@ -311195,7 +311196,6 @@ function downloadBlob(blob, filename) {
|
|
|
311195
311196
|
}
|
|
311196
311197
|
var init_download = __esm({
|
|
311197
311198
|
"lib/io/download.ts"() {
|
|
311198
|
-
"use strict";
|
|
311199
311199
|
}
|
|
311200
311200
|
});
|
|
311201
311201
|
|
|
@@ -311415,7 +311415,6 @@ function creditLine(c2) {
|
|
|
311415
311415
|
var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
|
|
311416
311416
|
var init_stock = __esm({
|
|
311417
311417
|
"lib/photos/stock.ts"() {
|
|
311418
|
-
"use strict";
|
|
311419
311418
|
MAX_PHOTO_PAGE = 12;
|
|
311420
311419
|
MAX_PHOTO_QUERY = 200;
|
|
311421
311420
|
UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -327332,7 +327331,7 @@ var init_package = __esm({
|
|
|
327332
327331
|
"packages/runtime/package.json"() {
|
|
327333
327332
|
package_default = {
|
|
327334
327333
|
name: "@popcraft/runtime",
|
|
327335
|
-
version: "0.38.
|
|
327334
|
+
version: "0.38.2",
|
|
327336
327335
|
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.",
|
|
327337
327336
|
license: "MIT",
|
|
327338
327337
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -351998,7 +351997,6 @@ function exportsOf(source3) {
|
|
|
351998
351997
|
var CODE_LIMITS, packageOf;
|
|
351999
351998
|
var init_source2 = __esm({
|
|
352000
351999
|
"lib/code/source.ts"() {
|
|
352001
|
-
"use strict";
|
|
352002
352000
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
352003
352001
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
352004
352002
|
}
|
|
@@ -352041,7 +352039,6 @@ function compileModule(module2) {
|
|
|
352041
352039
|
var import_sucrase, BUILT_IN, memo4;
|
|
352042
352040
|
var init_compile2 = __esm({
|
|
352043
352041
|
"lib/code/compile.ts"() {
|
|
352044
|
-
"use strict";
|
|
352045
352042
|
import_sucrase = __toESM(require_dist2());
|
|
352046
352043
|
init_source2();
|
|
352047
352044
|
init_source2();
|
|
@@ -361065,7 +361062,6 @@ var init_delete_current_file = __esm({
|
|
|
361065
361062
|
var storeOpsSeam;
|
|
361066
361063
|
var init_seams = __esm({
|
|
361067
361064
|
"lib/commands/seams.ts"() {
|
|
361068
|
-
"use strict";
|
|
361069
361065
|
storeOpsSeam = (st) => ({
|
|
361070
361066
|
booleanOperation: (op4) => st().booleanOperation(op4),
|
|
361071
361067
|
flatten: () => st().flattenSelection(),
|
|
@@ -410935,7 +410931,7 @@ init_resources();
|
|
|
410935
410931
|
init_desktop();
|
|
410936
410932
|
init_hypery();
|
|
410937
410933
|
import { createInterface } from "node:readline";
|
|
410938
|
-
var VERSION2 = "0.38.
|
|
410934
|
+
var VERSION2 = "0.38.2";
|
|
410939
410935
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
410940
410936
|
|
|
410941
410937
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.2",
|
|
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.38.
|
|
37
|
+
"@popcraft/kit": "0.38.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|