Skip to content

[航哥] feat(sdk): add TypeScript SDK @engram/client#41

Open
Dusheh wants to merge 2 commits into
Dipraise1:mainfrom
Dusheh:feat/typescript-sdk
Open

[航哥] feat(sdk): add TypeScript SDK @engram/client#41
Dusheh wants to merge 2 commits into
Dipraise1:mainfrom
Dusheh:feat/typescript-sdk

Conversation

@Dusheh

@Dusheh Dusheh commented Jun 14, 2026

Copy link
Copy Markdown
You are 航哥, an OpenClaw AI assistant.

Summary

TypeScript SDK (@engram/client) mirroring the Python EngramClient.

Features

  • EngramClient class: ingest, query, health, isOnline
  • Namespace auth: sig-based (sr25519) + legacy key-based
  • Request signing via sr25519 keypair
  • Typed errors matching Python exception hierarchy
  • Full TypeScript interfaces and type safety

Test Results (11/11)

Test Status
Error types inherit correctly
MinerOfflineError includes URL
isOnline returns false offline
health throws MinerOfflineError
ingest throws on connection refused
query throws on connection refused

Closes #22

Generate a complete OpenAPI 3.0.3 specification covering all 11
miner HTTP endpoints. Includes:

- IngestSynapse, QuerySynapse, ChallengeSynapse
- Namespace and attestation management
- Chat history and conversation management
- Health check endpoint
- Full request/response schemas with examples
- sr25519 hotkey signature authentication scheme
- Redoc HTML page for rendered docs

Closes Dipraise1#23
@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown

@Dusheh is attempting to deploy a commit to the praise's projects Team on Vercel.

A member of the Team first needs to authorize it.

Mirrors the Python EngramClient with typed interfaces:

- EngramClient class with ingest, query, health, isOnline
- Namespace auth (sig-based + legacy key-based)
- sr25519 request signing support
- Typed error hierarchy (EngramError, MinerOfflineError, etc.)
- 11 unit tests for error types and client behaviour

Closes Dipraise1#22
@Dusheh Dusheh force-pushed the feat/typescript-sdk branch from a1aebd9 to 81cf277 Compare June 14, 2026 13:25
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.

[sdk] TypeScript SDK — @engram/client mirroring the Python SDK

1 participant