@sentry/junior 0.184.0 → 0.186.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 (129) hide show
  1. package/dist/{agent-hooks-XTZVALGQ.js → agent-hooks-4B3Z4WRK.js} +13 -11
  2. package/dist/api/acp/schema.d.ts +20 -2
  3. package/dist/api/code/overview.d.ts +39 -0
  4. package/dist/api/locations/detail.d.ts +1 -1
  5. package/dist/api/people/code.d.ts +22 -0
  6. package/dist/api/schema/code.d.ts +46 -0
  7. package/dist/api/schema/conversation.d.ts +108 -20
  8. package/dist/api/schema/location.d.ts +1 -1
  9. package/dist/api/schema/person.d.ts +1 -1
  10. package/dist/api/schema.d.ts +4 -4
  11. package/dist/api/schema.js +12 -1
  12. package/dist/api.js +368 -78
  13. package/dist/app.js +1412 -538
  14. package/dist/{catalog-runtime-5357XR4F.js → catalog-runtime-AFJCAOHC.js} +4 -4
  15. package/dist/chat/api-turns/accepted-reply.d.ts +11 -0
  16. package/dist/chat/api-turns/cancellation.d.ts +3 -5
  17. package/dist/chat/api-turns/mailbox-input.d.ts +7 -0
  18. package/dist/chat/api-turns/routing.d.ts +18 -3
  19. package/dist/chat/api-turns/work.d.ts +4 -9
  20. package/dist/chat/app/conversation-work.d.ts +1 -1
  21. package/dist/chat/app/factory.d.ts +4 -0
  22. package/dist/chat/app/services.d.ts +4 -3
  23. package/dist/chat/conversations/history.d.ts +83 -9
  24. package/dist/chat/conversations/turn-lifecycle.d.ts +6 -3
  25. package/dist/chat/providers/slack/input.d.ts +32 -0
  26. package/dist/chat/{runtime → providers/slack}/processing-reaction.d.ts +6 -8
  27. package/dist/chat/{runtime/slack-resume.d.ts → providers/slack/resume.d.ts} +16 -19
  28. package/dist/chat/providers/slack/runtime.d.ts +1 -12
  29. package/dist/chat/providers/slack/turn.d.ts +10 -25
  30. package/dist/chat/resource-events/actor.d.ts +7 -2
  31. package/dist/chat/resource-events/app-publisher.d.ts +18 -0
  32. package/dist/chat/resource-events/catalog.d.ts +19 -0
  33. package/dist/chat/resource-events/ingest.d.ts +0 -1
  34. package/dist/chat/resource-events/notification.d.ts +28 -3
  35. package/dist/chat/resource-events/runtime-catalog.d.ts +7 -2
  36. package/dist/chat/resource-events/store.d.ts +2 -14
  37. package/dist/chat/resource-events/tool-support.d.ts +0 -5
  38. package/dist/chat/resource-events/workspace.d.ts +7 -3
  39. package/dist/chat/runtime/turn-execution.d.ts +7 -2
  40. package/dist/chat/sandbox/egress/credentials.d.ts +5 -4
  41. package/dist/chat/sandbox/egress/session.d.ts +10 -11
  42. package/dist/chat/sandbox/errors.d.ts +1 -1
  43. package/dist/chat/sandbox/ref.d.ts +1 -1
  44. package/dist/chat/sandbox/snapshot/events.d.ts +8 -1
  45. package/dist/chat/sandbox/snapshot/not-ready-error.d.ts +6 -1
  46. package/dist/chat/scheduled-tasks/tool-support.d.ts +5 -5
  47. package/dist/chat/scheduled-tasks/tools/create.d.ts +2 -2
  48. package/dist/chat/scheduled-tasks/tools/delete.d.ts +2 -2
  49. package/dist/chat/scheduled-tasks/tools/list.d.ts +2 -2
  50. package/dist/chat/scheduled-tasks/tools/run-now.d.ts +2 -2
  51. package/dist/chat/scheduled-tasks/tools/update.d.ts +2 -2
  52. package/dist/chat/scheduled-tasks/types.d.ts +1 -1
  53. package/dist/chat/sentry-links.d.ts +2 -0
  54. package/dist/chat/services/provider-retry.d.ts +2 -0
  55. package/dist/chat/services/turn-failure-response.d.ts +4 -0
  56. package/dist/chat/services/turn-session-routing.d.ts +20 -5
  57. package/dist/chat/task-execution/paused-turn.d.ts +0 -2
  58. package/dist/chat/task-execution/slack-resource-event.d.ts +47 -0
  59. package/dist/chat/task-execution/slack-work.d.ts +0 -21
  60. package/dist/chat/task-execution/state.d.ts +2 -2
  61. package/dist/chat/task-execution/store.d.ts +1 -1
  62. package/dist/chat/task-execution/turn-wake.d.ts +12 -0
  63. package/dist/chat/tool-support/action-review.d.ts +1 -1
  64. package/dist/chat/tools/event-tasks.d.ts +1 -1
  65. package/dist/chat/tools/resource-events.d.ts +2 -2
  66. package/dist/chat/tools/search-conversation-events.d.ts +1 -1
  67. package/dist/chat/tools/types.d.ts +1 -1
  68. package/dist/chat/tools/watch-resource-events.d.ts +2 -2
  69. package/dist/{chunk-Z3QAXJR7.js → chunk-2IBDVE62.js} +12 -9
  70. package/dist/{chunk-4RONS3WR.js → chunk-2U7EPTRZ.js} +11 -5
  71. package/dist/{chunk-3S7ULUWW.js → chunk-3CVEE6LA.js} +1 -1
  72. package/dist/{chunk-IZDYYYGP.js → chunk-43LODHJM.js} +24 -384
  73. package/dist/{chunk-LHXIZLFF.js → chunk-64WF2GQ3.js} +1 -1
  74. package/dist/{chunk-YKX6MTLU.js → chunk-7EOWT62G.js} +1 -1
  75. package/dist/{chunk-UBOIHNTH.js → chunk-7EU4YSZ4.js} +362 -188
  76. package/dist/{chunk-UF6BUA5W.js → chunk-ACGWTJ74.js} +3 -3
  77. package/dist/{chunk-6UDPINOX.js → chunk-AD64YMEC.js} +19 -44
  78. package/dist/{chunk-MLSQX2EX.js → chunk-BRKB5R7P.js} +1 -1
  79. package/dist/{chunk-E57WPXWY.js → chunk-CM6RTYSO.js} +5 -5
  80. package/dist/{chunk-MAPJFUMV.js → chunk-CV5CPRVG.js} +3 -3
  81. package/dist/chunk-D4YV5TDV.js +45 -0
  82. package/dist/{chunk-HIPUIPJM.js → chunk-DHYZ4VKG.js} +383 -254
  83. package/dist/{chunk-DUKIDPF6.js → chunk-DOP3FIQC.js} +1 -1
  84. package/dist/{chunk-BT53RIGJ.js → chunk-EWRPUXE3.js} +12 -50
  85. package/dist/{chunk-BHYRYYLY.js → chunk-FFYDRLXW.js} +1 -1
  86. package/dist/chunk-GFBR4S3Q.js +406 -0
  87. package/dist/chunk-GQMQCY7H.js +58 -0
  88. package/dist/{chunk-JNO2GUDS.js → chunk-GSB3NTNS.js} +926 -1856
  89. package/dist/{chunk-2ZQPVX7C.js → chunk-H7X2G2KS.js} +25 -12
  90. package/dist/{chunk-WQFEWULF.js → chunk-HKFLRIBD.js} +2 -2
  91. package/dist/{chunk-SHJK75Z2.js → chunk-HWXP6RHG.js} +38 -4
  92. package/dist/{chunk-RF6J3DIO.js → chunk-INQHUE72.js} +84 -1
  93. package/dist/{chunk-4CNDGK25.js → chunk-JFPY6XFF.js} +911 -993
  94. package/dist/{chunk-6WGC3SO4.js → chunk-MCLWOBPN.js} +80 -18
  95. package/dist/{chunk-PJPRXO2T.js → chunk-NRMAOGRS.js} +1 -1
  96. package/dist/{chunk-ACPDVEJO.js → chunk-O6GQO7VP.js} +201 -218
  97. package/dist/{chunk-M5YWNMTE.js → chunk-OZG7E22Y.js} +24 -6
  98. package/dist/{chunk-WVIA7V3M.js → chunk-PFAZSRGR.js} +29 -1
  99. package/dist/{chunk-LCP4EDKR.js → chunk-PZZOGHVR.js} +14 -4
  100. package/dist/{chunk-QABCY33S.js → chunk-QBL2AVFF.js} +2 -2
  101. package/dist/{chunk-FKEZZMXS.js → chunk-QU3URVWG.js} +9 -94
  102. package/dist/{chunk-M3QYTBQ6.js → chunk-STOCCPWH.js} +11 -2
  103. package/dist/{chunk-K7VDC2QW.js → chunk-TXLBLGNQ.js} +6 -6
  104. package/dist/{chunk-JA43DV4Y.js → chunk-VOGOTEW7.js} +1 -1
  105. package/dist/{chunk-HUXFMDBZ.js → chunk-VQIWBJOP.js} +1 -1
  106. package/dist/{chunk-JM2COLGC.js → chunk-VQZYIVYN.js} +6 -6
  107. package/dist/{chunk-BCHYQS4B.js → chunk-VXL2LBPK.js} +1 -1
  108. package/dist/{chunk-6VOYP4M6.js → chunk-YXSBZRP7.js} +1 -1
  109. package/dist/cli/chat.js +35 -33
  110. package/dist/cli/check.js +5 -5
  111. package/dist/cli/plugins.js +14 -12
  112. package/dist/cli/snapshot-create.js +10 -9
  113. package/dist/cli/upgrade.js +7 -6
  114. package/dist/{db-MA52H62H.js → db-7XL4UPAE.js} +8 -6
  115. package/dist/instrumentation.js +3 -3
  116. package/dist/nitro.js +7 -6
  117. package/dist/{oauth-callback-server-DXGHKN6S.js → oauth-callback-server-RAOYHWDI.js} +30 -27
  118. package/dist/{runner-4IXUAQNK.js → runner-KMPBWRPM.js} +24 -19
  119. package/dist/{skills-X3DY7AXO.js → skills-IPCALGLQ.js} +5 -5
  120. package/dist/spawn-OSOWTMBG.js +41 -0
  121. package/dist/task-runner-IQNBA3RY.js +34 -0
  122. package/dist/{validation-Z6JXSTJS.js → validation-BSRCCX6N.js} +5 -5
  123. package/dist/version.js +1 -1
  124. package/dist/{work-OKWRFBDW.js → work-T6UFTOJY.js} +24 -19
  125. package/dist/worker-L35OG7VA.js +24 -0
  126. package/package.json +5 -5
  127. package/dist/spawn-43WGS6CH.js +0 -37
  128. package/dist/task-runner-VDRKITPV.js +0 -32
  129. package/dist/worker-B236AE72.js +0 -22
