@sentry/junior 0.128.0 → 0.129.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 (73) hide show
  1. package/dist/{agent-hooks-F75ANGBV.js → agent-hooks-ZM4WMZCN.js} +9 -9
  2. package/dist/api/schema/task.d.ts +152 -0
  3. package/dist/api/schema.d.ts +2 -0
  4. package/dist/api/schema.js +13 -3
  5. package/dist/api/tasks/routes.d.ts +4 -0
  6. package/dist/api.js +425 -23
  7. package/dist/app.d.ts +2 -1
  8. package/dist/app.js +315 -27
  9. package/dist/{catalog-runtime-ZPSA5QM2.js → catalog-runtime-TN2GPVEI.js} +5 -5
  10. package/dist/chat/agent-dispatch/context.d.ts +18 -0
  11. package/dist/chat/event-tasks/store.d.ts +7 -1
  12. package/dist/chat/event-tasks/tool-support.d.ts +1 -0
  13. package/dist/chat/resource-events/runtime-catalog.d.ts +3 -0
  14. package/dist/chat/sandbox/resources.d.ts +12 -1
  15. package/dist/chat/scheduled-tasks/cadence.d.ts +27 -0
  16. package/dist/chat/scheduled-tasks/heartbeat.d.ts +6 -0
  17. package/dist/chat/scheduled-tasks/identity.d.ts +6 -0
  18. package/dist/chat/scheduled-tasks/personal.d.ts +26 -0
  19. package/dist/chat/scheduled-tasks/schedule-intent.d.ts +61 -0
  20. package/dist/chat/scheduled-tasks/store.d.ts +77 -0
  21. package/dist/chat/scheduled-tasks/tool-support.d.ts +203 -0
  22. package/dist/chat/scheduled-tasks/tools/create.d.ts +80 -0
  23. package/dist/chat/scheduled-tasks/tools/delete.d.ts +56 -0
  24. package/dist/chat/scheduled-tasks/tools/list.d.ts +54 -0
  25. package/dist/chat/scheduled-tasks/tools/run-now.d.ts +56 -0
  26. package/dist/chat/scheduled-tasks/tools/update.d.ts +82 -0
  27. package/dist/chat/scheduled-tasks/tools.d.ts +6 -0
  28. package/dist/chat/scheduled-tasks/types.d.ts +81 -0
  29. package/dist/chat/tasks/read.d.ts +9 -0
  30. package/dist/chat/tools/scheduled-tasks.d.ts +4 -0
  31. package/dist/{chunk-K5ZB3WWH.js → chunk-2BCQKJTX.js} +2 -2
  32. package/dist/{chunk-G6XQODHM.js → chunk-3N4MWF3R.js} +1 -1
  33. package/dist/{chunk-NHWE6Y7G.js → chunk-6CMYU62S.js} +7 -7
  34. package/dist/{chunk-YY6CVET7.js → chunk-6QQOLIJJ.js} +1308 -804
  35. package/dist/{chunk-WZ365SQC.js → chunk-A6QQPVSH.js} +1 -1
  36. package/dist/chunk-BDIEEZK7.js +1470 -0
  37. package/dist/{chunk-AFJF3RGU.js → chunk-BVKP37NE.js} +61 -13
  38. package/dist/{chunk-5KKIBIIP.js → chunk-CZJUBH6O.js} +12 -12
  39. package/dist/{chunk-OLGB5Y7R.js → chunk-CZQ2DSQZ.js} +1 -1
  40. package/dist/{chunk-3PKF6YNU.js → chunk-E4UCPRYL.js} +1 -1
  41. package/dist/{chunk-KNRODVH2.js → chunk-ESYXDXNX.js} +6 -6
  42. package/dist/{chunk-Z4KTQMWW.js → chunk-GPWHBHAG.js} +1 -1
  43. package/dist/{chunk-JDCPDJ54.js → chunk-GURSWCI4.js} +2 -2
  44. package/dist/{chunk-RYWMDDWK.js → chunk-K3U5447S.js} +1 -1
  45. package/dist/{chunk-SHMHHXD5.js → chunk-KB2M27DL.js} +58 -0
  46. package/dist/{chunk-PBWUUVVG.js → chunk-LV2BQ26V.js} +1 -1
  47. package/dist/{chunk-KTGJAWRO.js → chunk-NNRV4T2C.js} +1 -2
  48. package/dist/{chunk-B6E3YA2H.js → chunk-P6I7LFKC.js} +1 -1
  49. package/dist/{chunk-B7FPRGUJ.js → chunk-PQFNTLZI.js} +3 -3
  50. package/dist/{chunk-A76LKS5W.js → chunk-QAOA4GUG.js} +5 -5
  51. package/dist/{chunk-BY43CEXN.js → chunk-R62DRNKB.js} +2 -2
  52. package/dist/{chunk-HBFQLSGV.js → chunk-U23X4ASF.js} +4 -4
  53. package/dist/{chunk-2HTHX6XV.js → chunk-XENYUOZG.js} +38 -17
  54. package/dist/cli/chat.js +24 -24
  55. package/dist/cli/check.js +6 -6
  56. package/dist/cli/plugins.js +12 -12
  57. package/dist/cli/snapshot-create.js +9 -9
  58. package/dist/cli/upgrade.js +9 -17
  59. package/dist/db/schema/scheduled-tasks.d.ts +257 -0
  60. package/dist/db/schema.d.ts +258 -1
  61. package/dist/{db-FYJYPAKG.js → db-ZI6TBXIS.js} +7 -7
  62. package/dist/instrumentation.js +4 -4
  63. package/dist/nitro.js +2 -2
  64. package/dist/{oauth-callback-server-W3PPIHCS.js → oauth-callback-server-TLA4GARF.js} +17 -17
  65. package/dist/{runner-5NOFUYKR.js → runner-23YFRWQJ.js} +11 -11
  66. package/dist/{skills-ENIBKF5V.js → skills-QIUG4D6M.js} +6 -6
  67. package/dist/{validation-BHLBOO6K.js → validation-3KGEBATS.js} +6 -6
  68. package/dist/version.js +1 -1
  69. package/migrations/0016_neat_the_anarchist.sql +171 -0
  70. package/migrations/meta/0016_snapshot.json +1617 -0
  71. package/migrations/meta/_journal.json +7 -0
  72. package/package.json +5 -6
  73. package/dist/chunk-FJEIX3AH.js +0 -37
