@popcraft/cli 0.38.3 → 0.38.5
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 +49 -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.38.
|
|
1199
|
+
const headers = { "user-agent": `popcraft-cli/${"0.38.5"}`, ...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 {
|
|
@@ -32203,6 +32203,8 @@ var init_en2 = __esm({
|
|
|
32203
32203
|
"assetsPanel.documentColors": "Document colors",
|
|
32204
32204
|
"assetsPanel.editComponent": "Edit component",
|
|
32205
32205
|
"assetsPanel.editComponentNamed": "Edit component {name}",
|
|
32206
|
+
"assetsPanel.kindComponent": "Component",
|
|
32207
|
+
"assetsPanel.kindComponentSet": "Component set",
|
|
32206
32208
|
"assetsPanel.localComponents": "Local components",
|
|
32207
32209
|
"assetsPanel.motionComponents": "Motion components",
|
|
32208
32210
|
"assetsPanel.noColorsYet": "No colors yet",
|
|
@@ -36958,6 +36960,8 @@ var require_es = __commonJS({
|
|
|
36958
36960
|
"assetsPanel.documentColors": "Colores del documento",
|
|
36959
36961
|
"assetsPanel.editComponent": "Editar componente",
|
|
36960
36962
|
"assetsPanel.editComponentNamed": "Editar componente {name}",
|
|
36963
|
+
"assetsPanel.kindComponent": "Componente",
|
|
36964
|
+
"assetsPanel.kindComponentSet": "Conjunto de componentes",
|
|
36961
36965
|
"assetsPanel.localComponents": "Componentes locales",
|
|
36962
36966
|
"assetsPanel.motionComponents": "Componentes de movimiento",
|
|
36963
36967
|
"assetsPanel.noColorsYet": "A\xFAn no hay colores",
|
|
@@ -41713,6 +41717,8 @@ var require_fr = __commonJS({
|
|
|
41713
41717
|
"assetsPanel.documentColors": "Couleurs du document",
|
|
41714
41718
|
"assetsPanel.editComponent": "Modifier le composant",
|
|
41715
41719
|
"assetsPanel.editComponentNamed": "Modifier le composant {name}",
|
|
41720
|
+
"assetsPanel.kindComponent": "Composant",
|
|
41721
|
+
"assetsPanel.kindComponentSet": "Ensemble de composants",
|
|
41716
41722
|
"assetsPanel.localComponents": "Composants locaux",
|
|
41717
41723
|
"assetsPanel.motionComponents": "Composants de mouvement",
|
|
41718
41724
|
"assetsPanel.noColorsYet": "Aucune couleur pour l\u2019instant",
|
|
@@ -46468,6 +46474,8 @@ var require_de = __commonJS({
|
|
|
46468
46474
|
"assetsPanel.documentColors": "Dokumentfarben",
|
|
46469
46475
|
"assetsPanel.editComponent": "Komponente bearbeiten",
|
|
46470
46476
|
"assetsPanel.editComponentNamed": "Komponente {name} bearbeiten",
|
|
46477
|
+
"assetsPanel.kindComponent": "Komponente",
|
|
46478
|
+
"assetsPanel.kindComponentSet": "Komponentensatz",
|
|
46471
46479
|
"assetsPanel.localComponents": "Lokale Komponenten",
|
|
46472
46480
|
"assetsPanel.motionComponents": "Bewegungskomponenten",
|
|
46473
46481
|
"assetsPanel.noColorsYet": "Noch keine Farben",
|
|
@@ -51223,6 +51231,8 @@ var require_it = __commonJS({
|
|
|
51223
51231
|
"assetsPanel.documentColors": "Colori documento",
|
|
51224
51232
|
"assetsPanel.editComponent": "Modifica componente",
|
|
51225
51233
|
"assetsPanel.editComponentNamed": "Modifica componente {name}",
|
|
51234
|
+
"assetsPanel.kindComponent": "Componente",
|
|
51235
|
+
"assetsPanel.kindComponentSet": "Set di componenti",
|
|
51226
51236
|
"assetsPanel.localComponents": "Componenti locali",
|
|
51227
51237
|
"assetsPanel.motionComponents": "Componenti di movimento",
|
|
51228
51238
|
"assetsPanel.noColorsYet": "Nessun colore ancora",
|
|
@@ -55978,6 +55988,8 @@ var require_pt_BR = __commonJS({
|
|
|
55978
55988
|
"assetsPanel.documentColors": "Cores do documento",
|
|
55979
55989
|
"assetsPanel.editComponent": "Editar componente",
|
|
55980
55990
|
"assetsPanel.editComponentNamed": "Editar componente {name}",
|
|
55991
|
+
"assetsPanel.kindComponent": "Componente",
|
|
55992
|
+
"assetsPanel.kindComponentSet": "Conjunto de componentes",
|
|
55981
55993
|
"assetsPanel.localComponents": "Componentes locais",
|
|
55982
55994
|
"assetsPanel.motionComponents": "Componentes de movimento",
|
|
55983
55995
|
"assetsPanel.noColorsYet": "Nenhuma cor ainda",
|
|
@@ -60733,6 +60745,8 @@ var require_ja = __commonJS({
|
|
|
60733
60745
|
"assetsPanel.documentColors": "\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u30AB\u30E9\u30FC",
|
|
60734
60746
|
"assetsPanel.editComponent": "\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u3092\u7DE8\u96C6",
|
|
60735
60747
|
"assetsPanel.editComponentNamed": "\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u300C{name}\u300D\u3092\u7DE8\u96C6",
|
|
60748
|
+
"assetsPanel.kindComponent": "\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8",
|
|
60749
|
+
"assetsPanel.kindComponentSet": "\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u30BB\u30C3\u30C8",
|
|
60736
60750
|
"assetsPanel.localComponents": "\u30ED\u30FC\u30AB\u30EB\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8",
|
|
60737
60751
|
"assetsPanel.motionComponents": "\u30E2\u30FC\u30B7\u30E7\u30F3\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8",
|
|
60738
60752
|
"assetsPanel.noColorsYet": "\u307E\u3060\u30AB\u30E9\u30FC\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
@@ -65488,6 +65502,8 @@ var require_ko = __commonJS({
|
|
|
65488
65502
|
"assetsPanel.documentColors": "\uBB38\uC11C \uC0C9\uC0C1",
|
|
65489
65503
|
"assetsPanel.editComponent": "\uAD6C\uC131 \uC694\uC18C \uD3B8\uC9D1",
|
|
65490
65504
|
"assetsPanel.editComponentNamed": "\uAD6C\uC131 \uC694\uC18C {name} \uD3B8\uC9D1",
|
|
65505
|
+
"assetsPanel.kindComponent": "\uCEF4\uD3EC\uB10C\uD2B8",
|
|
65506
|
+
"assetsPanel.kindComponentSet": "\uCEF4\uD3EC\uB10C\uD2B8 \uC138\uD2B8",
|
|
65491
65507
|
"assetsPanel.localComponents": "\uB85C\uCEEC \uAD6C\uC131 \uC694\uC18C",
|
|
65492
65508
|
"assetsPanel.motionComponents": "\uBAA8\uC158 \uAD6C\uC131 \uC694\uC18C",
|
|
65493
65509
|
"assetsPanel.noColorsYet": "\uC544\uC9C1 \uC0C9\uC0C1\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
@@ -70243,6 +70259,8 @@ var require_zh_CN = __commonJS({
|
|
|
70243
70259
|
"assetsPanel.documentColors": "\u6587\u6863\u989C\u8272",
|
|
70244
70260
|
"assetsPanel.editComponent": "\u7F16\u8F91\u7EC4\u4EF6",
|
|
70245
70261
|
"assetsPanel.editComponentNamed": "\u7F16\u8F91\u7EC4\u4EF6 {name}",
|
|
70262
|
+
"assetsPanel.kindComponent": "\u7EC4\u4EF6",
|
|
70263
|
+
"assetsPanel.kindComponentSet": "\u7EC4\u4EF6\u96C6",
|
|
70246
70264
|
"assetsPanel.localComponents": "\u672C\u5730\u7EC4\u4EF6",
|
|
70247
70265
|
"assetsPanel.motionComponents": "\u52A8\u6001\u7EC4\u4EF6",
|
|
70248
70266
|
"assetsPanel.noColorsYet": "\u6682\u65E0\u989C\u8272",
|
|
@@ -74998,6 +75016,8 @@ var require_zh_TW = __commonJS({
|
|
|
74998
75016
|
"assetsPanel.documentColors": "\u6587\u4EF6\u984F\u8272",
|
|
74999
75017
|
"assetsPanel.editComponent": "\u7DE8\u8F2F\u5143\u4EF6",
|
|
75000
75018
|
"assetsPanel.editComponentNamed": "\u7DE8\u8F2F\u5143\u4EF6 {name}",
|
|
75019
|
+
"assetsPanel.kindComponent": "\u5143\u4EF6",
|
|
75020
|
+
"assetsPanel.kindComponentSet": "\u5143\u4EF6\u96C6",
|
|
75001
75021
|
"assetsPanel.localComponents": "\u672C\u6A5F\u5143\u4EF6",
|
|
75002
75022
|
"assetsPanel.motionComponents": "\u52D5\u614B\u5143\u4EF6",
|
|
75003
75023
|
"assetsPanel.noColorsYet": "\u5C1A\u7121\u984F\u8272",
|
|
@@ -79753,6 +79773,8 @@ var require_ru = __commonJS({
|
|
|
79753
79773
|
"assetsPanel.documentColors": "\u0426\u0432\u0435\u0442\u0430 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",
|
|
79754
79774
|
"assetsPanel.editComponent": "\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442",
|
|
79755
79775
|
"assetsPanel.editComponentNamed": "\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442 \xAB{name}\xBB",
|
|
79776
|
+
"assetsPanel.kindComponent": "\u041A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442",
|
|
79777
|
+
"assetsPanel.kindComponentSet": "\u041D\u0430\u0431\u043E\u0440 \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u043E\u0432",
|
|
79756
79778
|
"assetsPanel.localComponents": "\u041B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u044B",
|
|
79757
79779
|
"assetsPanel.motionComponents": "\u041A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u044B \u0434\u0432\u0438\u0436\u0435\u043D\u0438\u044F",
|
|
79758
79780
|
"assetsPanel.noColorsYet": "\u0426\u0432\u0435\u0442\u043E\u0432 \u043F\u043E\u043A\u0430 \u043D\u0435\u0442",
|
|
@@ -84508,6 +84530,8 @@ var require_ar = __commonJS({
|
|
|
84508
84530
|
"assetsPanel.documentColors": "\u0623\u0644\u0648\u0627\u0646 \u0627\u0644\u0645\u0633\u062A\u0646\u062F",
|
|
84509
84531
|
"assetsPanel.editComponent": "\u062A\u0639\u062F\u064A\u0644 \u0627\u0644\u0645\u0643\u0648\u0646",
|
|
84510
84532
|
"assetsPanel.editComponentNamed": "\u062A\u0639\u062F\u064A\u0644 \u0627\u0644\u0645\u0643\u0648\u0646 {name}",
|
|
84533
|
+
"assetsPanel.kindComponent": "\u0645\u0643\u0648\u0646",
|
|
84534
|
+
"assetsPanel.kindComponentSet": "\u0645\u062C\u0645\u0648\u0639\u0629 \u0645\u0643\u0648\u0646\u0627\u062A",
|
|
84511
84535
|
"assetsPanel.localComponents": "\u0627\u0644\u0645\u0643\u0648\u0646\u0627\u062A \u0627\u0644\u0645\u062D\u0644\u064A\u0629",
|
|
84512
84536
|
"assetsPanel.motionComponents": "\u0645\u0643\u0648\u0646\u0627\u062A \u0627\u0644\u062D\u0631\u0643\u0629",
|
|
84513
84537
|
"assetsPanel.noColorsYet": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0623\u0644\u0648\u0627\u0646 \u0628\u0639\u062F",
|
|
@@ -89263,6 +89287,8 @@ var require_hi = __commonJS({
|
|
|
89263
89287
|
"assetsPanel.documentColors": "\u0926\u0938\u094D\u0924\u093E\u0935\u0947\u091C\u093C \u0930\u0902\u0917",
|
|
89264
89288
|
"assetsPanel.editComponent": "\u0918\u091F\u0915 \u0938\u0902\u092A\u093E\u0926\u093F\u0924 \u0915\u0930\u0947\u0902",
|
|
89265
89289
|
"assetsPanel.editComponentNamed": "\u0918\u091F\u0915 {name} \u0938\u0902\u092A\u093E\u0926\u093F\u0924 \u0915\u0930\u0947\u0902",
|
|
89290
|
+
"assetsPanel.kindComponent": "\u0918\u091F\u0915",
|
|
89291
|
+
"assetsPanel.kindComponentSet": "\u0918\u091F\u0915 \u0938\u0947\u091F",
|
|
89266
89292
|
"assetsPanel.localComponents": "\u0938\u094D\u0925\u093E\u0928\u0940\u092F \u0918\u091F\u0915",
|
|
89267
89293
|
"assetsPanel.motionComponents": "\u092E\u094B\u0936\u0928 \u0918\u091F\u0915",
|
|
89268
89294
|
"assetsPanel.noColorsYet": "\u0905\u092D\u0940 \u0924\u0915 \u0915\u094B\u0908 \u0930\u0902\u0917 \u0928\u0939\u0940\u0902",
|
|
@@ -261955,6 +261981,17 @@ function storePlatform() {
|
|
|
261955
261981
|
if (/Android/.test(navigator.userAgent)) return "android";
|
|
261956
261982
|
return null;
|
|
261957
261983
|
}
|
|
261984
|
+
async function shareFileNatively(blob, name2, print2 = false) {
|
|
261985
|
+
const t3 = tauri();
|
|
261986
|
+
if (!t3 || storePlatform() !== "ios") return false;
|
|
261987
|
+
try {
|
|
261988
|
+
await t3.core.invoke("share_file", new Uint8Array(await blob.arrayBuffer()), { headers: { "x-name": encodeURIComponent(name2), "x-print": print2 ? "1" : "0" } });
|
|
261989
|
+
return true;
|
|
261990
|
+
} catch (e) {
|
|
261991
|
+
console.warn("[share_file]", e);
|
|
261992
|
+
return false;
|
|
261993
|
+
}
|
|
261994
|
+
}
|
|
261958
261995
|
function invoke(cmd, args2) {
|
|
261959
261996
|
const t3 = tauri();
|
|
261960
261997
|
return t3 ? t3.core.invoke(cmd, args2) : Promise.reject(new Error("Not running in the desktop app"));
|
|
@@ -311196,6 +311233,11 @@ __export(download_exports, {
|
|
|
311196
311233
|
downloadBlob: () => downloadBlob
|
|
311197
311234
|
});
|
|
311198
311235
|
function downloadBlob(blob, filename) {
|
|
311236
|
+
void shareFileNatively(blob, filename).then((shared) => {
|
|
311237
|
+
if (!shared) browserDownload(blob, filename);
|
|
311238
|
+
});
|
|
311239
|
+
}
|
|
311240
|
+
function browserDownload(blob, filename) {
|
|
311199
311241
|
const url4 = URL.createObjectURL(blob);
|
|
311200
311242
|
const a = window.document.createElement("a");
|
|
311201
311243
|
a.href = url4;
|
|
@@ -311207,6 +311249,7 @@ function downloadBlob(blob, filename) {
|
|
|
311207
311249
|
}
|
|
311208
311250
|
var init_download = __esm({
|
|
311209
311251
|
"lib/io/download.ts"() {
|
|
311252
|
+
init_tauri();
|
|
311210
311253
|
}
|
|
311211
311254
|
});
|
|
311212
311255
|
|
|
@@ -311426,6 +311469,7 @@ function creditLine(c2) {
|
|
|
311426
311469
|
var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
|
|
311427
311470
|
var init_stock = __esm({
|
|
311428
311471
|
"lib/photos/stock.ts"() {
|
|
311472
|
+
"use strict";
|
|
311429
311473
|
MAX_PHOTO_PAGE = 12;
|
|
311430
311474
|
MAX_PHOTO_QUERY = 200;
|
|
311431
311475
|
UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -312087,7 +312131,6 @@ function applyTextPath(layout2, path, tp, rebase = true) {
|
|
|
312087
312131
|
var defaultCircleRadius, ownsPath, mapPoint;
|
|
312088
312132
|
var init_text_path = __esm({
|
|
312089
312133
|
"lib/engine/text/text-path.ts"() {
|
|
312090
|
-
"use strict";
|
|
312091
312134
|
init_scene_graph();
|
|
312092
312135
|
init_transform();
|
|
312093
312136
|
init_shape_to_path();
|
|
@@ -312205,7 +312248,6 @@ function areaBounds(rings) {
|
|
|
312205
312248
|
}
|
|
312206
312249
|
var init_text_area = __esm({
|
|
312207
312250
|
"lib/engine/text/text-area.ts"() {
|
|
312208
|
-
"use strict";
|
|
312209
312251
|
}
|
|
312210
312252
|
});
|
|
312211
312253
|
|
|
@@ -327342,7 +327384,7 @@ var init_package = __esm({
|
|
|
327342
327384
|
"packages/runtime/package.json"() {
|
|
327343
327385
|
package_default = {
|
|
327344
327386
|
name: "@popcraft/runtime",
|
|
327345
|
-
version: "0.38.
|
|
327387
|
+
version: "0.38.5",
|
|
327346
327388
|
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.",
|
|
327347
327389
|
license: "MIT",
|
|
327348
327390
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -352127,7 +352169,6 @@ function hashOf2(text) {
|
|
|
352127
352169
|
}
|
|
352128
352170
|
var init_hash = __esm({
|
|
352129
352171
|
"lib/code/hash.ts"() {
|
|
352130
|
-
"use strict";
|
|
352131
352172
|
}
|
|
352132
352173
|
});
|
|
352133
352174
|
|
|
@@ -398149,6 +398190,7 @@ function record(source, namespaces, globals, limits) {
|
|
|
398149
398190
|
var HELPER_NAMES;
|
|
398150
398191
|
var init_helper_names = __esm({
|
|
398151
398192
|
"lib/agent/design-script/helper-names.ts"() {
|
|
398193
|
+
"use strict";
|
|
398152
398194
|
HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
|
|
398153
398195
|
}
|
|
398154
398196
|
});
|
|
@@ -403365,6 +403407,7 @@ function registerBuiltinCommands() {
|
|
|
403365
403407
|
var builtinCommands, uiOnlyCommands;
|
|
403366
403408
|
var init_builtin4 = __esm({
|
|
403367
403409
|
"lib/commands/builtin.ts"() {
|
|
403410
|
+
"use strict";
|
|
403368
403411
|
init_registry();
|
|
403369
403412
|
init_node();
|
|
403370
403413
|
init_node();
|
|
@@ -410942,7 +410985,7 @@ init_resources();
|
|
|
410942
410985
|
init_desktop();
|
|
410943
410986
|
init_hypery();
|
|
410944
410987
|
import { createInterface } from "node:readline";
|
|
410945
|
-
var VERSION2 = "0.38.
|
|
410988
|
+
var VERSION2 = "0.38.5";
|
|
410946
410989
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
410947
410990
|
|
|
410948
410991
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.5",
|
|
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.38.
|
|
37
|
+
"@popcraft/kit": "0.38.5"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|