You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit efbf75c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .changeset/body-mail-activity-doors.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Metadata-protocol: added
17
17
18
18
-**`@objectstack/spec`:** two new body capabilities, `email.send` and `activity.append`, and their inputs `BodyMailSendInputSchema` and `BodyActivityAppendInputSchema` (`@objectstack/spec/data`). The sender, the sending user, the organization, the actor and the origin are stamped by the platform and are not inputs: a key outside either shape is refused. `SYS_ACTIVITY_PLATFORM_TYPES` names the timeline types only the platform records.
19
19
-**`@objectstack/runtime`:** a hook, action or job body that declares the capability calls `ctx.email.send({ to, subject, text })` or `ctx.activity.append({ object, recordId, type, summary })`. A message is sent from the configured sender, as the calling user, under the caller's organization; a timeline entry is written with the calling user as its actor and the package and body as its origin. A record the call points at must be one the caller can read. A message names at most 50 recipients, and an organization's mail is held to `OS_EMAIL_APP_SEND_HOURLY_LIMIT` messages an hour (default 200) before the door refuses another. A body with no calling user (a job) sends and writes with no user recorded.
20
-
-**`@objectstack/cli`:** the build infers both capabilities from a handler's calls, under a renamed or destructured context too.
20
+
-**`@objectstack/cli`:** the build infers both capabilities from a handler's calls, under a renamed or destructured context too.`ExtractedBody.capabilities` on `@objectstack/cli/hook-body` may now hold `'email.send'` and `'activity.append'`.
21
21
-**`@objectstack/core`:** the bounds a caller-sent message is held to (the sending user, the organization, the configured sender) are one function, `boundCallerMail`, shared by the REST mail door and the body door.
22
22
-**`@objectstack/rest`:** the REST mail door reads its bounds from `boundCallerMail`; its answers are unchanged.
23
23
-**`@objectstack/plugin-email`:** a mail-log row the mail service did not write is delivered from the configured sender.
Copy file name to clipboardExpand all lines: content/docs/permissions/system-context.mdx
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,15 +223,16 @@ One of the largest consumers of the flag;
223
223
224
224
### 6. Reads that only carry the flag onward
225
225
226
-
Not behaviours: these four sites read the flag solely to copy it into another
227
-
context or envelope. They are listed because the census counts them, and because
226
+
Not behaviours: these five sites read the flag solely to copy it into another
227
+
context or envelope, or to take it off one. They are listed because the census counts them, and because
228
228
a reader tracing where elevation travels needs them.
229
229
230
230
| # | Symbol | Package | What it does |
231
231
|:--|:---|:---|:---|
232
232
| 63 |`buildSession`| objectql | Propagates `isSystem` into the hook session so hooks can tell engine self-writes from user writes |
233
233
| 64 |`isSystem`| objectql |`ScopedContext.isSystem` getter — re-exposes the underlying execution context's flag |
234
234
| 65 |`executionContextFromHook`| runtime | Rebuilds an `ExecutionContext` from a hook session, carrying the flag across |
235
+
| 65b |`callerScopeOf`| runtime | Takes a script body's own elevation off its caller's envelope (the app-automation mark and the flag it came with), so `ctx.email.send` and `ctx.activity.append` read the record a body points at in the caller's scope. It removes the flag and grants nothing |
235
236
| 66 |`toolCallPrincipalOf`| mcp | Projects the host's resolved `ExecutionContext` into the frozen principal an installed MCP tool-call interceptor reads, carrying `isSystem: true` only for a system caller. It decides nothing: the tool still runs under its own context |
236
237
237
238
---
@@ -681,6 +682,7 @@ and CI refuses one that differs from what the tree produces.
0 commit comments