psyclaw 0.30.14 → 0.30.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "psyclaw",
3
- "version": "0.30.14",
3
+ "version": "0.30.15",
4
4
  "description": "A standalone, evidence-grounded social-science research agent with research contracts, evidence gates, and recoverable workflows",
5
5
  "type": "module",
6
6
  "license": "CC-BY-NC-4.0",
@@ -270,6 +270,26 @@ const MODE_PATCHES = [
270
270
  old: 'then restart pi.',
271
271
  next: 'then restart PsyClaw.',
272
272
  },
273
+ {
274
+ // Exit hint must use the real CLI bin name. APP_NAME is "PsyClaw" and is not
275
+ // an executable; without this patch users paste a command that PsyClaw rejects.
276
+ old: ` const args = [APP_NAME];
277
+ if (!sessionManager.usesDefaultSessionDir()) {
278
+ args.push("--session-dir", quoteIfNeeded(sessionManager.getSessionDir()));
279
+ }
280
+ args.push("--session", sessionManager.getSessionId());
281
+ return args.join(" ");`,
282
+ next: ` const args = ["psyclaw"];
283
+ if (!sessionManager.usesDefaultSessionDir()) {
284
+ args.push("--session-dir", quoteIfNeeded(sessionManager.getSessionDir()));
285
+ }
286
+ args.push("--session", sessionManager.getSessionId());
287
+ return args.join(" ");`,
288
+ },
289
+ {
290
+ old: 'process.stdout.write(`${chalk.dim("To resume this session:")} ${resumeCommand}\\n`);',
291
+ next: 'process.stdout.write(`${chalk.dim("续接本会话:")} ${resumeCommand}\\n`);',
292
+ },
273
293
  {
274
294
  old: `if (text === "/login" || text.startsWith("/login ")) {
275
295
  const providerRef = text.startsWith("/login ") ? text.slice(7).trim() : undefined;