You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(v2): collapse duplicated cursor and validation mechanisms, drop dead exports
One rule, one implementation:
- `parseRequest` hand-inlined the "caller envelope or default" validation-error
projection four times. Extract `projectValidationError` and route all four
through it.
- Nine keyset lists hand-rolled the `present` half of the cursor pair that
`readSortedCursor` already owns the read half of. Add the symmetric
`writeSortedCursor` and use it everywhere.
- `GET /workflows/{id}/runs` re-derived `readSortedCursor`'s invalid/refiltered
ladder from `decodeSortedCursor`; it now calls the shared reader and keeps
only the key-arity check that is genuinely its own.
Files and exports that no longer earn their place:
- Inline `credentials/utils.ts` into its single consumer.
- Delete symbols with zero references repo-wide: `v2CustomToolWriteError`,
`secretCredentialTypes`, `v2CursorList`, `v2WorkspaceAccessError`,
`resolveFolderPathIdentity`, `folderPathForId`, `v2FolderPathMutationError`,
and seven of twelve `tables/utils.ts` exports.
- Drop `export` from symbols used only inside their own module.
No behavior change; every response body and error message is byte-identical.
0 commit comments