@substrat-run/kernel 0.75.0 → 0.76.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/platform-sweep.d.ts
CHANGED
|
@@ -283,7 +283,7 @@ export interface PlatformRequestDrainTotals {
|
|
|
283
283
|
*
|
|
284
284
|
* This is the SCHEDULER'S UNIT OF WORK — a Cloudflare cron, a Durable Object
|
|
285
285
|
* alarm, or a node timer calls it; it holds no timer itself (see
|
|
286
|
-
* `startPlatformSweeper`, and docs/
|
|
286
|
+
* `startPlatformSweeper`, and docs/architecture/scheduler.md). Both halves are code
|
|
287
287
|
* that landed but had no caller: `drainDue` (the retry driver) and the
|
|
288
288
|
* connectors' reconcile sweeps.
|
|
289
289
|
*
|
package/dist/platform-sweep.js
CHANGED
|
@@ -23,7 +23,7 @@ async function mapBounded(items, limit, fn) {
|
|
|
23
23
|
*
|
|
24
24
|
* This is the SCHEDULER'S UNIT OF WORK — a Cloudflare cron, a Durable Object
|
|
25
25
|
* alarm, or a node timer calls it; it holds no timer itself (see
|
|
26
|
-
* `startPlatformSweeper`, and docs/
|
|
26
|
+
* `startPlatformSweeper`, and docs/architecture/scheduler.md). Both halves are code
|
|
27
27
|
* that landed but had no caller: `drainDue` (the retry driver) and the
|
|
28
28
|
* connectors' reconcile sweeps.
|
|
29
29
|
*
|
package/dist/scope-host.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export interface OperationContext {
|
|
|
31
31
|
/** Envelope is stamped kernel-side (id, occurredAt, tenant, scope, actor); input is validated. */
|
|
32
32
|
emit(event: DomainEventInput): void;
|
|
33
33
|
/**
|
|
34
|
-
* Enqueue a PLATFORM INTENT (docs/
|
|
34
|
+
* Enqueue a PLATFORM INTENT (docs/architecture/platform-intents.md) — how a sandbox-clean vertical asks
|
|
35
35
|
* the platform to perform a privileged action (e.g. provision a sibling scope) without an upward
|
|
36
36
|
* call. Writes a durable row into this scope's `_substrat_platform_requests` spine, atomic with
|
|
37
37
|
* the operation; the platform pulls and executes it later, knowing the tenant inherently (it reads
|
|
@@ -140,7 +140,7 @@ export interface OperationContext {
|
|
|
140
140
|
revoke(principal: PrincipalId, permission: PermissionKey, entity: EntityRef): Promise<void>;
|
|
141
141
|
/**
|
|
142
142
|
* Run `fn` as a SUB-TRANSACTION of this operation (#770,
|
|
143
|
-
* docs/
|
|
143
|
+
* docs/rfc/sub-transactions.md) — the boundary that makes catching an
|
|
144
144
|
* engine error safe.
|
|
145
145
|
*
|
|
146
146
|
* A vertical composes engine in-scope functions inside one scope transaction,
|
|
@@ -1171,7 +1171,7 @@ export interface HostAdmin {
|
|
|
1171
1171
|
/**
|
|
1172
1172
|
* A COMPLETE dump of the scope's database — every table (the vertical's own AND the
|
|
1173
1173
|
* `_substrat_*` spine), its DDL, and every row. This is the read side of the
|
|
1174
|
-
* preview/snapshot primitive (docs/
|
|
1174
|
+
* preview/snapshot primitive (docs/architecture/preview-and-snapshots.md §3): the source a
|
|
1175
1175
|
* fork copies into a new scope, or a governed `substrat scope pull` writes to a file.
|
|
1176
1176
|
*
|
|
1177
1177
|
* Unlike `readScopeTable` — bounded and blob-as-null, deliberately NOT a dump — this
|
|
@@ -2001,7 +2001,7 @@ export interface ScopeHost {
|
|
|
2001
2001
|
attachments(principal: PrincipalId, tenantId: TenantId, scopeId: ScopeId): Promise<ScopeAttachments>;
|
|
2002
2002
|
/**
|
|
2003
2003
|
* Provision a NEW scope and load a `ScopeDump` into it — the write side of
|
|
2004
|
-
* `exportScope` and the fork primitive (docs/
|
|
2004
|
+
* `exportScope` and the fork primitive (docs/architecture/preview-and-snapshots.md §3):
|
|
2005
2005
|
* a preview/snapshot is a fresh scope carrying a copy of another's data.
|
|
2006
2006
|
*
|
|
2007
2007
|
* The new scope's schema, rows, AND migration frontier come from the dump verbatim
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `ctx.atomic` — the engine-seam sub-transaction (#770,
|
|
3
|
-
* docs/
|
|
3
|
+
* docs/rfc/sub-transactions.md).
|
|
4
4
|
*
|
|
5
5
|
* A vertical composes engine in-scope functions inside ONE scope transaction,
|
|
6
6
|
* and the adapter rolls back only if the whole handler throws. So a vertical
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@substrat-run/kernel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.76.0",
|
|
4
4
|
"description": "Substrat kernel contracts and services — pure TypeScript, no platform imports (D-14)",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@substrat-run/contracts": "^0.
|
|
25
|
+
"@substrat-run/contracts": "^0.76.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|