@@ -13,24 +13,26 @@ import {
13
13
  getPlugins,
14
14
  setPlugins,
15
15
  validatePlugins
16
- } from "./chunk-4CNDGK25.js";
16
+ } from "./chunk-JFPY6XFF.js";
17
17
  import "./chunk-3Y47VMHV.js";
18
- import "./chunk-IZDYYYGP.js";
19
- import "./chunk-BCHYQS4B.js";
20
- import "./chunk-SHJK75Z2.js";
21
- import "./chunk-DUKIDPF6.js";
18
+ import "./chunk-43LODHJM.js";
19
+ import "./chunk-VXL2LBPK.js";
20
+ import "./chunk-HWXP6RHG.js";
21
+ import "./chunk-DOP3FIQC.js";
22
+ import "./chunk-GFBR4S3Q.js";
22
23
  import "./chunk-VFUK3X5B.js";
23
- import "./chunk-6UDPINOX.js";
24
- import "./chunk-BHYRYYLY.js";
25
- import "./chunk-PJPRXO2T.js";
26
- import "./chunk-LHXIZLFF.js";
24
+ import "./chunk-AD64YMEC.js";
25
+ import "./chunk-D4YV5TDV.js";
26
+ import "./chunk-FFYDRLXW.js";
27
+ import "./chunk-NRMAOGRS.js";
28
+ import "./chunk-64WF2GQ3.js";
27
29
  import "./chunk-CEMMLV5L.js";
