@kybernesis/dispatch 0.6.3 → 0.7.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/dist/remote-peer.d.ts +0 -6
- package/dist/remote-peer.js +1 -2
- package/package.json +5 -5
package/dist/remote-peer.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { defineRemoteAgent } from "eve";
|
|
2
1
|
import { type GovernedOptions } from "./governed.js";
|
|
3
2
|
/** Options for {@link remotePeer}. */
|
|
4
3
|
export interface RemotePeerOptions {
|
|
@@ -42,11 +41,6 @@ export interface RemotePeerOptions {
|
|
|
42
41
|
* app itself (service identity) rather than from the human behind it.
|
|
43
42
|
*/
|
|
44
43
|
forwardPrincipal?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* JSON Schema for task-mode structured output. When set, the peer returns
|
|
47
|
-
* one validated result object instead of free text.
|
|
48
|
-
*/
|
|
49
|
-
outputSchema?: Parameters<typeof defineRemoteAgent>[0]["outputSchema"];
|
|
50
44
|
}
|
|
51
45
|
/**
|
|
52
46
|
* Declares a separately deployed eve agent as a callable peer of this agent.
|
package/dist/remote-peer.js
CHANGED
|
@@ -32,7 +32,7 @@ import { createA2ASessionSource } from "./governed.js";
|
|
|
32
32
|
* refuses → dispatches 403 within the token TTL.
|
|
33
33
|
*/
|
|
34
34
|
export function remotePeer(options) {
|
|
35
|
-
const { envVar, fallbackUrl, description,
|
|
35
|
+
const { envVar, fallbackUrl, description, callee, governed } = options;
|
|
36
36
|
if (governed && !callee) {
|
|
37
37
|
throw new Error("remotePeer: governed mode requires `callee` (the peer's registered control-plane name).");
|
|
38
38
|
}
|
|
@@ -74,6 +74,5 @@ export function remotePeer(options) {
|
|
|
74
74
|
description,
|
|
75
75
|
auth,
|
|
76
76
|
forwardPrincipal: options.forwardPrincipal ?? true,
|
|
77
|
-
...(outputSchema !== undefined ? { outputSchema } : {}),
|
|
78
77
|
});
|
|
79
78
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kybernesis/dispatch",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
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",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"prepublishOnly": "node ../../scripts/prepublish.mjs"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@kybernesis/enterprise": "^0.
|
|
34
|
+
"@kybernesis/enterprise": "^0.9.0",
|
|
35
35
|
"@types/node": "24.x",
|
|
36
|
-
"eve": "
|
|
36
|
+
"eve": "0.68.0",
|
|
37
37
|
"typescript": "7.0.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@kybernesis/enterprise": "
|
|
41
|
-
"eve": ">=0.
|
|
40
|
+
"@kybernesis/enterprise": "^0.9.0",
|
|
41
|
+
"eve": ">=0.68.0 <0.69.0"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=20"
|