@moxt-ai/mobius 0.0.157 → 0.0.159
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/agent-session.d.ts.map +1 -1
- package/dist/acp/agent-session.js +9 -1
- package/dist/acp/agent-session.js.map +1 -1
- package/dist/acp/codex/agent.js +2 -2
- package/dist/acp/codex/agent.js.map +1 -1
- package/dist/acp/codex/app-server-protocol.d.ts +6 -6
- package/dist/acp/codex/app-server-protocol.d.ts.map +1 -1
- package/dist/acp/codex/app-server-protocol.js +5 -7
- package/dist/acp/codex/app-server-protocol.js.map +1 -1
- package/dist/cli.js +18 -23
- package/dist/cli.js.map +2 -2
- package/dist/index.js +17 -22
- package/dist/index.js.map +2 -2
- package/dist/runtime.js +17 -22
- package/dist/runtime.js.map +2 -2
- package/dist/session-event-log-v2.d.ts.map +1 -1
- package/dist/session-event-log-v2.js +1 -13
- package/dist/session-event-log-v2.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3381,7 +3381,7 @@ var program = new Command();
|
|
|
3381
3381
|
// package.json
|
|
3382
3382
|
var package_default = {
|
|
3383
3383
|
name: "@moxt-ai/mobius",
|
|
3384
|
-
version: "0.0.
|
|
3384
|
+
version: "0.0.159",
|
|
3385
3385
|
description: "Mobius CLI for pairing and running local AI agent services.",
|
|
3386
3386
|
type: "module",
|
|
3387
3387
|
bin: {
|
|
@@ -24821,16 +24821,15 @@ var threadStartResponseSchema = external_exports.object({
|
|
|
24821
24821
|
serviceTier: boundedText(256).nullish(),
|
|
24822
24822
|
thread: external_exports.object({ id: boundedText(256) })
|
|
24823
24823
|
});
|
|
24824
|
+
var threadTurnSchema = external_exports.object({
|
|
24825
|
+
items: external_exports.array(external_exports.unknown()).max(1e5)
|
|
24826
|
+
});
|
|
24827
|
+
var threadTurnsSchema = external_exports.array(threadTurnSchema).max(1e5);
|
|
24824
24828
|
var threadLifecycleResponseSchema = external_exports.object({
|
|
24825
24829
|
model: boundedText(256).nullish(),
|
|
24826
24830
|
reasoningEffort: boundedText(256).nullish(),
|
|
24827
24831
|
serviceTier: boundedText(256).nullish(),
|
|
24828
|
-
thread: external_exports.object({ id: boundedText(256) })
|
|
24829
|
-
turns: external_exports.array(
|
|
24830
|
-
external_exports.object({
|
|
24831
|
-
items: external_exports.array(external_exports.unknown()).max(1e5)
|
|
24832
|
-
})
|
|
24833
|
-
).max(1e5).nullish()
|
|
24832
|
+
thread: external_exports.object({ id: boundedText(256), turns: threadTurnsSchema })
|
|
24834
24833
|
});
|
|
24835
24834
|
var threadResumeResponseSchema = threadLifecycleResponseSchema;
|
|
24836
24835
|
var threadForkResponseSchema = threadLifecycleResponseSchema;
|
|
@@ -25845,7 +25844,7 @@ var CodexAcpAgent = class {
|
|
|
25845
25844
|
this.#nativeSessionId = resumed.thread.id;
|
|
25846
25845
|
this.#settings.selectRestoredThread(resumed);
|
|
25847
25846
|
await this.#settings.probeCollaborationMode(this.#nativeSessionId, context.signal);
|
|
25848
|
-
await this.#replayHistory(resumed.turns);
|
|
25847
|
+
await this.#replayHistory(resumed.thread.turns);
|
|
25849
25848
|
await this.#emitAvailableCommands();
|
|
25850
25849
|
return { configOptions: this.#settings.configOptions() };
|
|
25851
25850
|
}).onRequest(methods.agent.session.fork, async (context) => {
|
|
@@ -25863,7 +25862,7 @@ var CodexAcpAgent = class {
|
|
|
25863
25862
|
this.#nativeSessionId = forked.thread.id;
|
|
25864
25863
|
this.#settings.selectRestoredThread(forked);
|
|
25865
25864
|
await this.#settings.probeCollaborationMode(this.#nativeSessionId, context.signal);
|
|
25866
|
-
await this.#replayHistory(forked.turns);
|
|
25865
|
+
await this.#replayHistory(forked.thread.turns);
|
|
25867
25866
|
await this.#emitAvailableCommands();
|
|
25868
25867
|
return { configOptions: this.#settings.configOptions(), sessionId: forked.thread.id };
|
|
25869
25868
|
}).onRequest(methods.agent.session.resume, async (context) => {
|
|
@@ -39681,6 +39680,7 @@ var AgentSession = class _AgentSession {
|
|
|
39681
39680
|
#configRevision = 0;
|
|
39682
39681
|
#configOptions = [];
|
|
39683
39682
|
#lastTerminalCommandId = null;
|
|
39683
|
+
#nativeHistoryOwnership = { kind: "unbound" };
|
|
39684
39684
|
#prompted = false;
|
|
39685
39685
|
#nativePrompt = null;
|
|
39686
39686
|
#sessionLoad = { kind: "not-requested" };
|
|
@@ -39801,6 +39801,9 @@ var AgentSession = class _AgentSession {
|
|
|
39801
39801
|
return await embedLocalHistoryImages(await loaded.history.snapshot(), signal);
|
|
39802
39802
|
};
|
|
39803
39803
|
loadHistoryEventsV2 = async (eventLimit, cursor, signal) => {
|
|
39804
|
+
if (!this.#prompted && this.#nativeHistoryOwnership.kind === "fresh-session") {
|
|
39805
|
+
return new AcpHistoryReplay().eventPage(eventLimit, cursor);
|
|
39806
|
+
}
|
|
39804
39807
|
if (!this.#capabilities.loadSession) {
|
|
39805
39808
|
throw new AcpExecutionError(
|
|
39806
39809
|
"This Agent restores context but does not provide message history.",
|
|
@@ -40090,6 +40093,7 @@ var AgentSession = class _AgentSession {
|
|
|
40090
40093
|
)
|
|
40091
40094
|
);
|
|
40092
40095
|
this.selectNativeSession(created.sessionId);
|
|
40096
|
+
this.#nativeHistoryOwnership = { kind: "fresh-session" };
|
|
40093
40097
|
lifecycleResponse = created;
|
|
40094
40098
|
}
|
|
40095
40099
|
this.#configOptions = this.#sessionConfigProtocol.normalizeLifecycle(lifecycleResponse);
|
|
@@ -40466,7 +40470,10 @@ var AgentSession = class _AgentSession {
|
|
|
40466
40470
|
onElicitation = (request, signal) => this.#interactions.onElicitation(request, signal);
|
|
40467
40471
|
onElicitationComplete = (notification) => this.#interactions.onElicitationComplete(notification);
|
|
40468
40472
|
onUpdate = (notification) => this.#updates.receive(notification);
|
|
40469
|
-
selectNativeSession = (sessionId) =>
|
|
40473
|
+
selectNativeSession = (sessionId) => {
|
|
40474
|
+
this.#updates.select(sessionId);
|
|
40475
|
+
this.#nativeHistoryOwnership = { kind: "agent-owned" };
|
|
40476
|
+
};
|
|
40470
40477
|
#processUpdate = async (notification) => {
|
|
40471
40478
|
this.assertNativeSession(notification.sessionId);
|
|
40472
40479
|
const update = notification.update;
|
|
@@ -47904,21 +47911,9 @@ var DaemonSessionEventLogV2 = class {
|
|
|
47904
47911
|
payload: { commandId: command.commandId, content, kind: "prompt.requested" },
|
|
47905
47912
|
type: "lifecycle-metadata"
|
|
47906
47913
|
});
|
|
47907
|
-
let eventTail = { event, previous: null };
|
|
47908
|
-
for (const block of content) {
|
|
47909
|
-
const userMessageEvent = this.#append(command.sessionId, {
|
|
47910
|
-
payload: {
|
|
47911
|
-
content: block,
|
|
47912
|
-
messageId: command.commandId,
|
|
47913
|
-
sessionUpdate: "user_message_chunk"
|
|
47914
|
-
},
|
|
47915
|
-
type: "acp"
|
|
47916
|
-
});
|
|
47917
|
-
eventTail = { event: userMessageEvent, previous: eventTail };
|
|
47918
|
-
}
|
|
47919
47914
|
this.#requests.set(command.commandId, {
|
|
47920
47915
|
commandId: command.commandId,
|
|
47921
|
-
eventTail,
|
|
47916
|
+
eventTail: { event, previous: null },
|
|
47922
47917
|
kind: "requested",
|
|
47923
47918
|
sessionId: command.sessionId
|
|
47924
47919
|
});
|