@@ -11,19 +11,19 @@ import {
11
11
  getPlugins,
12
12
  setPlugins,
13
13
  validatePlugins
14
- } from "./chunk-A76LKS5W.js";
15
- import "./chunk-B7FPRGUJ.js";
16
- import "./chunk-SHMHHXD5.js";
17
- import "./chunk-G6XQODHM.js";
18
- import "./chunk-K5ZB3WWH.js";
14
+ } from "./chunk-QAOA4GUG.js";
15
+ import "./chunk-PQFNTLZI.js";
16
+ import "./chunk-KB2M27DL.js";
17
+ import "./chunk-3N4MWF3R.js";
18
+ import "./chunk-2BCQKJTX.js";
19
19
  import "./chunk-VFUK3X5B.js";
20
- import "./chunk-Z4KTQMWW.js";
20
+ import "./chunk-GPWHBHAG.js";
21
21
  import "./chunk-HZF5P5UN.js";
22
22
  import "./chunk-F3B2YJ76.js";
23
- import "./chunk-B6E3YA2H.js";
23
+ import "./chunk-P6I7LFKC.js";
24
24
  import "./chunk-6GWA276C.js";
25
- import "./chunk-RYWMDDWK.js";
26
- import "./chunk-KTGJAWRO.js";
25
+ import "./chunk-K3U5447S.js";
26
+ import "./chunk-NNRV4T2C.js";
27
27
  import "./chunk-MLKGABMK.js";
