@tenetkit/pg 0.36.0 → 0.38.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/postgres/store.js +3 -1
- package/package.json +2 -2
package/dist/postgres/store.js
CHANGED
|
@@ -35,6 +35,7 @@ import { lockMailbox, lockRun, lockRunHierarchy, lockSpawnParent } from "./locks
|
|
|
35
35
|
import { inspectionStoreMethods } from "./store-inspection.js";
|
|
36
36
|
import { programStoreMethods } from "./store-program.js";
|
|
37
37
|
import { admitStart as admitExactStart } from "tenetkit/runtime/driver/sql/store-admit";
|
|
38
|
+
import { activateRoot } from "tenetkit/runtime/driver/sql/store-activate";
|
|
38
39
|
import { admitSend } from "./store-admit.js";
|
|
39
40
|
import { associateRegistrations, loadRegistrations } from "tenetkit/runtime/driver/sql/executable-registrations";
|
|
40
41
|
import { narrow } from "tenetkit/runtime/driver/executable-registration";
|
|
@@ -71,7 +72,8 @@ export const makePostgresServices = (options) => Effect.gen(function* () {
|
|
|
71
72
|
sessionStore: (sessionId) => Effect.succeed(Option.some(makePostgresSessionStore({ sessionId, run, runNoTxn }))),
|
|
72
73
|
hasAdmission: (input) => runNoTxn(hasAdmission(input)),
|
|
73
74
|
admitSend: (input) => run(admitSend(transactionHub, addressBindings, nextId, input)),
|
|
74
|
-
admitStart: (input) => run(sql `SELECT pg_advisory_xact_lock(hashtext('tenetkit:executable-registrations'))`.pipe(Effect.andThen(admitExactStart(transactionHub, input)))),
|
|
75
|
+
admitStart: (input, startOptions) => run(sql `SELECT pg_advisory_xact_lock(hashtext('tenetkit:executable-registrations'))`.pipe(Effect.andThen(admitExactStart(transactionHub, input, startOptions)))),
|
|
76
|
+
activate: (input) => run(lockRun(input.runId).pipe(Effect.andThen(activateRoot(transactionHub, input.runId)))),
|
|
75
77
|
admitSpawn: (input) => run(Effect.gen(function* () {
|
|
76
78
|
const parent = yield* lockSpawnParent(input.parentRunId);
|
|
77
79
|
const executableRef = resolveChild(parent.executableRef, parent.executableManifest, input.selection);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@effect/sql-pg": "4.0.0-rc.111",
|
|
42
|
-
"tenetkit": "0.
|
|
42
|
+
"tenetkit": "0.38.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@effect/vitest": "4.0.0-rc.111",
|