@sentry/junior 0.181.1 → 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 (107) hide show
  1. package/dist/{agent-hooks-KO56HJ74.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 +347 -149
  8. package/dist/app-adapter.d.ts +85 -0
  9. package/dist/app.d.ts +6 -1
  10. package/dist/app.js +380 -501
  11. package/dist/{catalog-runtime-CJTFLCK3.js → catalog-runtime-3I3JOIIH.js} +4 -4
  12. package/dist/chat/agent-invocations/store.d.ts +4 -2
  13. package/dist/chat/agent-invocations/work.d.ts +1 -3
  14. package/dist/chat/api-turns/adapter-conversations.d.ts +15 -0
  15. package/dist/chat/api-turns/stop.d.ts +12 -0
  16. package/dist/chat/api-turns/work.d.ts +9 -1
  17. package/dist/chat/app/conversation-work.d.ts +1 -1
  18. package/dist/chat/app/factory.d.ts +3 -3
  19. package/dist/chat/app/services.d.ts +3 -3
  20. package/dist/chat/code/publisher.d.ts +3 -0
  21. package/dist/chat/code/store.d.ts +9 -0
  22. package/dist/chat/event-tasks/store.d.ts +10 -0
  23. package/dist/chat/event-tasks/tool-support.d.ts +7 -1
  24. package/dist/chat/event-tasks/types.d.ts +1 -0
  25. package/dist/chat/experimental.d.ts +1 -1
  26. package/dist/chat/ingress/slack-webhook.d.ts +1 -1
  27. package/dist/chat/plugins/agent-hooks.d.ts +5 -0
  28. package/dist/chat/{runtime/slack-runtime.d.ts → providers/slack/runtime.d.ts} +2 -2
  29. package/dist/chat/{runtime/reply-executor.d.ts → providers/slack/turn.d.ts} +10 -9
  30. package/dist/chat/resource-events/catalog.d.ts +11 -1
  31. package/dist/chat/resource-events/store.d.ts +17 -1
  32. package/dist/chat/runtime/turn-execution.d.ts +30 -0
  33. package/dist/chat/services/subscribed-decision.d.ts +2 -1
  34. package/dist/chat/slack/dispatch-turn.d.ts +12 -14
  35. package/dist/chat/task-execution/slack-work.d.ts +1 -1
  36. package/dist/chat/tools/create-event-task.d.ts +3 -0
  37. package/dist/chat/tools/delete-event-task.d.ts +2 -0
  38. package/dist/chat/tools/list-event-tasks.d.ts +2 -0
  39. package/dist/chat/tools/list-resource-event-subscriptions.d.ts +2 -0
  40. package/dist/chat/tools/search-resource-event-types.d.ts +10 -0
  41. package/dist/chat/tools/update-event-task.d.ts +3 -0
  42. package/dist/chat/tools/watch-resource-events.d.ts +3 -0
  43. package/dist/{chunk-DTRCZOHE.js → chunk-24OJZ5OU.js} +6 -6
  44. package/dist/{chunk-Z2UG4FBT.js → chunk-2ADFGSUS.js} +1 -1
  45. package/dist/{chunk-RULGB5NX.js → chunk-2EPYYVJC.js} +9 -9
  46. package/dist/{chunk-VRS6WDK5.js → chunk-2LYHWMR4.js} +1 -1
  47. package/dist/{chunk-XQ56HNH5.js → chunk-35PM4YY5.js} +6 -6
  48. package/dist/{chunk-6TB7JN63.js → chunk-37IQ6DGU.js} +3 -3
  49. package/dist/{chunk-MR36BRPE.js → chunk-3HJ4F4L7.js} +4 -4
  50. package/dist/{chunk-4WYHL4EH.js → chunk-3L7CWDQQ.js} +1 -1
  51. package/dist/{chunk-CJRUBOJI.js → chunk-4WGFWHWP.js} +1 -1
  52. package/dist/{chunk-VHSBLFNT.js → chunk-56XONJPF.js} +1 -1
  53. package/dist/{chunk-ULM7P4EQ.js → chunk-6UXDTPEN.js} +233 -173
  54. package/dist/{chunk-WDNA4LML.js → chunk-AHMWPFIW.js} +188 -11
  55. package/dist/{chunk-YCW6RZGX.js → chunk-AX3UDIMA.js} +3 -3
  56. package/dist/{chunk-HG6HNOTQ.js → chunk-AYW7J6K4.js} +130 -200
  57. package/dist/{chunk-DXK3VTVP.js → chunk-E3OBGRHN.js} +1 -1
  58. package/dist/{chunk-7UF37LNL.js → chunk-EENQGEIP.js} +1 -1
  59. package/dist/{chunk-HRTW7FFX.js → chunk-FJMTMGBC.js} +1 -1
  60. package/dist/{chunk-H6MPFFBE.js → chunk-G2B2XZQW.js} +1 -1
  61. package/dist/{chunk-4GOZBB22.js → chunk-HUK5XIZL.js} +63 -7
  62. package/dist/{chunk-DINF4LMR.js → chunk-IO6KFXYE.js} +160 -97
  63. package/dist/{chunk-KH2SL2HT.js → chunk-KTXOGLNE.js} +2 -2
  64. package/dist/{chunk-S63LNPIV.js → chunk-LMNMMESF.js} +2 -2
  65. package/dist/{chunk-2CZ63QCL.js → chunk-LZBPGX5A.js} +1 -1
  66. package/dist/{chunk-PJ7EGFME.js → chunk-PLZT45VC.js} +5 -5
  67. package/dist/{chunk-ZQQWJMHE.js → chunk-QI5JW5AG.js} +6 -6
  68. package/dist/{chunk-IWRPJ3J5.js → chunk-QZV76CM4.js} +58 -32
  69. package/dist/{chunk-YFJDRORU.js → chunk-R767Y7QV.js} +202 -90
  70. package/dist/{chunk-4OSVTPYQ.js → chunk-SQHFVIMZ.js} +1 -1
  71. package/dist/{chunk-J4ID4ZI6.js → chunk-T5MTGX2E.js} +19 -19
  72. package/dist/{chunk-NRF23QZ4.js → chunk-V64JCZUV.js} +3 -3
  73. package/dist/{chunk-GITIZ6TZ.js → chunk-VOV3SCM3.js} +1 -1
  74. package/dist/{chunk-S5X2VQOD.js → chunk-W46NIB5H.js} +3 -2
  75. package/dist/{chunk-XL3C4NAR.js → chunk-W5JMPEBO.js} +9 -9
  76. package/dist/{chunk-HPFHC7YR.js → chunk-WOKJRLM2.js} +5 -5
  77. package/dist/chunk-WVIA7V3M.js +975 -0
  78. package/dist/{chunk-QA6RE6IB.js → chunk-X52ESOBP.js} +3 -3
  79. package/dist/cli/chat.js +35 -37
  80. package/dist/cli/check.js +5 -5
  81. package/dist/cli/plugins.js +12 -12
  82. package/dist/cli/snapshot-create.js +9 -9
  83. package/dist/cli/upgrade.js +6 -6
  84. package/dist/db/schema/code.d.ts +367 -0
  85. package/dist/db/schema.d.ts +367 -1
  86. package/dist/{db-4PXTD3OH.js → db-K2VMNLHQ.js} +6 -6
  87. package/dist/{experimental-SIJSRDJD.js → experimental-P5FZM4CU.js} +1 -1
  88. package/dist/instrumentation.js +3 -3
  89. package/dist/nitro.js +6 -6
  90. package/dist/{oauth-callback-server-TQWNEVR6.js → oauth-callback-server-DZZMTKSS.js} +26 -26
  91. package/dist/{runner-G5HLQA43.js → runner-IIAKWDXI.js} +18 -18
  92. package/dist/{skills-BNNNRYNT.js → skills-EXIQ7BP5.js} +5 -5
  93. package/dist/spawn-ZR6OOEAN.js +37 -0
  94. package/dist/task-runner-C52HYCVD.js +32 -0
  95. package/dist/{validation-IJSBB6JR.js → validation-XUGIWBJF.js} +5 -5
  96. package/dist/version.js +1 -1
  97. package/dist/{work-5FQI4P2A.js → work-G4RLJ634.js} +18 -18
  98. package/dist/worker-R2JEHK67.js +22 -0
  99. package/migrations/0036_complex_rage.sql +32 -0
  100. package/migrations/meta/0036_snapshot.json +3186 -0
  101. package/migrations/meta/_journal.json +8 -1
  102. package/package.json +6 -5
  103. package/dist/api/acp/route.d.ts +0 -13
  104. package/dist/chunk-CZYNWPWD.js +0 -930
  105. package/dist/spawn-U2RKOFP2.js +0 -37
  106. package/dist/task-runner-CDZJBEXP.js +0 -32
  107. package/dist/worker-KJ362GVB.js +0 -22
@@ -13,24 +13,24 @@ import {
13
13
  getPlugins,
14
14
  setPlugins,
15
15
  validatePlugins
16
- } from "./chunk-WDNA4LML.js";
16
+ } from "./chunk-AHMWPFIW.js";
17
17
  import "./chunk-3Y47VMHV.js";
18
- import "./chunk-YCW6RZGX.js";
19
- import "./chunk-ULM7P4EQ.js";
20
- import "./chunk-QA6RE6IB.js";
21
- import "./chunk-H6MPFFBE.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-S63LNPIV.js";
24
- import "./chunk-Z2UG4FBT.js";
25
- import "./chunk-DXK3VTVP.js";
26
- import "./chunk-7UF37LNL.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-2CZ63QCL.js";
31
+ import "./chunk-LZBPGX5A.js";
32
32
  import "./chunk-PEQXYSSE.js";
33
- import "./chunk-S5X2VQOD.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,