@popcraft/cli 0.9.2 → 0.9.4
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 +9 -6
- package/package.json +2 -2
package/dist/popcraft.mjs
CHANGED
|
@@ -1173,7 +1173,7 @@ function operations(spec = openapi) {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
async function call(target2, method, path, opts = {}) {
|
|
1175
1175
|
const qs = new URLSearchParams(opts.query ?? {}).toString();
|
|
1176
|
-
const headers = { "user-agent": `popcraft-cli/${"0.9.
|
|
1176
|
+
const headers = { "user-agent": `popcraft-cli/${"0.9.4"}`, ...opts.headers };
|
|
1177
1177
|
if (target2.token) headers.authorization = `Bearer ${target2.token}`;
|
|
1178
1178
|
if (opts.contentType) headers["content-type"] = opts.contentType;
|
|
1179
1179
|
try {
|
|
@@ -239716,6 +239716,7 @@ function resyncText(doc2, ids2) {
|
|
|
239716
239716
|
var isVirtualId;
|
|
239717
239717
|
var init_invariants2 = __esm({
|
|
239718
239718
|
"lib/document/invariants.ts"() {
|
|
239719
|
+
"use strict";
|
|
239719
239720
|
init_auto_layout();
|
|
239720
239721
|
init_scene_graph();
|
|
239721
239722
|
init_text_bounds();
|
|
@@ -300898,6 +300899,7 @@ function importSVGFile(file2, document2, parentId) {
|
|
|
300898
300899
|
var ENTITIES, decode3, I, mul2, apply2, scaleOf, NUM2, nums, near, NAMED, INHERITED, PRESENTATION, len2, CAP, JOIN, SKIPPED, refId;
|
|
300899
300900
|
var init_svg_import = __esm({
|
|
300900
300901
|
"lib/io/svg-import.ts"() {
|
|
300902
|
+
"use strict";
|
|
300901
300903
|
init_dist_node();
|
|
300902
300904
|
init_types();
|
|
300903
300905
|
ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', apos: "'", nbsp: "\xA0" };
|
|
@@ -301827,7 +301829,7 @@ function reflectUrl() {
|
|
|
301827
301829
|
const docId = useEditorStore.getState().document.id;
|
|
301828
301830
|
if (isUnsavedPlaceholder(docId)) return;
|
|
301829
301831
|
if (!isDesktopTabs() && isWebHome(window.location.pathname, window.location.search)) return;
|
|
301830
|
-
const localDocId = !
|
|
301832
|
+
const localDocId = !activeLink && isPersistableDocument(docId) ? docId : null;
|
|
301831
301833
|
const base = documentPath({ linkKey: activeLink?.key, localDocId });
|
|
301832
301834
|
const atSameAddress = window.location.pathname === base.split("?")[0];
|
|
301833
301835
|
const path = atSameAddress ? withDeepLink(base, parseDeepLink(window.location.search)) : base;
|
|
@@ -308698,7 +308700,6 @@ function agentToolList() {
|
|
|
308698
308700
|
var AGENT_CAPABILITIES, legacyCommandId, legacyTools, blobToDataUrl3, provided, legacyTool, legacyToolList;
|
|
308699
308701
|
var init_agent = __esm({
|
|
308700
308702
|
"lib/commands/agent.ts"() {
|
|
308701
|
-
"use strict";
|
|
308702
308703
|
init_types5();
|
|
308703
308704
|
init_registry();
|
|
308704
308705
|
init_errors();
|
|
@@ -317232,7 +317233,7 @@ var init_package = __esm({
|
|
|
317232
317233
|
"packages/runtime/package.json"() {
|
|
317233
317234
|
package_default = {
|
|
317234
317235
|
name: "@popcraft/runtime",
|
|
317235
|
-
version: "0.9.
|
|
317236
|
+
version: "0.9.4",
|
|
317236
317237
|
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.",
|
|
317237
317238
|
license: "MIT",
|
|
317238
317239
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -342833,7 +342834,6 @@ function hashOf(text) {
|
|
|
342833
342834
|
}
|
|
342834
342835
|
var init_hash = __esm({
|
|
342835
342836
|
"lib/code/hash.ts"() {
|
|
342836
|
-
"use strict";
|
|
342837
342837
|
}
|
|
342838
342838
|
});
|
|
342839
342839
|
|
|
@@ -348917,6 +348917,7 @@ function publishSite(key5, files, opts = {}) {
|
|
|
348917
348917
|
var siteStatus, setSiteVersion, renameSite;
|
|
348918
348918
|
var init_sites = __esm({
|
|
348919
348919
|
"lib/client/cloud/sites.ts"() {
|
|
348920
|
+
"use strict";
|
|
348920
348921
|
init_files();
|
|
348921
348922
|
init_upload2();
|
|
348922
348923
|
init_api4();
|
|
@@ -349430,6 +349431,7 @@ function designRecorder() {
|
|
|
349430
349431
|
var installed;
|
|
349431
349432
|
var init_recorders = __esm({
|
|
349432
349433
|
"lib/agent/design-script/recorders.ts"() {
|
|
349434
|
+
"use strict";
|
|
349433
349435
|
installed = null;
|
|
349434
349436
|
}
|
|
349435
349437
|
});
|
|
@@ -349438,6 +349440,7 @@ var init_recorders = __esm({
|
|
|
349438
349440
|
var HELPER_NAMES;
|
|
349439
349441
|
var init_helper_names = __esm({
|
|
349440
349442
|
"lib/agent/design-script/helper-names.ts"() {
|
|
349443
|
+
"use strict";
|
|
349441
349444
|
HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
|
|
349442
349445
|
}
|
|
349443
349446
|
});
|
|
@@ -397796,7 +397799,7 @@ init_resources();
|
|
|
397796
397799
|
init_desktop();
|
|
397797
397800
|
init_hypery();
|
|
397798
397801
|
import { createInterface } from "node:readline";
|
|
397799
|
-
var VERSION2 = "0.9.
|
|
397802
|
+
var VERSION2 = "0.9.4";
|
|
397800
397803
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
397801
397804
|
|
|
397802
397805
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
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.9.
|
|
37
|
+
"@popcraft/kit": "0.9.4"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|