@mariozechner/pi-coding-agent 0.29.1 → 0.30.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/docs/sdk.md CHANGED
@@ -592,11 +592,14 @@ for (const info of sessions) {
592
592
  console.log(`${info.id}: ${info.firstMessage} (${info.messageCount} messages)`);
593
593
  }
594
594
 
595
- // Custom agentDir for sessions
595
+ // Custom session directory (no cwd encoding)
596
+ const customDir = "/path/to/my-sessions";
596
597
  const { session } = await createAgentSession({
597
- agentDir: "/custom/agent",
598
- sessionManager: SessionManager.create(process.cwd(), "/custom/agent"),
598
+ sessionManager: SessionManager.create(process.cwd(), customDir),
599
599
  });
600
+ // Also works with list and continueRecent:
601
+ // SessionManager.list(process.cwd(), customDir);
602
+ // SessionManager.continueRecent(process.cwd(), customDir);
600
603
  ```
601
604
 
602
605
  > See [examples/sdk/11-sessions.ts](../examples/sdk/11-sessions.ts)
@@ -39,8 +39,10 @@ if (sessions.length > 0) {
39
39
  console.log(`\nOpened: ${opened.sessionId}`);
40
40
  }
41
41
 
42
- // Custom session directory
42
+ // Custom session directory (no cwd encoding)
43
+ // const customDir = "/path/to/my-sessions";
43
44
  // const { session } = await createAgentSession({
44
- // agentDir: "/custom/agent",
45
- // sessionManager: SessionManager.create(process.cwd(), "/custom/agent"),
45
+ // sessionManager: SessionManager.create(process.cwd(), customDir),
46
46
  // });
47
+ // SessionManager.list(process.cwd(), customDir);
48
+ // SessionManager.continueRecent(process.cwd(), customDir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mariozechner/pi-coding-agent",
3
- "version": "0.29.1",
3
+ "version": "0.30.0",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "piConfig": {
@@ -38,9 +38,9 @@
38
38
  "prepublishOnly": "npm run clean && npm run build"
39
39
  },
40
40
  "dependencies": {
41
- "@mariozechner/pi-agent-core": "^0.29.1",
42
- "@mariozechner/pi-ai": "^0.29.1",
43
- "@mariozechner/pi-tui": "^0.29.1",
41
+ "@mariozechner/pi-agent-core": "^0.30.0",
42
+ "@mariozechner/pi-ai": "^0.30.0",
43
+ "@mariozechner/pi-tui": "^0.30.0",
44
44
  "chalk": "^5.5.0",
45
45
  "cli-highlight": "^2.1.11",
46
46
  "diff": "^8.0.2",