@moxt-ai/mobius 0.0.293 → 0.0.294

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.
Files changed (31) hide show
  1. package/dist/acp/harness/codex/agent.d.ts.map +1 -1
  2. package/dist/acp/harness/codex/agent.js +8 -2
  3. package/dist/acp/harness/codex/agent.js.map +1 -1
  4. package/dist/acp/harness/codex/borrowed-agent.d.ts +2 -4
  5. package/dist/acp/harness/codex/borrowed-agent.d.ts.map +1 -1
  6. package/dist/acp/harness/codex/borrowed-agent.js +2 -1
  7. package/dist/acp/harness/codex/borrowed-agent.js.map +1 -1
  8. package/dist/acp/harness/codex/owned-agent.d.ts +1 -0
  9. package/dist/acp/harness/codex/owned-agent.d.ts.map +1 -1
  10. package/dist/acp/harness/codex/owned-agent.js +1 -0
  11. package/dist/acp/harness/codex/owned-agent.js.map +1 -1
  12. package/dist/acp/harness/codex/session-agent.d.ts +1 -0
  13. package/dist/acp/harness/codex/session-agent.d.ts.map +1 -1
  14. package/dist/acp/protocol/session-capabilities.d.ts +2 -0
  15. package/dist/acp/protocol/session-capabilities.d.ts.map +1 -1
  16. package/dist/acp/protocol/session-capabilities.js +11 -0
  17. package/dist/acp/protocol/session-capabilities.js.map +1 -1
  18. package/dist/cli.js +27 -4
  19. package/dist/cli.js.map +2 -2
  20. package/dist/runtime.js +27 -4
  21. package/dist/runtime.js.map +2 -2
  22. package/dist/session/live/agent-session-restore.d.ts +1 -0
  23. package/dist/session/live/agent-session-restore.d.ts.map +1 -1
  24. package/dist/session/live/agent-session.d.ts +1 -0
  25. package/dist/session/live/agent-session.d.ts.map +1 -1
  26. package/dist/session/live/agent-session.js +5 -1
  27. package/dist/session/live/agent-session.js.map +1 -1
  28. package/dist/session/live/session-restore.d.ts.map +1 -1
  29. package/dist/session/live/session-restore.js +1 -0
  30. package/dist/session/live/session-restore.js.map +1 -1
  31. package/package.json +1 -1
package/dist/runtime.js CHANGED
@@ -958,6 +958,16 @@ function normalizeAcpCapabilities(initialized) {
958
958
  unstableForkSession: session?.fork != null
959
959
  });
960
960
  }
961
+ function restrictAcpSessionCapabilities(capabilities, response) {
962
+ if (!isRecord(response) || !isRecord(response["_meta"])) {
963
+ return capabilities;
964
+ }
965
+ const steering = response["_meta"]["steering"];
966
+ if (!isRecord(steering) || steering["supported"] !== false) {
967
+ return capabilities;
968
+ }
969
+ return Object.freeze({ ...capabilities, steering: false });
970
+ }
961
971
 
962
972
  // src/acp/agent/agent-definition.ts
