@sentry/junior 0.301.0 → 0.303.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-BdVnSuY5.js +43 -0
- package/dist/{admin-CRJHvCGg.js → admin-AfeAdS3J.js} +2 -2
- package/dist/{agent-runner-H4YhvNBj.js → agent-runner-BP8_DLUv.js} +4688 -13870
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -8
- package/dist/api.d.ts +13 -12
- package/dist/api.js +268 -118
- package/dist/{app-HDZglaIu.d.ts → app-Dd9v1mNx.d.ts} +15 -15
- package/dist/app.d.ts +1 -1
- package/dist/app.js +99 -330
- package/dist/{automation-Cva5ZOwW.js → automation-D9MvhOWY.js} +3 -1
- package/dist/{background-compaction-queue-CNrZ3QcU.js → background-compaction-queue-xaE05jxH.js} +97 -206
- package/dist/{briefs-x6Mzwxmg.js → briefs-D8i-dKTp.js} +4 -4
- package/dist/{catalog-runtime-BEY6EGRi.js → catalog-runtime-d1EM6Z0V.js} +2 -2
- package/dist/cli/chat.d.ts +1 -1
- package/dist/cli/chat.js +21 -21
- package/dist/cli/check.js +8 -8
- 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 +5 -5
- package/dist/{config-CmjhyqgB.js → config-oGM7KA9M.js} +44 -63
- package/dist/{connections-CfIRm0xv.js → connections-BlikzEJv.js} +6 -6
- package/dist/{continue-in-slack-DPoABVkB.js → continue-in-slack-BZnYifiG.js} +5 -6
- package/dist/{conversation-BNXfq6Lb.js → conversation-CY1jnBiC.js} +1 -1
- package/dist/{conversation-feed-CfpyFMHP.js → conversation-feed-BZJRk6UV.js} +2 -1
- package/dist/{conversation-privacy-0CM0V2qK.js → conversation-privacy-Cx515ddM.js} +7 -7
- package/dist/{conversation-turn-C0sxyvS-.js → conversation-turn-DAhRdX4m.js} +20 -24
- package/dist/{credential-sync-tEMKZ_8M.js → credential-sync-DfhmWFeo.js} +18 -20
- package/dist/{db-Czra10QW.js → db-C-2tFxk3.js} +326 -17
- package/dist/{db-BdUHQhrC.d.ts → db-DPqcEM9_.d.ts} +25 -25
- package/dist/{executor-D_023K0H.js → executor-NVfS8aQ2.js} +51 -10
- package/dist/{history-IjdmO_r6.js → history-UZ3M2M9r.js} +13 -10
- package/dist/install-CHLrpRZc.js +228 -0
- package/dist/instrumentation.d.ts +4 -4
- package/dist/instrumentation.js +10 -10
- package/dist/{lineage-DmMIE0VL.js → lineage-HGLhd_-N.js} +2 -2
- package/dist/{logging-DcjLDDqi.js → logging-DiyqRLBx.js} +24 -20
- package/dist/{message-C0JY9RJP.js → message-CkCOcbFH.js} +9 -9
- package/dist/{model-input-CBp-p24N.js → model-input-DmoPPtPE.js} +5 -10
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +7 -6
- package/dist/{oauth-callback-server-BRq9QNhU.js → oauth-callback-server-CIf_6YmA.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-CQNDOi82.js → projection-DBq8tsA5.js} +489 -223
- package/dist/{prompt-DLUB5m72.js → prompt-D2KlJopL.js} +15 -5
- package/dist/{queue-CZyYgPF0.d.ts → queue-CbEHUO0l.d.ts} +1 -1
- package/dist/queue-DFaOscp5.js +115 -0
- package/dist/{registry-Dj377ADs.js → registry-Bu0Z9BEO.js} +37 -37
- package/dist/{resolve-DJkh9Fky.js → resolve-DXuA3G0g.js} +4 -229
- package/dist/{result-C8iIpDl1.js → result-DpiNseDA.js} +11 -16
- package/dist/rolldown-runtime-BKpuH2hG.js +26 -0
- package/dist/{runner-DZqrOy8C.js → runner-iu1heRFv.js} +10 -10
- package/dist/{sandbox-egress-signals-CGwH86S9.js → sandbox-egress-signals-2HFYDcQf.js} +1 -1
- package/dist/{schema-CdZFn7Qd.d.ts → schema-DHMOaRzC.d.ts} +959 -41
- package/dist/{schema-DyHXiQKI.js → schema-DvfX3Gq_.js} +141 -40
- 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-suY004dx.js → service-account-BcT5LR7V.js} +271 -20
- package/dist/{service-account-D6jGR4a1.js → service-account-xYkaQTrw.js} +3 -3
- package/dist/{session-stop-BLmfFI3d.js → session-stop-BLLp1IP_.js} +1098 -1110
- package/dist/{skills-CmNG0dHb.js → skills-CNAGH4ju.js} +6 -9
- package/dist/{slack-conversation-unfurl-Bty-DlHe.js → slack-conversation-unfurl-DYnqe5ci.js} +10 -14
- package/dist/{spawn-CNjkpXpk.js → spawn-cGasWW33.js} +7 -7
- package/dist/{state-CEbZuZD6.js → state-CDS6h_Wv.js} +34 -5
- package/dist/{stop-Bjy2-K4H.js → stop-DMMA67yT.js} +896 -196
- package/dist/{store-DmV4CoNr.js → store-Dgs7Oe44.js} +5 -5
- package/dist/{task-queue-AhG1tSXR.js → task-queue-DcF0nhhz.js} +3 -3
- package/dist/{task-runner-BMxZI3o7.js → task-runner-BGXF7Fo7.js} +15 -20
- package/dist/{thread-context-CXLnbg7g.js → thread-context-BPky1KBe.js} +12 -12
- package/dist/{store-Epv6t4vV.js → turn-session-routing-DGvn9MSl.js} +384 -13
- package/dist/{turn-user-message-DsUZi9gn.js → turn-user-message-19CkuUvM.js} +3 -3
- package/dist/{validation-DOz8X9BU.js → validation-lu1DgjNQ.js} +2 -2
- package/dist/vercel.js +1 -1
- package/dist/{version-CGMRmMPK.js → version-Uo3c94Dx.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-H3EsMWtJ.js → viewer-BPQHMx3-.js} +3 -3
- package/dist/warmup-H8uLvW9e.js +13946 -0
- package/dist/{statuses-Hn-HsOph.js → web-message-id-lNodcCOI.js} +136 -1
- package/dist/{worker-ClphajjD.js → worker-B-pM_-3K.js} +9 -12
- package/migrations/0108_conversation_embeddings.sql +13 -0
- package/migrations/0109_user_preferences.sql +1 -0
- package/migrations/0110_code_change_repository_state_index.sql +1 -0
- package/migrations/meta/0108_snapshot.json +4688 -0
- package/migrations/meta/0109_snapshot.json +4925 -0
- package/migrations/meta/0110_snapshot.json +4952 -0
- package/migrations/meta/_journal.json +22 -1
- package/package.json +16 -17
- package/dist/adapter-CNjGEJO9.js +0 -303
- package/dist/reporting-window-DopzcOHh.js +0 -137
- package/dist/turn-session-routing-BD3-jJl7.js +0 -380
- package/dist/users-BxvYclQg.js +0 -424
- package/dist/warmup-CdU5hR49.js +0 -3715
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
3
|
-
import
|
|
4
|
-
import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours } from "./reporting-window-DopzcOHh.js";
|
|
5
|
-
import "./automation-Cva5ZOwW.js";
|
|
6
|
-
import "./conversation-feed-CfpyFMHP.js";
|
|
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";
|
|
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-CY1jnBiC.js";
|
|
3
|
+
import "./conversation-feed-BZJRk6UV.js";
|
|
7
4
|
import { t as isPushServiceEndpoint } from "./push-endpoint-CO-nomUd.js";
|
|
5
|
+
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
6
|
+
import "./automation-D9MvhOWY.js";
|
|
8
7
|
import * as z from "zod";
|
|
9
|
-
import { codeChangeStateSchema, eventMatchSchema, ownedObjectAnnotationSchema } from "@sentry/junior-plugin-api";
|
|
8
|
+
import { codeChangeStateSchema, eventMatchSchema, objectTypeSchema, ownedObjectAnnotationSchema } from "@sentry/junior-plugin-api";
|
|
10
9
|
// src/api/schema/conversation-attachment-upload.ts
|
|
11
10
|
/**
|
|
12
11
|
* Ask to upload one file for a Message. `conversationId` names an existing
|
|
@@ -307,12 +306,16 @@ const codeChangeSummarySchema = z.object({
|
|
|
307
306
|
closed: z.number().int().nonnegative(),
|
|
308
307
|
costUsd: z.number().nonnegative().optional(),
|
|
309
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(),
|
|
310
311
|
medianCostUsd: z.number().nonnegative().optional(),
|
|
311
312
|
medianMergeTimeMs: z.number().nonnegative().optional(),
|
|
312
313
|
merged: z.number().int().nonnegative(),
|
|
313
314
|
mergeRate: z.number().min(0).max(1).optional(),
|
|
314
315
|
open: z.number().int().nonnegative()
|
|
315
316
|
}).strict();
|
|
317
|
+
/** Whole days without activity after which an open change counts as idle. */
|
|
318
|
+
const IDLE_CHANGE_DAYS = 7;
|
|
316
319
|
/** UTC day (`YYYY-MM-DD`) or hour (`YYYY-MM-DDTHH`) activity bucket key. */
|
|
317
320
|
const codeMetricBucketSchema = z.string().regex(/^\d{4}-\d{2}-\d{2}(T\d{2})?$/);
|
|
318
321
|
const codeActivityDaySchema = z.object({
|
|
@@ -364,11 +367,19 @@ const codeOverviewReportSchema = z.object({
|
|
|
364
367
|
windowStart: z.string()
|
|
365
368
|
}).strict();
|
|
366
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();
|
|
367
372
|
/** Code activity, recent changes, and Workspaces for one repository. */
|
|
368
373
|
const codeRepositoryReportSchema = z.object({
|
|
369
374
|
activityDays: z.array(codeActivityDaySchema),
|
|
370
375
|
activityHours: z.array(codeActivityDaySchema).optional(),
|
|
371
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(),
|
|
372
383
|
changes: z.array(codeChangeSummaryReportSchema),
|
|
373
384
|
generatedAt: z.string(),
|
|
374
385
|
repository: z.object({
|
|
@@ -392,10 +403,16 @@ const codePersonReportSchema = z.object({
|
|
|
392
403
|
activitySixHours: z.array(codeActivityDaySchema).optional(),
|
|
393
404
|
changes: z.array(codeChangeSummaryReportSchema),
|
|
394
405
|
generatedAt: z.string(),
|
|
406
|
+
/** Set when `changes` is a full page: pass it as `cursor` for the next. */
|
|
407
|
+
nextCursor: z.string().optional(),
|
|
395
408
|
summary: codeChangeSummarySchema,
|
|
396
409
|
windowEnd: z.string(),
|
|
397
410
|
windowStart: z.string()
|
|
398
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();
|
|
399
416
|
// src/api/schema/connection.ts
|
|
400
417
|
const connectionSchema = z.object({
|
|
401
418
|
provider: z.string(),
|
|
@@ -672,6 +689,69 @@ const cacheWarmingBreakerSchema = z.object({
|
|
|
672
689
|
const cacheWarmingBreakerListSchema = z.object({ breakers: z.array(cacheWarmingBreakerSchema) }).strict();
|
|
673
690
|
const cacheWarmingBreakerParamsSchema = z.object({ provider: z.string().regex(/^[a-z][a-z0-9-]*$/).max(64) }).strict();
|
|
674
691
|
const closeCacheWarmingBreakerResponseSchema = z.object({ closed: z.literal(true) }).strict();
|
|
692
|
+
const cacheWarmingSavingsQuerySchema = z.object({
|
|
693
|
+
/** Trailing UTC days, today included. */
|
|
694
|
+
days: z.enum([
|
|
695
|
+
"1",
|
|
696
|
+
"7",
|
|
697
|
+
"30",
|
|
698
|
+
"90"
|
|
699
|
+
]).default("30").transform((days) => Number(days)) }).strict();
|
|
700
|
+
/** What cache warming saved, in dollars. Net savings can be negative. */
|
|
701
|
+
const cacheWarmingSavingsSchema = z.object({
|
|
702
|
+
/** Idle periods that count, as defined by `idlePeriodSavings`. */
|
|
703
|
+
idlePeriods: z.number().int().nonnegative(),
|
|
704
|
+
/** Idle periods whose next call read the warmed cache. */
|
|
705
|
+
hits: z.number().int().nonnegative(),
|
|
706
|
+
/** Cache writes that the hits avoided, less their cache reads. */
|
|
707
|
+
savedUsd: z.number().nonnegative(),
|
|
708
|
+
/** Cost of every idle warmup call. */
|
|
709
|
+
warmupCostUsd: z.number().nonnegative(),
|
|
710
|
+
/** Savings of an ideal warmer that knew each gap. */
|
|
711
|
+
oracleSavingsUsd: z.number().nonnegative(),
|
|
712
|
+
/** Idle periods with no warm state, such as a too large snapshot. */
|
|
713
|
+
unwarmedIdlePeriods: z.number().int().nonnegative(),
|
|
714
|
+
/** The part of the oracle savings from idle periods with no warm state. */
|
|
715
|
+
unwarmedOracleSavingsUsd: z.number().nonnegative()
|
|
716
|
+
}).strict();
|
|
717
|
+
const cacheWarmingSavingsReportSchema = z.object({
|
|
718
|
+
days: z.array(cacheWarmingSavingsSchema.extend({
|
|
719
|
+
date: z.string(),
|
|
720
|
+
/**
|
|
721
|
+
* Saved less warmup cost. Null on a day filled from history, which
|
|
722
|
+
* has no warmup calls, so its warmup cost is unknown.
|
|
723
|
+
*/
|
|
724
|
+
netSavingsUsd: z.number().nullable()
|
|
725
|
+
})),
|
|
726
|
+
totals: cacheWarmingSavingsSchema.extend({
|
|
727
|
+
/** Net savings of the days with known warmup cost. */
|
|
728
|
+
netSavingsUsd: z.number(),
|
|
729
|
+
/** Oracle savings of the days with known warmup cost. */
|
|
730
|
+
knownCostOracleSavingsUsd: z.number().nonnegative(),
|
|
731
|
+
/**
|
|
732
|
+
* Net savings over oracle savings of the days with known warmup cost.
|
|
733
|
+
* Null with no oracle savings on those days.
|
|
734
|
+
*/
|
|
735
|
+
effectiveness: z.number().nullable(),
|
|
736
|
+
/** Days filled from history, with unknown warmup cost. */
|
|
737
|
+
unknownCostDays: z.number().int().nonnegative()
|
|
738
|
+
})
|
|
739
|
+
}).strict();
|
|
740
|
+
const cacheWarmingSavingsRefillSchema = z.object({
|
|
741
|
+
status: z.enum([
|
|
742
|
+
"idle",
|
|
743
|
+
"pending",
|
|
744
|
+
"running",
|
|
745
|
+
"done",
|
|
746
|
+
"failed"
|
|
747
|
+
]),
|
|
748
|
+
startedAt: z.string().optional(),
|
|
749
|
+
finishedAt: z.string().optional(),
|
|
750
|
+
error: z.string().optional(),
|
|
751
|
+
scannedConversations: z.number().int().nonnegative().optional(),
|
|
752
|
+
totalConversations: z.number().int().nonnegative().optional()
|
|
753
|
+
}).strict();
|
|
754
|
+
const cacheWarmingSavingsRefillResponseSchema = z.object({ refill: cacheWarmingSavingsRefillSchema }).strict();
|
|
675
755
|
// src/api/schema/review-item.ts
|
|
676
756
|
const answerSchema = z.object({
|
|
677
757
|
other: z.string().max(4e3).optional(),
|
|
@@ -713,6 +793,11 @@ const reviewItemSchema = z.object({
|
|
|
713
793
|
]),
|
|
714
794
|
subject: z.object({
|
|
715
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(),
|
|
716
801
|
title: z.string().min(1).optional(),
|
|
717
802
|
url: z.string().min(1).optional()
|
|
718
803
|
}).strict().optional(),
|
|
@@ -723,7 +808,8 @@ const reviewItemSchema = z.object({
|
|
|
723
808
|
/**
|
|
724
809
|
* Review desk list filters. The list has the open items that the viewer can
|
|
725
810
|
* see, one page at a time. A search or `include=archived` also finds done and
|
|
726
|
-
* dismissed items, after the open ones.
|
|
811
|
+
* dismissed items, after the open ones. `status` lists closed items instead,
|
|
812
|
+
* with the same visibility.
|
|
727
813
|
*/
|
|
728
814
|
const reviewItemListQuerySchema = z.object({
|
|
729
815
|
conversationId: z.string().min(1).optional(),
|
|
@@ -738,7 +824,22 @@ const reviewItemListQuerySchema = z.object({
|
|
|
738
824
|
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
739
825
|
/** Also list the newest done and dismissed items, with the first page. */
|
|
740
826
|
include: z.enum(["archived"]).optional(),
|
|
741
|
-
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."))
|
|
742
843
|
}).strict();
|
|
743
844
|
/**
|
|
744
845
|
* One page of the review desk list. Open items come first, oldest first.
|
|
@@ -752,13 +853,38 @@ const reviewItemListSchema = z.object({
|
|
|
752
853
|
/** Set when more open items follow. Pass it as `cursor` to read them. */
|
|
753
854
|
nextCursor: z.string().min(1).optional()
|
|
754
855
|
}).strict();
|
|
755
|
-
/**
|
|
756
|
-
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();
|
|
757
866
|
/**
|
|
758
|
-
*
|
|
759
|
-
*
|
|
867
|
+
* The counts behind the Inbox badge, which shows the sum of `needsViewer`
|
|
868
|
+
* and `automations`, and behind the Inbox entries.
|
|
760
869
|
*/
|
|
761
|
-
|
|
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();
|
|
762
888
|
/**
|
|
763
889
|
* Conversations linked to an open action item assigned to the viewer. `title`
|
|
764
890
|
* is the newest such item; `count` is how many there are; `waitingSince` is
|
|
@@ -830,31 +956,6 @@ const workspaceBodySchema = z.object({
|
|
|
830
956
|
}).strict();
|
|
831
957
|
const workspaceParamsSchema = z.object({ id: z.string().uuid() }).strict();
|
|
832
958
|
const deleteWorkspaceResponseSchema = z.object({ deleted: z.literal(true) }).strict();
|
|
833
|
-
// src/api/schema/reply-times.ts
|
|
834
|
-
/** Reply times in the bins of the cache warming model. */
|
|
835
|
-
const replyTimeHistogramSchema = z.object({
|
|
836
|
-
bins: z.array(z.object({
|
|
837
|
-
count: z.number().int().nonnegative(),
|
|
838
|
-
endMs: z.number().int().positive(),
|
|
839
|
-
startMs: z.number().int().nonnegative()
|
|
840
|
-
}).strict()),
|
|
841
|
-
/** Idle periods with no reply before the cache warming horizon. */
|
|
842
|
-
noReply: z.number().int().nonnegative(),
|
|
843
|
-
total: z.number().int().nonnegative()
|
|
844
|
-
}).strict();
|
|
845
|
-
/** Gap histogram of each cache warming segment, over all Conversations. */
|
|
846
|
-
const replyTimeSegmentsReportSchema = z.object({
|
|
847
|
-
generatedAt: z.string().datetime(),
|
|
848
|
-
/**
|
|
849
|
-
* Below this many gaps, the planner leans on the segment's `none`
|
|
850
|
-
* segment, or does not warm a `none` segment.
|
|
851
|
-
*/
|
|
852
|
-
minSamples: z.number().int().positive(),
|
|
853
|
-
segments: z.array(z.object({
|
|
854
|
-
histogram: replyTimeHistogramSchema,
|
|
855
|
-
segment: z.string().min(1)
|
|
856
|
-
}).strict())
|
|
857
|
-
}).strict();
|
|
858
959
|
// src/api/schema/stats.ts
|
|
859
960
|
const statSchema = z.object({
|
|
860
961
|
count: z.number().int().nonnegative(),
|
|
@@ -896,4 +997,4 @@ const versionsSchema = z.object({
|
|
|
896
997
|
/** The viewer's rolling model spend. */
|
|
897
998
|
spend: z.string().min(1)
|
|
898
999
|
}).strict();
|
|
899
|
-
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 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// src/chat/secrets.ts
|
|
2
2
|
/** Read the server secret that signs internal tokens and payloads. */
|
|
3
3
|
function readJuniorSecret() {
|
|
4
|
-
return process.env
|
|
4
|
+
return process.env["JUNIOR_SECRET"]?.trim() || void 0;
|
|
5
5
|
}
|
|
6
6
|
/** Read the raw dashboard session secret, with `JUNIOR_SECRET` as fallback. */
|
|
7
7
|
function readSignInSecret() {
|
|
8
|
-
return process.env
|
|
8
|
+
return process.env["BETTER_AUTH_SECRET"] ?? process.env["JUNIOR_SECRET"];
|
|
9
9
|
}
|
|
10
10
|
/** Read the bearer secret that internal cron requests must send. */
|
|
11
11
|
function readSchedulerSecret() {
|
|
12
|
-
return process.env
|
|
12
|
+
return process.env["JUNIOR_SCHEDULER_SECRET"]?.trim() || process.env["CRON_SECRET"]?.trim();
|
|
13
13
|
}
|
|
14
14
|
/** Read the VAPID private key that signs web push messages. */
|
|
15
15
|
function readWebPushPrivateKey() {
|
|
16
|
-
return process.env
|
|
16
|
+
return process.env["JUNIOR_WEB_PUSH_PRIVATE_KEY"]?.trim();
|
|
17
17
|
}
|
|
18
18
|
export { readWebPushPrivateKey as i, readSchedulerSecret as n, readSignInSecret as r, readJuniorSecret as t };
|
|
@@ -1,30 +1,5 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
2
|
import { captureException, captureMessage, continueTrace, flush, getActiveSpan, getClient, getGlobalScope, getTraceData, init, logger, setTag, setUser, spanToJSON, startInactiveSpan, startSpan, startSpanManual, withActiveSpan, withScope } from "@sentry/node";
|
|
3
|
-
// \0rolldown/runtime.js
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __exportAll = (all, no_symbols) => {
|
|
9
|
-
let target = {};
|
|
10
|
-
for (var name in all) __defProp(target, name, {
|
|
11
|
-
get: all[name],
|
|
12
|
-
enumerable: true
|
|
13
|
-
});
|
|
14
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
15
|
-
return target;
|
|
16
|
-
};
|
|
17
|
-
var __copyProps = (to, from, except, desc) => {
|
|
18
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
19
|
-
key = keys[i];
|
|
20
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
21
|
-
get: ((k) => from[k]).bind(null, key),
|
|
22
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
return to;
|
|
26
|
-
};
|
|
27
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
28
3
|
// src/chat/sentry.ts
|
|
29
4
|
var sentry_exports = /* @__PURE__ */ __exportAll({
|
|
30
5
|
captureException: () => captureException,
|
|
@@ -45,7 +20,7 @@ var sentry_exports = /* @__PURE__ */ __exportAll({
|
|
|
45
20
|
startSpanManual: () => startSpanManual,
|
|
46
21
|
withActiveSpan: () => withActiveSpan,
|
|
47
22
|
withScope: () => withScope
|
|
48
|
-
});
|
|
23
|
+
}, 2);
|
|
49
24
|
import * as import__sentry_node from "@sentry/node";
|
|
50
25
|
__reExport(sentry_exports, import__sentry_node);
|
|
51
|
-
export { withScope as _, getClient as a, init as c, setTag as d, setUser as f, withActiveSpan as g, startSpan as h, getActiveSpan as i, logger as l, startInactiveSpan as m, captureMessage as n, getGlobalScope as o, spanToJSON as p, continueTrace as r, getTraceData as s, captureException as t, sentry_exports as u
|
|
26
|
+
export { withScope as _, getClient as a, init as c, setTag as d, setUser as f, withActiveSpan as g, startSpan as h, getActiveSpan as i, logger as l, startInactiveSpan as m, captureMessage as n, getGlobalScope as o, spanToJSON as p, continueTrace as r, getTraceData as s, captureException as t, sentry_exports as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getActiveSpan, u as sentry_exports } from "./sentry-
|
|
1
|
+
import { i as getActiveSpan, u as sentry_exports } from "./sentry-CPbZjomA.js";
|
|
2
2
|
import { matchedRoutes } from "hono/route";
|
|
3
3
|
// src/chat/sentry-route-name.ts
|
|
4
4
|
const HTTP_ROUTE_ATTRIBUTE = "app.http.route";
|