@opengeni/db 1.0.2-canary.37191796234001 → 1.0.2

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.
Files changed (73) hide show
  1. package/dist/canonical-human-identities.js +3 -3
  2. package/dist/capability-reconciliation.js +2 -2
  3. package/dist/child-outbox-authority.d.ts +120 -0
  4. package/dist/{chunk-3USJENNH.js → chunk-56MYWKQV.js} +2 -2
  5. package/dist/{chunk-A7H7XNLA.js → chunk-7POTLB24.js} +2 -2
  6. package/dist/{chunk-24HEPSKG.js → chunk-7S53WLPI.js} +491 -228
  7. package/dist/chunk-7S53WLPI.js.map +1 -0
  8. package/dist/{chunk-5MBYEVRN.js → chunk-F3YMVRF4.js} +4 -4
  9. package/dist/{chunk-O6BNEXM5.js → chunk-KEDWSSNP.js} +2 -2
  10. package/dist/{chunk-OJF25HW2.js → chunk-KH3TYDGY.js} +2 -2
  11. package/dist/{chunk-CPVKIK7O.js → chunk-LDTQGYD2.js} +37 -1
  12. package/dist/chunk-LDTQGYD2.js.map +1 -0
  13. package/dist/{chunk-ZVL7I4LW.js → chunk-MACELCXG.js} +5 -5
  14. package/dist/{chunk-ZVL7I4LW.js.map → chunk-MACELCXG.js.map} +1 -1
  15. package/dist/{chunk-4BRSIP7S.js → chunk-NLSG7GGA.js} +3 -3
  16. package/dist/{chunk-TDM5F4X6.js → chunk-OMHBVHX7.js} +5 -5
  17. package/dist/{chunk-FDMPCZYO.js → chunk-OQZOGCLG.js} +2 -2
  18. package/dist/{chunk-AZKOZZM7.js → chunk-PQGTWFRF.js} +2 -2
  19. package/dist/{chunk-SCODC2JC.js → chunk-UEQQ2WWU.js} +2 -2
  20. package/dist/{chunk-L7V2X4X7.js → chunk-Y77PVZZD.js} +2 -2
  21. package/dist/connect-attempts.js +3 -3
  22. package/dist/editable-artifact-durable-export.js +2 -2
  23. package/dist/editable-artifacts.js +3 -3
  24. package/dist/external-link-work.d.ts +2 -2
  25. package/dist/external-membership-operations.d.ts +28 -0
  26. package/dist/inbox-execution-context.d.ts +408 -0
  27. package/dist/index.js +3935 -3889
  28. package/dist/index.js.map +1 -1
  29. package/dist/live-session-attempt.d.ts +1 -0
  30. package/dist/managed-auth-session-sets.js +3 -3
  31. package/dist/mcp-operations.js +2 -2
  32. package/dist/organization-integration-policy.js +3 -3
  33. package/dist/retained-provider-commands.js +6 -6
  34. package/dist/schema.d.ts +119 -0
  35. package/dist/schema.js +1 -1
  36. package/dist/session-background-commands.d.ts +39 -0
  37. package/dist/session-background-commands.js +10 -4
  38. package/dist/session-command-output.js +5 -5
  39. package/dist/session-event-slices.js +3 -3
  40. package/dist/session-mcp-credential-rotation.js +5 -5
  41. package/dist/session-tenancy.js +3 -3
  42. package/dist/video-generation.js +3 -3
  43. package/dist/workspace-membership-access.d.ts +8 -0
  44. package/dist/workspace-tool-defaults.js +4 -4
  45. package/drizzle/0607_connected_command_output_release.sql +170 -0
  46. package/drizzle/0608_receiver_execution_context.sql +300 -0
  47. package/drizzle/0609_captured_command_output_priority.sql +152 -0
  48. package/package.json +7 -7
  49. package/src/child-outbox-authority.ts +59 -0
  50. package/src/external-link-work.ts +3 -3
  51. package/src/external-membership-operations.ts +86 -2
  52. package/src/inbox-execution-context.ts +178 -0
  53. package/src/index.ts +297 -330
  54. package/src/insights-unified.ts +78 -18
  55. package/src/pr-review.ts +10 -10
  56. package/src/schema.ts +36 -0
  57. package/src/session-background-commands.ts +191 -0
  58. package/src/session-control.ts +7 -42
  59. package/src/video-generation.ts +2 -2
  60. package/src/workspace-membership-access.ts +28 -0
  61. package/dist/chunk-24HEPSKG.js.map +0 -1
  62. package/dist/chunk-CPVKIK7O.js.map +0 -1
  63. /package/dist/{chunk-3USJENNH.js.map → chunk-56MYWKQV.js.map} +0 -0
  64. /package/dist/{chunk-A7H7XNLA.js.map → chunk-7POTLB24.js.map} +0 -0
  65. /package/dist/{chunk-5MBYEVRN.js.map → chunk-F3YMVRF4.js.map} +0 -0
  66. /package/dist/{chunk-O6BNEXM5.js.map → chunk-KEDWSSNP.js.map} +0 -0
  67. /package/dist/{chunk-OJF25HW2.js.map → chunk-KH3TYDGY.js.map} +0 -0
  68. /package/dist/{chunk-4BRSIP7S.js.map → chunk-NLSG7GGA.js.map} +0 -0
  69. /package/dist/{chunk-TDM5F4X6.js.map → chunk-OMHBVHX7.js.map} +0 -0
  70. /package/dist/{chunk-FDMPCZYO.js.map → chunk-OQZOGCLG.js.map} +0 -0
  71. /package/dist/{chunk-AZKOZZM7.js.map → chunk-PQGTWFRF.js.map} +0 -0
  72. /package/dist/{chunk-SCODC2JC.js.map → chunk-UEQQ2WWU.js.map} +0 -0
  73. /package/dist/{chunk-L7V2X4X7.js.map → chunk-Y77PVZZD.js.map} +0 -0
