Skip to content

feat(sdk): bring TypeScript SDK to parity with keep-rs - #31

Merged
dhruvjainin merged 1 commit into
mainfrom
feat/ts-sdk-parity
Dec 3, 2026
Merged

dhruvjainin merged 1 commit into
mainfrom
feat/ts-sdk-parity

Conversation

@dhruvjainin

Copy link
Copy Markdown
Contributor

Brings @tulipfarm/keep-sdk to parity with keep-rs for production HTTP usage:

  • Refuse HTTP redirects (redirect: "error") on all requests.
  • Omit Authorization header on unauthenticated health endpoints (/v1/health, /v1/health/live, /v1/health/ready).
  • Accept URL as well as string for endpoint.
  • Handle body-read timeouts, generic TimeoutError/AbortError errors, and non-JSON 503 responses as typed KeepError.unavailable.
  • Add KeepError.isNotFound, KeepError.isConflict, KeepError.conflictHead(), and export ERROR_CODES, FORGET_SOURCES_LIMIT, and SOURCE_ALLOWLIST_LIMIT.
  • Type all MemoryClient and KnowledgeClient response models (Head, WriteOutcome, MetadataOutcome, MemoryHistory, ForgetReceipt, KnowledgeSearchResult, KnowledgeForgetSourcesResult, etc.).
  • Add publishConfig.access = "public", prepublishOnly, and repository metadata to sdks/typescript/package.json.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying tulipfarm-keep with  Cloudflare Pages  Cloudflare Pages

Latest commit: a2ddefa
Status: ✅  Deploy successful!
Preview URL: https://9d3e4c40.tulipfarm-keep.pages.dev
Branch Preview URL: https://feat-ts-sdk-parity.tulipfarm-keep.pages.dev

View logs

@dhruvjainin
dhruvjainin merged commit 9fbceaf into main Dec 3, 2026
4 checks passed
@dhruvjainin
dhruvjainin deleted the feat/ts-sdk-parity branch December 3, 2026 11:35
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