@sentry/junior 0.182.0 → 0.183.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.
Files changed (86) hide show
  1. package/dist/{agent-hooks-3S25UIHO.js → agent-hooks-SNRBZYAU.js} +11 -11
  2. package/dist/api/code/overview.d.ts +35 -0
  3. package/dist/api/code/routes.d.ts +4 -0
  4. package/dist/api/schema/code.d.ts +75 -0
  5. package/dist/api/schema.d.ts +2 -0
  6. package/dist/api/schema.js +9 -1
  7. package/dist/api.js +258 -134
  8. package/dist/app.js +71 -48
  9. package/dist/{catalog-runtime-ESLMBQBV.js → catalog-runtime-3I3JOIIH.js} +4 -4
  10. package/dist/chat/agent-invocations/store.d.ts +4 -2
  11. package/dist/chat/agent-invocations/work.d.ts +1 -3
  12. package/dist/chat/app/factory.d.ts +3 -3
  13. package/dist/chat/app/services.d.ts +3 -3
  14. package/dist/chat/code/publisher.d.ts +3 -0
  15. package/dist/chat/code/store.d.ts +9 -0
  16. package/dist/chat/event-tasks/store.d.ts +10 -0
  17. package/dist/chat/ingress/slack-webhook.d.ts +1 -1
  18. package/dist/chat/plugins/agent-hooks.d.ts +5 -0
  19. package/dist/chat/{runtime/slack-runtime.d.ts → providers/slack/runtime.d.ts} +2 -2
  20. package/dist/chat/{runtime/reply-executor.d.ts → providers/slack/turn.d.ts} +10 -9
  21. package/dist/chat/resource-events/store.d.ts +12 -0
  22. package/dist/chat/runtime/turn-execution.d.ts +30 -0
  23. package/dist/chat/slack/dispatch-turn.d.ts +12 -14
  24. package/dist/chat/task-execution/slack-work.d.ts +1 -1
  25. package/dist/{chunk-SXOZIG5X.js → chunk-24OJZ5OU.js} +6 -6
  26. package/dist/{chunk-SVFSYQMT.js → chunk-2ADFGSUS.js} +1 -1
  27. package/dist/{chunk-GGYA5NPN.js → chunk-2EPYYVJC.js} +8 -8
  28. package/dist/{chunk-KGMHUDVF.js → chunk-35PM4YY5.js} +6 -6
  29. package/dist/{chunk-3ENUMZNG.js → chunk-37IQ6DGU.js} +3 -3
  30. package/dist/{chunk-3THPTNN6.js → chunk-3HJ4F4L7.js} +4 -4
  31. package/dist/{chunk-3NFHI2NA.js → chunk-3L7CWDQQ.js} +1 -1
  32. package/dist/{chunk-CVBIM4Z3.js → chunk-4WGFWHWP.js} +1 -1
  33. package/dist/{chunk-YHL2L2ZZ.js → chunk-56XONJPF.js} +1 -1
  34. package/dist/{chunk-44BQ3TSK.js → chunk-6UXDTPEN.js} +233 -173
  35. package/dist/{chunk-2CEOXDG2.js → chunk-AHMWPFIW.js} +174 -6
  36. package/dist/{chunk-6TSWXBTQ.js → chunk-AX3UDIMA.js} +3 -3
  37. package/dist/{chunk-S35OZMSL.js → chunk-AYW7J6K4.js} +13 -13
  38. package/dist/{chunk-WOIALVN2.js → chunk-E3OBGRHN.js} +1 -1
  39. package/dist/{chunk-4DZ62L36.js → chunk-EENQGEIP.js} +1 -1
  40. package/dist/{chunk-UUMBHORH.js → chunk-FJMTMGBC.js} +1 -1
  41. package/dist/{chunk-Z7ALSQS3.js → chunk-G2B2XZQW.js} +1 -1
  42. package/dist/{chunk-TEFNHMO2.js → chunk-HUK5XIZL.js} +4 -4
  43. package/dist/{chunk-LT4QYGKM.js → chunk-IO6KFXYE.js} +160 -97
  44. package/dist/{chunk-JIOKUIAS.js → chunk-KTXOGLNE.js} +2 -2
  45. package/dist/{chunk-LHQK5XCU.js → chunk-LMNMMESF.js} +2 -2
  46. package/dist/{chunk-UQP54CXZ.js → chunk-LZBPGX5A.js} +1 -1
  47. package/dist/{chunk-PQES5LB5.js → chunk-PLZT45VC.js} +5 -5
  48. package/dist/{chunk-V5UZCCNW.js → chunk-QI5JW5AG.js} +6 -6
  49. package/dist/{chunk-A7THOQ6N.js → chunk-QZV76CM4.js} +21 -21
  50. package/dist/{chunk-LB4FWMCV.js → chunk-R767Y7QV.js} +183 -155
  51. package/dist/{chunk-MJISSOWB.js → chunk-SQHFVIMZ.js} +1 -1
  52. package/dist/{chunk-BDDWVY32.js → chunk-T5MTGX2E.js} +19 -19
  53. package/dist/{chunk-DZR3L74W.js → chunk-V64JCZUV.js} +3 -3
  54. package/dist/{chunk-VHMAFMHB.js → chunk-VOV3SCM3.js} +1 -1
  55. package/dist/{chunk-BZD4ADQH.js → chunk-W46NIB5H.js} +1 -1
  56. package/dist/{chunk-QHALFHZA.js → chunk-W5JMPEBO.js} +9 -9
  57. package/dist/{chunk-D6OHGAIO.js → chunk-WOKJRLM2.js} +5 -5
  58. package/dist/chunk-WVIA7V3M.js +975 -0
  59. package/dist/{chunk-UKIHNBBD.js → chunk-X52ESOBP.js} +3 -3
  60. package/dist/cli/chat.js +33 -35
  61. package/dist/cli/check.js +5 -5
  62. package/dist/cli/plugins.js +12 -12
  63. package/dist/cli/snapshot-create.js +9 -9
  64. package/dist/cli/upgrade.js +6 -6
  65. package/dist/db/schema/code.d.ts +367 -0
  66. package/dist/db/schema.d.ts +367 -1
  67. package/dist/{db-NYIWZ4L5.js → db-K2VMNLHQ.js} +6 -6
  68. package/dist/instrumentation.js +3 -3
  69. package/dist/nitro.js +6 -6
  70. package/dist/{oauth-callback-server-A2YTPVVX.js → oauth-callback-server-DZZMTKSS.js} +25 -25
  71. package/dist/{runner-VKAEU52J.js → runner-IIAKWDXI.js} +18 -18
  72. package/dist/{skills-52GMXUTY.js → skills-EXIQ7BP5.js} +5 -5
  73. package/dist/spawn-ZR6OOEAN.js +37 -0
  74. package/dist/task-runner-C52HYCVD.js +32 -0
  75. package/dist/{validation-VD2YQX2W.js → validation-XUGIWBJF.js} +5 -5
  76. package/dist/version.js +1 -1
  77. package/dist/{work-ZWBTGEQP.js → work-G4RLJ634.js} +18 -18
  78. package/dist/worker-R2JEHK67.js +22 -0
  79. package/migrations/0036_complex_rage.sql +32 -0
  80. package/migrations/meta/0036_snapshot.json +3186 -0
  81. package/migrations/meta/_journal.json +8 -1
  82. package/package.json +6 -6
  83. package/dist/chunk-CZYNWPWD.js +0 -930
  84. package/dist/spawn-GSS4EBLR.js +0 -37
  85. package/dist/task-runner-DUGDWF5O.js +0 -32
  86. package/dist/worker-XUWD5WS7.js +0 -22
