@openscout/scout 0.2.49 → 0.2.51
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 +30 -2
- package/dist/client/assets/addon-fit-DX4qG4td.js +1 -0
- package/dist/client/assets/addon-webgl-DCtw1yLn.js +64 -0
- package/dist/client/assets/arc.es-CXoMwIWo.js +188 -0
- package/dist/client/assets/index-C2dy1gpj.css +1 -0
- package/dist/client/assets/index-CGoQ5qP4.js +140 -0
- package/dist/client/assets/index-TVkH_WDG.js +1 -0
- package/dist/client/assets/xterm-B-qIQCd3.js +16 -0
- package/dist/client/index.html +6 -3
- package/dist/client/openscout-icon.png +0 -0
- package/dist/main.mjs +650 -120
- package/dist/pair-supervisor.mjs +8 -6
- package/dist/scout-control-plane-web.mjs +15872 -13540
- package/package.json +2 -2
- package/dist/client/assets/index-CA2ASaSK.css +0 -1
- package/dist/client/assets/index-DAPDqcsj.js +0 -94
- package/dist/client/scout-icon.png +0 -0
package/dist/pair-supervisor.mjs
CHANGED
|
@@ -8729,8 +8729,8 @@ function diagnoseAgentIdentity(identity, candidates) {
|
|
|
8729
8729
|
var parseAgentSelector = parseAgentIdentity;
|
|
8730
8730
|
var formatAgentSelector = formatAgentIdentity;
|
|
8731
8731
|
var resolveAgentSelector = resolveAgentIdentity;
|
|
8732
|
-
// ../protocol/src/
|
|
8733
|
-
function
|
|
8732
|
+
// ../protocol/src/scout-agent-card.ts
|
|
8733
|
+
function buildScoutReturnAddress(input) {
|
|
8734
8734
|
const next = {
|
|
8735
8735
|
actorId: input.actorId,
|
|
8736
8736
|
handle: input.handle.trim()
|
|
@@ -13642,7 +13642,9 @@ var scoutBrokerPaths = {
|
|
|
13642
13642
|
endpoints: "/v1/endpoints",
|
|
13643
13643
|
conversations: "/v1/conversations",
|
|
13644
13644
|
invocations: "/v1/invocations",
|
|
13645
|
-
activity: "/v1/activity"
|
|
13645
|
+
activity: "/v1/activity",
|
|
13646
|
+
collaborationRecords: "/v1/collaboration/records",
|
|
13647
|
+
collaborationEvents: "/v1/collaboration/events"
|
|
13646
13648
|
}
|
|
13647
13649
|
};
|
|
13648
13650
|
|
|
@@ -13672,14 +13674,14 @@ function displayNameForBrokerActor(snapshot, actorId) {
|
|
|
13672
13674
|
function firstEndpointForActor(snapshot, actorId) {
|
|
13673
13675
|
return Object.values(snapshot.endpoints).filter((endpoint) => endpoint.agentId === actorId).sort((lhs, rhs) => lhs.id.localeCompare(rhs.id))[0];
|
|
13674
13676
|
}
|
|
13675
|
-
function
|
|
13677
|
+
function buildScoutReturnAddress2(snapshot, actorId, options = {}) {
|
|
13676
13678
|
const agent = snapshot.agents[actorId];
|
|
13677
13679
|
const actor = snapshot.actors[actorId];
|
|
13678
13680
|
const endpoint = firstEndpointForActor(snapshot, actorId);
|
|
13679
13681
|
const selector = agent?.selector?.trim() || metadataString2(agent?.metadata, "selector") || metadataString2(actor?.metadata, "selector");
|
|
13680
13682
|
const defaultSelector = agent?.defaultSelector?.trim() || metadataString2(agent?.metadata, "defaultSelector") || metadataString2(actor?.metadata, "defaultSelector");
|
|
13681
13683
|
const projectRoot = endpoint?.projectRoot ?? endpoint?.cwd ?? metadataString2(agent?.metadata, "projectRoot") ?? metadataString2(actor?.metadata, "projectRoot");
|
|
13682
|
-
return
|
|
13684
|
+
return buildScoutReturnAddress({
|
|
13683
13685
|
actorId,
|
|
13684
13686
|
handle: agent?.handle?.trim() || actor?.handle?.trim() || actorId,
|
|
13685
13687
|
displayName: agent?.displayName || actor?.displayName,
|
|
@@ -14007,7 +14009,7 @@ async function sendScoutDirectMessage(input) {
|
|
|
14007
14009
|
const targetAgentId = directSession.targetId;
|
|
14008
14010
|
const targetAgent = broker.snapshot.agents[targetAgentId] ?? ("agent" in directSession ? directSession.agent : undefined);
|
|
14009
14011
|
const targetLabel = `@${targetAgent?.handle?.trim() || targetAgent?.displayName?.trim() || targetAgentId}`;
|
|
14010
|
-
const returnAddress =
|
|
14012
|
+
const returnAddress = buildScoutReturnAddress2(broker.snapshot, OPERATOR_ID, {
|
|
14011
14013
|
conversationId: directSession.conversation.id,
|
|
14012
14014
|
replyToMessageId: messageId
|
|
14013
14015
|
});
|