@melius-ai/cli 0.5.1 → 0.5.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/bin/mel.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  printUpgradeNoticeIfNeeded,
8
8
  withDefaultHelp,
9
9
  writeError
10
- } from "../chunk-SFL6BKJU.js";
10
+ } from "../chunk-4GUG5TD2.js";
11
11
 
12
12
  // bin/mel.ts
13
13
  var program = createProgram();
@@ -13781,7 +13781,7 @@ function isMajorUpgrade(current, latest) {
13781
13781
  return l[0] > c17[0];
13782
13782
  }
13783
13783
  function shouldShowUpgradeNotice(ctx = {}) {
13784
- const current = ctx.current ?? "0.5.1";
13784
+ const current = ctx.current ?? "0.5.2";
13785
13785
  const latest = ctx.latest ?? serverLatestVersion;
13786
13786
  const env = ctx.env ?? process.env;
13787
13787
  const isTty = ctx.isTty ?? Boolean(process.stderr.isTTY);
@@ -13802,7 +13802,7 @@ Upgrade: npm install -g @melius-ai/cli@latest (or: brew update && brew upgrade
13802
13802
  function printUpgradeNoticeIfNeeded(ctx = {}) {
13803
13803
  try {
13804
13804
  if (!shouldShowUpgradeNotice(ctx)) return;
13805
- const current = ctx.current ?? "0.5.1";
13805
+ const current = ctx.current ?? "0.5.2";
13806
13806
  const latest = ctx.latest ?? serverLatestVersion;
13807
13807
  process.stderr.write(formatUpgradeNotice(current, latest));
13808
13808
  } catch {
@@ -18480,6 +18480,7 @@ Examples:
18480
18480
  }
18481
18481
 
18482
18482
  // src/commands/asset.ts
18483
+ var ASSET_PLAN_REQUIRED_SUGGESTION = "Asset search requires a Pro or Enterprise plan \u2014 upgrade at https://app.melius.com/billing";
18483
18484
  function registerAssetCommands(program2, getOutputOpts) {
18484
18485
  const asset = program2.command("asset").description(
18485
18486
  "Search and place the team's Files (DAM) library assets. Requires a Pro or Enterprise plan"
@@ -18520,7 +18521,11 @@ Examples:
18520
18521
  }
18521
18522
  });
18522
18523
  if (result.status !== 200) {
18523
- handleApiError(result.status, result.body);
18524
+ handleApiError(
18525
+ result.status,
18526
+ result.body,
18527
+ result.status === 403 ? ASSET_PLAN_REQUIRED_SUGGESTION : void 0
18528
+ );
18524
18529
  }
18525
18530
  writeJson(result.body, getOutputOpts());
18526
18531
  }
@@ -18549,7 +18554,11 @@ Examples:
18549
18554
  body: { assetIds }
18550
18555
  });
18551
18556
  if (result.status !== 200) {
18552
- handleApiError(result.status, result.body);
18557
+ handleApiError(
18558
+ result.status,
18559
+ result.body,
18560
+ result.status === 403 ? ASSET_PLAN_REQUIRED_SUGGESTION : void 0
18561
+ );
18553
18562
  }
18554
18563
  writeJson(result.body, getOutputOpts());
18555
18564
  });
@@ -18690,7 +18699,7 @@ function withDefaultHelp(args) {
18690
18699
  }
18691
18700
  function createProgram() {
18692
18701
  const program2 = new Command();
18693
- program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.5.1").showSuggestionAfterError(true).option("--json", "Force JSON output (default)").option("--text", "Human-readable output").option(
18702
+ program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.5.2").showSuggestionAfterError(true).option("--json", "Force JSON output (default)").option("--text", "Human-readable output").option(
18694
18703
  "--fields <fields>",
18695
18704
  "Select specific output fields (comma-separated)"
18696
18705
  ).option("--quiet", "Suppress output, exit code only").option("--verbose", "Log request/response metadata to stderr").addHelpText(
package/dist/src/index.js CHANGED
@@ -2,7 +2,7 @@ import { createRequire } from 'node:module'; const require = createRequire(impor
2
2
  import {
3
3
  createProgram,
4
4
  withDefaultHelp
5
- } from "../chunk-SFL6BKJU.js";
5
+ } from "../chunk-4GUG5TD2.js";
6
6
  export {
7
7
  createProgram,
8
8
  withDefaultHelp
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melius-ai/cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "The Melius command-line interface — create canvases and run AI image/video generations from your terminal",
5
5
  "keywords": [
6
6
  "ai",