@melius-ai/cli 0.10.0 → 0.10.1

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-GEI5UAWV.js";
10
+ } from "../chunk-NNJE574V.js";
11
11
 
12
12
  // bin/mel.ts
13
13
  var program = createProgram();
@@ -13036,6 +13036,10 @@ var ProfileUserSchema = external_exports.object({
13036
13036
  name: external_exports.string(),
13037
13037
  email: external_exports.string(),
13038
13038
  agentAutoRun: external_exports.boolean(),
13039
+ // Set once the user answers the "how did you hear about us" intro. Marks
13040
+ // the account-level onboarding as done, independently of the canvas
13041
+ // product tour (`completedProductTour`).
13042
+ signupSource: external_exports.string().nullable(),
13039
13043
  completedProductTour: external_exports.string().datetime().nullable(),
13040
13044
  avatarUrl: external_exports.string().nullable(),
13041
13045
  advancedSettings: UserAdvancedSettingsSchema
@@ -14405,7 +14409,7 @@ function isMajorUpgrade(current, latest) {
14405
14409
  return l[0] > c17[0];
14406
14410
  }
14407
14411
  function shouldShowUpgradeNotice(ctx = {}) {
14408
- const current = ctx.current ?? "0.10.0";
14412
+ const current = ctx.current ?? "0.10.1";
14409
14413
  const latest = ctx.latest ?? serverLatestVersion;
14410
14414
  const env = ctx.env ?? process.env;
14411
14415
  const isTty = ctx.isTty ?? Boolean(process.stderr.isTTY);
@@ -14426,7 +14430,7 @@ Upgrade: npm install -g @melius-ai/cli@latest (or: brew update && brew upgrade
14426
14430
  function printUpgradeNoticeIfNeeded(ctx = {}) {
14427
14431
  try {
14428
14432
  if (!shouldShowUpgradeNotice(ctx)) return;
14429
- const current = ctx.current ?? "0.10.0";
14433
+ const current = ctx.current ?? "0.10.1";
14430
14434
  const latest = ctx.latest ?? serverLatestVersion;
14431
14435
  process.stderr.write(formatUpgradeNotice(current, latest));
14432
14436
  } catch {
@@ -15871,6 +15875,11 @@ function resolveNodeIds(lookup, nodeIds) {
15871
15875
  return { resolvedNodeIds, unresolvedTempLabels };
15872
15876
  }
15873
15877
 
15878
+ // ../api-contract/src/edge-id.ts
15879
+ function normalizeEdgeId(id, generateId = () => crypto.randomUUID()) {
15880
+ return id && UUID_RE.test(id) ? id : generateId();
15881
+ }
15882
+
15874
15883
  // ../api-contract/src/media-types.ts
15875
15884
  var IMAGE_CONTENT_TYPE_BY_EXTENSION = {
15876
15885
  ".jpg": "image/jpeg",
@@ -17101,7 +17110,7 @@ Valid node types: text, image, video, audio, file, group, custom_text, stitch.
17101
17110
  if (edgeItems && edgeItems.length > 0) {
17102
17111
  const resolveId = (ref) => labelToId.get(ref) ?? ref;
17103
17112
  const edges = edgeItems.map((item) => ({
17104
- id: item.id ?? crypto.randomUUID(),
17113
+ id: normalizeEdgeId(item.id),
17105
17114
  srcNodeId: resolveId(item.src),
17106
17115
  dstNodeId: resolveId(item.dst),
17107
17116
  edgeType: item.type,
@@ -19554,7 +19563,7 @@ function withDefaultHelp(args) {
19554
19563
  }
19555
19564
  function createProgram() {
19556
19565
  const program2 = new Command();
19557
- program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.10.0").showSuggestionAfterError(true).option("--json", "Force JSON output (default)").option("--text", "Human-readable output").option(
19566
+ program2.name("mel").description("Mel \u2014 Melius agent CLI").version("0.10.1").showSuggestionAfterError(true).option("--json", "Force JSON output (default)").option("--text", "Human-readable output").option(
19558
19567
  "--fields <fields>",
19559
19568
  "Select specific output fields (comma-separated)"
19560
19569
  ).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-GEI5UAWV.js";
5
+ } from "../chunk-NNJE574V.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.10.0",
3
+ "version": "0.10.1",
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",