Repository navigation
Run doc examples and ship agent docs in the package - #266
Merged
Merged
Conversation
Run and compile JSDoc examples with @effect/doctest, generate LLMS.md from ai-docs, and ship both as AGENTS.md, CLAUDE.md, and ai-docs. Fix the examples that no longer compiled, and update AGENTS.md for an agent-first API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Type performanceMeasured with TypeScript 6.0.3 and
Marginal instantiations are measured against the matching setup without that API call:
Check times (informational)
Type instantiations are the comparison metric. Check time varies with runner load and is informational only. |
Contributor
Runtime performanceMedian of 5 independent benchmark processes on Pull request baseline
Process runtime reference points
Effect Machine change from base
Process runtime reference change from base
Regression guardNo large, noise-adjusted throughput or heap regressions detected. Versions and interpretation
Higher throughput is better; lower heap is better. Variability is the median absolute deviation across independent processes, relative to their median. Small differences on shared GitHub-hosted hardware remain informational; the required guard rejects only large changes beyond the measured noise allowance. |
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@effect/doctestwithpnpm doctest(runs marked JSDoc examples and their// =>assertions) andpnpm doctest:types(compiles the same snippets, since doctests do not type check). Both run inpnpm check. This replaces the fixture comparison inscripts/api-reference/examples.test.mjs.packages/effect-machine/docstoai-docs/src, following the layout ofreferences/effect/ai-docs.pnpm ai-docgengeneratesLLMS.md, and each build copies it into the core package asAGENTS.mdandCLAUDE.md, next toai-docs/. The API site rendersLLMS.md.MachineTestexamples that no longer compiled, including the removedto.branchAPI, plus stale README and oxlint README content. ConvertMachine.can,Machine, andMachineTest.exploreexamples to titled runnable doctests as the first examples.AGENTS.md: priority 3 becomes "Local, unambiguous models"; add a documentation section; allow a deliberate type-performance regression that buys type safety or a clearer API. Runtime and memory regressions remain blockers.First of the agent-first API changes. The remaining unmarked JSDoc examples get converted after the breaking API change, so they are written once.
Changeset
Validation
pnpm check🤖 Generated with Claude Code