AGENTS.md@packages/demo-plugin/src/server · git:20260927.38c5c93 · 2026-09-27 · sha256 338f3794d71ea0bd

AGENTS.md@packages/demo-plugin/src/server git:20260927.38c5c93A

Immutable. This exact content never changes and is served at /api/v1/blob/338f3794d71ea0bd.

# DOX — packages/demo-plugin/src/server

Files in this directory. One row per source file.

| File | Purpose |
|------|---------|
| `index.ts` | Demo fixture server entry (loads only under `PI_DASHBOARD_FIXTURE_PLUGINS=1`). Registers `demo/echo` request handler (`echo: <text>`); routes `GET|DELETE /api/plugins/demo/account` (credential key `demo-account`) + `POST /api/plugins/demo/sign-in` → `ctx.oauth.startFlow` with `demoLoginFlow` (auth_url + manual_code; answer `ok` → dummy OAuth credential persisted via `ctx.credentials`). See change: expose-plugin-credential-and-oauth-seams. |