@popcraft/cli 0.20.0 → 0.20.2
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 +13 -12
- package/package.json +2 -2
package/dist/popcraft.mjs
CHANGED
|
@@ -1186,7 +1186,7 @@ function operations(spec = openapi) {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
async function call(target2, method, path, opts = {}) {
|
|
1188
1188
|
const qs = new URLSearchParams(opts.query ?? {}).toString();
|
|
1189
|
-
const headers = { "user-agent": `popcraft-cli/${"0.20.
|
|
1189
|
+
const headers = { "user-agent": `popcraft-cli/${"0.20.2"}`, ...opts.headers };
|
|
1190
1190
|
if (target2.token) headers.authorization = `Bearer ${target2.token}`;
|
|
1191
1191
|
if (opts.contentType) headers["content-type"] = opts.contentType;
|
|
1192
1192
|
try {
|
|
@@ -33706,6 +33706,7 @@ var init_en2 = __esm({
|
|
|
33706
33706
|
"homeTeam.delete": "Delete",
|
|
33707
33707
|
"homeTeam.deleteSite": "Delete website",
|
|
33708
33708
|
"homeTeam.deleteSiteConfirm": "Delete the website at {slug}? Every version is deleted and its address is freed. The file stays, and so does anything sent to GitHub or Vercel.",
|
|
33709
|
+
"homeTeam.deleteSiteTitle": "Delete the website of {name}?",
|
|
33709
33710
|
"homeTeam.edit": "Edit",
|
|
33710
33711
|
"homeTeam.editTitle": "Edit {name}",
|
|
33711
33712
|
"homeTeam.fileInTrash": "File in trash",
|
|
@@ -33740,6 +33741,7 @@ var init_en2 = __esm({
|
|
|
33740
33741
|
"homeTeam.rejected": "Rejected",
|
|
33741
33742
|
"homeTeam.rejectedBecause": "Rejected: {note}",
|
|
33742
33743
|
"homeTeam.removeConfirm": "Take {name} off the marketplace? A plugin is unlisted (those who installed it keep it); anything else is deleted.",
|
|
33744
|
+
"homeTeam.removeTitle": "Take {name} off the marketplace?",
|
|
33743
33745
|
"homeTeam.review": "Review",
|
|
33744
33746
|
"homeTeam.reviewHint": "Every version waiting for a reviewer, from every team. Only marketplace reviewers see this.",
|
|
33745
33747
|
"homeTeam.reviewSummary": "{id} \xB7 version {version} \xB7 by {author} \xB7 asks for {permissions}",
|
|
@@ -34886,6 +34888,7 @@ var init_en2 = __esm({
|
|
|
34886
34888
|
"pluginImport.noImporterIsInstalledFor": "No importer is installed for \u201C{name}\u201D",
|
|
34887
34889
|
"pluginImport.openAFileToImport": "Open a file to import into",
|
|
34888
34890
|
"pluginImport.producedNoLayers": "\u201C{name}\u201D produced no layers",
|
|
34891
|
+
"pluginOverlays.addsExport": "Adds File \u203A Export \u203A {label}",
|
|
34889
34892
|
"pluginOverlays.allowAndRun": "Allow and run",
|
|
34890
34893
|
"pluginOverlays.allowTo": "Allow \u201C{name}\u201D to:",
|
|
34891
34894
|
"pluginOverlays.applied": "Applied {name}",
|
|
@@ -34911,7 +34914,9 @@ var init_en2 = __esm({
|
|
|
34911
34914
|
"pluginOverlays.noPluginsInstalledBrowseThe": "No plugins installed. Browse the marketplace, or install a",
|
|
34912
34915
|
"pluginOverlays.noPluginsMatchYourSearch": "No plugins match your search.",
|
|
34913
34916
|
"pluginOverlays.noPluginsPublishedYet": "No plugins published yet.",
|
|
34917
|
+
"pluginOverlays.openPanel": "Open {title}",
|
|
34914
34918
|
"pluginOverlays.openPluginsFolder": "Open plugins folder",
|
|
34919
|
+
"pluginOverlays.panelHint": "Adds the {title} tab to the sidebar while it is enabled",
|
|
34915
34920
|
"pluginOverlays.pluginPermissions": "Plugin permissions",
|
|
34916
34921
|
"pluginOverlays.plugins": "Plugins",
|
|
34917
34922
|
"pluginOverlays.published": "Published {name} {version}",
|
|
@@ -34923,6 +34928,7 @@ var init_en2 = __esm({
|
|
|
34923
34928
|
"pluginOverlays.removeFrom": "Remove from {name}",
|
|
34924
34929
|
"pluginOverlays.removeItFromThePlugins": "Remove it from the plugins folder to uninstall",
|
|
34925
34930
|
"pluginOverlays.run": "Run",
|
|
34931
|
+
"pluginOverlays.running": "Running",
|
|
34926
34932
|
"pluginOverlays.searchPlugins": "Search plugins",
|
|
34927
34933
|
"pluginOverlays.signInToInstallPublish": "Sign in to install, publish and share plugins with your workspace.",
|
|
34928
34934
|
"pluginOverlays.submittedForReview": "Submitted {name} {version} for review",
|
|
@@ -264828,7 +264834,7 @@ function applyYEventsToDocument(ydoc, current3, events) {
|
|
|
264828
264834
|
if (!structure && !tree) return { ...current3, nodes };
|
|
264829
264835
|
return finishDocument(ydoc, current3, nodes);
|
|
264830
264836
|
}
|
|
264831
|
-
var LOCAL_ORIGIN, RECORD_FIELDS, META_FIELDS, yRecordMaps, TRACK_PREFIX, MACHINE_PARTS, MACHINE_PREFIX, MAX_DOC_NAME, UNSAFE_KEYS, isSafeKey, yNodes, yPages, yMeta;
|
|
264837
|
+
var LOCAL_ORIGIN, RECORD_FIELDS, META_FIELDS, sameSyncedFields, yRecordMaps, TRACK_PREFIX, MACHINE_PARTS, MACHINE_PREFIX, MAX_DOC_NAME, UNSAFE_KEYS, isSafeKey, yNodes, yPages, yMeta;
|
|
264832
264838
|
var init_ydoc = __esm({
|
|
264833
264839
|
"lib/collab/ydoc.ts"() {
|
|
264834
264840
|
"use strict";
|
|
@@ -264836,6 +264842,7 @@ var init_ydoc = __esm({
|
|
|
264836
264842
|
LOCAL_ORIGIN = "popcraft-local";
|
|
264837
264843
|
RECORD_FIELDS = ["styles", "variables", "variableCollections", "libraries", "compositions", "collections", "records", "codeModules", "pluginData"];
|
|
264838
264844
|
META_FIELDS = ["name", "thumbnailNodeId", "voteResults", "settings", "site"];
|
|
264845
|
+
sameSyncedFields = (prev, next2) => prev.nodes === next2.nodes && prev.pages === next2.pages && META_FIELDS.every((f2) => prev[f2] === next2[f2]) && RECORD_FIELDS.every((f2) => prev[f2] === next2[f2]);
|
|
264839
264846
|
yRecordMaps = (ydoc) => RECORD_FIELDS.map((f2) => ydoc.getMap(f2));
|
|
264840
264847
|
TRACK_PREFIX = "motion.tracks/";
|
|
264841
264848
|
MACHINE_PARTS = ["states", "transitions", "inputs", "listeners"];
|
|
@@ -265978,7 +265985,7 @@ function startCollabSession(docId, opts) {
|
|
|
265978
265985
|
}
|
|
265979
265986
|
if (!bound || !client.canWrite() || !isActive()) return;
|
|
265980
265987
|
const shared = withoutPrivate(document2);
|
|
265981
|
-
if (synced &&
|
|
265988
|
+
if (synced && sameSyncedFields(synced, shared)) return;
|
|
265982
265989
|
lastSend = performance.now();
|
|
265983
265990
|
applyDocumentToYdoc(ydoc, synced, shared, LOCAL_ORIGIN);
|
|
265984
265991
|
synced = shared;
|
|
@@ -303946,7 +303953,6 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
|
|
|
303946
303953
|
var online, goesLocal;
|
|
303947
303954
|
var init_new_file = __esm({
|
|
303948
303955
|
"lib/client/cloud/new-file.ts"() {
|
|
303949
|
-
"use strict";
|
|
303950
303956
|
init_scene_graph();
|
|
303951
303957
|
init_print_pages();
|
|
303952
303958
|
init_page_presets();
|
|
@@ -304665,7 +304671,6 @@ async function dispatchShaped(key5, options) {
|
|
|
304665
304671
|
var onViolation;
|
|
304666
304672
|
var init_dispatch = __esm({
|
|
304667
304673
|
"lib/commands/dispatch.ts"() {
|
|
304668
|
-
"use strict";
|
|
304669
304674
|
init_errors();
|
|
304670
304675
|
init_registry();
|
|
304671
304676
|
init_confirm();
|
|
@@ -310991,6 +310996,7 @@ function agentToolList() {
|
|
|
310991
310996
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
310992
310997
|
var init_agent = __esm({
|
|
310993
310998
|
"lib/commands/agent.ts"() {
|
|
310999
|
+
"use strict";
|
|
310994
311000
|
init_types5();
|
|
310995
311001
|
init_registry();
|
|
310996
311002
|
init_errors();
|
|
@@ -320594,7 +320600,7 @@ var init_package = __esm({
|
|
|
320594
320600
|
"packages/runtime/package.json"() {
|
|
320595
320601
|
package_default = {
|
|
320596
320602
|
name: "@popcraft/runtime",
|
|
320597
|
-
version: "0.20.
|
|
320603
|
+
version: "0.20.2",
|
|
320598
320604
|
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.",
|
|
320599
320605
|
license: "MIT",
|
|
320600
320606
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -345253,7 +345259,6 @@ function exportsOf(source3) {
|
|
|
345253
345259
|
var CODE_LIMITS, packageOf;
|
|
345254
345260
|
var init_source2 = __esm({
|
|
345255
345261
|
"lib/code/source.ts"() {
|
|
345256
|
-
"use strict";
|
|
345257
345262
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
345258
345263
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
345259
345264
|
}
|
|
@@ -345296,7 +345301,6 @@ function compileModule(module2) {
|
|
|
345296
345301
|
var import_sucrase, BUILT_IN, memo4;
|
|
345297
345302
|
var init_compile2 = __esm({
|
|
345298
345303
|
"lib/code/compile.ts"() {
|
|
345299
|
-
"use strict";
|
|
345300
345304
|
import_sucrase = __toESM(require_dist2());
|
|
345301
345305
|
init_source2();
|
|
345302
345306
|
init_source2();
|
|
@@ -354036,7 +354040,6 @@ var init_publish = __esm({
|
|
|
354036
354040
|
var storeOpsSeam;
|
|
354037
354041
|
var init_seams = __esm({
|
|
354038
354042
|
"lib/commands/seams.ts"() {
|
|
354039
|
-
"use strict";
|
|
354040
354043
|
storeOpsSeam = (st) => ({
|
|
354041
354044
|
booleanOperation: (op4) => st().booleanOperation(op4),
|
|
354042
354045
|
flatten: () => st().flattenSelection(),
|
|
@@ -390910,7 +390913,6 @@ function designRecorder() {
|
|
|
390910
390913
|
var installed;
|
|
390911
390914
|
var init_recorders = __esm({
|
|
390912
390915
|
"lib/agent/design-script/recorders.ts"() {
|
|
390913
|
-
"use strict";
|
|
390914
390916
|
installed = null;
|
|
390915
390917
|
}
|
|
390916
390918
|
});
|
|
@@ -395569,7 +395571,6 @@ function registerBuiltinCommands() {
|
|
|
395569
395571
|
var builtinCommands, uiOnlyCommands;
|
|
395570
395572
|
var init_builtin4 = __esm({
|
|
395571
395573
|
"lib/commands/builtin.ts"() {
|
|
395572
|
-
"use strict";
|
|
395573
395574
|
init_registry();
|
|
395574
395575
|
init_node();
|
|
395575
395576
|
init_node();
|
|
@@ -403056,7 +403057,7 @@ init_resources();
|
|
|
403056
403057
|
init_desktop();
|
|
403057
403058
|
init_hypery();
|
|
403058
403059
|
import { createInterface } from "node:readline";
|
|
403059
|
-
var VERSION2 = "0.20.
|
|
403060
|
+
var VERSION2 = "0.20.2";
|
|
403060
403061
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
403061
403062
|
|
|
403062
403063
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.2",
|
|
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.20.
|
|
37
|
+
"@popcraft/kit": "0.20.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|