@sentry/junior 0.302.0 → 0.304.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-context-Cx9fn9B3.js → adapter-context-B1IpoELr.js} +2 -2
- package/dist/{admin-_poE5NKL.js → admin-BnVFGo_z.js} +5 -5
- package/dist/{agent-runner-CY9RvsTX.js → agent-runner-CoEeZSRh.js} +1461 -1248
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +6 -6
- package/dist/api.d.ts +13 -12
- package/dist/api.js +230 -105
- package/dist/{app-BpY3wtRP.d.ts → app-Cs157Zc5.d.ts} +17 -15
- package/dist/app.d.ts +1 -1
- package/dist/app.js +108 -96
- package/dist/{automation-Cva5ZOwW.js → automation-CuA3yEcD.js} +3 -1
- package/dist/{background-compaction-queue-CXFq1_Cz.js → background-compaction-queue-WLPNSF_b.js} +6 -6
- package/dist/{briefs-B3NG-pid.js → briefs-CagVVefw.js} +12 -9
- package/dist/{catalog-runtime-Dss0lSV6.js → catalog-runtime-B8ZXvXWm.js} +2 -2
- package/dist/cli/chat.d.ts +1 -1
- package/dist/cli/chat.js +21 -21
- package/dist/cli/check.js +10 -10
- package/dist/cli/env.d.ts +1 -0
- package/dist/cli/env.js +8 -7
- package/dist/cli/init.js +13 -4
- package/dist/cli/main.js +4 -4
- package/dist/cli/plugins.js +6 -6
- package/dist/cli/snapshot-create.js +7 -5
- package/dist/cli/upgrade.d.ts +2 -2
- package/dist/cli/upgrade.js +6 -6
- package/dist/{config-CzeZiMKs.js → config-DdO1BNcw.js} +142 -67
- package/dist/{connections-CDYhMfrs.js → connections-D20kp0j5.js} +6 -6
- package/dist/{continue-in-slack-7Uf05ndC.js → continue-in-slack-BKEVMBj1.js} +8 -8
- package/dist/{conversation-BNXfq6Lb.js → conversation-BOqdRtUx.js} +4 -12
- package/dist/{conversation-feed-Clf_cv0n.js → conversation-feed-CgpgP7yi.js} +35 -2
- package/dist/{conversation-privacy-D9xnM5mK.js → conversation-privacy-L1SK_v0V.js} +16 -8
- package/dist/{conversation-turn-D7SEZgTG.js → conversation-turn-BptVJylj.js} +20 -23
- package/dist/{credential-sync-DoD0gW-j.js → credential-sync-D1J1CGzL.js} +19 -19
- package/dist/{db-B-gtnNjr.js → db-EKJnkrIb.js} +180 -17
- package/dist/{db-BdsCzytP.d.ts → db-zbN5ZV_o.d.ts} +26 -26
- package/dist/{executor-DZg20EqU.js → executor-CoIZmFK8.js} +55 -15
- package/dist/{history-IjdmO_r6.js → history-m2-ceTTX.js} +21 -12
- package/dist/{install-t1KQyTUs.js → install-BT2Pf6HP.js} +3 -3
- package/dist/instrumentation.d.ts +4 -4
- package/dist/instrumentation.js +15 -11
- package/dist/{lineage-C79GjoQr.js → lineage-C5DGQCS_.js} +2 -2
- package/dist/{logging-C9oDAg4M.js → logging-QSZuMcvo.js} +19 -19
- package/dist/{message-BLUCzJXN.js → message-TtxftRHj.js} +9 -9
- package/dist/{model-input-5jwNC45G.js → model-input-BHXfA29g.js} +4 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +8 -8
- package/dist/{oauth-callback-server-BBl66vCb.js → oauth-callback-server-B0enqHtZ.js} +5 -4
- package/dist/{oauth-relay-DRzq73b6.js → oauth-relay-DAmfVmJu.js} +3 -6
- package/dist/{package-discovery-DJhGdS4c.js → package-discovery-x4AvVhMj.js} +1 -1
- package/dist/{plugin-module-Cf5gVPWP.js → plugin-module-Cv2ETe8Y.js} +1 -1
- package/dist/{plugins-BBX07Jzt.js → plugins-Bkk0XRo2.js} +3 -3
- package/dist/{projection-CIBwgD3s.js → projection-CNKK7doO.js} +755 -221
- package/dist/{prompt-CRQbzp5e.js → prompt-DSjhoKu5.js} +185 -12
- package/dist/{queue-DtCDaIct.js → queue-CDxkit82.js} +4 -4
- package/dist/{queue-CZyYgPF0.d.ts → queue-CbEHUO0l.d.ts} +1 -1
- package/dist/{registry-DdFQHZ_d.js → registry-DBDNUUmz.js} +37 -37
- package/dist/{resolve-CdW4BdrK.js → resolve-CQLhMWSu.js} +3 -3
- package/dist/{result-oOMv1t4O.js → result-B-pauj42.js} +10 -15
- package/dist/rolldown-runtime-BKpuH2hG.js +26 -0
- package/dist/{runner-DqitLtm-.js → runner-B3KxKks5.js} +10 -10
- package/dist/{sandbox-egress-signals-Bw9I0yfJ.js → sandbox-egress-signals-DJJX9ClG.js} +1 -1
- package/dist/{schema-DnVQepWP.js → schema-Bx0Mlo32.js} +77 -13
- package/dist/{schema-BIFM-U1a.d.ts → schema-CKcu-IK6.d.ts} +562 -23
- package/dist/{secrets-DebYU866.js → secrets-DHaJ5TTn.js} +4 -4
- package/dist/{sentry-BRTJqumy.js → sentry-CPbZjomA.js} +3 -28
- package/dist/{sentry-route-name-BhwWnfqj.js → sentry-route-name-C6EIzAGP.js} +1 -1
- package/dist/{service-account-CrZftRTb.js → service-account-2HmlNPvy.js} +49 -48
- package/dist/{service-account-B6mKAPVo.js → service-account-DQLqkSVv.js} +5 -5
- package/dist/{session-stop-DW63Z3kj.js → session-stop-DEeZKqbX.js} +132 -74
- package/dist/{skills-C16fz60Z.js → skills-2UrD7JkN.js} +6 -9
- package/dist/{slack-conversation-unfurl-BHhefEb7.js → slack-conversation-unfurl-Dd129Uov.js} +14 -18
- package/dist/{spawn-D_RnFYfy.js → spawn-eMho9HDJ.js} +7 -7
- package/dist/{legacy-web-actor-id-C-cEeWqL.js → state-Bveuc4Zh.js} +32 -32
- package/dist/{stop-7p1i08CY.js → stop-D_ltJLDS.js} +359 -171
- package/dist/{store-C28I0CVW.js → store-COeYnPL_.js} +5 -5
- package/dist/{task-queue-BVUJbQ28.js → task-queue-CBIDXZpV.js} +3 -3
- package/dist/{task-runner-CWi8j7Z6.js → task-runner-CJF7zIJL.js} +15 -18
- package/dist/{thread-context-D3-yYUd0.js → thread-context-Cg0jt0aE.js} +12 -12
- package/dist/{turn-session-routing-BFMS9ATF.js → turn-session-routing-CaY3Tp8m.js} +32 -32
- package/dist/{turn-user-message-C3-O8Omt.js → turn-user-message-tcom1RYd.js} +3 -3
- package/dist/{validation-BSFKUIb4.js → validation-EU91JwIT.js} +2 -2
- package/dist/vercel.js +1 -1
- package/dist/{version-BHHXNi-0.js → version-BYRPhY5G.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-B1SO21Qa.js → viewer-Cf8ISkAc.js} +3 -3
- package/dist/{warmup-Bz9bzkzN.js → warmup-TgY4S1vx.js} +202 -577
- package/dist/{worker-BspReIIK.js → worker-C6Uq4OKD.js} +9 -12
- package/migrations/0109_user_preferences.sql +1 -0
- package/migrations/0110_code_change_repository_state_index.sql +1 -0
- package/migrations/0111_attachment_kinds.sql +14 -0
- package/migrations/0112_attachment_url_fill.sql +51 -0
- package/migrations/0113_attachment_url_index.sql +1 -0
- package/migrations/meta/0099_snapshot.json +102 -326
- package/migrations/meta/0109_snapshot.json +4925 -0
- package/migrations/meta/0110_snapshot.json +4952 -0
- package/migrations/meta/0111_snapshot.json +5011 -0
- package/migrations/meta/0112_snapshot.json +5011 -0
- package/migrations/meta/0113_snapshot.json +5033 -0
- package/migrations/meta/_journal.json +36 -1
- package/package.json +16 -19
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
2
|
-
import { D as idempotencyKeySchema, O as conversationChildAgentTotalsSchema, S as conversationUsageSchema, b as conversationSummaryReportSchema, c as conversationAuxiliaryCostsSchema, i as actorIdentitySchema, q as inputFileSchema } from "./conversation-BNXfq6Lb.js";
|
|
3
|
-
import "./automation-Cva5ZOwW.js";
|
|
4
1
|
import { M as sumUtcHoursIntoSixHours, O as fillUtcDays, d as userInputRequestSchema, i as AGENT_INVOCATION_STATUSES, k as fillUtcHours } from "./web-message-id-lNodcCOI.js";
|
|
5
|
-
import "./conversation-
|
|
2
|
+
import { D as conversationChildAgentTotalsSchema, E as idempotencyKeySchema, K as inputFileSchema, c as conversationAuxiliaryCostsSchema, i as actorIdentitySchema, x as conversationUsageSchema, y as conversationSummaryReportSchema } from "./conversation-BOqdRtUx.js";
|
|
3
|
+
import "./conversation-feed-CgpgP7yi.js";
|
|
6
4
|
import { t as isPushServiceEndpoint } from "./push-endpoint-CO-nomUd.js";
|
|
5
|
+
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
6
|
+
import "./automation-CuA3yEcD.js";
|
|
7
7
|
import * as z from "zod";
|
|
8
|
-
import { codeChangeStateSchema, eventMatchSchema, ownedObjectAnnotationSchema } from "@sentry/junior-plugin-api";
|
|
8
|
+
import { codeChangeStateSchema, eventMatchSchema, objectTypeSchema, ownedObjectAnnotationSchema } from "@sentry/junior-plugin-api";
|
|
9
9
|
// src/api/schema/conversation-attachment-upload.ts
|
|
10
10
|
/**
|
|
11
11
|
* Ask to upload one file for a Message. `conversationId` names an existing
|
|
@@ -306,12 +306,16 @@ const codeChangeSummarySchema = z.object({
|
|
|
306
306
|
closed: z.number().int().nonnegative(),
|
|
307
307
|
costUsd: z.number().nonnegative().optional(),
|
|
308
308
|
created: z.number().int().nonnegative(),
|
|
309
|
+
/** Open changes with no activity for more than {@link IDLE_CHANGE_DAYS} days. */
|
|
310
|
+
idle: z.number().int().nonnegative(),
|
|
309
311
|
medianCostUsd: z.number().nonnegative().optional(),
|
|
310
312
|
medianMergeTimeMs: z.number().nonnegative().optional(),
|
|
311
313
|
merged: z.number().int().nonnegative(),
|
|
312
314
|
mergeRate: z.number().min(0).max(1).optional(),
|
|
313
315
|
open: z.number().int().nonnegative()
|
|
314
316
|
}).strict();
|
|
317
|
+
/** Whole days without activity after which an open change counts as idle. */
|
|
318
|
+
const IDLE_CHANGE_DAYS = 7;
|
|
315
319
|
/** UTC day (`YYYY-MM-DD`) or hour (`YYYY-MM-DDTHH`) activity bucket key. */
|
|
316
320
|
const codeMetricBucketSchema = z.string().regex(/^\d{4}-\d{2}-\d{2}(T\d{2})?$/);
|
|
317
321
|
const codeActivityDaySchema = z.object({
|
|
@@ -363,11 +367,19 @@ const codeOverviewReportSchema = z.object({
|
|
|
363
367
|
windowStart: z.string()
|
|
364
368
|
}).strict();
|
|
365
369
|
const codeRepositoryParamsSchema = z.object({ repositoryId: z.string().uuid() }).strict();
|
|
370
|
+
/** Optional change state that limits the listed repository changes. */
|
|
371
|
+
const codeRepositoryQuerySchema = z.object({ state: codeChangeStateSchema.optional() }).strict();
|
|
366
372
|
/** Code activity, recent changes, and Workspaces for one repository. */
|
|
367
373
|
const codeRepositoryReportSchema = z.object({
|
|
368
374
|
activityDays: z.array(codeActivityDaySchema),
|
|
369
375
|
activityHours: z.array(codeActivityDaySchema).optional(),
|
|
370
376
|
activitySixHours: z.array(codeActivityDaySchema).optional(),
|
|
377
|
+
/** Every code change in the repository by state, past the listed ones. */
|
|
378
|
+
changeCounts: z.object({
|
|
379
|
+
closed: z.number().int().nonnegative(),
|
|
380
|
+
merged: z.number().int().nonnegative(),
|
|
381
|
+
open: z.number().int().nonnegative()
|
|
382
|
+
}).strict(),
|
|
371
383
|
changes: z.array(codeChangeSummaryReportSchema),
|
|
372
384
|
generatedAt: z.string(),
|
|
373
385
|
repository: z.object({
|
|
@@ -391,10 +403,16 @@ const codePersonReportSchema = z.object({
|
|
|
391
403
|
activitySixHours: z.array(codeActivityDaySchema).optional(),
|
|
392
404
|
changes: z.array(codeChangeSummaryReportSchema),
|
|
393
405
|
generatedAt: z.string(),
|
|
406
|
+
/** Set when `changes` is a full page: pass it as `cursor` for the next. */
|
|
407
|
+
nextCursor: z.string().optional(),
|
|
394
408
|
summary: codeChangeSummarySchema,
|
|
395
409
|
windowEnd: z.string(),
|
|
396
410
|
windowStart: z.string()
|
|
397
411
|
}).strict();
|
|
412
|
+
/** Query for one page of a person's code changes. */
|
|
413
|
+
const personCodeQuerySchema = z.object({
|
|
414
|
+
/** `nextCursor` from the previous page. */
|
|
415
|
+
cursor: z.string().min(1).max(500).optional() }).strict();
|
|
398
416
|
// src/api/schema/connection.ts
|
|
399
417
|
const connectionSchema = z.object({
|
|
400
418
|
provider: z.string(),
|
|
@@ -775,6 +793,11 @@ const reviewItemSchema = z.object({
|
|
|
775
793
|
]),
|
|
776
794
|
subject: z.object({
|
|
777
795
|
id: z.string().min(1),
|
|
796
|
+
/**
|
|
797
|
+
* The object type of the link type that claims `url`, such as
|
|
798
|
+
* `code_change` for a pull request. Unset when none claims it.
|
|
799
|
+
*/
|
|
800
|
+
objectType: objectTypeSchema.optional(),
|
|
778
801
|
title: z.string().min(1).optional(),
|
|
779
802
|
url: z.string().min(1).optional()
|
|
780
803
|
}).strict().optional(),
|
|
@@ -785,7 +808,8 @@ const reviewItemSchema = z.object({
|
|
|
785
808
|
/**
|
|
786
809
|
* Review desk list filters. The list has the open items that the viewer can
|
|
787
810
|
* see, one page at a time. A search or `include=archived` also finds done and
|
|
788
|
-
* dismissed items, after the open ones.
|
|
811
|
+
* dismissed items, after the open ones. `status` lists closed items instead,
|
|
812
|
+
* with the same visibility.
|
|
789
813
|
*/
|
|
790
814
|
const reviewItemListQuerySchema = z.object({
|
|
791
815
|
conversationId: z.string().min(1).optional(),
|
|
@@ -800,7 +824,22 @@ const reviewItemListQuerySchema = z.object({
|
|
|
800
824
|
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
801
825
|
/** Also list the newest done and dismissed items, with the first page. */
|
|
802
826
|
include: z.enum(["archived"]).optional(),
|
|
803
|
-
q: z.string().trim().max(200).optional()
|
|
827
|
+
q: z.string().trim().max(200).optional(),
|
|
828
|
+
/**
|
|
829
|
+
* `waiting` lists the open items that wait on the viewer first, then the
|
|
830
|
+
* rest, newest first within each group. By default open items page
|
|
831
|
+
* oldest first. A closed list ignores it.
|
|
832
|
+
*/
|
|
833
|
+
sort: z.enum(["waiting"]).optional(),
|
|
834
|
+
/**
|
|
835
|
+
* `open` (the default), or closed statuses, comma separated, such as
|
|
836
|
+
* `done,dismissed`. Closed items page newest closed first.
|
|
837
|
+
*/
|
|
838
|
+
status: z.string().default("open").transform((value) => [...new Set(value.split(","))]).pipe(z.array(z.enum([
|
|
839
|
+
"open",
|
|
840
|
+
"done",
|
|
841
|
+
"dismissed"
|
|
842
|
+
])).refine((statuses) => !statuses.includes("open") || statuses.length === 1, "List open items on their own."))
|
|
804
843
|
}).strict();
|
|
805
844
|
/**
|
|
806
845
|
* One page of the review desk list. Open items come first, oldest first.
|
|
@@ -814,13 +853,38 @@ const reviewItemListSchema = z.object({
|
|
|
814
853
|
/** Set when more open items follow. Pass it as `cursor` to read them. */
|
|
815
854
|
nextCursor: z.string().min(1).optional()
|
|
816
855
|
}).strict();
|
|
817
|
-
/**
|
|
818
|
-
const
|
|
856
|
+
/** `GET /api/review-items/count` query. */
|
|
857
|
+
const reviewItemCountQuerySchema = z.object({
|
|
858
|
+
/** `automations` also counts the viewer's Automations that need attention. */
|
|
859
|
+
include: z.enum(["automations"]).optional(),
|
|
860
|
+
/**
|
|
861
|
+
* The newest item of each snoozed Inbox row, comma separated. Snoozes
|
|
862
|
+
* live in the browser, so the server counts only the ids it is given.
|
|
863
|
+
*/
|
|
864
|
+
snoozed: z.string().default("").transform((value) => [...new Set(value.split(",").filter(Boolean))]).pipe(z.array(z.string().min(1).max(200)).max(100))
|
|
865
|
+
}).strict();
|
|
819
866
|
/**
|
|
820
|
-
*
|
|
821
|
-
*
|
|
867
|
+
* The counts behind the Inbox badge, which shows the sum of `needsViewer`
|
|
868
|
+
* and `automations`, and behind the Inbox entries.
|
|
822
869
|
*/
|
|
823
|
-
|
|
870
|
+
const reviewItemCountSchema = z.object({
|
|
871
|
+
/**
|
|
872
|
+
* The viewer's own Automations that need attention, as the Inbox lists
|
|
873
|
+
* them (`scope=attention&owner=me`). Only with `include=automations`.
|
|
874
|
+
*/
|
|
875
|
+
automations: z.number().int().nonnegative().optional(),
|
|
876
|
+
/** The `needsViewer` items whose subject is a code change. */
|
|
877
|
+
codeChanges: z.number().int().nonnegative(),
|
|
878
|
+
/** The `needsViewer` items that ask with a form. */
|
|
879
|
+
decisions: z.number().int().nonnegative(),
|
|
880
|
+
/**
|
|
881
|
+
* Open action items assigned to the viewer as a User
|
|
882
|
+
* (`reviewItemNeedsUser`). Notices and items for Everyone do not count.
|
|
883
|
+
*/
|
|
884
|
+
needsViewer: z.number().int().nonnegative(),
|
|
885
|
+
/** The `snoozed` ids that are open and listed for the viewer. */
|
|
886
|
+
snoozed: z.number().int().nonnegative()
|
|
887
|
+
}).strict();
|
|
824
888
|
/**
|
|
825
889
|
* Conversations linked to an open action item assigned to the viewer. `title`
|
|
826
890
|
* is the newest such item; `count` is how many there are; `waitingSince` is
|
|
@@ -933,4 +997,4 @@ const versionsSchema = z.object({
|
|
|
933
997
|
/** The viewer's rolling model spend. */
|
|
934
998
|
spend: z.string().min(1)
|
|
935
999
|
}).strict();
|
|
936
|
-
export {
|
|
1000
|
+
export { testNotificationResponseSchema as $, startServiceAccountSignInResponseSchema as A, conversationOutlineSchema as At, personParamsSchema as B, pinConversationResponseSchema as Bt, cacheWarmingSavingsRefillResponseSchema as C, attachObjectLinkBodySchema as Ct, serviceAccountListSchema as D, stopConversationTurnResponseSchema as Dt, disconnectServiceAccountResponseSchema as E, objectLinksReportSchema as Et, personalTokenParamsSchema as F, conversationSubscriptionBodySchema as Ft, locationParamsSchema as G, attachmentUploadParamsSchema as Gt, locationActivityDayReportSchema as H, reorderPinnedConversationsResponseSchema as Ht, revokePersonalTokenResponseSchema as I, conversationSubscriptionResponseSchema as It, activitySixHours as J, activityDays as K, attachmentUploadSchema as Kt, actorDirectoryReportSchema as L, conversationDeliveryBodySchema as Lt, createdPersonalTokenSchema as M, archiveConversationResponseSchema as Mt, personalTokenListSchema as N, archiveDoneConversationsResponseSchema as Nt, serviceAccountParamsSchema as O, conversationStatsReportSchema as Ot, personalTokenMetadataSchema as P, conversationAutoArchiveSchema as Pt, pushSubscriptionDeleteBodySchema as Q, actorProfileReportSchema as R, conversationDeliveryResponseSchema as Rt, cacheWarmingSavingsQuerySchema as S, MAX_OBJECT_LINKS as St, closeCacheWarmingBreakerResponseSchema as T, objectLinksQuerySchema as Tt, locationDetailReportSchema as U, conversationCatchUpBodySchema as Ut, personalSpendReportSchema as V, reorderPinnedConversationsBodySchema as Vt, locationDirectoryReportSchema as W, conversationCatchUpSchema as Wt, notificationSettingsSchema as X, dailyConversationActivitySchema as Y, pushSubscriptionBodySchema as Z, reviewItemParamsSchema as _, conversationWatchesReportSchema as _t, baselineSnapshotSchema as a, IDLE_CHANGE_DAYS as at, cacheWarmingBreakerListSchema as b, continueConversationInSlackBodySchema as bt, workspaceListSchema as c, codeChangeSummarySchema as ct, workspaceSchema as d, codeRepositoryParamsSchema as dt, connectionListSchema as et, reviewItemActionSchema as f, codeRepositoryQuerySchema as ft, reviewItemListSchema as g, conversationWatchSchema as gt, reviewItemListQuerySchema as h, personCodeQuerySchema as ht, statsReportSchema as i, startConnectionResponseSchema as it, createPersonalTokenBodySchema as j, archiveConversationBodySchema as jt, serviceAccountSchema as k, CONVERSATION_OUTLINE_TEXT_LENGTH as kt, workspaceParamsSchema as l, codeOverviewReportSchema as lt, reviewItemCountSchema as m, codeRepositorySummarySchema as mt, versionsSchema as n, connectionSchema as nt, deleteWorkspaceResponseSchema as o, codeActivityDaySchema as ot, reviewItemCountQuerySchema as p, codeRepositoryReportSchema as pt, activityHours as q, createAttachmentUploadBodySchema as qt, statSchema as r, disconnectConnectionResponseSchema as rt, workspaceBodySchema as s, codeChangeSummaryReportSchema as st, versionsQuerySchema as t, connectionParamsSchema as tt, workspaceRepoSchema as u, codePersonReportSchema as ut, reviewItemSchema as v, conversationChildAgentSchema as vt, cacheWarmingSavingsReportSchema as w, attachObjectLinkResponseSchema as wt, cacheWarmingBreakerParamsSchema as x, continueConversationInSlackResponseSchema as xt, reviewItemWaitingConversationsSchema as y, conversationChildAgentsReportSchema as yt, avatarParamsSchema as z, pinConversationBodySchema as zt };
|