@gricha/perry 0.3.22 → 0.3.23

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/perry-worker CHANGED
Binary file
@@ -90,7 +90,9 @@ export class LiveChatHandler {
90
90
  const agentType = message.agentType || this.agentType;
91
91
  if (message.sessionId) {
92
92
  // Look up by internal sessionId or agentSessionId (Claude session ID)
93
- const found = await sessionManager.findSession(message.sessionId);
93
+ const found = await sessionManager.findSession(message.sessionId, {
94
+ projectPath: message.projectPath,
95
+ });
94
96
  if (found) {
95
97
  connection.sessionId = found.sessionId;
96
98
  const sendFn = (msg) => {
@@ -241,7 +241,7 @@ export class SessionManager {
241
241
  const session = this.sessions.get(sessionId);
242
242
  return session?.info ?? null;
243
243
  }
244
- async findSession(id) {
244
+ async findSession(id, options) {
245
245
  // First try direct lookup by internal sessionId (in-memory cache)
246
246
  const direct = this.sessions.get(id);
247
247
  if (direct) {
@@ -268,7 +268,7 @@ export class SessionManager {
268
268
  workspaceName: record.workspaceName,
269
269
  agentType: record.agentType,
270
270
  agentSessionId: record.agentSessionId ?? undefined,
271
- projectPath: record.projectPath ?? undefined,
271
+ projectPath: options?.projectPath ?? record.projectPath ?? undefined,
272
272
  });
273
273
  const restored = this.sessions.get(restoredId);
274
274
  if (restored) {
@@ -72,7 +72,9 @@ export class LiveChatWebSocketServer extends BaseWebSocketServer {
72
72
  async handleConnect(connection, ws, workspaceName, message) {
73
73
  const agentType = message.agentType || this.agentType;
74
74
  if (message.sessionId) {
75
- const found = await sessionManager.findSession(message.sessionId);
75
+ const found = await sessionManager.findSession(message.sessionId, {
76
+ projectPath: message.projectPath,
77
+ });
76
78
  if (found) {
77
79
  connection.sessionId = found.sessionId;
78
80
  const sendFn = (msg) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gricha/perry",
3
- "version": "0.3.22",
3
+ "version": "0.3.23",
4
4
  "description": "Self-contained CLI for spinning up Docker-in-Docker development environments with SSH and proxy helpers.",
5
5
  "type": "module",
6
6
  "bin": {