@opengeni/db 6.0.3-canary.36079201993001 → 6.0.3
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 +1 -16
- package/dist/connection-token-resolver.d.ts +1 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2106 -1376
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts +8 -8
- package/dist/session-mcp-credential-rotation.d.ts +4 -15
- package/dist/session-mcp-credential-rotation.js +3 -34
- package/dist/session-mcp-credential-rotation.js.map +1 -1
- package/package.json +6 -6
- package/src/browser-sessions.ts +9 -94
- package/src/connection-token-resolver.ts +1 -16
- package/src/index.ts +4 -2
- package/src/session-mcp-credential-rotation.ts +9 -57
- package/dist/chunk-GITYHTNI.js +0 -796
- package/dist/chunk-GITYHTNI.js.map +0 -1
- package/drizzle/0515_autonomous_learning_defaults.sql +0 -35
- package/drizzle/0516_member_connection_read.sql +0 -105
- package/drizzle/0517_member_connection_read_backfill_index.sql +0 -21
- package/drizzle/0518_member_connection_read_backfill.sql +0 -37
|
@@ -110,11 +110,8 @@ 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;
|
|
116
113
|
};
|
|
117
|
-
export type PrepareBrowserSessionLifecycleInput =
|
|
114
|
+
export type PrepareBrowserSessionLifecycleInput = PrepareBrowserSessionEndInput;
|
|
118
115
|
export type BrowserPrivateCheckpointAuthority = {
|
|
119
116
|
artifactId: string;
|
|
120
117
|
sourceBrowserSessionId: string;
|
|
@@ -327,17 +324,6 @@ export declare function failPreparedBrowserSessionSuspend(db: Database, input: {
|
|
|
327
324
|
browserSessionId: string;
|
|
328
325
|
error: InteractionErrorValue;
|
|
329
326
|
}): 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>;
|
|
341
327
|
export declare function prepareBrowserSessionResume(db: Database, input: PrepareBrowserSessionLifecycleInput): Promise<BrowserSessionMutationResponseValue>;
|
|
342
328
|
export declare function commitBrowserSessionSuspension(db: Database, input: {
|
|
343
329
|
accountId: string;
|
|
@@ -360,7 +346,6 @@ export declare function failBrowserSessionSuspension(db: Database, input: {
|
|
|
360
346
|
browserSessionId: string;
|
|
361
347
|
controllerGeneration: string;
|
|
362
348
|
state?: "failed" | "outcome_unknown";
|
|
363
|
-
missingControllerSession?: boolean;
|
|
364
349
|
error: InteractionErrorValue;
|
|
365
350
|
}): Promise<BrowserSessionMutationResponseValue>;
|
|
366
351
|
export declare function failBrowserSessionResume(db: Database, input: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { environmentsEncryptionKeyBytes, type McpServerConnectionRef, type Settings } from "@opengeni/config";
|
|
2
|
-
import type { ConnectionCredentialPlacement, ConnectionKind, ConnectionStatus,
|
|
2
|
+
import type { ConnectionCredentialPlacement, ConnectionKind, ConnectionStatus, McpConnectionResourceScope, McpCredentialAuthNeededReason } from "@opengeni/contracts";
|
|
3
3
|
import { type ConnectionUseAttribution } from "@opengeni/contracts/connection-authority";
|
|
4
4
|
import { type DnsLookup, type FetchLike } from "@opengeni/network";
|
|
5
5
|
export { isPrivateAddress } from "@opengeni/network";
|
|
@@ -150,9 +150,6 @@ export type RefreshTransportOptions = {
|
|
|
150
150
|
dnsLookup?: DnsLookup;
|
|
151
151
|
};
|
|
152
152
|
export declare function buildConnectionTokenResolver(db: Database, settings: Settings, deps: ConnectionBrokerDeps, options?: ConnectionTokenResolverOptions): (input: ResolveConnectionCredentialInput) => Promise<ResolveConnectionCredentialResult>;
|
|
153
|
-
/** Credential-free preflight only. Physical requests still resolve credentials
|
|
154
|
-
* and enforce their binding, current status and accepted-use authority. */
|
|
155
|
-
export declare function connectionMetadataMatchesBinding(connection: ConnectionMetadata, ref: McpServerConnectionRef, destinationUrl: string): boolean;
|
|
156
153
|
export declare class ConnectionRefreshHttpError extends Error {
|
|
157
154
|
readonly httpStatus: number;
|
|
158
155
|
readonly oauthErrorCode: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -6349,7 +6349,7 @@ export declare function recordSkippedContextCompaction(db: Database, input: {
|
|
|
6349
6349
|
turnId: string;
|
|
6350
6350
|
expectedExecutionGeneration: number;
|
|
6351
6351
|
expectedAttemptId: string;
|
|
6352
|
-
reason: "no_history" | "replacement_not_smaller" | "
|
|
6352
|
+
reason: "no_history" | "replacement_not_smaller" | "replacement_unchanged" | "summarization_failed";
|
|
6353
6353
|
/**
|
|
6354
6354
|
* When false, record the visible skip even if no operator `/compact` is
|
|
6355
6355
|
* pending (auto/overflow paths that already emitted `compaction.started`).
|