create-substrat 0.10.0 → 0.10.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/index.js +5 -5
- package/package.json +1 -1
- package/template/.substrat/playbook.md +3 -3
- package/template/AGENTS.md +3 -2
package/index.js
CHANGED
|
@@ -36,11 +36,11 @@ const TEMPLATE = join(HERE, 'template');
|
|
|
36
36
|
// The runtime packages release together off one version line (the changesets `fixed`
|
|
37
37
|
// group), so one constant is right for all of them. Engines do NOT share a line —
|
|
38
38
|
// each versions on its own, so one pin per engine, deliberately.
|
|
39
|
-
const SUBSTRAT = '^0.
|
|
40
|
-
const ENGINE_WORKORDER = '^0.12.
|
|
41
|
-
const ENGINE_INVOICING = '^0.11.
|
|
42
|
-
const BOUNDARY_LINT = '^0.
|
|
43
|
-
const DEV_ISSUER = '^0.2.
|
|
39
|
+
const SUBSTRAT = '^0.127.0';
|
|
40
|
+
const ENGINE_WORKORDER = '^0.12.11';
|
|
41
|
+
const ENGINE_INVOICING = '^0.11.11';
|
|
42
|
+
const BOUNDARY_LINT = '^0.6.0';
|
|
43
|
+
const DEV_ISSUER = '^0.2.9';
|
|
44
44
|
|
|
45
45
|
const DOCS = 'https://substrat.net';
|
|
46
46
|
|
package/package.json
CHANGED
|
@@ -76,9 +76,9 @@ Every vertical gets this whether or not it uses a single engine:
|
|
|
76
76
|
an operation narrows a permission it already holds onto one entity, and withdraws it,
|
|
77
77
|
with `ctx.grant(principal, perm, entityRef)` / `ctx.revoke(principal, perm, entityRef)`
|
|
78
78
|
— entity-required, delegating (re-checks the caller's own decision), transactional with
|
|
79
|
-
the operation. Neither alternative is this: a `ctx.link` edge
|
|
80
|
-
|
|
81
|
-
org per domain row to get a revoke.
|
|
79
|
+
the operation. Neither alternative is this: a `ctx.link` edge can be moved
|
|
80
|
+
(`ctx.relink`) but never removed, so it is not a revoke, and org membership is
|
|
81
|
+
revocable but coarse-grained. Never mint an org per domain row to get a revoke.
|
|
82
82
|
- **Events + audit** — every mutation emits a kernel-stamped event. Origin fields (tenant,
|
|
83
83
|
scope, actor, time) are stamped by the kernel; your code cannot mislabel one.
|
|
84
84
|
- **Migrations** — journaled per module, applied lazily per scope.
|
package/template/AGENTS.md
CHANGED
|
@@ -302,8 +302,9 @@ more than it holds), and transactional with the operation. Every later `ctx.chec
|
|
|
302
302
|
the grant, so nothing else has to remember who may touch what.
|
|
303
303
|
|
|
304
304
|
Neither alternative is this, so you can tell a real absence from this one: a `ctx.link`
|
|
305
|
-
edge
|
|
306
|
-
|
|
305
|
+
edge **can be moved but never removed** (`ctx.relink` replaces one parent with another), so
|
|
306
|
+
it is not a revoke, and org membership is revocable but coarse-grained — a whole org, not
|
|
307
|
+
one record. Never mint an org per domain row, or a
|
|
307
308
|
membership table consulted by hand in every handler, to get a revoke. The two-line
|
|
308
309
|
reference is the [todo demo](https://github.com/substrat-run/substrat/tree/main/demos/todo)
|
|
309
310
|
(`src/module.ts`, `todo/share-list` and `todo/revoke-share`).
|