@opengeni/db 0.10.7 → 0.12.0

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 (35) hide show
  1. package/dist/{chunk-P6PKXY5W.js → chunk-VUKRIBO5.js} +485 -12
  2. package/dist/chunk-VUKRIBO5.js.map +1 -0
  3. package/dist/{chunk-KW526IJA.js → chunk-Y5WZZVQK.js} +80 -4
  4. package/dist/chunk-Y5WZZVQK.js.map +1 -0
  5. package/dist/index.d.ts +3 -2
  6. package/dist/index.js +5114 -2085
  7. package/dist/index.js.map +1 -1
  8. package/dist/migrate.d.ts +6 -3
  9. package/dist/migrate.js +1 -1
  10. package/dist/provision-roles.d.ts +720 -63
  11. package/dist/{schema-CqkzrBRS.d.ts → schema-CnpD6BcX.d.ts} +4684 -2913
  12. package/dist/schema.d.ts +1 -1
  13. package/dist/schema.js +17 -1
  14. package/drizzle/0109_nested_agent_depth_expand.sql +42 -0
  15. package/drizzle/0110_nested_agent_depth_boundary.sql +480 -0
  16. package/drizzle/0111_nested_agent_depth_backfill.sql +49 -0
  17. package/drizzle/0112_nested_agent_depth_contract.sql +38 -0
  18. package/drizzle/0113_nested_agent_depth_validate.sql +13 -0
  19. package/drizzle/0114_nested_agent_depth_contract.sql +49 -0
  20. package/drizzle/0115_nested_agent_depth_validate.sql +11 -0
  21. package/drizzle/0116_nested_agent_depth_index.sql +4 -0
  22. package/drizzle/0117_sandbox_recovery_generations.sql +699 -0
  23. package/drizzle/0118_new_session_drafts.sql +59 -0
  24. package/drizzle/0119_pending_tool_output_policy.sql +5 -0
  25. package/drizzle/0120_durable_goal_wake.sql +360 -0
  26. package/drizzle/0121_goal_update_idempotency.sql +11 -0
  27. package/package.json +3 -3
  28. package/src/index.ts +5961 -1240
  29. package/src/migrate.ts +131 -2
  30. package/src/new-session-drafts.ts +144 -0
  31. package/src/schema.ts +519 -15
  32. package/src/session-control.ts +42 -18
  33. package/src/session-tool-call-settlement.ts +6 -1
  34. package/dist/chunk-KW526IJA.js.map +0 -1
  35. package/dist/chunk-P6PKXY5W.js.map +0 -1
package/dist/migrate.d.ts CHANGED
@@ -4,6 +4,9 @@ interface ConcurrentIndexMigration {
4
4
  skipWhenValid: boolean;
5
5
  statement: string;
6
6
  }
7
+ type MigrationRuntimeOptions = {
8
+ maxNestedAgentDepth?: number;
9
+ };
7
10
  /**
8
11
  * Most migration files intentionally execute as one implicit transaction.
9
12
  * PostgreSQL forbids CREATE INDEX CONCURRENTLY there, so a migration may opt
@@ -51,7 +54,7 @@ declare function parseConcurrentIndexMigration(file: string, sqlText: string): C
51
54
  * `OPENGENI_DB_SCHEMA` defaults UNSET → `public` → standalone, so the default
52
55
  * binding never regresses.
53
56
  */
54
- declare function migrate(databaseUrl?: string, schema?: string | undefined): Promise<void>;
57
+ declare function migrate(databaseUrl?: string, schema?: string | undefined, runtimeOptions?: MigrationRuntimeOptions): Promise<void>;
55
58
  /**
56
59
  * SDK entry point (Step I): run the migration chain over a host-supplied admin
57
60
  * connection string against an explicit target schema. This is the embedded
@@ -60,6 +63,6 @@ declare function migrate(databaseUrl?: string, schema?: string | undefined): Pro
60
63
  * `targetSchema` undefined → `public` → standalone behavior. Thin wrapper over
61
64
  * `migrate` so there is one migration engine.
62
65
  */
63
- declare function runMigrations(adminConnection: string, targetSchema?: string): Promise<void>;
66
+ declare function runMigrations(adminConnection: string, targetSchema?: string, runtimeOptions?: MigrationRuntimeOptions): Promise<void>;
64
67
 
65
- export { type ConcurrentIndexMigration, migrate, parseConcurrentIndexMigration, runMigrations };
68
+ export { type ConcurrentIndexMigration, type MigrationRuntimeOptions, migrate, parseConcurrentIndexMigration, runMigrations };
package/dist/migrate.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  migrate,
3
3
  parseConcurrentIndexMigration,
4
4
  runMigrations
5
- } from "./chunk-KW526IJA.js";
5
+ } from "./chunk-Y5WZZVQK.js";
6
6
  import "./chunk-PZ5AY32C.js";
7
7
  export {
8
8
  migrate,