@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/acp/codex/agent.d.ts.map +1 -1
- package/dist/acp/codex/agent.js +6 -1
- package/dist/acp/codex/agent.js.map +1 -1
- package/dist/acp/codex/app-server-protocol.d.ts +41 -0
- package/dist/acp/codex/app-server-protocol.d.ts.map +1 -1
- package/dist/acp/codex/app-server-protocol.js +33 -0
- package/dist/acp/codex/app-server-protocol.js.map +1 -1
- package/dist/acp/codex/items.d.ts +2 -2
- package/dist/acp/codex/items.d.ts.map +1 -1
- package/dist/acp/codex/items.js +41 -0
- package/dist/acp/codex/items.js.map +1 -1
- package/dist/cli.js +76 -3
- package/dist/cli.js.map +3 -3
- package/dist/index.js +76 -3
- package/dist/index.js.map +3 -3
- package/dist/runtime.js +76 -3
- package/dist/runtime.js.map +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -34234,6 +34234,7 @@ var commandExecutionStatusSchema = external_exports.enum(["inProgress", "complet
|
|
|
34234
34234
|
var patchApplyStatusSchema = external_exports.enum(["inProgress", "completed", "failed", "declined"]);
|
|
34235
34235
|
var mcpToolCallStatusSchema = external_exports.enum(["inProgress", "completed", "failed"]);
|
|
34236
34236
|
var dynamicToolCallStatusSchema = external_exports.enum(["inProgress", "completed", "failed"]);
|
|
34237
|
+
var collabAgentToolCallStatusSchema = external_exports.enum(["inProgress", "completed", "failed", "interrupted"]);
|
|
34237
34238
|
var fileUpdateChangeSchema = external_exports.object({
|
|
34238
34239
|
diff: boundedText(1e6),
|
|
34239
34240
|
kind: external_exports.unknown(),
|
|
@@ -34305,7 +34306,40 @@ var threadItemSchema = external_exports.discriminatedUnion("type", [
|
|
|
34305
34306
|
summary: external_exports.array(boundedText(1e6)).max(1e3),
|
|
34306
34307
|
type: external_exports.literal("reasoning")
|
|
34307
34308
|
}),
|
|
34308
|
-
external_exports.object({ id: boundedText(256), text: boundedText(1e6), type: external_exports.literal("plan") })
|
|
34309
|
+
external_exports.object({ id: boundedText(256), text: boundedText(1e6), type: external_exports.literal("plan") }),
|
|
34310
|
+
external_exports.object({
|
|
34311
|
+
agentPath: boundedText(4096),
|
|
34312
|
+
agentThreadId: boundedText(256),
|
|
34313
|
+
id: boundedText(256),
|
|
34314
|
+
kind: external_exports.enum(["started", "interacted", "interrupted", "completed"]),
|
|
34315
|
+
type: external_exports.literal("subAgentActivity")
|
|
34316
|
+
}),
|
|
34317
|
+
external_exports.object({
|
|
34318
|
+
agentsStates: external_exports.record(
|
|
34319
|
+
boundedText(256),
|
|
34320
|
+
external_exports.object({
|
|
34321
|
+
message: boundedText(32768).nullish(),
|
|
34322
|
+
status: external_exports.enum([
|
|
34323
|
+
"pendingInit",
|
|
34324
|
+
"running",
|
|
34325
|
+
"interrupted",
|
|
34326
|
+
"completed",
|
|
34327
|
+
"errored",
|
|
34328
|
+
"shutdown",
|
|
34329
|
+
"notFound"
|
|
34330
|
+
])
|
|
34331
|
+
})
|
|
34332
|
+
).refine((states) => Object.keys(states).length <= 1e3),
|
|
34333
|
+
id: boundedText(256),
|
|
34334
|
+
model: boundedText(256).nullish(),
|
|
34335
|
+
prompt: boundedText(1e6).nullish(),
|
|
34336
|
+
reasoningEffort: boundedText(80).nullish(),
|
|
34337
|
+
receiverThreadIds: external_exports.array(boundedText(256)).max(1e3),
|
|
34338
|
+
senderThreadId: boundedText(256),
|
|
34339
|
+
status: collabAgentToolCallStatusSchema,
|
|
34340
|
+
tool: external_exports.enum(["spawnAgent", "wait"]),
|
|
34341
|
+
type: external_exports.literal("collabAgentToolCall")
|
|
34342
|
+
})
|
|
34309
34343
|
]);
|
|
34310
34344
|
var turnSchema = external_exports.object({
|
|
34311
34345
|
durationMs: external_exports.number().nullish(),
|
|
@@ -34736,6 +34770,9 @@ function patchStatus(status) {
|
|
|
34736
34770
|
function mcpStatus(status) {
|
|
34737
34771
|
return status === "inProgress" ? "in_progress" : status === "completed" ? "completed" : "failed";
|
|
34738
34772
|
}
|
|
34773
|
+
function collaborationStatus(status) {
|
|
34774
|
+
return status === "inProgress" ? "in_progress" : status === "completed" ? "completed" : "failed";
|
|
34775
|
+
}
|
|
34739
34776
|
function presentToolItem(item) {
|
|
34740
34777
|
if (item.type === "imageView") {
|
|
34741
34778
|
return {
|
|
@@ -34841,6 +34878,37 @@ function presentToolItem(item) {
|
|
|
34841
34878
|
title: truncate4(label, TITLE_CHARACTER_LIMIT)
|
|
34842
34879
|
};
|
|
34843
34880
|
}
|
|
34881
|
+
if (item.type === "collabAgentToolCall") {
|
|
34882
|
+
const spawn6 = item.tool === "spawnAgent";
|
|
34883
|
+
return {
|
|
34884
|
+
content: [],
|
|
34885
|
+
kind: "other",
|
|
34886
|
+
locations: [],
|
|
34887
|
+
rawInput: spawn6 ? {
|
|
34888
|
+
model: item.model,
|
|
34889
|
+
prompt: item.prompt,
|
|
34890
|
+
reasoningEffort: item.reasoningEffort,
|
|
34891
|
+
senderThreadId: item.senderThreadId
|
|
34892
|
+
} : { receiverThreadIds: item.receiverThreadIds, senderThreadId: item.senderThreadId },
|
|
34893
|
+
rawOutput: {
|
|
34894
|
+
agentsStates: item.agentsStates,
|
|
34895
|
+
...spawn6 ? { receiverThreadIds: item.receiverThreadIds } : {}
|
|
34896
|
+
},
|
|
34897
|
+
status: collaborationStatus(item.status),
|
|
34898
|
+
title: spawn6 ? "Dispatch subagent" : "Wait for subagent"
|
|
34899
|
+
};
|
|
34900
|
+
}
|
|
34901
|
+
if (item.type === "subAgentActivity" && item.kind === "started") {
|
|
34902
|
+
return {
|
|
34903
|
+
content: [],
|
|
34904
|
+
kind: "other",
|
|
34905
|
+
locations: [],
|
|
34906
|
+
rawInput: { agentPath: item.agentPath },
|
|
34907
|
+
rawOutput: { agentThreadId: item.agentThreadId },
|
|
34908
|
+
status: "in_progress",
|
|
34909
|
+
title: truncate4(`Dispatch subagent ${item.agentPath}`, TITLE_CHARACTER_LIMIT)
|
|
34910
|
+
};
|
|
34911
|
+
}
|
|
34844
34912
|
return null;
|
|
34845
34913
|
}
|
|
34846
34914
|
function toolCallUpdate(item, lifecycle) {
|
|
@@ -34854,6 +34922,7 @@ function toolCallUpdate(item, lifecycle) {
|
|
|
34854
34922
|
locations: [...presentation.locations],
|
|
34855
34923
|
rawInput: presentation.rawInput,
|
|
34856
34924
|
rawOutput: presentation.rawOutput,
|
|
34925
|
+
...item.type === "collabAgentToolCall" ? { name: item.tool === "spawnAgent" ? "spawn_agent" : "wait_agent" } : item.type === "subAgentActivity" ? { name: "spawn_agent" } : {},
|
|
34857
34926
|
status: item.type === "imageView" && lifecycle === "started" ? "in_progress" : lifecycle === "completed" && presentation.status === "in_progress" ? "completed" : presentation.status,
|
|
34858
34927
|
title: presentation.title,
|
|
34859
34928
|
toolCallId: item.id
|
|
@@ -35829,7 +35898,11 @@ var CodexAcpAgent = class {
|
|
|
35829
35898
|
const update = toolCallUpdate(item, method === "item/completed" ? "completed" : "started");
|
|
35830
35899
|
if (update !== null) {
|
|
35831
35900
|
await this.#enqueue(async () => {
|
|
35832
|
-
|
|
35901
|
+
if (method === "item/started") {
|
|
35902
|
+
await this.#emit({ ...update, sessionUpdate: "tool_call" });
|
|
35903
|
+
} else {
|
|
35904
|
+
await this.#emit({ ...update, sessionUpdate: "tool_call_update" });
|
|
35905
|
+
}
|
|
35833
35906
|
});
|
|
35834
35907
|
}
|
|
35835
35908
|
};
|
|
@@ -41990,7 +42063,7 @@ import { WebSocket as WebSocket5 } from "undici";
|
|
|
41990
42063
|
// package.json
|
|
41991
42064
|
var package_default = {
|
|
41992
42065
|
name: "@moxt-ai/mobius",
|
|
41993
|
-
version: "0.0.
|
|
42066
|
+
version: "0.0.200",
|
|
41994
42067
|
description: "Mobius CLI for pairing and running local AI agent services.",
|
|
41995
42068
|
type: "module",
|
|
41996
42069
|
bin: {
|