@popcraft/cli 0.18.0 → 0.19.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 +31 -6
- 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.
|
|
1189
|
+
const headers = { "user-agent": `popcraft-cli/${"0.19.0"}`, ...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 {
|
|
@@ -33700,38 +33700,61 @@ var init_en2 = __esm({
|
|
|
33700
33700
|
"homePage.surfacePro": "Surface Pro",
|
|
33701
33701
|
"homePage.viewingVersionHistory": "Viewing version history",
|
|
33702
33702
|
"homePage.workspace": "Workspace",
|
|
33703
|
+
"homeTeam.approve": "Approve",
|
|
33703
33704
|
"homeTeam.browseMarketplace": "Browse the marketplace",
|
|
33705
|
+
"homeTeam.cancel": "Cancel",
|
|
33706
|
+
"homeTeam.delete": "Delete",
|
|
33704
33707
|
"homeTeam.deleteSite": "Delete website",
|
|
33705
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.edit": "Edit",
|
|
33710
|
+
"homeTeam.editTitle": "Edit {name}",
|
|
33706
33711
|
"homeTeam.fileInTrash": "File in trash",
|
|
33707
33712
|
"homeTeam.inReview": "In review",
|
|
33708
33713
|
"homeTeam.libraries": "Libraries",
|
|
33709
33714
|
"homeTeam.libraryHint": "Publish a file's components, styles and variables as a library from Assets \u203A Libraries in the file.",
|
|
33710
|
-
"homeTeam.
|
|
33715
|
+
"homeTeam.libraryVersion": "Version {version} \xB7 {installs, plural, one {# install} other {# installs}}",
|
|
33716
|
+
"homeTeam.listedInMarketplace": "Listed in the marketplace",
|
|
33711
33717
|
"homeTeam.marketHint": "Everything this team has published: its websites, plugins and theme packs, templates, brushes and shaders.",
|
|
33718
|
+
"homeTeam.name": "Name",
|
|
33712
33719
|
"homeTeam.noLibraries": "This team has no libraries yet.",
|
|
33713
33720
|
"homeTeam.noPacks": "No brush or shader packs published yet.",
|
|
33721
|
+
"homeTeam.noPermissions": "no permissions",
|
|
33714
33722
|
"homeTeam.noPlugins": "No plugins or theme packs published yet.",
|
|
33715
33723
|
"homeTeam.noSites": "No websites published yet. Publish one from a file's Publish button.",
|
|
33716
33724
|
"homeTeam.noTemplates": "No team templates yet.",
|
|
33725
|
+
"homeTeam.nothingToReview": "Nothing is waiting for review.",
|
|
33717
33726
|
"homeTeam.offline": "Offline",
|
|
33718
33727
|
"homeTeam.online": "Online \xB7 version {version}",
|
|
33719
33728
|
"homeTeam.openFile": "Open file",
|
|
33720
33729
|
"homeTeam.packs": "Brushes and shaders",
|
|
33721
33730
|
"homeTeam.packSummary": "{items, plural, one {# item} other {# items}} \xB7 {installs, plural, one {# install} other {# installs}}",
|
|
33731
|
+
"homeTeam.plugin": "Plugin",
|
|
33722
33732
|
"homeTeam.plugins": "Plugins and theme packs",
|
|
33723
33733
|
"homeTeam.pluginSummary": "{id} \xB7 version {version} \xB7 {installs, plural, one {# install} other {# installs}}",
|
|
33734
|
+
"homeTeam.private": "Private",
|
|
33724
33735
|
"homeTeam.public": "Public",
|
|
33736
|
+
"homeTeam.publicInMarketplace": "Public in the marketplace",
|
|
33725
33737
|
"homeTeam.putOnline": "Put online",
|
|
33738
|
+
"homeTeam.reject": "Reject",
|
|
33739
|
+
"homeTeam.rejectNote": "Why (for the publisher)",
|
|
33726
33740
|
"homeTeam.rejected": "Rejected",
|
|
33741
|
+
"homeTeam.rejectedBecause": "Rejected: {note}",
|
|
33742
|
+
"homeTeam.removeConfirm": "Take {name} off the marketplace? A plugin is unlisted (those who installed it keep it); anything else is deleted.",
|
|
33743
|
+
"homeTeam.review": "Review",
|
|
33744
|
+
"homeTeam.reviewHint": "Every version waiting for a reviewer, from every team. Only marketplace reviewers see this.",
|
|
33745
|
+
"homeTeam.reviewSummary": "{id} \xB7 version {version} \xB7 by {author} \xB7 asks for {permissions}",
|
|
33746
|
+
"homeTeam.save": "Save",
|
|
33727
33747
|
"homeTeam.sites": "Websites",
|
|
33728
33748
|
"homeTeam.sitesOfLimit": "{used} of {limit} on this plan",
|
|
33729
33749
|
"homeTeam.sitesUnlimited": "{used, plural, one {# website} other {# websites}}",
|
|
33730
33750
|
"homeTeam.takeOffline": "Take offline",
|
|
33731
33751
|
"homeTeam.templates": "Templates",
|
|
33732
33752
|
"homeTeam.templateSummary": "{installs, plural, one {Used once} other {Used # times}}",
|
|
33753
|
+
"homeTeam.themePack": "Theme pack",
|
|
33733
33754
|
"homeTeam.themes": "{count, plural, one {# theme} other {# themes}}",
|
|
33755
|
+
"homeTeam.unlist": "Unlist",
|
|
33734
33756
|
"homeTeam.unlisted": "Unlisted",
|
|
33757
|
+
"homeTeam.unpublish": "Unpublish",
|
|
33735
33758
|
"homeTeam.viewListing": "View its marketplace listing",
|
|
33736
33759
|
"homeTemplates.browseAll": "Browse all templates",
|
|
33737
33760
|
"homeTemplates.couldNotLoad": "Templates couldn't load. Browse all templates to try again.",
|
|
@@ -256222,7 +256245,6 @@ function planEntryAction({ home }) {
|
|
|
256222
256245
|
var STORAGE_KEY2, useHyperyTeam, TEAM_PROMPT_ENABLED, TEAM_PROMPTED_KEY, PROMPTED_KEY, useTeamPrompt, started;
|
|
256223
256246
|
var init_team = __esm({
|
|
256224
256247
|
"lib/client/cloud/team.ts"() {
|
|
256225
|
-
"use strict";
|
|
256226
256248
|
init_esm();
|
|
256227
256249
|
init_api4();
|
|
256228
256250
|
init_session();
|
|
@@ -303923,6 +303945,7 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
|
|
|
303923
303945
|
var online, goesLocal;
|
|
303924
303946
|
var init_new_file = __esm({
|
|
303925
303947
|
"lib/client/cloud/new-file.ts"() {
|
|
303948
|
+
"use strict";
|
|
303926
303949
|
init_scene_graph();
|
|
303927
303950
|
init_print_pages();
|
|
303928
303951
|
init_page_presets();
|
|
@@ -310477,6 +310500,7 @@ function videoPixelSize(resolution, aspect) {
|
|
|
310477
310500
|
var VIDEO_ASPECTS, VIDEO_RESOLUTIONS, SEEDANCE_ASPECTS, range, VIDEO_MODELS, DEFAULT_VIDEO_MODEL, videoModel, VIDEO_LIMITS;
|
|
310478
310501
|
var init_video_models = __esm({
|
|
310479
310502
|
"lib/ai/video-models.ts"() {
|
|
310503
|
+
"use strict";
|
|
310480
310504
|
VIDEO_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
|
|
310481
310505
|
VIDEO_RESOLUTIONS = ["480p", "720p", "1080p"];
|
|
310482
310506
|
SEEDANCE_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
|
|
@@ -320568,7 +320592,7 @@ var init_package = __esm({
|
|
|
320568
320592
|
"packages/runtime/package.json"() {
|
|
320569
320593
|
package_default = {
|
|
320570
320594
|
name: "@popcraft/runtime",
|
|
320571
|
-
version: "0.
|
|
320595
|
+
version: "0.19.0",
|
|
320572
320596
|
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.",
|
|
320573
320597
|
license: "MIT",
|
|
320574
320598
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -345227,6 +345251,7 @@ function exportsOf(source3) {
|
|
|
345227
345251
|
var CODE_LIMITS, packageOf;
|
|
345228
345252
|
var init_source2 = __esm({
|
|
345229
345253
|
"lib/code/source.ts"() {
|
|
345254
|
+
"use strict";
|
|
345230
345255
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
345231
345256
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
345232
345257
|
}
|
|
@@ -345269,6 +345294,7 @@ function compileModule(module2) {
|
|
|
345269
345294
|
var import_sucrase, BUILT_IN, memo4;
|
|
345270
345295
|
var init_compile2 = __esm({
|
|
345271
345296
|
"lib/code/compile.ts"() {
|
|
345297
|
+
"use strict";
|
|
345272
345298
|
import_sucrase = __toESM(require_dist2());
|
|
345273
345299
|
init_source2();
|
|
345274
345300
|
init_source2();
|
|
@@ -354008,7 +354034,6 @@ var init_publish = __esm({
|
|
|
354008
354034
|
var storeOpsSeam;
|
|
354009
354035
|
var init_seams = __esm({
|
|
354010
354036
|
"lib/commands/seams.ts"() {
|
|
354011
|
-
"use strict";
|
|
354012
354037
|
storeOpsSeam = (st) => ({
|
|
354013
354038
|
booleanOperation: (op4) => st().booleanOperation(op4),
|
|
354014
354039
|
flatten: () => st().flattenSelection(),
|
|
@@ -403028,7 +403053,7 @@ init_resources();
|
|
|
403028
403053
|
init_desktop();
|
|
403029
403054
|
init_hypery();
|
|
403030
403055
|
import { createInterface } from "node:readline";
|
|
403031
|
-
var VERSION2 = "0.
|
|
403056
|
+
var VERSION2 = "0.19.0";
|
|
403032
403057
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
403033
403058
|
|
|
403034
403059
|
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.19.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.19.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|