sanoma 0.10.12 → 0.11.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/README.md +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -101,7 +101,7 @@ forbid (principal, action in [Sanoma::Action::"effect:publish", Sanoma::Action::
|
|
|
101
101
|
unless { principal in Sanoma::Group::"editor" || principal == Sanoma::Principal::"login" };
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
The `login` in its `unless` is the runtime's agent that sends sign-in codes (the built-in `login-code` workflow, when the config names `login: { sender }`): a policy that held its send would keep everyone from signing in by code, and `sanoma check` says so.
|
|
104
|
+
The `login` in its `unless` is the runtime's agent that sends sign-in codes (the built-in `login-code` workflow, when the config names `login: { sender, from }`): a policy that held its send would keep everyone from signing in by code, and `sanoma check` says so.
|
|
105
105
|
|
|
106
106
|
Only a declared person signs in to the app (on this machine by picking their name; on a host by an email code to their `email`, an invite link, or GitHub by their verified email, then their `github` login), starts a run, calls an operation or decides an approval, and nobody decides an approval on a run they started while someone else in the group could (a founder alone in a group decides their own, and the ledger says so). Everything is allowed unless a `forbid` refuses it: one with `@hold` waits for that group's or person's approval, one without is denied with its `@reason`. A visitor of a public site, in the group `visitors` (or `anonymous`, when nobody is signed in), is the exception: it may start a run or call an operation directly only where a `permit` names it, the one `permit` a policy file may hold (`permit (principal in Sanoma::Group::"visitors", action == Sanoma::Action::"workflow:signup", resource);`), and inside a run it started its calls are allowed as anyone's, the forbids still holding. Write them against `.sanoma/schema.cedarschema`, which `sanoma check` and `sanoma` write from the config: each operation's id as an action in its effect's group, `workflow:<name>` for a run's start, the groups the people file declares, and each operation's input as `context.input`. `sanoma check` reports a policy problem at its place and runs no scenario until there are none; `sanoma` refuses to start on one. A scenario runs as the agent `scenarios` unless it says who is acting (`Given bo is acting`, `Given a visitor is acting`, `Given a visitor "hopper@example.com" with GitHub "hopper" is acting`, `Given anonymous is acting`), and checks the policy with `Then ghost.post.publish was held for group "editor"` and `Then <op> was denied with "<reason>"`. The app's Permissions page shows what the policies answer for each group.
|
|
107
107
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sanoma",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "One command over a Sanoma repo: run the worker and the app, check it, write its .env.example, export a run's ledger",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"approvals",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@sanoma-ai/app": "0.10.
|
|
78
|
-
"@sanoma-ai/bridge": "0.5.
|
|
79
|
-
"@sanoma-ai/connector-better-auth": "0.2.
|
|
80
|
-
"@sanoma-ai/workflows": "0.
|
|
77
|
+
"@sanoma-ai/app": "0.10.5",
|
|
78
|
+
"@sanoma-ai/bridge": "0.5.2",
|
|
79
|
+
"@sanoma-ai/connector-better-auth": "0.2.2",
|
|
80
|
+
"@sanoma-ai/workflows": "0.11.0",
|
|
81
81
|
"@types/node": "^26.6.4",
|
|
82
82
|
"oxlint": "^1.87.0",
|
|
83
83
|
"pg": "^8.23.1",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"zod": "^4.6.5"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@sanoma-ai/connector-ghost": "0.4.
|
|
89
|
+
"@sanoma-ai/connector-ghost": "0.4.9",
|
|
90
90
|
"@sanoma-ai/testing": "0.1.0",
|
|
91
91
|
"@types/pg": "^8.23.1"
|
|
92
92
|
},
|