@popcraft/cli 0.53.9 → 0.53.10
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 -26
- package/package.json +2 -2
package/dist/popcraft.mjs
CHANGED
|
@@ -1198,7 +1198,7 @@ function operations(spec = openapi) {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
async function call(target2, method, path, opts = {}) {
|
|
1200
1200
|
const qs = new URLSearchParams(opts.query ?? {}).toString();
|
|
1201
|
-
const headers = { "user-agent": `popcraft-cli/${"0.53.
|
|
1201
|
+
const headers = { "user-agent": `popcraft-cli/${"0.53.10"}`, ...opts.headers };
|
|
1202
1202
|
if (target2.token) headers.authorization = `Bearer ${target2.token}`;
|
|
1203
1203
|
if (opts.contentType) headers["content-type"] = opts.contentType;
|
|
1204
1204
|
try {
|
|
@@ -35195,6 +35195,7 @@ var init_en2 = __esm({
|
|
|
35195
35195
|
"pluginOverlays.installedByYourWorkspace": "Installed by your workspace",
|
|
35196
35196
|
"pluginOverlays.installForEveryoneIn": "Install for everyone in {name}",
|
|
35197
35197
|
"pluginOverlays.installFromFile": "Install from file\u2026",
|
|
35198
|
+
"pluginOverlays.installing": "Installing\u2026",
|
|
35198
35199
|
"pluginOverlays.local": "Local",
|
|
35199
35200
|
"pluginOverlays.manifestJsonCodeOrA": "(manifest.json + code) or a single-file",
|
|
35200
35201
|
"pluginOverlays.marketplace": "Marketplace",
|
|
@@ -35208,6 +35209,7 @@ var init_en2 = __esm({
|
|
|
35208
35209
|
"pluginOverlays.plugins": "Plugins",
|
|
35209
35210
|
"pluginOverlays.published": "Published {name} {version}",
|
|
35210
35211
|
"pluginOverlays.publishFromFile": "Publish from file\u2026",
|
|
35212
|
+
"pluginOverlays.publishing": "Publishing\u2026",
|
|
35211
35213
|
"pluginOverlays.publishToTheMarketplace": "Publish to the marketplace",
|
|
35212
35214
|
"pluginOverlays.reject": "Reject",
|
|
35213
35215
|
"pluginOverlays.rejected": "Rejected",
|
|
@@ -97579,7 +97581,6 @@ function relinkCopies(doc2, copies) {
|
|
|
97579
97581
|
var TEXT_PATH_SOURCE_TYPES, isPathSource;
|
|
97580
97582
|
var init_text_links = __esm({
|
|
97581
97583
|
"lib/document/text-links.ts"() {
|
|
97582
|
-
"use strict";
|
|
97583
97584
|
init_transform();
|
|
97584
97585
|
TEXT_PATH_SOURCE_TYPES = ["VECTOR", "ELLIPSE", "RECTANGLE", "POLYGON", "STAR", "LINE", "ARROW", "FRAME"];
|
|
97585
97586
|
isPathSource = (n) => !!n && TEXT_PATH_SOURCE_TYPES.includes(n.type);
|
|
@@ -247047,7 +247048,6 @@ function rescaleTextEffect(node2) {
|
|
|
247047
247048
|
var DEFAULTS, BLACK5, WHITE5, fillPaint, fillColor, shadow, round, OUTLINED;
|
|
247048
247049
|
var init_effect_presets = __esm({
|
|
247049
247050
|
"lib/text/effect-presets.ts"() {
|
|
247050
|
-
"use strict";
|
|
247051
247051
|
init_effects();
|
|
247052
247052
|
DEFAULTS = {
|
|
247053
247053
|
SHADOW: { distance: 17.68, angle: 45, blur: 12.5, thickness: 0, intensity: 45 },
|
|
@@ -248028,6 +248028,7 @@ function repairCompositions(comps, nodes) {
|
|
|
248028
248028
|
var isObj5, finite6, optFinite, isVec2, TIMELINE_COLOR_IDS, TIMELINE_COLORS, UNITS, ORDERS, PROP_KEYS, ANIMATOR_ID, MOTION_TYPES, TRANSITIONS, isFraction, MEDIA_HASH;
|
|
248029
248029
|
var init_invariants = __esm({
|
|
248030
248030
|
"lib/motion/invariants.ts"() {
|
|
248031
|
+
"use strict";
|
|
248031
248032
|
init_easing();
|
|
248032
248033
|
init_properties();
|
|
248033
248034
|
init_markers();
|
|
@@ -249005,7 +249006,6 @@ function fillPhotoFrame(doc2, groupId, imageUrl, size6, name2 = "Photo", credit)
|
|
|
249005
249006
|
var isPhotoFrame;
|
|
249006
249007
|
var init_photo_frames = __esm({
|
|
249007
249008
|
"lib/document/photo-frames.ts"() {
|
|
249008
|
-
"use strict";
|
|
249009
249009
|
init_dist_node();
|
|
249010
249010
|
init_scene_graph();
|
|
249011
249011
|
init_types();
|
|
@@ -252662,7 +252662,6 @@ function resizeWindow(doc2, target2, rect) {
|
|
|
252662
252662
|
}
|
|
252663
252663
|
var init_crop = __esm({
|
|
252664
252664
|
"lib/editor/crop.ts"() {
|
|
252665
|
-
"use strict";
|
|
252666
252665
|
init_dist_node();
|
|
252667
252666
|
init_scene_graph();
|
|
252668
252667
|
init_photo_frames();
|
|
@@ -253126,7 +253125,6 @@ function getActiveRenderer() {
|
|
|
253126
253125
|
var active;
|
|
253127
253126
|
var init_renderer_registry = __esm({
|
|
253128
253127
|
"lib/engine/renderer-registry.ts"() {
|
|
253129
|
-
"use strict";
|
|
253130
253128
|
active = null;
|
|
253131
253129
|
}
|
|
253132
253130
|
});
|
|
@@ -256195,7 +256193,6 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, tm: f32) -> vec4<f32> {
|
|
|
256195
256193
|
var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET, DEFAULT_TEXTURE_PARAMS, f, vec4, NOISE_LIB;
|
|
256196
256194
|
var init_shader_presets = __esm({
|
|
256197
256195
|
"lib/engine/shader-presets.ts"() {
|
|
256198
|
-
"use strict";
|
|
256199
256196
|
init_shader_graph();
|
|
256200
256197
|
init_shader_graph_presets();
|
|
256201
256198
|
init_shader_presets_legacy();
|
|
@@ -256746,6 +256743,7 @@ function mergeFonts(fonts, incoming) {
|
|
|
256746
256743
|
var fontWeightOf, fontStyleOf, sameSlot, hashOf, documentFontHashes;
|
|
256747
256744
|
var init_document_fonts = __esm({
|
|
256748
256745
|
"lib/fonts/document-fonts.ts"() {
|
|
256746
|
+
"use strict";
|
|
256749
256747
|
init_media_store();
|
|
256750
256748
|
init_media_hash();
|
|
256751
256749
|
fontWeightOf = (f2) => f2.weight ?? 400;
|
|
@@ -256891,7 +256889,6 @@ var init_apply2 = __esm({
|
|
|
256891
256889
|
var HYPERY_CLIENT_ID, HYPERY_GATEWAY_URL, HYPERY_AI_SCOPES, plansEnabled, HYPERY_BILLING_SCOPES, HYPERY_AUDIO_SCOPES, HYPERY_SCOPES, cloudEnabled;
|
|
256892
256890
|
var init_config2 = __esm({
|
|
256893
256891
|
"lib/client/cloud/config.ts"() {
|
|
256894
|
-
"use strict";
|
|
256895
256892
|
HYPERY_CLIENT_ID = process.env.NEXT_PUBLIC_HYPERY_CLIENT_ID ?? "";
|
|
256896
256893
|
HYPERY_GATEWAY_URL = process.env.NEXT_PUBLIC_HYPERY_GATEWAY_URL ?? "https://hypery.ai";
|
|
256897
256894
|
HYPERY_AI_SCOPES = ["ai:chat", "ai:completions", "ai:models", "ai:images"];
|
|
@@ -257998,7 +257995,6 @@ async function docExists(id3) {
|
|
|
257998
257995
|
var INDEX_KEY, docKey, thumbKey, THUMB_MAX_BYTES, THUMB_TYPES, LEGACY_DATA_URL, migrating, SPLIT_LAYOUT, nodeKey, WRITER, persisted, saving, deletedHere, keyval, keyvalStore;
|
|
257999
257996
|
var init_document_library = __esm({
|
|
258000
257997
|
"lib/storage/document-library.ts"() {
|
|
258001
|
-
"use strict";
|
|
258002
257998
|
init_idb();
|
|
258003
257999
|
init_media_types();
|
|
258004
258000
|
init_collapse_duplicates();
|
|
@@ -258070,7 +258066,6 @@ function onTabMessage(fn) {
|
|
|
258070
258066
|
var EDITOR_HOME, localDocPath, cloudFilePath, CHANNEL2, channel2;
|
|
258071
258067
|
var init_tab_mode = __esm({
|
|
258072
258068
|
"lib/desktop/tab-mode.ts"() {
|
|
258073
|
-
"use strict";
|
|
258074
258069
|
EDITOR_HOME = "/home";
|
|
258075
258070
|
localDocPath = (docId) => `${EDITOR_HOME}?doc=${encodeURIComponent(docId)}`;
|
|
258076
258071
|
cloudFilePath = (key5) => `/pop/${encodeURIComponent(key5)}`;
|
|
@@ -260751,7 +260746,6 @@ function retuneShaderAudio(node2, fillId) {
|
|
|
260751
260746
|
}
|
|
260752
260747
|
var init_shader_audio = __esm({
|
|
260753
260748
|
"lib/motion/shader-audio.ts"() {
|
|
260754
|
-
"use strict";
|
|
260755
260749
|
init_shader_params();
|
|
260756
260750
|
init_modifier_edit();
|
|
260757
260751
|
init_keys();
|
|
@@ -261516,7 +261510,6 @@ function breakpointView(state, doc2 = state.document) {
|
|
|
261516
261510
|
var storedDocument;
|
|
261517
261511
|
var init_view = __esm({
|
|
261518
261512
|
"lib/motion/view.ts"() {
|
|
261519
|
-
"use strict";
|
|
261520
261513
|
init_motion_slice();
|
|
261521
261514
|
init_transport_clock();
|
|
261522
261515
|
init_autokey();
|
|
@@ -262765,6 +262758,7 @@ function formatDate(date5, opts = { month: "short", day: "numeric", year: "numer
|
|
|
262765
262758
|
var cache5, nf;
|
|
262766
262759
|
var init_format = __esm({
|
|
262767
262760
|
"lib/i18n/format.ts"() {
|
|
262761
|
+
"use strict";
|
|
262768
262762
|
init_runtime();
|
|
262769
262763
|
cache5 = /* @__PURE__ */ new Map();
|
|
262770
262764
|
nf = (opts) => cached2("n", opts, (l) => new Intl.NumberFormat(l, opts));
|
|
@@ -262784,7 +262778,6 @@ function formatLimit(key5, max3) {
|
|
|
262784
262778
|
var formatBytes;
|
|
262785
262779
|
var init_limits2 = __esm({
|
|
262786
262780
|
"lib/billing/limits.ts"() {
|
|
262787
|
-
"use strict";
|
|
262788
262781
|
init_format();
|
|
262789
262782
|
init_plans();
|
|
262790
262783
|
formatBytes = formatFileSize;
|
|
@@ -273499,7 +273492,6 @@ async function prepareTemplate(t3) {
|
|
|
273499
273492
|
var templateMediaSources, MEDIA_FETCH_TIMEOUT_MS2, PREPARE_BUDGET_MS, MEDIA_CONCURRENCY, timeoutOf;
|
|
273500
273493
|
var init_use = __esm({
|
|
273501
273494
|
"lib/templates/use.ts"() {
|
|
273502
|
-
"use strict";
|
|
273503
273495
|
init_capture();
|
|
273504
273496
|
templateMediaSources = (t3, hash3) => [
|
|
273505
273497
|
`/templates/media/${hash3}`,
|
|
@@ -307001,7 +306993,6 @@ function decodeSource(key5, label3) {
|
|
|
307001
306993
|
var DECODE_CACHE_BYTES, cache7, pending4, held, sizeOf, lengths, decodedLengths, DECODE_TIMEOUT_MS, decodedAudio, decodedSource, pcmOf;
|
|
307002
306994
|
var init_audio_decode = __esm({
|
|
307003
306995
|
"lib/motion/audio-decode.ts"() {
|
|
307004
|
-
"use strict";
|
|
307005
306996
|
init_media_store();
|
|
307006
306997
|
init_audio_plan();
|
|
307007
306998
|
init_time_stretch();
|
|
@@ -311782,6 +311773,7 @@ function startCloudSync() {
|
|
|
311782
311773
|
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;
|
|
311783
311774
|
var init_sync2 = __esm({
|
|
311784
311775
|
"lib/client/cloud/sync.ts"() {
|
|
311776
|
+
"use strict";
|
|
311785
311777
|
init_paint_repair();
|
|
311786
311778
|
init_migrate();
|
|
311787
311779
|
init_view();
|
|
@@ -311991,7 +311983,6 @@ async function dispatchShaped(key5, options) {
|
|
|
311991
311983
|
var onViolation;
|
|
311992
311984
|
var init_dispatch = __esm({
|
|
311993
311985
|
"lib/commands/dispatch.ts"() {
|
|
311994
|
-
"use strict";
|
|
311995
311986
|
init_errors();
|
|
311996
311987
|
init_registry();
|
|
311997
311988
|
init_confirm();
|
|
@@ -317513,7 +317504,6 @@ async function exportSettingFile(renderer, node2, setting, doc2, styles) {
|
|
|
317513
317504
|
var MIME, DEFAULT_EXPORT, exportSettingsOf;
|
|
317514
317505
|
var init_export = __esm({
|
|
317515
317506
|
"lib/io/export.ts"() {
|
|
317516
|
-
"use strict";
|
|
317517
317507
|
init_download();
|
|
317518
317508
|
init_scene_graph();
|
|
317519
317509
|
init_codecs();
|
|
@@ -318447,6 +318437,7 @@ function agentToolList() {
|
|
|
318447
318437
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
318448
318438
|
var init_agent = __esm({
|
|
318449
318439
|
"lib/commands/agent.ts"() {
|
|
318440
|
+
"use strict";
|
|
318450
318441
|
init_types5();
|
|
318451
318442
|
init_registry();
|
|
318452
318443
|
init_errors();
|
|
@@ -328799,7 +328790,7 @@ var init_package = __esm({
|
|
|
328799
328790
|
"packages/runtime/package.json"() {
|
|
328800
328791
|
package_default = {
|
|
328801
328792
|
name: "@popcraft/runtime",
|
|
328802
|
-
version: "0.53.
|
|
328793
|
+
version: "0.53.10",
|
|
328803
328794
|
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.",
|
|
328804
328795
|
license: "MIT",
|
|
328805
328796
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -353465,7 +353456,6 @@ function exportsOf(source3) {
|
|
|
353465
353456
|
var CODE_LIMITS, packageOf;
|
|
353466
353457
|
var init_source2 = __esm({
|
|
353467
353458
|
"lib/code/source.ts"() {
|
|
353468
|
-
"use strict";
|
|
353469
353459
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
353470
353460
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
353471
353461
|
}
|
|
@@ -353508,7 +353498,6 @@ function compileModule(module2) {
|
|
|
353508
353498
|
var import_sucrase, BUILT_IN, memo4;
|
|
353509
353499
|
var init_compile2 = __esm({
|
|
353510
353500
|
"lib/code/compile.ts"() {
|
|
353511
|
-
"use strict";
|
|
353512
353501
|
import_sucrase = __toESM(require_dist2());
|
|
353513
353502
|
init_source2();
|
|
353514
353503
|
init_source2();
|
|
@@ -362558,7 +362547,6 @@ var init_delete_current_file = __esm({
|
|
|
362558
362547
|
var storeOpsSeam;
|
|
362559
362548
|
var init_seams = __esm({
|
|
362560
362549
|
"lib/commands/seams.ts"() {
|
|
362561
|
-
"use strict";
|
|
362562
362550
|
storeOpsSeam = (st) => ({
|
|
362563
362551
|
booleanOperation: (op4) => st().booleanOperation(op4),
|
|
362564
362552
|
flatten: () => st().flattenSelection(),
|
|
@@ -368169,7 +368157,6 @@ var init_doc2 = __esm({
|
|
|
368169
368157
|
var POSTER_KEY, MAX_PREVIEW_BYTES2, PREVIEW_STILL_TYPE, previewPath;
|
|
368170
368158
|
var init_motion3 = __esm({
|
|
368171
368159
|
"lib/marketplace/motion.ts"() {
|
|
368172
|
-
"use strict";
|
|
368173
368160
|
init_instances2();
|
|
368174
368161
|
POSTER_KEY = "poster";
|
|
368175
368162
|
MAX_PREVIEW_BYTES2 = 4 * 1024 * 1024;
|
|
@@ -401617,7 +401604,6 @@ function placeDesign(doc2, built, source3, size6, name2, at4) {
|
|
|
401617
401604
|
var DESIGN_NAMESPACES, DERIVED2, templateOfBuild;
|
|
401618
401605
|
var init_build3 = __esm({
|
|
401619
401606
|
"lib/agent/design-script/build.ts"() {
|
|
401620
|
-
"use strict";
|
|
401621
401607
|
init_hash();
|
|
401622
401608
|
init_scene_graph();
|
|
401623
401609
|
init_libraries();
|
|
@@ -401647,7 +401633,6 @@ function designFrameOf(doc2, id3) {
|
|
|
401647
401633
|
}
|
|
401648
401634
|
var init_locate = __esm({
|
|
401649
401635
|
"lib/agent/design-script/locate.ts"() {
|
|
401650
|
-
"use strict";
|
|
401651
401636
|
}
|
|
401652
401637
|
});
|
|
401653
401638
|
|
|
@@ -406834,7 +406819,6 @@ function registerBuiltinCommands() {
|
|
|
406834
406819
|
var builtinCommands, uiOnlyCommands;
|
|
406835
406820
|
var init_builtin4 = __esm({
|
|
406836
406821
|
"lib/commands/builtin.ts"() {
|
|
406837
|
-
"use strict";
|
|
406838
406822
|
init_registry();
|
|
406839
406823
|
init_node();
|
|
406840
406824
|
init_node();
|
|
@@ -414396,7 +414380,7 @@ init_resources();
|
|
|
414396
414380
|
init_desktop();
|
|
414397
414381
|
init_hypery();
|
|
414398
414382
|
import { createInterface } from "node:readline";
|
|
414399
|
-
var VERSION2 = "0.53.
|
|
414383
|
+
var VERSION2 = "0.53.10";
|
|
414400
414384
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
414401
414385
|
|
|
414402
414386
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.10",
|
|
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.53.
|
|
37
|
+
"@popcraft/kit": "0.53.10"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|