Run pnpm install and that's it: docs/ sits in the same workspace, so one lockfile covers both and the docs no longer need a second round. pnpm test runs lint, the type checks and the suite with coverage.
Looking for a version in package.json? You'll find catalog:deps or catalog:dev instead. Versions live in pnpm-workspace.yaml: deps, dev and the default catalog:, which keeps the Vite+ toolchain the overrides point at. Shared packages get one line instead of two, and cleanupUnusedCatalogs: true drops unused lines on the next install.
Add one with pnpm add <name> --save-catalog-name=deps --save-exact, or use -D and dev for a tool. Run it inside docs/ for a site dependency.
- Copy
src/providers/wayback.ts, register the factory insrc/providers/index.tsand put its option types insrc/_providers.ts, not beside the implementation. - Answer through
createSuccessResponse,createErrorResponseandcreateUnsupportedResponse, never a raw object. Convert timestamps to ISO 8601 and keep the native one in_meta. unsupportedmeans the archive's API has no such endpoint, and callers read the reason to decide whether to try elsewhere. A missing implementation is not that.- A pywb index (Vefsafn, Webarchiv, OSZK, NLNZ) reads its rows through
parsePywbCapturesfromsrc/utils/_cdx.ts, which already knows a-means pywb has no idea. Thefrom/towindow comes fromrequestedWindowin the same file. Four copies of that parser were plenty. - Read a capture raw or not at all:
id_playback or a WARC byte range. An archive that only serves its own rendition returnscreateUnsupportedContentResponsewith the reason. - A factory may cache its module-load promise, never a configured instance, and a failed import stays retryable.
providers.all()leaves out providers that need a key or a collection, and Memento, which already fans out across archives. Its JSDoc says why for each.- Add
test/<provider>.test.ts, offline and deterministic, and its page underdocs/content/2.providers/.
- Tool behavior lives in
src/tool-operations.ts, and definitions live insrc/tools.ts. MCP, Pi, OMP and@agntn/archives/aiuse those definitions. Fix the source, not one surface. The past has enough copies already. - An MCP client sees only
content[].text, so anything the next call needs is there, anddetailsnever carries a second, longer copy of the body. - Archived bodies and provider fields are untrusted: bound every read and render them as text.