@moxt-ai/mobius 0.0.358 → 0.0.359

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
@@ -2086,7 +2086,7 @@ var init_package = __esm({
2086
2086
  "package.json"() {
2087
2087
  package_default = {
2088
2088
  name: "@moxt-ai/mobius",
2089
- version: "0.0.358",
2089
+ version: "0.0.359",
2090
2090
  description: "Mobius CLI for pairing and running local AI agent services.",
2091
2091
  type: "module",
2092
2092
  bin: {
@@ -75740,17 +75740,20 @@ var init_borrowed_agent = __esm({
75740
75740
  this.#seen.set(key, text2);
75741
75741
  continue;
75742
75742
  }
75743
+ if (item.type === "plan" && turn.status === "inProgress") {
75744
+ continue;
75745
+ }
75743
75746
  const previous = this.#seen.get(key);
75744
- const value = item.type === "agentMessage" ? item.text : reasoningText(item) ?? JSON.stringify(item);
75747
+ const value = item.type === "agentMessage" || item.type === "plan" ? item.text : reasoningText(item) ?? JSON.stringify(item);
75745
75748
  this.#seen.set(key, value);
75746
75749
  if (baseline || value === previous) {
75747
75750
  continue;
75748
75751
  }
75749
- if (item.type === "agentMessage" || reasoningText(item) !== null) {
75752
+ if (item.type === "agentMessage" || item.type === "plan" || reasoningText(item) !== null) {
75750
75753
  const text2 = previous !== void 0 && value.startsWith(previous) ? value.slice(previous.length) : value;
75751
75754
  if (text2.length > 0) {
75752
75755
  await this.#emit({
75753
- sessionUpdate: item.type === "agentMessage" ? "agent_message_chunk" : "agent_thought_chunk",
75756
+ sessionUpdate: item.type === "reasoning" ? "agent_thought_chunk" : "agent_message_chunk",
75754
75757
  messageId: item.id,
75755
75758
  content: { type: "text", text: text2 }
75756
75759
  });
@@ -76548,7 +76551,7 @@ var init_owned_agent = __esm({
76548
76551
  }
76549
76552
  return;
76550
76553
  }
76551
- if (item.type === "agentMessage") {
76554
+ if (item.type === "agentMessage" || item.type === "plan") {
76552
76555
  if (method === "item/started") {
76553
76556
  this.#agentMessages.set(item.id, "started");
76554
76557
  return;
@@ -76969,7 +76972,7 @@ async function replayCodexHistory(client2, threadId, emit, signal) {
76969
76972
  });
76970
76973
  }
76971
76974
  }
76972
- } else if (item.type === "agentMessage") {
76975
+ } else if (item.type === "agentMessage" || item.type === "plan") {
76973
76976
  await emit(agentMessageUpdate(item.id, item.text));
76974
76977
  } else if (item.type === "reasoning") {
76975
76978
  const text2 = reasoningText(item);