@moda-ai/cli 1.43.1 → 1.43.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.
|
@@ -29,6 +29,8 @@ import {
|
|
|
29
29
|
} from "./cli-rycpwqzm.js";
|
|
30
30
|
import {
|
|
31
31
|
CliInputError,
|
|
32
|
+
EXIT_ERROR,
|
|
33
|
+
EXIT_OK,
|
|
32
34
|
createCommandContext,
|
|
33
35
|
ensureSecretFilePermissions,
|
|
34
36
|
getActiveProfile,
|
|
@@ -5662,7 +5664,7 @@ async function runPromptAb(flags, profileOptions, context) {
|
|
|
5662
5664
|
message: enqueue.message ?? "Replay comparison queued",
|
|
5663
5665
|
plannedPlayouts
|
|
5664
5666
|
}, writeOptions);
|
|
5665
|
-
return;
|
|
5667
|
+
return EXIT_OK;
|
|
5666
5668
|
}
|
|
5667
5669
|
const deadline = Date.now() + timeoutMs;
|
|
5668
5670
|
let latest = null;
|
|
@@ -5696,7 +5698,9 @@ async function runPromptAb(flags, profileOptions, context) {
|
|
|
5696
5698
|
if (context.outputMode === "human") {
|
|
5697
5699
|
printHumanVerdict(result);
|
|
5698
5700
|
}
|
|
5699
|
-
|
|
5701
|
+
const failed = result.status === "error";
|
|
5702
|
+
context.output.writeData(result, { ...writeOptions, ...failed ? { status: "error" } : {} });
|
|
5703
|
+
return failed ? EXIT_ERROR : EXIT_OK;
|
|
5700
5704
|
} catch (error) {
|
|
5701
5705
|
if (warnings.length && error && typeof error === "object") {
|
|
5702
5706
|
Object.assign(error, { warnings });
|
|
@@ -6608,8 +6612,7 @@ async function runPromptsCommand(input, legacyFlags, legacyProfileOptions) {
|
|
|
6608
6612
|
await promotePrompt(positionals, flags, profileOptions, context);
|
|
6609
6613
|
break;
|
|
6610
6614
|
case "ab":
|
|
6611
|
-
|
|
6612
|
-
break;
|
|
6615
|
+
return runPromptAb(flags, profileOptions, context);
|
|
6613
6616
|
case "propose":
|
|
6614
6617
|
await runPromptPropose(positionals, flags, profileOptions, context);
|
|
6615
6618
|
break;
|
|
@@ -6624,6 +6627,7 @@ async function runPromptsCommand(input, legacyFlags, legacyProfileOptions) {
|
|
|
6624
6627
|
default:
|
|
6625
6628
|
throw new Error(`Unknown prompts command '${subcommand}'. Use init, status, diff, sync, promote, ab, propose, list, show, proposals, usage, replay-runs, or decide.`);
|
|
6626
6629
|
}
|
|
6630
|
+
return 0;
|
|
6627
6631
|
}
|
|
6628
6632
|
async function initPrompts(options = {}) {
|
|
6629
6633
|
const cwd = process.cwd();
|
package/dist/cli.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
runPromptsCommand,
|
|
9
9
|
runSkillsCommand,
|
|
10
10
|
runStatusCommand
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-ewerh7e2.js";
|
|
12
12
|
import {
|
|
13
13
|
ApiError,
|
|
14
14
|
HARNESS_REPORT_APPROVAL_PATH,
|
|
@@ -8330,8 +8330,7 @@ async function runCommand(command, positional, flags, positionals = positional ?
|
|
|
8330
8330
|
assertHandParsedFlags(command, flags, positionals);
|
|
8331
8331
|
switch (command) {
|
|
8332
8332
|
case "prompts": {
|
|
8333
|
-
|
|
8334
|
-
break;
|
|
8333
|
+
return runPromptsCommand(context);
|
|
8335
8334
|
}
|
|
8336
8335
|
case "overview": {
|
|
8337
8336
|
const args = flagsToArgs(flags);
|
|
@@ -9375,7 +9374,7 @@ var commandRegistry = createCommandRegistry([
|
|
|
9375
9374
|
resetApiRequestCountBeforeRun: true,
|
|
9376
9375
|
telemetry: "result",
|
|
9377
9376
|
handler: async (context) => {
|
|
9378
|
-
const { runInit } = await import("./index-
|
|
9377
|
+
const { runInit } = await import("./index-n8vtc24p.js");
|
|
9379
9378
|
if (context.outputMode === "agent-stream") {
|
|
9380
9379
|
context.output.writeEvent({
|
|
9381
9380
|
event: "started",
|
package/package.json
CHANGED