@opengeni/db 0.10.7 → 0.12.1
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/{chunk-P6PKXY5W.js → chunk-VUKRIBO5.js} +485 -12
- package/dist/chunk-VUKRIBO5.js.map +1 -0
- package/dist/{chunk-KW526IJA.js → chunk-Y5WZZVQK.js} +80 -4
- package/dist/chunk-Y5WZZVQK.js.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +5114 -2085
- package/dist/index.js.map +1 -1
- package/dist/migrate.d.ts +6 -3
- package/dist/migrate.js +1 -1
- package/dist/provision-roles.d.ts +720 -63
- package/dist/{schema-CqkzrBRS.d.ts → schema-BejThLcd.d.ts} +2965 -1194
- package/dist/schema.d.ts +1 -1
- package/dist/schema.js +17 -1
- package/drizzle/0109_nested_agent_depth_expand.sql +42 -0
- package/drizzle/0110_nested_agent_depth_boundary.sql +480 -0
- package/drizzle/0111_nested_agent_depth_backfill.sql +49 -0
- package/drizzle/0112_nested_agent_depth_contract.sql +38 -0
- package/drizzle/0113_nested_agent_depth_validate.sql +13 -0
- package/drizzle/0114_nested_agent_depth_contract.sql +49 -0
- package/drizzle/0115_nested_agent_depth_validate.sql +11 -0
- package/drizzle/0116_nested_agent_depth_index.sql +4 -0
- package/drizzle/0117_sandbox_recovery_generations.sql +699 -0
- package/drizzle/0118_new_session_drafts.sql +59 -0
- package/drizzle/0119_pending_tool_output_policy.sql +5 -0
- package/drizzle/0120_durable_goal_wake.sql +360 -0
- package/drizzle/0121_goal_update_idempotency.sql +11 -0
- package/package.json +3 -3
- package/src/index.ts +5961 -1240
- package/src/migrate.ts +131 -2
- package/src/new-session-drafts.ts +144 -0
- package/src/schema.ts +519 -15
- package/src/session-control.ts +42 -18
- package/src/session-tool-call-settlement.ts +6 -1
- package/dist/chunk-KW526IJA.js.map +0 -1
- 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 };
|