@popcraft/cli 0.33.0 → 0.34.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 +27 -6
- package/package.json +2 -2
package/dist/popcraft.mjs
CHANGED
|
@@ -1196,7 +1196,7 @@ function operations(spec = openapi) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
async function call(target2, method, path, opts = {}) {
|
|
1198
1198
|
const qs = new URLSearchParams(opts.query ?? {}).toString();
|
|
1199
|
-
const headers = { "user-agent": `popcraft-cli/${"0.
|
|
1199
|
+
const headers = { "user-agent": `popcraft-cli/${"0.34.0"}`, ...opts.headers };
|
|
1200
1200
|
if (target2.token) headers.authorization = `Bearer ${target2.token}`;
|
|
1201
1201
|
if (opts.contentType) headers["content-type"] = opts.contentType;
|
|
1202
1202
|
try {
|
|
@@ -32183,6 +32183,23 @@ var init_en2 = __esm({
|
|
|
32183
32183
|
"apiTokensDialog.used": "used {date}",
|
|
32184
32184
|
"appHeader.doubleClickToRename": "Double-click to rename",
|
|
32185
32185
|
"appHeader.fileName": "File name",
|
|
32186
|
+
"appStoreOffers.buyCredits": "Buy AI credits",
|
|
32187
|
+
"appStoreOffers.creditsAdded": "{credits} AI credits added to {teamName}.",
|
|
32188
|
+
"appStoreOffers.creditsGoTo": "Credits are added to {teamName} and pay for AI. They don't expire.",
|
|
32189
|
+
"appStoreOffers.failed": "The purchase did not go through.",
|
|
32190
|
+
"appStoreOffers.loading": "Loading App Store prices\u2026",
|
|
32191
|
+
"appStoreOffers.manage": "Manage in the App Store",
|
|
32192
|
+
"appStoreOffers.pack": "{credits} credits \xB7 {price}",
|
|
32193
|
+
"appStoreOffers.pending": "Your purchase is waiting for approval. It's added as soon as it goes through.",
|
|
32194
|
+
"appStoreOffers.perMonth": " / month",
|
|
32195
|
+
"appStoreOffers.perYear": " / year",
|
|
32196
|
+
"appStoreOffers.privacy": "Privacy Policy",
|
|
32197
|
+
"appStoreOffers.renewalTerms": "Payment is charged to your Apple Account. The subscription renews automatically at the price shown for each period unless you cancel it at least 24 hours before the period ends. Manage or cancel it in your App Store account settings.",
|
|
32198
|
+
"appStoreOffers.restore": "Restore purchases",
|
|
32199
|
+
"appStoreOffers.restored": "{count, plural, =0 {No purchases to restore.} one {Restored # purchase.} other {Restored # purchases.}}",
|
|
32200
|
+
"appStoreOffers.subscribe": "Subscribe",
|
|
32201
|
+
"appStoreOffers.subscribed": "Subscribed to {plan} \xB7 {teamName}.",
|
|
32202
|
+
"appStoreOffers.terms": "Terms of Use",
|
|
32186
32203
|
"assetsPanel.components": "Components",
|
|
32187
32204
|
"assetsPanel.documentColors": "Document colors",
|
|
32188
32205
|
"assetsPanel.editComponent": "Edit component",
|
|
@@ -34946,6 +34963,7 @@ var init_en2 = __esm({
|
|
|
34946
34963
|
"planDialog.isOnThePlan": "{teamName} is on the {value} plan.",
|
|
34947
34964
|
"planDialog.largestUpload": "Largest upload",
|
|
34948
34965
|
"planDialog.loadingPlans": "Loading plans\u2026",
|
|
34966
|
+
"planDialog.managedInAppStore": "Bought in the App Store. Manage or cancel it in the App Store on your iPad or Mac.",
|
|
34949
34967
|
"planDialog.mediaStorage": "Storage (media and websites)",
|
|
34950
34968
|
"planDialog.mo": "mo",
|
|
34951
34969
|
"planDialog.namedVersionsPerFile": "Named versions per file",
|
|
@@ -261324,8 +261342,13 @@ var init_plans = __esm({
|
|
|
261324
261342
|
});
|
|
261325
261343
|
|
|
261326
261344
|
// lib/billing/purchases.ts
|
|
261345
|
+
function purchaseChannel() {
|
|
261346
|
+
const store6 = storePlatform();
|
|
261347
|
+
if (store6 === null) return "web";
|
|
261348
|
+
return store6 === "ios" || store6 === "macos" ? "app_store" : null;
|
|
261349
|
+
}
|
|
261327
261350
|
function purchasesAllowed() {
|
|
261328
|
-
return
|
|
261351
|
+
return purchaseChannel() === "web";
|
|
261329
261352
|
}
|
|
261330
261353
|
function limitMessageHere(d) {
|
|
261331
261354
|
return limitMessage(purchasesAllowed() ? d : { ...d, upgradeTo: null });
|
|
@@ -316110,7 +316133,6 @@ function videoPixelSize(resolution, aspect) {
|
|
|
316110
316133
|
var VIDEO_ASPECTS, VIDEO_RESOLUTIONS, SEEDANCE_ASPECTS, range, VIDEO_MODELS, DEFAULT_VIDEO_MODEL, videoModel, VIDEO_LIMITS;
|
|
316111
316134
|
var init_video_models = __esm({
|
|
316112
316135
|
"lib/ai/video-models.ts"() {
|
|
316113
|
-
"use strict";
|
|
316114
316136
|
VIDEO_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
|
|
316115
316137
|
VIDEO_RESOLUTIONS = ["480p", "720p", "1080p"];
|
|
316116
316138
|
SEEDANCE_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
|
|
@@ -326462,7 +326484,7 @@ var init_package = __esm({
|
|
|
326462
326484
|
"packages/runtime/package.json"() {
|
|
326463
326485
|
package_default = {
|
|
326464
326486
|
name: "@popcraft/runtime",
|
|
326465
|
-
version: "0.
|
|
326487
|
+
version: "0.34.0",
|
|
326466
326488
|
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.",
|
|
326467
326489
|
license: "MIT",
|
|
326468
326490
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -397116,7 +397138,6 @@ function record(source, namespaces, globals, limits) {
|
|
|
397116
397138
|
var HELPER_NAMES;
|
|
397117
397139
|
var init_helper_names = __esm({
|
|
397118
397140
|
"lib/agent/design-script/helper-names.ts"() {
|
|
397119
|
-
"use strict";
|
|
397120
397141
|
HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
|
|
397121
397142
|
}
|
|
397122
397143
|
});
|
|
@@ -409875,7 +409896,7 @@ init_resources();
|
|
|
409875
409896
|
init_desktop();
|
|
409876
409897
|
init_hypery();
|
|
409877
409898
|
import { createInterface } from "node:readline";
|
|
409878
|
-
var VERSION2 = "0.
|
|
409899
|
+
var VERSION2 = "0.34.0";
|
|
409879
409900
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
409880
409901
|
|
|
409881
409902
|
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.34.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.34.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|