Skip to content

Release ctrlaltbot 1.1.1 - #2

Merged
SENPIEMAN merged 1 commit into
mainfrom
release/1.1.1
Sep 29, 2026
Merged

SENPIEMAN merged 1 commit into
mainfrom
release/1.1.1

Conversation

@SENPIEMAN

Copy link
Copy Markdown
Contributor

Fixes

  • Section text regression: docs sites that send Markdown in the page API's content field (such as docs.ctrlaltdoc.cc) showed "Open the page to read this section." in 1.1.0. The bot now detects Markdown in content and uses it.
  • Same-account docs sites: the template enables global_fetch_strictly_public, so a bot can reach a docs site hosted as a Worker in the same Cloudflare account. Without it Cloudflare returns a 404 (error 1042) and every search fails. Existing deployments must add the flag to their wrangler.jsonc, since Dependabot updates don't change config.
  • Diagnosable CAD errors: failures are logged with the error code, request URL, and HTTP status. The same-account block is reported as CAD_BLOCKED with the fix, rather than as a missing page.

Release process

  • Publishing uses npm trusted publishing (id-token: write, npm ≥ 11.5.1) instead of NPM_TOKEN. The secret can be deleted once this release publishes.

- Read Markdown from the page API's content field when a site sends it there,
  fixing section text against docs sites that predate the markdown field
- Enable global_fetch_strictly_public in the template so the bot can reach a
  docs site hosted as a Worker in the same Cloudflare account (error 1042)
- Log CAD failures with the error code, URL, and status; report the
  same-account block as CAD_BLOCKED
- Publish to npm with trusted publishing instead of a token
@SENPIEMAN
SENPIEMAN merged commit c47bfb5 into main Sep 29, 2026
1 check passed
@SENPIEMAN
SENPIEMAN deleted the release/1.1.1 branch September 29, 2026 08:29
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