28
28
  export {
29
29
  PluginHookDeniedError,
@@ -0,0 +1,152 @@
1
+ import { z } from "zod";
2
+ export declare const scheduledTaskSummarySchema: z.ZodObject<{
3
+ createdAt: z.ZodString;
4
+ createdBy: z.ZodString;
5
+ createdByEmail: z.ZodOptional<z.ZodString>;
6
+ destination: z.ZodObject<{
7
+ channelId: z.ZodString;
8
+ label: z.ZodString;
9
+ teamId: z.ZodString;
10
+ visibility: z.ZodEnum<{
11
+ public: "public";
12
+ private: "private";
13
+ }>;
14
+ }, z.core.$strict>;
15
+ id: z.ZodString;
16
+ instruction: z.ZodString;
17
+ ownedByViewer: z.ZodBoolean;
18
+ kind: z.ZodLiteral<"scheduled">;
19
+ nextRunAt: z.ZodOptional<z.ZodString>;
20
+ schedule: z.ZodString;
21
+ status: z.ZodEnum<{
22
+ blocked: "blocked";
23
+ active: "active";
24
+ paused: "paused";
25
+ }>;
26
+ }, z.core.$strict>;
27
+ export declare const eventTaskSummarySchema: z.ZodObject<{
28
+ createdAt: z.ZodString;
29
+ createdBy: z.ZodString;
30
+ createdByEmail: z.ZodOptional<z.ZodString>;
31
+ destination: z.ZodObject<{
32
+ channelId: z.ZodString;
33
+ label: z.ZodString;
34
+ teamId: z.ZodString;
35
+ visibility: z.ZodEnum<{
36
+ public: "public";
37
+ private: "private";
38
+ }>;
39
+ }, z.core.$strict>;
40
+ id: z.ZodString;
41
+ instruction: z.ZodString;
42
+ ownedByViewer: z.ZodBoolean;
43
+ events: z.ZodArray<z.ZodString>;
44
+ kind: z.ZodLiteral<"event">;
45
+ resource: z.ZodString;
46
+ source: z.ZodString;
47
+ triggerAvailable: z.ZodBoolean;
48
+ }, z.core.$strict>;
49
+ export declare const taskSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
50
+ createdAt: z.ZodString;
51
+ createdBy: z.ZodString;
52
+ createdByEmail: z.ZodOptional<z.ZodString>;
53
+ destination: z.ZodObject<{
54
+ channelId: z.ZodString;
55
+ label: z.ZodString;
56
+ teamId: z.ZodString;
57
+ visibility: z.ZodEnum<{
58
+ public: "public";
59
+ private: "private";
60
+ }>;
61
+ }, z.core.$strict>;
62
+ id: z.ZodString;
63
+ instruction: z.ZodString;
64
+ ownedByViewer: z.ZodBoolean;
65
+ kind: z.ZodLiteral<"scheduled">;
66
+ nextRunAt: z.ZodOptional<z.ZodString>;
67
+ schedule: z.ZodString;
68
+ status: z.ZodEnum<{
69
+ blocked: "blocked";
70
+ active: "active";
71
+ paused: "paused";
72
+ }>;
73
+ }, z.core.$strict>, z.ZodObject<{
74
+ createdAt: z.ZodString;
75
+ createdBy: z.ZodString;
76
+ createdByEmail: z.ZodOptional<z.ZodString>;
77
+ destination: z.ZodObject<{
78
+ channelId: z.ZodString;
79
+ label: z.ZodString;
80
+ teamId: z.ZodString;
81
+ visibility: z.ZodEnum<{
82
+ public: "public";
83
+ private: "private";
84
+ }>;
85
+ }, z.core.$strict>;
86
+ id: z.ZodString;
87
+ instruction: z.ZodString;
88
+ ownedByViewer: z.ZodBoolean;
89
+ events: z.ZodArray<z.ZodString>;
90
+ kind: z.ZodLiteral<"event">;
91
+ resource: z.ZodString;
92
+ source: z.ZodString;
93
+ triggerAvailable: z.ZodBoolean;
94
+ }, z.core.$strict>], "kind">;
95
+ export declare const taskListSchema: z.ZodObject<{
96
+ tasks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
97
+ createdAt: z.ZodString;
98
+ createdBy: z.ZodString;
99
+ createdByEmail: z.ZodOptional<z.ZodString>;
100
+ destination: z.ZodObject<{
101
+ channelId: z.ZodString;
102
+ label: z.ZodString;
103
+ teamId: z.ZodString;
104
+ visibility: z.ZodEnum<{
105
+ public: "public";
106
+ private: "private";
107
+ }>;
108
+ }, z.core.$strict>;
109
+ id: z.ZodString;
110
+ instruction: z.ZodString;
111
+ ownedByViewer: z.ZodBoolean;
112
+ kind: z.ZodLiteral<"scheduled">;
113
+ nextRunAt: z.ZodOptional<z.ZodString>;
114
+ schedule: z.ZodString;
115
+ status: z.ZodEnum<{
116
+ blocked: "blocked";
117
+ active: "active";
118
+ paused: "paused";
119
+ }>;
120
+ }, z.core.$strict>, z.ZodObject<{
121
+ createdAt: z.ZodString;
122
+ createdBy: z.ZodString;
123
+ createdByEmail: z.ZodOptional<z.ZodString>;
124
+ destination: z.ZodObject<{
125
+ channelId: z.ZodString;
126
+ label: z.ZodString;
127
+ teamId: z.ZodString;
128
+ visibility: z.ZodEnum<{
129
+ public: "public";
130
+ private: "private";
131
+ }>;
132
+ }, z.core.$strict>;
133
+ id: z.ZodString;
134
+ instruction: z.ZodString;
135
+ ownedByViewer: z.ZodBoolean;
136
+ events: z.ZodArray<z.ZodString>;
137
+ kind: z.ZodLiteral<"event">;
138
+ resource: z.ZodString;
139
+ source: z.ZodString;
140
+ triggerAvailable: z.ZodBoolean;
141
+ }, z.core.$strict>], "kind">>;
142
+ truncated: z.ZodBoolean;
143
+ }, z.core.$strict>;
144
+ export declare const taskParamsSchema: z.ZodObject<{
145
+ id: z.ZodString;
146
+ kind: z.ZodEnum<{
147
+ event: "event";
148
+ scheduled: "scheduled";
149
+ }>;
150
+ }, z.core.$strict>;
151
+ export type TaskSummary = z.output<typeof taskSummarySchema>;
152
+ export type TaskList = z.output<typeof taskListSchema>;
@@ -10,6 +10,8 @@ export { apiErrorSchema } from "./schema/common";
10
10
  export type { ApiError } from "./schema/common";