@@ -13,24 +13,24 @@ import {
13
13
  getPlugins,
14
14
  setPlugins,
15
15
  validatePlugins
16
- } from "./chunk-2CEOXDG2.js";
16
+ } from "./chunk-AHMWPFIW.js";
17
17
  import "./chunk-3Y47VMHV.js";
18
- import "./chunk-6TSWXBTQ.js";
19
- import "./chunk-44BQ3TSK.js";
20
- import "./chunk-UKIHNBBD.js";
21
- import "./chunk-Z7ALSQS3.js";
18
+ import "./chunk-AX3UDIMA.js";
19
+ import "./chunk-6UXDTPEN.js";
20
+ import "./chunk-X52ESOBP.js";
21
+ import "./chunk-G2B2XZQW.js";
22
22
  import "./chunk-VFUK3X5B.js";
23
- import "./chunk-LHQK5XCU.js";
24
- import "./chunk-SVFSYQMT.js";
25
- import "./chunk-WOIALVN2.js";
26
- import "./chunk-4DZ62L36.js";
23
+ import "./chunk-LMNMMESF.js";
24
+ import "./chunk-2ADFGSUS.js";
25
+ import "./chunk-E3OBGRHN.js";
26
+ import "./chunk-EENQGEIP.js";
27
27
  import "./chunk-CEMMLV5L.js";
