@m8t-stack/cli 0.2.123 → 0.2.124
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/cli.js +13 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1454,7 +1454,7 @@ function installFoundryDnsShim() {
|
|
|
1454
1454
|
}
|
|
1455
1455
|
|
|
1456
1456
|
// src/lib/package-version.ts
|
|
1457
|
-
var CLI_VERSION = "0.2.
|
|
1457
|
+
var CLI_VERSION = "0.2.124";
|
|
1458
1458
|
|
|
1459
1459
|
// src/lib/render-error.ts
|
|
1460
1460
|
init_errors();
|
|
@@ -23692,6 +23692,7 @@ var PlatformUpdateCommand = class extends M8tCommand {
|
|
|
23692
23692
|
};
|
|
23693
23693
|
|
|
23694
23694
|
// src/commands/platform/converge.ts
|
|
23695
|
+
import { writeFileSync as writeFileSync8 } from "fs";
|
|
23695
23696
|
import { Command as Command36 } from "clipanion";
|
|
23696
23697
|
|
|
23697
23698
|
// src/lib/platform-converge-mi.ts
|
|
@@ -24099,6 +24100,14 @@ var PlatformConvergeCommand = class extends M8tCommand {
|
|
|
24099
24100
|
return 0;
|
|
24100
24101
|
}
|
|
24101
24102
|
log(`claimed apply-request \u2192 target ${claimed.target} (execution ${executionId}).`);
|
|
24103
|
+
const targetFile = process.env.M8T_CONVERGE_TARGET_FILE;
|
|
24104
|
+
if (targetFile) {
|
|
24105
|
+
try {
|
|
24106
|
+
writeFileSync8(targetFile, claimed.target, "utf8");
|
|
24107
|
+
} catch (e) {
|
|
24108
|
+
log(`note: could not record the claimed target for the engine (${e.message}); the converge continues.`);
|
|
24109
|
+
}
|
|
24110
|
+
}
|
|
24102
24111
|
const stamp = await readStamp({
|
|
24103
24112
|
credential: ctx.credential,
|
|
24104
24113
|
subscriptionId: ctx.subscriptionId,
|
|
@@ -26418,7 +26427,7 @@ var EvalSkillCommand = class extends M8tCommand {
|
|
|
26418
26427
|
|
|
26419
26428
|
// src/commands/eval/exam.ts
|
|
26420
26429
|
import { spawnSync as spawnSync5 } from "child_process";
|
|
26421
|
-
import { writeFileSync as
|
|
26430
|
+
import { writeFileSync as writeFileSync9, mkdirSync as mkdirSync6, readFileSync as readFileSync22, existsSync as existsSync20, readdirSync as readdirSync3 } from "fs";
|
|
26422
26431
|
import { join as join30 } from "path";
|
|
26423
26432
|
import { Command as Command48, Option as Option45 } from "clipanion";
|
|
26424
26433
|
init_errors();
|
|
@@ -26744,9 +26753,9 @@ var EvalExamCommand = class extends M8tCommand {
|
|
|
26744
26753
|
if (out !== void 0) {
|
|
26745
26754
|
const sealedTaskIds = taskSetVersion ? readSealedTaskIds(taskSetVersion, out) : /* @__PURE__ */ new Set();
|
|
26746
26755
|
mkdirSync6(out, { recursive: true });
|
|
26747
|
-
|
|
26756
|
+
writeFileSync9(join30(out, "verdict.json"), JSON.stringify(verdict, null, 2));
|
|
26748
26757
|
const feed = redactForFeed(verdict, sealedTaskIds);
|
|
26749
|
-
|
|
26758
|
+
writeFileSync9(join30(out, "feed.json"), JSON.stringify(feed, null, 2));
|
|
26750
26759
|
}
|
|
26751
26760
|
if (mode === "json") {
|
|
26752
26761
|
this.context.stdout.write(renderJson(verdict) + "\n");
|