stitchkit 0.136.6 → 0.136.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -15,6 +15,12 @@ additive**; the first breaking change landed in 0.10.0. Grep the file for
15
15
 
16
16
  ## [Unreleased]
17
17
 
18
+ ## [0.136.7] - 2026-12-03
19
+
20
+ ### Added
21
+
22
+ - `stitchkit/postgres` — new peer-free `evolving` server entrypoint exporting `withSerializedPrismaTransactions` (plus structural interfaces `PrismaDriverAdapterFactory`, `PrismaDriverAdapter`, `PrismaDriverTransaction`) to serialize statements inside each Prisma interactive transaction (`queryRaw`, `executeRaw`, `commit`, `rollback`, `createSavepoint`, `rollbackToSavepoint`, `releaseSavepoint`) in strict FIFO order without overlapping on one `pg.Client`, while keeping non-transactional pool queries and concurrent transactions parallel, preserving `connectToShadowDb`, `userDefinedTypeParser` re-entrancy, `#private` fields, `Symbol` properties, and `$disconnect()` → reconnect lifecycle without adding `@prisma/adapter-pg` or `pg` as peers. → ADR 0344
23
+
18
24
  ## [0.136.6] - 2026-12-03
19
25
 
20
26
  ### Fixed
@@ -0,0 +1,6 @@
1
+ /**
2
+ * `stitchkit/postgres` — peer-free helpers for PostgreSQL applications,
3
+ * including per-transaction serialization for Prisma SQL driver adapters.
4
+ */
5
+ export { type PrismaDriverAdapter, type PrismaDriverAdapterFactory, type PrismaDriverTransaction, withSerializedPrismaTransactions, } from '../postgres/serialize-prisma.js';
6
+ //# sourceMappingURL=postgres.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../src/entrypoints/postgres.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,gCAAgC,GACjC,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,134 @@
1
+ // src/postgres/serialize-prisma.ts
2
+ var CONNECT_FACTORY_METHODS = new Set([
3
+ "connect",
4
+ "connectToShadowDb"
5
+ ]);
6
+ var SERIALIZED_TRANSACTION_METHODS = new Set([
7
+ "queryRaw",
8
+ "executeRaw",
9
+ "commit",
10
+ "rollback",
11
+ "createSavepoint",
12
+ "rollbackToSavepoint",
13
+ "releaseSavepoint"
14
+ ]);
15
+ var wrappedFactories = new WeakSet;
16
+ var wrappedAdapters = new WeakSet;
17
+ var wrappedTransactions = new WeakSet;
18
+ function isObject(value) {
19
+ return typeof value === "object" && value !== null;
20
+ }
21
+ function assertWrappableMethods(target, keys, kind) {
22
+ for (const key of keys) {
23
+ const descriptor = Object.getOwnPropertyDescriptor(target, key);
24
+ if (descriptor !== undefined && !descriptor.configurable && !descriptor.writable && "value" in descriptor && typeof descriptor.value === "function") {
25
+ throw new TypeError(`withSerializedPrismaTransactions cannot wrap non-configurable, non-writable ${kind} method "${String(key)}"`);
26
+ }
27
+ }
28
+ }
29
+ function readOwnProperty(target, key) {
30
+ const descriptor = Object.getOwnPropertyDescriptor(target, key);
31
+ if (descriptor !== undefined && !descriptor.configurable && !descriptor.writable && "value" in descriptor) {
32
+ return descriptor.value;
33
+ }
34
+ const value = Reflect.get(target, key, target);
35
+ return typeof value === "function" ? value.bind(target) : value;
36
+ }
37
+ function wrapTransaction(transaction) {
38
+ if (wrappedTransactions.has(transaction))
39
+ return transaction;
40
+ assertWrappableMethods(transaction, SERIALIZED_TRANSACTION_METHODS, "transaction");
41
+ let previous = Promise.resolve();
42
+ const proxy = new Proxy(transaction, {
43
+ get(target, key) {
44
+ if (SERIALIZED_TRANSACTION_METHODS.has(key)) {
45
+ const raw = Reflect.get(target, key, target);
46
+ if (typeof raw !== "function")
47
+ return raw;
48
+ return (...args) => {
49
+ let release = () => {
50
+ return;
51
+ };
52
+ const gate = new Promise((resolve) => {
53
+ release = resolve;
54
+ });
55
+ const wait = previous;
56
+ previous = gate;
57
+ return wait.then(async () => {
58
+ try {
59
+ return await Reflect.apply(raw, target, args);
60
+ } finally {
61
+ release();
62
+ }
63
+ });
64
+ };
65
+ }
66
+ return readOwnProperty(target, key);
67
+ },
68
+ set(target, key, value) {
69
+ return Reflect.set(target, key, value, target);
70
+ }
71
+ });
72
+ wrappedTransactions.add(proxy);
73
+ return proxy;
74
+ }
75
+ function wrapAdapter(adapter) {
76
+ if (wrappedAdapters.has(adapter))
77
+ return adapter;
78
+ assertWrappableMethods(adapter, ["startTransaction"], "adapter");
79
+ const proxy = new Proxy(adapter, {
80
+ get(target, key) {
81
+ if (key === "startTransaction") {
82
+ const raw = Reflect.get(target, key, target);
83
+ if (typeof raw !== "function")
84
+ return raw;
85
+ return async (...args) => {
86
+ const transaction = await Reflect.apply(raw, target, args);
87
+ return isObject(transaction) ? wrapTransaction(transaction) : transaction;
88
+ };
89
+ }
90
+ return readOwnProperty(target, key);
91
+ },
92
+ set(target, key, value) {
93
+ return Reflect.set(target, key, value, target);
94
+ }
95
+ });
96
+ wrappedAdapters.add(proxy);
97
+ return proxy;
98
+ }
99
+ function withSerializedPrismaTransactions(adapter) {
100
+ if (!isObject(adapter)) {
101
+ throw new TypeError("withSerializedPrismaTransactions expects a Prisma driver adapter factory object");
102
+ }
103
+ if (wrappedFactories.has(adapter))
104
+ return adapter;
105
+ const provider = Reflect.get(adapter, "provider", adapter);
106
+ const adapterName = Reflect.get(adapter, "adapterName", adapter);
107
+ const connect = Reflect.get(adapter, "connect", adapter);
108
+ if (typeof provider !== "string" || typeof adapterName !== "string" || typeof connect !== "function") {
109
+ throw new TypeError("withSerializedPrismaTransactions expects a Prisma driver adapter factory with string provider, string adapterName and a connect() method");
110
+ }
111
+ assertWrappableMethods(adapter, CONNECT_FACTORY_METHODS, "adapter factory");
112
+ const proxy = new Proxy(adapter, {
113
+ get(target, key) {
114
+ if (CONNECT_FACTORY_METHODS.has(key)) {
115
+ const raw = Reflect.get(target, key, target);
116
+ if (typeof raw !== "function")
117
+ return raw;
118
+ return async (...args) => {
119
+ const connected = await Reflect.apply(raw, target, args);
120
+ return isObject(connected) ? wrapAdapter(connected) : connected;
121
+ };
122
+ }
123
+ return readOwnProperty(target, key);
124
+ },
125
+ set(target, key, value) {
126
+ return Reflect.set(target, key, value, target);
127
+ }
128
+ });
129
+ wrappedFactories.add(proxy);
130
+ return proxy;
131
+ }
132
+ export {
133
+ withSerializedPrismaTransactions
134
+ };
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Serializes interactive transaction statements on a Prisma SQL driver adapter
3
+ * without importing `@prisma/adapter-pg` or `pg`.
4
+ *
5
+ * Prisma 7 can dispatch independent query-plan nodes (such as included
6
+ * relations) concurrently with `Promise.all` onto a single interactive
7
+ * transaction handle. On PostgreSQL (`pg`), all statements of an interactive
8
+ * transaction share one `pg.Client`: `pg@8` queues overlapping calls with a
9
+ * deprecation warning and `pg@9` refuses them.
10
+ *
11
+ * Wrapping the factory keeps queries outside a transaction parallel across the
12
+ * pool, keeps `commit`/`rollback` (which release the `pg.PoolClient`) in the
13
+ * same FIFO queue as `queryRaw`/`executeRaw` and savepoint statements, and
14
+ * preserves the adapter's own connection lifecycle across `$disconnect()` and
15
+ * reconnect.
16
+ */
17
+ /** Minimal structural handle for a Prisma interactive transaction whose statements run serially on one connection. */
18
+ export interface PrismaDriverTransaction {
19
+ queryRaw(query: never): Promise<unknown>;
20
+ executeRaw(query: never): Promise<unknown>;
21
+ commit(): Promise<unknown>;
22
+ rollback(): Promise<unknown>;
23
+ readonly createSavepoint?: ((name: never) => Promise<unknown>) | undefined;
24
+ readonly rollbackToSavepoint?: ((name: never) => Promise<unknown>) | undefined;
25
+ readonly releaseSavepoint?: ((name: never) => Promise<unknown>) | undefined;
26
+ }
27
+ /** Minimal structural handle for a connected Prisma SQL driver adapter whose interactive transactions are serialized. */
28
+ export interface PrismaDriverAdapter {
29
+ startTransaction(isolationLevel: never): Promise<PrismaDriverTransaction>;
30
+ }
31
+ /** Minimal structural handle for a Prisma SQL driver adapter factory accepted by `withSerializedPrismaTransactions`. */
32
+ export interface PrismaDriverAdapterFactory {
33
+ readonly provider: string;
34
+ readonly adapterName: string;
35
+ connect(): Promise<PrismaDriverAdapter>;
36
+ readonly connectToShadowDb?: (() => Promise<PrismaDriverAdapter>) | undefined;
37
+ }
38
+ /** Wrap a Prisma SQL driver adapter factory so statements inside each interactive transaction run one at a time. */
39
+ export declare function withSerializedPrismaTransactions<F extends PrismaDriverAdapterFactory>(adapter: F): F;
40
+ //# sourceMappingURL=serialize-prisma.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serialize-prisma.d.ts","sourceRoot":"","sources":["../../src/postgres/serialize-prisma.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,sHAAsH;AACtH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACzC,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3B,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7B,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAC3E,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAC/E,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;CAC7E;AAED,yHAAyH;AACzH,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,CAAC,cAAc,EAAE,KAAK,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;CAC3E;AAED,wHAAwH;AACxH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,OAAO,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACxC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC,GAAG,SAAS,CAAC;CAC/E;AA6HD,oHAAoH;AACpH,wBAAgB,gCAAgC,CAAC,CAAC,SAAS,0BAA0B,EACnF,OAAO,EAAE,CAAC,GACT,CAAC,CAwCH"}
@@ -0,0 +1,37 @@
1
+ # stitchkit/postgres — stitchkit docs slice
2
+
3
+ > Generated from the `docs/` tree by `bun run gen:llms`. The index of all slices is
4
+ > `llms.txt` in this package.
5
+
6
+ Contains: API reference: `stitchkit/postgres` (docs/api/reference.md)
7
+
8
+ ==============================================================================
9
+ # API reference: `stitchkit/postgres` (docs/api/reference.md)
10
+ ==============================================================================
11
+
12
+ ## `stitchkit/postgres`
13
+
14
+ Server-only, peer-free PostgreSQL application helpers. Wraps any Prisma SQL driver adapter factory
15
+ (such as `new PrismaPg(...)`) without importing `@prisma/adapter-pg` or `pg`, so statements inside
16
+ each interactive transaction reach its single PostgreSQL connection one at a time while queries
17
+ outside transactions and separate transactions stay parallel across the pool. See
18
+ [ADR 0344](../decisions/0344-peer-free-prisma-transaction-serialization.md).
19
+
20
+ ```ts
21
+ import { PrismaPg } from '@prisma/adapter-pg';
22
+ import { withSerializedPrismaTransactions } from 'stitchkit/postgres';
23
+
24
+ const adapter = withSerializedPrismaTransactions(
25
+ new PrismaPg({ connectionString: env.DATABASE_URL }),
26
+ );
27
+ const prisma = new PrismaClient({ adapter });
28
+ ```
29
+
30
+ | Export | Kind | Summary |
31
+ |--------|------|---------|
32
+ | `withSerializedPrismaTransactions` | function | wraps a Prisma SQL driver adapter factory (`connect` and optional `connectToShadowDb`) so `queryRaw`, `executeRaw`, `commit`, `rollback` and savepoints inside each interactive transaction execute in strict FIFO order without overlapping on one connection; idempotent and fails fast with `TypeError` on non-factory inputs (such as a raw `pg.Pool`) |
33
+ | `PrismaDriverAdapterFactory` | _type_ | minimal structural Prisma SQL driver adapter factory (`provider`, `adapterName`, `connect`, optional `connectToShadowDb`) accepted by `withSerializedPrismaTransactions` |
34
+ | `PrismaDriverAdapter` | _type_ | minimal structural connected Prisma SQL driver adapter (`startTransaction`) |
35
+ | `PrismaDriverTransaction` | _type_ | minimal structural interactive transaction handle (`queryRaw`, `executeRaw`, `commit`, `rollback` and optional savepoints) |
36
+
37
+ ---
@@ -98,6 +98,7 @@ own, recorded as an ADR.
98
98
  | `stitchkit/voice` | browser **and** server | evolving<br>_redefined in 0 of the 43 minors since 0.94.0_ | the mechanics of a live voice reply — `SentenceCutter`, `speakableText`, a `SpeechQueue` that synthesises ahead and stops on interruption, the conversation phases |
