Skip to content

test(api): match SDK batch requests - #85

Closed
John-David Dalton (jdalton) wants to merge 1 commit into
mainfrom
test/vscode-sdk-batch-contract
Closed

John-David Dalton (jdalton) wants to merge 1 commit into
mainfrom
test/vscode-sdk-batch-contract

Conversation

@jdalton

Copy link
Copy Markdown
Collaborator

The API tests now exercise the SDK batch request used by the extension and check the corresponding response. This separates the API contract correction from the developer tooling changes in #84.

@cursor

cursor Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Large CI and npm-script reshaping can break local/CI workflows if Fleet sync is required; test-only API mock changes are low runtime risk but gate the batch contract.

Overview
Replaces the Fleet-wrapped default developer loop with repo-local oxlint, oxfmt, tsc, and Vitest wired through new .config/repo/* configs, a slimmed package.json script surface, and pnpm run check as build + typecheck + lint + format. Default pnpm test now runs the local Vitest config (with nock.disableNetConnect); Fleet-backed coverage and the full hydrated suite move behind pnpm run test:full and pnpm run sync-fleet. Rolldown inlines INLINED_EXTENSION_VERSION via native transform.define instead of defineGuardedPlugin, with a new rolldown config test replacing the removed plugin tests. CI and hooks exercise both Fleet checks and the standalone pnpm run check / pnpm test commands; pre-push lint can fall back to pnpm run lint when the script is not a direct node … entry.

API unit tests now mock https://purl-api.socket.dev POST /batch (and the existing org endpoint where unchanged), aligning nock fixtures with the SDK batch contract the extension already uses—no production API logic changes in this diff beyond dropped build-time comments in extension.mts.

Reviewed by Cursor Bugbot for commit d7c2043. Configure here.

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit d7c2043. Configure here.

Comment thread .git-hooks/_shared/push/repo-gates.mts Outdated
stdioString: true,
})
showCheckResult(result)
return result.status ?? 1

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Push lint gate skips format

Medium Severity

The push lint fallback now runs pnpm run lint when the lint script is not a node file. That script is oxlint only, so the gate no longer runs format. The previous node lint entry ran both, and this fallback also omits the failure guidance and unbounded buffer used on that path.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit d7c2043. Configure here.

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