@popcraft/cli 0.44.0 → 0.45.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 +10 -8
- 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.45.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 {
|
|
@@ -94485,7 +94485,6 @@ 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";
|
|
94489
94488
|
init_intl_messageformat();
|
|
94490
94489
|
init_icu_messageformat_parser();
|
|
94491
94490
|
init_catalogs();
|
|
@@ -248002,6 +248001,7 @@ function resyncText(doc2, ids2) {
|
|
|
248002
248001
|
var isVirtualId;
|
|
248003
248002
|
var init_invariants2 = __esm({
|
|
248004
248003
|
"lib/document/invariants.ts"() {
|
|
248004
|
+
"use strict";
|
|
248005
248005
|
init_auto_layout();
|
|
248006
248006
|
init_scene_graph();
|
|
248007
248007
|
init_text_bounds();
|
|
@@ -252437,6 +252437,7 @@ function resizeWindow(doc2, target2, rect) {
|
|
|
252437
252437
|
}
|
|
252438
252438
|
var init_crop = __esm({
|
|
252439
252439
|
"lib/editor/crop.ts"() {
|
|
252440
|
+
"use strict";
|
|
252440
252441
|
init_dist_node();
|
|
252441
252442
|
init_scene_graph();
|
|
252442
252443
|
init_photo_frames();
|
|
@@ -255964,6 +255965,7 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
|
|
|
255964
255965
|
var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
|
|
255965
255966
|
var init_shader_presets = __esm({
|
|
255966
255967
|
"lib/engine/shader-presets.ts"() {
|
|
255968
|
+
"use strict";
|
|
255967
255969
|
init_shader_graph();
|
|
255968
255970
|
init_shader_graph_presets();
|
|
255969
255971
|
init_shader_presets_legacy();
|
|
@@ -256927,6 +256929,7 @@ function followPeers(peers) {
|
|
|
256927
256929
|
var PALETTE, usePresence, awareness, CURSOR_SEND_MS, VIEWPORT_SEND_MS, cursorTimer, pendingCursor, sentCursor, EMOTE_MS, lastFollowCamera;
|
|
256928
256930
|
var init_presence = __esm({
|
|
256929
256931
|
"lib/collab/presence.ts"() {
|
|
256932
|
+
"use strict";
|
|
256930
256933
|
init_esm();
|
|
256931
256934
|
init_editor_store();
|
|
256932
256935
|
init_status_announcements();
|
|
@@ -260458,6 +260461,7 @@ function retuneShaderAudio(node2, fillId) {
|
|
|
260458
260461
|
}
|
|
260459
260462
|
var init_shader_audio = __esm({
|
|
260460
260463
|
"lib/motion/shader-audio.ts"() {
|
|
260464
|
+
"use strict";
|
|
260461
260465
|
init_shader_params();
|
|
260462
260466
|
init_modifier_edit();
|
|
260463
260467
|
init_keys();
|
|
@@ -311422,7 +311426,6 @@ function startCloudSync() {
|
|
|
311422
311426
|
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;
|
|
311423
311427
|
var init_sync2 = __esm({
|
|
311424
311428
|
"lib/client/cloud/sync.ts"() {
|
|
311425
|
-
"use strict";
|
|
311426
311429
|
init_paint_repair();
|
|
311427
311430
|
init_migrate();
|
|
311428
311431
|
init_view();
|
|
@@ -312809,6 +312812,7 @@ function areaBounds(rings) {
|
|
|
312809
312812
|
}
|
|
312810
312813
|
var init_text_area = __esm({
|
|
312811
312814
|
"lib/engine/text/text-area.ts"() {
|
|
312815
|
+
"use strict";
|
|
312812
312816
|
}
|
|
312813
312817
|
});
|
|
312814
312818
|
|
|
@@ -317153,7 +317157,6 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
|
|
|
317153
317157
|
var MIME, DEFAULT_EXPORT, exportSettingsOf;
|
|
317154
317158
|
var init_export = __esm({
|
|
317155
317159
|
"lib/io/export.ts"() {
|
|
317156
|
-
"use strict";
|
|
317157
317160
|
init_download();
|
|
317158
317161
|
init_scene_graph();
|
|
317159
317162
|
init_codecs();
|
|
@@ -318087,6 +318090,7 @@ function agentToolList() {
|
|
|
318087
318090
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
318088
318091
|
var init_agent = __esm({
|
|
318089
318092
|
"lib/commands/agent.ts"() {
|
|
318093
|
+
"use strict";
|
|
318090
318094
|
init_types5();
|
|
318091
318095
|
init_registry();
|
|
318092
318096
|
init_errors();
|
|
@@ -327950,7 +327954,7 @@ var init_package = __esm({
|
|
|
327950
327954
|
"packages/runtime/package.json"() {
|
|
327951
327955
|
package_default = {
|
|
327952
327956
|
name: "@popcraft/runtime",
|
|
327953
|
-
version: "0.
|
|
327957
|
+
version: "0.45.0",
|
|
327954
327958
|
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.",
|
|
327955
327959
|
license: "MIT",
|
|
327956
327960
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -352616,7 +352620,6 @@ function exportsOf(source3) {
|
|
|
352616
352620
|
var CODE_LIMITS, packageOf;
|
|
352617
352621
|
var init_source2 = __esm({
|
|
352618
352622
|
"lib/code/source.ts"() {
|
|
352619
|
-
"use strict";
|
|
352620
352623
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
352621
352624
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
352622
352625
|
}
|
|
@@ -352659,7 +352662,6 @@ function compileModule(module2) {
|
|
|
352659
352662
|
var import_sucrase, BUILT_IN, memo4;
|
|
352660
352663
|
var init_compile2 = __esm({
|
|
352661
352664
|
"lib/code/compile.ts"() {
|
|
352662
|
-
"use strict";
|
|
352663
352665
|
import_sucrase = __toESM(require_dist2());
|
|
352664
352666
|
init_source2();
|
|
352665
352667
|
init_source2();
|
|
@@ -413504,7 +413506,7 @@ init_resources();
|
|
|
413504
413506
|
init_desktop();
|
|
413505
413507
|
init_hypery();
|
|
413506
413508
|
import { createInterface } from "node:readline";
|
|
413507
|
-
var VERSION2 = "0.
|
|
413509
|
+
var VERSION2 = "0.45.0";
|
|
413508
413510
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
413509
413511
|
|
|
413510
413512
|
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.45.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.45.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|