@popcraft/cli 0.42.6 → 0.43.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 +20 -9
- 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.43.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 {
|
|
@@ -96188,7 +96188,6 @@ function repairDocumentPaints(doc2) {
|
|
|
96188
96188
|
var broken;
|
|
96189
96189
|
var init_paint_repair = __esm({
|
|
96190
96190
|
"lib/document/paint-repair.ts"() {
|
|
96191
|
-
"use strict";
|
|
96192
96191
|
init_shader_graph();
|
|
96193
96192
|
broken = (p2) => {
|
|
96194
96193
|
if (!p2 || typeof p2 !== "object") return false;
|
|
@@ -96828,6 +96827,7 @@ function releaseMediaMemory(hash3) {
|
|
|
96828
96827
|
var key2, peaksKey, objectUrls, sourceKey, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, isImageDataUrl, memory, pendingLoads, sourceAliases, PAINT_KEYS, URL_KEYS;
|
|
96829
96828
|
var init_media_store = __esm({
|
|
96830
96829
|
"lib/storage/media-store.ts"() {
|
|
96830
|
+
"use strict";
|
|
96831
96831
|
init_media_types();
|
|
96832
96832
|
init_idb();
|
|
96833
96833
|
init_media_hash();
|
|
@@ -97344,6 +97344,7 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
|
|
|
97344
97344
|
}
|
|
97345
97345
|
var init_selection_bounds = __esm({
|
|
97346
97346
|
"lib/editor/selection-bounds.ts"() {
|
|
97347
|
+
"use strict";
|
|
97347
97348
|
init_scene_graph();
|
|
97348
97349
|
init_transform();
|
|
97349
97350
|
}
|
|
@@ -248865,7 +248866,6 @@ function fillPhotoFrame(doc2, groupId, imageUrl, size6, name2 = "Photo", credit)
|
|
|
248865
248866
|
var isPhotoFrame;
|
|
248866
248867
|
var init_photo_frames = __esm({
|
|
248867
248868
|
"lib/document/photo-frames.ts"() {
|
|
248868
|
-
"use strict";
|
|
248869
248869
|
init_dist_node();
|
|
248870
248870
|
init_scene_graph();
|
|
248871
248871
|
init_types();
|
|
@@ -252419,7 +252419,6 @@ function resizeWindow(doc2, target2, rect) {
|
|
|
252419
252419
|
}
|
|
252420
252420
|
var init_crop = __esm({
|
|
252421
252421
|
"lib/editor/crop.ts"() {
|
|
252422
|
-
"use strict";
|
|
252423
252422
|
init_dist_node();
|
|
252424
252423
|
init_scene_graph();
|
|
252425
252424
|
init_photo_frames();
|
|
@@ -252883,6 +252882,7 @@ function getActiveRenderer() {
|
|
|
252883
252882
|
var active;
|
|
252884
252883
|
var init_renderer_registry = __esm({
|
|
252885
252884
|
"lib/engine/renderer-registry.ts"() {
|
|
252885
|
+
"use strict";
|
|
252886
252886
|
active = null;
|
|
252887
252887
|
}
|
|
252888
252888
|
});
|
|
@@ -253983,6 +253983,7 @@ var init_draw_palette_slice = __esm({
|
|
|
253983
253983
|
var MODE_PROFILES, FOCUS_PROFILES, MODE_LIST, FOCUS_BY_PRECEDENCE;
|
|
253984
253984
|
var init_registry2 = __esm({
|
|
253985
253985
|
"lib/editor/modes/registry.ts"() {
|
|
253986
|
+
"use strict";
|
|
253986
253987
|
MODE_PROFILES = {
|
|
253987
253988
|
DESIGN: {
|
|
253988
253989
|
id: "DESIGN",
|
|
@@ -255945,6 +255946,7 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
|
|
|
255945
255946
|
var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
|
|
255946
255947
|
var init_shader_presets = __esm({
|
|
255947
255948
|
"lib/engine/shader-presets.ts"() {
|
|
255949
|
+
"use strict";
|
|
255948
255950
|
init_shader_graph();
|
|
255949
255951
|
init_shader_graph_presets();
|
|
255950
255952
|
init_shader_presets_legacy();
|
|
@@ -257745,6 +257747,7 @@ async function docExists(id3) {
|
|
|
257745
257747
|
var INDEX_KEY, docKey, thumbKey, THUMB_MAX_BYTES, THUMB_TYPES, LEGACY_DATA_URL, migrating, SPLIT_LAYOUT, nodeKey, WRITER, persisted, saving, deletedHere, keyval, keyvalStore;
|
|
257746
257748
|
var init_document_library = __esm({
|
|
257747
257749
|
"lib/storage/document-library.ts"() {
|
|
257750
|
+
"use strict";
|
|
257748
257751
|
init_idb();
|
|
257749
257752
|
init_media_types();
|
|
257750
257753
|
init_collapse_duplicates();
|
|
@@ -257816,6 +257819,7 @@ function onTabMessage(fn) {
|
|
|
257816
257819
|
var EDITOR_HOME, localDocPath, cloudFilePath, CHANNEL, channel;
|
|
257817
257820
|
var init_tab_mode = __esm({
|
|
257818
257821
|
"lib/desktop/tab-mode.ts"() {
|
|
257822
|
+
"use strict";
|
|
257819
257823
|
EDITOR_HOME = "/home";
|
|
257820
257824
|
localDocPath = (docId) => `${EDITOR_HOME}?doc=${encodeURIComponent(docId)}`;
|
|
257821
257825
|
cloudFilePath = (key5) => `/pop/${encodeURIComponent(key5)}`;
|
|
@@ -261156,6 +261160,7 @@ function shownBreakpoint(state) {
|
|
|
261156
261160
|
var storedDocument;
|
|
261157
261161
|
var init_view = __esm({
|
|
261158
261162
|
"lib/motion/view.ts"() {
|
|
261163
|
+
"use strict";
|
|
261159
261164
|
init_motion_slice();
|
|
261160
261165
|
init_transport_clock();
|
|
261161
261166
|
init_autokey();
|
|
@@ -262401,6 +262406,7 @@ function formatLimit(key5, max3) {
|
|
|
262401
262406
|
var formatBytes;
|
|
262402
262407
|
var init_limits2 = __esm({
|
|
262403
262408
|
"lib/billing/limits.ts"() {
|
|
262409
|
+
"use strict";
|
|
262404
262410
|
init_format();
|
|
262405
262411
|
init_plans();
|
|
262406
262412
|
formatBytes = formatFileSize;
|
|
@@ -262932,6 +262938,7 @@ function planEntryAction({ home }) {
|
|
|
262932
262938
|
var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
|
|
262933
262939
|
var init_team = __esm({
|
|
262934
262940
|
"lib/client/cloud/team.ts"() {
|
|
262941
|
+
"use strict";
|
|
262935
262942
|
init_esm();
|
|
262936
262943
|
init_api4();
|
|
262937
262944
|
init_session();
|
|
@@ -311875,7 +311882,6 @@ function creditLine(c2) {
|
|
|
311875
311882
|
var MAX_PHOTO_PAGE, MAX_PHOTO_QUERY, UUID, isPhotoId, photoImagePath;
|
|
311876
311883
|
var init_stock = __esm({
|
|
311877
311884
|
"lib/photos/stock.ts"() {
|
|
311878
|
-
"use strict";
|
|
311879
311885
|
MAX_PHOTO_PAGE = 12;
|
|
311880
311886
|
MAX_PHOTO_QUERY = 200;
|
|
311881
311887
|
UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -317000,6 +317006,7 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
|
|
|
317000
317006
|
var MIME, DEFAULT_EXPORT, exportSettingsOf;
|
|
317001
317007
|
var init_export = __esm({
|
|
317002
317008
|
"lib/io/export.ts"() {
|
|
317009
|
+
"use strict";
|
|
317003
317010
|
init_download();
|
|
317004
317011
|
init_scene_graph();
|
|
317005
317012
|
init_codecs();
|
|
@@ -317933,6 +317940,7 @@ function agentToolList() {
|
|
|
317933
317940
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
317934
317941
|
var init_agent = __esm({
|
|
317935
317942
|
"lib/commands/agent.ts"() {
|
|
317943
|
+
"use strict";
|
|
317936
317944
|
init_types5();
|
|
317937
317945
|
init_registry();
|
|
317938
317946
|
init_errors();
|
|
@@ -327796,7 +327804,7 @@ var init_package = __esm({
|
|
|
327796
327804
|
"packages/runtime/package.json"() {
|
|
327797
327805
|
package_default = {
|
|
327798
327806
|
name: "@popcraft/runtime",
|
|
327799
|
-
version: "0.
|
|
327807
|
+
version: "0.43.0",
|
|
327800
327808
|
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.",
|
|
327801
327809
|
license: "MIT",
|
|
327802
327810
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -352462,6 +352470,7 @@ function exportsOf(source3) {
|
|
|
352462
352470
|
var CODE_LIMITS, packageOf;
|
|
352463
352471
|
var init_source2 = __esm({
|
|
352464
352472
|
"lib/code/source.ts"() {
|
|
352473
|
+
"use strict";
|
|
352465
352474
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
352466
352475
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
352467
352476
|
}
|
|
@@ -352504,6 +352513,7 @@ function compileModule(module2) {
|
|
|
352504
352513
|
var import_sucrase, BUILT_IN, memo4;
|
|
352505
352514
|
var init_compile2 = __esm({
|
|
352506
352515
|
"lib/code/compile.ts"() {
|
|
352516
|
+
"use strict";
|
|
352507
352517
|
import_sucrase = __toESM(require_dist2());
|
|
352508
352518
|
init_source2();
|
|
352509
352519
|
init_source2();
|
|
@@ -364539,6 +364549,7 @@ async function loadUserProfiles() {
|
|
|
364539
364549
|
var userCache2, fileCache2, findProfile;
|
|
364540
364550
|
var init_profiles = __esm({
|
|
364541
364551
|
"lib/agent/profiles/index.ts"() {
|
|
364552
|
+
"use strict";
|
|
364542
364553
|
init_builtin3();
|
|
364543
364554
|
init_user_profiles();
|
|
364544
364555
|
init_merge();
|
|
@@ -367153,6 +367164,7 @@ var init_doc2 = __esm({
|
|
|
367153
367164
|
var POSTER_KEY, MAX_PREVIEW_BYTES2, PREVIEW_STILL_TYPE, previewPath;
|
|
367154
367165
|
var init_motion3 = __esm({
|
|
367155
367166
|
"lib/marketplace/motion.ts"() {
|
|
367167
|
+
"use strict";
|
|
367156
367168
|
init_instances2();
|
|
367157
367169
|
POSTER_KEY = "poster";
|
|
367158
367170
|
MAX_PREVIEW_BYTES2 = 4 * 1024 * 1024;
|
|
@@ -367268,6 +367280,7 @@ async function renderLibraryPreviews(renderer, doc2, listing, format = pickPrevi
|
|
|
367268
367280
|
var PREVIEW_FORMATS, PREVIEW_FPS, PREVIEW_MAX_MS2, PREVIEW_HOLD_MS, PREVIEW_BOX, POSTER_CELL, PREVIEW_MAX_SCALE, POSTER_COLS, POSTER_MAX, previewScale, componentSchedule;
|
|
367269
367281
|
var init_library_previews = __esm({
|
|
367270
367282
|
"lib/motion/library-previews.ts"() {
|
|
367283
|
+
"use strict";
|
|
367271
367284
|
init_codecs();
|
|
367272
367285
|
init_gpu_pixels();
|
|
367273
367286
|
init_render_frames();
|
|
@@ -400551,7 +400564,6 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
|
|
|
400551
400564
|
var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
|
|
400552
400565
|
var init_build3 = __esm({
|
|
400553
400566
|
"lib/agent/design-script/build.ts"() {
|
|
400554
|
-
"use strict";
|
|
400555
400567
|
init_hash();
|
|
400556
400568
|
init_scene_graph();
|
|
400557
400569
|
init_libraries();
|
|
@@ -400581,7 +400593,6 @@ function designFrameOf(doc2, id3) {
|
|
|
400581
400593
|
}
|
|
400582
400594
|
var init_locate = __esm({
|
|
400583
400595
|
"lib/agent/design-script/locate.ts"() {
|
|
400584
|
-
"use strict";
|
|
400585
400596
|
}
|
|
400586
400597
|
});
|
|
400587
400598
|
|
|
@@ -413345,7 +413356,7 @@ init_resources();
|
|
|
413345
413356
|
init_desktop();
|
|
413346
413357
|
init_hypery();
|
|
413347
413358
|
import { createInterface } from "node:readline";
|
|
413348
|
-
var VERSION2 = "0.
|
|
413359
|
+
var VERSION2 = "0.43.0";
|
|
413349
413360
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
413350
413361
|
|
|
413351
413362
|
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.43.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.43.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|