@moxt-ai/mobius 0.0.424 → 0.0.425

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.
@@ -3,7 +3,7 @@ import {
3
3
  __export,
4
4
  __using,
5
5
  package_default
6
- } from "./chunk-PWNESRGO.js";
6
+ } from "./chunk-EAUFTFPD.js";
7
7
 
8
8
  // src/engine/runtime/relay/runtime-revocation.ts
9
9
  var runtimeRevocationCloseCode = 1008;
@@ -80666,7 +80666,11 @@ var AcpExecutionConnections = class {
80666
80666
  );
80667
80667
  if (isRecord5(response)) {
80668
80668
  const outcome = response["outcome"];
80669
- if (outcome === "injected" || outcome === "startedNewTurn") {
80669
+ const messageId = response["messageId"];
80670
+ if (outcome === "injected") {
80671
+ return typeof messageId === "string" && messageId.length > 0 ? { outcome, messageId } : { outcome };
80672
+ }
80673
+ if (outcome === "startedNewTurn") {
80670
80674
  return { outcome };
80671
80675
  }
80672
80676
  if (outcome === "promptRequired") {
@@ -90581,6 +90585,8 @@ var AgentSession = class _AgentSession {
90581
90585
  payload: {
90582
90586
  commandId: options.commandId,
90583
90587
  kind: "prompt.completed",
90588
+ // The steering's own user message, so a reloaded history shows it inside the turn it joined.
90589
+ ...outcome.outcome === "injected" && outcome.messageId !== void 0 ? { messageId: outcome.messageId } : {},
90584
90590
  stopReason: "steered"
90585
90591
  },
90586
90592
  type: "lifecycle-metadata"
@@ -97684,4 +97690,4 @@ export {
97684
97690
  * MIT Licensed
97685
97691
  *)
97686
97692
  */
97687
- //# sourceMappingURL=chunk-RSYDC4H6.js.map
97693
+ //# sourceMappingURL=chunk-7GKV7BBF.js.map