@@ -11,9 +11,9 @@ import {
11
11
  getCanonicalHumanIdentityProjection,
12
12
  synchronizeCanonicalHumanLoginBindings,
13
13
  validateCanonicalHumanSession
14
- } from "./chunk-O6BNEXM5.js";
15
- import "./chunk-3USJENNH.js";
16
- import "./chunk-CPVKIK7O.js";
14
+ } from "./chunk-KEDWSSNP.js";
15
+ import "./chunk-56MYWKQV.js";
16
+ import "./chunk-LDTQGYD2.js";
17
17
  import "./chunk-P7YDM2RI.js";
18
18
  import "./chunk-PZ5AY32C.js";
19
19
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  withWorkspaceRls
3
- } from "./chunk-3USJENNH.js";
4
- import "./chunk-CPVKIK7O.js";
3
+ } from "./chunk-56MYWKQV.js";
4
+ import "./chunk-LDTQGYD2.js";
5
5
  import "./chunk-P7YDM2RI.js";
6
6
  import "./chunk-PZ5AY32C.js";
7
7
 
@@ -0,0 +1,120 @@
1
+ import type { Database } from "./database.js";
2
+ import * as schema from "./schema.js";
3
+ /** Preserve the accepted producer evidence identically for every notice kind. */
4
+ export declare function parentOutboxAuthorityTx(tx: Database, workspaceId: string, session: Pick<typeof schema.sessions.$inferSelect, "id" | "accountId" | "parentTurnId"> & {
5
+ parentSessionId: string;
6
+ }): Promise<{
7
+ personalConnectionDelegations: {
8
+ serverId: string;
9
+ canonicalServerId?: string | undefined;
10
+ connectionId: string;
11
+ originWorkspaceId?: string | undefined;
12
+ ownerSubjectId: string;
13
+ providerDomain: string;
14
+ kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
15
+ connectionType?: "atlassian" | "github_personal" | "mcp" | "social" | undefined;
16
+ userDelegation?: {
17
+ authorityId: string;
18
+ grantId: string;
19
+ organizationId: string;
20
+ workspaceId: string;
21
+ sessionId: string | null;
22
+ action: string;
23
+ mode: "always" | "once" | "session";
24
+ context: "user_private" | "workspace_shared";
25
+ authorityEpoch: number | null;
26
+ authorityGeneration: number;
27
+ grantGeneration: number;
28
+ resourceVersionId?: string | null | undefined;
29
+ } | undefined;
30
+ personalGitHubRepositorySelection?: {
31
+ credentialBindingId: string;
32
+ connectionAuthorityGeneration: number;
33
+ selectionGeneration: number;
34
+ repositories: {
35
+ repositoryId: string;
36
+ fullName: string;
37
+ canonicalUrl: string;
38
+ ref: string;
39
+ access: "read" | "write";
40
+ selectionGeneration: number;
41
+ }[];
42
+ } | undefined;
43
+ outputDestination?: {
44
+ folderId: string;
45
+ folderName: string;
46
+ driveId: string | null;
47
+ location: "my_drive" | "shared_drive";
48
+ selectedAt: string;
49
+ } | undefined;
50
+ }[];
51
+ mcpAccountBindings: {
52
+ serverId: string;
53
+ canonicalServerId: string;
54
+ connectionId: string;
55
+ originWorkspaceId: string;
56
+ subjectScope: "subject" | "workspace";
57
+ ownerSubjectId: string | null;
58
+ accountLabel: string;
59
+ providerDomain: string;
60
+ kind: "api_key" | "app_install" | "delegated" | "oauth2";
61
+ connectionRef: {
62
+ connectionId?: string | undefined;
63
+ accountSelection?: "all_eligible" | undefined;
64
+ authoritySource?: "host" | undefined;
65
+ hostBinding?: {
66
+ bindingId: string;
67
+ generation: number;
68
+ } | {
69
+ selection: "accepted_turn";
70
+ } | undefined;
71
+ provider?: string | undefined;
72
+ providerDomain: string;
73
+ kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
74
+ scopes?: string[] | undefined;
75
+ resource?: string | undefined;
76
+ selectedResources?: {
77
+ id: string;
78
+ kind: "repository";
79
+ }[] | undefined;
80
+ subjectScope?: "subject" | "workspace" | undefined;
81
+ };
82
+ connectionAuthorityGeneration?: number | undefined;
83
+ }[] | null;
84
+ xaiProviderAccountAuthoritySnapshot: {
85
+ version: 1;
86
+ scope: "organization";
87
+ } | {
88
+ version: 1;
89
+ scope: "workspace";
90
+ } | {
91
+ version: 1;
92
+ scope: "user";
93
+ authorityGeneration: number;
94
+ } | {
95
+ readonly version: 1;
96
+ readonly scope: "workspace";
97
+ };
98
+ claudeProviderAccountAuthoritySnapshot: {
99
+ version: 1;
100
+ scope: "organization";
101
+ } | {
102
+ version: 1;
103
+ scope: "workspace";
104
+ } | {
105
+ version: 1;
106
+ scope: "user";
107
+ authorityGeneration: number;
108
+ } | {
109
+ readonly version: 1;
110
+ readonly scope: "workspace";
111
+ };
112
+ lineage: {
113
+ childSessionId: string;
114
+ parentSessionId: string;
115
+ parentTurnId?: string;
116
+ connectionAuthoritySubjectId?: string | null;
117
+ xaiAuthoritySubjectId?: string;
118
+ claudeAuthoritySubjectId?: string;
119
+ };
120
+ }>;
@@ -3,7 +3,7 @@ import {
3
3
  sessions,
4
4
  workspaceSessionActivityRevisions,
5
5
  workspaces
6
- } from "./chunk-CPVKIK7O.js";
6
+ } from "./chunk-LDTQGYD2.js";
7
7
  import {
8
8
  LOSSLESS_CONTENT_WRITER_APPLICATION_NAME
9
9
  } from "./chunk-P7YDM2RI.js";
@@ -853,4 +853,4 @@ export {
853
853
  withAccountRls,
854
854
  dbBindingFor
855
855
  };
856
- //# sourceMappingURL=chunk-3USJENNH.js.map
856
+ //# sourceMappingURL=chunk-56MYWKQV.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  setSubjectRlsContext,
3
3
  withRlsContext
4
- } from "./chunk-3USJENNH.js";
4
+ } from "./chunk-56MYWKQV.js";
5
5
 
6
6
  // src/connection-token-resolver.ts
7
7
  import { normalizeSlackScopes, OFFICIAL_SLACK_MCP_URL } from "@opengeni/contracts/slack-rest-mcp";
@@ -857,4 +857,4 @@ export {
857
857
  refreshOAuthConnectionCredential,
858
858
  isPrivateAddress
859
859
  };
860
- //# sourceMappingURL=chunk-A7H7XNLA.js.map
860
+ //# sourceMappingURL=chunk-7POTLB24.js.map