@opengeni/db 3.7.4-canary.0 → 3.8.2-canary.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.
- package/dist/canonical-human-identities.js +3 -3
- package/dist/{chunk-DXJ2WY6W.js → chunk-53A2PEHT.js} +241 -31
- package/dist/chunk-53A2PEHT.js.map +1 -0
- package/dist/{chunk-JS3AWDKZ.js → chunk-5S4BQAHX.js} +3 -3
- package/dist/{chunk-JP6IYGYI.js → chunk-CITYUGMW.js} +3 -3
- package/dist/{chunk-6FIVOJ3V.js → chunk-F5YOZEYQ.js} +45 -1
- package/dist/chunk-F5YOZEYQ.js.map +1 -0
- package/dist/{chunk-ZTSJPFDH.js → chunk-HZV7O6JR.js} +2 -2
- package/dist/{chunk-VDXHLVDE.js → chunk-RLQVPOVR.js} +2 -2
- package/dist/{chunk-LHKB62GC.js → chunk-UKOGHUGC.js} +2 -2
- package/dist/{chunk-QL4AHBYD.js → chunk-X6TO5HII.js} +2 -2
- package/dist/{chunk-3ZMN4EXC.js → chunk-Y53WEFYB.js} +2 -2
- package/dist/connection-token-resolver.d.ts +4 -0
- package/dist/editable-artifact-durable-export.js +2 -2
- package/dist/editable-artifacts.js +3 -3
- package/dist/index.d.ts +59 -12
- package/dist/index.js +5259 -4374
- package/dist/index.js.map +1 -1
- package/dist/insights.d.ts +9 -0
- package/dist/managed-auth-session-sets.js +3 -3
- package/dist/new-session-drafts.d.ts +12 -0
- package/dist/organization-membership-lifecycle.d.ts +8 -1
- package/dist/organization-model-providers.d.ts +101 -0
- package/dist/pack-components.d.ts +1 -0
- package/dist/provision-roles.js +1 -1
- package/dist/runtime-posture.d.ts +5 -5
- package/dist/schema.d.ts +645 -0
- package/dist/schema.js +7 -1
- package/dist/session-background-commands.js +3 -3
- package/dist/session-tenancy.js +3 -3
- package/dist/video-generation.js +3 -3
- package/drizzle/0390_organization_model_provider_connections.sql +197 -0
- package/drizzle/0391_sandbox_provider_deadline_interaction_followup.sql +295 -0
- package/drizzle/0392_context_compaction_pending_observability.sql +198 -0
- package/drizzle/0393_workspace_memory_and_learning_defaults.sql +102 -0
- package/drizzle/0394_session_selected_skill_activation.sql +20 -0
- package/drizzle/0395_scheduled_task_unclaimed_occurrence_invalidation.sql +154 -0
- package/drizzle/0396_model_call_equivalent_credit_cost.sql +28 -0
- package/drizzle/0397_sandbox_deadline_rotation_preemption.sql +113 -0
- package/drizzle/0398_organization_workspace_management_entry.sql +206 -0
- package/drizzle/0399_additional_managed_organization_creation.sql +691 -0
- package/package.json +6 -6
- package/src/connection-token-resolver.ts +12 -0
- package/src/index.ts +701 -155
- package/src/insights-model-bundle.ts +54 -5
- package/src/insights.ts +32 -0
- package/src/new-session-drafts.ts +66 -21
- package/src/organization-membership-lifecycle.ts +47 -5
- package/src/organization-model-providers.ts +614 -0
- package/src/pack-components.ts +15 -2
- package/src/provision-roles.ts +2 -0
- package/src/runtime-posture.ts +44 -0
- package/src/schema.ts +250 -30
- package/dist/chunk-6FIVOJ3V.js.map +0 -1
- package/dist/chunk-DXJ2WY6W.js.map +0 -1
- /package/dist/{chunk-JS3AWDKZ.js.map → chunk-5S4BQAHX.js.map} +0 -0
- /package/dist/{chunk-JP6IYGYI.js.map → chunk-CITYUGMW.js.map} +0 -0
- /package/dist/{chunk-ZTSJPFDH.js.map → chunk-HZV7O6JR.js.map} +0 -0
- /package/dist/{chunk-VDXHLVDE.js.map → chunk-RLQVPOVR.js.map} +0 -0
- /package/dist/{chunk-LHKB62GC.js.map → chunk-UKOGHUGC.js.map} +0 -0
- /package/dist/{chunk-QL4AHBYD.js.map → chunk-X6TO5HII.js.map} +0 -0
- /package/dist/{chunk-3ZMN4EXC.js.map → chunk-Y53WEFYB.js.map} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/db",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.2-canary.0",
|
|
4
4
|
"description": "OpenGeni persistence: Drizzle schema, RLS-scoped query layer, the SQL migration runner, and role provisioning.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
"prepublishOnly": "bash ../../scripts/prepublish-guard"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@opengeni/codemode": "^0.4.
|
|
82
|
-
"@opengeni/codex": "^0.2.20-canary.
|
|
83
|
-
"@opengeni/config": "^0.
|
|
84
|
-
"@opengeni/contracts": "^2.
|
|
85
|
-
"@opengeni/network": "^0.2.3-canary.
|
|
81
|
+
"@opengeni/codemode": "^0.4.25-canary.0",
|
|
82
|
+
"@opengeni/codex": "^0.2.20-canary.2",
|
|
83
|
+
"@opengeni/config": "^0.23.2-canary.0",
|
|
84
|
+
"@opengeni/contracts": "^2.11.1-canary.0",
|
|
85
|
+
"@opengeni/network": "^0.2.3-canary.7",
|
|
86
86
|
"drizzle-orm": "^0.45.2",
|
|
87
87
|
"postgres": "^3.4.7"
|
|
88
88
|
},
|
|
@@ -114,6 +114,8 @@ export type ResolveConnectionCredentialResult =
|
|
|
114
114
|
| {
|
|
115
115
|
status: "ok";
|
|
116
116
|
headers: Record<string, string>;
|
|
117
|
+
/** Credential authority is owned by the embedding host, not the native connection store. */
|
|
118
|
+
authoritySource?: "host";
|
|
117
119
|
/** Present when the credential bundle or embedding host supplied explicit placements. */
|
|
118
120
|
placements?: ConnectionCredentialPlacement[];
|
|
119
121
|
connectionId: string;
|
|
@@ -133,6 +135,8 @@ export type ResolveConnectionCredentialResult =
|
|
|
133
135
|
status: "auth_needed";
|
|
134
136
|
reason: McpCredentialAuthNeededReason;
|
|
135
137
|
providerDomain: string;
|
|
138
|
+
/** Credential authority is owned by the embedding host, not the native connection store. */
|
|
139
|
+
authoritySource?: "host";
|
|
136
140
|
provider?: string;
|
|
137
141
|
connectionId?: string;
|
|
138
142
|
scopes?: string[];
|
|
@@ -270,6 +274,9 @@ export function buildHostConnectionTokenResolver(
|
|
|
270
274
|
serverId: input.serverId,
|
|
271
275
|
connectionRef: {
|
|
272
276
|
providerDomain: input.connectionRef.providerDomain,
|
|
277
|
+
...(input.connectionRef.authoritySource
|
|
278
|
+
? { authoritySource: input.connectionRef.authoritySource }
|
|
279
|
+
: {}),
|
|
273
280
|
...(input.connectionRef.provider ? { provider: input.connectionRef.provider } : {}),
|
|
274
281
|
...(input.connectionRef.connectionId
|
|
275
282
|
? { connectionId: input.connectionRef.connectionId }
|
|
@@ -303,6 +310,7 @@ export function buildHostConnectionTokenResolver(
|
|
|
303
310
|
status: "auth_needed",
|
|
304
311
|
reason: result.reason,
|
|
305
312
|
providerDomain: result.providerDomain,
|
|
313
|
+
authoritySource: "host",
|
|
306
314
|
...(result.provider ? { provider: result.provider } : {}),
|
|
307
315
|
...(result.connectionId ? { connectionId: result.connectionId } : {}),
|
|
308
316
|
...(result.scopes ? { scopes: [...result.scopes] } : {}),
|
|
@@ -339,6 +347,7 @@ export function buildHostConnectionTokenResolver(
|
|
|
339
347
|
return {
|
|
340
348
|
status: "ok",
|
|
341
349
|
headers,
|
|
350
|
+
authoritySource: "host",
|
|
342
351
|
...(explicitPlacements ? { placements: explicitPlacements } : {}),
|
|
343
352
|
connectionId: result.connectionId,
|
|
344
353
|
...(expiresAt !== undefined ? { expiresAt } : {}),
|
|
@@ -835,6 +844,9 @@ export function buildConnectionTokenResolver(
|
|
|
835
844
|
let credentialWorkspaceId = input.workspaceId;
|
|
836
845
|
let expectedAuthorityGeneration: number | undefined;
|
|
837
846
|
let connectionUseAttribution: ConnectionUseAttribution | undefined;
|
|
847
|
+
if (ref.authoritySource === "host") {
|
|
848
|
+
return authNeeded(ref, "unsupported_auth", ref.connectionId);
|
|
849
|
+
}
|
|
838
850
|
// Repository-scoped provider bindings require a broker that can prove the
|
|
839
851
|
// selected-resource boundary. The generic standalone credential store has
|
|
840
852
|
// no provider-specific containment adapter, so it must fail closed instead
|