feat: add SDK foundation layer

Implement config resolution, typed errors, HTTP and WebSocket transport
helpers, and timeout handling for the SDK foundation. Add unit and local
integration tests covering the SDK foundation behaviour and align
package exports with the tsup output.
This commit is contained in:
Tasnim Kabir Sadik
2026-05-09 16:32:41 +06:00
parent db7fccbaed
commit 5b3f2741a3
11 changed files with 1127 additions and 9 deletions

View File

@ -2,10 +2,13 @@ import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/index.ts"],
format: ["cjs", "esm"],
dts: { resolve: true },
format: ["esm", "cjs"],
outExtension({ format }) {
return { js: format === "esm" ? ".js" : ".cjs" };
},
outDir: "dist",
clean: true,
sourcemap: true,
minify: false,
dts: { resolve: true },
});