@popcraft/cli 0.58.0 → 0.58.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 +19 -10
- package/package.json +2 -2
package/dist/popcraft.mjs
CHANGED
|
@@ -1198,7 +1198,7 @@ function operations(spec = openapi) {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
async function call(target2, method, path, opts = {}) {
|
|
1200
1200
|
const qs = new URLSearchParams(opts.query ?? {}).toString();
|
|
1201
|
-
const headers = { "user-agent": `popcraft-cli/${"0.58.
|
|
1201
|
+
const headers = { "user-agent": `popcraft-cli/${"0.58.1"}`, ...opts.headers };
|
|
1202
1202
|
if (target2.token) headers.authorization = `Bearer ${target2.token}`;
|
|
1203
1203
|
if (opts.contentType) headers["content-type"] = opts.contentType;
|
|
1204
1204
|
try {
|
|
@@ -29244,7 +29244,6 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
|
|
|
29244
29244
|
}
|
|
29245
29245
|
var init_selection_bounds = __esm({
|
|
29246
29246
|
"lib/editor/selection-bounds.ts"() {
|
|
29247
|
-
"use strict";
|
|
29248
29247
|
init_scene_graph();
|
|
29249
29248
|
init_transform();
|
|
29250
29249
|
}
|
|
@@ -252585,6 +252584,7 @@ function hasMessage(key5) {
|
|
|
252585
252584
|
var current3, loading2, listeners2, formats, asts;
|
|
252586
252585
|
var init_runtime = __esm({
|
|
252587
252586
|
"lib/i18n/runtime.ts"() {
|
|
252587
|
+
"use strict";
|
|
252588
252588
|
init_intl_messageformat();
|
|
252589
252589
|
init_icu_messageformat_parser();
|
|
252590
252590
|
init_catalogs();
|
|
@@ -260773,7 +260773,6 @@ function resyncText(doc2, ids2) {
|
|
|
260773
260773
|
var isVirtualId;
|
|
260774
260774
|
var init_invariants2 = __esm({
|
|
260775
260775
|
"lib/document/invariants.ts"() {
|
|
260776
|
-
"use strict";
|
|
260777
260776
|
init_auto_layout();
|
|
260778
260777
|
init_scene_graph();
|
|
260779
260778
|
init_text_bounds();
|
|
@@ -261805,7 +261804,6 @@ function beforeWrite() {
|
|
|
261805
261804
|
var leave;
|
|
261806
261805
|
var init_read_only = __esm({
|
|
261807
261806
|
"lib/editor/modes/read-only.ts"() {
|
|
261808
|
-
"use strict";
|
|
261809
261807
|
leave = null;
|
|
261810
261808
|
}
|
|
261811
261809
|
});
|
|
@@ -267059,6 +267057,7 @@ function mergeFonts(fonts, incoming) {
|
|
|
267059
267057
|
var fontWeightOf, fontStyleOf, sameSlot, hashOf, documentFontHashes;
|
|
267060
267058
|
var init_document_fonts = __esm({
|
|
267061
267059
|
"lib/fonts/document-fonts.ts"() {
|
|
267060
|
+
"use strict";
|
|
267062
267061
|
init_media_store();
|
|
267063
267062
|
init_media_hash();
|
|
267064
267063
|
fontWeightOf = (f2) => f2.weight ?? 400;
|
|
@@ -267471,7 +267470,6 @@ function followPeers(peers) {
|
|
|
267471
267470
|
var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
|
|
267472
267471
|
var init_presence = __esm({
|
|
267473
267472
|
"lib/collab/presence.ts"() {
|
|
267474
|
-
"use strict";
|
|
267475
267473
|
init_esm();
|
|
267476
267474
|
init_editor_store();
|
|
267477
267475
|
init_status_announcements();
|
|
@@ -273791,7 +273789,6 @@ function planEntryAction({ home }) {
|
|
|
273791
273789
|
var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
|
|
273792
273790
|
var init_team = __esm({
|
|
273793
273791
|
"lib/client/cloud/team.ts"() {
|
|
273794
|
-
"use strict";
|
|
273795
273792
|
init_esm();
|
|
273796
273793
|
init_api4();
|
|
273797
273794
|
init_session();
|
|
@@ -323261,6 +323258,7 @@ function creditLine(c2) {
|
|
|
323261
323258
|
var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
|
|
323262
323259
|
var init_stock = __esm({
|
|
323263
323260
|
"lib/photos/stock.ts"() {
|
|
323261
|
+
"use strict";
|
|
323264
323262
|
MAX_PHOTO_PAGE = 12;
|
|
323265
323263
|
MAX_PHOTO_QUERY = 200;
|
|
323266
323264
|
UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -328173,6 +328171,7 @@ async function selectionReferenceImages(doc2, selection, opts = {}) {
|
|
|
328173
328171
|
var FIT_QUALITIES, FIT_SCALES, blobToDataUrl;
|
|
328174
328172
|
var init_reference_images = __esm({
|
|
328175
328173
|
"lib/ai/reference-images.ts"() {
|
|
328174
|
+
"use strict";
|
|
328176
328175
|
init_export();
|
|
328177
328176
|
init_selection_bounds();
|
|
328178
328177
|
init_renderer_registry();
|
|
@@ -339075,7 +339074,7 @@ var init_package = __esm({
|
|
|
339075
339074
|
"packages/runtime/package.json"() {
|
|
339076
339075
|
package_default = {
|
|
339077
339076
|
name: "@popcraft/runtime",
|
|
339078
|
-
version: "0.58.
|
|
339077
|
+
version: "0.58.1",
|
|
339079
339078
|
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.",
|
|
339080
339079
|
license: "MIT",
|
|
339081
339080
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -363741,6 +363740,7 @@ function exportsOf(source3) {
|
|
|
363741
363740
|
var CODE_LIMITS, packageOf;
|
|
363742
363741
|
var init_source2 = __esm({
|
|
363743
363742
|
"lib/code/source.ts"() {
|
|
363743
|
+
"use strict";
|
|
363744
363744
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
363745
363745
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
363746
363746
|
}
|
|
@@ -363783,6 +363783,7 @@ function compileModule(module2) {
|
|
|
363783
363783
|
var import_sucrase, BUILT_IN, memo7;
|
|
363784
363784
|
var init_compile2 = __esm({
|
|
363785
363785
|
"lib/code/compile.ts"() {
|
|
363786
|
+
"use strict";
|
|
363786
363787
|
import_sucrase = __toESM(require_dist2());
|
|
363787
363788
|
init_source2();
|
|
363788
363789
|
init_source2();
|
|
@@ -424949,9 +424950,14 @@ async function launch2(headful) {
|
|
|
424949
424950
|
const profile = await mkdtemp(join5(tmpdir(), "popcraft-cli-"));
|
|
424950
424951
|
const browser = await puppeteer.launch({
|
|
424951
424952
|
headless: !headful,
|
|
424953
|
+
// A long export on a software renderer outlasts puppeteer's 180 s default for one page.evaluate.
|
|
424954
|
+
protocolTimeout: 0,
|
|
424952
424955
|
userDataDir: profile,
|
|
424953
424956
|
// The same switches as the docs screenshots: WebGPU on a software adapter, so a machine with no GPU still renders.
|
|
424954
|
-
|
|
424957
|
+
// Linux with no GPU (containers, CI, cloud workers): a WebGPU canvas crashes the GPU process on its first present
|
|
424958
|
+
// ("Could not find SharedImageBackingFactory … WebgpuSwapChainTexture", then "A valid external Instance reference
|
|
424959
|
+
// no longer exists") unless the compositor runs ANGLE on Vulkan, which can share the swap-chain image.
|
|
424960
|
+
args: ["--enable-unsafe-webgpu", ...process.platform === "linux" ? ["--enable-features=Vulkan,DefaultANGLEVulkan,VulkanFromANGLE", "--use-angle=vulkan"] : ["--enable-features=Vulkan"], "--enable-unsafe-swiftshader", "--hide-scrollbars", "--mute-audio", "--autoplay-policy=no-user-gesture-required", ...process.env.CI ? ["--no-sandbox"] : []]
|
|
424955
424961
|
});
|
|
424956
424962
|
return { browser, close: async () => {
|
|
424957
424963
|
await browser.close();
|
|
@@ -425775,7 +425781,10 @@ async function openEditor(base, o = {}) {
|
|
|
425775
425781
|
userDataDir: profile,
|
|
425776
425782
|
// A film export is one evaluate that runs for minutes (the hero, the trailer): puppeteer's 3-minute default cut it.
|
|
425777
425783
|
protocolTimeout: 15 * 6e4,
|
|
425778
|
-
|
|
425784
|
+
// Linux with no GPU (containers, CI, cloud workers): a WebGPU canvas crashes the GPU process on its first present
|
|
425785
|
+
// ("Could not find SharedImageBackingFactory … WebgpuSwapChainTexture", then "A valid external Instance reference
|
|
425786
|
+
// no longer exists") unless the compositor runs ANGLE on Vulkan, which can share the swap-chain image.
|
|
425787
|
+
args: ["--enable-unsafe-webgpu", ...process.platform === "linux" ? ["--enable-features=Vulkan,DefaultANGLEVulkan,VulkanFromANGLE", "--use-angle=vulkan"] : ["--enable-features=Vulkan"], "--enable-unsafe-swiftshader", "--hide-scrollbars", ...process.env.CI ? ["--no-sandbox"] : []]
|
|
425779
425788
|
});
|
|
425780
425789
|
let page;
|
|
425781
425790
|
const newTab = async () => {
|
|
@@ -426573,7 +426582,7 @@ init_resources();
|
|
|
426573
426582
|
init_desktop();
|
|
426574
426583
|
init_hypery();
|
|
426575
426584
|
import { createInterface } from "node:readline";
|
|
426576
|
-
var VERSION2 = "0.58.
|
|
426585
|
+
var VERSION2 = "0.58.1";
|
|
426577
426586
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
426578
426587
|
|
|
426579
426588
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.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.58.
|
|
37
|
+
"@popcraft/kit": "0.58.1"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|