@wrongstack/acp 0.277.1 → 0.280.0
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/agent.js +2 -2
- package/dist/agent.js.map +1 -1
- package/dist/client.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/sdk.js +2 -2
- package/dist/sdk.js.map +1 -1
- package/dist/wrongstack-acp-agent.js +1 -1
- package/dist/wrongstack-acp-agent.js.map +1 -1
- package/package.json +2 -2
package/dist/agent.js
CHANGED
|
@@ -494,7 +494,7 @@ var ACPProtocolHandler = class {
|
|
|
494
494
|
const p = params ?? {};
|
|
495
495
|
const sessionId = typeof p.sessionId === "string" ? p.sessionId : null;
|
|
496
496
|
const loadCwd = typeof p.cwd === "string" ? p.cwd : void 0;
|
|
497
|
-
|
|
497
|
+
const existing = sessionId ? this.sessions.get(sessionId) : void 0;
|
|
498
498
|
if (!existing && sessionId && this.store) {
|
|
499
499
|
const persisted = await this.store.load(sessionId);
|
|
500
500
|
if (persisted) {
|
|
@@ -977,7 +977,7 @@ var ACPSessionStore = class {
|
|
|
977
977
|
}
|
|
978
978
|
/** Update one entry in the index, adding it if missing. Best-effort. */
|
|
979
979
|
async updateIndex(id, updatedAt) {
|
|
980
|
-
|
|
980
|
+
const entries = await this.readIndex();
|
|
981
981
|
if (entries === null) {
|
|
982
982
|
await this.list();
|
|
983
983
|
return;
|