Skip to content

Update the documentation for Probitas 2.0 - #2

Merged
lambdalisue merged 5 commits into
mainfrom
docs/probitas-2
Oct 10, 2026
Merged

lambdalisue merged 5 commits into
mainfrom
docs/probitas-2

Conversation

@lambdalisue

Copy link
Copy Markdown
Member

Summary

  • Installation: the single binary (install.sh into ~/.local/bin, PROBITAS_VERSION / PROBITAS_INSTALL_DIR, supported platforms, no musl, Windows zip), Homebrew, setup-probitas@v2, the Nix flake (release binary; pin v1.0.0 for 1.x), and pre-fetching DuckDB for CI.
  • Overview: no Deno needed; what probitas init writes; new sections on editor support (including @types/node and "types": ["node"]), third-party dependencies and runtime APIs; fmt / lint / check as they work in 2.0; "Native Dependencies" (cache duckdb, PROBITAS_DUCKDB_DIR) in place of probitas cache.
  • New migration page built from MIGRATION.md, in the nav and llms.txt.
  • Scenario, client, expect and configuration pages: @probitas-test/probitas imports, process.env, Deno KV removed, new environment variables and .env behaviour, and the broken /api/scenario/ links pointed at /api/probitas/.
  • API reference regenerated from @probitas/probitas@2.0.0 and the package versions it pins; API pages show npm install @probitas-test/<pkg>. client-deno-kv and scenario (still on JSR, no longer maintained) are excluded.
  • Site data, example scenarios and repo guides (AI.md, README.md, .claude/) updated to match.

Why

Probitas 2.0 runs on Bun as a single binary: the site still taught Deno installs, jsr: imports, Deno.env and the Deno KV client. See MIGRATION.md.

Notes

  • The API generator needs Deno ≤ 2.6: Deno 2.9 emits deno doc --json schema version 2, which the site cannot render. The script now stops with a clear error on that schema (documented in the README), and npm run generate-api runs the .ts script it actually has. The data here was generated with Deno 2.6.4.
  • Some doc comments in the generated data still mention Deno.test / Deno.makeTempFileSync / jsr: imports; they come from the packages' sources.
  • Two broken links exist on main already and are left: #stepOptions in configuration.md (the generated anchor is lowercase) and client-http#createOidcHttpClient in client.md.
  • deno test -A tests/ fails on main as well (it expects dist/**/index.md; the Vite build emits index.md.html).

Test Plan

  • npm run build (incl. Pagefind)
  • Every /docs, /AI and /api/<pkg>/#Symbol link and anchor checked against the build and the generated data (only the two pre-existing breakages above remain)
  • Probitas 2.0.0 binary: fmt --check, lint and list pass on the in-repo scenarios; the documented biome-ignore example silences its rule

🤖 Generated with Claude Code

https://claude.ai/code/session_01N3xvJ1TaozjYSE6eoyo9mq

lambdalisue and others added 4 commits October 11, 2026 01:46
`client-deno-kv` and `scenario` are still listed in the JSR scope but are
no longer part of Probitas, so skip them (before caching, too) instead of
documenting packages that cannot be used anymore.

Newer Deno releases (2.9 at the time of writing; 2.6 does not) emit `deno doc --json` schema version 2, which nests symbols
per module; the site only renders version 1. Fail with a message that
names the cause instead of `nodes.find is not a function`.

`npm run generate-api` pointed at a non-existent `.js` file; run the
TypeScript script with Deno instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N3xvJ1TaozjYSE6eoyo9mq
Generated from the JSR packages that @probitas/probitas 2.0.0 depends
on. The Deno KV client, the logger and the old scenario package are gone
from Probitas, so their pages are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N3xvJ1TaozjYSE6eoyo9mq
Probitas 2 runs on Bun and ships as a single binary, so the guides no
longer ask for Deno:

- Installation covers the binary installer (~/.local/bin), Windows,
  setup-probitas@v2, the flake's release binary and how to stay on 1.x.
- Examples import @probitas-test/probitas and read process.env.
- The overview explains editor support (package.json/tsconfig.json from
  probitas init, @types/node with "types": ["node"]), third-party
  dependencies, the built-in fmt/lint/check and `cache duckdb`.
- The Deno KV client and its expectations are removed.
- A migration guide lists what changes from 1.x.
- API pages show `npm install @probitas-test/<package>`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N3xvJ1TaozjYSE6eoyo9mq
README still described the Deno tasks from before the move to HonoX +
Vite, and the agent guides still taught `jsr:` imports and Deno APIs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N3xvJ1TaozjYSE6eoyo9mq
Copilot AI balanced review requested due to automatic review settings October 10, 2026 16:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Since Probitas 2.0.2 the flake builds the CLI from the locked revision
instead of fetching the latest release binary, so `nix flake update`
follows main and a release is pinned by its tag. The v2.0.0 and v2.0.1
tags predate that and do not install their own version through Nix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N3xvJ1TaozjYSE6eoyo9mq
@lambdalisue
lambdalisue merged commit 4b2b822 into main Oct 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants