@substrat-run/adapter-cloudflare 0.228.0 → 0.230.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/broker-lake.d.ts +26 -2
- package/dist/broker-lake.d.ts.map +1 -1
- package/dist/broker-lake.js +56 -3
- package/dist/broker-lake.js.map +1 -1
- package/dist/control-plane-do.d.ts +50 -13
- package/dist/control-plane-do.d.ts.map +1 -1
- package/dist/control-plane-do.js +128 -52
- package/dist/control-plane-do.js.map +1 -1
- package/dist/delivery-broker-do.d.ts +26 -1
- package/dist/delivery-broker-do.d.ts.map +1 -1
- package/dist/delivery-broker-do.js +50 -3
- package/dist/delivery-broker-do.js.map +1 -1
- package/dist/delivery-broker-platform.d.ts +24 -2
- package/dist/delivery-broker-platform.d.ts.map +1 -1
- package/dist/delivery-broker-platform.js +43 -2
- package/dist/delivery-broker-platform.js.map +1 -1
- package/dist/delivery-handoff.d.ts +8 -1
- package/dist/delivery-handoff.d.ts.map +1 -1
- package/dist/delivery-handoff.js +8 -5
- package/dist/delivery-handoff.js.map +1 -1
- package/dist/directory-cutover.d.ts +93 -1
- package/dist/directory-cutover.d.ts.map +1 -1
- package/dist/directory-cutover.js +85 -2
- package/dist/directory-cutover.js.map +1 -1
- package/dist/directory-objects.d.ts +12 -0
- package/dist/directory-objects.d.ts.map +1 -1
- package/dist/directory-objects.js +8 -1
- package/dist/directory-objects.js.map +1 -1
- package/dist/directory-placement.d.ts.map +1 -1
- package/dist/directory-placement.js +1 -0
- package/dist/directory-placement.js.map +1 -1
- package/dist/directory-tenant-identities.d.ts +30 -0
- package/dist/directory-tenant-identities.d.ts.map +1 -0
- package/dist/directory-tenant-identities.js +64 -0
- package/dist/directory-tenant-identities.js.map +1 -0
- package/dist/directory-tenant-tuples.d.ts +30 -3
- package/dist/directory-tenant-tuples.d.ts.map +1 -1
- package/dist/directory-tenant-tuples.js +27 -0
- package/dist/directory-tenant-tuples.js.map +1 -1
- package/dist/host.d.ts +35 -5
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +110 -19
- package/dist/host.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/peer-call-target.d.ts +16 -2
- package/dist/peer-call-target.d.ts.map +1 -1
- package/dist/peer-call-target.js +36 -6
- package/dist/peer-call-target.js.map +1 -1
- package/dist/reconcile-on-wake.d.ts +17 -1
- package/dist/reconcile-on-wake.d.ts.map +1 -1
- package/dist/reconcile-on-wake.js +84 -12
- package/dist/reconcile-on-wake.js.map +1 -1
- package/dist/route-read-model-publisher.d.ts.map +1 -1
- package/dist/route-read-model-publisher.js +4 -0
- package/dist/route-read-model-publisher.js.map +1 -1
- package/dist/route-resolver.d.ts +19 -2
- package/dist/route-resolver.d.ts.map +1 -1
- package/dist/route-resolver.js +25 -5
- package/dist/route-resolver.js.map +1 -1
- package/dist/scope-do.d.ts +19 -0
- package/dist/scope-do.d.ts.map +1 -1
- package/dist/scope-do.js +398 -25
- package/dist/scope-do.js.map +1 -1
- package/dist/scope-facets.d.ts +121 -0
- package/dist/scope-facets.d.ts.map +1 -0
- package/dist/scope-facets.js +98 -0
- package/dist/scope-facets.js.map +1 -0
- package/dist/scope-supervisor-do.d.ts +93 -0
- package/dist/scope-supervisor-do.d.ts.map +1 -0
- package/dist/scope-supervisor-do.js +504 -0
- package/dist/scope-supervisor-do.js.map +1 -0
- package/dist/scope-sweeper-do.d.ts +7 -1
- package/dist/scope-sweeper-do.d.ts.map +1 -1
- package/dist/scope-sweeper-do.js +17 -1
- package/dist/scope-sweeper-do.js.map +1 -1
- package/dist/scope-wake.d.ts +5 -0
- package/dist/scope-wake.d.ts.map +1 -1
- package/dist/scope-wake.js +2 -0
- package/dist/scope-wake.js.map +1 -1
- package/dist/scope-work.d.ts +1 -1
- package/dist/scope-work.js +1 -1
- package/dist/scope-work.js.map +1 -1
- package/dist/supplied-pass-box.d.ts +77 -0
- package/dist/supplied-pass-box.d.ts.map +1 -0
- package/dist/supplied-pass-box.js +265 -0
- package/dist/supplied-pass-box.js.map +1 -0
- package/dist/tenant-due-index-do.d.ts +76 -0
- package/dist/tenant-due-index-do.d.ts.map +1 -0
- package/dist/tenant-due-index-do.js +90 -0
- package/dist/tenant-due-index-do.js.map +1 -0
- package/dist/tenant-due-nudge.d.ts +66 -0
- package/dist/tenant-due-nudge.d.ts.map +1 -0
- package/dist/tenant-due-nudge.js +77 -0
- package/dist/tenant-due-nudge.js.map +1 -0
- package/dist/tenant-due-work-do.d.ts +26 -0
- package/dist/tenant-due-work-do.d.ts.map +1 -1
- package/dist/tenant-due-work-do.js +69 -5
- package/dist/tenant-due-work-do.js.map +1 -1
- package/package.json +12 -12
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A tenant's identity links (`_substrat_identities`, K-22/K-23: an external subject bound to a principal
|
|
3
|
+
* in the tenant), as SQL over any store that holds the table: the one directory (`ControlPlaneDO`) and,
|
|
4
|
+
* for a tenant whose directory reads are cut over (K-68 step 3e, `directory-cutover.ts`), the tenant's
|
|
5
|
+
* own `TenantDirectoryDO`. Both run these functions, so a link is judged a no-op or a conflict, and an
|
|
6
|
+
* unlink removes the same rows, wherever it lands.
|
|
7
|
+
*
|
|
8
|
+
* The cross-tenant reads ("which tenants does this login belong to": `identityTenants`,
|
|
9
|
+
* `identityMemberships`) are not here. They read every tenant's links at once, which no tenant's object
|
|
10
|
+
* holds, so they stay on the directory, whose copy of a cut-over tenant's links is the fallback.
|
|
11
|
+
*/
|
|
12
|
+
import { substratError } from '@substrat-run/contracts';
|
|
13
|
+
export const IDENTITIES = '_substrat_identities';
|
|
14
|
+
export function resolveIdentityIn(sql, tenantId, provider, externalId) {
|
|
15
|
+
const row = sql
|
|
16
|
+
.exec(`SELECT principal_id, scope_id FROM _substrat_identities
|
|
17
|
+
WHERE tenant_id = ? AND provider = ? AND external_id = ?`, tenantId, provider, externalId)
|
|
18
|
+
.toArray()[0];
|
|
19
|
+
if (!row)
|
|
20
|
+
return undefined;
|
|
21
|
+
return { principal: row.principal_id, scopeId: row.scope_id };
|
|
22
|
+
}
|
|
23
|
+
export function dumpIdentityRows(sql, tenantId) {
|
|
24
|
+
return sql
|
|
25
|
+
.exec(`SELECT provider, external_id, principal_id, scope_id FROM _substrat_identities WHERE tenant_id = ?`, tenantId)
|
|
26
|
+
.toArray();
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Bind `provider:externalId` to `principal` in the tenant, in the caller's transaction. False when the
|
|
30
|
+
* same binding is already held (a no-op, not audited upstream); a conflict when another principal holds it.
|
|
31
|
+
*/
|
|
32
|
+
export function linkIdentityIn(store, provider, externalId, principal, tenantId, scopeId, createdAt) {
|
|
33
|
+
const existing = store.sql
|
|
34
|
+
.exec(`SELECT principal_id FROM _substrat_identities
|
|
35
|
+
WHERE tenant_id = ? AND provider = ? AND external_id = ?`, tenantId, provider, externalId)
|
|
36
|
+
.toArray()[0];
|
|
37
|
+
if (existing) {
|
|
38
|
+
if (existing.principal_id === principal)
|
|
39
|
+
return false;
|
|
40
|
+
throw substratError('conflict', `identity ${provider}:${externalId} in tenant ${tenantId} is already bound to ${existing.principal_id}`);
|
|
41
|
+
}
|
|
42
|
+
store.sql.exec(`INSERT INTO _substrat_identities
|
|
43
|
+
(provider, external_id, principal_id, tenant_id, scope_id, created_at)
|
|
44
|
+
VALUES (?, ?, ?, ?, ?, ?)`, provider, externalId, principal, tenantId, scopeId, createdAt);
|
|
45
|
+
store.touched?.(IDENTITIES, [tenantId, provider, externalId]);
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Remove every link of `principal` in the tenant, in the caller's transaction. Whether a row was
|
|
50
|
+
* deleted, so a no-op stays silent. A principal may hold several links (one per provider and subject),
|
|
51
|
+
* and each removed key is recorded on its own: the object owes the directory every one of them.
|
|
52
|
+
*/
|
|
53
|
+
export function unlinkIdentityIn(store, tenantId, principal) {
|
|
54
|
+
const held = store.sql
|
|
55
|
+
.exec(`SELECT provider, external_id FROM _substrat_identities WHERE tenant_id = ? AND principal_id = ?`, tenantId, principal)
|
|
56
|
+
.toArray();
|
|
57
|
+
if (held.length === 0)
|
|
58
|
+
return false;
|
|
59
|
+
store.sql.exec(`DELETE FROM _substrat_identities WHERE tenant_id = ? AND principal_id = ?`, tenantId, principal);
|
|
60
|
+
for (const r of held)
|
|
61
|
+
store.touched?.(IDENTITIES, [tenantId, r.provider, r.external_id]);
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=directory-tenant-identities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directory-tenant-identities.js","sourceRoot":"","sources":["../src/directory-tenant-identities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,MAAM,CAAC,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAgBjD,MAAM,UAAU,iBAAiB,CAC/B,GAAe,EACf,QAAgB,EAChB,QAAgB,EAChB,UAAkB;IAElB,MAAM,GAAG,GAAG,GAAG;SACZ,IAAI,CACH;gEAC0D,EAC1D,QAAQ,EACR,QAAQ,EACR,UAAU,CACX;SACA,OAAO,EAAE,CAAC,CAAC,CAA6E,CAAC;IAC5F,IAAI,CAAC,GAAG;QAAE,OAAO,SAAS,CAAC;IAC3B,OAAO,EAAE,SAAS,EAAE,GAAG,CAAC,YAAY,EAAE,OAAO,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,GAAe,EAAE,QAAgB;IAChE,OAAO,GAAG;SACP,IAAI,CAAC,oGAAoG,EAAE,QAAQ,CAAC;SACpH,OAAO,EAA8B,CAAC;AAC3C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc,CAC5B,KAAoB,EACpB,QA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,CAAC,CAAC,CAAC;IACzF,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { type MembershipChange, type MembershipChangeResult, type PermissionTupleRow, type SwitchKind, type SwitchSql, type TenantDirectoryReader } from '@substrat-run/kernel';
|
|
17
17
|
import { type OrgRow } from './directory-tenant-orgs.js';
|
|
18
18
|
import { type EntitlementGrantInput, type EntitlementGrantResult, type EntitlementRow } from './directory-tenant-entitlements.js';
|
|
19
|
+
import { type IdentityRow } from './directory-tenant-identities.js';
|
|
19
20
|
export declare const TENANT_TUPLES = "_substrat_tenant_tuples";
|
|
20
21
|
export declare const MEMBERSHIP_FENCES = "_substrat_membership_fences";
|
|
21
22
|
/** One org membership as `listMembers` reads it (#2047: with its expiry). */
|
|
@@ -73,7 +74,7 @@ export declare function assignTenantRoleIn(store: TupleStore, tenantId: string,
|
|
|
73
74
|
*/
|
|
74
75
|
export declare function applyMembershipIn(store: TupleStore, change: MembershipChange, row: TupleAdminEntry, orgRow: TupleAdminEntry | undefined, reserved: readonly string[]): MembershipChangeResult;
|
|
75
76
|
/**
|
|
76
|
-
* One unit of a cut-over family (tuples and fences, then orgs, then entitlements), as the directory hands it to a cut-over
|
|
77
|
+
* One unit of a cut-over family (tuples and fences, then orgs, then entitlements, then identity links), as the directory hands it to a cut-over
|
|
77
78
|
* tenant's object (`tupleFirst`). Whatever the directory alone holds is decided there first and handed
|
|
78
79
|
* in: whether an org exists while orgs are still the directory's (`orgKnown`; an org is never removed
|
|
79
80
|
* from a live tenant, so the answer cannot go stale; null once orgs are the object's, which then reads
|
|
@@ -131,12 +132,25 @@ export type TupleOp = {
|
|
|
131
132
|
kind: 'revokeEntitlement';
|
|
132
133
|
key: string;
|
|
133
134
|
audit: TupleAdminEntry | null;
|
|
135
|
+
} | {
|
|
136
|
+
kind: 'linkIdentity';
|
|
137
|
+
provider: string;
|
|
138
|
+
externalId: string;
|
|
139
|
+
principal: string;
|
|
140
|
+
scopeId: string | null;
|
|
141
|
+
createdAt: string;
|
|
142
|
+
audit: TupleAdminEntry | null;
|
|
143
|
+
} | {
|
|
144
|
+
kind: 'unlinkIdentity';
|
|
145
|
+
principal: string;
|
|
146
|
+
audit: TupleAdminEntry | null;
|
|
134
147
|
};
|
|
135
148
|
/**
|
|
136
149
|
* What each op answers: `write` nothing, `assignRole` its refusal, `membership` its result,
|
|
137
150
|
* `revokeAndFence` whether it changed, `orgTuple` nothing or an unknown org, `createOrg` whether it
|
|
138
151
|
* created or the slug's conflict (refusals cross the hop as data, so their code survives it),
|
|
139
|
-
* `grantEntitlement` its before/after, `revokeEntitlement` the row it removed
|
|
152
|
+
* `grantEntitlement` its before/after, `revokeEntitlement` the row it removed, `linkIdentity` whether it
|
|
153
|
+
* linked or the binding's conflict, `unlinkIdentity` whether it removed anything.
|
|
140
154
|
*/
|
|
141
155
|
export type TupleOpResult = Record<string, never> | {
|
|
142
156
|
refused?: string;
|
|
@@ -152,6 +166,10 @@ export type TupleOpResult = Record<string, never> | {
|
|
|
152
166
|
grant: EntitlementGrantResult;
|
|
153
167
|
} | {
|
|
154
168
|
revoked: EntitlementRow | null;
|
|
169
|
+
} | {
|
|
170
|
+
linked: boolean;
|
|
171
|
+
} | {
|
|
172
|
+
unlinked: boolean;
|
|
155
173
|
};
|
|
156
174
|
/** Run one op in the caller's transaction. */
|
|
157
175
|
export declare function runTupleOp(store: TupleStore, tenantId: string, op: TupleOp): TupleOpResult;
|
|
@@ -182,6 +200,15 @@ export type TupleRead = {
|
|
|
182
200
|
kind: 'holdsEntitlement';
|
|
183
201
|
key: string;
|
|
184
202
|
now: string;
|
|
203
|
+
} | {
|
|
204
|
+
kind: 'identity';
|
|
205
|
+
provider: string;
|
|
206
|
+
externalId: string;
|
|
207
|
+
} | {
|
|
208
|
+
kind: 'identities';
|
|
185
209
|
};
|
|
186
|
-
export declare function runTupleRead(sql: SqlStorage, kernelSql: SwitchSql, tenantId: string, q: TupleRead): PermissionTupleRow[] | MemberTupleRow[] | string[] | OrgRow | OrgRow[] | EntitlementRow[] |
|
|
210
|
+
export declare function runTupleRead(sql: SqlStorage, kernelSql: SwitchSql, tenantId: string, q: TupleRead): PermissionTupleRow[] | MemberTupleRow[] | string[] | OrgRow | OrgRow[] | EntitlementRow[] | IdentityRow[] | {
|
|
211
|
+
principal: string;
|
|
212
|
+
scopeId: string | null;
|
|
213
|
+
} | boolean | null;
|
|
187
214
|
//# sourceMappingURL=directory-tenant-tuples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory-tenant-tuples.d.ts","sourceRoot":"","sources":["../src/directory-tenant-tuples.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAQL,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAwC,KAAK,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/F,OAAO,EAML,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACpB,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"directory-tenant-tuples.d.ts","sourceRoot":"","sources":["../src/directory-tenant-tuples.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAQL,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAwC,KAAK,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/F,OAAO,EAML,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACpB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAyE,KAAK,WAAW,EAA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@ -17,6 +17,7 @@ import { MEMBERSHIP_FENCE_SINCE_SQL, memberAddedAudit, orgChangeBound, RAISE_MEM
|
|
|
17
17
|
import { readRole } from './directory-tenant-roles.js';
|
|
18
18
|
import { createOrgIn, listOrgRows, readOrgRow } from './directory-tenant-orgs.js';
|
|
19
19
|
import { entitlementAuditOf, grantEntitlementIn, holdsEntitlement, listEntitlementRows, revokeEntitlementIn, } from './directory-tenant-entitlements.js';
|
|
20
|
+
import { dumpIdentityRows, linkIdentityIn, resolveIdentityIn, unlinkIdentityIn } from './directory-tenant-identities.js';
|
|
20
21
|
export const TENANT_TUPLES = '_substrat_tenant_tuples';
|
|
21
22
|
export const MEMBERSHIP_FENCES = '_substrat_membership_fences';
|
|
22
23
|
// -- reads ------------------------------------------------------------------
|
|
@@ -194,6 +195,27 @@ export function runTupleOp(store, tenantId, op) {
|
|
|
194
195
|
store.admin({ ...op.audit, before: entitlementAuditOf(op.key, revoked) });
|
|
195
196
|
return { revoked };
|
|
196
197
|
}
|
|
198
|
+
case 'linkIdentity': {
|
|
199
|
+
let linked;
|
|
200
|
+
try {
|
|
201
|
+
linked = linkIdentityIn(store, op.provider, op.externalId, op.principal, tenantId, op.scopeId, op.createdAt);
|
|
202
|
+
}
|
|
203
|
+
catch (err) {
|
|
204
|
+
// Thrown before any write: answered as data, so the directory rethrows it with its code.
|
|
205
|
+
if (err.code === 'conflict')
|
|
206
|
+
return { conflict: err.message };
|
|
207
|
+
throw err;
|
|
208
|
+
}
|
|
209
|
+
if (linked && op.audit)
|
|
210
|
+
store.admin(op.audit);
|
|
211
|
+
return { linked };
|
|
212
|
+
}
|
|
213
|
+
case 'unlinkIdentity': {
|
|
214
|
+
const unlinked = unlinkIdentityIn(store, tenantId, op.principal);
|
|
215
|
+
if (unlinked && op.audit)
|
|
216
|
+
store.admin(op.audit);
|
|
217
|
+
return { unlinked };
|
|
218
|
+
}
|
|
197
219
|
default:
|
|
198
220
|
// An op this build does not know (a newer directory against an older object) writes nothing.
|
|
199
221
|
throw new Error(`unknown tuple op ${op.kind}`);
|
|
@@ -217,6 +239,11 @@ export function runTupleRead(sql, kernelSql, tenantId, q) {
|
|
|
217
239
|
return listEntitlementRows(sql, tenantId);
|
|
218
240
|
case 'holdsEntitlement':
|
|
219
241
|
return holdsEntitlement(sql, tenantId, q.key, q.now);
|
|
242
|
+
case 'identity':
|
|
243
|
+
// An unlinked subject is answered null: `undefined` is not a value every hop keeps.
|
|
244
|
+
return resolveIdentityIn(sql, tenantId, q.provider, q.externalId) ?? null;
|
|
245
|
+
case 'identities':
|
|
246
|
+
return dumpIdentityRows(sql, tenantId);
|
|
220
247
|
}
|
|
221
248
|
}
|
|
222
249
|
//# sourceMappingURL=directory-tenant-tuples.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory-tenant-tuples.js","sourceRoot":"","sources":["../src/directory-tenant-tuples.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EACL,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,0BAA0B,EAC1B,mBAAmB,EACnB,cAAc,EACd,YAAY,GAOb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAe,MAAM,4BAA4B,CAAC;AAC/F,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,GAIpB,MAAM,oCAAoC,CAAC;AAE5C,MAAM,CAAC,MAAM,aAAa,GAAG,yBAAyB,CAAC;AACvD,MAAM,CAAC,MAAM,iBAAiB,GAAG,6BAA6B,CAAC;AA2B/D,8EAA8E;AAE9E,MAAM,UAAU,eAAe,CAAC,GAAe,EAAE,QAAgB,EAAE,OAAe,EAAE,cAAsB;IACxG,OAAO,GAAG;SACP,IAAI,CACH;+DACyD,EACzD,QAAQ,EACR,OAAO,EACP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,CAAC,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;QACxE,KAAK,KAAK;YACR,OAAO,UAAU,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;QACpD,KAAK,MAAM;YACT,OAAO,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QACpC,KAAK,cAAc;YACjB,OAAO,mBAAmB,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QAC5C,KAAK,kBAAkB;YACrB,OAAO,gBAAgB,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;QACvD,KAAK,UAAU;YACb,oFAAoF;YACpF,OAAO,iBAAiB,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC;QAC5E,KAAK,YAAY;YACf,OAAO,gBAAgB,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC3C,CAAC;AACH,CAAC"}
|
package/dist/host.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ import type { DueScheduleGate, LoadProjection, LoadRoleRepair, PurgeSweepMode, R
|
|
|
3
3
|
import { type SystemDoorMoved } from './system-door.js';
|
|
4
4
|
import { type ExecutorRouteNotDue } from './executor-route.js';
|
|
5
5
|
import { type WireFailure, type PushedImport, type ExportedBatch, type ExportReadInput, type ImportBatch, type ImportResult, type ImportState, type ManifestImports, type ManifestConnectionLandings, type ManifestConnectors, type ImportCursorMoveAt, type ImportCursorMoved, type AttachmentRecord, type UploadLinkView, type BlobStoreHandle, type ImpersonationSession, type ImpersonationSessionId, type ConnectionId, type ModuleId, type SystemSwitchOutcome, type SystemScheduleEntry, type PeerGrantsEntry, type EntityHistoryInput, type EventCauseInput, type EventEffectsInput, type EffectsTree, type InvocationEventsInput, type InvocationEvents, type DeadLettersInput, type DeadLetter, type LifecycleFlowInput, type LifecycleFlowResult, type OperationSeriesInput, type OperationSeriesResult, type CauseChain, type EventFacetInput, type EventFacetResult, type HistoryEntry, type Page, type SweepRunsPayload, type DomainEvent, type EntitlementGrant, type EntityRef, type ProjectedConnectionGrant, type ProjectedConnectionKey, type ProjectedIdentityLink, type PermissionKey, type PlatformActorId, type OnBehalfOf, type BecomeCapabilityInput, type BoundedBecomeMint, type BoundedBecomeRevoke, type BoundedUnbind, type BecomeLinkState, type PrincipalBecomeCapabilityInput, type PrincipalBindLinkInput, type BoundedBindLinkMint, type CapabilityExchangeOptions, type CapabilityExchange, type CapabilityId, type CapabilityFilter, type CapabilityPage, type CapabilityRecord, type MintedCapability, type PrincipalId, type ResolvedIdentity, type QueryScopeInput, type ReadScopeTableInput, type RoleDefinition, type ScopeDumpInput, type ScopeDumpTable, type ScopeDumpChange, type ScopeDumpChanges, type ScopeDumpPage, type ScopeDumpPageTable, type ScopeDumpSample, type ScopeCopyEstimate, type ScopeLineage, type SubjectReadPage, type SubjectReadRequest, type ScopeId, type PlatformRequestEntry, type PlatformRequestFilter, type PlatformRequestId, type ScopeTable, type DenialFilter, type DenialSummary, type PermissionDenial, type RefusalFilter, type RefusalRecord, type ScopeQueryResult, type ScopeTablePage, type TenantId, type TenantStoreHandle, type ModuleObjectsRecord, type Coverage, type PeerCoverage, type PeerSwitchOutcome, type VerticalCaller, type LifecycleDelivery, type ScopeLifecycle, type StoredScopeLifecycle } from '@substrat-run/contracts';
|
|
6
|
-
import { type
|
|
6
|
+
import { type ContainerPassDoorDeps, type ContainerPassLauncher, type DetachedPassTicket, type SystemAttachments } from '@substrat-run/kernel';
|
|
7
|
+
import { type RedeemedUploadLink, type UploadLinkInspection, type UploadLinkRedeemInput, type ChildScopeCaller, type CarriedAway, type KeptCopy, type LoadMarker, type AppliedMigration, type BlobStoreProvisionInput, type ScopeAttachments, type AttachmentUploadInput, type OpenedAttachment, type OpenedAttachmentStream, type AttachmentOpenOptions, type ExecutorDeadLetter, type ExecutorDrainReport, type ExecutorHandler, type ExecutorRetryPolicy, type MigrateScopeOutcome, type MigrationFrontier, type ConnectorHandler, type ConnectorOptions, type FetchLike, type SecretBox, type HostAdmin, type ModuleRegistration, type OperationHandler, type PermissionChecker, type ProvisionScopeInput, type ScheduleRegistration, type ScheduleRunReport, type ScheduleTick, type ScheduleStateKind, type ScopeHost, type ScopeStub, type PersonScopeOptions, type ScopeStubOptions, type InvokeOptions, type TenantRelationalStore, type TenantStoreProvisionInput, type FreshnessRegistration, type FreshnessReport, type AttachmentExtractor, type AttachmentTextBackfillBatch, type AttachmentTextBounds, type AttachmentTextRecheckPage, type ExtractionOutcome, type JobDriveReport, type JobDueKey, type JobHandler, type JobRun, type JobRunClaim, type JobRunFilter, type JobRunPatch, type JobRunScope, type JobRunRow, type JobStepRow, type StartJobRunInput, type LiveReadSurface, type SubjectRedactionCounts, type LegacySubjectRedactionCounts, type PlatformRequestRawRow, type UndrainedEvents, type UndrainedRead, type OutboxSubscriber, type SwitchOutcome, type SwitchedOff, type RecordedOffCarry, type SwitchCarryWire, type SystemScheduleState, type PeerGrantsRow, type SystemGrantsEntry, type ConnectorCallRecorder, type ScopeRoleHolder, type RelayScopeDoors, type Holdings, type ScopeDelegation, type DumpTable, type RoleState, type DeclaredPermissions, type PurgePass } from '@substrat-run/kernel';
|
|
7
8
|
import { type OrphanSweepReport, type OrphanSweepRequest } from '@substrat-run/kernel';
|
|
8
9
|
import { type CopyRestoreFence } from '@substrat-run/kernel';
|
|
9
10
|
import { type ScopeStoreHostOptions, type ScopeStoreStubOptions, type StoreErasureReplay, type StoreStub } from '@substrat-run/kernel';
|
|
@@ -420,12 +421,13 @@ interface ScopeStubRpc {
|
|
|
420
421
|
jobRunList(filter: JobRunFilter): Promise<JobRunRow[]>;
|
|
421
422
|
jobRunClaim(id: string, owner: string, leaseMs: number): Promise<JobRunClaim | null>;
|
|
422
423
|
jobRunBegin(id: string, owner: string, marginMs: number): Promise<boolean>;
|
|
423
|
-
|
|
424
|
+
/** D-85: `scope` stamps a declared run's `job.run-ended` event; a store from before sends none. */
|
|
425
|
+
jobRunMiss(id: string, owner: string, note: string, scope?: JobRunScope): Promise<{
|
|
424
426
|
misses: number;
|
|
425
427
|
failed: boolean;
|
|
426
428
|
} | null>;
|
|
427
|
-
jobRunPatch(id: string, patch: JobRunPatch, owner?: string): Promise<boolean>;
|
|
428
|
-
jobCommitPass(id: string, patch: JobRunPatch, owner?: string): Promise<boolean>;
|
|
429
|
+
jobRunPatch(id: string, patch: JobRunPatch, owner?: string, scope?: JobRunScope): Promise<boolean>;
|
|
430
|
+
jobCommitPass(id: string, patch: JobRunPatch, owner?: string, scope?: JobRunScope): Promise<boolean>;
|
|
429
431
|
jobStepBegin(runId: string, step: string, owner: string, leaseMs: number): Promise<{
|
|
430
432
|
held: boolean;
|
|
431
433
|
row: JobStepRow | null;
|
|
@@ -539,6 +541,10 @@ interface ScopeStubRpc {
|
|
|
539
541
|
systemAttachmentRemoveReply(attachmentId: string, moduleId: ModuleId, tenantId: TenantId, scopeId: ScopeId,
|
|
540
542
|
/** #1834: the instance the system door's gate read; on any other it answers `SystemDoorMoved`. */
|
|
541
543
|
systemDoorInstance?: string): Promise<DoReply<AttachmentRecord | null | SystemDoorMoved>>;
|
|
544
|
+
/** #3752: a module's own file, as its system principal — the target's write key, the system door's pin. */
|
|
545
|
+
systemAttachmentAddReply(record: AttachmentRecord, moduleId: ModuleId, tenantId: TenantId, scopeId: ScopeId,
|
|
546
|
+
/** #1834: the instance the system door's gate read; on any other it answers `SystemDoorMoved`. */
|
|
547
|
+
systemDoorInstance?: string): Promise<DoReply<AttachmentRecord | SystemDoorMoved>>;
|
|
542
548
|
attachmentRemoveReply(attachmentId: string, principal: PrincipalId, tenantId: TenantId, scopeId: ScopeId, connectionId?: string): Promise<DoReply<AttachmentRecord | null>>;
|
|
543
549
|
/**
|
|
544
550
|
* #1686: the capability session's reads — `sessionHash` resolved inside the DO's queue.
|
|
@@ -1269,6 +1275,12 @@ export interface EventDrainDelegation {
|
|
|
1269
1275
|
}): Promise<number | null>;
|
|
1270
1276
|
}
|
|
1271
1277
|
export interface CloudflareScopeHostOptions {
|
|
1278
|
+
/**
|
|
1279
|
+
* D-85 (#3752): where this host runs the passes of jobs placed in a container. Omitted, the launcher
|
|
1280
|
+
* the platform entry published in this script (`registeredContainerPasses`) — the supplied pass box —
|
|
1281
|
+
* and with none published, a container-placed job runs by the handler `registerJob` gave it, if any.
|
|
1282
|
+
*/
|
|
1283
|
+
containerPasses?: ContainerPassLauncher;
|
|
1272
1284
|
/**
|
|
1273
1285
|
* The parsers attachment text is extracted with (#1575, K-43) — `defaultAttachmentExtractors()`
|
|
1274
1286
|
* from `@substrat-run/attachment-extractors`, or a list of the deployment's own. The kernel
|
|
@@ -1585,6 +1597,8 @@ export declare class CloudflareScopeHost implements ScopeHost {
|
|
|
1585
1597
|
private readonly crossVertical;
|
|
1586
1598
|
/** Module id → its declared recurring schedules (#383), for `registeredSchedules`/`runDueSchedules`. */
|
|
1587
1599
|
private readonly moduleSchedules;
|
|
1600
|
+
/** #3752: the keys each module's declared jobs hold as its system principal (`jobSystemKeysOf`). */
|
|
1601
|
+
private readonly moduleJobKeys;
|
|
1588
1602
|
/** #1706: every registered module's `peers`, as declared — read as one union per peer. */
|
|
1589
1603
|
private readonly peerSources;
|
|
1590
1604
|
/** #1232: declared freshness per module. Registered UNCONDITIONALLY — the schedule
|
|
@@ -1609,6 +1623,8 @@ export declare class CloudflareScopeHost implements ScopeHost {
|
|
|
1609
1623
|
private readonly orphanSweepClock;
|
|
1610
1624
|
/** The parsers attachment text is extracted with (K-43); the host's own, never imported here. */
|
|
1611
1625
|
private readonly attachmentExtractors;
|
|
1626
|
+
/** D-85 (#3752): `CloudflareScopeHostOptions.containerPasses`. */
|
|
1627
|
+
private readonly containerPasses;
|
|
1612
1628
|
private readonly attachmentTextBounds;
|
|
1613
1629
|
private readonly executors;
|
|
1614
1630
|
/**
|
|
@@ -1619,6 +1635,9 @@ export declare class CloudflareScopeHost implements ScopeHost {
|
|
|
1619
1635
|
* and calls the internet, which is why the DO never sees it.
|
|
1620
1636
|
*/
|
|
1621
1637
|
private readonly jobs;
|
|
1638
|
+
/** D-85: the modules that declare jobs, and every declared job by name (`declaredJobsOf`). */
|
|
1639
|
+
private readonly jobDeclarers;
|
|
1640
|
+
private declaredJobs;
|
|
1622
1641
|
/**
|
|
1623
1642
|
* The event an executor is effecting, stamped onto the admin rows it writes (K-22). Like
|
|
1624
1643
|
* `onBehalfOf`, only ever set on a VIEW (`causedByView`, or `attributed` with a
|
|
@@ -1735,6 +1754,17 @@ export declare class CloudflareScopeHost implements ScopeHost {
|
|
|
1735
1754
|
maxPasses?: number;
|
|
1736
1755
|
limit?: number;
|
|
1737
1756
|
}): Promise<JobDriveReport>;
|
|
1757
|
+
/** D-85 (#3752): what one detached container pass's door works with: its run's store and its module's files. */
|
|
1758
|
+
private containerPassDoorDeps;
|
|
1759
|
+
/**
|
|
1760
|
+
* D-85 (#3752): the door one detached container pass reaches its run through, served by this
|
|
1761
|
+
* (the vertical's own) host, so the pass runs against the kernel the vertical shipped. The platform's
|
|
1762
|
+
* pass box calls it for every request its container makes to `run.substrat.internal`, with the
|
|
1763
|
+
* ticket the launch carried; `bundle` is the pass's code and `ended` tells the box the pass is over.
|
|
1764
|
+
* Every write is conditional on the ticket's lease, so a box that serves a stale ticket changes
|
|
1765
|
+
* nothing (`lease_lost`, 409).
|
|
1766
|
+
*/
|
|
1767
|
+
serveContainerPass(tenantId: TenantId, scopeId: ScopeId, ticket: DetachedPassTicket, request: Request, options?: Pick<ContainerPassDoorDeps, 'bundle' | 'ended'>): Promise<Response>;
|
|
1738
1768
|
jobRuns(tenantId: TenantId, scopeId: ScopeId, filter?: JobRunFilter): Promise<JobRun[]>;
|
|
1739
1769
|
dispatchConnector(tenantId: TenantId, scopeId: ScopeId, handler: ConnectorHandler, event: DomainEvent, options?: {
|
|
1740
1770
|
timeoutMs?: number;
|
|
@@ -2283,7 +2313,7 @@ export declare class CloudflareScopeHost implements ScopeHost {
|
|
|
2283
2313
|
openDownloadLink(tenantId: TenantId, scopeId: ScopeId, secret: string, attachmentId: string, options?: AttachmentOpenOptions): Promise<OpenedAttachmentStream | null>;
|
|
2284
2314
|
inspectUploadLink(tenantId: TenantId, scopeId: ScopeId, secret: string, target?: EntityRef, idempotencyKey?: string): Promise<UploadLinkView>;
|
|
2285
2315
|
redeemUploadLink(tenantId: TenantId, scopeId: ScopeId, secret: string, input: UploadLinkRedeemInput): Promise<RedeemedUploadLink>;
|
|
2286
|
-
getSystemAttachments(moduleId: ModuleId, tenantId: TenantId, scopeId: ScopeId): Promise<
|
|
2316
|
+
getSystemAttachments(moduleId: ModuleId, tenantId: TenantId, scopeId: ScopeId): Promise<SystemAttachments>;
|
|
2287
2317
|
/**
|
|
2288
2318
|
* The system file surface over a door already opened — `getSystemAttachments`' own, or a job
|
|
2289
2319
|
* pass's (#3443), which shares the door `pass.scope()` acts through so its "not now" defers the
|