@sentropic/cluster-mesh 0.19.1 → 0.21.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/README.md +53 -3
- package/dist/compose/mcp-stateful.d.ts +9 -0
- package/dist/compose/mcp-stateful.d.ts.map +1 -0
- package/dist/compose/mcp-stateful.js +96 -0
- package/dist/compose/mcp-stateful.js.map +1 -0
- package/dist/integrations/mcp/artifacts.d.ts +1 -0
- package/dist/integrations/mcp/artifacts.d.ts.map +1 -1
- package/dist/integrations/mcp/artifacts.js +1 -0
- package/dist/integrations/mcp/artifacts.js.map +1 -1
- package/dist/loaders/mcp/index.d.ts +2 -0
- package/dist/loaders/mcp/index.d.ts.map +1 -1
- package/dist/loaders/mcp/index.js +2 -0
- package/dist/loaders/mcp/index.js.map +1 -1
- package/dist/loaders/mcp/result-codec.d.ts +4 -0
- package/dist/loaders/mcp/result-codec.d.ts.map +1 -0
- package/dist/loaders/mcp/result-codec.js +5 -0
- package/dist/loaders/mcp/result-codec.js.map +1 -0
- package/dist/loaders/mcp/tool-schemas.d.ts +4 -0
- package/dist/loaders/mcp/tool-schemas.d.ts.map +1 -0
- package/dist/loaders/mcp/tool-schemas.js +5 -0
- package/dist/loaders/mcp/tool-schemas.js.map +1 -0
- package/dist/mcp/registry.d.ts +2 -0
- package/dist/mcp/registry.d.ts.map +1 -1
- package/dist/mcp/registry.js +1 -0
- package/dist/mcp/registry.js.map +1 -1
- package/dist/mcp/stateful-context.d.ts +8 -0
- package/dist/mcp/stateful-context.d.ts.map +1 -0
- package/dist/mcp/stateful-context.js +61 -0
- package/dist/mcp/stateful-context.js.map +1 -0
- package/dist/mcp/stateful-contracts.d.ts +53 -0
- package/dist/mcp/stateful-contracts.d.ts.map +1 -0
- package/dist/mcp/stateful-contracts.js +2 -0
- package/dist/mcp/stateful-contracts.js.map +1 -0
- package/dist/mcp/stateful-preflight.d.ts +48 -0
- package/dist/mcp/stateful-preflight.d.ts.map +1 -0
- package/dist/mcp/stateful-preflight.js +46 -0
- package/dist/mcp/stateful-preflight.js.map +1 -0
- package/dist/modules/catalog.d.ts +4 -4
- package/dist/modules/catalog.d.ts.map +1 -1
- package/dist/modules/catalog.js +8 -6
- package/dist/modules/catalog.js.map +1 -1
- package/dist/modules/contracts.d.ts +1 -1
- package/dist/modules/contracts.d.ts.map +1 -1
- package/dist/modules/contracts.js +2 -0
- package/dist/modules/contracts.js.map +1 -1
- package/dist/modules/registry.d.ts.map +1 -1
- package/dist/modules/registry.js +13 -1
- package/dist/modules/registry.js.map +1 -1
- package/dist/storage/instance-ownership.d.ts +30 -0
- package/dist/storage/instance-ownership.d.ts.map +1 -0
- package/dist/storage/instance-ownership.js +90 -0
- package/dist/storage/instance-ownership.js.map +1 -0
- package/dist/storage/postgres/ordinary-transactions.d.ts.map +1 -1
- package/dist/storage/postgres/ordinary-transactions.js +2 -0
- package/dist/storage/postgres/ordinary-transactions.js.map +1 -1
- package/dist/storage/postgres/protocol.d.ts +7 -0
- package/dist/storage/postgres/protocol.d.ts.map +1 -1
- package/dist/storage/postgres/protocol.js.map +1 -1
- package/dist/storage/sqlite/backend.d.ts +38 -0
- package/dist/storage/sqlite/backend.d.ts.map +1 -0
- package/dist/storage/sqlite/backend.js +159 -0
- package/dist/storage/sqlite/backend.js.map +1 -0
- package/dist/storage/sqlite/connection.d.ts +11 -0
- package/dist/storage/sqlite/connection.d.ts.map +1 -0
- package/dist/storage/sqlite/connection.js +108 -0
- package/dist/storage/sqlite/connection.js.map +1 -0
- package/dist/storage/sqlite/engine.d.ts +44 -0
- package/dist/storage/sqlite/engine.d.ts.map +1 -0
- package/dist/storage/sqlite/engine.js +262 -0
- package/dist/storage/sqlite/engine.js.map +1 -0
- package/dist/storage/sqlite/index.d.ts +28 -0
- package/dist/storage/sqlite/index.d.ts.map +1 -0
- package/dist/storage/sqlite/index.js +161 -0
- package/dist/storage/sqlite/index.js.map +1 -0
- package/dist/storage/sqlite/owner-source.d.ts +2 -0
- package/dist/storage/sqlite/owner-source.d.ts.map +1 -0
- package/dist/storage/sqlite/owner-source.js +52 -0
- package/dist/storage/sqlite/owner-source.js.map +1 -0
- package/dist/storage/sqlite/transaction-port.d.ts +6 -0
- package/dist/storage/sqlite/transaction-port.d.ts.map +1 -0
- package/dist/storage/sqlite/transaction-port.js +27 -0
- package/dist/storage/sqlite/transaction-port.js.map +1 -0
- package/package.json +11 -4
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ScopeGrant } from '../authority.js';
|
|
2
|
+
import type { ProfileClaim } from '../profiles.js';
|
|
3
|
+
import { type StagedKernelOptions, type StagedKernelRoot } from '../staged-factory.js';
|
|
4
|
+
import { CANONICAL_INSTANCE_OWNERSHIP_CONTRACT, CanonicalInstanceRegistry } from '../instance-ownership.js';
|
|
5
|
+
import { type SqliteEngine, type SqliteOpenOptions } from './engine.js';
|
|
6
|
+
import { SqliteStateBackend } from './backend.js';
|
|
7
|
+
export declare const sqliteProfileClaims: (module: string, resync: boolean) => readonly ProfileClaim[];
|
|
8
|
+
export interface SqliteKernelOptions extends Omit<StagedKernelOptions, 'backend' | 'coordinator' | 'moduleId'> {
|
|
9
|
+
readonly path: string;
|
|
10
|
+
readonly moduleId: string;
|
|
11
|
+
readonly open?: Omit<SqliteOpenOptions, 'path'>;
|
|
12
|
+
}
|
|
13
|
+
export interface SqliteKernel {
|
|
14
|
+
readonly engine: SqliteEngine;
|
|
15
|
+
readonly backend: SqliteStateBackend;
|
|
16
|
+
readonly moduleId: string;
|
|
17
|
+
readonly incarnation: string;
|
|
18
|
+
readonly ownershipContract: typeof CANONICAL_INSTANCE_OWNERSHIP_CONTRACT;
|
|
19
|
+
bind(grant: ScopeGrant<unknown>): unknown;
|
|
20
|
+
bindNew(grant: ScopeGrant<unknown>): unknown;
|
|
21
|
+
revoke(token: string): void | Promise<void>;
|
|
22
|
+
provisionFence(...args: Parameters<StagedKernelRoot['provisionFence']>): unknown;
|
|
23
|
+
profiles(resync: boolean): readonly ProfileClaim[];
|
|
24
|
+
close(): void;
|
|
25
|
+
}
|
|
26
|
+
export declare const createSqliteKernel: (options: SqliteKernelOptions) => SqliteKernel;
|
|
27
|
+
export { CanonicalInstanceRegistry };
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storage/sqlite/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKlD,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,gBAAgB,CAAC;AAG9D,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,qCAAqC,EACrC,yBAAyB,EAC1B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAoB,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AA+ClD,eAAO,MAAM,mBAAmB,WAAY,MAAM,UAAU,OAAO,KAAG,SAAS,YAAY,EAQxF,CAAC;AAuEJ,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,aAAa,GAAG,UAAU,CAAC;IAC5G,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;CACjD;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,iBAAiB,EAAE,OAAO,qCAAqC,CAAC;IACzE,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IAC1C,OAAO,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IAC7C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,cAAc,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,GAAG,OAAO,CAAC;IACjF,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,YAAY,EAAE,CAAC;IACnD,KAAK,IAAI,IAAI,CAAC;CACf;AAED,eAAO,MAAM,kBAAkB,YAAa,mBAAmB,KAAG,YAsCjE,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
// @sentropic/cluster-mesh/storage/sqlite — durable node:sqlite backend.
|
|
2
|
+
// Lot 1 boundary: committed ordinary state persists per mutation in one
|
|
3
|
+
// SQLite transaction that re-verifies ownership before COMMIT. Staged
|
|
4
|
+
// attachment, boundary manifests, journal lanes, consumers and grant
|
|
5
|
+
// issuance stay session-local: reopening replays ordinary reads and commits, while
|
|
6
|
+
// staged-family calls on a reloaded populated scope refuse loudly until
|
|
7
|
+
// restart recovery lands. No Python, no addon, no helper binary.
|
|
8
|
+
import { createHash } from 'node:crypto';
|
|
9
|
+
import { StorageInvalidCommandError, UnsupportedProfileError } from '../errors.js';
|
|
10
|
+
import { CanonicalOwnershipError } from '../instance-ownership.js';
|
|
11
|
+
import { createKernel } from '../kernel.js';
|
|
12
|
+
import { rootCapability } from '../root-profiles.js';
|
|
13
|
+
import { createRootStagedKernel, } from '../staged-factory.js';
|
|
14
|
+
import { CANONICAL_INSTANCE_OWNERSHIP_CONTRACT, CanonicalInstanceRegistry, } from '../instance-ownership.js';
|
|
15
|
+
import { openSqliteEngine } from './engine.js';
|
|
16
|
+
import { SqliteStateBackend } from './backend.js';
|
|
17
|
+
import { withSqliteTransaction } from './transaction-port.js';
|
|
18
|
+
const SQLITE_MEANINGS = {
|
|
19
|
+
'atomic-units-v1': 'owned bounded plans;single-writer sequential transactions;one root CAS;durable complete receipts;immutable flush retries only',
|
|
20
|
+
'immutable-chains-v1': 'canonical byte payloads;per-chain allocation;ordered head CAS;retained identities',
|
|
21
|
+
'immutable-boundaries-v1': 'exact head sequence allocation HMAC;owner scope incarnation root manifests;current coverage;no TTL;full page envelopes',
|
|
22
|
+
'scope-outbox-v1': 'one committed segment in selected log;same-session append replay;contiguous fenced checkpoints;registered snapshot resync;poison retained',
|
|
23
|
+
'visibility-barriers-v1': 'persistent ancestry;atomic barrier and content publication;current getter/page denial;covered reparenting refused',
|
|
24
|
+
'staged-units-v1': 'comments framed SHA256 v1;owned ordinals and authenticated owner capabilities;portable bounded preparation;frozen root CAS;terminal recovery',
|
|
25
|
+
'fenced-writers-v1': 'durable owner epoch incarnation lanes;host-clock leases;post-wait gate checks;explicit recovery and rotation',
|
|
26
|
+
'purge-jobs-v1': 'durable bounded jobs;holds and shared references;canonical bytes and staged-item erasure;one verified outcome and notification;no archive restore claim',
|
|
27
|
+
};
|
|
28
|
+
// Lot 1 restart-durable subset: only state inside the persisted scope
|
|
29
|
+
// snapshot (records, chains/heads, index, aggregates, idempotency commits)
|
|
30
|
+
// survives close/reopen. Staged attachment, journal lanes, consumers,
|
|
31
|
+
// barriers, fences, purge jobs and boundary manifests stay session-local,
|
|
32
|
+
// so their profiles remain disabled until S2-S4 deliver and qualify them.
|
|
33
|
+
// immutable-boundaries-v1 is withheld in particular: its manifest registry
|
|
34
|
+
// and staged attachment are not persisted, so advertised manifests would
|
|
35
|
+
// disappear on reopen.
|
|
36
|
+
const LOT1_DURABLE_PROFILES = new Set([
|
|
37
|
+
'atomic-units-v1',
|
|
38
|
+
'immutable-chains-v1',
|
|
39
|
+
]);
|
|
40
|
+
const SQLITE_CLAIMS = Object.freeze(Object.entries(SQLITE_MEANINGS).map(([profile, meaning]) => Object.freeze({
|
|
41
|
+
profile: profile,
|
|
42
|
+
version: '1',
|
|
43
|
+
digest: createHash('sha256').update(JSON.stringify(['storage-profile', 'v1', profile, meaning])).digest('hex'),
|
|
44
|
+
})));
|
|
45
|
+
export const sqliteProfileClaims = (module, resync) => Object.freeze(SQLITE_CLAIMS.filter((claim) => LOT1_DURABLE_PROFILES.has(claim.profile) &&
|
|
46
|
+
(module === 'comments' || claim.profile !== 'staged-units-v1') &&
|
|
47
|
+
(resync || claim.profile !== 'scope-outbox-v1')));
|
|
48
|
+
const READONLY_METHODS = new Set([
|
|
49
|
+
'capability', 'requireOperation', 'readHead', 'readChain', 'readRecord', 'readAggregate', 'readPage',
|
|
50
|
+
'indexGet', 'inspectStaged', 'journalFence', 'journalRead', 'journalInspect', 'externalRead', 'snapshotRead',
|
|
51
|
+
'auditRead', 'purgeProgress', 'purgeJobIds', 'purgeEvidence', 'recoveryEvidence', 'verifyManifest',
|
|
52
|
+
'manifestReadPage', 'readBlob', 'query',
|
|
53
|
+
]);
|
|
54
|
+
const SYNC_METHODS = new Set(['requireOperation', 'capability']);
|
|
55
|
+
const persistAfter = (bound, backend, engine, scope) => new Proxy(bound, {
|
|
56
|
+
get(target, property, receiver) {
|
|
57
|
+
const claims = sqliteProfileClaims(target.moduleId, true);
|
|
58
|
+
if (property === 'profiles')
|
|
59
|
+
return claims;
|
|
60
|
+
if (property === 'capability')
|
|
61
|
+
return (profile) => {
|
|
62
|
+
engine.assertOwnership();
|
|
63
|
+
const claim = claims.find(entry => entry.profile === profile);
|
|
64
|
+
if (!claim)
|
|
65
|
+
throw new UnsupportedProfileError(profile);
|
|
66
|
+
const original = target.capability(profile);
|
|
67
|
+
// Bind ports to the guarded facade, including previously issued
|
|
68
|
+
// ports. Never return methods bound to the memory runtime.
|
|
69
|
+
return Object.freeze({ ...('port' in original ? rootCapability(receiver, profile) : {}), ...claim });
|
|
70
|
+
};
|
|
71
|
+
const value = Reflect.get(target, property, target);
|
|
72
|
+
if (typeof value !== 'function')
|
|
73
|
+
return value;
|
|
74
|
+
// Possession is verified before every call, reads included: loss is
|
|
75
|
+
// terminal and revokes dependent readers. Only mutations persist.
|
|
76
|
+
// Sync ports keep their sync contract; async refusals reject.
|
|
77
|
+
if (SYNC_METHODS.has(String(property))) {
|
|
78
|
+
return (...args) => {
|
|
79
|
+
engine.assertOwnership();
|
|
80
|
+
return value.apply(target, args);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
return async (...args) => {
|
|
84
|
+
const joined = property === 'transact' && backend.joinsTransaction(scope);
|
|
85
|
+
const release = joined ? () => { } : backend.admit();
|
|
86
|
+
try {
|
|
87
|
+
engine.assertOwnership();
|
|
88
|
+
if (property === 'transact' && typeof args[1] === 'function') {
|
|
89
|
+
const callback = args[1];
|
|
90
|
+
args[1] = (tx) => withSqliteTransaction(engine, tx, callback);
|
|
91
|
+
}
|
|
92
|
+
if (READONLY_METHODS.has(String(property)) || joined) {
|
|
93
|
+
const outcome = await value.apply(target, args);
|
|
94
|
+
engine.assertOwnership();
|
|
95
|
+
return outcome;
|
|
96
|
+
}
|
|
97
|
+
// Admission excludes readers and other mutations until rollback
|
|
98
|
+
// or durable publication has completed. Inner-op atomicity stays
|
|
99
|
+
// with the coordinator and its captured root identity.
|
|
100
|
+
const snapshot = backend.snapshotScope(scope);
|
|
101
|
+
const invoke = async () => value.apply(target, args);
|
|
102
|
+
const outcome = property === 'transact' ? await backend.withTransaction(scope, invoke) : await invoke();
|
|
103
|
+
try {
|
|
104
|
+
engine.assertOwnership();
|
|
105
|
+
backend.flushScope(scope);
|
|
106
|
+
}
|
|
107
|
+
catch (error) {
|
|
108
|
+
backend.restoreScope(scope, snapshot);
|
|
109
|
+
throw error;
|
|
110
|
+
}
|
|
111
|
+
return outcome;
|
|
112
|
+
}
|
|
113
|
+
finally {
|
|
114
|
+
release();
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
export const createSqliteKernel = (options) => {
|
|
120
|
+
const { path, moduleId, open, ...neutral } = options;
|
|
121
|
+
if (typeof moduleId !== 'string' || moduleId.length === 0) {
|
|
122
|
+
throw new StorageInvalidCommandError('sqlite kernel requires a moduleId');
|
|
123
|
+
}
|
|
124
|
+
const engine = openSqliteEngine({ ...(open ?? {}), path, moduleId });
|
|
125
|
+
const backend = new SqliteStateBackend(engine);
|
|
126
|
+
const staged = moduleId === 'comments';
|
|
127
|
+
const inner = staged
|
|
128
|
+
? createRootStagedKernel({ ...neutral, backend, moduleId })
|
|
129
|
+
: createKernel({ ...neutral, backend, moduleId });
|
|
130
|
+
const wrapScope = (bound, grant) => persistAfter(bound, backend, engine, { tenantId: grant.scope.tenantId, workspaceId: grant.scope.workspaceId });
|
|
131
|
+
const kernel = {
|
|
132
|
+
engine,
|
|
133
|
+
backend,
|
|
134
|
+
moduleId: inner.moduleId,
|
|
135
|
+
incarnation: inner.incarnation,
|
|
136
|
+
ownershipContract: CANONICAL_INSTANCE_OWNERSHIP_CONTRACT,
|
|
137
|
+
bind: (grant) => wrapScope(inner.bind(grant), grant),
|
|
138
|
+
bindNew: (grant) => wrapScope(inner.bindNew(grant), grant),
|
|
139
|
+
revoke: (token) => inner.revoke(token),
|
|
140
|
+
provisionFence: (...args) => {
|
|
141
|
+
if (!('provisionFence' in inner))
|
|
142
|
+
throw new UnsupportedProfileError('staged-units-v1');
|
|
143
|
+
return inner.provisionFence(...args);
|
|
144
|
+
},
|
|
145
|
+
profiles: (resync) => sqliteProfileClaims(moduleId, resync),
|
|
146
|
+
close: () => {
|
|
147
|
+
backend.assertIdle();
|
|
148
|
+
try {
|
|
149
|
+
backend.flushAll();
|
|
150
|
+
}
|
|
151
|
+
catch (error) {
|
|
152
|
+
if (!(error instanceof CanonicalOwnershipError))
|
|
153
|
+
throw error;
|
|
154
|
+
}
|
|
155
|
+
engine.close();
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
return Object.freeze(kernel);
|
|
159
|
+
};
|
|
160
|
+
export { CanonicalInstanceRegistry };
|
|
161
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/storage/sqlite/index.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,wEAAwE;AACxE,sEAAsE;AACtE,qEAAqE;AACrE,mFAAmF;AACnF,wEAAwE;AACxE,iEAAiE;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAmB,MAAM,cAAc,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EACL,sBAAsB,GAGvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,qCAAqC,EACrC,yBAAyB,GAC1B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAA6C,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,eAAe,GAAG;IACtB,iBAAiB,EACf,+HAA+H;IACjI,qBAAqB,EAAE,mFAAmF;IAC1G,yBAAyB,EACvB,wHAAwH;IAC1H,iBAAiB,EACf,2IAA2I;IAC7I,wBAAwB,EACtB,mHAAmH;IACrH,iBAAiB,EACf,8IAA8I;IAChJ,mBAAmB,EACjB,8GAA8G;IAChH,eAAe,EACb,yJAAyJ;CACnJ,CAAC;AAIX,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE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MAAM,EAAE,EAAE,CAAC,mBAAmB,CAAC,QAAQ,EAAE,MAAM,CAAC;QAC3D,KAAK,EAAE,GAAS,EAAE;YAChB,OAAO,CAAC,UAAU,EAAE,CAAC;YACrB,IAAI,CAAC;gBACH,OAAO,CAAC,QAAQ,EAAE,CAAC;YACrB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,CAAC,KAAK,YAAY,uBAAuB,CAAC;oBAAE,MAAM,KAAK,CAAC;YAC/D,CAAC;YACD,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;KACF,CAAC;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"owner-source.d.ts","sourceRoot":"","sources":["../../../src/storage/sqlite/owner-source.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,QAgD/B,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Only this fixed program runs in the writer process. Caller callbacks
|
|
2
|
+
// execute across IPC in the caller, never alongside SQLite's POSIX locks.
|
|
3
|
+
export const SQLITE_OWNER_SOURCE = String.raw `
|
|
4
|
+
import { readSync, writeSync } from 'node:fs';
|
|
5
|
+
import { DatabaseSync } from 'node:sqlite';
|
|
6
|
+
import { StringDecoder } from 'node:string_decoder';
|
|
7
|
+
const decoder = new StringDecoder('utf8');
|
|
8
|
+
let buffered = '';
|
|
9
|
+
const send = value => {
|
|
10
|
+
const data = Buffer.from(JSON.stringify(value) + '\n');
|
|
11
|
+
for (let offset = 0; offset < data.length;) offset += writeSync(1, data, offset);
|
|
12
|
+
};
|
|
13
|
+
const receive = () => {
|
|
14
|
+
while (!buffered.includes('\n')) {
|
|
15
|
+
const data = Buffer.alloc(65536);
|
|
16
|
+
const size = readSync(0, data);
|
|
17
|
+
if (!size) process.exit(0);
|
|
18
|
+
buffered += decoder.write(data.subarray(0, size));
|
|
19
|
+
}
|
|
20
|
+
const end = buffered.indexOf('\n');
|
|
21
|
+
const line = buffered.slice(0, end);
|
|
22
|
+
buffered = buffered.slice(end + 1);
|
|
23
|
+
return JSON.parse(line);
|
|
24
|
+
};
|
|
25
|
+
const fail = error => send({ error: { name: error.name, message: error.message,
|
|
26
|
+
code: error.code, errcode: error.errcode, errstr: error.errstr } });
|
|
27
|
+
let db;
|
|
28
|
+
try { db = new DatabaseSync(process.argv[1]); send({ result: process.pid }); }
|
|
29
|
+
catch (error) { fail(error); process.exit(1); }
|
|
30
|
+
const dispatch = request => {
|
|
31
|
+
try {
|
|
32
|
+
let result;
|
|
33
|
+
if (request.op === 'close') { db.close(); send({ result: null }); process.exit(0); }
|
|
34
|
+
if (request.op === 'exec') db.exec(request.sql);
|
|
35
|
+
else if (request.op === 'function') db.function(request.sql, request.options, (...args) => {
|
|
36
|
+
send({ callback: request.sql, args });
|
|
37
|
+
for (;;) {
|
|
38
|
+
const reply = receive();
|
|
39
|
+
if (reply.op !== 'callback-result') { dispatch(reply); continue; }
|
|
40
|
+
if (reply.error) throw Object.assign(new Error(reply.error.message), reply.error);
|
|
41
|
+
return reply.result;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
else if (['get', 'all', 'run'].includes(request.op)) {
|
|
45
|
+
result = db.prepare(request.sql)[request.op](...request.args);
|
|
46
|
+
} else if (request.op !== 'exec') throw new Error('Unsupported SQLite owner request');
|
|
47
|
+
send({ result });
|
|
48
|
+
} catch (error) { fail(error); }
|
|
49
|
+
};
|
|
50
|
+
for (;;) dispatch(receive());
|
|
51
|
+
`;
|
|
52
|
+
//# sourceMappingURL=owner-source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"owner-source.js","sourceRoot":"","sources":["../../../src/storage/sqlite/owner-source.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,0EAA0E;AAC1E,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgD5C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { KernelTransaction } from '../scope-runtime.js';
|
|
2
|
+
import type { SqliteEngine } from './engine.js';
|
|
3
|
+
/** The callback owns this port only until it returns. Results are released
|
|
4
|
+
* after revalidation, including reads prepared before ownership loss. */
|
|
5
|
+
export declare const withSqliteTransaction: <T>(engine: SqliteEngine, tx: KernelTransaction, callback: (port: KernelTransaction) => Promise<T>) => Promise<T>;
|
|
6
|
+
//# sourceMappingURL=transaction-port.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction-port.d.ts","sourceRoot":"","sources":["../../../src/storage/sqlite/transaction-port.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;yEACyE;AACzE,eAAO,MAAM,qBAAqB,cAAqB,YAAY,MAAM,iBAAiB,YAC9E,CAAC,IAAI,EAAE,iBAAiB,KAAK,QAAQ,CAAC,CAAC,KAAG,QAAQ,CAAC,CAoB9D,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CanonicalOwnershipError } from '../instance-ownership.js';
|
|
2
|
+
/** The callback owns this port only until it returns. Results are released
|
|
3
|
+
* after revalidation, including reads prepared before ownership loss. */
|
|
4
|
+
export const withSqliteTransaction = async (engine, tx, callback) => {
|
|
5
|
+
let active = true;
|
|
6
|
+
const verify = () => {
|
|
7
|
+
if (!active)
|
|
8
|
+
throw new CanonicalOwnershipError('terminal-loss', 'SQLite transaction callback has ended');
|
|
9
|
+
engine.assertOwnership();
|
|
10
|
+
};
|
|
11
|
+
const port = Object.freeze(Object.fromEntries(Object.entries(tx).map(([property, value]) => [property, async (...args) => {
|
|
12
|
+
verify();
|
|
13
|
+
const result = await value.apply(tx, args);
|
|
14
|
+
verify();
|
|
15
|
+
return result;
|
|
16
|
+
}])));
|
|
17
|
+
try {
|
|
18
|
+
verify();
|
|
19
|
+
const result = await callback(port);
|
|
20
|
+
verify();
|
|
21
|
+
return result;
|
|
22
|
+
}
|
|
23
|
+
finally {
|
|
24
|
+
active = false;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=transaction-port.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction-port.js","sourceRoot":"","sources":["../../../src/storage/sqlite/transaction-port.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAGnE;yEACyE;AACzE,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,EAAK,MAAoB,EAAE,EAAqB,EACxF,QAAiD,EAAc,EAAE;IACjE,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,MAAM,MAAM,GAAG,GAAS,EAAE;QACxB,IAAI,CAAC,MAAM;YAAE,MAAM,IAAI,uBAAuB,CAAC,eAAe,EAAE,uCAAuC,CAAC,CAAC;QACzG,MAAM,CAAC,eAAe,EAAE,CAAC;IAC3B,CAAC,CAAC;IACF,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAC3C,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAe,EAAE,EAAE;YAClF,MAAM,EAAE,CAAC;YACT,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;YAC3C,MAAM,EAAE,CAAC;YACT,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC,CAAC,CACJ,CAAiC,CAAC;IACnC,IAAI,CAAC;QACH,MAAM,EAAE,CAAC;QACT,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,CAAC;QACpC,MAAM,EAAE,CAAC;QACT,OAAO,MAAM,CAAC;IAChB,CAAC;YAAS,CAAC;QAAC,MAAM,GAAG,KAAK,CAAC;IAAC,CAAC;AAC/B,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentropic/cluster-mesh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "Injectable Cluster Mesh control-plane contracts, namespace modules, and single-instance runtime.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
"types": "./dist/storage/postgres/index.d.ts",
|
|
29
29
|
"import": "./dist/storage/postgres/index.js"
|
|
30
30
|
},
|
|
31
|
+
"./storage/sqlite": {
|
|
32
|
+
"types": "./dist/storage/sqlite/index.d.ts",
|
|
33
|
+
"import": "./dist/storage/sqlite/index.js"
|
|
34
|
+
},
|
|
31
35
|
"./comments": {
|
|
32
36
|
"types": "./dist/integrations/comments/index.d.ts",
|
|
33
37
|
"import": "./dist/integrations/comments/index.js"
|
|
@@ -124,6 +128,10 @@
|
|
|
124
128
|
"types": "./dist/mcp/stdio.d.ts",
|
|
125
129
|
"import": "./dist/mcp/stdio.js"
|
|
126
130
|
},
|
|
131
|
+
"./compose/mcp-stateful": {
|
|
132
|
+
"types": "./dist/compose/mcp-stateful.d.ts",
|
|
133
|
+
"import": "./dist/compose/mcp-stateful.js"
|
|
134
|
+
},
|
|
127
135
|
"./compose/mcp": {
|
|
128
136
|
"types": "./dist/compose/mcp.d.ts",
|
|
129
137
|
"import": "./dist/compose/mcp.js"
|
|
@@ -164,6 +172,7 @@
|
|
|
164
172
|
"dependencies": {
|
|
165
173
|
"@sentropic/contracts": "^0.3.0",
|
|
166
174
|
"@sentropic/events": "^0.2.0",
|
|
175
|
+
"@sentropic/mcp-platform": ">=0.4.0 <0.5.0",
|
|
167
176
|
"@stablelib/sha256": "2.0.1",
|
|
168
177
|
"hono": "^4.10.7"
|
|
169
178
|
},
|
|
@@ -173,8 +182,7 @@
|
|
|
173
182
|
"@sentropic/llm-gateway": ">=0.19.0 <0.22.0",
|
|
174
183
|
"@sentropic/mcp-auth": ">=0.2.1 <0.3.0",
|
|
175
184
|
"@sentropic/auth-hono": "^0.15.0 || ^0.16.0",
|
|
176
|
-
"@sentropic/
|
|
177
|
-
"@sentropic/artifacts": ">=0.1.0 <0.2.0",
|
|
185
|
+
"@sentropic/artifacts": ">=0.1.3 <0.2.0",
|
|
178
186
|
"@modelcontextprotocol/sdk": "^1.31.0",
|
|
179
187
|
"jose": "^5.10.0"
|
|
180
188
|
},
|
|
@@ -184,7 +192,6 @@
|
|
|
184
192
|
"@sentropic/llm-gateway": { "optional": true },
|
|
185
193
|
"@sentropic/mcp-auth": { "optional": true },
|
|
186
194
|
"@sentropic/auth-hono": { "optional": true },
|
|
187
|
-
"@sentropic/mcp-platform": { "optional": true },
|
|
188
195
|
"@sentropic/artifacts": { "optional": true },
|
|
189
196
|
"@modelcontextprotocol/sdk": { "optional": true },
|
|
190
197
|
"jose": { "optional": true }
|