@popcraft/cli 0.20.1 → 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 +12 -10
- 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 {
|
|
@@ -34888,6 +34888,7 @@ var init_en2 = __esm({
|
|
|
34888
34888
|
"pluginImport.noImporterIsInstalledFor": "No importer is installed for \u201C{name}\u201D",
|
|
34889
34889
|
"pluginImport.openAFileToImport": "Open a file to import into",
|
|
34890
34890
|
"pluginImport.producedNoLayers": "\u201C{name}\u201D produced no layers",
|
|
34891
|
+
"pluginOverlays.addsExport": "Adds File \u203A Export \u203A {label}",
|
|
34891
34892
|
"pluginOverlays.allowAndRun": "Allow and run",
|
|
34892
34893
|
"pluginOverlays.allowTo": "Allow \u201C{name}\u201D to:",
|
|
34893
34894
|
"pluginOverlays.applied": "Applied {name}",
|
|
@@ -34913,7 +34914,9 @@ var init_en2 = __esm({
|
|
|
34913
34914
|
"pluginOverlays.noPluginsInstalledBrowseThe": "No plugins installed. Browse the marketplace, or install a",
|
|
34914
34915
|
"pluginOverlays.noPluginsMatchYourSearch": "No plugins match your search.",
|
|
34915
34916
|
"pluginOverlays.noPluginsPublishedYet": "No plugins published yet.",
|
|
34917
|
+
"pluginOverlays.openPanel": "Open {title}",
|
|
34916
34918
|
"pluginOverlays.openPluginsFolder": "Open plugins folder",
|
|
34919
|
+
"pluginOverlays.panelHint": "Adds the {title} tab to the sidebar while it is enabled",
|
|
34917
34920
|
"pluginOverlays.pluginPermissions": "Plugin permissions",
|
|
34918
34921
|
"pluginOverlays.plugins": "Plugins",
|
|
34919
34922
|
"pluginOverlays.published": "Published {name} {version}",
|
|
@@ -34925,6 +34928,7 @@ var init_en2 = __esm({
|
|
|
34925
34928
|
"pluginOverlays.removeFrom": "Remove from {name}",
|
|
34926
34929
|
"pluginOverlays.removeItFromThePlugins": "Remove it from the plugins folder to uninstall",
|
|
34927
34930
|
"pluginOverlays.run": "Run",
|
|
34931
|
+
"pluginOverlays.running": "Running",
|
|
34928
34932
|
"pluginOverlays.searchPlugins": "Search plugins",
|
|
34929
34933
|
"pluginOverlays.signInToInstallPublish": "Sign in to install, publish and share plugins with your workspace.",
|
|
34930
34934
|
"pluginOverlays.submittedForReview": "Submitted {name} {version} for review",
|
|
@@ -256247,6 +256251,7 @@ function planEntryAction({ home }) {
|
|
|
256247
256251
|
var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
|
|
256248
256252
|
var init_team = __esm({
|
|
256249
256253
|
"lib/client/cloud/team.ts"() {
|
|
256254
|
+
"use strict";
|
|
256250
256255
|
init_esm();
|
|
256251
256256
|
init_api4();
|
|
256252
256257
|
init_session();
|
|
@@ -264829,7 +264834,7 @@ function applyYEventsToDocument(ydoc, current3, events) {
|
|
|
264829
264834
|
if (!structure && !tree) return { ...current3, nodes };
|
|
264830
264835
|
return finishDocument(ydoc, current3, nodes);
|
|
264831
264836
|
}
|
|
264832
|
-
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;
|
|
264833
264838
|
var init_ydoc = __esm({
|
|
264834
264839
|
"lib/collab/ydoc.ts"() {
|
|
264835
264840
|
"use strict";
|
|
@@ -264837,6 +264842,7 @@ var init_ydoc = __esm({
|
|
|
264837
264842
|
LOCAL_ORIGIN = "popcraft-local";
|
|
264838
264843
|
RECORD_FIELDS = ["styles", "variables", "variableCollections", "libraries", "compositions", "collections", "records", "codeModules", "pluginData"];
|
|
264839
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]);
|
|
264840
264846
|
yRecordMaps = (ydoc) => RECORD_FIELDS.map((f2) => ydoc.getMap(f2));
|
|
264841
264847
|
TRACK_PREFIX = "motion.tracks/";
|
|
264842
264848
|
MACHINE_PARTS = ["states", "transitions", "inputs", "listeners"];
|
|
@@ -265979,7 +265985,7 @@ function startCollabSession(docId, opts) {
|
|
|
265979
265985
|
}
|
|
265980
265986
|
if (!bound || !client.canWrite() || !isActive()) return;
|
|
265981
265987
|
const shared = withoutPrivate(document2);
|
|
265982
|
-
if (synced &&
|
|
265988
|
+
if (synced && sameSyncedFields(synced, shared)) return;
|
|
265983
265989
|
lastSend = performance.now();
|
|
265984
265990
|
applyDocumentToYdoc(ydoc, synced, shared, LOCAL_ORIGIN);
|
|
265985
265991
|
synced = shared;
|
|
@@ -303947,7 +303953,6 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
|
|
|
303947
303953
|
var online, goesLocal;
|
|
303948
303954
|
var init_new_file = __esm({
|
|
303949
303955
|
"lib/client/cloud/new-file.ts"() {
|
|
303950
|
-
"use strict";
|
|
303951
303956
|
init_scene_graph();
|
|
303952
303957
|
init_print_pages();
|
|
303953
303958
|
init_page_presets();
|
|
@@ -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();
|
|
@@ -390527,7 +390531,6 @@ function record(source, namespaces, globals, limits) {
|
|
|
390527
390531
|
var HELPER_NAMES;
|
|
390528
390532
|
var init_helper_names = __esm({
|
|
390529
390533
|
"lib/agent/design-script/helper-names.ts"() {
|
|
390530
|
-
"use strict";
|
|
390531
390534
|
HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
|
|
390532
390535
|
}
|
|
390533
390536
|
});
|
|
@@ -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
|
});
|
|
@@ -403055,7 +403057,7 @@ init_resources();
|
|
|
403055
403057
|
init_desktop();
|
|
403056
403058
|
init_hypery();
|
|
403057
403059
|
import { createInterface } from "node:readline";
|
|
403058
|
-
var VERSION2 = "0.20.
|
|
403060
|
+
var VERSION2 = "0.20.2";
|
|
403059
403061
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
403060
403062
|
|
|
403061
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",
|