@opengeni/db 4.3.0-canary.0 → 4.3.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.
- package/dist/canonical-human-identities.js +3 -3
- package/dist/{chunk-Y5XFVJJM.js → chunk-AI4NC6XW.js} +6 -5
- package/dist/chunk-AI4NC6XW.js.map +1 -0
- package/dist/{chunk-IHADTE7C.js → chunk-DVSLOUEI.js} +2 -2
- package/dist/{chunk-7JPLGBSA.js → chunk-F4BIHJ7J.js} +4 -4
- package/dist/{chunk-SGJDIF2D.js → chunk-I4ITNMX2.js} +2 -2
- package/dist/{chunk-NCSPNCQK.js → chunk-PFBUHOI5.js} +3 -3
- package/dist/{chunk-YGRT6VZO.js → chunk-UUPY6IGP.js} +2 -2
- package/dist/{chunk-YGBOVXC7.js → chunk-UVBPOGA7.js} +2 -2
- package/dist/{chunk-ILKJKDII.js → chunk-XBXANJQS.js} +2 -2
- package/dist/editable-artifact-durable-export.js +2 -2
- package/dist/editable-artifacts.js +3 -3
- package/dist/index.js +18 -12
- package/dist/index.js.map +1 -1
- package/dist/managed-auth-session-sets.js +3 -3
- package/dist/retained-provider-commands.js +2 -2
- package/dist/schema.js +1 -1
- package/dist/session-background-commands.js +4 -4
- package/dist/session-command-output.js +4 -4
- package/dist/session-event-slices.js +2 -2
- package/dist/session-tenancy.js +3 -3
- package/dist/video-generation.js +3 -3
- package/dist/workspace-tool-defaults.js +4 -4
- package/package.json +6 -6
- package/src/schema.ts +5 -4
- package/src/workspace-artifacts.ts +10 -4
- package/dist/chunk-Y5XFVJJM.js.map +0 -1
- /package/dist/{chunk-IHADTE7C.js.map → chunk-DVSLOUEI.js.map} +0 -0
- /package/dist/{chunk-7JPLGBSA.js.map → chunk-F4BIHJ7J.js.map} +0 -0
- /package/dist/{chunk-SGJDIF2D.js.map → chunk-I4ITNMX2.js.map} +0 -0
- /package/dist/{chunk-NCSPNCQK.js.map → chunk-PFBUHOI5.js.map} +0 -0
- /package/dist/{chunk-YGRT6VZO.js.map → chunk-UUPY6IGP.js.map} +0 -0
- /package/dist/{chunk-YGBOVXC7.js.map → chunk-UVBPOGA7.js.map} +0 -0
- /package/dist/{chunk-ILKJKDII.js.map → chunk-XBXANJQS.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nestedPostgresSqlState,
|
|
3
3
|
rawRows
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I4ITNMX2.js";
|
|
5
5
|
|
|
6
6
|
// src/canonical-human-identities.ts
|
|
7
7
|
import { createHash } from "crypto";
|
|
@@ -309,4 +309,4 @@ export {
|
|
|
309
309
|
getCanonicalHumanIdentityProjection,
|
|
310
310
|
applyCanonicalHumanIdentityOperation
|
|
311
311
|
};
|
|
312
|
-
//# sourceMappingURL=chunk-
|
|
312
|
+
//# sourceMappingURL=chunk-DVSLOUEI.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cancelUnacceptedVideoGenerationsForToolCallsInTransaction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PFBUHOI5.js";
|
|
4
4
|
import {
|
|
5
5
|
nestedPostgresSqlState,
|
|
6
6
|
rawRows,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
withSessionActivityRlsContext,
|
|
11
11
|
withWorkspaceRls,
|
|
12
12
|
withWorkspaceSubjectRls
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-I4ITNMX2.js";
|
|
14
14
|
import {
|
|
15
15
|
LOSSLESS_CONTENT_CODEC_VERSION,
|
|
16
16
|
auditEvents,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
workspaceControlEvents,
|
|
38
38
|
workspaceInferenceControls,
|
|
39
39
|
workspaces
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-AI4NC6XW.js";
|
|
41
41
|
|
|
42
42
|
// src/session-background-commands.ts
|
|
43
43
|
import { SessionCommandFailure } from "@opengeni/contracts";
|
|
@@ -4769,4 +4769,4 @@ export {
|
|
|
4769
4769
|
setWorkspacePauseTimerInTransaction,
|
|
4770
4770
|
fireWorkspacePauseTimerInTransaction
|
|
4771
4771
|
};
|
|
4772
|
-
//# sourceMappingURL=chunk-
|
|
4772
|
+
//# sourceMappingURL=chunk-F4BIHJ7J.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
sessions,
|
|
5
5
|
workspaceSessionActivityRevisions,
|
|
6
6
|
workspaces
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AI4NC6XW.js";
|
|
8
8
|
|
|
9
9
|
// src/persistence-errors.ts
|
|
10
10
|
var SQLSTATE_KEYS = ["sqlState", "sqlstate", "code"];
|
|
@@ -755,4 +755,4 @@ export {
|
|
|
755
755
|
withAccountRls,
|
|
756
756
|
dbBindingFor
|
|
757
757
|
};
|
|
758
|
-
//# sourceMappingURL=chunk-
|
|
758
|
+
//# sourceMappingURL=chunk-I4ITNMX2.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
rawRows,
|
|
3
3
|
withRlsContext,
|
|
4
4
|
withWorkspaceRls
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I4ITNMX2.js";
|
|
6
6
|
import {
|
|
7
7
|
connections,
|
|
8
8
|
creditLedgerEntries,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
workspaceVideoGenerationPolicies,
|
|
15
15
|
workspaceVideoGenerationQuotas,
|
|
16
16
|
workspaces
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AI4NC6XW.js";
|
|
18
18
|
|
|
19
19
|
// src/video-generation.ts
|
|
20
20
|
import {
|
|
@@ -992,4 +992,4 @@ export {
|
|
|
992
992
|
mediaGenerationResultForStoredOperation,
|
|
993
993
|
getVideoGenerationOperationSummary
|
|
994
994
|
};
|
|
995
|
-
//# sourceMappingURL=chunk-
|
|
995
|
+
//# sourceMappingURL=chunk-PFBUHOI5.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nestedPostgresSqlState,
|
|
3
3
|
rawRows
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I4ITNMX2.js";
|
|
5
5
|
|
|
6
6
|
// src/managed-auth-session-sets.ts
|
|
7
7
|
import {
|
|
@@ -296,4 +296,4 @@ export {
|
|
|
296
296
|
reapManagedAuthIsolatedSessions,
|
|
297
297
|
reapExpiredManagedAuthSessionSets
|
|
298
298
|
};
|
|
299
|
-
//# sourceMappingURL=chunk-
|
|
299
|
+
//# sourceMappingURL=chunk-UUPY6IGP.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rawRows,
|
|
3
3
|
withRlsContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I4ITNMX2.js";
|
|
5
5
|
|
|
6
6
|
// src/editable-artifacts.ts
|
|
7
7
|
import { createHash } from "crypto";
|
|
@@ -3540,4 +3540,4 @@ export {
|
|
|
3540
3540
|
PostgresEditableArtifactStore,
|
|
3541
3541
|
PostgresEditableArtifactLiveReadStore
|
|
3542
3542
|
};
|
|
3543
|
-
//# sourceMappingURL=chunk-
|
|
3543
|
+
//# sourceMappingURL=chunk-UVBPOGA7.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
withWorkspaceRls,
|
|
6
6
|
withWorkspaceSubjectRls,
|
|
7
7
|
withWorkspaceSubjectSessionActivityRls
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-I4ITNMX2.js";
|
|
9
9
|
|
|
10
10
|
// src/session-tenancy.ts
|
|
11
11
|
import { createHash } from "crypto";
|
|
@@ -502,4 +502,4 @@ export {
|
|
|
502
502
|
forkSessionContent,
|
|
503
503
|
replayAppliedSessionFork
|
|
504
504
|
};
|
|
505
|
-
//# sourceMappingURL=chunk-
|
|
505
|
+
//# sourceMappingURL=chunk-XBXANJQS.js.map
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
PostgresEditableArtifactStore,
|
|
9
9
|
listEditableArtifactIdsForSession,
|
|
10
10
|
touchEditableArtifactSessionLink
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-UVBPOGA7.js";
|
|
12
|
+
import "./chunk-I4ITNMX2.js";
|
|
13
|
+
import "./chunk-AI4NC6XW.js";
|
|
14
14
|
import "./chunk-PZ5AY32C.js";
|
|
15
15
|
export {
|
|
16
16
|
EDITABLE_ARTIFACT_INTENT_MAX_BYTES,
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
replayAppliedSessionFork,
|
|
15
15
|
sessionTenancyProductActivated,
|
|
16
16
|
transitionSessionVisibility
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XBXANJQS.js";
|
|
18
18
|
import {
|
|
19
19
|
AgentCommandAuthorityError,
|
|
20
20
|
CHILD_LIFECYCLE_DEDUPE_PREFIX,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
updateSessionCommandReceiptResult,
|
|
109
109
|
workspaceControlLockBudget,
|
|
110
110
|
workspaceControlRequestLockTimeoutMs
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-F4BIHJ7J.js";
|
|
112
112
|
import {
|
|
113
113
|
ACTIVE_VIDEO_GENERATION_STATUSES,
|
|
114
114
|
VideoGenerationCapacityError,
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
settleVideoGenerationFailure,
|
|
141
141
|
settleVideoGenerationReady,
|
|
142
142
|
updateWorkspaceVideoGenerationPolicy
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-PFBUHOI5.js";
|
|
144
144
|
import {
|
|
145
145
|
ManagedAuthActorMutationInFlightError,
|
|
146
146
|
ManagedAuthLoginSlotAlreadyExistsError,
|
|
@@ -163,7 +163,7 @@ import {
|
|
|
163
163
|
reapManagedAuthIsolatedSessions,
|
|
164
164
|
releaseManagedAuthActorMutationLease,
|
|
165
165
|
validateManagedAuthActorMutationLease
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-UUPY6IGP.js";
|
|
167
167
|
import {
|
|
168
168
|
migrate,
|
|
169
169
|
runMigrations
|
|
@@ -204,7 +204,7 @@ import {
|
|
|
204
204
|
getCanonicalHumanIdentityProjection,
|
|
205
205
|
synchronizeCanonicalHumanLoginBindings,
|
|
206
206
|
validateCanonicalHumanSession
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-DVSLOUEI.js";
|
|
208
208
|
import {
|
|
209
209
|
EDITABLE_ARTIFACT_INTENT_MAX_BYTES,
|
|
210
210
|
EDITABLE_ARTIFACT_KERNEL_TAIL_MAX_BYTES,
|
|
@@ -215,7 +215,7 @@ import {
|
|
|
215
215
|
PostgresEditableArtifactStore,
|
|
216
216
|
listEditableArtifactIdsForSession,
|
|
217
217
|
touchEditableArtifactSessionLink
|
|
218
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-UVBPOGA7.js";
|
|
219
219
|
import {
|
|
220
220
|
SandboxProviderReadLockUnavailableError,
|
|
221
221
|
SessionEventPersistenceError,
|
|
@@ -251,7 +251,7 @@ import {
|
|
|
251
251
|
withWorkspaceSubjectRls,
|
|
252
252
|
withWorkspaceSubjectSessionActivityRls,
|
|
253
253
|
withWorkspaceUsageLock
|
|
254
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-I4ITNMX2.js";
|
|
255
255
|
import {
|
|
256
256
|
LOSSLESS_CONTENT_CODEC_VERSION,
|
|
257
257
|
LOSSLESS_JSON_STRING_PREFIX,
|
|
@@ -491,7 +491,7 @@ import {
|
|
|
491
491
|
xaiRotationSettings,
|
|
492
492
|
xaiSessionAccountPins,
|
|
493
493
|
xaiSubscriptionCredentials
|
|
494
|
-
} from "./chunk-
|
|
494
|
+
} from "./chunk-AI4NC6XW.js";
|
|
495
495
|
import "./chunk-PZ5AY32C.js";
|
|
496
496
|
|
|
497
497
|
// src/session-execution-policy.ts
|
|
@@ -35290,7 +35290,11 @@ async function assertAttemptAuthority(scopedDb, input) {
|
|
|
35290
35290
|
FOR NO KEY UPDATE OF session
|
|
35291
35291
|
), locked_turn AS MATERIALIZED (
|
|
35292
35292
|
SELECT turn.id, turn.account_id, turn.workspace_id, turn.session_id,
|
|
35293
|
-
turn.active_attempt_id, turn.execution_generation,
|
|
35293
|
+
turn.active_attempt_id, turn.execution_generation,
|
|
35294
|
+
coalesce(
|
|
35295
|
+
turn.initiating_human_subject_id,
|
|
35296
|
+
case when turn.initiator_kind = 'subject' then turn.initiator_subject_id end
|
|
35297
|
+
) as initiating_human_subject_id
|
|
35294
35298
|
FROM session_turns turn
|
|
35295
35299
|
JOIN locked_session session
|
|
35296
35300
|
ON session.id = turn.session_id
|
|
@@ -35300,8 +35304,10 @@ async function assertAttemptAuthority(scopedDb, input) {
|
|
|
35300
35304
|
AND turn.active_attempt_id = ${input.sourceAttemptId}::uuid
|
|
35301
35305
|
AND turn.execution_generation = ${input.sourceExecutionGeneration}
|
|
35302
35306
|
AND turn.status IN ('running', 'requires_action', 'recovering', 'waiting_capacity')
|
|
35303
|
-
AND
|
|
35304
|
-
|
|
35307
|
+
AND length(btrim(coalesce(
|
|
35308
|
+
turn.initiating_human_subject_id,
|
|
35309
|
+
case when turn.initiator_kind = 'subject' then turn.initiator_subject_id end
|
|
35310
|
+
))) BETWEEN 1 AND 1024
|
|
35305
35311
|
FOR UPDATE OF turn
|
|
35306
35312
|
), locked_attempt AS MATERIALIZED (
|
|
35307
35313
|
SELECT attempt.id, attempt.account_id, attempt.workspace_id,
|
|
@@ -35330,7 +35336,7 @@ async function assertAttemptAuthority(scopedDb, input) {
|
|
|
35330
35336
|
`);
|
|
35331
35337
|
if (!rows[0]) {
|
|
35332
35338
|
throw new WorkspaceArtifactOperationError(
|
|
35333
|
-
"Artifact mutation requires the exact active attempt and
|
|
35339
|
+
"Artifact mutation requires the exact active attempt, execution generation, and immutable human authority"
|
|
35334
35340
|
);
|
|
35335
35341
|
}
|
|
35336
35342
|
}
|