963
973
  var AgentDefinition = class {
@@ -22572,7 +22582,7 @@ import { fetch as fetch3 } from "undici";
22572
22582
  // package.json
22573
22583
  var package_default = {
22574
22584
  name: "@moxt-ai/mobius",
22575
- version: "0.0.293",
22585
+ version: "0.0.294",
22576
22586
  description: "Mobius CLI for pairing and running local AI agent services.",
22577
22587
  type: "module",
22578
22588
  bin: {
@@ -67317,6 +67327,7 @@ var queuePageSchema = external_exports.object({
67317
67327
  nextCursor: external_exports.string().nullish()
67318
67328
  });
67319
67329
  var CodexBorrowedAcpAgent = class {
67330
+ steeringSupported = false;
67320
67331
  #client;
67321
67332
  #threadId;
67322
67333
  #emit;
@@ -67538,7 +67549,7 @@ var CodexBorrowedAcpAgent = class {
67538
67549
  nativeTurnId = () => null;
67539
67550
  steer = async (_params, signal) => {
67540
67551
  signal.throwIfAborted();
67541
- return { outcome: "promptRequired", reason: "noRunningTurn" };
67552
+ throw new AcpExecutionError("This Codex session only supports queued input", {}, "steering_unsupported");
67542
67553
  };
67543
67554
  // The reader connection cannot receive or control the owner's live turn.
67544
67555
  onNotification = async (_method, _params) => {
@@ -67678,6 +67689,7 @@ function userInputSchema(questions) {
67678
67689
  return { properties, required: required2, type: "object" };
67679
67690
  }
67680
67691
  var CodexOwnedAcpAgent = class {
67692
+ steeringSupported = true;
67681
67693
  #context;
67682
67694
  #appServer;
67683
67695
  #settings;
@@ -68729,7 +68741,10 @@ var CodexAcpAgent = class {
68729
68741
  await this.#resume(context.params.sessionId, context.params.cwd, context.signal);
68730
68742
  await this.#replaySavedHistory(context.signal);
68731
68743
  this.#advertiseCompactCommand();
68732
- return { configOptions: this.#settings.configOptions() };
68744
+ return {
68745
+ _meta: { steering: { supported: this.#sessionAgent.steeringSupported } },
68746
+ configOptions: this.#settings.configOptions()
68747
+ };
68733
68748
  }).onRequest(methods3.agent.session.fork, async (context) => {
68734
68749
  const forked = threadForkResponseSchema.parse(
68735
68750
  await this.#appServer.request(
@@ -68752,7 +68767,10 @@ var CodexAcpAgent = class {
68752
68767
  }).onRequest(methods3.agent.session.resume, async (context) => {
68753
68768
  await this.#resume(context.params.sessionId, context.params.cwd, context.signal);
68754
68769
  this.#advertiseCompactCommand();
68755
- return { configOptions: this.#settings.configOptions() };
68770
+ return {
68771
+ _meta: { steering: { supported: this.#sessionAgent.steeringSupported } },
68772
+ configOptions: this.#settings.configOptions()
68773
+ };
68756
68774
  }).onRequest(methods3.agent.session.prompt, async (context) => {
68757
68775
  if (isCompactCommand(context.params.prompt)) {
68758
68776
  return await this.#sessionAgent.compact(context.signal);
@@ -83630,6 +83648,7 @@ async function restoreSession(session, signal, recovery, origin) {
83630
83648
  session.setNativeHistoryOwnership({ kind: "fresh-session" });
83631
83649
  lifecycleResponse2 = created;
83632
83650
  }
83651
+ session.restrictSessionCapabilities(lifecycleResponse2);
83633
83652
  session.setConfigOptions(session.sessionConfigProtocol.normalizeLifecycle(lifecycleResponse2));
83634
83653
  if (stored instanceof FoundStoredSession && session.restored) {
83635
83654
  await session.restoreStoredConfigurations(stored.session, signal);
@@ -83882,6 +83901,9 @@ var AgentSession = class _AgentSession {
83882
83901
  signal
83883
83902
  );
83884
83903
  };
83904
+ restrictSessionCapabilities = (response) => {
83905
+ this.#capabilities = restrictAcpSessionCapabilities(this.#capabilities, response);
83906
+ };
83885
83907
  prepared = () => new PreparedSession(
83886
83908
  this.#agentName,
83887
83909
  this.#agentVersion,
@@ -83955,6 +83977,7 @@ var AgentSession = class _AgentSession {
83955
83977
  );
83956
83978
  await this.#updates.drained();
83957
83979
  signal.throwIfAborted();
83980
+ this.restrictSessionCapabilities(response);
83958
83981
  const loaded = { history, kind: "loaded", response };
83959
83982
  this.#sessionLoad = loaded;
83960
83983
  return loaded;