11
11
  export { createPersonalTokenBodySchema, createdPersonalTokenSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, revokePersonalTokenResponseSchema, } from "./schema/personal-token";
12
12
  export type { PersonalTokenMetadata } from "./schema/personal-token";
13
+ export { eventTaskSummarySchema, scheduledTaskSummarySchema, taskListSchema, taskParamsSchema, taskSummarySchema, } from "./schema/task";
14
+ export type { TaskList, TaskSummary } from "./schema/task";
13
15
  export { statSchema, statsReportSchema } from "./schema/stats";
14
16
  export type { StatReport, StatsReport } from "./schema/stats";
15
17
  export { healthReportSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, runtimeInfoReportSchema, skillReportSchema, skillReportsSchema, } from "../reporting-schema";
@@ -20,6 +20,7 @@ import {
20
20
  createPersonalTokenBodySchema,
21
21
  createdPersonalTokenSchema,
22
22
  dailyConversationActivitySchema,
23
+ eventTaskSummarySchema,
23
24
  locationActivityDayReportSchema,
24
25
  locationDetailReportSchema,
25
26
  locationDirectoryReportSchema,
@@ -30,9 +31,13 @@ import {
30
31
  personalTokenMetadataSchema,
31
32
  personalTokenParamsSchema,
32
33
  revokePersonalTokenResponseSchema,
34
+ scheduledTaskSummarySchema,
33
35
  statSchema,
34
- statsReportSchema
35
- } from "../chunk-AFJF3RGU.js";
36
+ statsReportSchema,
37
+ taskListSchema,
38
+ taskParamsSchema,
39
+ taskSummarySchema
40
+ } from "../chunk-BVKP37NE.js";
36
41
  import {
37
42
  healthReportSchema,
38
43
  pluginOperationalReportFeedSchema,
@@ -70,6 +75,7 @@ export {
70
75
  createPersonalTokenBodySchema,
71
76
  createdPersonalTokenSchema,
72
77
  dailyConversationActivitySchema,
78
+ eventTaskSummarySchema,
73
79
  healthReportSchema,
74
80
  locationActivityDayReportSchema,
75
81
  locationDetailReportSchema,
@@ -88,8 +94,12 @@ export {
88
94
  pluginsSchema,
89
95
  revokePersonalTokenResponseSchema,
90
96
  runtimeInfoReportSchema,
97
+ scheduledTaskSummarySchema,
91
98
  skillReportSchema,
92
99
  skillReportsSchema,
93
100
  statSchema,
94
- statsReportSchema
101
+ statsReportSchema,
102
+ taskListSchema,
103
+ taskParamsSchema,
104
+ taskSummarySchema
95
105
  };
@@ -0,0 +1,4 @@
1
+ import { Hono } from "hono";
2
+ import type { JuniorApiEnv } from "@/api/route";
3
+ /** Create authenticated native task list and action routes. */
4
+ export declare function createTaskRoutes(): Hono<JuniorApiEnv>;