@popcraft/cli 0.55.1 → 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 +20 -14
- 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 {
|
|
@@ -176231,7 +176231,6 @@ var init_frame_labels = __esm({
|
|
|
176231
176231
|
var MODE_PROFILES, isTimelineMode, FOCUS_PROFILES, MODE_LIST, FOCUS_BY_PRECEDENCE;
|
|
176232
176232
|
var init_registry2 = __esm({
|
|
176233
176233
|
"lib/editor/modes/registry.ts"() {
|
|
176234
|
-
"use strict";
|
|
176235
176234
|
MODE_PROFILES = {
|
|
176236
176235
|
DESIGN: {
|
|
176237
176236
|
id: "DESIGN",
|
|
@@ -250456,7 +250455,6 @@ function relinkCopies(doc2, copies) {
|
|
|
250456
250455
|
var TEXT_PATH_SOURCE_TYPES, isPathSource;
|
|
250457
250456
|
var init_text_links = __esm({
|
|
250458
250457
|
"lib/document/text-links.ts"() {
|
|
250459
|
-
"use strict";
|
|
250460
250458
|
init_transform();
|
|
250461
250459
|
TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
|
|
250462
250460
|
isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
|
|
@@ -262189,7 +262187,6 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
|
|
|
262189
262187
|
var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
|
|
262190
262188
|
var init_shader_presets = __esm({
|
|
262191
262189
|
"lib/engine/shader-presets.ts"() {
|
|
262192
|
-
"use strict";
|
|
262193
262190
|
init_shader_graph();
|
|
262194
262191
|
init_shader_graph_presets();
|
|
262195
262192
|
init_shader_presets_legacy();
|
|
@@ -263993,6 +263990,7 @@ async function docExists(id3) {
|
|
|
263993
263990
|
var INDEX_KEY, docKey, thumbKey, THUMB_MAX_BYTES, THUMB_TYPES, LEGACY_DATA_URL, migrating, SPLIT_LAYOUT, nodeKey, WRITER, persisted, saving, deletedHere, keyval, keyvalStore;
|
|
263994
263991
|
var init_document_library = __esm({
|
|
263995
263992
|
"lib/storage/document-library.ts"() {
|
|
263993
|
+
"use strict";
|
|
263996
263994
|
init_idb();
|
|
263997
263995
|
init_media_types();
|
|
263998
263996
|
init_collapse_duplicates();
|
|
@@ -266471,7 +266469,6 @@ function retuneShaderAudio(node2, fillId) {
|
|
|
266471
266469
|
}
|
|
266472
266470
|
var init_shader_audio = __esm({
|
|
266473
266471
|
"lib/motion/shader-audio.ts"() {
|
|
266474
|
-
"use strict";
|
|
266475
266472
|
init_shader_params();
|
|
266476
266473
|
init_modifier_edit();
|
|
266477
266474
|
init_keys();
|
|
@@ -267236,6 +267233,7 @@ function breakpointView(state, doc2 = state.document) {
|
|
|
267236
267233
|
var storedDocument;
|
|
267237
267234
|
var init_view = __esm({
|
|
267238
267235
|
"lib/motion/view.ts"() {
|
|
267236
|
+
"use strict";
|
|
267239
267237
|
init_registry2();
|
|
267240
267238
|
init_motion_slice();
|
|
267241
267239
|
init_transport_clock();
|
|
@@ -268696,9 +268694,19 @@ var init_plans = __esm({
|
|
|
268696
268694
|
});
|
|
268697
268695
|
|
|
268698
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
|
+
}
|
|
268699
268707
|
function purchaseChannel() {
|
|
268700
268708
|
const store6 = storePlatform();
|
|
268701
|
-
if (store6 === null) return "web";
|
|
268709
|
+
if (store6 === null) return inPlayApp() ? null : "web";
|
|
268702
268710
|
return store6 === "ios" || store6 === "macos" ? "app_store" : null;
|
|
268703
268711
|
}
|
|
268704
268712
|
function purchasesAllowed() {
|
|
@@ -268713,10 +268721,12 @@ function inAppPurchases() {
|
|
|
268713
268721
|
function limitMessageHere(d) {
|
|
268714
268722
|
return limitMessage(plansForSale() ? d : { ...d, upgradeTo: null });
|
|
268715
268723
|
}
|
|
268724
|
+
var PLAY_APP_KEY;
|
|
268716
268725
|
var init_purchases = __esm({
|
|
268717
268726
|
"lib/billing/purchases.ts"() {
|
|
268718
268727
|
init_tauri();
|
|
268719
268728
|
init_plans();
|
|
268729
|
+
PLAY_APP_KEY = "pc:play-app";
|
|
268720
268730
|
}
|
|
268721
268731
|
});
|
|
268722
268732
|
|
|
@@ -269039,6 +269049,7 @@ function planEntryAction({ home }) {
|
|
|
269039
269049
|
var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
|
|
269040
269050
|
var init_team = __esm({
|
|
269041
269051
|
"lib/client/cloud/team.ts"() {
|
|
269052
|
+
"use strict";
|
|
269042
269053
|
init_esm();
|
|
269043
269054
|
init_api4();
|
|
269044
269055
|
init_session();
|
|
@@ -279202,7 +279213,6 @@ async function prepareTemplate(t3) {
|
|
|
279202
279213
|
var templateMediaSources, MEDIA_FETCH_TIMEOUT_MS2, PREPARE_BUDGET_MS, MEDIA_CONCURRENCY, timeoutOf;
|
|
279203
279214
|
var init_use = __esm({
|
|
279204
279215
|
"lib/templates/use.ts"() {
|
|
279205
|
-
"use strict";
|
|
279206
279216
|
init_capture();
|
|
279207
279217
|
templateMediaSources = (t3, hash3) => [
|
|
279208
279218
|
`/templates/media/${hash3}`,
|
|
@@ -312704,7 +312714,6 @@ function decodeSource(key5, label3) {
|
|
|
312704
312714
|
var DECODE_CACHE_BYTES, cache7, pending4, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
|
|
312705
312715
|
var init_audio_decode = __esm({
|
|
312706
312716
|
"lib/motion/audio-decode.ts"() {
|
|
312707
|
-
"use strict";
|
|
312708
312717
|
init_media_store();
|
|
312709
312718
|
init_audio_plan();
|
|
312710
312719
|
init_time_stretch();
|
|
@@ -317506,6 +317515,7 @@ function startCloudSync() {
|
|
|
317506
317515
|
var status, readOnlyDoc, activeLink, statusListeners, notice, urlArmed, opening, syncStatus, canEdit, uploaded, MEDIA_UPLOAD_PARALLEL, pushTimer, pushing, dirty, pendingMedia, collab, collabSession, collabAnonymous, uploadedThumbs, thumbCheckedAt, THUMB_EVERY_MS, THUMB_MIN_GAP_MS, putThumbnail, openingFiles, mediaHealed, SEEN_KEY, started2;
|
|
317507
317516
|
var init_sync2 = __esm({
|
|
317508
317517
|
"lib/client/cloud/sync.ts"() {
|
|
317518
|
+
"use strict";
|
|
317509
317519
|
init_kinds();
|
|
317510
317520
|
init_paint_repair();
|
|
317511
317521
|
init_migrate();
|
|
@@ -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();
|
|
@@ -406583,7 +406591,6 @@ function placeDesign(doc2, built, source3, size6, name2, at5) {
|
|
|
406583
406591
|
var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
|
|
406584
406592
|
var init_build3 = __esm({
|
|
406585
406593
|
"lib/agent/design-script/build.ts"() {
|
|
406586
|
-
"use strict";
|
|
406587
406594
|
init_hash();
|
|
406588
406595
|
init_scene_graph();
|
|
406589
406596
|
init_libraries();
|
|
@@ -406613,7 +406620,6 @@ function designFrameOf(doc2, id3) {
|
|
|
406613
406620
|
}
|
|
406614
406621
|
var init_locate = __esm({
|
|
406615
406622
|
"lib/agent/design-script/locate.ts"() {
|
|
406616
|
-
"use strict";
|
|
406617
406623
|
}
|
|
406618
406624
|
});
|
|
406619
406625
|
|
|
@@ -419410,7 +419416,7 @@ init_resources();
|
|
|
419410
419416
|
init_desktop();
|
|
419411
419417
|
init_hypery();
|
|
419412
419418
|
import { createInterface } from "node:readline";
|
|
419413
|
-
var VERSION2 = "0.55.
|
|
419419
|
+
var VERSION2 = "0.55.3";
|
|
419414
419420
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
419415
419421
|
|
|
419416
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",
|