@popcraft/cli 0.42.6 → 0.42.7
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 +21 -5
- 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.7"}`, ...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;
|
|
@@ -97344,6 +97343,7 @@ function selectionWorldBounds(nodes, ids2, scrollState) {
|
|
|
97344
97343
|
}
|
|
97345
97344
|
var init_selection_bounds = __esm({
|
|
97346
97345
|
"lib/editor/selection-bounds.ts"() {
|
|
97346
|
+
"use strict";
|
|
97347
97347
|
init_scene_graph();
|
|
97348
97348
|
init_transform();
|
|
97349
97349
|
}
|
|
@@ -252883,6 +252883,7 @@ function getActiveRenderer() {
|
|
|
252883
252883
|
var active;
|
|
252884
252884
|
var init_renderer_registry = __esm({
|
|
252885
252885
|
"lib/engine/renderer-registry.ts"() {
|
|
252886
|
+
"use strict";
|
|
252886
252887
|
active = null;
|
|
252887
252888
|
}
|
|
252888
252889
|
});
|
|
@@ -253983,6 +253984,7 @@ var init_draw_palette_slice = __esm({
|
|
|
253983
253984
|
var MODE_PROFILES, FOCUS_PROFILES, MODE_LIST, FOCUS_BY_PRECEDENCE;
|
|
253984
253985
|
var init_registry2 = __esm({
|
|
253985
253986
|
"lib/editor/modes/registry.ts"() {
|
|
253987
|
+
"use strict";
|
|
253986
253988
|
MODE_PROFILES = {
|
|
253987
253989
|
DESIGN: {
|
|
253988
253990
|
id: "DESIGN",
|
|
@@ -255945,6 +255947,7 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
|
|
|
255945
255947
|
var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
|
|
255946
255948
|
var init_shader_presets = __esm({
|
|
255947
255949
|
"lib/engine/shader-presets.ts"() {
|
|
255950
|
+
"use strict";
|
|
255948
255951
|
init_shader_graph();
|
|
255949
255952
|
init_shader_graph_presets();
|
|
255950
255953
|
init_shader_presets_legacy();
|
|
@@ -256905,6 +256908,7 @@ function followPeers(peers) {
|
|
|
256905
256908
|
var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
|
|
256906
256909
|
var init_presence = __esm({
|
|
256907
256910
|
"lib/collab/presence.ts"() {
|
|
256911
|
+
"use strict";
|
|
256908
256912
|
init_esm();
|
|
256909
256913
|
init_editor_store();
|
|
256910
256914
|
init_status_announcements();
|
|
@@ -257745,6 +257749,7 @@ async function docExists(id3) {
|
|
|
257745
257749
|
var INDEX_KEY, docKey, thumbKey, THUMB_MAX_BYTES, THUMB_TYPES, LEGACY_DATA_URL, migrating, SPLIT_LAYOUT, nodeKey, WRITER, persisted, saving, deletedHere, keyval, keyvalStore;
|
|
257746
257750
|
var init_document_library = __esm({
|
|
257747
257751
|
"lib/storage/document-library.ts"() {
|
|
257752
|
+
"use strict";
|
|
257748
257753
|
init_idb();
|
|
257749
257754
|
init_media_types();
|
|
257750
257755
|
init_collapse_duplicates();
|
|
@@ -257816,6 +257821,7 @@ function onTabMessage(fn) {
|
|
|
257816
257821
|
var EDITOR_HOME, localDocPath, cloudFilePath, CHANNEL, channel;
|
|
257817
257822
|
var init_tab_mode = __esm({
|
|
257818
257823
|
"lib/desktop/tab-mode.ts"() {
|
|
257824
|
+
"use strict";
|
|
257819
257825
|
EDITOR_HOME = "/home";
|
|
257820
257826
|
localDocPath = (docId) => `${EDITOR_HOME}?doc=${encodeURIComponent(docId)}`;
|
|
257821
257827
|
cloudFilePath = (key5) => `/pop/${encodeURIComponent(key5)}`;
|
|
@@ -261156,6 +261162,7 @@ function shownBreakpoint(state) {
|
|
|
261156
261162
|
var storedDocument;
|
|
261157
261163
|
var init_view = __esm({
|
|
261158
261164
|
"lib/motion/view.ts"() {
|
|
261165
|
+
"use strict";
|
|
261159
261166
|
init_motion_slice();
|
|
261160
261167
|
init_transport_clock();
|
|
261161
261168
|
init_autokey();
|
|
@@ -311270,7 +311277,6 @@ function startCloudSync() {
|
|
|
311270
311277
|
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;
|
|
311271
311278
|
var init_sync2 = __esm({
|
|
311272
311279
|
"lib/client/cloud/sync.ts"() {
|
|
311273
|
-
"use strict";
|
|
311274
311280
|
init_paint_repair();
|
|
311275
311281
|
init_migrate();
|
|
311276
311282
|
init_view();
|
|
@@ -311477,6 +311483,7 @@ async function dispatchShaped(key5, options) {
|
|
|
311477
311483
|
var onViolation;
|
|
311478
311484
|
var init_dispatch = __esm({
|
|
311479
311485
|
"lib/commands/dispatch.ts"() {
|
|
311486
|
+
"use strict";
|
|
311480
311487
|
init_errors();
|
|
311481
311488
|
init_registry();
|
|
311482
311489
|
init_confirm();
|
|
@@ -317000,6 +317007,7 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
|
|
|
317000
317007
|
var MIME, DEFAULT_EXPORT, exportSettingsOf;
|
|
317001
317008
|
var init_export = __esm({
|
|
317002
317009
|
"lib/io/export.ts"() {
|
|
317010
|
+
"use strict";
|
|
317003
317011
|
init_download();
|
|
317004
317012
|
init_scene_graph();
|
|
317005
317013
|
init_codecs();
|
|
@@ -317933,6 +317941,7 @@ function agentToolList() {
|
|
|
317933
317941
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
317934
317942
|
var init_agent = __esm({
|
|
317935
317943
|
"lib/commands/agent.ts"() {
|
|
317944
|
+
"use strict";
|
|
317936
317945
|
init_types5();
|
|
317937
317946
|
init_registry();
|
|
317938
317947
|
init_errors();
|
|
@@ -327796,7 +327805,7 @@ var init_package = __esm({
|
|
|
327796
327805
|
"packages/runtime/package.json"() {
|
|
327797
327806
|
package_default = {
|
|
327798
327807
|
name: "@popcraft/runtime",
|
|
327799
|
-
version: "0.42.
|
|
327808
|
+
version: "0.42.7",
|
|
327800
327809
|
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
327810
|
license: "MIT",
|
|
327802
327811
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -352462,6 +352471,7 @@ function exportsOf(source3) {
|
|
|
352462
352471
|
var CODE_LIMITS, packageOf;
|
|
352463
352472
|
var init_source2 = __esm({
|
|
352464
352473
|
"lib/code/source.ts"() {
|
|
352474
|
+
"use strict";
|
|
352465
352475
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
352466
352476
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
352467
352477
|
}
|
|
@@ -352504,6 +352514,7 @@ function compileModule(module2) {
|
|
|
352504
352514
|
var import_sucrase, BUILT_IN, memo4;
|
|
352505
352515
|
var init_compile2 = __esm({
|
|
352506
352516
|
"lib/code/compile.ts"() {
|
|
352517
|
+
"use strict";
|
|
352507
352518
|
import_sucrase = __toESM(require_dist2());
|
|
352508
352519
|
init_source2();
|
|
352509
352520
|
init_source2();
|
|
@@ -361544,6 +361555,7 @@ var init_delete_current_file = __esm({
|
|
|
361544
361555
|
var storeOpsSeam;
|
|
361545
361556
|
var init_seams = __esm({
|
|
361546
361557
|
"lib/commands/seams.ts"() {
|
|
361558
|
+
"use strict";
|
|
361547
361559
|
storeOpsSeam = (st) => ({
|
|
361548
361560
|
booleanOperation: (op4) => st().booleanOperation(op4),
|
|
361549
361561
|
flatten: () => st().flattenSelection(),
|
|
@@ -364539,6 +364551,7 @@ async function loadUserProfiles() {
|
|
|
364539
364551
|
var userCache2, fileCache2, findProfile;
|
|
364540
364552
|
var init_profiles = __esm({
|
|
364541
364553
|
"lib/agent/profiles/index.ts"() {
|
|
364554
|
+
"use strict";
|
|
364542
364555
|
init_builtin3();
|
|
364543
364556
|
init_user_profiles();
|
|
364544
364557
|
init_merge();
|
|
@@ -367153,6 +367166,7 @@ var init_doc2 = __esm({
|
|
|
367153
367166
|
var POSTER_KEY, MAX_PREVIEW_BYTES2, PREVIEW_STILL_TYPE, previewPath;
|
|
367154
367167
|
var init_motion3 = __esm({
|
|
367155
367168
|
"lib/marketplace/motion.ts"() {
|
|
367169
|
+
"use strict";
|
|
367156
367170
|
init_instances2();
|
|
367157
367171
|
POSTER_KEY = "poster";
|
|
367158
367172
|
MAX_PREVIEW_BYTES2 = 4 * 1024 * 1024;
|
|
@@ -367268,6 +367282,7 @@ async function renderLibraryPreviews(renderer, doc2, listing, format = pickPrevi
|
|
|
367268
367282
|
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
367283
|
var init_library_previews = __esm({
|
|
367270
367284
|
"lib/motion/library-previews.ts"() {
|
|
367285
|
+
"use strict";
|
|
367271
367286
|
init_codecs();
|
|
367272
367287
|
init_gpu_pixels();
|
|
367273
367288
|
init_render_frames();
|
|
@@ -405756,6 +405771,7 @@ function registerBuiltinCommands() {
|
|
|
405756
405771
|
var builtinCommands, uiOnlyCommands;
|
|
405757
405772
|
var init_builtin4 = __esm({
|
|
405758
405773
|
"lib/commands/builtin.ts"() {
|
|
405774
|
+
"use strict";
|
|
405759
405775
|
init_registry();
|
|
405760
405776
|
init_node();
|
|
405761
405777
|
init_node();
|
|
@@ -413345,7 +413361,7 @@ init_resources();
|
|
|
413345
413361
|
init_desktop();
|
|
413346
413362
|
init_hypery();
|
|
413347
413363
|
import { createInterface } from "node:readline";
|
|
413348
|
-
var VERSION2 = "0.42.
|
|
413364
|
+
var VERSION2 = "0.42.7";
|
|
413349
413365
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
413350
413366
|
|
|
413351
413367
|
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.7",
|
|
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.7"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|