99
99
  | `stitchkit/sync` | browser **and** server | evolving<br>_redefined in 1 of the 10 minors since 0.127.0, most recently 0.132.0_ | the client half of an offline-first sync — which outbox rows leave next, pending edits on top of remote rows, deletes that win until acknowledged, the cursor session, the push and page wire with an open outcome vocabulary; no driver, runs in Hermes |
100
100
  | `stitchkit/sync/postgres` | server (Bun or Node) | evolving<br>_redefined in 0 of the 10 minors since 0.127.0_ | the server half — versions that commit in order, a ledger that runs each change once, a feed of what changed, inside the app's own transaction; a memory store and `checkSyncStore` |
101
+ | `stitchkit/postgres` | server (Bun or Node) | evolving<br>_redefined in 0 of the 1 minor since 0.136.7_ | peer-free PostgreSQL helpers — `withSerializedPrismaTransactions` queues interactive transaction statements one at a time on a Prisma SQL driver adapter (`PrismaPg`) while keeping pool queries parallel |
101
102
  | `stitchkit/geo` | server (Bun or Node) | evolving<br>_redefined in 2 of the 43 minors since 0.94.0, most recently 0.127.0_ | managed GeoIP reader generations, last-known-good reload and the optional MaxMind adapter |
102
103
  | `stitchkit/geo/contract` | browser **and** server | evolving<br>_redefined in 0 of the 43 minors since 0.94.0_ | the place snapshot schema, for a shared contract that stores or sends `GeoAttribution`; brings `zod` |
