@moxt-ai/mobius 0.0.139 → 0.0.140
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 +10 -1
- package/dist/acp/codex/agent.js.map +1 -1
- package/dist/cli.js +11 -2
- package/dist/cli.js.map +2 -2
- package/dist/index.js +10 -1
- package/dist/index.js.map +2 -2
- package/dist/runtime.js +10 -1
- package/dist/runtime.js.map +2 -2
- package/package.json +1 -1
package/dist/runtime.js
CHANGED
|
@@ -23949,6 +23949,7 @@ var APPROVAL_TIMEOUT_MILLISECONDS2 = 36e5;
|
|
|
23949
23949
|
var CODEX_AGENT_VERSION = "0.154.0";
|
|
23950
23950
|
var SESSION_LIST_TIMEOUT_MILLISECONDS = 3e4;
|
|
23951
23951
|
var CODEX_COMMANDS = Object.freeze([{ description: "Compact the conversation context", name: "compact" }]);
|
|
23952
|
+
var COMPACT_COMPLETED_MESSAGE = "Context compacted.";
|
|
23952
23953
|
var APPROVAL_OPTIONS = Object.freeze([
|
|
23953
23954
|
{ kind: "allow_once", name: "Allow once", optionId: "accept" },
|
|
23954
23955
|
{ kind: "allow_always", name: "Allow for this session", optionId: "acceptForSession" },
|
|
@@ -24641,7 +24642,15 @@ var CodexAcpAgent = class {
|
|
|
24641
24642
|
this.#turn = turn;
|
|
24642
24643
|
try {
|
|
24643
24644
|
await this.#appServer.request("thread/compact/start", { threadId: this.#nativeSessionId }, signal);
|
|
24644
|
-
|
|
24645
|
+
const result = await completion.promise;
|
|
24646
|
+
if (result.stopReason !== "cancelled") {
|
|
24647
|
+
await this.#emit({
|
|
24648
|
+
content: { text: COMPACT_COMPLETED_MESSAGE, type: "text" },
|
|
24649
|
+
messageId: turn.turn.id.length > 0 ? turn.turn.id : "compact-completed",
|
|
24650
|
+
sessionUpdate: "agent_message_chunk"
|
|
24651
|
+
});
|
|
24652
|
+
}
|
|
24653
|
+
return result;
|
|
24645
24654
|
} finally {
|
|
24646
24655
|
signal.removeEventListener("abort", aborted2);
|
|
24647
24656
|
if (this.#turn === turn) {
|