mycomesh-consumer 0.9.9 → 0.9.10

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.
@@ -1,7 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { main } from "../src/cli.mjs";
3
3
 
4
- main().then((code) => { if (typeof code === "number") process.exitCode = code; }).catch((error) => {
4
+ // A one-shot command is done when main returns (serve never does): exit then, once the output is flushed,
5
+ // rather than wait for background discovery refreshes that the next run will redo anyway.
6
+ const exit = (code) => process.stdout.write("", () => process.stderr.write("", () => process.exit(code)));
7
+
8
+ main().then((code) => exit(typeof code === "number" ? code : 0)).catch((error) => {
5
9
  process.stderr.write(`mycomesh-consumer: ${error.message}\n`);
6
- process.exitCode = 1;
10
+ exit(1);
7
11
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mycomesh-consumer",
3
- "version": "0.9.9",
3
+ "version": "0.9.10",
4
4
  "description": "MycoMesh V11 Consumer: a custodied deposit, relay-blind encrypted requests to any Provider, and a local OpenAI-compatible endpoint.",
5
5
  "repository": {
6
6
  "type": "git",