@zaflun/lumio-cli 0.10.8 → 0.11.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/CHANGELOG.md CHANGED
@@ -5,6 +5,21 @@ All notable changes to `@zaflun/lumio-cli` are documented here.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 0.11.0
9
+
10
+ ### Removed
11
+
12
+ - **`lumio deploy --system`** — the option uploaded to a system upload
13
+ endpoint the API does not have. Lumio's system extensions ship inside the API image and the API
14
+ uploads their bundles at startup, so the CLI has no system deploy path any
15
+ more. With it goes the changelog-entry requirement that only applied to
16
+ `--system`; the release-notes rule for `lumio deploy` is unchanged.
17
+
18
+ ### Changed
19
+
20
+ - **`lumio dev` protocol check** — built against `@zaflun/lumio-protocol`
21
+ 0.10.1 (`spotify:play` / `spotify:pause` can carry `source: "spotify_app"`).
22
+
8
23
  ## 0.10.8
9
24
 
10
25
  ### Added
package/dist/index.js CHANGED
@@ -1655,7 +1655,7 @@ function compareVersions(a, b) {
1655
1655
  }
1656
1656
 
1657
1657
  // src/dev/version.ts
1658
- var CLI_PROTOCOL_VERSION = "0.10.0";
1658
+ var CLI_PROTOCOL_VERSION = "0.10.1";
1659
1659
 
1660
1660
  // src/dev/project-modules.ts
1661
1661
  var MissingPackageError = class extends Error {
@@ -3885,17 +3885,8 @@ function getVersionEntry(changelog, version) {
3885
3885
 
3886
3886
  // src/changelog/release-notes.ts
3887
3887
  function resolveReleaseNotes(input) {
3888
- const { changelog, version, description, system, ci } = input;
3888
+ const { changelog, version, description, ci } = input;
3889
3889
  const entry = changelog === null ? null : getVersionEntry(changelog, version);
3890
- if (system && !entry?.content) {
3891
- return {
3892
- ok: false,
3893
- error: [
3894
- `No CHANGELOG.md entry found for version ${version}.`,
3895
- `System extensions must document every deployed version: add a "## [${version}] - YYYY-MM-DD" section to CHANGELOG.md.`
3896
- ]
3897
- };
3898
- }
3899
3890
  if (description) return { ok: true, notes: description };
3900
3891
  if (entry) return { ok: true, notes: entry.content };
3901
3892
  if (changelog !== null && !ci) {
@@ -3959,7 +3950,7 @@ var MAX_FILE_SIZE = 10 * 1024 * 1024;
3959
3950
  var MAX_TOTAL_SIZE = 50 * 1024 * 1024;
3960
3951
  var MAX_FILES = 200;
3961
3952
  function registerDeploy(program2) {
3962
- program2.command("deploy").description("Upload extension to Lumio (status: draft)").option("-v, --version <version>", "Version override").option("-d, --description <text>", "Release notes override").option("--breaking", "Mark as breaking change").option("--draft", "Explicitly mark as draft").option("--token <token>", "API token (for CI, skips login). Use a developer key (lm_dev_*) minted under Account \u2192 Developer for publishing.").option("--system", "Deploy as system extension (no developer profile required)").action(async (options) => {
3953
+ program2.command("deploy").description("Upload extension to Lumio (status: draft)").option("-v, --version <version>", "Version override").option("-d, --description <text>", "Release notes override").option("--breaking", "Mark as breaking change").option("--draft", "Explicitly mark as draft").option("--token <token>", "API token (for CI, skips login). Use a developer key (lm_dev_*) minted under Account \u2192 Developer for publishing.").action(async (options) => {
3963
3954
  const store = new CredentialStore();
3964
3955
  const token = options.token ?? store.getToken();
3965
3956
  if (!token) {
@@ -4066,7 +4057,6 @@ function registerDeploy(program2) {
4066
4057
  changelog: fs12.existsSync(changelogPath) ? fs12.readFileSync(changelogPath, "utf-8") : null,
4067
4058
  version,
4068
4059
  description: options.description,
4069
- system: !!options.system,
4070
4060
  ci: LumioApiClient.isCI()
4071
4061
  });
4072
4062
  if (!notes.ok) {
@@ -4156,8 +4146,7 @@ function registerDeploy(program2) {
4156
4146
  console.log(` Total: ${bundleFiles.length} files (${(totalSize / 1024).toFixed(1)} KB)`);
4157
4147
  console.log(" Uploading...");
4158
4148
  try {
4159
- const uploadPath = options.system ? `/v1/system/extensions/${config.extensionId}/versions/upload` : `/v1/developer/extensions/${config.extensionId}/versions/upload`;
4160
- await client.uploadFile(uploadPath, formData);
4149
+ await client.uploadFile(`/v1/developer/extensions/${config.extensionId}/versions/upload`, formData);
4161
4150
  console.log("\n Upload successful. Status: draft");
4162
4151
  console.log(" Submit for review via the dashboard or `lumio status`.");
4163
4152
  if (LumioApiClient.isCI()) {