@kybernesis/dispatch 0.5.0 → 0.6.1
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 +17 -0
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -55,6 +55,23 @@ Your own project's deployments and `eve dev` keep working (current-project
|
|
|
55
55
|
OIDC bypass + `localDev()`); production browser traffic stays rejected unless
|
|
56
56
|
you pass your app's real auth via `extraAuth`.
|
|
57
57
|
|
|
58
|
+
## Asserted asker on governed calls
|
|
59
|
+
|
|
60
|
+
A dynamic `governedPeers()` call carries the authenticated identity of the
|
|
61
|
+
calling agent, plus that agent's optional claim about the human who prompted
|
|
62
|
+
it. The human's authenticated authority does not travel with this call. On the
|
|
63
|
+
receiver, `assertedAsker(session)` from `@kybernesis/enterprise` reads the
|
|
64
|
+
caller's asserted asker.
|
|
65
|
+
|
|
66
|
+
The value is asserted rather than authenticated: the control plane signs the
|
|
67
|
+
token containing the claim, but does not verify the named human. Use it only for
|
|
68
|
+
non-escalating purposes such as greeting or addressing someone, attribution or
|
|
69
|
+
logging, tailoring a non-sensitive response, or refusing work. Never use it to
|
|
70
|
+
authorize access, widen permissions, impersonate a user, select user-scoped
|
|
71
|
+
credentials, or permit access to personal data. A tool that reaches personal
|
|
72
|
+
data must use the authenticated session principal, which on this agent-to-agent
|
|
73
|
+
call is the calling agent.
|
|
74
|
+
|
|
58
75
|
## Bidirectional edges
|
|
59
76
|
|
|
60
77
|
Answering is built into one edge — the caller parks until the peer's terminal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kybernesis/dispatch",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Agent-to-agent dispatch for eve agents: declared remote-peer edges with principal forwarding on by default, and a receiver channel that makes trusting the wrong caller hard to express.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -26,18 +26,19 @@
|
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsc -p tsconfig.build.json",
|
|
29
|
-
"
|
|
29
|
+
"prepack": "tsc -p tsconfig.build.json",
|
|
30
30
|
"typecheck": "tsc --noEmit",
|
|
31
31
|
"prepublishOnly": "node ../../scripts/prepublish.mjs"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
+
"@kybernesis/enterprise": "^0.8.0",
|
|
34
35
|
"@types/node": "24.x",
|
|
35
|
-
"eve": "0.
|
|
36
|
+
"eve": "^0.53.1",
|
|
36
37
|
"typescript": "7.0.2"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
|
-
"
|
|
40
|
-
"
|
|
40
|
+
"@kybernesis/enterprise": ">=0.2.0",
|
|
41
|
+
"eve": ">=0.53.0 <0.54.0"
|
|
41
42
|
},
|
|
42
43
|
"engines": {
|
|
43
44
|
"node": ">=20"
|