@opengeni/db 6.0.1 → 6.0.3-canary.36199476632001
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 +42 -1
- package/dist/canonical-human-identities.js +3 -3
- package/dist/capability-reconciliation.js +2 -2
- package/dist/{chunk-PGIFHEBA.js → chunk-2ECQTYFE.js} +2 -2
- package/dist/{chunk-GSB4ISHE.js → chunk-6PRATKUO.js} +7 -1
- package/dist/chunk-6PRATKUO.js.map +1 -0
- package/dist/{chunk-I7HQL6FK.js → chunk-6TNYHO5J.js} +3 -3
- package/dist/{chunk-CSVHCF3R.js → chunk-BUU6E72R.js} +11 -4
- package/dist/{chunk-CSVHCF3R.js.map → chunk-BUU6E72R.js.map} +1 -1
- package/dist/{chunk-6ORJPCYW.js → chunk-EVLC5YYT.js} +2 -2
- package/dist/{chunk-LO6BVXXH.js → chunk-GOS25XY6.js} +2 -2
- package/dist/{chunk-4CCFFLDZ.js → chunk-JEKW3C74.js} +13 -2
- package/dist/chunk-JEKW3C74.js.map +1 -0
- package/dist/{chunk-MAMBI2HR.js → chunk-JPYN5XKV.js} +39 -3
- package/dist/chunk-JPYN5XKV.js.map +1 -0
- package/dist/{chunk-RXH5CFG3.js → chunk-NO53BF7E.js} +12 -8
- package/dist/{chunk-RXH5CFG3.js.map → chunk-NO53BF7E.js.map} +1 -1
- package/dist/chunk-OYD7FLKH.js +796 -0
- package/dist/chunk-OYD7FLKH.js.map +1 -0
- package/dist/{chunk-JILAWE26.js → chunk-PIVVJPQ3.js} +2 -2
- package/dist/{chunk-FULLE5CF.js → chunk-RUEJOEIC.js} +3 -3
- package/dist/{chunk-H7BC444C.js → chunk-SRAMNVHT.js} +17 -1
- package/dist/chunk-SRAMNVHT.js.map +1 -0
- package/dist/{chunk-4RDUZ5UV.js → chunk-VNNQAS7Y.js} +2 -2
- package/dist/{chunk-XK6HXON2.js → chunk-YDBISTFL.js} +2 -2
- package/dist/{chunk-LSLNMENV.js → chunk-YKSJABR2.js} +4 -4
- 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/database.d.ts +8 -0
- package/dist/editable-artifact-durable-export.js +2 -2
- package/dist/editable-artifacts.js +3 -3
- package/dist/index.d.ts +81 -21
- package/dist/index.js +2052 -2292
- package/dist/index.js.map +1 -1
- package/dist/knowledge-entries.d.ts +2 -0
- package/dist/knowledge-indexing.d.ts +17 -0
- package/dist/managed-auth-session-sets.js +3 -3
- package/dist/managed-user-setup.d.ts +1 -0
- package/dist/mcp-operations.js +2 -2
- package/dist/migrate.d.ts +10 -1
- package/dist/migrate.js +3 -1
- package/dist/new-session-drafts.d.ts +8 -0
- package/dist/organization-integration-policy.js +3 -3
- package/dist/organization-membership-lifecycle.d.ts +1 -0
- package/dist/provision-roles.js +1 -1
- package/dist/retained-provider-commands.d.ts +4 -2
- package/dist/retained-provider-commands.js +6 -6
- package/dist/runtime-posture.d.ts +1 -1
- package/dist/schema.d.ts +44 -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/0508_deadline_command_workspace_capture.sql +75 -0
- package/drizzle/0509_verified_signup_trial_credits.sql +76 -0
- package/drizzle/0510_knowledge_index_funding_wait.sql +174 -0
- package/drizzle/0511_knowledge_visible_index_status.sql +56 -0
- package/drizzle/0512_insights_fact_reads_hash_join.sql +31 -0
- package/drizzle/0513_message_fork_prefix_compaction.sql +85 -0
- package/drizzle/0514_failed_session_variable_set_attach.sql +25 -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 +161 -6
- package/src/code-search-policy.ts +25 -0
- package/src/connection-token-resolver.ts +16 -1
- package/src/database.ts +18 -0
- package/src/index.ts +759 -257
- package/src/insights.ts +44 -36
- package/src/knowledge-entries.ts +43 -2
- package/src/knowledge-indexing.ts +79 -1
- package/src/managed-user-setup.ts +18 -1
- package/src/migrate.ts +58 -1
- package/src/new-session-drafts.ts +25 -1
- package/src/organization-membership-lifecycle.ts +11 -0
- package/src/provision-roles.ts +12 -0
- package/src/retained-provider-commands.ts +16 -6
- package/src/runtime-posture.ts +4 -0
- package/src/schema.ts +6 -0
- package/src/session-mcp-credential-rotation.ts +57 -9
- package/src/xai-subscription.ts +14 -1
- package/dist/chunk-4CCFFLDZ.js.map +0 -1
- package/dist/chunk-GSB4ISHE.js.map +0 -1
- package/dist/chunk-H7BC444C.js.map +0 -1
- package/dist/chunk-MAMBI2HR.js.map +0 -1
- /package/dist/{chunk-PGIFHEBA.js.map → chunk-2ECQTYFE.js.map} +0 -0
- /package/dist/{chunk-I7HQL6FK.js.map → chunk-6TNYHO5J.js.map} +0 -0
- /package/dist/{chunk-6ORJPCYW.js.map → chunk-EVLC5YYT.js.map} +0 -0
- /package/dist/{chunk-LO6BVXXH.js.map → chunk-GOS25XY6.js.map} +0 -0
- /package/dist/{chunk-JILAWE26.js.map → chunk-PIVVJPQ3.js.map} +0 -0
- /package/dist/{chunk-FULLE5CF.js.map → chunk-RUEJOEIC.js.map} +0 -0
- /package/dist/{chunk-4RDUZ5UV.js.map → chunk-VNNQAS7Y.js.map} +0 -0
- /package/dist/{chunk-XK6HXON2.js.map → chunk-YDBISTFL.js.map} +0 -0
- /package/dist/{chunk-LSLNMENV.js.map → chunk-YKSJABR2.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;
|
|
@@ -152,6 +155,24 @@ export type BrowserSessionNetworkRouteAuthority = {
|
|
|
152
155
|
configuration: NetworkRouteConfigurationValue;
|
|
153
156
|
consistency: NetworkRouteConsistencyValue;
|
|
154
157
|
};
|
|
158
|
+
/** Legacy resources predate permission control; absence must never advertise support. */
|
|
159
|
+
export declare function readStoredBrowserCapabilities(value: Record<string, unknown>): {
|
|
160
|
+
semanticObservation: boolean;
|
|
161
|
+
screenshots: boolean;
|
|
162
|
+
liveFrames: boolean;
|
|
163
|
+
humanInput: boolean;
|
|
164
|
+
tabs: boolean;
|
|
165
|
+
downloads: boolean;
|
|
166
|
+
uploads: boolean;
|
|
167
|
+
clipboard: boolean;
|
|
168
|
+
permissions: boolean;
|
|
169
|
+
diagnostics: boolean;
|
|
170
|
+
rawCdp: boolean;
|
|
171
|
+
linkedComputer: boolean;
|
|
172
|
+
privateCheckpoint: boolean;
|
|
173
|
+
identityPublication: boolean;
|
|
174
|
+
parallelTargets: boolean;
|
|
175
|
+
};
|
|
155
176
|
export declare function browserSessionCreateRequestDigest(input: PrepareBrowserSessionCreateInput): string;
|
|
156
177
|
export declare function listBrowserSessions(db: Database, input: {
|
|
157
178
|
accountId: string;
|
|
@@ -298,6 +319,25 @@ export declare function failBrowserSessionOperation(db: Database, input: {
|
|
|
298
319
|
error: InteractionErrorValue;
|
|
299
320
|
}): Promise<BrowserSessionMutationResponseValue>;
|
|
300
321
|
export declare function prepareBrowserSessionSuspend(db: Database, input: PrepareBrowserSessionLifecycleInput): Promise<BrowserSessionMutationResponseValue>;
|
|
322
|
+
/** Restore the active controller when placement fails before a suspend was dispatched. */
|
|
323
|
+
export declare function failPreparedBrowserSessionSuspend(db: Database, input: {
|
|
324
|
+
accountId: string;
|
|
325
|
+
workspaceId: string;
|
|
326
|
+
operationId: string;
|
|
327
|
+
browserSessionId: string;
|
|
328
|
+
error: InteractionErrorValue;
|
|
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>;
|
|
301
341
|
export declare function prepareBrowserSessionResume(db: Database, input: PrepareBrowserSessionLifecycleInput): Promise<BrowserSessionMutationResponseValue>;
|
|
302
342
|
export declare function commitBrowserSessionSuspension(db: Database, input: {
|
|
303
343
|
accountId: string;
|
|
@@ -320,6 +360,7 @@ export declare function failBrowserSessionSuspension(db: Database, input: {
|
|
|
320
360
|
browserSessionId: string;
|
|
321
361
|
controllerGeneration: string;
|
|
322
362
|
state?: "failed" | "outcome_unknown";
|
|
363
|
+
missingControllerSession?: boolean;
|
|
323
364
|
error: InteractionErrorValue;
|
|
324
365
|
}): Promise<BrowserSessionMutationResponseValue>;
|
|
325
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
|
|
@@ -15115,6 +15118,9 @@ var sandboxRetainedProcesses = pgTable21(
|
|
|
15115
15118
|
supervisionOutputCaptured: boolean12("supervision_output_captured").notNull().default(false),
|
|
15116
15119
|
cancellationRequestedAt: timestamp21("cancellation_requested_at", { withTimezone: true }),
|
|
15117
15120
|
cancellationReason: text21("cancellation_reason"),
|
|
15121
|
+
deadlineCancellationRequestedAt: timestamp21("deadline_cancellation_requested_at", {
|
|
15122
|
+
withTimezone: true
|
|
15123
|
+
}),
|
|
15118
15124
|
providerCommandInputIndex: bigint14("provider_command_input_index", { mode: "number" }).notNull().default(0),
|
|
15119
15125
|
// Authority frozen when the process was retained (migration 0277). A
|
|
15120
15126
|
// `legacy_unattributed` process keeps running; only its next workspace
|
|
@@ -18818,4 +18824,4 @@ export {
|
|
|
18818
18824
|
feedbackSubmissions,
|
|
18819
18825
|
schema_exports
|
|
18820
18826
|
};
|
|
18821
|
-
//# sourceMappingURL=chunk-
|
|
18827
|
+
//# sourceMappingURL=chunk-6PRATKUO.js.map
|