@openscout/protocol 0.2.63 → 0.2.64
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/invocations.d.ts +6 -0
- package/dist/scout-delivery.d.ts +3 -1
- package/dist/scout-dispatch.d.ts +5 -1
- package/dist/scout-reply-context.d.ts +13 -0
- package/dist/scout-reply-context.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/invocations.ts +6 -0
- package/src/scout-delivery.ts +4 -1
- package/src/scout-dispatch.ts +2 -1
- package/src/scout-reply-context.ts +15 -0
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from "./messages.js";
|
|
|
12
12
|
export * from "./invocations.js";
|
|
13
13
|
export * from "./scout-dispatch.js";
|
|
14
14
|
export * from "./scout-delivery.js";
|
|
15
|
+
export * from "./scout-reply-context.js";
|
|
15
16
|
export * from "./deliveries.js";
|
|
16
17
|
export * from "./transports.js";
|
|
17
18
|
export * from "./events.js";
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ export * from "./messages.js";
|
|
|
12
12
|
export * from "./invocations.js";
|
|
13
13
|
export * from "./scout-dispatch.js";
|
|
14
14
|
export * from "./scout-delivery.js";
|
|
15
|
+
export * from "./scout-reply-context.js";
|
|
15
16
|
export * from "./deliveries.js";
|
|
16
17
|
export * from "./transports.js";
|
|
17
18
|
export * from "./events.js";
|
package/dist/invocations.d.ts
CHANGED
|
@@ -4,6 +4,12 @@ export type InvocationAction = "consult" | "execute" | "summarize" | "status" |
|
|
|
4
4
|
export type FlightState = "queued" | "waking" | "running" | "waiting" | "completed" | "failed" | "cancelled";
|
|
5
5
|
export interface InvocationExecutionPreference {
|
|
6
6
|
harness?: AgentHarness;
|
|
7
|
+
/**
|
|
8
|
+
* Controls whether a handoff should enter fresh model context or continue an
|
|
9
|
+
* already-running session. Broker-owned label delivery should default to
|
|
10
|
+
* "new" so stable agent names do not silently inherit unrelated context.
|
|
11
|
+
*/
|
|
12
|
+
session?: "new" | "existing" | "any";
|
|
7
13
|
}
|
|
8
14
|
export interface InvocationRequest {
|
|
9
15
|
id: ScoutId;
|
package/dist/scout-delivery.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { MessageRecord } from "./messages.js";
|
|
|
5
5
|
import type { ScoutCallerContext, ScoutDispatchRecord, ScoutRoutePolicy, ScoutRouteTarget } from "./scout-dispatch.js";
|
|
6
6
|
export type ScoutDeliverIntent = "tell" | "consult";
|
|
7
7
|
export type ScoutDeliverRouteKind = "dm" | "channel" | "broadcast";
|
|
8
|
-
export type ScoutDeliveryRemediationKind = "choose_target" | "register_target" | "wake_target" | "retry_later";
|
|
8
|
+
export type ScoutDeliveryRemediationKind = "choose_target" | "register_target" | "wake_target" | "retry_later" | "stale_reference";
|
|
9
9
|
export type ScoutDeliverRejectReason = "unknown_target" | "ambiguous_target" | "invalid_target" | "missing_target";
|
|
10
10
|
export interface ScoutDeliverRequest {
|
|
11
11
|
id?: ScoutId;
|
|
@@ -35,6 +35,7 @@ export interface ScoutDeliveryReceipt {
|
|
|
35
35
|
requesterNodeId: ScoutId;
|
|
36
36
|
targetAgentId?: ScoutId;
|
|
37
37
|
targetLabel?: string;
|
|
38
|
+
bindingRef?: string;
|
|
38
39
|
conversationId: ScoutId;
|
|
39
40
|
messageId: ScoutId;
|
|
40
41
|
flightId?: ScoutId;
|
|
@@ -55,6 +56,7 @@ export interface ScoutDeliverAcceptedResponse {
|
|
|
55
56
|
conversation: ConversationDefinition;
|
|
56
57
|
message: MessageRecord;
|
|
57
58
|
targetAgentId?: ScoutId;
|
|
59
|
+
bindingRef?: string;
|
|
58
60
|
flight?: FlightRecord;
|
|
59
61
|
}
|
|
60
62
|
export interface ScoutDeliverQuestionResponse {
|
package/dist/scout-dispatch.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { WakePolicy } from "./actors.js";
|
|
|
2
2
|
import type { AdvertiseScope, DeliveryTransport, MetadataMap, ScoutId } from "./common.js";
|
|
3
3
|
export type ScoutDispatchKind = "ambiguous" | "unknown" | "unparseable" | "unavailable";
|
|
4
4
|
export type ScoutCandidateEndpointState = "online" | "offline" | "unknown";
|
|
5
|
-
export type ScoutRouteTargetKind = "agent_id" | "agent_label" | "channel" | "broadcast";
|
|
5
|
+
export type ScoutRouteTargetKind = "agent_id" | "agent_label" | "binding_ref" | "channel" | "broadcast";
|
|
6
6
|
export type ScoutRouteAmbiguousPolicy = "reject" | "ask";
|
|
7
7
|
export interface ScoutCallerContext {
|
|
8
8
|
actorId?: ScoutId;
|
|
@@ -20,6 +20,10 @@ export type ScoutRouteTarget = {
|
|
|
20
20
|
kind: "agent_label";
|
|
21
21
|
label: string;
|
|
22
22
|
value?: string;
|
|
23
|
+
} | {
|
|
24
|
+
kind: "binding_ref";
|
|
25
|
+
ref: string;
|
|
26
|
+
value?: string;
|
|
23
27
|
} | {
|
|
24
28
|
kind: "channel";
|
|
25
29
|
channel: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ScoutId } from "./common.js";
|
|
2
|
+
import type { InvocationAction } from "./invocations.js";
|
|
3
|
+
export type ScoutReplyPath = "final_response" | "mcp_reply";
|
|
4
|
+
export interface ScoutReplyContext {
|
|
5
|
+
mode: "broker_reply";
|
|
6
|
+
fromAgentId: ScoutId;
|
|
7
|
+
toAgentId: ScoutId;
|
|
8
|
+
conversationId: ScoutId;
|
|
9
|
+
messageId: ScoutId;
|
|
10
|
+
replyToMessageId: ScoutId;
|
|
11
|
+
replyPath: ScoutReplyPath;
|
|
12
|
+
action?: InvocationAction;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from "./messages.js";
|
|
|
12
12
|
export * from "./invocations.js";
|
|
13
13
|
export * from "./scout-dispatch.js";
|
|
14
14
|
export * from "./scout-delivery.js";
|
|
15
|
+
export * from "./scout-reply-context.js";
|
|
15
16
|
export * from "./deliveries.js";
|
|
16
17
|
export * from "./transports.js";
|
|
17
18
|
export * from "./events.js";
|
package/src/invocations.ts
CHANGED
|
@@ -19,6 +19,12 @@ export type FlightState =
|
|
|
19
19
|
|
|
20
20
|
export interface InvocationExecutionPreference {
|
|
21
21
|
harness?: AgentHarness;
|
|
22
|
+
/**
|
|
23
|
+
* Controls whether a handoff should enter fresh model context or continue an
|
|
24
|
+
* already-running session. Broker-owned label delivery should default to
|
|
25
|
+
* "new" so stable agent names do not silently inherit unrelated context.
|
|
26
|
+
*/
|
|
27
|
+
session?: "new" | "existing" | "any";
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
export interface InvocationRequest {
|
package/src/scout-delivery.ts
CHANGED
|
@@ -17,7 +17,8 @@ export type ScoutDeliveryRemediationKind =
|
|
|
17
17
|
| "choose_target"
|
|
18
18
|
| "register_target"
|
|
19
19
|
| "wake_target"
|
|
20
|
-
| "retry_later"
|
|
20
|
+
| "retry_later"
|
|
21
|
+
| "stale_reference";
|
|
21
22
|
|
|
22
23
|
export type ScoutDeliverRejectReason =
|
|
23
24
|
| "unknown_target"
|
|
@@ -54,6 +55,7 @@ export interface ScoutDeliveryReceipt {
|
|
|
54
55
|
requesterNodeId: ScoutId;
|
|
55
56
|
targetAgentId?: ScoutId;
|
|
56
57
|
targetLabel?: string;
|
|
58
|
+
bindingRef?: string;
|
|
57
59
|
conversationId: ScoutId;
|
|
58
60
|
messageId: ScoutId;
|
|
59
61
|
flightId?: ScoutId;
|
|
@@ -76,6 +78,7 @@ export interface ScoutDeliverAcceptedResponse {
|
|
|
76
78
|
conversation: ConversationDefinition;
|
|
77
79
|
message: MessageRecord;
|
|
78
80
|
targetAgentId?: ScoutId;
|
|
81
|
+
bindingRef?: string;
|
|
79
82
|
flight?: FlightRecord;
|
|
80
83
|
}
|
|
81
84
|
|
package/src/scout-dispatch.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type ScoutDispatchKind = "ambiguous" | "unknown" | "unparseable" | "unava
|
|
|
5
5
|
|
|
6
6
|
export type ScoutCandidateEndpointState = "online" | "offline" | "unknown";
|
|
7
7
|
|
|
8
|
-
export type ScoutRouteTargetKind = "agent_id" | "agent_label" | "channel" | "broadcast";
|
|
8
|
+
export type ScoutRouteTargetKind = "agent_id" | "agent_label" | "binding_ref" | "channel" | "broadcast";
|
|
9
9
|
|
|
10
10
|
export type ScoutRouteAmbiguousPolicy = "reject" | "ask";
|
|
11
11
|
|
|
@@ -21,6 +21,7 @@ export interface ScoutCallerContext {
|
|
|
21
21
|
export type ScoutRouteTarget =
|
|
22
22
|
| { kind: "agent_id"; agentId: ScoutId; value?: string }
|
|
23
23
|
| { kind: "agent_label"; label: string; value?: string }
|
|
24
|
+
| { kind: "binding_ref"; ref: string; value?: string }
|
|
24
25
|
| { kind: "channel"; channel: string; value?: string }
|
|
25
26
|
| { kind: "broadcast"; value?: string };
|
|
26
27
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ScoutId } from "./common.js";
|
|
2
|
+
import type { InvocationAction } from "./invocations.js";
|
|
3
|
+
|
|
4
|
+
export type ScoutReplyPath = "final_response" | "mcp_reply";
|
|
5
|
+
|
|
6
|
+
export interface ScoutReplyContext {
|
|
7
|
+
mode: "broker_reply";
|
|
8
|
+
fromAgentId: ScoutId;
|
|
9
|
+
toAgentId: ScoutId;
|
|
10
|
+
conversationId: ScoutId;
|
|
11
|
+
messageId: ScoutId;
|
|
12
|
+
replyToMessageId: ScoutId;
|
|
13
|
+
replyPath: ScoutReplyPath;
|
|
14
|
+
action?: InvocationAction;
|
|
15
|
+
}
|