@popcraft/cli 0.42.4 → 0.42.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 +12 -23
- 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.42.
|
|
1199
|
+
const headers = { "user-agent": `popcraft-cli/${"0.42.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 {
|
|
@@ -94485,6 +94485,7 @@ function hasMessage(key5) {
|
|
|
94485
94485
|
var current2, loading, listeners, formats, asts;
|
|
94486
94486
|
var init_runtime = __esm({
|
|
94487
94487
|
"lib/i18n/runtime.ts"() {
|
|
94488
|
+
"use strict";
|
|
94488
94489
|
init_intl_messageformat();
|
|
94489
94490
|
init_icu_messageformat_parser();
|
|
94490
94491
|
init_catalogs();
|
|
@@ -96187,6 +96188,7 @@ function repairDocumentPaints(doc2) {
|
|
|
96187
96188
|
var broken;
|
|
96188
96189
|
var init_paint_repair = __esm({
|
|
96189
96190
|
"lib/document/paint-repair.ts"() {
|
|
96191
|
+
"use strict";
|
|
96190
96192
|
init_shader_graph();
|
|
96191
96193
|
broken = (p2) => {
|
|
96192
96194
|
if (!p2 || typeof p2 !== "object") return false;
|
|
@@ -96444,7 +96446,6 @@ async function sha256Prefix(bytes2) {
|
|
|
96444
96446
|
}
|
|
96445
96447
|
var init_media_hash = __esm({
|
|
96446
96448
|
"lib/storage/media-hash.ts"() {
|
|
96447
|
-
"use strict";
|
|
96448
96449
|
}
|
|
96449
96450
|
});
|
|
96450
96451
|
|
|
@@ -96827,7 +96828,6 @@ function releaseMediaMemory(hash3) {
|
|
|
96827
96828
|
var key2, peaksKey, objectUrls, sourceKey, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, isImageDataUrl, memory, pendingLoads, sourceAliases, PAINT_KEYS, URL_KEYS;
|
|
96828
96829
|
var init_media_store = __esm({
|
|
96829
96830
|
"lib/storage/media-store.ts"() {
|
|
96830
|
-
"use strict";
|
|
96831
96831
|
init_media_types();
|
|
96832
96832
|
init_idb();
|
|
96833
96833
|
init_media_hash();
|
|
@@ -97536,7 +97536,6 @@ function relinkCopies(doc2, copies) {
|
|
|
97536
97536
|
var TEXT_PATH_SOURCE_TYPES, isPathSource;
|
|
97537
97537
|
var init_text_links = __esm({
|
|
97538
97538
|
"lib/document/text-links.ts"() {
|
|
97539
|
-
"use strict";
|
|
97540
97539
|
init_transform();
|
|
97541
97540
|
TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
|
|
97542
97541
|
isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
|
|
@@ -247889,7 +247888,6 @@ function repairCompositions(comps, nodes) {
|
|
|
247889
247888
|
var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
|
|
247890
247889
|
var init_invariants = __esm({
|
|
247891
247890
|
"lib/motion/invariants.ts"() {
|
|
247892
|
-
"use strict";
|
|
247893
247891
|
init_easing();
|
|
247894
247892
|
init_properties();
|
|
247895
247893
|
init_markers();
|
|
@@ -248867,7 +248865,6 @@ function fillPhotoFrame(doc2, groupId, imageUrl, size6, name2 = "Photo", credit)
|
|
|
248867
248865
|
var isPhotoFrame;
|
|
248868
248866
|
var init_photo_frames = __esm({
|
|
248869
248867
|
"lib/document/photo-frames.ts"() {
|
|
248870
|
-
"use strict";
|
|
248871
248868
|
init_dist_node();
|
|
248872
248869
|
init_scene_graph();
|
|
248873
248870
|
init_types();
|
|
@@ -252421,7 +252418,6 @@ function resizeWindow(doc2, target2, rect) {
|
|
|
252421
252418
|
}
|
|
252422
252419
|
var init_crop = __esm({
|
|
252423
252420
|
"lib/editor/crop.ts"() {
|
|
252424
|
-
"use strict";
|
|
252425
252421
|
init_dist_node();
|
|
252426
252422
|
init_scene_graph();
|
|
252427
252423
|
init_photo_frames();
|
|
@@ -255949,7 +255945,6 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
|
|
|
255949
255945
|
var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
|
|
255950
255946
|
var init_shader_presets = __esm({
|
|
255951
255947
|
"lib/engine/shader-presets.ts"() {
|
|
255952
|
-
"use strict";
|
|
255953
255948
|
init_shader_graph();
|
|
255954
255949
|
init_shader_graph_presets();
|
|
255955
255950
|
init_shader_presets_legacy();
|
|
@@ -256643,7 +256638,6 @@ var init_apply2 = __esm({
|
|
|
256643
256638
|
var HYPERY_CLIENT_ID, HYPERY_GATEWAY_URL, HYPERY_AI_SCOPES, plansEnabled, HYPERY_BILLING_SCOPES, HYPERY_AUDIO_SCOPES, HYPERY_SCOPES, cloudEnabled;
|
|
256644
256639
|
var init_config2 = __esm({
|
|
256645
256640
|
"lib/client/cloud/config.ts"() {
|
|
256646
|
-
"use strict";
|
|
256647
256641
|
HYPERY_CLIENT_ID = process.env.NEXT_PUBLIC_HYPERY_CLIENT_ID ?? "";
|
|
256648
256642
|
HYPERY_GATEWAY_URL = process.env.NEXT_PUBLIC_HYPERY_GATEWAY_URL ?? "https://hypery.ai";
|
|
256649
256643
|
HYPERY_AI_SCOPES = ["ai:chat", "ai:completions", "ai:models", "ai:images"];
|
|
@@ -256910,7 +256904,6 @@ function followPeers(peers) {
|
|
|
256910
256904
|
var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
|
|
256911
256905
|
var init_presence = __esm({
|
|
256912
256906
|
"lib/collab/presence.ts"() {
|
|
256913
|
-
"use strict";
|
|
256914
256907
|
init_esm();
|
|
256915
256908
|
init_editor_store();
|
|
256916
256909
|
init_status_announcements();
|
|
@@ -257823,7 +257816,6 @@ function onTabMessage(fn) {
|
|
|
257823
257816
|
var EDITOR_HOME, localDocPath, cloudFilePath, CHANNEL, channel;
|
|
257824
257817
|
var init_tab_mode = __esm({
|
|
257825
257818
|
"lib/desktop/tab-mode.ts"() {
|
|
257826
|
-
"use strict";
|
|
257827
257819
|
EDITOR_HOME = "/home";
|
|
257828
257820
|
localDocPath = (docId) => `${EDITOR_HOME}?doc=${encodeURIComponent(docId)}`;
|
|
257829
257821
|
cloudFilePath = (key5) => `/pop/${encodeURIComponent(key5)}`;
|
|
@@ -260442,7 +260434,6 @@ function retuneShaderAudio(node2, fillId) {
|
|
|
260442
260434
|
}
|
|
260443
260435
|
var init_shader_audio = __esm({
|
|
260444
260436
|
"lib/motion/shader-audio.ts"() {
|
|
260445
|
-
"use strict";
|
|
260446
260437
|
init_shader_params();
|
|
260447
260438
|
init_modifier_edit();
|
|
260448
260439
|
init_keys();
|
|
@@ -262942,6 +262933,7 @@ function planEntryAction({ home }) {
|
|
|
262942
262933
|
var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
|
|
262943
262934
|
var init_team = __esm({
|
|
262944
262935
|
"lib/client/cloud/team.ts"() {
|
|
262936
|
+
"use strict";
|
|
262945
262937
|
init_esm();
|
|
262946
262938
|
init_api4();
|
|
262947
262939
|
init_session();
|
|
@@ -273024,7 +273016,6 @@ async function prepareTemplate(t3) {
|
|
|
273024
273016
|
var templateMediaSources;
|
|
273025
273017
|
var init_use = __esm({
|
|
273026
273018
|
"lib/templates/use.ts"() {
|
|
273027
|
-
"use strict";
|
|
273028
273019
|
init_capture();
|
|
273029
273020
|
templateMediaSources = (t3, hash3) => [
|
|
273030
273021
|
`/templates/media/${hash3}`,
|
|
@@ -306517,7 +306508,6 @@ function decodeSource(key5, label3) {
|
|
|
306517
306508
|
var DECODE_CACHE_BYTES, cache7, pending4, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
|
|
306518
306509
|
var init_audio_decode = __esm({
|
|
306519
306510
|
"lib/motion/audio-decode.ts"() {
|
|
306520
|
-
"use strict";
|
|
306521
306511
|
init_media_store();
|
|
306522
306512
|
init_audio_plan();
|
|
306523
306513
|
init_time_stretch();
|
|
@@ -311280,6 +311270,7 @@ function startCloudSync() {
|
|
|
311280
311270
|
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, started2;
|
|
311281
311271
|
var init_sync2 = __esm({
|
|
311282
311272
|
"lib/client/cloud/sync.ts"() {
|
|
311273
|
+
"use strict";
|
|
311283
311274
|
init_paint_repair();
|
|
311284
311275
|
init_migrate();
|
|
311285
311276
|
init_view();
|
|
@@ -317943,6 +317934,7 @@ function agentToolList() {
|
|
|
317943
317934
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
317944
317935
|
var init_agent = __esm({
|
|
317945
317936
|
"lib/commands/agent.ts"() {
|
|
317937
|
+
"use strict";
|
|
317946
317938
|
init_types5();
|
|
317947
317939
|
init_registry();
|
|
317948
317940
|
init_errors();
|
|
@@ -327806,7 +327798,7 @@ var init_package = __esm({
|
|
|
327806
327798
|
"packages/runtime/package.json"() {
|
|
327807
327799
|
package_default = {
|
|
327808
327800
|
name: "@popcraft/runtime",
|
|
327809
|
-
version: "0.42.
|
|
327801
|
+
version: "0.42.5",
|
|
327810
327802
|
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.",
|
|
327811
327803
|
license: "MIT",
|
|
327812
327804
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -400327,7 +400319,6 @@ function record(source, namespaces, globals, limits) {
|
|
|
400327
400319
|
var HELPER_NAMES;
|
|
400328
400320
|
var init_helper_names = __esm({
|
|
400329
400321
|
"lib/agent/design-script/helper-names.ts"() {
|
|
400330
|
-
"use strict";
|
|
400331
400322
|
HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
|
|
400332
400323
|
}
|
|
400333
400324
|
});
|
|
@@ -400567,7 +400558,6 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
|
|
|
400567
400558
|
var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
|
|
400568
400559
|
var init_build3 = __esm({
|
|
400569
400560
|
"lib/agent/design-script/build.ts"() {
|
|
400570
|
-
"use strict";
|
|
400571
400561
|
init_hash();
|
|
400572
400562
|
init_scene_graph();
|
|
400573
400563
|
init_libraries();
|
|
@@ -400597,7 +400587,6 @@ function designFrameOf(doc2, id3) {
|
|
|
400597
400587
|
}
|
|
400598
400588
|
var init_locate = __esm({
|
|
400599
400589
|
"lib/agent/design-script/locate.ts"() {
|
|
400600
|
-
"use strict";
|
|
400601
400590
|
}
|
|
400602
400591
|
});
|
|
400603
400592
|
|
|
@@ -411138,13 +411127,13 @@ var init_hypery = __esm({
|
|
|
411138
411127
|
|
|
411139
411128
|
// lib/agent/design-script/run-node.ts
|
|
411140
411129
|
import vm from "node:vm";
|
|
411141
|
-
function recordInNode(source3, namespaces2, globals) {
|
|
411142
|
-
const ctx2 = vm.createContext({ __src: source3, __ns: [...namespaces2], __g: JSON.parse(JSON.stringify(globals)), __lim: { ...
|
|
411130
|
+
function recordInNode(source3, namespaces2, globals, limits2 = RECORD_LIMITS2) {
|
|
411131
|
+
const ctx2 = vm.createContext({ __src: source3, __ns: [...namespaces2], __g: JSON.parse(JSON.stringify(globals)), __lim: { ...limits2 } });
|
|
411143
411132
|
vm.runInContext(RECORDER_SOURCE, ctx2);
|
|
411144
411133
|
try {
|
|
411145
|
-
return JSON.parse(vm.runInContext("JSON.stringify(record(__src, __ns, __g, __lim))", ctx2, { timeout:
|
|
411134
|
+
return JSON.parse(vm.runInContext("JSON.stringify(record(__src, __ns, __g, __lim))", ctx2, { timeout: limits2.timeoutMs }));
|
|
411146
411135
|
} catch (err2) {
|
|
411147
|
-
return { ops: [], error: { message: /timed out/i.test(String(err2)) ? `The script ran longer than ${
|
|
411136
|
+
return { ops: [], error: { message: /timed out/i.test(String(err2)) ? `The script ran longer than ${limits2.timeoutMs / 1e3} s (an endless loop?).` : String(err2.message ?? err2) } };
|
|
411148
411137
|
}
|
|
411149
411138
|
}
|
|
411150
411139
|
var init_run_node = __esm({
|
|
@@ -413361,7 +413350,7 @@ init_resources();
|
|
|
413361
413350
|
init_desktop();
|
|
413362
413351
|
init_hypery();
|
|
413363
413352
|
import { createInterface } from "node:readline";
|
|
413364
|
-
var VERSION2 = "0.42.
|
|
413353
|
+
var VERSION2 = "0.42.5";
|
|
413365
413354
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
413366
413355
|
|
|
413367
413356
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.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.42.
|
|
37
|
+
"@popcraft/kit": "0.42.5"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|