@wrongstack/acp 0.277.2 → 0.280.1
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/sdk.js
CHANGED
|
@@ -1958,7 +1958,7 @@ var ACPProtocolHandler = class {
|
|
|
1958
1958
|
const p = params ?? {};
|
|
1959
1959
|
const sessionId = typeof p.sessionId === "string" ? p.sessionId : null;
|
|
1960
1960
|
const loadCwd = typeof p.cwd === "string" ? p.cwd : void 0;
|
|
1961
|
-
|
|
1961
|
+
const existing = sessionId ? this.sessions.get(sessionId) : void 0;
|
|
1962
1962
|
if (!existing && sessionId && this.store) {
|
|
1963
1963
|
const persisted = await this.store.load(sessionId);
|
|
1964
1964
|
if (persisted) {
|
|
@@ -2832,7 +2832,7 @@ var ACPSessionStore = class {
|
|
|
2832
2832
|
}
|
|
2833
2833
|
/** Update one entry in the index, adding it if missing. Best-effort. */
|
|
2834
2834
|
async updateIndex(id, updatedAt) {
|
|
2835
|
-
|
|
2835
|
+
const entries = await this.readIndex();
|
|
2836
2836
|
if (entries === null) {
|
|
2837
2837
|
await this.list();
|
|
2838
2838
|
return;
|