Skip to content

docs: regenerate TypeScript API reference - #2977

Merged
chaliy merged 1 commit into
mainfrom
eve/clever-mccarthy-zh68ye
Nov 23, 2026
Merged

chaliy merged 1 commit into
mainfrom
eve/clever-mccarthy-zh68ye

Conversation

@chaliy

@chaliy chaliy commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What changed

Regenerated site/src/content/apidocs/typescript.md with just apidocs-ts.

Documentation only — 63 inserted lines, nothing removed or reworded. No source,
no API, no behavior change.

The surfaces it picks up all already exist in wrapper.ts / index.d.ts and
were added without a regeneration:

  • AnalyzedUpload, and the uploads field on the analyze() result
  • BashOptions.maxExecCalls and BashOptions.maxSessionCommands, on both the
    Bash and the bash-tool-adapter option types

Why

The weekly API Reference Drift workflow has been failing its typescript
job:

site/src/content/apidocs/typescript.md is stale — run 'just apidocs-ts' and commit the result

The markdown is a committed artifact that feeds the /api/typescript page; the
node-only site build just renders it, so it has to be regenerated and committed
when the wrapper surface changes. That step was missed when these options and
the uploads analysis field landed.

Per the comment in apidocs-drift.yml, the workflow deliberately never
auto-commits — it only fails, so that a human regenerates and commits under a
real identity. This is that commit.

Before / After

Before — the committed markdown documents neither the new option fields nor
AnalyzedUpload, and the drift job fails.

After — regenerating is a no-op, so the job passes. Representative excerpt:

 - **`maxCommands?`** — `number`
+- **`maxExecCalls?`** — `number`
+
+  Session-wide cap on `execute*()` calls for this instance (default 1,000).
+
+  Unlike `maxCommands`, this counts across calls so a tenant cannot dodge
+  per-call limits by splitting work. Snapshots carry the count; `reset()`
+  clears it. Raise it for long agent sessions.
 - **`maxInputBytes?`** — `number`

Verification:

  • just apidocs-ts (napi build → build:cjs → gen_ts_apidocs.mjs) completes
    with 0 typedoc errors, and re-running it leaves the file unchanged.
  • Each documented surface was checked against its declaration in
    crates/bashkit-js/wrapper.ts and index.d.ts — the generator invented
    nothing.
  • just check-doc-links passes: 236 relative links across 52 files.

Risk

  • Low
  • A generated documentation artifact, additive only. Nothing ships in the
    runtime and no public surface changes. The one way this could be wrong is if
    the generator emitted something the wrappers do not declare, which was
    checked directly.

Checklist

  • Tests added or updated — n/a, generated artifact; the drift workflow is the test
  • Backward compatibility considered

Generated by Claude Code


Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

`site/src/content/apidocs/typescript.md` had fallen behind the package's
TypeScript wrappers, so the weekly API Reference Drift workflow was failing
its typescript job:

    site/src/content/apidocs/typescript.md is stale -- run 'just apidocs-ts'
    and commit the result

Regenerated with `just apidocs-ts`. The surfaces it picks up all already
exist in `wrapper.ts` / `index.d.ts` and were added without a regeneration:

- `AnalyzedUpload`, and the `uploads` field on the `analyze()` result
- `BashOptions.maxExecCalls` and `BashOptions.maxSessionCommands`, on both
  the Bash and the bash-tool-adapter option types

Additive only -- 63 inserted lines, nothing removed or reworded -- so this is
a documentation catch-up with no API change. The workflow deliberately never
auto-commits, so regenerating under a real identity is the intended fix.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bashkit 63193af Commit Preview URL

Branch Preview URL
Nov 23 2026, 09:53 AM

@chaliy
chaliy merged commit 40826ad into main Nov 23, 2026
44 checks passed
@chaliy
chaliy deleted the eve/clever-mccarthy-zh68ye branch November 23, 2026 10:24
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.

1 participant