@melius-ai/cli 0.15.2 → 0.15.3

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-ITZSZCBQ.js";
10
+ } from "../chunk-SEXDTRY5.js";
11
11
 
12
12
  // bin/mel.ts
13
13
  var program = createProgram();
@@ -12,7 +12,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
12
12
  throw Error('Dynamic require of "' + x + '" is not supported');
13
13
  });
14
14
  var __commonJS = (cb, mod) => function __require2() {
15
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
+ try {
16
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
+ } catch (e) {
18
+ throw mod = 0, e;
19
+ }
16
20
  };
17
21
  var __export = (target, all) => {
18
22
  for (var name in all)
@@ -11146,7 +11150,16 @@ var CanvasResponseSchema = external_exports.object({
11146
11150
  createdByUserId: external_exports.string().uuid().nullable(),
11147
11151
  previewAssets: external_exports.array(PreviewAssetSchema),
11148
11152
  createdAt: external_exports.string().datetime(),
11149
- updatedAt: external_exports.string().datetime()
11153
+ updatedAt: external_exports.string().datetime(),
11154
+ /**
11155
+ * Present and `true` only for a canvas the product owns rather than the
11156
+ * member — Cast's generation canvases. Ordinary canvases omit it, so a
11157
+ * client built before this field reads every canvas the way it always did.
11158
+ *
11159
+ * Only a Melius account is ever shown one at all; this is what lets the
11160
+ * surface say so rather than passing it off as the member's own work.
11161
+ */
11162
+ isSystem: external_exports.boolean().optional()
11150
11163
  });
11151
11164
  var CanvasVersionFavoriteSchema = external_exports.object({
11152
11165
  nodeId: external_exports.string().uuid(),
@@ -14568,7 +14581,20 @@ var ProfileUserSchema = external_exports.object({
14568
14581
  signupSource: external_exports.string().nullable(),
14569
14582
  completedProductTour: external_exports.string().datetime().nullable(),
14570
14583
  avatarUrl: external_exports.string().nullable(),
14571
- advancedSettings: UserAdvancedSettingsSchema
14584
+ advancedSettings: UserAdvancedSettingsSchema,
14585
+ /**
14586
+ * Whether this session may open the staff tools panel — a Melius account,
14587
+ * or somebody of ours behind a verified impersonation marker.
14588
+ *
14589
+ * Sent because the client cannot work it out. While impersonating, `email`
14590
+ * above is the *customer's*, so a panel gated on the address it can see
14591
+ * would disappear exactly when support needs it. Says nothing about what
14592
+ * the tools do: the server re-decides that per request, so a client that
14593
+ * forces this to true gets a panel whose switches change nothing.
14594
+ *
14595
+ * Optional, so a client built before this reads the payload unchanged.
14596
+ */
14597
+ canUseStaffTools: external_exports.boolean().optional()
14572
14598
  });
14573
14599
  var ProfileReferralInfoSchema = external_exports.object({
14574
14600
  code: external_exports.string()
@@ -15095,7 +15121,9 @@ var ProjectResponseSchema = external_exports.object({
15095
15121
  previewAssets: external_exports.array(PreviewAssetSchema),
15096
15122
  createdAt: external_exports.string().datetime(),
15097
15123
  updatedAt: external_exports.string().datetime(),
15098
- lastEditAt: external_exports.string().datetime()
15124
+ lastEditAt: external_exports.string().datetime(),
15125
+ /** As on a canvas: the product's own project, shown only to a Melius account. */
15126
+ isSystem: external_exports.boolean().optional()
15099
15127
  });
15100
15128
  var ProjectOptionSchema = ProjectResponseSchema.pick({
15101
15129
  id: true,
@@ -16067,7 +16095,7 @@ function isMajorUpgrade(current, latest) {
16067
16095
  return l[0] > c14[0];
16068
16096
  }
16069
16097
  function shouldShowUpgradeNotice(ctx = {}) {
16070
- const current = ctx.current ?? "0.15.2";
16098
+ const current = ctx.current ?? "0.15.3";
16071
16099
  const latest = ctx.latest ?? serverLatestVersion;
16072
16100
  const env = ctx.env ?? process.env;
16073
16101
  const isTty = ctx.isTty ?? Boolean(process.stderr.isTTY);
@@ -16088,7 +16116,7 @@ Upgrade: npm install -g @melius-ai/cli@latest (or: brew update && brew upgrade
16088
16116
  function printUpgradeNoticeIfNeeded(ctx = {}) {
16089
16117
  try {
16090
16118
  if (!shouldShowUpgradeNotice(ctx)) return;
16091
- const current = ctx.current ?? "0.15.2";
16119
+ const current = ctx.current ?? "0.15.3";
16092
16120
  const latest = ctx.latest ?? serverLatestVersion;
16093
16121
  process.stderr.write(formatUpgradeNotice(current, latest));
16094
16122
  } catch {
@@ -20420,7 +20448,7 @@ function withDefaultHelp(args) {
20420
20448
  }
20421
20449
  function createProgram() {
20422
20450
  const program2 = new Command();
20423
- program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.15.2").showSuggestionAfterError(true).option("--json", "Force JSON output (default)").option("--text", "Human-readable output").option(
20451
+ program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.15.3").showSuggestionAfterError(true).option("--json", "Force JSON output (default)").option("--text", "Human-readable output").option(
20424
20452
  "--fields <fields>",
20425
20453
  "Select specific output fields (comma-separated)"
20426
20454
  ).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-ITZSZCBQ.js";
5
+ } from "../chunk-SEXDTRY5.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.15.2",
3
+ "version": "0.15.3",
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",