@moxt-ai/mobius 0.0.8 → 0.0.9
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/session-manager.d.ts.map +1 -1
- package/dist/acp/session-manager.js +8 -3
- package/dist/acp/session-manager.js.map +1 -1
- package/dist/cli.js +15 -19
- package/dist/cli.js.map +2 -2
- package/dist/index.js +15 -19
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22559,7 +22559,7 @@ var AcpProcessSession = class _AcpProcessSession {
|
|
|
22559
22559
|
}
|
|
22560
22560
|
initialize = async (signal, origin) => {
|
|
22561
22561
|
await this.#initializeAgent(signal);
|
|
22562
|
-
|
|
22562
|
+
let stored = origin?.kind === "import" ? new FoundAcpStoredSession(
|
|
22563
22563
|
new AcpStoredSession(
|
|
22564
22564
|
this.#mobiusSessionId,
|
|
22565
22565
|
this.#agentId,
|
|
@@ -22569,6 +22569,10 @@ var AcpProcessSession = class _AcpProcessSession {
|
|
|
22569
22569
|
true
|
|
22570
22570
|
)
|
|
22571
22571
|
) : this.#store.read(this.#mobiusSessionId);
|
|
22572
|
+
if (stored instanceof FoundAcpStoredSession && !stored.session.prompted) {
|
|
22573
|
+
this.#store.remove(this.#mobiusSessionId);
|
|
22574
|
+
stored = this.#store.read(this.#mobiusSessionId);
|
|
22575
|
+
}
|
|
22572
22576
|
if (stored instanceof DeletedAcpStoredSession)
|
|
22573
22577
|
throw new AcpExecutionError(
|
|
22574
22578
|
"The native Agent session was deleted. Start a new chat.",
|
|
@@ -22684,6 +22688,15 @@ var AcpProcessSession = class _AcpProcessSession {
|
|
|
22684
22688
|
);
|
|
22685
22689
|
this.#nativeSessionId = created.sessionId;
|
|
22686
22690
|
lifecycleResponse = created;
|
|
22691
|
+
}
|
|
22692
|
+
const lifecycleRecord = isRecord3(lifecycleResponse) ? lifecycleResponse : {};
|
|
22693
|
+
this.#configOptions = normalizeConfigOptions(
|
|
22694
|
+
lifecycleRecord["configOptions"],
|
|
22695
|
+
lifecycleRecord["modes"]
|
|
22696
|
+
);
|
|
22697
|
+
await this.#updateTail;
|
|
22698
|
+
signal.throwIfAborted();
|
|
22699
|
+
if (this.#prompted) {
|
|
22687
22700
|
this.#store.write(
|
|
22688
22701
|
new AcpStoredSession(
|
|
22689
22702
|
this.#mobiusSessionId,
|
|
@@ -22691,27 +22704,10 @@ var AcpProcessSession = class _AcpProcessSession {
|
|
|
22691
22704
|
this.#nativeSessionId,
|
|
22692
22705
|
this.#cwd,
|
|
22693
22706
|
this.#additionalDirectories,
|
|
22694
|
-
|
|
22707
|
+
true
|
|
22695
22708
|
)
|
|
22696
22709
|
);
|
|
22697
22710
|
}
|
|
22698
|
-
const lifecycleRecord = isRecord3(lifecycleResponse) ? lifecycleResponse : {};
|
|
22699
|
-
this.#configOptions = normalizeConfigOptions(
|
|
22700
|
-
lifecycleRecord["configOptions"],
|
|
22701
|
-
lifecycleRecord["modes"]
|
|
22702
|
-
);
|
|
22703
|
-
await this.#updateTail;
|
|
22704
|
-
signal.throwIfAborted();
|
|
22705
|
-
this.#store.write(
|
|
22706
|
-
new AcpStoredSession(
|
|
22707
|
-
this.#mobiusSessionId,
|
|
22708
|
-
this.#agentId,
|
|
22709
|
-
this.#nativeSessionId,
|
|
22710
|
-
this.#cwd,
|
|
22711
|
-
this.#additionalDirectories,
|
|
22712
|
-
this.#prompted
|
|
22713
|
-
)
|
|
22714
|
-
);
|
|
22715
22711
|
};
|
|
22716
22712
|
listNativeSessions = async (cursor, signal) => {
|
|
22717
22713
|
if (!this.#capabilities.listSessions)
|