@sentry/junior 0.277.0 → 0.278.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/{adapter-BtfBHVM5.js → adapter-BXosqTMx.js} +1 -1
- package/dist/{admin-DzAKbZsm.js → admin-Thn7NfOi.js} +1 -1
- package/dist/{agent-invocations-Crs3XHhg.js → agent-invocations-D7c4BQGc.js} +1 -1
- package/dist/{agent-runner-BsYAbniN.js → agent-runner-DE-43MPb.js} +268 -835
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +5 -5
- package/dist/api.d.ts +1 -1
- package/dist/api.js +38 -76
- package/dist/{app-BjEQwNVP.d.ts → app-CHNS-AX2.d.ts} +5 -26
- package/dist/app.d.ts +2 -2
- package/dist/app.js +30 -31
- package/dist/{assistant-reply-NebRGG4G.js → assistant-reply-pauL6qyn.js} +28 -6
- package/dist/{automation-Cql9h2vO.js → automation-DphoTRYl.js} +1 -1
- package/dist/{background-compaction-queue-hh18yCeU.js → background-compaction-queue-CAL4A2y7.js} +2 -2
- package/dist/{briefs-BBo0Eimi.js → briefs-4fyPJJEu.js} +5 -6
- package/dist/{catalog-runtime-DE-F4Awo.js → catalog-runtime-BoOb5oUv.js} +1 -1
- package/dist/cli/chat.js +14 -14
- package/dist/cli/check.js +3 -3
- package/dist/cli/init.js +0 -2
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-DZ8HTnYH.js → client-v_OVYuHZ.js} +3 -3
- package/dist/{config-D5uUtrCP.js → config-o2jLRY5J.js} +24 -99
- package/dist/{connections-Do24CGP5.js → connections-RC4NXAx8.js} +10 -10
- package/dist/{conversation-SsASlWL7.js → conversation-CZfyQvdm.js} +51 -104
- package/dist/{conversation-privacy-VuylvlKr.js → conversation-privacy-C23M8KaD.js} +1 -1
- package/dist/{credential-sync-BGQK3pOa.js → credential-sync-Dd0WyNfF.js} +13 -13
- package/dist/{db-DEiwO5Sh.d.ts → db-BjLzDJCt.d.ts} +1 -1
- package/dist/{executor-hPfFTH0C.js → executor-CJfsD0VX.js} +3 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-cI3T1dNc.js → logging-dFaXvBRK.js} +1 -1
- package/dist/{media-DstkkoNP.js → media-DTAA8Qs_.js} +21 -23
- package/dist/{message-DBwsAl7O.js → message-DSwxIZet.js} +22 -28
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-DXrnbplb.js → oauth-callback-server-CDcuCp27.js} +2 -2
- package/dist/{projection-7EFIqzuj.js → projection-BTge9wrH.js} +106 -108
- package/dist/{prompt-oRfGsxd3.js → prompt-DDtCnlHP.js} +1 -1
- package/dist/{registry-Bzefs7kT.js → registry-Cp6CNmtP.js} +1 -1
- package/dist/{resolve-CuiEY_2u.js → resolve-B_7h2cXx.js} +3 -3
- package/dist/{result-DrcUtFaD.js → result-5LBEfnLX.js} +9 -9
- package/dist/{runner-CDE4CZ52.js → runner-C5-S4oq-.js} +11 -11
- package/dist/{sandbox-egress-signals-0tcmGd13.js → sandbox-egress-signals-B4GehT1L.js} +1 -1
- package/dist/{schema-Dzi3lkdP.js → schema-B5fpczDw.js} +67 -4
- package/dist/{schema-B6N2nc6v.d.ts → schema-Tr484cCC.d.ts} +909 -687
- package/dist/{service-account-DIyz_9Uh.js → service-account-BkEv20zf.js} +3 -3
- package/dist/{service-account-BOz9pqOE.js → service-account-Cq_dLrZJ.js} +3 -3
- package/dist/{session-stop-0juF_BP0.js → session-stop-BsS4qFS2.js} +22 -15
- package/dist/{skills-CU5Is147.js → skills-M0BA0_s6.js} +2 -2
- package/dist/{spawn-6C9jHH4b.js → spawn-BO3y7H4d.js} +2 -3
- package/dist/{stop-6FVG1c-r.js → stop-D5R82Wla.js} +255 -64
- package/dist/{store-DtHZviJ1.js → store-BGBzQWNf.js} +9 -16
- package/dist/{store-DKs1WwdB.js → store-CGJZTEVz.js} +3 -3
- package/dist/{task-queue-CcvFQE_p.js → task-queue-UD27ei2U.js} +3 -3
- package/dist/{task-runner-DBkNejLl.js → task-runner-noxjOjkM.js} +7 -7
- package/dist/{thread-state-4hjEIkIq.js → thread-state-BSu6rM6p.js} +4 -4
- package/dist/{turn-failure-response-BZNLydC3.js → turn-failure-response-wahwyPrZ.js} +7 -7
- package/dist/{turn-lifecycle-BhqYjaa4.js → turn-lifecycle-Bo4Trccw.js} +1 -1
- package/dist/{turn-session-routing-jnLOfBHJ.js → turn-session-routing-DnSaaEpn.js} +10 -10
- package/dist/{validation-BUFmsnKs.js → validation-B9-8iKyw.js} +1 -1
- package/dist/{version-DJTk0ZCE.js → version-C7HejFP2.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-WY0RYE4E.js → viewer-DLXajQZE.js} +52 -21
- package/dist/{work-C5AKvXJV.js → work-DRGSlfia.js} +12 -17
- package/dist/{worker-BcYVDVUy.js → worker-BGh5Dwc6.js} +6 -6
- package/migrations/meta/0075_snapshot.json +98 -314
- package/migrations/meta/0076_snapshot.json +98 -314
- package/migrations/meta/_journal.json +1 -1
- package/package.json +4 -4
- package/dist/model-profile-B998sjVd.js +0 -67
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-
|
|
2
|
-
import { E as
|
|
1
|
+
import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-D7c4BQGc.js";
|
|
2
|
+
import { E as conversationChildAgentTotalsSchema, L as messageAttachmentSchema, O as reviewItemChangeRecordSchema, o as conversationAuxiliaryCostsSchema, r as actorIdentitySchema, x as conversationUsageSchema, y as conversationSummaryReportSchema } from "./conversation-CZfyQvdm.js";
|
|
3
3
|
import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours, y as userInputRequestSchema } from "./reporting-window-DgHgwQB3.js";
|
|
4
|
-
import "./automation-
|
|
4
|
+
import "./automation-DphoTRYl.js";
|
|
5
5
|
import "./common-Eu6sx09c.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { codeChangeStateSchema, eventMatchSchema } from "@sentry/junior-plugin-api";
|
|
@@ -20,6 +20,69 @@ const archiveConversationResponseSchema = z.object({ archivedAt: z.string().date
|
|
|
20
20
|
const conversationAutoArchiveSchema = z.object({ autoArchive: z.boolean() }).strict();
|
|
21
21
|
/** Result of archiving all of the viewer's done conversations once. */
|
|
22
22
|
const archiveDoneConversationsResponseSchema = z.object({ archived: z.number().int().nonnegative() }).strict();
|
|
23
|
+
// src/api/schema/conversation-pending-messages.ts
|
|
24
|
+
/** Mailbox delivery mode for one accepted inbound message. */
|
|
25
|
+
const conversationPendingMessageDeliverySchema = z.enum(["defer", "interrupt"]);
|
|
26
|
+
/** One accepted mailbox message that has not reached durable history yet. */
|
|
27
|
+
const conversationPendingMessageSchema = z.object({
|
|
28
|
+
actorIdentity: actorIdentitySchema.optional(),
|
|
29
|
+
/** Identity id of the author. Detail `authors` maps it to the person. */
|
|
30
|
+
actorIdentityId: z.string().min(1).optional(),
|
|
31
|
+
createdAt: z.string().datetime(),
|
|
32
|
+
delivery: conversationPendingMessageDeliverySchema,
|
|
33
|
+
inboundMessageId: z.string().min(1),
|
|
34
|
+
messageId: z.string().min(1),
|
|
35
|
+
receivedAt: z.string().datetime(),
|
|
36
|
+
role: z.literal("user"),
|
|
37
|
+
source: z.enum(["slack", "web"]),
|
|
38
|
+
text: z.string().optional(),
|
|
39
|
+
/** People mentioned in the text, resolved at read time. */
|
|
40
|
+
mentions: z.array(actorIdentitySchema).optional(),
|
|
41
|
+
attachments: z.array(messageAttachmentSchema).optional(),
|
|
42
|
+
/** Review item change that this Message records. */
|
|
43
|
+
reviewItemChange: reviewItemChangeRecordSchema.optional(),
|
|
44
|
+
redacted: z.literal(true).optional()
|
|
45
|
+
}).strict().superRefine((data, context) => {
|
|
46
|
+
if (data.text === void 0 === (data.redacted !== true)) context.addIssue({
|
|
47
|
+
code: "custom",
|
|
48
|
+
message: "pending message content must be text or explicitly redacted"
|
|
49
|
+
});
|
|
50
|
+
if (data.redacted && (data.actorIdentity || data.attachments || data.mentions || data.reviewItemChange)) context.addIssue({
|
|
51
|
+
code: "custom",
|
|
52
|
+
message: "redacted pending messages must not expose actor identity, attachments, mentions, or a review item"
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/** Participant-only authorization prompt for a parked web turn. */
|
|
56
|
+
const conversationPendingAuthorizationSchema = z.object({
|
|
57
|
+
authorizationUrl: z.string().url(),
|
|
58
|
+
completionText: z.string().min(1),
|
|
59
|
+
label: z.string().min(1)
|
|
60
|
+
}).strict();
|
|
61
|
+
/** Bounded mailbox snapshot for one conversation transcript. */
|
|
62
|
+
const conversationPendingMessagesReportSchema = z.object({
|
|
63
|
+
authorization: conversationPendingAuthorizationSchema.optional(),
|
|
64
|
+
conversationId: z.string().min(1),
|
|
65
|
+
generatedAt: z.string().datetime(),
|
|
66
|
+
messages: z.array(conversationPendingMessageSchema)
|
|
67
|
+
}).strict();
|
|
68
|
+
/** Optional filters for cancelling accepted mailbox rows. */
|
|
69
|
+
const cancelConversationPendingMessagesBodySchema = z.object({
|
|
70
|
+
inboundMessageIds: z.array(z.string().min(1)).min(1).optional(),
|
|
71
|
+
receivedBefore: z.string().datetime().optional()
|
|
72
|
+
}).strict();
|
|
73
|
+
/** Result of cancelling accepted human-facing mailbox rows. */
|
|
74
|
+
const cancelConversationPendingMessagesResponseSchema = z.object({
|
|
75
|
+
cancelledCount: z.number().int().nonnegative(),
|
|
76
|
+
cancelledInboundMessageIds: z.array(z.string().min(1)),
|
|
77
|
+
conversationId: z.string().min(1)
|
|
78
|
+
}).strict();
|
|
79
|
+
/** Queued web messages that the viewer wants Junior to read now. */
|
|
80
|
+
const steerConversationPendingMessagesBodySchema = z.object({ inboundMessageIds: z.array(z.string().min(1)).min(1) }).strict();
|
|
81
|
+
/** Result of steering queued web messages into the conversation. */
|
|
82
|
+
const steerConversationPendingMessagesResponseSchema = z.object({
|
|
83
|
+
conversationId: z.string().min(1),
|
|
84
|
+
steeredInboundMessageIds: z.array(z.string().min(1))
|
|
85
|
+
}).strict();
|
|
23
86
|
// src/api/schema/conversation-stats.ts
|
|
24
87
|
const conversationStatsItemSchema = z.object({
|
|
25
88
|
active: z.number(),
|
|
@@ -649,4 +712,4 @@ const statsReportSchema = z.object({
|
|
|
649
712
|
windowEnd: z.string(),
|
|
650
713
|
windowStart: z.string()
|
|
651
714
|
}).strict();
|
|
652
|
-
export { codeRepositorySummarySchema as $, avatarParamsSchema as A, dailyConversationActivitySchema as B, createdPersonalTokenSchema as C, revokePersonalTokenResponseSchema as D, personalTokenParamsSchema as E, locationDirectoryReportSchema as F, startConnectionResponseSchema as G, connectionParamsSchema as H, locationParamsSchema as I, codeChangeSummarySchema as J, codeActivityDaySchema as K, activityDays as L, personalSpendReportSchema as M, locationActivityDayReportSchema as N, actorDirectoryReportSchema as O, locationDetailReportSchema as P, codeRepositoryReportSchema as Q, activityHours as R, createPersonalTokenBodySchema as S, personalTokenMetadataSchema as T, connectionSchema as U, connectionListSchema as V, disconnectConnectionResponseSchema as W, codePersonReportSchema as X, codeOverviewReportSchema as Y, codeRepositoryParamsSchema as Z, disconnectServiceAccountResponseSchema as _, workspaceBodySchema as a, conversationStatsReportSchema as at, serviceAccountSchema as b, workspaceRepoSchema as c,
|
|
715
|
+
export { codeRepositorySummarySchema as $, avatarParamsSchema as A, dailyConversationActivitySchema as B, createdPersonalTokenSchema as C, revokePersonalTokenResponseSchema as D, personalTokenParamsSchema as E, locationDirectoryReportSchema as F, startConnectionResponseSchema as G, connectionParamsSchema as H, locationParamsSchema as I, codeChangeSummarySchema as J, codeActivityDaySchema as K, activityDays as L, personalSpendReportSchema as M, locationActivityDayReportSchema as N, actorDirectoryReportSchema as O, locationDetailReportSchema as P, codeRepositoryReportSchema as Q, activityHours as R, createPersonalTokenBodySchema as S, personalTokenMetadataSchema as T, connectionSchema as U, connectionListSchema as V, disconnectConnectionResponseSchema as W, codePersonReportSchema as X, codeOverviewReportSchema as Y, codeRepositoryParamsSchema as Z, disconnectServiceAccountResponseSchema as _, conversationAutoArchiveSchema as _t, workspaceBodySchema as a, conversationStatsReportSchema as at, serviceAccountSchema as b, workspaceRepoSchema as c, conversationPendingAuthorizationSchema as ct, reviewItemCountSchema as d, conversationPendingMessagesReportSchema as dt, conversationWatchSchema as et, reviewItemListQuerySchema as f, steerConversationPendingMessagesBodySchema as ft, reviewItemWaitingConversationsSchema as g, archiveDoneConversationsResponseSchema as gt, reviewItemSchema as h, archiveConversationResponseSchema as ht, deleteWorkspaceResponseSchema as i, stopConversationTurnResponseSchema as it, personParamsSchema as j, actorProfileReportSchema as k, workspaceSchema as l, conversationPendingMessageDeliverySchema as lt, reviewItemParamsSchema as m, archiveConversationBodySchema as mt, statsReportSchema as n, conversationChildAgentSchema as nt, workspaceListSchema as o, cancelConversationPendingMessagesBodySchema as ot, reviewItemListSchema as p, steerConversationPendingMessagesResponseSchema as pt, codeChangeSummaryReportSchema as q, baselineSnapshotSchema as r, conversationChildAgentsReportSchema as rt, workspaceParamsSchema as s, cancelConversationPendingMessagesResponseSchema as st, statSchema as t, conversationWatchesReportSchema as tt, reviewItemActionSchema as u, conversationPendingMessageSchema as ut, serviceAccountListSchema as v, pinConversationBodySchema as vt, personalTokenListSchema as w, startServiceAccountSignInResponseSchema as x, serviceAccountParamsSchema as y, pinConversationResponseSchema as yt, activitySixHours as z };
|