@popcraft/cli 0.20.2 → 0.20.3
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 +9 -4
- package/package.json +2 -2
package/dist/popcraft.mjs
CHANGED
|
@@ -1186,7 +1186,7 @@ function operations(spec = openapi) {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
async function call(target2, method, path, opts = {}) {
|
|
1188
1188
|
const qs = new URLSearchParams(opts.query ?? {}).toString();
|
|
1189
|
-
const headers = { "user-agent": `popcraft-cli/${"0.20.
|
|
1189
|
+
const headers = { "user-agent": `popcraft-cli/${"0.20.3"}`, ...opts.headers };
|
|
1190
1190
|
if (target2.token) headers.authorization = `Bearer ${target2.token}`;
|
|
1191
1191
|
if (opts.contentType) headers["content-type"] = opts.contentType;
|
|
1192
1192
|
try {
|
|
@@ -304671,6 +304671,7 @@ async function dispatchShaped(key5, options) {
|
|
|
304671
304671
|
var onViolation;
|
|
304672
304672
|
var init_dispatch = __esm({
|
|
304673
304673
|
"lib/commands/dispatch.ts"() {
|
|
304674
|
+
"use strict";
|
|
304674
304675
|
init_errors();
|
|
304675
304676
|
init_registry();
|
|
304676
304677
|
init_confirm();
|
|
@@ -310996,7 +310997,6 @@ function agentToolList() {
|
|
|
310996
310997
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
310997
310998
|
var init_agent = __esm({
|
|
310998
310999
|
"lib/commands/agent.ts"() {
|
|
310999
|
-
"use strict";
|
|
311000
311000
|
init_types5();
|
|
311001
311001
|
init_registry();
|
|
311002
311002
|
init_errors();
|
|
@@ -320600,7 +320600,7 @@ var init_package = __esm({
|
|
|
320600
320600
|
"packages/runtime/package.json"() {
|
|
320601
320601
|
package_default = {
|
|
320602
320602
|
name: "@popcraft/runtime",
|
|
320603
|
-
version: "0.20.
|
|
320603
|
+
version: "0.20.3",
|
|
320604
320604
|
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.",
|
|
320605
320605
|
license: "MIT",
|
|
320606
320606
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -345259,6 +345259,7 @@ function exportsOf(source3) {
|
|
|
345259
345259
|
var CODE_LIMITS, packageOf;
|
|
345260
345260
|
var init_source2 = __esm({
|
|
345261
345261
|
"lib/code/source.ts"() {
|
|
345262
|
+
"use strict";
|
|
345262
345263
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
345263
345264
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
345264
345265
|
}
|
|
@@ -345301,6 +345302,7 @@ function compileModule(module2) {
|
|
|
345301
345302
|
var import_sucrase, BUILT_IN, memo4;
|
|
345302
345303
|
var init_compile2 = __esm({
|
|
345303
345304
|
"lib/code/compile.ts"() {
|
|
345305
|
+
"use strict";
|
|
345304
345306
|
import_sucrase = __toESM(require_dist2());
|
|
345305
345307
|
init_source2();
|
|
345306
345308
|
init_source2();
|
|
@@ -354040,6 +354042,7 @@ var init_publish = __esm({
|
|
|
354040
354042
|
var storeOpsSeam;
|
|
354041
354043
|
var init_seams = __esm({
|
|
354042
354044
|
"lib/commands/seams.ts"() {
|
|
354045
|
+
"use strict";
|
|
354043
354046
|
storeOpsSeam = (st) => ({
|
|
354044
354047
|
booleanOperation: (op4) => st().booleanOperation(op4),
|
|
354045
354048
|
flatten: () => st().flattenSelection(),
|
|
@@ -390531,6 +390534,7 @@ function record(source, namespaces, globals, limits) {
|
|
|
390531
390534
|
var HELPER_NAMES;
|
|
390532
390535
|
var init_helper_names = __esm({
|
|
390533
390536
|
"lib/agent/design-script/helper-names.ts"() {
|
|
390537
|
+
"use strict";
|
|
390534
390538
|
HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
|
|
390535
390539
|
}
|
|
390536
390540
|
});
|
|
@@ -390913,6 +390917,7 @@ function designRecorder() {
|
|
|
390913
390917
|
var installed;
|
|
390914
390918
|
var init_recorders = __esm({
|
|
390915
390919
|
"lib/agent/design-script/recorders.ts"() {
|
|
390920
|
+
"use strict";
|
|
390916
390921
|
installed = null;
|
|
390917
390922
|
}
|
|
390918
390923
|
});
|
|
@@ -403057,7 +403062,7 @@ init_resources();
|
|
|
403057
403062
|
init_desktop();
|
|
403058
403063
|
init_hypery();
|
|
403059
403064
|
import { createInterface } from "node:readline";
|
|
403060
|
-
var VERSION2 = "0.20.
|
|
403065
|
+
var VERSION2 = "0.20.3";
|
|
403061
403066
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
403062
403067
|
|
|
403063
403068
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.3",
|
|
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.20.
|
|
37
|
+
"@popcraft/kit": "0.20.3"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|