@popcraft/cli 0.27.0 → 0.28.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 +8 -7
- package/package.json +2 -2
package/dist/popcraft.mjs
CHANGED
|
@@ -1188,7 +1188,7 @@ function operations(spec = openapi) {
|
|
|
1188
1188
|
}
|
|
1189
1189
|
async function call(target2, method, path, opts = {}) {
|
|
1190
1190
|
const qs = new URLSearchParams(opts.query ?? {}).toString();
|
|
1191
|
-
const headers = { "user-agent": `popcraft-cli/${"0.
|
|
1191
|
+
const headers = { "user-agent": `popcraft-cli/${"0.28.0"}`, ...opts.headers };
|
|
1192
1192
|
if (target2.token) headers.authorization = `Bearer ${target2.token}`;
|
|
1193
1193
|
if (opts.contentType) headers["content-type"] = opts.contentType;
|
|
1194
1194
|
try {
|
|
@@ -246588,6 +246588,7 @@ function resyncText(doc2, ids2) {
|
|
|
246588
246588
|
var isVirtualId;
|
|
246589
246589
|
var init_invariants2 = __esm({
|
|
246590
246590
|
"lib/document/invariants.ts"() {
|
|
246591
|
+
"use strict";
|
|
246591
246592
|
init_auto_layout();
|
|
246592
246593
|
init_scene_graph();
|
|
246593
246594
|
init_text_bounds();
|
|
@@ -261153,6 +261154,7 @@ function planEntryAction({ home }) {
|
|
|
261153
261154
|
var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
|
|
261154
261155
|
var init_team = __esm({
|
|
261155
261156
|
"lib/client/cloud/team.ts"() {
|
|
261157
|
+
"use strict";
|
|
261156
261158
|
init_esm();
|
|
261157
261159
|
init_api4();
|
|
261158
261160
|
init_session();
|
|
@@ -309648,6 +309650,7 @@ async function dispatchShaped(key5, options) {
|
|
|
309648
309650
|
var onViolation;
|
|
309649
309651
|
var init_dispatch = __esm({
|
|
309650
309652
|
"lib/commands/dispatch.ts"() {
|
|
309653
|
+
"use strict";
|
|
309651
309654
|
init_errors();
|
|
309652
309655
|
init_registry();
|
|
309653
309656
|
init_confirm();
|
|
@@ -309818,7 +309821,6 @@ function downloadBlob(blob, filename) {
|
|
|
309818
309821
|
}
|
|
309819
309822
|
var init_download = __esm({
|
|
309820
309823
|
"lib/io/download.ts"() {
|
|
309821
|
-
"use strict";
|
|
309822
309824
|
}
|
|
309823
309825
|
});
|
|
309824
309826
|
|
|
@@ -310038,7 +310040,6 @@ function creditLine(c2) {
|
|
|
310038
310040
|
var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
|
|
310039
310041
|
var init_stock = __esm({
|
|
310040
310042
|
"lib/photos/stock.ts"() {
|
|
310041
|
-
"use strict";
|
|
310042
310043
|
MAX_PHOTO_PAGE = 12;
|
|
310043
310044
|
MAX_PHOTO_QUERY = 200;
|
|
310044
310045
|
UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -325934,7 +325935,7 @@ var init_package = __esm({
|
|
|
325934
325935
|
"packages/runtime/package.json"() {
|
|
325935
325936
|
package_default = {
|
|
325936
325937
|
name: "@popcraft/runtime",
|
|
325937
|
-
version: "0.
|
|
325938
|
+
version: "0.28.0",
|
|
325938
325939
|
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.",
|
|
325939
325940
|
license: "MIT",
|
|
325940
325941
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -350600,7 +350601,6 @@ function exportsOf(source3) {
|
|
|
350600
350601
|
var CODE_LIMITS, packageOf;
|
|
350601
350602
|
var init_source2 = __esm({
|
|
350602
350603
|
"lib/code/source.ts"() {
|
|
350603
|
-
"use strict";
|
|
350604
350604
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
350605
350605
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
350606
350606
|
}
|
|
@@ -350643,7 +350643,6 @@ function compileModule(module2) {
|
|
|
350643
350643
|
var import_sucrase, BUILT_IN, memo4;
|
|
350644
350644
|
var init_compile2 = __esm({
|
|
350645
350645
|
"lib/code/compile.ts"() {
|
|
350646
|
-
"use strict";
|
|
350647
350646
|
import_sucrase = __toESM(require_dist2());
|
|
350648
350647
|
init_source2();
|
|
350649
350648
|
init_source2();
|
|
@@ -396051,6 +396050,7 @@ function record(source, namespaces, globals, limits) {
|
|
|
396051
396050
|
var HELPER_NAMES;
|
|
396052
396051
|
var init_helper_names = __esm({
|
|
396053
396052
|
"lib/agent/design-script/helper-names.ts"() {
|
|
396053
|
+
"use strict";
|
|
396054
396054
|
HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
|
|
396055
396055
|
}
|
|
396056
396056
|
});
|
|
@@ -396433,6 +396433,7 @@ function designRecorder() {
|
|
|
396433
396433
|
var installed;
|
|
396434
396434
|
var init_recorders = __esm({
|
|
396435
396435
|
"lib/agent/design-script/recorders.ts"() {
|
|
396436
|
+
"use strict";
|
|
396436
396437
|
installed = null;
|
|
396437
396438
|
}
|
|
396438
396439
|
});
|
|
@@ -408735,7 +408736,7 @@ init_resources();
|
|
|
408735
408736
|
init_desktop();
|
|
408736
408737
|
init_hypery();
|
|
408737
408738
|
import { createInterface } from "node:readline";
|
|
408738
|
-
var VERSION2 = "0.
|
|
408739
|
+
var VERSION2 = "0.28.0";
|
|
408739
408740
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
408740
408741
|
|
|
408741
408742
|
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.28.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.28.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|