28
30
  import "./chunk-N7TMSOZH.js";
29
31
  import "./chunk-DWPN6SCH.js";
30
32
  import "./chunk-TXKUKMVO.js";
31
- import "./chunk-3S7ULUWW.js";
33
+ import "./chunk-3CVEE6LA.js";
32
34
  import "./chunk-PEQXYSSE.js";
33
- import "./chunk-6VOYP4M6.js";
35
+ import "./chunk-YXSBZRP7.js";
34
36
  export {
35
37
  PluginHookDeniedError,
36
38
  applyPluginFormatMarkdown,
@@ -69,7 +69,7 @@ export declare const loadSessionParamsSchema: z.ZodObject<{
69
69
  }, z.core.$strict>;
70
70
  export declare const promptParamsSchema: z.ZodObject<{
71
71
  _meta: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
72
- prompt: z.ZodArray<z.ZodObject<{
72
+ prompt: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
73
73
  _meta: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
74
74
  annotations: z.ZodOptional<z.ZodNullable<z.ZodObject<{
75
75
  _meta: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -82,7 +82,25 @@ export declare const promptParamsSchema: z.ZodObject<{
82
82
  }, z.core.$strict>>>;
83
83
  text: z.ZodString;
84
84
  type: z.ZodLiteral<"text">;
85
- }, z.core.$strict>>;
85
+ }, z.core.$strict>, z.ZodObject<{
86
+ _meta: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
87
+ annotations: z.ZodOptional<z.ZodNullable<z.ZodObject<{
88
+ _meta: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
89
+ audience: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
90
+ user: "user";
91
+ assistant: "assistant";
92
+ }>>>>;
93
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ priority: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
95
+ }, z.core.$strict>>>;
96
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ mimeType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ name: z.ZodString;
99
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
100
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ type: z.ZodLiteral<"resource_link">;
102
+ uri: z.ZodString;
103
+ }, z.core.$strict>], "type">>;
86
104
  sessionId: z.ZodString;
87
105
  }, z.core.$strict>;
