@protobase/cli 0.123.5 → 0.123.6

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.
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.123.5";
2
+ var version = "0.123.6";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/cli",
3
- "version": "0.123.5",
3
+ "version": "0.123.6",
4
4
  "description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -43,13 +43,13 @@
43
43
  "dependencies": {
44
44
  "@better-auth/core": "^1.7.12",
45
45
  "@hono/node-server": "^2.1.3",
46
- "@protobase/config": "0.123.5",
47
- "@protobase/layout": "0.123.5",
48
- "@protobase/query": "0.123.5",
49
- "@protobase/schema": "0.123.5",
50
- "@protobase/server": "0.123.5",
51
- "@protobase/ui": "0.123.5",
52
- "@protobase/workflows": "0.123.5",
46
+ "@protobase/config": "0.123.6",
47
+ "@protobase/layout": "0.123.6",
48
+ "@protobase/query": "0.123.6",
49
+ "@protobase/schema": "0.123.6",
50
+ "@protobase/server": "0.123.6",
51
+ "@protobase/ui": "0.123.6",
52
+ "@protobase/workflows": "0.123.6",
53
53
  "@react-email/render": "^2.1.0",
54
54
  "@scalar/hono-api-reference": "^0.12.10",
55
55
  "@sentry/vite-plugin": "^11.10.0",
@@ -201,6 +201,7 @@ Starts one run for each record of `resource` that becomes ready, with `{ resourc
201
201
  - **One run per ready key:** the record's key, plus the values of the `key` fields. A record that stays ready over later writes starts no second run; one whose `due_at` changes is ready again under a new key.
202
202
  - **Who reads it:** the record is read through the API as the user who saved the enabled version, in the workflow's tenant, and `when` is checked on what they may read, so a record they cannot read, or a field they cannot see, never reaches a run. A saver who holds no role any more, or whom the API refuses, marks the trigger `failing`; the next write it reads a record on makes it active again, and it then passes over the records it missed. A key field the saver cannot read marks it `failing` too.
203
203
  - **When it looks:** a write to the resource, through the API or the database, reaches the trigger through [events](events.md), so the resource must declare some; turning a workflow on also starts runs for the records ready already, 100 per job. No periodic sweep runs.
204
+ - **Tenants:** a tenant's workflow reaches only the records of its tenant, so its resource needs a tenant field, [`.tenant(...)`](data-config.md#resource). A save of a tenant's workflow on a resource without one is refused, naming the resource; a trigger saved before its resource lost its tenant field is marked `failing` with that message within a minute, or as soon as a write reaches the resource, and turns active again once a write reaches it with the tenant field back.
204
205
 
205
206
  <gap>A workflow cannot start on every write of a record because an every-change trigger is not implemented; a record trigger starts once per ready key.</gap> <gap>An owner is not told when a trigger starts failing because trigger alerts are not implemented.</gap>
206
207