@popcraft/cli 0.38.7 → 0.39.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 +14 -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.39.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 {
|
|
@@ -96128,7 +96128,6 @@ async function sha256Prefix(bytes2) {
|
|
|
96128
96128
|
}
|
|
96129
96129
|
var init_media_hash = __esm({
|
|
96130
96130
|
"lib/storage/media-hash.ts"() {
|
|
96131
|
-
"use strict";
|
|
96132
96131
|
}
|
|
96133
96132
|
});
|
|
96134
96133
|
|
|
@@ -96511,7 +96510,6 @@ function releaseMediaMemory(hash3) {
|
|
|
96511
96510
|
var key2, peaksKey, objectUrls, sourceKey, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, isImageDataUrl, memory, pendingLoads, sourceAliases, PAINT_KEYS, URL_KEYS;
|
|
96512
96511
|
var init_media_store = __esm({
|
|
96513
96512
|
"lib/storage/media-store.ts"() {
|
|
96514
|
-
"use strict";
|
|
96515
96513
|
init_media_types();
|
|
96516
96514
|
init_idb();
|
|
96517
96515
|
init_media_hash();
|
|
@@ -247573,6 +247571,7 @@ function repairCompositions(comps, nodes) {
|
|
|
247573
247571
|
var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
|
|
247574
247572
|
var init_invariants = __esm({
|
|
247575
247573
|
"lib/motion/invariants.ts"() {
|
|
247574
|
+
"use strict";
|
|
247576
247575
|
init_easing();
|
|
247577
247576
|
init_properties();
|
|
247578
247577
|
init_markers();
|
|
@@ -310357,6 +310356,7 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
|
|
|
310357
310356
|
var online, goesLocal;
|
|
310358
310357
|
var init_new_file = __esm({
|
|
310359
310358
|
"lib/client/cloud/new-file.ts"() {
|
|
310359
|
+
"use strict";
|
|
310360
310360
|
init_scene_graph();
|
|
310361
310361
|
init_print_pages();
|
|
310362
310362
|
init_page_presets();
|
|
@@ -317068,6 +317068,7 @@ function videoPixelSize(resolution, aspect) {
|
|
|
317068
317068
|
var VIDEO_ASPECTS, VIDEO_RESOLUTIONS, SEEDANCE_ASPECTS, range, VIDEO_MODELS, DEFAULT_VIDEO_MODEL, videoModel, VIDEO_LIMITS;
|
|
317069
317069
|
var init_video_models = __esm({
|
|
317070
317070
|
"lib/ai/video-models.ts"() {
|
|
317071
|
+
"use strict";
|
|
317071
317072
|
VIDEO_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
|
|
317072
317073
|
VIDEO_RESOLUTIONS = ["480p", "720p", "1080p"];
|
|
317073
317074
|
SEEDANCE_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
|
|
@@ -327419,7 +327420,7 @@ var init_package = __esm({
|
|
|
327419
327420
|
"packages/runtime/package.json"() {
|
|
327420
327421
|
package_default = {
|
|
327421
327422
|
name: "@popcraft/runtime",
|
|
327422
|
-
version: "0.
|
|
327423
|
+
version: "0.39.0",
|
|
327423
327424
|
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.",
|
|
327424
327425
|
license: "MIT",
|
|
327425
327426
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -360729,6 +360730,7 @@ __export(integrations_exports, {
|
|
|
360729
360730
|
siteBackend: () => siteBackend
|
|
360730
360731
|
});
|
|
360731
360732
|
function connectWithOAuth(workspaceId, provider2) {
|
|
360733
|
+
if (storePlatform() === "ios" || storePlatform() === "macos") return connectInSheet(workspaceId, provider2);
|
|
360732
360734
|
const popup = window.open("", "popcraft-integration", "popup,width=640,height=760");
|
|
360733
360735
|
if (!popup) return Promise.reject(new Error("The browser blocked the window. Allow pop-ups for PopCraft and try again."));
|
|
360734
360736
|
return new Promise((resolve6, reject) => {
|
|
@@ -360759,6 +360761,11 @@ function connectWithOAuth(workspaceId, provider2) {
|
|
|
360759
360761
|
});
|
|
360760
360762
|
});
|
|
360761
360763
|
}
|
|
360764
|
+
async function connectInSheet(workspaceId, provider2) {
|
|
360765
|
+
const { url: url4 } = await api(`/api/integrations/${encodeURIComponent(provider2)}/authorize`, { method: "POST", json: { workspaceId, app: true } });
|
|
360766
|
+
const done = new URL(await invoke("auth_session_open", { url: url4 }));
|
|
360767
|
+
if (done.searchParams.get("ok") !== "1") throw new Error(done.searchParams.get("error") || "The account was not connected.");
|
|
360768
|
+
}
|
|
360762
360769
|
async function sha12(bytes2) {
|
|
360763
360770
|
const digest = await crypto.subtle.digest("SHA-1", bytes2);
|
|
360764
360771
|
return [...new Uint8Array(digest)].map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
@@ -360779,6 +360786,7 @@ async function deployStore(key5, id3, files, env, onProgress) {
|
|
|
360779
360786
|
var integrationsWorkspaceId, listWorkspaceIntegrations, connectWithToken, disconnect, listResources, createResource, listDestinations, addDestination, removeDestination, deployDestination, siteBackend, attachDatabase, setSignIn, detachDatabase, listSubmissions, listCandidates, createDatabase, createDestination;
|
|
360780
360787
|
var init_integrations = __esm({
|
|
360781
360788
|
"lib/client/cloud/integrations.ts"() {
|
|
360789
|
+
init_tauri();
|
|
360782
360790
|
init_api4();
|
|
360783
360791
|
init_team();
|
|
360784
360792
|
integrationsWorkspaceId = () => activeTeamWorkspaceId() ?? useHyperyTeam.getState().personalWorkspaceId;
|
|
@@ -398211,6 +398219,7 @@ function record(source, namespaces, globals, limits) {
|
|
|
398211
398219
|
var HELPER_NAMES;
|
|
398212
398220
|
var init_helper_names = __esm({
|
|
398213
398221
|
"lib/agent/design-script/helper-names.ts"() {
|
|
398222
|
+
"use strict";
|
|
398214
398223
|
HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
|
|
398215
398224
|
}
|
|
398216
398225
|
});
|
|
@@ -403423,7 +403432,6 @@ function registerBuiltinCommands() {
|
|
|
403423
403432
|
var builtinCommands, uiOnlyCommands;
|
|
403424
403433
|
var init_builtin4 = __esm({
|
|
403425
403434
|
"lib/commands/builtin.ts"() {
|
|
403426
|
-
"use strict";
|
|
403427
403435
|
init_registry();
|
|
403428
403436
|
init_node();
|
|
403429
403437
|
init_node();
|
|
@@ -411002,7 +411010,7 @@ init_resources();
|
|
|
411002
411010
|
init_desktop();
|
|
411003
411011
|
init_hypery();
|
|
411004
411012
|
import { createInterface } from "node:readline";
|
|
411005
|
-
var VERSION2 = "0.
|
|
411013
|
+
var VERSION2 = "0.39.0";
|
|
411006
411014
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
411007
411015
|
|
|
411008
411016
|
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.39.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.39.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|