Skip to content

fix(v2): enforce absolute protocol paths - #234

Open
benbrandt wants to merge 1 commit into
chore/generated-source-gatefrom
fix/absolute-protocol-paths
Open

fix(v2): enforce absolute protocol paths#234
benbrandt wants to merge 1 commit into
chore/generated-source-gatefrom
fix/absolute-protocol-paths

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Summary

  • brand generated experimental-v2 AbsolutePath values so raw strings cannot enter typed outbound calls or handler responses
  • add a host-independent constructor and type guard for POSIX, Windows drive, and UNC paths
  • validate inbound absolute paths in generated Zod schemas
  • keep the generator authoritative for both the branded type and runtime validator

This changes only the existing experimental v2 surface. It should land after the generated-source gate PR because both update the generator.

Testing

  • npm run generate -- --skip-download
  • npm run check (870 tests)

@benbrandt
benbrandt force-pushed the fix/absolute-protocol-paths branch from 5e26128 to f08167a Compare July 28, 2026 21:42
@benbrandt
benbrandt changed the base branch from main to chore/generated-source-gate July 28, 2026 21:43
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