@moxt-ai/mobius 0.0.67 → 0.0.68

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
@@ -11,7 +11,7 @@ import { mkdir as mkdir6 } from "node:fs/promises";
11
11
  // package.json
12
12
  var package_default = {
13
13
  name: "@moxt-ai/mobius",
14
- version: "0.0.67",
14
+ version: "0.0.68",
15
15
  description: "Mobius CLI for pairing and running local AI agent services.",
16
16
  type: "module",
17
17
  bin: {
@@ -62,9 +62,6 @@ var package_default = {
62
62
  esbuild: "0.28.2"
63
63
  },
64
64
  main: "dist/index.js",
65
- directories: {
66
- test: "tests"
67
- },
68
65
  keywords: [],
69
66
  author: "",
70
67
  license: "ISC",
@@ -40397,15 +40394,33 @@ async function resolveSessionDirectories(directories, bindingId, directoryId2, a
40397
40394
  }
40398
40395
  return new ResolvedSessionDirectories(cwd, additionalDirectories, additionalDirectoryEntries);
40399
40396
  }
40397
+ var OPENCODE_PROVIDER_SETTLEMENT_MILLISECONDS = 1e3;
40398
+ async function waitForAgentSettingsReadiness(agentId, signal, timer) {
40399
+ if (agentId !== "opencode") {
40400
+ return;
40401
+ }
40402
+ signal.throwIfAborted();
40403
+ await new Promise((resolve7) => {
40404
+ const readiness = timer.schedule(finish, OPENCODE_PROVIDER_SETTLEMENT_MILLISECONDS);
40405
+ function finish() {
40406
+ readiness.cancel();
40407
+ signal.removeEventListener("abort", finish);
40408
+ resolve7();
40409
+ }
40410
+ signal.addEventListener("abort", finish, { once: true });
40411
+ });
40412
+ signal.throwIfAborted();
40413
+ }
40400
40414
  function isUnavailableModel(cause, modelSettingId, requestedModel) {
40401
40415
  return cause instanceof AcpConfigurationValueUnavailableError && cause.configId === modelSettingId && cause.requestedValue === requestedModel;
40402
40416
  }
40403
40417
  function unsupportedModelIds(unsupportedModels) {
40404
40418
  return [...new Set(unsupportedModels.map((item) => item.requestedValue))];
40405
40419
  }
40406
- async function discoverAgentSettings(command, config2, directories, sessions, signal) {
40420
+ async function discoverAgentSettings(command, config2, directories, sessions, signal, timer) {
40407
40421
  const agent = config2.catalog.find(command.agentId);
40408
40422
  const cwd = await directories.resolve(config2.bindingId, "default", signal);
40423
+ await waitForAgentSettingsReadiness(agent.id, signal, timer);
40409
40424
  const baseSnapshot = await sessions.inspectAgentSettings({
40410
40425
  additionalDirectories: [],
40411
40426
  agent,
@@ -41701,7 +41716,8 @@ async function runRelayConnection(config2, directories, audit, sessions, install
41701
41716
  config2,
41702
41717
  directories,
41703
41718
  sessions,
41704
- operationSignal
41719
+ operationSignal,
41720
+ timer
41705
41721
  );
41706
41722
  for (const diagnostic of result.unsupportedModels) {
41707
41723
  const details = agentSettingsFailureDetails(command2.agentId, diagnostic);