@popcraft/cli 0.18.0 → 0.20.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.
Files changed (2) hide show
  1. package/dist/popcraft.mjs +33 -5
  2. 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.18.0"}`, ...opts.headers };
1189
+ const headers = { "user-agent": `popcraft-cli/${"0.20.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.librarySummary": "Version {version} \xB7 {components, plural, one {# component} other {# components}} \xB7 {styles, plural, one {# style} other {# styles}} \xB7 {variables, plural, one {# variable} other {# variables}}",
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.",
@@ -303923,6 +303946,7 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
303923
303946
  var online, goesLocal;
303924
303947
  var init_new_file = __esm({
303925
303948
  "lib/client/cloud/new-file.ts"() {
303949
+ "use strict";
303926
303950
  init_scene_graph();
303927
303951
  init_print_pages();
303928
303952
  init_page_presets();
@@ -304641,6 +304665,7 @@ async function dispatchShaped(key5, options) {
304641
304665
  var onViolation;
304642
304666
  var init_dispatch = __esm({
304643
304667
  "lib/commands/dispatch.ts"() {
304668
+ "use strict";
304644
304669
  init_errors();
304645
304670
  init_registry();
304646
304671
  init_confirm();
@@ -310477,6 +310502,7 @@ function videoPixelSize(resolution, aspect) {
310477
310502
  var VIDEO_ASPECTS, VIDEO_RESOLUTIONS, SEEDANCE_ASPECTS, range, VIDEO_MODELS, DEFAULT_VIDEO_MODEL, videoModel, VIDEO_LIMITS;
310478
310503
  var init_video_models = __esm({
310479
310504
  "lib/ai/video-models.ts"() {
310505
+ "use strict";
310480
310506
  VIDEO_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
310481
310507
  VIDEO_RESOLUTIONS = ["480p", "720p", "1080p"];
310482
310508
  SEEDANCE_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"];
@@ -320568,7 +320594,7 @@ var init_package = __esm({
320568
320594
  "packages/runtime/package.json"() {
320569
320595
  package_default = {
320570
320596
  name: "@popcraft/runtime",
320571
- version: "0.18.0",
320597
+ version: "0.20.0",
320572
320598
  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
320599
  license: "MIT",
320574
320600
  homepage: "https://popcraft.app/docs/exporting/nextjs",
@@ -345227,6 +345253,7 @@ function exportsOf(source3) {
345227
345253
  var CODE_LIMITS, packageOf;
345228
345254
  var init_source2 = __esm({
345229
345255
  "lib/code/source.ts"() {
345256
+ "use strict";
345230
345257
  CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
345231
345258
  packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
345232
345259
  }
@@ -345269,6 +345296,7 @@ function compileModule(module2) {
345269
345296
  var import_sucrase, BUILT_IN, memo4;
345270
345297
  var init_compile2 = __esm({
345271
345298
  "lib/code/compile.ts"() {
345299
+ "use strict";
345272
345300
  import_sucrase = __toESM(require_dist2());
345273
345301
  init_source2();
345274
345302
  init_source2();
@@ -390500,7 +390528,6 @@ function record(source, namespaces, globals, limits) {
390500
390528
  var HELPER_NAMES;
390501
390529
  var init_helper_names = __esm({
390502
390530
  "lib/agent/design-script/helper-names.ts"() {
390503
- "use strict";
390504
390531
  HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
390505
390532
  }
390506
390533
  });
@@ -395542,6 +395569,7 @@ function registerBuiltinCommands() {
395542
395569
  var builtinCommands, uiOnlyCommands;
395543
395570
  var init_builtin4 = __esm({
395544
395571
  "lib/commands/builtin.ts"() {
395572
+ "use strict";
395545
395573
  init_registry();
395546
395574
  init_node();
395547
395575
  init_node();
@@ -403028,7 +403056,7 @@ init_resources();
403028
403056
  init_desktop();
403029
403057
  init_hypery();
403030
403058
  import { createInterface } from "node:readline";
403031
- var VERSION2 = "0.18.0";
403059
+ var VERSION2 = "0.20.0";
403032
403060
  var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
403033
403061
 
403034
403062
  Files (headless, on .popcraft files):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcraft/cli",
3
- "version": "0.18.0",
3
+ "version": "0.20.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.18.0"
37
+ "@popcraft/kit": "0.20.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node build.mjs",