Skip to content

fix(types): add declarations for classify-docs-only.mjs so root typecheck passes - #262

Closed
ScriptedAlchemy wants to merge 1 commit into
mainfrom
fix/classify-docs-only-types
Closed

fix(types): add declarations for classify-docs-only.mjs so root typecheck passes#262
ScriptedAlchemy wants to merge 1 commit into
mainfrom
fix/classify-docs-only-types

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • packages/agent-bundle/tests/classify-docs-only.test.ts (added in ci: extract docs-only classifier tests and retry stale-diagnostic e2e flakes #259) imports the untyped scripts/classify-docs-only.mjs, so root tsc --noEmit fails with TS7016 under noImplicitAnypnpm typecheck is currently red on main.
  • Adds a scripts/classify-docs-only.d.mts declaration sibling typing the classifier's exported surface (isDocsOnlyPath, parseGhFilesListing, classifyDocsOnlyListing, runClassify).

Test plan

  • pnpm build green
  • pnpm typecheck green (was failing with TS7016 before this change)
  • pnpm exec rstest --config rstest.unit.config.ts packages/agent-bundle/tests/classify-docs-only.test.ts green
  • pnpm lint green

No changeset: repository scripts/test infrastructure, not a published package change.

…heck passes

The classify-docs-only test added in #259 imports the untyped .mjs module,
which fails tsc --noEmit with TS7016 under noImplicitAny. A declaration
sibling types the classifier's exported surface.
@changeset-bot

changeset-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 9324c40

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-02T02:53:25.581432Z 9324c40 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ScriptedAlchemy

Copy link
Copy Markdown
Owner Author

Superseded — an equivalent scripts/classify-docs-only.d.mts landed on main via the capabilities lane before this merged.

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