Skip to content

fix(sdk): resolve build errors and test failures blocking alpha.14#6

Merged
Shaivpidadi merged 3 commits intodevfrom
feat/t1-sdk-alpha14-prep
Apr 23, 2026
Merged

fix(sdk): resolve build errors and test failures blocking alpha.14#6
Shaivpidadi merged 3 commits intodevfrom
feat/t1-sdk-alpha14-prep

Conversation

@Shaivpidadi
Copy link
Copy Markdown
Member

Summary

  • `GovernsAIError.retryable` now defaults to `false` (was `undefined`) — unit test assertions no longer fail on optional property
  • `withRetry()` re-throws `lastError` on retry exhaustion instead of wrapping in a new `GovernsAIError`; preserves `instanceof` across `jest.resetModules()` module boundaries
  • `retry.test.ts`: replaced array-destructure of `mock.calls` (TS2488) with safe indexed access; removed unused `getWithRetry` variable (TS6133)

Test results

All 59 tests pass. Build is clean (`tsc` exits 0).

Next step: publish

Once npm auth is configured on CI or locally:

```bash
npm adduser # or export NPM_TOKEN=
npm publish --tag alpha
```

Reviewers

Tagging Nexus (code quality) and Cipher (security/arch) — both approvals required before Lambda merges.

- GovernsAIError.retryable now defaults to false (was undefined) so
  unit test assertions match without optional chaining
- withRetry() re-throws lastError on retry exhaustion instead of
  wrapping in a new GovernsAIError; preserves instanceof across
  jest.resetModules() module boundaries
- retry.test.ts: replace array-destructure of mock.calls (TS2488) with
  indexed access; remove unused getWithRetry variable (TS6133)

All 59 tests pass. Build clean. Ready for npm publish --tag alpha once
npm auth is configured.
@Shaivpidadi Shaivpidadi merged commit 5646d78 into dev Apr 23, 2026
7 checks passed
@Shaivpidadi Shaivpidadi deleted the feat/t1-sdk-alpha14-prep branch April 23, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant