@sentry/junior-dashboard 0.262.0 → 0.263.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-dashboard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.263.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"react-router": "^7.18.2",
|
|
35
35
|
"shiki": "4.1.0",
|
|
36
36
|
"zod": "^4.5.4",
|
|
37
|
-
"@sentry/junior": "0.
|
|
38
|
-
"@sentry/junior-plugin-api": "0.
|
|
37
|
+
"@sentry/junior": "0.263.0",
|
|
38
|
+
"@sentry/junior-plugin-api": "0.263.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@oxlint/plugins": "1.79.0",
|
|
@@ -214,6 +214,9 @@ export function transcriptMessagesFromEvents(
|
|
|
214
214
|
...(data.actorIdentity
|
|
215
215
|
? { actorIdentity: data.actorIdentity }
|
|
216
216
|
: undefined),
|
|
217
|
+
...(data.agentInvocationId
|
|
218
|
+
? { agentInvocationId: data.agentInvocationId }
|
|
219
|
+
: undefined),
|
|
217
220
|
...(data.eventType ? { eventType: data.eventType } : undefined),
|
|
218
221
|
eventObjectType: data.eventObjectType,
|
|
219
222
|
...(data.trustedSummary
|
package/src/client/format.ts
CHANGED
|
@@ -368,6 +368,9 @@ export function transcriptMessageActorLabel(
|
|
|
368
368
|
const kind = transcriptRoleKind(message.role);
|
|
369
369
|
if (kind === "assistant") return getDashboardAgentName();
|
|
370
370
|
if (kind === "user") {
|
|
371
|
+
// The conversation actor started the child agent but did not write its
|
|
372
|
+
// input, so do not fall back to that actor here.
|
|
373
|
+
if (message.agentInvocationId) return "Agent invocation";
|
|
371
374
|
return (
|
|
372
375
|
actorLabel(message.actorIdentity) ??
|
|
373
376
|
actorLabel(conversation.actorIdentity) ??
|
package/src/client/types.ts
CHANGED
|
@@ -118,6 +118,8 @@ export type TranscriptViewTurnContext = {
|
|
|
118
118
|
export type TranscriptViewMessage = {
|
|
119
119
|
cards?: MessageCard[];
|
|
120
120
|
actorIdentity?: ActorIdentity;
|
|
121
|
+
/** Agent invocation whose input this is. An agent wrote it, not a person. */
|
|
122
|
+
agentInvocationId?: string;
|
|
121
123
|
contexts?: TranscriptViewTurnContext[];
|
|
122
124
|
/** Mailbox delivery mode while the message is still pending history commit. */
|
|
123
125
|
delivery?: "defer" | "interrupt";
|
|
@@ -1002,6 +1002,9 @@ function advisorConversation(
|
|
|
1002
1002
|
const conversation = detail(nowMs, {
|
|
1003
1003
|
conversationId,
|
|
1004
1004
|
displayTitle: "Advisor review",
|
|
1005
|
+
// A child keeps the Actor who started it, but that person did not write
|
|
1006
|
+
// its agent invocation input.
|
|
1007
|
+
actorIdentity: actor("dev@example.com", "Morgan Lee", "morgan"),
|
|
1005
1008
|
startedAt,
|
|
1006
1009
|
lastSeenAt: iso(Date.parse(startedAt), 18_000),
|
|
1007
1010
|
lastProgressAt: iso(Date.parse(startedAt), 18_000),
|
|
@@ -1011,6 +1014,7 @@ function advisorConversation(
|
|
|
1011
1014
|
type: "message",
|
|
1012
1015
|
messageId: `${conversationId}:input`,
|
|
1013
1016
|
role: "user",
|
|
1017
|
+
agentInvocationId: `${conversationId}:invocation`,
|
|
1014
1018
|
text,
|
|
1015
1019
|
}),
|
|
1016
1020
|
reportEvent(1, iso(Date.parse(startedAt), 18_000), {
|