Repository navigation
chore: shorten agent guidance and enforce rules in CI - #1019
Conversation
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1019 +/- ##
=======================================
Coverage 94.80% 94.80%
=======================================
Files 10 10
Lines 751 751
Branches 235 235
=======================================
Hits 712 712
Misses 36 36
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain in the toolchain enforcement and request-behavior regression changes.
No open issues 🎉
What changed in this PR
Replaces agent instructions with automated toolchain checks and adds regression tests for urllib’s request behavior.
Changes:
- Removes
AGENTS.mdand disables its regeneration while preserving Git hook setup. - Enforces Vite+ usage through linting, dependency checks, script checks, and CI packaging.
- Tests header/body timeout defaults and prevents streamed-upload replay after redirects or server errors.
| File | Description |
|---|---|
vite.config.ts |
Rejects direct Vite and Vitest imports. |
test/toolchain.test.ts |
Checks tool dependencies and package-script commands. |
test/options.timeout.test.ts |
Tests default and explicit-zero timeout forwarding. |
test/options.stream.test.ts |
Tests streamed-upload redirect and retry suppression. |
package.json |
Uses Vite+ packaging and disables agent-file generation. |
AGENTS.md |
Removes redundant and conflicting instructions. |
Review effort: Balanced
AGENTS.mdrepeated the code and gave conflicting instructions for package commands. Each install could add more instructions to the file.The shorter guide tells contributors to enforce requirements with code and checks. It requires a blinded comparison before they add guidance for judgment calls.
The
preparescript runsvp config --no-agentto keep Git hooks without changing the guide. CI rejects a missing or empty guide and detects generatedVite+instructions.The linter rejects direct imports from
viteandvitest. Tests check tool dependencies, package commands, default timeouts, and when the client can resend streamed uploads.Summary by CodeRabbit
Tests
Chores
Documentation