create-substrat 0.11.3 → 0.11.5
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/AGENTS.md +11 -6
package/index.js
CHANGED
|
@@ -36,12 +36,12 @@ 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.
|
|
39
|
+
const SUBSTRAT = '^0.145.0';
|
|
40
|
+
const ENGINE_WORKORDER = '^0.12.29';
|
|
41
|
+
const ENGINE_INVOICING = '^0.11.29';
|
|
42
42
|
const BOUNDARY_LINT = '^0.7.0';
|
|
43
|
-
const DEV_ISSUER = '^0.2.
|
|
44
|
-
const ATTACHMENT_EXTRACTORS = '^0.2.
|
|
43
|
+
const DEV_ISSUER = '^0.2.27';
|
|
44
|
+
const ATTACHMENT_EXTRACTORS = '^0.2.6';
|
|
45
45
|
|
|
46
46
|
const DOCS = 'https://substrat.net';
|
|
47
47
|
|
package/package.json
CHANGED
package/template/AGENTS.md
CHANGED
|
@@ -196,13 +196,18 @@ matter what the operation supports, forget the second and it answers with an
|
|
|
196
196
|
envelope where it used to answer with an array. That is the case for not
|
|
197
197
|
hand-mounting anything an operation can declare.
|
|
198
198
|
|
|
199
|
-
**An operation the model describes completely says who writes its handler.**
|
|
199
|
+
**An operation the model describes completely says who writes its handler.** These
|
|
200
200
|
shapes are derivable: a `GET` of one row by its id, a `GET` that is a `paged.over` page of the
|
|
201
|
-
entity's own rows behind declared filters, a `PATCH` field bag with `concurrency`,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
201
|
+
entity's own rows behind declared filters, a `PATCH` field bag with `concurrency`, a
|
|
202
|
+
`DELETE` of a row nothing declares as parent, a `POST` that inserts a row every column of
|
|
203
|
+
which comes from the input, the parent its check narrows to, a minted id or the entity's
|
|
204
|
+
declared `stamps`, and, on an entity that declares `archive` or `trash`, its four moves and
|
|
205
|
+
its bin. Declare `derive: 'get'` (or `'list'`, `'update'`, `'delete'`, `'create'`,
|
|
206
|
+
`'archive'`, `'unarchive'`, `'trash'`, `'restore'`, `'trashed'`) and write no handler:
|
|
207
|
+
`operationsFor` leaves it out of the map it requires and supplies the platform's handler,
|
|
208
|
+
which checks the declared key first, reads and writes only declared columns and emits the
|
|
209
|
+
declared event (the bin is checked row by row instead, and a move's event is the kernel's).
|
|
210
|
+
Keep a handler
|
|
206
211
|
only with `authored: '<what the derived one would get wrong here>'`. `defineOperations`
|
|
207
212
|
refuses at module load a derivable operation that declares neither, a `derive` whose
|
|
208
213
|
declaration is not that shape, and an `authored` on an operation nothing could derive.
|