@moxt-ai/mobius 0.0.198 → 0.0.200

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/runtime.js CHANGED
@@ -23549,6 +23549,7 @@ var commandExecutionStatusSchema = external_exports.enum(["inProgress", "complet
23549
23549
  var patchApplyStatusSchema = external_exports.enum(["inProgress", "completed", "failed", "declined"]);
23550
23550
  var mcpToolCallStatusSchema = external_exports.enum(["inProgress", "completed", "failed"]);
23551
23551
  var dynamicToolCallStatusSchema = external_exports.enum(["inProgress", "completed", "failed"]);
23552
+ var collabAgentToolCallStatusSchema = external_exports.enum(["inProgress", "completed", "failed", "interrupted"]);
23552
23553
  var fileUpdateChangeSchema = external_exports.object({
23553
23554
  diff: boundedText(1e6),
23554
23555
  kind: external_exports.unknown(),
@@ -23620,7 +23621,40 @@ var threadItemSchema = external_exports.discriminatedUnion("type", [
23620
23621
  summary: external_exports.array(boundedText(1e6)).max(1e3),
23621
23622
  type: external_exports.literal("reasoning")
23622
23623
  }),
23623
- external_exports.object({ id: boundedText(256), text: boundedText(1e6), type: external_exports.literal("plan") })
23624
+ external_exports.object({ id: boundedText(256), text: boundedText(1e6), type: external_exports.literal("plan") }),
23625
+ external_exports.object({
23626
+ agentPath: boundedText(4096),
23627
+ agentThreadId: boundedText(256),
23628
+ id: boundedText(256),
23629
+ kind: external_exports.enum(["started", "interacted", "interrupted", "completed"]),
23630
+ type: external_exports.literal("subAgentActivity")
23631
+ }),
23632
+ external_exports.object({
23633
+ agentsStates: external_exports.record(
23634
+ boundedText(256),
23635
+ external_exports.object({
23636
+ message: boundedText(32768).nullish(),
23637
+ status: external_exports.enum([
23638
+ "pendingInit",
23639
+ "running",
23640
+ "interrupted",
23641
+ "completed",
23642
+ "errored",
23643
+ "shutdown",
23644
+ "notFound"
23645
+ ])
23646
+ })
23647
+ ).refine((states) => Object.keys(states).length <= 1e3),
23648
+ id: boundedText(256),
23649
+ model: boundedText(256).nullish(),
23650
+ prompt: boundedText(1e6).nullish(),
23651
+ reasoningEffort: boundedText(80).nullish(),
23652
+ receiverThreadIds: external_exports.array(boundedText(256)).max(1e3),
23653
+ senderThreadId: boundedText(256),
23654
+ status: collabAgentToolCallStatusSchema,
23655
+ tool: external_exports.enum(["spawnAgent", "wait"]),
23656
+ type: external_exports.literal("collabAgentToolCall")
23657
+ })
23624
23658
  ]);
23625
23659
  var turnSchema = external_exports.object({
23626
23660
  durationMs: external_exports.number().nullish(),
@@ -24051,6 +24085,9 @@ function patchStatus(status) {
24051
24085
  function mcpStatus(status) {
24052
24086
  return status === "inProgress" ? "in_progress" : status === "completed" ? "completed" : "failed";
24053
24087
  }
24088
+ function collaborationStatus(status) {
24089
+ return status === "inProgress" ? "in_progress" : status === "completed" ? "completed" : "failed";
24090
+ }
24054
24091
  function presentToolItem(item) {
24055
24092
  if (item.type === "imageView") {
24056
24093
  return {
@@ -24156,6 +24193,37 @@ function presentToolItem(item) {
24156
24193
  title: truncate2(label, TITLE_CHARACTER_LIMIT)
24157
24194
  };
24158
24195
  }
24196
+ if (item.type === "collabAgentToolCall") {
24197
+ const spawn6 = item.tool === "spawnAgent";
24198
+ return {
24199
+ content: [],
24200
+ kind: "other",
24201
+ locations: [],
24202
+ rawInput: spawn6 ? {
24203
+ model: item.model,
24204
+ prompt: item.prompt,
24205
+ reasoningEffort: item.reasoningEffort,
24206
+ senderThreadId: item.senderThreadId
24207
+ } : { receiverThreadIds: item.receiverThreadIds, senderThreadId: item.senderThreadId },
24208
+ rawOutput: {
24209
+ agentsStates: item.agentsStates,
24210
+ ...spawn6 ? { receiverThreadIds: item.receiverThreadIds } : {}
24211
+ },
24212
+ status: collaborationStatus(item.status),
24213
+ title: spawn6 ? "Dispatch subagent" : "Wait for subagent"
24214
+ };
24215
+ }
24216
+ if (item.type === "subAgentActivity" && item.kind === "started") {
24217
+ return {
24218
+ content: [],
24219
+ kind: "other",
24220
+ locations: [],
24221
+ rawInput: { agentPath: item.agentPath },
24222
+ rawOutput: { agentThreadId: item.agentThreadId },
24223
+ status: "in_progress",
24224
+ title: truncate2(`Dispatch subagent ${item.agentPath}`, TITLE_CHARACTER_LIMIT)
24225
+ };
24226
+ }
24159
24227
  return null;
24160
24228
  }
24161
24229
  function toolCallUpdate(item, lifecycle) {
@@ -24169,6 +24237,7 @@ function toolCallUpdate(item, lifecycle) {
24169
24237
  locations: [...presentation.locations],
24170
24238
  rawInput: presentation.rawInput,
24171
24239
  rawOutput: presentation.rawOutput,
24240
+ ...item.type === "collabAgentToolCall" ? { name: item.tool === "spawnAgent" ? "spawn_agent" : "wait_agent" } : item.type === "subAgentActivity" ? { name: "spawn_agent" } : {},
24172
24241
  status: item.type === "imageView" && lifecycle === "started" ? "in_progress" : lifecycle === "completed" && presentation.status === "in_progress" ? "completed" : presentation.status,
24173
24242
  title: presentation.title,
24174
24243
  toolCallId: item.id
@@ -25144,7 +25213,11 @@ var CodexAcpAgent = class {
25144
25213
  const update = toolCallUpdate(item, method === "item/completed" ? "completed" : "started");
25145
25214
  if (update !== null) {
25146
25215
  await this.#enqueue(async () => {
25147
- await this.#emit({ ...update, sessionUpdate: "tool_call_update" });
25216
+ if (method === "item/started") {
25217
+ await this.#emit({ ...update, sessionUpdate: "tool_call" });
25218
+ } else {
25219
+ await this.#emit({ ...update, sessionUpdate: "tool_call_update" });
25220
+ }
25148
25221
  });
25149
25222
  }
25150
25223
  };
@@ -41081,7 +41154,7 @@ import { WebSocket as WebSocket5 } from "undici";
41081
41154
  // package.json
41082
41155
  var package_default = {
41083
41156
  name: "@moxt-ai/mobius",
41084
- version: "0.0.198",
41157
+ version: "0.0.200",
41085
41158
  description: "Mobius CLI for pairing and running local AI agent services.",
41086
41159
  type: "module",
41087
41160
  bin: {