28
28
  import "./chunk-N7TMSOZH.js";
29
29
  import "./chunk-DWPN6SCH.js";
30
30
  import "./chunk-TXKUKMVO.js";
31
- import "./chunk-UQP54CXZ.js";
31
+ import "./chunk-LZBPGX5A.js";
32
32
  import "./chunk-PEQXYSSE.js";
33
- import "./chunk-BZD4ADQH.js";
33
+ import "./chunk-W46NIB5H.js";
34
34
  export {
35
35
  PluginHookDeniedError,
36
36
  applyPluginFormatMarkdown,
@@ -0,0 +1,35 @@
1
+ /** Read code activity created by Junior across installed code plugins. */
2
+ export declare function readCodeOverview(nowMs?: number): Promise<{
3
+ changes: {
4
+ id: string;
5
+ number: number;
6
+ openedAt: string;
7
+ provider: string;
8
+ repository: string;
9
+ state: "open" | "closed" | "merged";
10
+ closedAt?: string | undefined;
11
+ mergedAt?: string | undefined;
12
+ title?: string | undefined;
13
+ url?: string | undefined;
14
+ }[];
15
+ generatedAt: string;
16
+ repositories: {
17
+ closed: number;
18
+ created: number;
19
+ id: string;
20
+ merged: number;
21
+ name: string;
22
+ open: number;
23
+ provider: string;
24
+ url?: string | undefined;
25
+ }[];
26
+ summary: {
27
+ closed: number;
28
+ created: number;
29
+ merged: number;
30
+ open: number;
31
+ mergeRate?: number | undefined;
32
+ };
33
+ windowEnd: string;
34
+ windowStart: string;
35
+ }>;
@@ -0,0 +1,4 @@
1
+ import { Hono } from "hono";
2
+ import type { JuniorApiEnv } from "../route";
3
+ /** Create the code analytics API. */
4
+ export declare function createCodeRoutes(): Hono<JuniorApiEnv>;
@@ -0,0 +1,75 @@
1
+ import { z } from "zod";
2
+ export declare const codeChangeSummarySchema: z.ZodObject<{
3
+ closed: z.ZodNumber;
4
+ created: z.ZodNumber;
5
+ merged: z.ZodNumber;
6
+ mergeRate: z.ZodOptional<z.ZodNumber>;
7
+ open: z.ZodNumber;
8
+ }, z.core.$strict>;
9
+ export declare const codeRepositorySummarySchema: z.ZodObject<{
10
+ closed: z.ZodNumber;
11
+ created: z.ZodNumber;
12
+ id: z.ZodString;
13
+ merged: z.ZodNumber;
14
+ name: z.ZodString;
15
+ open: z.ZodNumber;
16
+ provider: z.ZodString;
17
+ url: z.ZodOptional<z.ZodString>;
18
+ }, z.core.$strict>;
19
+ export declare const codeChangeSummaryReportSchema: z.ZodObject<{
20
+ closedAt: z.ZodOptional<z.ZodString>;
21
+ id: z.ZodString;
22
+ mergedAt: z.ZodOptional<z.ZodString>;
23
+ number: z.ZodNumber;
24
+ openedAt: z.ZodString;
25
+ provider: z.ZodString;
26
+ repository: z.ZodString;
27
+ state: z.ZodEnum<{
28
+ open: "open";
29
+ closed: "closed";
30
+ merged: "merged";
31
+ }>;
32
+ title: z.ZodOptional<z.ZodString>;
33
+ url: z.ZodOptional<z.ZodString>;
34
+ }, z.core.$strict>;
35
+ export declare const codeOverviewReportSchema: z.ZodObject<{
36
+ changes: z.ZodArray<z.ZodObject<{
37
+ closedAt: z.ZodOptional<z.ZodString>;
38
+ id: z.ZodString;
39
+ mergedAt: z.ZodOptional<z.ZodString>;
40
+ number: z.ZodNumber;
41
+ openedAt: z.ZodString;
42
+ provider: z.ZodString;
43
+ repository: z.ZodString;
44
+ state: z.ZodEnum<{
45
+ open: "open";
46
+ closed: "closed";
47
+ merged: "merged";
48
+ }>;
49
+ title: z.ZodOptional<z.ZodString>;
50
+ url: z.ZodOptional<z.ZodString>;
51
+ }, z.core.$strict>>;
52
+ generatedAt: z.ZodString;
53
+ repositories: z.ZodArray<z.ZodObject<{
54
+ closed: z.ZodNumber;
55
+ created: z.ZodNumber;
56
+ id: z.ZodString;
57
+ merged: z.ZodNumber;
58
+ name: z.ZodString;
59
+ open: z.ZodNumber;
60
+ provider: z.ZodString;
61
+ url: z.ZodOptional<z.ZodString>;
62
+ }, z.core.$strict>>;
63
+ summary: z.ZodObject<{
64
+ closed: z.ZodNumber;
65
+ created: z.ZodNumber;
66
+ merged: z.ZodNumber;
67
+ mergeRate: z.ZodOptional<z.ZodNumber>;
68
+ open: z.ZodNumber;
69
+ }, z.core.$strict>;
70
+ windowEnd: z.ZodString;
71
+ windowStart: z.ZodString;
72
+ }, z.core.$strict>;
73
+ export type CodeChangeSummaryReport = z.infer<typeof codeChangeSummaryReportSchema>;
74
+ export type CodeOverviewReport = z.infer<typeof codeOverviewReportSchema>;
75
+ export type CodeRepositorySummary = z.infer<typeof codeRepositorySummarySchema>;
@@ -1,5 +1,7 @@
1
1
  export { dailyConversationActivitySchema } from "./activity";
2
2
  export type { DailyConversationActivity } from "./activity";
3
+ export { codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codeRepositorySummarySchema, } from "./schema/code";
4
+ export type { CodeChangeSummaryReport, CodeOverviewReport, CodeRepositorySummary, } from "./schema/code";
3
5
  export { acceptedConversationMessageSchema, archiveConversationBodySchema, archiveConversationResponseSchema, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, conversationAuxiliaryCostsSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventPageSchema, conversationEventHistorySchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, createConversationBodySchema, createConversationMessageBodySchema, } from "./schema/conversation";
4
6
  export type { AcceptedConversationMessage, ArchiveConversationBody, ArchiveConversationResponse, CancelConversationPendingMessagesBody, CancelConversationPendingMessagesResponse, ActorIdentity, ConversationAuxiliaryCosts, ConversationCost, ConversationDetailReport, ConversationEventPage, ConversationEventHistory, ConversationFeed, ConversationPendingMessage, ConversationPendingMessageDelivery, ConversationPendingMessagesReport, ConversationReportEvent, ConversationReportEventData, ConversationReportStatus, ConversationMetricDay, ConversationModelUsage, ConversationParams, ConversationSourceTask, ConversationStatsItem, ConversationStatsReport, ConversationSummaryReport, ConversationSurface, ConversationUsage, CreateConversationBody, CreateConversationMessageBody, GuardianMetricDay, GuardianStats, } from "./schema/conversation";
5
7
  export { actorDirectoryReportSchema, actorProfileReportSchema, personalSpendReportSchema, personParamsSchema, } from "./schema/person";
@@ -8,6 +8,10 @@ import {
8
8
  baselineSnapshotSchema,
9
9
  cancelConversationPendingMessagesBodySchema,
10
10
  cancelConversationPendingMessagesResponseSchema,
11
+ codeChangeSummaryReportSchema,
12
+ codeChangeSummarySchema,
13
+ codeOverviewReportSchema,
14
+ codeRepositorySummarySchema,
11
15
  conversationAuxiliaryCostsSchema,
12
16
  conversationDetailQuerySchema,
13
17
  conversationDetailReportSchema,
@@ -59,7 +63,7 @@ import {
59
63
  workspaceParamsSchema,
60
64
  workspaceRepoSchema,
61
65
  workspaceSchema
62
- } from "../chunk-CZYNWPWD.js";
66
+ } from "../chunk-WVIA7V3M.js";
63
67
  import {
64
68
  healthReportSchema,
65
69
  pluginOperationalReportFeedSchema,
@@ -84,6 +88,10 @@ export {
84
88
  baselineSnapshotSchema,
85
89
  cancelConversationPendingMessagesBodySchema,
86
90
  cancelConversationPendingMessagesResponseSchema,
91
+ codeChangeSummaryReportSchema,
92
+ codeChangeSummarySchema,
93
+ codeOverviewReportSchema,
94
+ codeRepositorySummarySchema,
87
95
  conversationAuxiliaryCostsSchema,
88
96
  conversationDetailQuerySchema,
89
97
  conversationDetailReportSchema,