@moxt-ai/mobius 0.0.137 → 0.0.138

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 CHANGED
@@ -3381,7 +3381,7 @@ var program = new Command();
3381
3381
  // package.json
3382
3382
  var package_default = {
3383
3383
  name: "@moxt-ai/mobius",
3384
- version: "0.0.137",
3384
+ version: "0.0.138",
3385
3385
  description: "Mobius CLI for pairing and running local AI agent services.",
3386
3386
  type: "module",
3387
3387
  bin: {
@@ -47286,17 +47286,21 @@ function createProgram() {
47286
47286
  };
47287
47287
  addPairMutation("stop");
47288
47288
  addPairMutation("remove");
47289
- program2.command("start").description("start the manager and activate a saved connection").addOption(valueOption("--connection <connection-id>", "saved Runtime connection identifier", true)).action(async (options) => {
47289
+ program2.command("start").description("ensure the daemon is running and optionally activate a saved connection").addOption(valueOption("--connection <connection-id>", "saved Runtime connection identifier")).action(async (options) => {
47290
47290
  const installation = await openMobiusCliInstallation(shutdown.signal, process.env);
47291
47291
  const response = await requestManager(
47292
47292
  installation,
47293
47293
  package_default.version,
47294
- { arguments: ["--connection", options.connection], kind: "start" },
47294
+ options.connection === void 0 ? { kind: "list" } : { arguments: ["--connection", options.connection], kind: "start" },
47295
47295
  shutdown.signal
47296
47296
  );
47297
47297
  if (response.kind === "error") {
47298
47298
  throw new Error(response.message);
47299
47299
  }
47300
+ if (options.connection === void 0 && response.kind === "listed") {
47301
+ process.stdout.write("Mobius daemon is running.\n");
47302
+ return;
47303
+ }
47300
47304
  if (response.kind !== "ready") {
47301
47305
  throw new Error("The Mobius manager returned an unexpected response");
47302
47306
  }