@moxt-ai/mobius 0.0.178 → 0.0.179
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/app-server-protocol.d.ts +11 -0
- package/dist/acp/codex/app-server-protocol.d.ts.map +1 -1
- package/dist/acp/codex/app-server-protocol.js +16 -0
- package/dist/acp/codex/app-server-protocol.js.map +1 -1
- package/dist/acp/codex/items.d.ts.map +1 -1
- package/dist/acp/codex/items.js +23 -0
- package/dist/acp/codex/items.js.map +1 -1
- package/dist/cli.js +38 -1
- package/dist/cli.js.map +2 -2
- package/dist/index.js +37 -0
- package/dist/index.js.map +2 -2
- package/dist/runtime.js +37 -0
- package/dist/runtime.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33372,7 +33372,21 @@ var fileUpdateChangeSchema = external_exports.object({
|
|
|
33372
33372
|
kind: external_exports.unknown(),
|
|
33373
33373
|
path: boundedText(4096)
|
|
33374
33374
|
});
|
|
33375
|
+
var imageGenerationItemSchema = external_exports.object({
|
|
33376
|
+
id: boundedText(256),
|
|
33377
|
+
type: external_exports.literal("imageGeneration"),
|
|
33378
|
+
status: boundedText(80),
|
|
33379
|
+
revisedPrompt: boundedText(32768).nullish(),
|
|
33380
|
+
// The app-server frame is bounded; media validation belongs to the content externalizer.
|
|
33381
|
+
result: external_exports.string(),
|
|
33382
|
+
failure: external_exports.object({
|
|
33383
|
+
type: external_exports.literal("usageLimitExceeded"),
|
|
33384
|
+
limitId: boundedText(256),
|
|
33385
|
+
resetsAt: external_exports.number().nullish()
|
|
33386
|
+
}).nullish()
|
|
33387
|
+
});
|
|
33375
33388
|
var threadItemSchema = external_exports.discriminatedUnion("type", [
|
|
33389
|
+
imageGenerationItemSchema,
|
|
33376
33390
|
external_exports.object({
|
|
33377
33391
|
id: boundedText(256),
|
|
33378
33392
|
text: boundedText(1e6),
|
|
@@ -33838,6 +33852,29 @@ function mcpStatus(status) {
|
|
|
33838
33852
|
return status === "inProgress" ? "in_progress" : status === "completed" ? "completed" : "failed";
|
|
33839
33853
|
}
|
|
33840
33854
|
function presentToolItem(item) {
|
|
33855
|
+
if (item.type === "imageGeneration") {
|
|
33856
|
+
const failed = item.failure != null || item.status === "failed";
|
|
33857
|
+
const content = [];
|
|
33858
|
+
if (!failed && item.result.length > 0) {
|
|
33859
|
+
content.push({ type: "content", content: { type: "image", data: item.result, mimeType: "image/png" } });
|
|
33860
|
+
}
|
|
33861
|
+
if (failed) {
|
|
33862
|
+
content.push(
|
|
33863
|
+
textContent(
|
|
33864
|
+
item.failure?.type === "usageLimitExceeded" ? "Image generation usage limit reached." : "Image generation failed."
|
|
33865
|
+
)
|
|
33866
|
+
);
|
|
33867
|
+
}
|
|
33868
|
+
return {
|
|
33869
|
+
content,
|
|
33870
|
+
kind: "other",
|
|
33871
|
+
locations: [],
|
|
33872
|
+
rawInput: item.revisedPrompt == null ? null : { prompt: item.revisedPrompt },
|
|
33873
|
+
rawOutput: null,
|
|
33874
|
+
status: failed ? "failed" : item.status === "completed" ? "completed" : "in_progress",
|
|
33875
|
+
title: "Generate image"
|
|
33876
|
+
};
|
|
33877
|
+
}
|
|
33841
33878
|
if (item.type === "commandExecution") {
|
|
33842
33879
|
const output2 = item.aggregatedOutput ?? "";
|
|
33843
33880
|
const content = [];
|