@popcraft/cli 0.42.5 → 0.42.6
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 -17
- 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.6"}`, ...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 {
|
|
@@ -97344,7 +97344,6 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
|
|
|
97344
97344
|
}
|
|
97345
97345
|
var init_selection_bounds = __esm({
|
|
97346
97346
|
"lib/editor/selection-bounds.ts"() {
|
|
97347
|
-
"use strict";
|
|
97348
97347
|
init_scene_graph();
|
|
97349
97348
|
init_transform();
|
|
97350
97349
|
}
|
|
@@ -97536,6 +97535,7 @@ function relinkCopies(doc2, copies) {
|
|
|
97536
97535
|
var TEXT_PATH_SOURCE_TYPES, isPathSource;
|
|
97537
97536
|
var init_text_links = __esm({
|
|
97538
97537
|
"lib/document/text-links.ts"() {
|
|
97538
|
+
"use strict";
|
|
97539
97539
|
init_transform();
|
|
97540
97540
|
TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
|
|
97541
97541
|
isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
|
|
@@ -248865,6 +248865,7 @@ function fillPhotoFrame(doc2, groupId, imageUrl, size6, name2 = "Photo", credit)
|
|
|
248865
248865
|
var isPhotoFrame;
|
|
248866
248866
|
var init_photo_frames = __esm({
|
|
248867
248867
|
"lib/document/photo-frames.ts"() {
|
|
248868
|
+
"use strict";
|
|
248868
248869
|
init_dist_node();
|
|
248869
248870
|
init_scene_graph();
|
|
248870
248871
|
init_types();
|
|
@@ -252418,6 +252419,7 @@ function resizeWindow(doc2, target2, rect) {
|
|
|
252418
252419
|
}
|
|
252419
252420
|
var init_crop = __esm({
|
|
252420
252421
|
"lib/editor/crop.ts"() {
|
|
252422
|
+
"use strict";
|
|
252421
252423
|
init_dist_node();
|
|
252422
252424
|
init_scene_graph();
|
|
252423
252425
|
init_photo_frames();
|
|
@@ -252881,7 +252883,6 @@ function getActiveRenderer() {
|
|
|
252881
252883
|
var active;
|
|
252882
252884
|
var init_renderer_registry = __esm({
|
|
252883
252885
|
"lib/engine/renderer-registry.ts"() {
|
|
252884
|
-
"use strict";
|
|
252885
252886
|
active = null;
|
|
252886
252887
|
}
|
|
252887
252888
|
});
|
|
@@ -253982,7 +253983,6 @@ var init_draw_palette_slice = __esm({
|
|
|
253982
253983
|
var MODE_PROFILES, FOCUS_PROFILES, MODE_LIST, FOCUS_BY_PRECEDENCE;
|
|
253983
253984
|
var init_registry2 = __esm({
|
|
253984
253985
|
"lib/editor/modes/registry.ts"() {
|
|
253985
|
-
"use strict";
|
|
253986
253986
|
MODE_PROFILES = {
|
|
253987
253987
|
DESIGN: {
|
|
253988
253988
|
id: "DESIGN",
|
|
@@ -256638,6 +256638,7 @@ var init_apply2 = __esm({
|
|
|
256638
256638
|
var HYPERY_CLIENT_ID, HYPERY_GATEWAY_URL, HYPERY_AI_SCOPES, plansEnabled, HYPERY_BILLING_SCOPES, HYPERY_AUDIO_SCOPES, HYPERY_SCOPES, cloudEnabled;
|
|
256639
256639
|
var init_config2 = __esm({
|
|
256640
256640
|
"lib/client/cloud/config.ts"() {
|
|
256641
|
+
"use strict";
|
|
256641
256642
|
HYPERY_CLIENT_ID = process.env.NEXT_PUBLIC_HYPERY_CLIENT_ID ?? "";
|
|
256642
256643
|
HYPERY_GATEWAY_URL = process.env.NEXT_PUBLIC_HYPERY_GATEWAY_URL ?? "https://hypery.ai";
|
|
256643
256644
|
HYPERY_AI_SCOPES = ["ai:chat", "ai:completions", "ai:models", "ai:images"];
|
|
@@ -257744,7 +257745,6 @@ async function docExists(id3) {
|
|
|
257744
257745
|
var INDEX_KEY, docKey, thumbKey, THUMB_MAX_BYTES, THUMB_TYPES, LEGACY_DATA_URL, migrating, SPLIT_LAYOUT, nodeKey, WRITER, persisted, saving, deletedHere, keyval, keyvalStore;
|
|
257745
257746
|
var init_document_library = __esm({
|
|
257746
257747
|
"lib/storage/document-library.ts"() {
|
|
257747
|
-
"use strict";
|
|
257748
257748
|
init_idb();
|
|
257749
257749
|
init_media_types();
|
|
257750
257750
|
init_collapse_duplicates();
|
|
@@ -260434,6 +260434,7 @@ function retuneShaderAudio(node2, fillId) {
|
|
|
260434
260434
|
}
|
|
260435
260435
|
var init_shader_audio = __esm({
|
|
260436
260436
|
"lib/motion/shader-audio.ts"() {
|
|
260437
|
+
"use strict";
|
|
260437
260438
|
init_shader_params();
|
|
260438
260439
|
init_modifier_edit();
|
|
260439
260440
|
init_keys();
|
|
@@ -261155,7 +261156,6 @@ function shownBreakpoint(state) {
|
|
|
261155
261156
|
var storedDocument;
|
|
261156
261157
|
var init_view = __esm({
|
|
261157
261158
|
"lib/motion/view.ts"() {
|
|
261158
|
-
"use strict";
|
|
261159
261159
|
init_motion_slice();
|
|
261160
261160
|
init_transport_clock();
|
|
261161
261161
|
init_autokey();
|
|
@@ -262401,7 +262401,6 @@ function formatLimit(key5, max3) {
|
|
|
262401
262401
|
var formatBytes;
|
|
262402
262402
|
var init_limits2 = __esm({
|
|
262403
262403
|
"lib/billing/limits.ts"() {
|
|
262404
|
-
"use strict";
|
|
262405
262404
|
init_format();
|
|
262406
262405
|
init_plans();
|
|
262407
262406
|
formatBytes = formatFileSize;
|
|
@@ -262933,7 +262932,6 @@ function planEntryAction({ home }) {
|
|
|
262933
262932
|
var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
|
|
262934
262933
|
var init_team = __esm({
|
|
262935
262934
|
"lib/client/cloud/team.ts"() {
|
|
262936
|
-
"use strict";
|
|
262937
262935
|
init_esm();
|
|
262938
262936
|
init_api4();
|
|
262939
262937
|
init_session();
|
|
@@ -273016,6 +273014,7 @@ async function prepareTemplate(t3) {
|
|
|
273016
273014
|
var templateMediaSources;
|
|
273017
273015
|
var init_use = __esm({
|
|
273018
273016
|
"lib/templates/use.ts"() {
|
|
273017
|
+
"use strict";
|
|
273019
273018
|
init_capture();
|
|
273020
273019
|
templateMediaSources = (t3, hash3) => [
|
|
273021
273020
|
`/templates/media/${hash3}`,
|
|
@@ -306508,6 +306507,7 @@ function decodeSource(key5, label3) {
|
|
|
306508
306507
|
var DECODE_CACHE_BYTES, cache7, pending4, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
|
|
306509
306508
|
var init_audio_decode = __esm({
|
|
306510
306509
|
"lib/motion/audio-decode.ts"() {
|
|
306510
|
+
"use strict";
|
|
306511
306511
|
init_media_store();
|
|
306512
306512
|
init_audio_plan();
|
|
306513
306513
|
init_time_stretch();
|
|
@@ -317000,7 +317000,6 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
|
|
|
317000
317000
|
var MIME, DEFAULT_EXPORT, exportSettingsOf;
|
|
317001
317001
|
var init_export = __esm({
|
|
317002
317002
|
"lib/io/export.ts"() {
|
|
317003
|
-
"use strict";
|
|
317004
317003
|
init_download();
|
|
317005
317004
|
init_scene_graph();
|
|
317006
317005
|
init_codecs();
|
|
@@ -317934,7 +317933,6 @@ function agentToolList() {
|
|
|
317934
317933
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
317935
317934
|
var init_agent = __esm({
|
|
317936
317935
|
"lib/commands/agent.ts"() {
|
|
317937
|
-
"use strict";
|
|
317938
317936
|
init_types5();
|
|
317939
317937
|
init_registry();
|
|
317940
317938
|
init_errors();
|
|
@@ -327798,7 +327796,7 @@ var init_package = __esm({
|
|
|
327798
327796
|
"packages/runtime/package.json"() {
|
|
327799
327797
|
package_default = {
|
|
327800
327798
|
name: "@popcraft/runtime",
|
|
327801
|
-
version: "0.42.
|
|
327799
|
+
version: "0.42.6",
|
|
327802
327800
|
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.",
|
|
327803
327801
|
license: "MIT",
|
|
327804
327802
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -352464,7 +352462,6 @@ function exportsOf(source3) {
|
|
|
352464
352462
|
var CODE_LIMITS, packageOf;
|
|
352465
352463
|
var init_source2 = __esm({
|
|
352466
352464
|
"lib/code/source.ts"() {
|
|
352467
|
-
"use strict";
|
|
352468
352465
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
352469
352466
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
352470
352467
|
}
|
|
@@ -352507,7 +352504,6 @@ function compileModule(module2) {
|
|
|
352507
352504
|
var import_sucrase, BUILT_IN, memo4;
|
|
352508
352505
|
var init_compile2 = __esm({
|
|
352509
352506
|
"lib/code/compile.ts"() {
|
|
352510
|
-
"use strict";
|
|
352511
352507
|
import_sucrase = __toESM(require_dist2());
|
|
352512
352508
|
init_source2();
|
|
352513
352509
|
init_source2();
|
|
@@ -364543,7 +364539,6 @@ async function loadUserProfiles() {
|
|
|
364543
364539
|
var userCache2, fileCache2, findProfile;
|
|
364544
364540
|
var init_profiles = __esm({
|
|
364545
364541
|
"lib/agent/profiles/index.ts"() {
|
|
364546
|
-
"use strict";
|
|
364547
364542
|
init_builtin3();
|
|
364548
364543
|
init_user_profiles();
|
|
364549
364544
|
init_merge();
|
|
@@ -367158,7 +367153,6 @@ var init_doc2 = __esm({
|
|
|
367158
367153
|
var POSTER_KEY, MAX_PREVIEW_BYTES2, PREVIEW_STILL_TYPE, previewPath;
|
|
367159
367154
|
var init_motion3 = __esm({
|
|
367160
367155
|
"lib/marketplace/motion.ts"() {
|
|
367161
|
-
"use strict";
|
|
367162
367156
|
init_instances2();
|
|
367163
367157
|
POSTER_KEY = "poster";
|
|
367164
367158
|
MAX_PREVIEW_BYTES2 = 4 * 1024 * 1024;
|
|
@@ -367274,7 +367268,6 @@ async function renderLibraryPreviews(renderer, doc2, listing, format = pickPrevi
|
|
|
367274
367268
|
var PREVIEW_FORMATS, PREVIEW_FPS, PREVIEW_MAX_MS2, PREVIEW_HOLD_MS, PREVIEW_BOX, POSTER_CELL, PREVIEW_MAX_SCALE, POSTER_COLS, POSTER_MAX, previewScale, componentSchedule;
|
|
367275
367269
|
var init_library_previews = __esm({
|
|
367276
367270
|
"lib/motion/library-previews.ts"() {
|
|
367277
|
-
"use strict";
|
|
367278
367271
|
init_codecs();
|
|
367279
367272
|
init_gpu_pixels();
|
|
367280
367273
|
init_render_frames();
|
|
@@ -400558,6 +400551,7 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
|
|
|
400558
400551
|
var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
|
|
400559
400552
|
var init_build3 = __esm({
|
|
400560
400553
|
"lib/agent/design-script/build.ts"() {
|
|
400554
|
+
"use strict";
|
|
400561
400555
|
init_hash();
|
|
400562
400556
|
init_scene_graph();
|
|
400563
400557
|
init_libraries();
|
|
@@ -400587,6 +400581,7 @@ function designFrameOf(doc2, id3) {
|
|
|
400587
400581
|
}
|
|
400588
400582
|
var init_locate = __esm({
|
|
400589
400583
|
"lib/agent/design-script/locate.ts"() {
|
|
400584
|
+
"use strict";
|
|
400590
400585
|
}
|
|
400591
400586
|
});
|
|
400592
400587
|
|
|
@@ -413350,7 +413345,7 @@ init_resources();
|
|
|
413350
413345
|
init_desktop();
|
|
413351
413346
|
init_hypery();
|
|
413352
413347
|
import { createInterface } from "node:readline";
|
|
413353
|
-
var VERSION2 = "0.42.
|
|
413348
|
+
var VERSION2 = "0.42.6";
|
|
413354
413349
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
413355
413350
|
|
|
413356
413351
|
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.6",
|
|
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.6"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|