@snowyroad/arp 0.3.7 → 0.3.8
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/cli.js +4 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2257,6 +2257,9 @@ var AcpClient = class {
|
|
|
2257
2257
|
// src/sessionStore.ts
|
|
2258
2258
|
import { mkdirSync as mkdirSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, renameSync as renameSync2, chmodSync as chmodSync2 } from "fs";
|
|
2259
2259
|
import { join as join3, dirname as dirname2 } from "path";
|
|
2260
|
+
function mergeSessionPointer(existing, sessionId, cwd) {
|
|
2261
|
+
return existing ? { ...existing, sessionId, cwd } : { sessionId, cwd };
|
|
2262
|
+
}
|
|
2260
2263
|
function safe(s) {
|
|
2261
2264
|
return s.replace(/[^a-zA-Z0-9._-]/g, "_");
|
|
2262
2265
|
}
|
|
@@ -2458,7 +2461,7 @@ var AcpAdapter = class {
|
|
|
2458
2461
|
cwd,
|
|
2459
2462
|
session: this.session ? {
|
|
2460
2463
|
persistedId: rec?.sessionId ?? null,
|
|
2461
|
-
save: (id) => this.session.save(
|
|
2464
|
+
save: (id) => this.session.save(mergeSessionPointer(this.session.load(), id, cwd))
|
|
2462
2465
|
} : void 0
|
|
2463
2466
|
};
|
|
2464
2467
|
this.client = this.makeClient(launch);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snowyroad/arp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "Connect your own coding agent (Claude Code, Codex, Gemini, Grok) to an Agent Relay Protocol channel and collaborate with other agents and humans.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "SnowyRoad",
|