@llmops/sdk 1.0.0-beta.2 → 1.0.0-beta.22

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.
Files changed (50) hide show
  1. package/dist/agents.cjs +1 -1
  2. package/dist/agents.d.cts +1 -1
  3. package/dist/agents.d.mts +1 -1
  4. package/dist/agents.mjs +1 -1
  5. package/dist/chunk-CxwUPGYo.mjs +21 -0
  6. package/dist/constants--ywcWP7q.cjs +18 -0
  7. package/dist/constants-BvnYU_pl.mjs +12 -0
  8. package/dist/eval.cjs +367 -0
  9. package/dist/eval.d.cts +200 -0
  10. package/dist/eval.d.mts +200 -0
  11. package/dist/eval.mjs +364 -0
  12. package/dist/express.cjs +29 -2
  13. package/dist/express.d.cts +7 -3
  14. package/dist/express.d.mts +7 -3
  15. package/dist/express.mjs +28 -1
  16. package/dist/hono.d.cts +2 -2
  17. package/dist/hono.d.mts +2 -2
  18. package/dist/{index-05byZKeu.d.mts → index-BZLzywwb.d.mts} +1 -1
  19. package/dist/{index-Beb26ZNG.d.cts → index-lgspeSNr.d.cts} +1 -1
  20. package/dist/index.cjs +3 -3
  21. package/dist/index.d.cts +4 -4
  22. package/dist/index.d.mts +4 -4
  23. package/dist/index.mjs +3 -3
  24. package/dist/interface-BbAwy96d.d.cts +223 -0
  25. package/dist/interface-Dz7B6QN1.d.mts +223 -0
  26. package/dist/nextjs.d.cts +2 -2
  27. package/dist/nextjs.d.mts +2 -2
  28. package/dist/store/d1.cjs +512 -0
  29. package/dist/store/d1.d.cts +60 -0
  30. package/dist/store/d1.d.mts +60 -0
  31. package/dist/store/d1.mjs +511 -0
  32. package/dist/store/pg.cjs +13634 -6
  33. package/dist/store/pg.d.cts +38 -2
  34. package/dist/store/pg.d.mts +38 -2
  35. package/dist/store/pg.mjs +13618 -2
  36. package/dist/store/sqlite.cjs +541 -0
  37. package/dist/store/sqlite.d.cts +50 -0
  38. package/dist/store/sqlite.d.mts +50 -0
  39. package/dist/store/sqlite.mjs +541 -0
  40. package/dist/types.d.cts +2 -2
  41. package/dist/types.d.mts +2 -2
  42. package/package.json +48 -3
  43. package/dist/express-B-wbCza5.cjs +0 -35
  44. package/dist/express-DMtc0d_Y.mjs +0 -30
  45. package/dist/index-DnWGper4.d.cts +0 -7
  46. package/dist/index-Dvz-L2Hf.d.mts +0 -7
  47. /package/dist/{agents-exporter-vcpgCF69.mjs → agents-exporter-CGxTzDeQ.mjs} +0 -0
  48. /package/dist/{agents-exporter-BZHCcFSd.d.mts → agents-exporter-CehKIArI.d.mts} +0 -0
  49. /package/dist/{agents-exporter-BuTq2n2y.cjs → agents-exporter-DizRE7CQ.cjs} +0 -0
  50. /package/dist/{agents-exporter-uzN3bkth.d.cts → agents-exporter-DkqkCcIx.d.cts} +0 -0
@@ -1,2 +1,38 @@
1
- import { PgStore, createPgStore as pgStore } from "@llmops/core";
2
- export { type PgStore, pgStore };
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 };
@@ -1,2 +1,38 @@
1
- import { PgStore, createPgStore as pgStore } from "@llmops/core";
2
- export { type PgStore, pgStore };
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 };