From 36fe4800d2f8ce1148347cbc53d0213d74c43561 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 4 Apr 2026 10:21:30 +0100 Subject: [PATCH] docs: refresh pi development docs --- docs/pi-dev.md | 14 +++++++------- docs/pi.md | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/pi-dev.md b/docs/pi-dev.md index 04df93e5357..f259879eb8d 100644 --- a/docs/pi-dev.md +++ b/docs/pi-dev.md @@ -12,10 +12,9 @@ This guide summarizes a sane workflow for working on the pi integration in OpenC ## Type Checking and Linting -- Type check and build: `pnpm build` -- Lint: `pnpm lint` -- Format check: `pnpm format` -- Full gate before pushing: `pnpm lint && pnpm build && pnpm test` +- Default local gate: `pnpm check` +- Build gate: `pnpm build` when the change can affect build output, packaging, or lazy-loading/module boundaries +- Full landing gate for Pi-heavy changes: `pnpm check && pnpm test` ## Running Pi Tests @@ -66,13 +65,14 @@ State lives under the OpenClaw state directory. Default is `~/.openclaw`. If `OP To reset everything: - `openclaw.json` for config -- `credentials/` for auth profiles and tokens +- `agents//agent/auth-profiles.json` for model auth profiles (API keys + OAuth) +- `credentials/` for provider/channel state that still lives outside the auth profile store - `agents//sessions/` for agent session history -- `agents//sessions.json` for the session index +- `agents//sessions/sessions.json` for the session index - `sessions/` if legacy paths exist - `workspace/` if you want a blank workspace -If you only want to reset sessions, delete `agents//sessions/` and `agents//sessions.json` for that agent. Keep `credentials/` if you do not want to reauthenticate. +If you only want to reset sessions, delete `agents//sessions/` for that agent. If you want to keep auth, leave `agents//agent/auth-profiles.json` and any provider state under `credentials/` in place. ## References diff --git a/docs/pi.md b/docs/pi.md index 03dcc05c353..c7e878a5573 100644 --- a/docs/pi.md +++ b/docs/pi.md @@ -25,10 +25,10 @@ OpenClaw uses the pi SDK to embed an AI coding agent into its messaging gateway ```json { - "@mariozechner/pi-agent-core": "0.61.1", - "@mariozechner/pi-ai": "0.61.1", - "@mariozechner/pi-coding-agent": "0.61.1", - "@mariozechner/pi-tui": "0.61.1" + "@mariozechner/pi-agent-core": "0.64.0", + "@mariozechner/pi-ai": "0.64.0", + "@mariozechner/pi-coding-agent": "0.64.0", + "@mariozechner/pi-tui": "0.64.0" } ``` @@ -154,7 +154,7 @@ const result = await runEmbeddedPiAgent({ config: openclawConfig, prompt: "Hello, how are you?", provider: "anthropic", - model: "claude-sonnet-4-20250514", + model: "claude-sonnet-4-6", timeoutMs: 120_000, runId: "run-abc", onBlockReply: async (payload) => {