103
104
  | `stitchkit/xlsx` | browser **and** server | evolving<br>_redefined in 0 of the 43 minors since 0.94.0_ | a workbook from rows and typed columns, with no dependency; text never runs as a formula |
@@ -259,6 +260,7 @@ map — feature → packages:
259
260
  | Anthropic native provider (`stitchkit/agent-runtime/anthropic`) | — (peer-free) |
260
261
  | AI SDK runtime adapter (`stitchkit/agent-runtime/ai-sdk`) | `ai` |
261
262
  | Postgres agent store (`stitchkit/agent-runtime/postgres`) | — (the application's own Postgres client) |
263
+ | Postgres Prisma transaction serializer (`stitchkit/postgres`) | — (peer-free; wraps the application's own Prisma SQL driver adapter) |
262
264
  | SQLite agent store (`stitchkit/agent-runtime/sqlite/bun` or `/node`) | — (runtime built-in) |
263
265
  | Agent executor — Claude Agent SDK leaf (`stitchkit/agent-executor/claude-sdk`) | `@anthropic-ai/claude-agent-sdk` |
264
266
  | Agent executor — consumer testing kit (`stitchkit/agent-executor/testing`) | — |
package/llms-full.txt CHANGED
@@ -89,6 +89,7 @@ own, recorded as an ADR.
89
89
  | `stitchkit/voice` | browser **and** server | evolving<br>_redefined in 0 of the 43 minors since 0.94.0_ | the mechanics of a live voice reply — `SentenceCutter`, `speakableText`, a `SpeechQueue` that synthesises ahead and stops on interruption, the conversation phases |
90
90
  | `stitchkit/sync` | browser **and** server | evolving<br>_redefined in 1 of the 10 minors since 0.127.0, most recently 0.132.0_ | the client half of an offline-first sync — which outbox rows leave next, pending edits on top of remote rows, deletes that win until acknowledged, the cursor session, the push and page wire with an open outcome vocabulary; no driver, runs in Hermes |
91
91
  | `stitchkit/sync/postgres` | server (Bun or Node) | evolving<br>_redefined in 0 of the 10 minors since 0.127.0_ | the server half — versions that commit in order, a ledger that runs each change once, a feed of what changed, inside the app's own transaction; a memory store and `checkSyncStore` |
92
+ | `stitchkit/postgres` | server (Bun or Node) | evolving<br>_redefined in 0 of the 1 minor since 0.136.7_ | peer-free PostgreSQL helpers — `withSerializedPrismaTransactions` queues interactive transaction statements one at a time on a Prisma SQL driver adapter (`PrismaPg`) while keeping pool queries parallel |
92
93
  | `stitchkit/geo` | server (Bun or Node) | evolving<br>_redefined in 2 of the 43 minors since 0.94.0, most recently 0.127.0_ | managed GeoIP reader generations, last-known-good reload and the optional MaxMind adapter |
93
94
  | `stitchkit/geo/contract` | browser **and** server | evolving<br>_redefined in 0 of the 43 minors since 0.94.0_ | the place snapshot schema, for a shared contract that stores or sends `GeoAttribution`; brings `zod` |
94
95
  | `stitchkit/xlsx` | browser **and** server | evolving<br>_redefined in 0 of the 43 minors since 0.94.0_ | a workbook from rows and typed columns, with no dependency; text never runs as a formula |
@@ -250,6 +251,7 @@ map — feature → packages:
250
251
  | Anthropic native provider (`stitchkit/agent-runtime/anthropic`) | — (peer-free) |
251
252
  | AI SDK runtime adapter (`stitchkit/agent-runtime/ai-sdk`) | `ai` |
252
253
  | Postgres agent store (`stitchkit/agent-runtime/postgres`) | — (the application's own Postgres client) |
254
+ | Postgres Prisma transaction serializer (`stitchkit/postgres`) | — (peer-free; wraps the application's own Prisma SQL driver adapter) |
253
255
  | SQLite agent store (`stitchkit/agent-runtime/sqlite/bun` or `/node`) | — (runtime built-in) |
254
256
  | Agent executor — Claude Agent SDK leaf (`stitchkit/agent-executor/claude-sdk`) | `@anthropic-ai/claude-agent-sdk` |
255
257
  | Agent executor — consumer testing kit (`stitchkit/agent-executor/testing`) | — |
@@ -31849,6 +31851,33 @@ The server half, inside the application's own transaction. See the [sync guide](
31849
31851
 
31850
31852
  ---
31851
31853
 
31854
+ ## `stitchkit/postgres`
31855
+
31856
+ Server-only, peer-free PostgreSQL application helpers. Wraps any Prisma SQL driver adapter factory
31857
+ (such as `new PrismaPg(...)`) without importing `@prisma/adapter-pg` or `pg`, so statements inside
31858
+ each interactive transaction reach its single PostgreSQL connection one at a time while queries
31859
+ outside transactions and separate transactions stay parallel across the pool. See
31860
+ [ADR 0344](../decisions/0344-peer-free-prisma-transaction-serialization.md).
31861
+
31862
+ ```ts
31863
+ import { PrismaPg } from '@prisma/adapter-pg';
31864
+ import { withSerializedPrismaTransactions } from 'stitchkit/postgres';
31865
+
31866
+ const adapter = withSerializedPrismaTransactions(
31867
+ new PrismaPg({ connectionString: env.DATABASE_URL }),
31868
+ );
31869
+ const prisma = new PrismaClient({ adapter });
31870
+ ```
31871
+
31872
+ | Export | Kind | Summary |
31873
+ |--------|------|---------|
31874
+ | `withSerializedPrismaTransactions` | function | wraps a Prisma SQL driver adapter factory (`connect` and optional `connectToShadowDb`) so `queryRaw`, `executeRaw`, `commit`, `rollback` and savepoints inside each interactive transaction execute in strict FIFO order without overlapping on one connection; idempotent and fails fast with `TypeError` on non-factory inputs (such as a raw `pg.Pool`) |
31875
+ | `PrismaDriverAdapterFactory` | _type_ | minimal structural Prisma SQL driver adapter factory (`provider`, `adapterName`, `connect`, optional `connectToShadowDb`) accepted by `withSerializedPrismaTransactions` |
31876
+ | `PrismaDriverAdapter` | _type_ | minimal structural connected Prisma SQL driver adapter (`startTransaction`) |
31877
+ | `PrismaDriverTransaction` | _type_ | minimal structural interactive transaction handle (`queryRaw`, `executeRaw`, `commit`, `rollback` and optional savepoints) |
31878
+
31879
+ ---
31880
+
31852
31881
  ## `stitchkit/geo`
31853
31882
 
31854
31883
  Server-only managed GeoIP generations. Applications own database acquisition,
package/llms.txt CHANGED
@@ -9,7 +9,7 @@ Build with stitchkit: define a contract once, then `implement` it and serve it (
9
9
  Load the slice for each entrypoint your code imports — `import … from 'stitchkit/server'` → `llms/server.txt`; the root `stitchkit` import → `llms/stitchkit.txt`. A slice holds that entrypoint's API reference section and the guide pages whose home it is; every guide lives in exactly one slice, and a slice that needs another's guide names it under "Also read". Each file is at most 50.0 KB; a longer one continues in numbered parts, each naming the next at its top. Moving across versions: load `llms/upgrading.txt` and the range slices it lists between your version and the target. `llms-full.txt` inlines everything; it is far larger than a context window, so do not read it whole.
10
10
 
11
11
  ## Entrypoint slices
12
- - **stitchkit**: [llms/stitchkit.txt](llms/stitchkit.txt) 44.6 KB → [llms/stitchkit.2.txt](llms/stitchkit.2.txt) 47.2 KB → [llms/stitchkit.3.txt](llms/stitchkit.3.txt) 29.4 KB
12
+ - **stitchkit**: [llms/stitchkit.txt](llms/stitchkit.txt) 45.0 KB → [llms/stitchkit.2.txt](llms/stitchkit.2.txt) 47.2 KB → [llms/stitchkit.3.txt](llms/stitchkit.3.txt) 29.4 KB
13
13
  - **stitchkit/live**: [llms/live.txt](llms/live.txt) 22.9 KB
14
14
  - **stitchkit/react**: [llms/react.txt](llms/react.txt) 8.7 KB
15
15
  - **stitchkit/react/keyboard**: [llms/react-keyboard.txt](llms/react-keyboard.txt) 22.7 KB
@@ -76,6 +76,7 @@ Load the slice for each entrypoint your code imports — `import … from 'stitc
76
76
  - **stitchkit/voice**: [llms/voice.txt](llms/voice.txt) 5.2 KB
77
77
  - **stitchkit/sync**: [llms/sync.txt](llms/sync.txt) 25.3 KB
78
78
  - **stitchkit/sync/postgres**: [llms/sync-postgres.txt](llms/sync-postgres.txt) 2.3 KB
79
+ - **stitchkit/postgres**: [llms/postgres.txt](llms/postgres.txt) 2.1 KB
79
80
  - **stitchkit/oauth**: [llms/oauth.txt](llms/oauth.txt) 6.7 KB
80
81
  - **stitchkit/google**: [llms/google.txt](llms/google.txt) 1.4 KB
81
82
  - **stitchkit/declaration**: [llms/declaration.txt](llms/declaration.txt) 15.9 KB
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stitchkit",
3
- "version": "0.136.6",
3
+ "version": "0.136.7",
4
4
  "description": "Contract-first backend framework — one defineContract() into an HTTP API, MCP tools, AI-agent tools and a typed client. Bun and Node.",
5
5
  "keywords": [
6
6
  "bun",
@@ -325,6 +325,10 @@
325
325
  "types": "./dist/entrypoints/sync/postgres.d.ts",
326
326
  "import": "./dist/entrypoints/sync/postgres.js"
327
327
  },
328
+ "./postgres": {
329
+ "types": "./dist/entrypoints/postgres.d.ts",
330
+ "import": "./dist/entrypoints/postgres.js"
331
+ },
328
332
  "./oauth": {
329
333
  "types": "./dist/entrypoints/oauth.d.ts",
330
334
  "import": "./dist/entrypoints/oauth.js"