- Reset master to upstream/main (16,697 commits) - Overlay 2,271 local-only files (skills, tools, workspace, configs, apps) - Restore IDENTITY.md and USER.md templates - Build verified, gateway running, Discord working Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
453 B
TypeScript
18 lines
453 B
TypeScript
import { SessionManager } from "@mariozechner/pi-coding-agent";
|
|
import os from "os";
|
|
import path from "path";
|
|
|
|
async function run() {
|
|
try {
|
|
const tmpFile = path.join(os.tmpdir(), "test-session.jsonl");
|
|
console.log(`Attempting to open session at: ${tmpFile}`);
|
|
const sessionManager = SessionManager.open(tmpFile);
|
|
console.log("Success!");
|
|
} catch (err: any) {
|
|
console.error("Caught error:");
|
|
console.error(err);
|
|
}
|
|
}
|
|
|
|
run();
|