@llmops/sdk 1.0.0-beta.7 → 1.0.0-beta.9
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/dist/agents.cjs +1 -1
- package/dist/agents.mjs +1 -1
- package/dist/constants-BrB5eRjw.cjs +18 -0
- package/dist/constants-sHtPfi36.mjs +12 -0
- package/dist/express.cjs +1 -1
- package/dist/express.mjs +1 -1
- package/dist/index.cjs +5 -6
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -4
- package/dist/{interface-BrJMazBg.d.mts → interface-BbAwy96d.d.cts} +7 -24
- package/dist/{interface-DMuF7YgM.d.cts → interface-Dz7B6QN1.d.mts} +7 -24
- package/dist/store/d1.d.cts +50 -2
- package/dist/store/d1.d.mts +50 -2
- package/dist/store/pg.cjs +13591 -2
- package/dist/store/pg.d.cts +23 -2
- package/dist/store/pg.d.mts +23 -2
- package/dist/store/pg.mjs +13592 -1
- package/dist/types.d.cts +2 -3
- package/dist/types.d.mts +2 -3
- package/package.json +3 -3
- package/dist/d1-store-D664VLg0.d.cts +0 -52
- package/dist/d1-store-DBf99oU8.d.mts +0 -52
- package/dist/pg-store-sIMdF_Pc.mjs +0 -13598
- package/dist/pg-store-uawkO2hJ.cjs +0 -13607
- /package/dist/{agents-exporter-CEbQkds8.cjs → agents-exporter-BuTq2n2y.cjs} +0 -0
- /package/dist/{agents-exporter-CGxTzDeQ.mjs → agents-exporter-DYmMvLPS.mjs} +0 -0
- /package/dist/{express-D-Nfc61h.cjs → express-B-wbCza5.cjs} +0 -0
- /package/dist/{express-ClNV0OG9.mjs → express-Vt9JurUM.mjs} +0 -0
package/dist/store/pg.d.cts
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as TelemetryStore } from "../interface-BbAwy96d.cjs";
|
|
2
2
|
import { Pool } from "pg";
|
|
3
3
|
|
|
4
|
+
//#region src/telemetry/pg-store.d.ts
|
|
5
|
+
type PgStore = TelemetryStore & {
|
|
6
|
+
_pool: unknown;
|
|
7
|
+
_schema: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Create a PostgreSQL-backed telemetry store.
|
|
11
|
+
*
|
|
12
|
+
* Usage:
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { llmops } from '@llmops/sdk'
|
|
15
|
+
* import { pgStore } from '@llmops/sdk/store/pg'
|
|
16
|
+
*
|
|
17
|
+
* const ops = llmops({
|
|
18
|
+
* telemetry: pgStore(process.env.DATABASE_URL),
|
|
19
|
+
* })
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare function createPgStore(connectionString: string, options?: {
|
|
23
|
+
schema?: string;
|
|
24
|
+
}): PgStore;
|
|
25
|
+
//#endregion
|
|
4
26
|
//#region src/store/pg/migrate.d.ts
|
|
5
|
-
|
|
6
27
|
/**
|
|
7
28
|
* Run pending migrations against the database.
|
|
8
29
|
*
|
package/dist/store/pg.d.mts
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as TelemetryStore } from "../interface-Dz7B6QN1.mjs";
|
|
2
2
|
import { Pool } from "pg";
|
|
3
3
|
|
|
4
|
+
//#region src/telemetry/pg-store.d.ts
|
|
5
|
+
type PgStore = TelemetryStore & {
|
|
6
|
+
_pool: unknown;
|
|
7
|
+
_schema: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Create a PostgreSQL-backed telemetry store.
|
|
11
|
+
*
|
|
12
|
+
* Usage:
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { llmops } from '@llmops/sdk'
|
|
15
|
+
* import { pgStore } from '@llmops/sdk/store/pg'
|
|
16
|
+
*
|
|
17
|
+
* const ops = llmops({
|
|
18
|
+
* telemetry: pgStore(process.env.DATABASE_URL),
|
|
19
|
+
* })
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare function createPgStore(connectionString: string, options?: {
|
|
23
|
+
schema?: string;
|
|
24
|
+
}): PgStore;
|
|
25
|
+
//#endregion
|
|
4
26
|
//#region src/store/pg/migrate.d.ts
|
|
5
|
-
|
|
6
27
|
/**
|
|
7
28
|
* Run pending migrations against the database.
|
|
8
29
|
*
|