@llmops/sdk 1.0.0-beta.2 → 1.0.0-beta.23
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.d.cts +1 -1
- package/dist/agents.d.mts +1 -1
- package/dist/agents.mjs +1 -1
- package/dist/chunk-CxwUPGYo.mjs +21 -0
- package/dist/constants--ywcWP7q.cjs +18 -0
- package/dist/constants-BvnYU_pl.mjs +12 -0
- package/dist/eval.cjs +464 -0
- package/dist/eval.d.cts +240 -0
- package/dist/eval.d.mts +240 -0
- package/dist/eval.mjs +461 -0
- package/dist/express.cjs +29 -2
- package/dist/express.d.cts +7 -3
- package/dist/express.d.mts +7 -3
- package/dist/express.mjs +28 -1
- package/dist/hono.d.cts +2 -2
- package/dist/hono.d.mts +2 -2
- package/dist/{index-05byZKeu.d.mts → index-BZLzywwb.d.mts} +1 -1
- package/dist/{index-Beb26ZNG.d.cts → index-lgspeSNr.d.cts} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/interface-BbAwy96d.d.cts +223 -0
- package/dist/interface-Dz7B6QN1.d.mts +223 -0
- package/dist/nextjs.d.cts +2 -2
- package/dist/nextjs.d.mts +2 -2
- package/dist/store/d1.cjs +512 -0
- package/dist/store/d1.d.cts +60 -0
- package/dist/store/d1.d.mts +60 -0
- package/dist/store/d1.mjs +511 -0
- package/dist/store/pg.cjs +13634 -6
- package/dist/store/pg.d.cts +38 -2
- package/dist/store/pg.d.mts +38 -2
- package/dist/store/pg.mjs +13618 -2
- package/dist/store/sqlite.cjs +541 -0
- package/dist/store/sqlite.d.cts +50 -0
- package/dist/store/sqlite.d.mts +50 -0
- package/dist/store/sqlite.mjs +541 -0
- package/dist/types.d.cts +2 -2
- package/dist/types.d.mts +2 -2
- package/package.json +48 -3
- package/dist/express-B-wbCza5.cjs +0 -35
- package/dist/express-DMtc0d_Y.mjs +0 -30
- package/dist/index-DnWGper4.d.cts +0 -7
- package/dist/index-Dvz-L2Hf.d.mts +0 -7
- /package/dist/{agents-exporter-vcpgCF69.mjs → agents-exporter-CGxTzDeQ.mjs} +0 -0
- /package/dist/{agents-exporter-BZHCcFSd.d.mts → agents-exporter-CehKIArI.d.mts} +0 -0
- /package/dist/{agents-exporter-BuTq2n2y.cjs → agents-exporter-DizRE7CQ.cjs} +0 -0
- /package/dist/{agents-exporter-uzN3bkth.d.cts → agents-exporter-DkqkCcIx.d.cts} +0 -0
package/dist/store/pg.d.cts
CHANGED
|
@@ -1,2 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as TelemetryStore } from "../interface-BbAwy96d.cjs";
|
|
2
|
+
import { Pool } from "pg";
|
|
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
|
|
26
|
+
//#region src/store/pg/migrate.d.ts
|
|
27
|
+
/**
|
|
28
|
+
* Run pending migrations against the database.
|
|
29
|
+
*
|
|
30
|
+
* - Creates the _llmops_migrations tracking table if it doesn't exist
|
|
31
|
+
* - Skips already-applied migrations
|
|
32
|
+
* - Applies new migrations in order
|
|
33
|
+
*/
|
|
34
|
+
declare function runMigrations(pool: Pool, schema: string): Promise<{
|
|
35
|
+
applied: string[];
|
|
36
|
+
}>;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { type PgStore, createPgStore as pgStore, runMigrations };
|
package/dist/store/pg.d.mts
CHANGED
|
@@ -1,2 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as TelemetryStore } from "../interface-Dz7B6QN1.mjs";
|
|
2
|
+
import { Pool } from "pg";
|
|
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
|
|
26
|
+
//#region src/store/pg/migrate.d.ts
|
|
27
|
+
/**
|
|
28
|
+
* Run pending migrations against the database.
|
|
29
|
+
*
|
|
30
|
+
* - Creates the _llmops_migrations tracking table if it doesn't exist
|
|
31
|
+
* - Skips already-applied migrations
|
|
32
|
+
* - Applies new migrations in order
|
|
33
|
+
*/
|
|
34
|
+
declare function runMigrations(pool: Pool, schema: string): Promise<{
|
|
35
|
+
applied: string[];
|
|
36
|
+
}>;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { type PgStore, createPgStore as pgStore, runMigrations };
|