@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
|
@@ -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.
|
|
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.
|
|
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
|
|
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.
|
|
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