@popcraft/cli 0.55.2 → 0.55.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 +18 -13
- 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.55.
|
|
1201
|
+
const headers = { "user-agent": `popcraft-cli/${"0.55.3"}`, ...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 {
|
|
@@ -29235,7 +29235,6 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
|
|
|
29235
29235
|
}
|
|
29236
29236
|
var init_selection_bounds = __esm({
|
|
29237
29237
|
"lib/editor/selection-bounds.ts"() {
|
|
29238
|
-
"use strict";
|
|
29239
29238
|
init_scene_graph();
|
|
29240
29239
|
init_transform();
|
|
29241
29240
|
}
|
|
@@ -264063,7 +264062,6 @@ function onTabMessage(fn) {
|
|
|
264063
264062
|
var EDITOR_HOME, localDocPath, cloudFilePath, CHANNEL2, channel2;
|
|
264064
264063
|
var init_tab_mode = __esm({
|
|
264065
264064
|
"lib/desktop/tab-mode.ts"() {
|
|
264066
|
-
"use strict";
|
|
264067
264065
|
EDITOR_HOME = "/home";
|
|
264068
264066
|
localDocPath = (docId) => `${EDITOR_HOME}?doc=${encodeURIComponent(docId)}`;
|
|
264069
264067
|
cloudFilePath = (key5) => `/pop/${encodeURIComponent(key5)}`;
|
|
@@ -268505,6 +268503,7 @@ function formatLimit(key5, max3) {
|
|
|
268505
268503
|
var formatBytes;
|
|
268506
268504
|
var init_limits2 = __esm({
|
|
268507
268505
|
"lib/billing/limits.ts"() {
|
|
268506
|
+
"use strict";
|
|
268508
268507
|
init_format();
|
|
268509
268508
|
init_plans();
|
|
268510
268509
|
formatBytes = formatFileSize;
|
|
@@ -268695,9 +268694,19 @@ var init_plans = __esm({
|
|
|
268695
268694
|
});
|
|
268696
268695
|
|
|
268697
268696
|
// lib/billing/purchases.ts
|
|
268697
|
+
function inPlayApp() {
|
|
268698
|
+
if (typeof window === "undefined" || typeof document === "undefined") return false;
|
|
268699
|
+
const fromApp = document.referrer.startsWith("android-app://app.popcraft");
|
|
268700
|
+
try {
|
|
268701
|
+
if (fromApp) sessionStorage.setItem(PLAY_APP_KEY, "1");
|
|
268702
|
+
return fromApp || sessionStorage.getItem(PLAY_APP_KEY) === "1";
|
|
268703
|
+
} catch {
|
|
268704
|
+
return fromApp;
|
|
268705
|
+
}
|
|
268706
|
+
}
|
|
268698
268707
|
function purchaseChannel() {
|
|
268699
268708
|
const store6 = storePlatform();
|
|
268700
|
-
if (store6 === null) return "web";
|
|
268709
|
+
if (store6 === null) return inPlayApp() ? null : "web";
|
|
268701
268710
|
return store6 === "ios" || store6 === "macos" ? "app_store" : null;
|
|
268702
268711
|
}
|
|
268703
268712
|
function purchasesAllowed() {
|
|
@@ -268712,10 +268721,12 @@ function inAppPurchases() {
|
|
|
268712
268721
|
function limitMessageHere(d) {
|
|
268713
268722
|
return limitMessage(plansForSale() ? d : { ...d, upgradeTo: null });
|
|
268714
268723
|
}
|
|
268724
|
+
var PLAY_APP_KEY;
|
|
268715
268725
|
var init_purchases = __esm({
|
|
268716
268726
|
"lib/billing/purchases.ts"() {
|
|
268717
268727
|
init_tauri();
|
|
268718
268728
|
init_plans();
|
|
268729
|
+
PLAY_APP_KEY = "pc:play-app";
|
|
268719
268730
|
}
|
|
268720
268731
|
});
|
|
268721
268732
|
|
|
@@ -269038,6 +269049,7 @@ function planEntryAction({ home }) {
|
|
|
269038
269049
|
var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
|
|
269039
269050
|
var init_team = __esm({
|
|
269040
269051
|
"lib/client/cloud/team.ts"() {
|
|
269052
|
+
"use strict";
|
|
269041
269053
|
init_esm();
|
|
269042
269054
|
init_api4();
|
|
269043
269055
|
init_session();
|
|
@@ -279201,7 +279213,6 @@ async function prepareTemplate(t3) {
|
|
|
279201
279213
|
var templateMediaSources, MEDIA_FETCH_TIMEOUT_MS2, PREPARE_BUDGET_MS, MEDIA_CONCURRENCY, timeoutOf;
|
|
279202
279214
|
var init_use = __esm({
|
|
279203
279215
|
"lib/templates/use.ts"() {
|
|
279204
|
-
"use strict";
|
|
279205
279216
|
init_capture();
|
|
279206
279217
|
templateMediaSources = (t3, hash3) => [
|
|
279207
279218
|
`/templates/media/${hash3}`,
|
|
@@ -312703,7 +312714,6 @@ function decodeSource(key5, label3) {
|
|
|
312703
312714
|
var DECODE_CACHE_BYTES, cache7, pending4, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
|
|
312704
312715
|
var init_audio_decode = __esm({
|
|
312705
312716
|
"lib/motion/audio-decode.ts"() {
|
|
312706
|
-
"use strict";
|
|
312707
312717
|
init_media_store();
|
|
312708
312718
|
init_audio_plan();
|
|
312709
312719
|
init_time_stretch();
|
|
@@ -333996,7 +334006,7 @@ var init_package = __esm({
|
|
|
333996
334006
|
"packages/runtime/package.json"() {
|
|
333997
334007
|
package_default = {
|
|
333998
334008
|
name: "@popcraft/runtime",
|
|
333999
|
-
version: "0.55.
|
|
334009
|
+
version: "0.55.3",
|
|
334000
334010
|
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.",
|
|
334001
334011
|
license: "MIT",
|
|
334002
334012
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -358662,7 +358672,6 @@ function exportsOf(source3) {
|
|
|
358662
358672
|
var CODE_LIMITS, packageOf;
|
|
358663
358673
|
var init_source2 = __esm({
|
|
358664
358674
|
"lib/code/source.ts"() {
|
|
358665
|
-
"use strict";
|
|
358666
358675
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
358667
358676
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
358668
358677
|
}
|
|
@@ -358705,7 +358714,6 @@ function compileModule(module2) {
|
|
|
358705
358714
|
var import_sucrase, BUILT_IN, memo4;
|
|
358706
358715
|
var init_compile2 = __esm({
|
|
358707
358716
|
"lib/code/compile.ts"() {
|
|
358708
|
-
"use strict";
|
|
358709
358717
|
import_sucrase = __toESM(require_dist2());
|
|
358710
358718
|
init_source2();
|
|
358711
358719
|
init_source2();
|
|
@@ -373136,7 +373144,6 @@ var init_doc2 = __esm({
|
|
|
373136
373144
|
var POSTER_KEY, MAX_PREVIEW_BYTES2, PREVIEW_STILL_TYPE, previewPath;
|
|
373137
373145
|
var init_motion3 = __esm({
|
|
373138
373146
|
"lib/marketplace/motion.ts"() {
|
|
373139
|
-
"use strict";
|
|
373140
373147
|
init_instances2();
|
|
373141
373148
|
POSTER_KEY = "poster";
|
|
373142
373149
|
MAX_PREVIEW_BYTES2 = 4 * 1024 * 1024;
|
|
@@ -406584,7 +406591,6 @@ function placeDesign(doc2, built, source3, size6, name2, at5) {
|
|
|
406584
406591
|
var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
|
|
406585
406592
|
var init_build3 = __esm({
|
|
406586
406593
|
"lib/agent/design-script/build.ts"() {
|
|
406587
|
-
"use strict";
|
|
406588
406594
|
init_hash();
|
|
406589
406595
|
init_scene_graph();
|
|
406590
406596
|
init_libraries();
|
|
@@ -406614,7 +406620,6 @@ function designFrameOf(doc2, id3) {
|
|
|
406614
406620
|
}
|
|
406615
406621
|
var init_locate = __esm({
|
|
406616
406622
|
"lib/agent/design-script/locate.ts"() {
|
|
406617
|
-
"use strict";
|
|
406618
406623
|
}
|
|
406619
406624
|
});
|
|
406620
406625
|
|
|
@@ -419411,7 +419416,7 @@ init_resources();
|
|
|
419411
419416
|
init_desktop();
|
|
419412
419417
|
init_hypery();
|
|
419413
419418
|
import { createInterface } from "node:readline";
|
|
419414
|
-
var VERSION2 = "0.55.
|
|
419419
|
+
var VERSION2 = "0.55.3";
|
|
419415
419420
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
419416
419421
|
|
|
419417
419422
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.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.55.
|
|
37
|
+
"@popcraft/kit": "0.55.3"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|