88
106
  export declare const cancelParamsSchema: z.ZodObject<{
@@ -1,5 +1,11 @@
1
1
  /** Read code activity created by Junior across installed code plugins. */
2
2
  export declare function readCodeOverview(nowMs?: number): Promise<{
3
+ activityDays: {
4
+ closed: number;
5
+ created: number;
6
+ date: string;
7
+ merged: number;
8
+ }[];
3
9
  changes: {
4
10
  id: string;
5
11
  number: number;
@@ -21,6 +27,8 @@ export declare function readCodeOverview(nowMs?: number): Promise<{
21
27
  name: string;
22
28
  open: number;
23
29
  provider: string;
30
+ medianCostUsd?: number | undefined;
31
+ mergeRate?: number | undefined;
24
32
  url?: string | undefined;
25
33
  }[];
26
34
  summary: {
@@ -28,6 +36,37 @@ export declare function readCodeOverview(nowMs?: number): Promise<{
28
36
  created: number;
29
37
  merged: number;
30
38
  open: number;
39
+ costUsd?: number | undefined;
40
+ medianCostUsd?: number | undefined;
41
+ medianMergeTimeMs?: number | undefined;
42
+ mergeRate?: number | undefined;
43
+ };
44
+ windowEnd: string;
45
+ windowStart: string;
46
+ }>;
47
+ /**
48
+ * Read person-scoped code activity linked through conversation actors on
49
+ * Junior-owned code changes.
50
+ */
51
+ export declare function readPersonCodeOverview(args: {
52
+ nowMs?: number;
53
+ userId: string;
54
+ }): Promise<{
55
+ activityDays: {
56
+ closed: number;
57
+ created: number;
58
+ date: string;
59
+ merged: number;
60
+ }[];
61
+ generatedAt: string;
62
+ summary: {
63
+ closed: number;
64
+ created: number;
65
+ merged: number;
66
+ open: number;
67
+ costUsd?: number | undefined;
68
+ medianCostUsd?: number | undefined;
69
+ medianMergeTimeMs?: number | undefined;
31
70
  mergeRate?: number | undefined;
32
71
  };
33
72
  windowEnd: string;
@@ -48,7 +48,7 @@ export declare function readLocationDetail(locationId: string, options?: {
48
48
  startedAt: string;
49
49
  lastSeenAt: string;
50
50
  lastProgressAt: string;
51
- surface: "slack" | "api" | "internal" | "scheduler";
51
+ surface: "slack" | "api" | "scheduler" | "internal";
52
52
  cumulativeUsage?: {
53
53
  inputTokens?: number | undefined;
54
54
  outputTokens?: number | undefined;
@@ -0,0 +1,22 @@
1
+ /** Read person-scoped native code activity for one People profile. */
2
+ export declare function readPeopleCode(email: string): Promise<{
3
+ activityDays: {
4
+ closed: number;
5
+ created: number;
6
+ date: string;
7
+ merged: number;
8
+ }[];
9
+ generatedAt: string;
10
+ summary: {
11
+ closed: number;
12
+ created: number;
13
+ merged: number;
14
+ open: number;
15
+ costUsd?: number | undefined;
16
+ medianCostUsd?: number | undefined;
17
+ medianMergeTimeMs?: number | undefined;
18
+ mergeRate?: number | undefined;
19
+ };
20
+ windowEnd: string;
21
+ windowStart: string;
22
+ }>;
@@ -1,16 +1,27 @@
1
1
  import { z } from "zod";
2
2
  export declare const codeChangeSummarySchema: z.ZodObject<{
3
3
  closed: z.ZodNumber;
4
+ costUsd: z.ZodOptional<z.ZodNumber>;
4
5
  created: z.ZodNumber;
6
+ medianCostUsd: z.ZodOptional<z.ZodNumber>;
7
+ medianMergeTimeMs: z.ZodOptional<z.ZodNumber>;
5
8
  merged: z.ZodNumber;
6
9
  mergeRate: z.ZodOptional<z.ZodNumber>;
7
10
  open: z.ZodNumber;
8
11
  }, z.core.$strict>;
12
+ export declare const codeActivityDaySchema: z.ZodObject<{
13
+ closed: z.ZodNumber;
14
+ created: z.ZodNumber;
15
+ date: z.ZodString;
16
+ merged: z.ZodNumber;
17
+ }, z.core.$strict>;
9
18
  export declare const codeRepositorySummarySchema: z.ZodObject<{
10
19
  closed: z.ZodNumber;
11
20
  created: z.ZodNumber;
12
21
  id: z.ZodString;
22
+ medianCostUsd: z.ZodOptional<z.ZodNumber>;
13
23
  merged: z.ZodNumber;
24
+ mergeRate: z.ZodOptional<z.ZodNumber>;
14
25
  name: z.ZodString;
15
26
  open: z.ZodNumber;
16
27
  provider: z.ZodString;
@@ -33,6 +44,12 @@ export declare const codeChangeSummaryReportSchema: z.ZodObject<{
33
44
  url: z.ZodOptional<z.ZodString>;
34
45
  }, z.core.$strict>;
35
46
  export declare const codeOverviewReportSchema: z.ZodObject<{
47
+ activityDays: z.ZodArray<z.ZodObject<{
48
+ closed: z.ZodNumber;
49
+ created: z.ZodNumber;
50
+ date: z.ZodString;
51
+ merged: z.ZodNumber;
52
+ }, z.core.$strict>>;
36
53
  changes: z.ZodArray<z.ZodObject<{
37
54
  closedAt: z.ZodOptional<z.ZodString>;
38
55
  id: z.ZodString;
@@ -54,7 +71,9 @@ export declare const codeOverviewReportSchema: z.ZodObject<{
54
71
  closed: z.ZodNumber;
55
72
  created: z.ZodNumber;
56
73
  id: z.ZodString;
74
+ medianCostUsd: z.ZodOptional<z.ZodNumber>;
57
75
  merged: z.ZodNumber;
76
+ mergeRate: z.ZodOptional<z.ZodNumber>;
58
77
  name: z.ZodString;
59
78
  open: z.ZodNumber;
60
79
  provider: z.ZodString;
@@ -62,7 +81,32 @@ export declare const codeOverviewReportSchema: z.ZodObject<{
62
81
  }, z.core.$strict>>;
63
82
  summary: z.ZodObject<{
64
83
  closed: z.ZodNumber;
84
+ costUsd: z.ZodOptional<z.ZodNumber>;
85
+ created: z.ZodNumber;
86
+ medianCostUsd: z.ZodOptional<z.ZodNumber>;
87
+ medianMergeTimeMs: z.ZodOptional<z.ZodNumber>;
88
+ merged: z.ZodNumber;
89
+ mergeRate: z.ZodOptional<z.ZodNumber>;
90
+ open: z.ZodNumber;
91
+ }, z.core.$strict>;
92
+ windowEnd: z.ZodString;
93
+ windowStart: z.ZodString;
94
+ }, z.core.$strict>;
95
+ /** Person-scoped code activity for one People profile. */
96
+ export declare const codePersonReportSchema: z.ZodObject<{
97
+ activityDays: z.ZodArray<z.ZodObject<{
98
+ closed: z.ZodNumber;
99
+ created: z.ZodNumber;
100
+ date: z.ZodString;
101
+ merged: z.ZodNumber;
102
+ }, z.core.$strict>>;
103
+ generatedAt: z.ZodString;
104
+ summary: z.ZodObject<{
105
+ closed: z.ZodNumber;
106
+ costUsd: z.ZodOptional<z.ZodNumber>;
65
107
  created: z.ZodNumber;
108
+ medianCostUsd: z.ZodOptional<z.ZodNumber>;
109
+ medianMergeTimeMs: z.ZodOptional<z.ZodNumber>;
66
110
  merged: z.ZodNumber;
67
111
  mergeRate: z.ZodOptional<z.ZodNumber>;
68
112
  open: z.ZodNumber;
@@ -70,6 +114,8 @@ export declare const codeOverviewReportSchema: z.ZodObject<{
70
114
  windowEnd: z.ZodString;
71
115
  windowStart: z.ZodString;
72
116
  }, z.core.$strict>;
117
+ export type CodeActivityDay = z.infer<typeof codeActivityDaySchema>;
73
118
  export type CodeChangeSummaryReport = z.infer<typeof codeChangeSummaryReportSchema>;
74
119
  export type CodeOverviewReport = z.infer<typeof codeOverviewReportSchema>;
120
+ export type CodePersonReport = z.infer<typeof codePersonReportSchema>;
75
121
  export type CodeRepositorySummary = z.infer<typeof codeRepositorySummarySchema>;
@@ -1,4 +1,6 @@
1
1
  import { z } from "zod";
2
+ import { conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema } from "@/chat/conversations/history";
3
+ export { conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, };
2
4
  export declare const conversationReportStatusSchema: z.ZodEnum<{
3
5
  completed: "completed";
4
6
  failed: "failed";
@@ -7,8 +9,8 @@ export declare const conversationReportStatusSchema: z.ZodEnum<{
7
9
  export declare const conversationSurfaceSchema: z.ZodEnum<{
8
10
  slack: "slack";
9
11
  api: "api";
10
- internal: "internal";
11
12
  scheduler: "scheduler";
13
+ internal: "internal";
12
14
  }>;
13
15
  export declare const conversationCostSchema: z.ZodObject<{
14
16
  input: z.ZodOptional<z.ZodNumber>;
@@ -228,8 +230,8 @@ export declare const conversationSummaryReportSchema: z.ZodObject<{
228
230
  surface: z.ZodEnum<{
229
231
  slack: "slack";
230
232
  api: "api";
231
- internal: "internal";
232
233
  scheduler: "scheduler";
234
+ internal: "internal";
233
235
  }>;
234
236
  actorIdentity: z.ZodOptional<z.ZodObject<{
235
237
  email: z.ZodOptional<z.ZodString>;
@@ -342,8 +344,8 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
342
344
  type: z.ZodLiteral<"turn_lifecycle">;
343
345
  turnId: z.ZodString;
344
346
  state: z.ZodEnum<{
345
- succeeded: "succeeded";
346
347
  no_reply: "no_reply";
348
+ succeeded: "succeeded";
347
349
  }>;
348
350
  }, z.core.$strict>, z.ZodObject<{
349
351
  type: z.ZodLiteral<"turn_lifecycle">;
@@ -354,10 +356,31 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
354
356
  type: z.ZodLiteral<"turn_lifecycle">;
355
357
  turnId: z.ZodString;
356
358
  state: z.ZodLiteral<"failed">;
357
- failureKind: z.ZodEnum<{
358
- delivery: "delivery";
359
- agent: "agent";
359
+ failureCode: z.ZodEnum<{
360
+ agent_run_failed: "agent_run_failed";
361
+ delivery_failed: "delivery_failed";
362
+ model_execution_failed: "model_execution_failed";
363
+ persistence_failed: "persistence_failed";
360
364
  }>;
365
+ failureReason: z.ZodOptional<z.ZodEnum<{
366
+ unknown: "unknown";
367
+ auth: "auth";
368
+ permission: "permission";
369
+ rate_limit: "rate_limit";
370
+ capacity: "capacity";
371
+ timeout: "timeout";
372
+ network: "network";
373
+ server: "server";
374
+ invalid_request: "invalid_request";
375
+ invalid_response: "invalid_response";
376
+ quota: "quota";
377
+ content_policy: "content_policy";
378
+ empty_output: "empty_output";
379
+ tool_errors: "tool_errors";
380
+ suppressed_output: "suppressed_output";
381
+ }>>;
382
+ eventId: z.ZodOptional<z.ZodString>;
383
+ sentryEventUrl: z.ZodOptional<z.ZodString>;
361
384
  }, z.core.$strict>], "state">, z.ZodObject<{
362
385
  type: z.ZodLiteral<"turn_context">;
363
386
  turnId: z.ZodString;
@@ -537,8 +560,8 @@ export declare const conversationReportEventSchema: z.ZodObject<{
537
560
  type: z.ZodLiteral<"turn_lifecycle">;
538
561
  turnId: z.ZodString;
539
562
  state: z.ZodEnum<{
540
- succeeded: "succeeded";
541
563
  no_reply: "no_reply";
564
+ succeeded: "succeeded";
542
565
  }>;
543
566
  }, z.core.$strict>, z.ZodObject<{
544
567
  type: z.ZodLiteral<"turn_lifecycle">;
@@ -549,10 +572,31 @@ export declare const conversationReportEventSchema: z.ZodObject<{
549
572
  type: z.ZodLiteral<"turn_lifecycle">;
550
573
  turnId: z.ZodString;
551
574
  state: z.ZodLiteral<"failed">;
552
- failureKind: z.ZodEnum<{
553
- delivery: "delivery";
554
- agent: "agent";
575
+ failureCode: z.ZodEnum<{
576
+ agent_run_failed: "agent_run_failed";
577
+ delivery_failed: "delivery_failed";
578
+ model_execution_failed: "model_execution_failed";
579
+ persistence_failed: "persistence_failed";
555
580
  }>;
581
+ failureReason: z.ZodOptional<z.ZodEnum<{
582
+ unknown: "unknown";
583
+ auth: "auth";
584
+ permission: "permission";
585
+ rate_limit: "rate_limit";
586
+ capacity: "capacity";
587
+ timeout: "timeout";
588
+ network: "network";
589
+ server: "server";
590
+ invalid_request: "invalid_request";
591
+ invalid_response: "invalid_response";
592
+ quota: "quota";
593
+ content_policy: "content_policy";
594
+ empty_output: "empty_output";
595
+ tool_errors: "tool_errors";
596
+ suppressed_output: "suppressed_output";
597
+ }>>;
598
+ eventId: z.ZodOptional<z.ZodString>;
599
+ sentryEventUrl: z.ZodOptional<z.ZodString>;
556
600
  }, z.core.$strict>], "state">, z.ZodObject<{
557
601
  type: z.ZodLiteral<"turn_context">;
558
602
  turnId: z.ZodString;
@@ -740,8 +784,8 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
740
784
  surface: z.ZodEnum<{
741
785
  slack: "slack";
742
786
  api: "api";
743
- internal: "internal";
744
787
  scheduler: "scheduler";
788
+ internal: "internal";
745
789
  }>;
746
790
  actorIdentity: z.ZodOptional<z.ZodObject<{
747
791
  email: z.ZodOptional<z.ZodString>;
@@ -873,8 +917,8 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
873
917
  type: z.ZodLiteral<"turn_lifecycle">;
874
918
  turnId: z.ZodString;
875
919
  state: z.ZodEnum<{
876
- succeeded: "succeeded";
877
920
  no_reply: "no_reply";
921
+ succeeded: "succeeded";
878
922
  }>;
879
923
  }, z.core.$strict>, z.ZodObject<{
880
924
  type: z.ZodLiteral<"turn_lifecycle">;
@@ -885,10 +929,31 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
885
929
  type: z.ZodLiteral<"turn_lifecycle">;
886
930
  turnId: z.ZodString;
887
931
  state: z.ZodLiteral<"failed">;
888
- failureKind: z.ZodEnum<{
889
- delivery: "delivery";
890
- agent: "agent";
932
+ failureCode: z.ZodEnum<{
933
+ agent_run_failed: "agent_run_failed";
934
+ delivery_failed: "delivery_failed";
935
+ model_execution_failed: "model_execution_failed";
936
+ persistence_failed: "persistence_failed";
891
937
  }>;
938
+ failureReason: z.ZodOptional<z.ZodEnum<{
939
+ unknown: "unknown";
940
+ auth: "auth";
941
+ permission: "permission";
942
+ rate_limit: "rate_limit";
943
+ capacity: "capacity";
944
+ timeout: "timeout";
945
+ network: "network";
946
+ server: "server";
947
+ invalid_request: "invalid_request";
948
+ invalid_response: "invalid_response";
949
+ quota: "quota";
950
+ content_policy: "content_policy";
951
+ empty_output: "empty_output";
952
+ tool_errors: "tool_errors";
953
+ suppressed_output: "suppressed_output";
954
+ }>>;
955
+ eventId: z.ZodOptional<z.ZodString>;
956
+ sentryEventUrl: z.ZodOptional<z.ZodString>;
892
957
  }, z.core.$strict>], "state">, z.ZodObject<{
893
958
  type: z.ZodLiteral<"turn_context">;
894
959
  turnId: z.ZodString;
@@ -1091,8 +1156,8 @@ export declare const conversationEventPageSchema: z.ZodObject<{
1091
1156
  type: z.ZodLiteral<"turn_lifecycle">;
1092
1157
  turnId: z.ZodString;
1093
1158
  state: z.ZodEnum<{
1094
- succeeded: "succeeded";
1095
1159
  no_reply: "no_reply";
1160
+ succeeded: "succeeded";
1096
1161
  }>;
1097
1162
  }, z.core.$strict>, z.ZodObject<{
1098
1163
  type: z.ZodLiteral<"turn_lifecycle">;
@@ -1103,10 +1168,31 @@ export declare const conversationEventPageSchema: z.ZodObject<{
1103
1168
  type: z.ZodLiteral<"turn_lifecycle">;
1104
1169
  turnId: z.ZodString;
1105
1170
  state: z.ZodLiteral<"failed">;
1106
- failureKind: z.ZodEnum<{
1107
- delivery: "delivery";
1108
- agent: "agent";
1171
+ failureCode: z.ZodEnum<{
1172
+ agent_run_failed: "agent_run_failed";
1173
+ delivery_failed: "delivery_failed";
1174
+ model_execution_failed: "model_execution_failed";
1175
+ persistence_failed: "persistence_failed";
1109
1176
  }>;
1177
+ failureReason: z.ZodOptional<z.ZodEnum<{
1178
+ unknown: "unknown";
1179
+ auth: "auth";
1180
+ permission: "permission";
1181
+ rate_limit: "rate_limit";
1182
+ capacity: "capacity";
1183
+ timeout: "timeout";
1184
+ network: "network";
1185
+ server: "server";
1186
+ invalid_request: "invalid_request";
1187
+ invalid_response: "invalid_response";
1188
+ quota: "quota";
1189
+ content_policy: "content_policy";
1190
+ empty_output: "empty_output";
1191
+ tool_errors: "tool_errors";
1192
+ suppressed_output: "suppressed_output";
1193
+ }>>;
1194
+ eventId: z.ZodOptional<z.ZodString>;
1195
+ sentryEventUrl: z.ZodOptional<z.ZodString>;
1110
1196
  }, z.core.$strict>], "state">, z.ZodObject<{
1111
1197
  type: z.ZodLiteral<"turn_context">;
1112
1198
  turnId: z.ZodString;
@@ -1279,8 +1365,8 @@ export declare const conversationFeedSchema: z.ZodObject<{
1279
1365
  surface: z.ZodEnum<{
1280
1366
  slack: "slack";
1281
1367
  api: "api";
1282
- internal: "internal";
1283
1368
  scheduler: "scheduler";
1369
+ internal: "internal";
1284
1370
  }>;
1285
1371
  actorIdentity: z.ZodOptional<z.ZodObject<{
1286
1372
  email: z.ZodOptional<z.ZodString>;
@@ -1432,6 +1518,8 @@ export declare const conversationStatsReportSchema: z.ZodObject<{
1432
1518
  windowStart: z.ZodString;
1433
1519
  }, z.core.$strict>;
1434
1520
  export type ConversationReportStatus = z.infer<typeof conversationReportStatusSchema>;
1521
+ export type ConversationTurnFailureCode = z.infer<typeof conversationTurnFailureCodeSchema>;
1522
+ export type ConversationTurnFailureReason = z.infer<typeof conversationTurnFailureReasonSchema>;
1435
1523
  export type ConversationSurface = z.infer<typeof conversationSurfaceSchema>;
1436
1524
  export type ConversationCost = z.infer<typeof conversationCostSchema>;
1437
1525
  export type ConversationUsage = z.infer<typeof conversationUsageSchema>;
@@ -178,8 +178,8 @@ export declare const locationDetailReportSchema: z.ZodObject<{
178
178
  surface: z.ZodEnum<{
179
179
  slack: "slack";
180
180
  api: "api";
181
- internal: "internal";
182
181
  scheduler: "scheduler";
182
+ internal: "internal";
183
183
  }>;
184
184
  actorIdentity: z.ZodOptional<z.ZodObject<{
185
185
  email: z.ZodOptional<z.ZodString>;
@@ -145,8 +145,8 @@ export declare const actorProfileReportSchema: z.ZodObject<{
145
145
  surface: z.ZodEnum<{
146
146
  slack: "slack";
147
147
  api: "api";
148
- internal: "internal";
149
148
  scheduler: "scheduler";
149
+ internal: "internal";
150
150
  }>;
151
151
  actorIdentity: z.ZodOptional<z.ZodObject<{
152
152
  email: z.ZodOptional<z.ZodString>;
@@ -1,9 +1,9 @@
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";
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";
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";
3
+ export { codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositorySummarySchema, } from "./schema/code";
4
+ export type { CodeActivityDay, CodeChangeSummaryReport, CodeOverviewReport, CodePersonReport, CodeRepositorySummary, } from "./schema/code";
5
+ export { acceptedConversationMessageSchema, archiveConversationBodySchema, archiveConversationResponseSchema, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, conversationAuxiliaryCostsSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventPageSchema, conversationEventHistorySchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationStatsReportSchema, conversationSummaryReportSchema, createConversationBodySchema, createConversationMessageBodySchema, } from "./schema/conversation";
6
+ export type { AcceptedConversationMessage, ArchiveConversationBody, ArchiveConversationResponse, CancelConversationPendingMessagesBody, CancelConversationPendingMessagesResponse, ActorIdentity, ConversationAuxiliaryCosts, ConversationCost, ConversationDetailReport, ConversationEventPage, ConversationEventHistory, ConversationFeed, ConversationPendingMessage, ConversationPendingMessageDelivery, ConversationPendingMessagesReport, ConversationReportEvent, ConversationReportEventData, ConversationReportStatus, ConversationTurnFailureCode, ConversationTurnFailureReason, ConversationMetricDay, ConversationModelUsage, ConversationParams, ConversationSourceTask, ConversationStatsItem, ConversationStatsReport, ConversationSummaryReport, ConversationSurface, ConversationUsage, CreateConversationBody, CreateConversationMessageBody, GuardianMetricDay, GuardianStats, } from "./schema/conversation";
7
7
  export { actorDirectoryReportSchema, actorProfileReportSchema, personalSpendReportSchema, personParamsSchema, } from "./schema/person";
8
8
  export { locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, } from "./schema/location";
9
9
  export type { LocationActorSummaryReport, LocationActivityDayReport, LocationDetailReport, LocationDirectoryReport, LocationSummaryReport, LocationParams, } from "./schema/location";
@@ -8,9 +8,11 @@ import {
8
8
  baselineSnapshotSchema,
9
9
  cancelConversationPendingMessagesBodySchema,
10
10
  cancelConversationPendingMessagesResponseSchema,
11
+ codeActivityDaySchema,
11
12
  codeChangeSummaryReportSchema,
12
13
  codeChangeSummarySchema,
13
14
  codeOverviewReportSchema,
15
+ codePersonReportSchema,
14
16
  codeRepositorySummarySchema,
15
17
  conversationAuxiliaryCostsSchema,
16
18
  conversationDetailQuerySchema,
@@ -63,7 +65,7 @@ import {
63
65
  workspaceParamsSchema,
64
66
  workspaceRepoSchema,
65
67
  workspaceSchema
66
- } from "../chunk-WVIA7V3M.js";
68
+ } from "../chunk-PFAZSRGR.js";
67
69
  import {
68
70
  healthReportSchema,
69
71
  pluginOperationalReportFeedSchema,
@@ -77,7 +79,12 @@ import {
77
79
  skillReportsSchema
78
80
  } from "../chunk-UTL3MHPC.js";
79
81
  import "../chunk-PDO5BLNM.js";
82
+ import {
83
+ conversationTurnFailureCodeSchema,
84
+ conversationTurnFailureReasonSchema
85
+ } from "../chunk-GFBR4S3Q.js";
80
86
  import "../chunk-VFUK3X5B.js";
87
+ import "../chunk-D4YV5TDV.js";
81
88
  export {
82
89
  acceptedConversationMessageSchema,
83
90
  actorDirectoryReportSchema,
@@ -88,9 +95,11 @@ export {
88
95
  baselineSnapshotSchema,
89
96
  cancelConversationPendingMessagesBodySchema,
90
97
  cancelConversationPendingMessagesResponseSchema,
98
+ codeActivityDaySchema,
91
99
  codeChangeSummaryReportSchema,
92
100
  codeChangeSummarySchema,
93
101
  codeOverviewReportSchema,
102
+ codePersonReportSchema,
94
103
  codeRepositorySummarySchema,
95
104
  conversationAuxiliaryCostsSchema,
96
105
  conversationDetailQuerySchema,
@@ -109,6 +118,8 @@ export {
109
118
  conversationReportEventSchema,
110
119
  conversationStatsReportSchema,
111
120
  conversationSummaryReportSchema,
121
+ conversationTurnFailureCodeSchema,
122
+ conversationTurnFailureReasonSchema,
112
123
  createConversationBodySchema,
113
124
  createConversationMessageBodySchema,
114
125
  createPersonalTokenBodySchema,