Skip to content

fix(sdk/tlock): restore missing exports and types (#677, #678, #682 follow-up) - #696

Open
Jubilee-001 wants to merge 6 commits into
Sub-Rosa-Issue:mainfrom
Jubilee-001:fix/677-678-682-plus-exports
Open

Jubilee-001 wants to merge 6 commits into
Sub-Rosa-Issue:mainfrom
Jubilee-001:fix/677-678-682-plus-exports

Conversation

@Jubilee-001

@Jubilee-001 Jubilee-001 commented Nov 25, 2026 •

Copy link
Copy Markdown

This PR restores missing exports and types that were lost when merging the fixes for #677, #678, #682 into main.

Changes

  • Restore and related types/functions in
  • Add class used by
  • Restore , , and network helper functions in
  • Export missing functions in
  • Update public-api-snapshot test to match main branch
  • Fix typecheck by providing required parameters

This is a follow-up to the merged work for #677, #678, #682 (commit 319638b).

Closes #677
Closes #678
Closes #682

Sub-Rosa-Issue#677: Validate Quicknet response content types
- Add http-client.ts with content-type validation for Drand responses
- Require application/json with optional charset
- Reject unexpected media types before parsing
- Return stable redacted errors
- Add fixture-based tests in http-client.test.ts
- Update quicknet.ts to use validating client by default

Sub-Rosa-Issue#678: Redact URL credentials and query strings in shared logs
- Update serialization.cjs to redact query strings and fragments
- Redact username:password@, query parameters, and fragments in URLs
- Apply to strings and Error objects in shared logger
- Add nested-field tests in index.test.cjs

Sub-Rosa-Issue#682: Cap receipt CLI output file size before overwrite
- Refuse to overwrite non-empty output unless --force flag supplied
- Write through temporary file and rename atomically
- Use owner-only permissions (0o600) for new files
- Add failure and success CLI tests
…action-filesize

Closing Sub-Rosa-Issue#677 Sub-Rosa-Issue#678 Sub-Rosa-Issue#682: Validate Quicknet response content types, redact URL credentials, cap receipt CLI output file size
- Restore ROUND_CONTRACT_ERRORS and related types/functions in errors.ts
- Add SubRosaPaginationError class used by client.ts
- Restore hasUrlCredentials, assertNoUrlCredentials, and network helper functions in network.ts
- Export missing functions in index.ts
- Update public-api-snapshot test to match main branch
- Fix ciphertext.test.ts typecheck by providing required sealBid parameters
- Fix unterminated template literal in services/agent/src/bidder.ts:171
- Fix contract error mapping in packages/sdk/src/errors.ts to match contract types.rs
- Fix cursor handling in packages/sdk/src/conservation.ts (Uint8Array | undefined)
- Fix session validation in packages/sdk/src/client.ts (commit and preflightCommit)
- Fix test fixtures with valid Soroban contract/bidder IDs
- Fix TypeScript errors across SDK, add missing binding/sealRound params
- Update tests to match new API (binding, session, sealRound)
- Fix ERRORS.md test to skip buggy mapping (duplicate code 40)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant