@opengeni/db 6.0.3 → 6.1.0-canary.36239117573001
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/browser-sessions.d.ts +16 -1
- package/dist/canonical-human-identities.js +3 -3
- package/dist/capability-reconciliation.js +2 -2
- package/dist/{chunk-RVEOGRMF.js → chunk-2ECQTYFE.js} +2 -2
- package/dist/{chunk-IIPWNNVR.js → chunk-6PRATKUO.js} +4 -1
- package/dist/chunk-6PRATKUO.js.map +1 -0
- package/dist/{chunk-ZM5BA3TD.js → chunk-6TNYHO5J.js} +3 -3
- package/dist/{chunk-5UOWNKPP.js → chunk-EVLC5YYT.js} +2 -2
- package/dist/{chunk-LD52IFS3.js → chunk-GOS25XY6.js} +2 -2
- package/dist/{chunk-KZXWUXWV.js → chunk-IXYVHRZK.js} +4 -4
- package/dist/{chunk-BG46J5HF.js → chunk-JEKW3C74.js} +2 -2
- package/dist/{chunk-IB3SW3JW.js → chunk-OFYF7VKJ.js} +10 -7
- package/dist/chunk-OFYF7VKJ.js.map +1 -0
- package/dist/chunk-OYD7FLKH.js +796 -0
- package/dist/chunk-OYD7FLKH.js.map +1 -0
- package/dist/{chunk-M5Z6II2P.js → chunk-PIVVJPQ3.js} +2 -2
- package/dist/{chunk-VE2XK2KD.js → chunk-PZ3C3E5Y.js} +5 -5
- package/dist/{chunk-WT7HG43Y.js → chunk-RUEJOEIC.js} +3 -3
- package/dist/{chunk-4ZQFT5II.js → chunk-VNNQAS7Y.js} +2 -2
- package/dist/{chunk-UXFBXCHM.js → chunk-YDBISTFL.js} +2 -2
- package/dist/code-search-policy.d.ts +3 -0
- package/dist/connect-attempts.js +3 -3
- package/dist/connection-token-resolver.d.ts +4 -1
- package/dist/editable-artifact-durable-export.js +2 -2
- package/dist/editable-artifacts.js +3 -3
- package/dist/index.d.ts +12 -1
- package/dist/index.js +1463 -2131
- package/dist/index.js.map +1 -1
- package/dist/managed-auth-session-sets.js +3 -3
- package/dist/mcp-operations.js +2 -2
- package/dist/new-session-drafts.d.ts +8 -0
- package/dist/organization-integration-policy.js +3 -3
- package/dist/retained-provider-commands.js +6 -6
- package/dist/schema.d.ts +27 -10
- package/dist/schema.js +1 -1
- package/dist/session-background-commands.js +4 -4
- package/dist/session-command-output.js +5 -5
- package/dist/session-event-slices.js +3 -3
- package/dist/session-mcp-credential-rotation.d.ts +15 -4
- package/dist/session-mcp-credential-rotation.js +38 -7
- package/dist/session-mcp-credential-rotation.js.map +1 -1
- package/dist/session-tenancy.js +3 -3
- package/dist/video-generation.js +3 -3
- package/dist/workspace-tool-defaults.js +4 -4
- package/dist/xai-subscription.d.ts +9 -0
- package/drizzle/0515_autonomous_learning_defaults.sql +35 -0
- package/drizzle/0516_member_connection_read.sql +105 -0
- package/drizzle/0517_member_connection_read_backfill_index.sql +21 -0
- package/drizzle/0518_member_connection_read_backfill.sql +37 -0
- package/drizzle/0519_session_recovery_backlog_excludes_paused.sql +167 -0
- package/drizzle/0520_session_code_search_frozen.sql +6 -0
- package/package.json +6 -6
- package/src/browser-sessions.ts +94 -9
- package/src/code-search-policy.ts +25 -0
- package/src/connection-token-resolver.ts +16 -1
- package/src/index.ts +64 -10
- package/src/new-session-drafts.ts +25 -1
- package/src/schema.ts +3 -0
- package/src/session-control.ts +4 -2
- package/src/session-mcp-credential-rotation.ts +57 -9
- package/src/xai-subscription.ts +14 -1
- package/dist/chunk-IB3SW3JW.js.map +0 -1
- package/dist/chunk-IIPWNNVR.js.map +0 -1
- /package/dist/{chunk-RVEOGRMF.js.map → chunk-2ECQTYFE.js.map} +0 -0
- /package/dist/{chunk-ZM5BA3TD.js.map → chunk-6TNYHO5J.js.map} +0 -0
- /package/dist/{chunk-5UOWNKPP.js.map → chunk-EVLC5YYT.js.map} +0 -0
- /package/dist/{chunk-LD52IFS3.js.map → chunk-GOS25XY6.js.map} +0 -0
- /package/dist/{chunk-KZXWUXWV.js.map → chunk-IXYVHRZK.js.map} +0 -0
- /package/dist/{chunk-BG46J5HF.js.map → chunk-JEKW3C74.js.map} +0 -0
- /package/dist/{chunk-M5Z6II2P.js.map → chunk-PIVVJPQ3.js.map} +0 -0
- /package/dist/{chunk-VE2XK2KD.js.map → chunk-PZ3C3E5Y.js.map} +0 -0
- /package/dist/{chunk-WT7HG43Y.js.map → chunk-RUEJOEIC.js.map} +0 -0
- /package/dist/{chunk-4ZQFT5II.js.map → chunk-VNNQAS7Y.js.map} +0 -0
- /package/dist/{chunk-UXFBXCHM.js.map → chunk-YDBISTFL.js.map} +0 -0
|
@@ -110,8 +110,11 @@ export type PrepareBrowserSessionEndInput = {
|
|
|
110
110
|
browserSessionId: string;
|
|
111
111
|
operationId: string;
|
|
112
112
|
actorSubjectId: string;
|
|
113
|
+
expectedLifecycle?: BrowserSessionRow["lifecycle"];
|
|
114
|
+
expectedControllerGeneration?: string | null;
|
|
115
|
+
expectedFailureCode?: string | null;
|
|
113
116
|
};
|
|
114
|
-
export type PrepareBrowserSessionLifecycleInput = PrepareBrowserSessionEndInput
|
|
117
|
+
export type PrepareBrowserSessionLifecycleInput = Omit<PrepareBrowserSessionEndInput, "expectedLifecycle" | "expectedControllerGeneration" | "expectedFailureCode">;
|
|
115
118
|
export type BrowserPrivateCheckpointAuthority = {
|
|
116
119
|
artifactId: string;
|
|
117
120
|
sourceBrowserSessionId: string;
|
|
@@ -324,6 +327,17 @@ export declare function failPreparedBrowserSessionSuspend(db: Database, input: {
|
|
|
324
327
|
browserSessionId: string;
|
|
325
328
|
error: InteractionErrorValue;
|
|
326
329
|
}): Promise<BrowserSessionMutationResponseValue | null>;
|
|
330
|
+
/** Restore the previous lifecycle when an end fails before controller dispatch. */
|
|
331
|
+
export declare function failPreparedBrowserSessionEnd(db: Database, input: {
|
|
332
|
+
accountId: string;
|
|
333
|
+
workspaceId: string;
|
|
334
|
+
operationId: string;
|
|
335
|
+
browserSessionId: string;
|
|
336
|
+
restoreLifecycle: BrowserSessionRow["lifecycle"];
|
|
337
|
+
restoreFailureCode: string | null;
|
|
338
|
+
expectedControllerGeneration: string | null;
|
|
339
|
+
error: InteractionErrorValue;
|
|
340
|
+
}): Promise<BrowserSessionMutationResponseValue | null>;
|
|
327
341
|
export declare function prepareBrowserSessionResume(db: Database, input: PrepareBrowserSessionLifecycleInput): Promise<BrowserSessionMutationResponseValue>;
|
|
328
342
|
export declare function commitBrowserSessionSuspension(db: Database, input: {
|
|
329
343
|
accountId: string;
|
|
@@ -346,6 +360,7 @@ export declare function failBrowserSessionSuspension(db: Database, input: {
|
|
|
346
360
|
browserSessionId: string;
|
|
347
361
|
controllerGeneration: string;
|
|
348
362
|
state?: "failed" | "outcome_unknown";
|
|
363
|
+
missingControllerSession?: boolean;
|
|
349
364
|
error: InteractionErrorValue;
|
|
350
365
|
}): Promise<BrowserSessionMutationResponseValue>;
|
|
351
366
|
export declare function failBrowserSessionResume(db: Database, input: {
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
getCanonicalHumanIdentityProjection,
|
|
12
12
|
synchronizeCanonicalHumanLoginBindings,
|
|
13
13
|
validateCanonicalHumanSession
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-2ECQTYFE.js";
|
|
15
|
+
import "./chunk-JEKW3C74.js";
|
|
16
|
+
import "./chunk-6PRATKUO.js";
|
|
17
17
|
import "./chunk-S2TZ3F4L.js";
|
|
18
18
|
import "./chunk-PZ5AY32C.js";
|
|
19
19
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nestedPostgresSqlState,
|
|
3
3
|
rawRows
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JEKW3C74.js";
|
|
5
5
|
|
|
6
6
|
// src/canonical-human-identities.ts
|
|
7
7
|
import { createHash } from "crypto";
|
|
@@ -318,4 +318,4 @@ export {
|
|
|
318
318
|
getCanonicalHumanIdentityProjection,
|
|
319
319
|
applyCanonicalHumanIdentityOperation
|
|
320
320
|
};
|
|
321
|
-
//# sourceMappingURL=chunk-
|
|
321
|
+
//# sourceMappingURL=chunk-2ECQTYFE.js.map
|
|
@@ -10463,6 +10463,9 @@ var sessions = pgTable21(
|
|
|
10463
10463
|
// or portable (plaintext compaction + free provider switching). Existing
|
|
10464
10464
|
// rows backfill to portable. CHECK lives in the migration.
|
|
10465
10465
|
codexCompactionMode: text21("codex_compaction_mode").notNull().default("portable"),
|
|
10466
|
+
// Frozen at create (migration 0520): whether the optional Jev-backed
|
|
10467
|
+
// code_search tool is offered. NULL, as on every older row, means off.
|
|
10468
|
+
codeSearchEnabled: boolean12("code_search_enabled"),
|
|
10466
10469
|
createdAt: timestamp21("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
10467
10470
|
updatedAt: timestamp21("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
10468
10471
|
// Assigned once by the explicit transaction commit gate whenever canonical
|
|
@@ -18821,4 +18824,4 @@ export {
|
|
|
18821
18824
|
feedbackSubmissions,
|
|
18822
18825
|
schema_exports
|
|
18823
18826
|
};
|
|
18824
|
-
//# sourceMappingURL=chunk-
|
|
18827
|
+
//# sourceMappingURL=chunk-6PRATKUO.js.map
|