@sentry/junior 0.141.0 → 0.143.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/{agent-hooks-HIRVKUQJ.js → agent-hooks-2EP3QS47.js} +10 -10
- package/dist/api/schema/task.d.ts +8 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +34 -22
- package/dist/app.js +62 -91
- package/dist/{catalog-runtime-XVLED5UH.js → catalog-runtime-IAVW4W3B.js} +5 -5
- package/dist/chat/event-tasks/types.d.ts +7 -1
- package/dist/chat/runtime/turn.d.ts +0 -4
- package/dist/chat/scheduled-tasks/tools/create.d.ts +1 -0
- package/dist/chat/scheduled-tasks/types.d.ts +5 -0
- package/dist/chat/services/conversation-memory.d.ts +2 -1
- package/dist/chat/services/short-title.d.ts +25 -0
- package/dist/chat/state/conversation.d.ts +6 -17
- package/dist/chat/tools/create-event-task.d.ts +1 -0
- package/dist/{chunk-3H42HMA2.js → chunk-2KLMGRRQ.js} +5 -1
- package/dist/{chunk-HN4UZTG7.js → chunk-2T5CHXRZ.js} +2 -2
- package/dist/{chunk-PGJUJCOQ.js → chunk-5YJBS4I5.js} +1 -1
- package/dist/{chunk-BBLO66XT.js → chunk-7GVX5SOG.js} +2 -2
- package/dist/{chunk-2DOVDDZJ.js → chunk-A3XPSABC.js} +3 -3
- package/dist/{chunk-FZFJZZR3.js → chunk-AEFJN7OK.js} +4 -4
- package/dist/{chunk-DK3GQWJK.js → chunk-ANG7IWAI.js} +6 -6
- package/dist/{chunk-LMGKSDO4.js → chunk-BJ6ISBOA.js} +1 -1
- package/dist/{chunk-H4WNQFBH.js → chunk-F6RWNJBK.js} +5 -5
- package/dist/{chunk-UFEU4UX6.js → chunk-GZRWULXF.js} +1 -1
- package/dist/{chunk-DVIJ6DP6.js → chunk-I25V3XRN.js} +2 -2
- package/dist/{chunk-A2O7SGK5.js → chunk-I4NQNZVW.js} +6 -6
- package/dist/{chunk-DKH4WGZU.js → chunk-I5PIM72M.js} +341 -16
- package/dist/{chunk-FWXSPJRN.js → chunk-LSBQHDI2.js} +1 -1
- package/dist/{chunk-6U44QGXL.js → chunk-M2T7MHQJ.js} +1 -1
- package/dist/{chunk-5MFCEKR6.js → chunk-NAINBOZQ.js} +3 -3
- package/dist/{chunk-EYD523BV.js → chunk-NVFVM67W.js} +1 -1
- package/dist/{chunk-43OPSFUY.js → chunk-OB7ZJK7Y.js} +1 -1
- package/dist/{chunk-HQAFIN6O.js → chunk-OG5JQHKR.js} +1 -1
- package/dist/{chunk-YWM6MJT4.js → chunk-OGQGJAD7.js} +2 -0
- package/dist/{chunk-PIQKV7IR.js → chunk-PBV7VXUA.js} +10 -451
- package/dist/{chunk-LIVSCWI5.js → chunk-QFWXGUAH.js} +23 -26
- package/dist/{chunk-UONUDOJP.js → chunk-RABHACKG.js} +7 -7
- package/dist/{chunk-7ULXCNOZ.js → chunk-SNBTWIQO.js} +6 -6
- package/dist/chunk-STX5WIH6.js +75 -0
- package/dist/{chunk-44NWPKY3.js → chunk-TPJK6AVJ.js} +1 -1
- package/dist/{chunk-6FRAWWGR.js → chunk-U5ATCOHE.js} +2 -2
- package/dist/{chunk-5LPWHC7Q.js → chunk-UFCA4EZB.js} +80 -46
- package/dist/chunk-WJHWOAVZ.js +67 -0
- package/dist/{chunk-NFL4FRIU.js → chunk-WM4PRM7W.js} +4 -4
- package/dist/{chunk-OFQBDHVG.js → chunk-WSWVWP2V.js} +1 -1
- package/dist/{chunk-DBKS7JR2.js → chunk-X5SC2UGE.js} +3 -3
- package/dist/{chunk-OHO46E7F.js → chunk-XYJNNZYR.js} +88 -36
- package/dist/cli/chat.js +32 -30
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/event-tasks.d.ts +20 -52
- package/dist/db/schema/scheduled-tasks.d.ts +17 -0
- package/dist/db/schema.d.ts +36 -52
- package/dist/{db-PSMQZR4P.js → db-RBXBVEVO.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-XZUK2AT6.js → oauth-callback-server-LRB6BX6C.js} +23 -21
- package/dist/{runner-5EKJCQWP.js → runner-WK5VUOW6.js} +24 -25
- package/dist/{skills-2PRM42SE.js → skills-MJWRME3A.js} +6 -6
- package/dist/{spawn-UGTLRTFP.js → spawn-ZCW6UOAA.js} +17 -17
- package/dist/{validation-XLXAIRTR.js → validation-556WSWVU.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-CNTNEQ2Q.js → work-W6IXSPY3.js} +16 -16
- package/dist/{worker-BGW7CKZ7.js → worker-5KM346HH.js} +10 -10
- package/migrations/0023_task_title_columns.sql +2 -0
- package/migrations/meta/0023_snapshot.json +2198 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +5 -5
|
@@ -11,21 +11,21 @@ import {
|
|
|
11
11
|
getPlugins,
|
|
12
12
|
setPlugins,
|
|
13
13
|
validatePlugins
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-SNBTWIQO.js";
|
|
15
|
+
import "./chunk-I25V3XRN.js";
|
|
16
|
+
import "./chunk-NAINBOZQ.js";
|
|
17
|
+
import "./chunk-2KLMGRRQ.js";
|
|
18
18
|
import "./chunk-EM225ITJ.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-M2T7MHQJ.js";
|
|
20
|
+
import "./chunk-7GVX5SOG.js";
|
|
21
21
|
import "./chunk-VFUK3X5B.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-5YJBS4I5.js";
|
|
23
23
|
import "./chunk-HZF5P5UN.js";
|
|
24
24
|
import "./chunk-F3B2YJ76.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-GZRWULXF.js";
|
|
26
26
|
import "./chunk-6GWA276C.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-WSWVWP2V.js";
|
|
28
|
+
import "./chunk-OB7ZJK7Y.js";
|
|
29
29
|
import "./chunk-MLKGABMK.js";
|
|
30
30
|
export {
|
|
31
31
|
PluginHookDeniedError,
|
|
@@ -18,6 +18,7 @@ export declare const scheduledTaskSummarySchema: z.ZodObject<{
|
|
|
18
18
|
lastRunAt: z.ZodOptional<z.ZodString>;
|
|
19
19
|
ownedByViewer: z.ZodBoolean;
|
|
20
20
|
runsLast7Days: z.ZodNumber;
|
|
21
|
+
title: z.ZodString;
|
|
21
22
|
totalRuns: z.ZodNumber;
|
|
22
23
|
kind: z.ZodLiteral<"scheduled">;
|
|
23
24
|
nextRunAt: z.ZodOptional<z.ZodString>;
|
|
@@ -47,6 +48,7 @@ export declare const eventTaskSummarySchema: z.ZodObject<{
|
|
|
47
48
|
lastRunAt: z.ZodOptional<z.ZodString>;
|
|
48
49
|
ownedByViewer: z.ZodBoolean;
|
|
49
50
|
runsLast7Days: z.ZodNumber;
|
|
51
|
+
title: z.ZodString;
|
|
50
52
|
totalRuns: z.ZodNumber;
|
|
51
53
|
events: z.ZodArray<z.ZodString>;
|
|
52
54
|
kind: z.ZodLiteral<"event">;
|
|
@@ -73,6 +75,7 @@ export declare const taskSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
73
75
|
lastRunAt: z.ZodOptional<z.ZodString>;
|
|
74
76
|
ownedByViewer: z.ZodBoolean;
|
|
75
77
|
runsLast7Days: z.ZodNumber;
|
|
78
|
+
title: z.ZodString;
|
|
76
79
|
totalRuns: z.ZodNumber;
|
|
77
80
|
kind: z.ZodLiteral<"scheduled">;
|
|
78
81
|
nextRunAt: z.ZodOptional<z.ZodString>;
|
|
@@ -101,6 +104,7 @@ export declare const taskSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
101
104
|
lastRunAt: z.ZodOptional<z.ZodString>;
|
|
102
105
|
ownedByViewer: z.ZodBoolean;
|
|
103
106
|
runsLast7Days: z.ZodNumber;
|
|
107
|
+
title: z.ZodString;
|
|
104
108
|
totalRuns: z.ZodNumber;
|
|
105
109
|
events: z.ZodArray<z.ZodString>;
|
|
106
110
|
kind: z.ZodLiteral<"event">;
|
|
@@ -139,6 +143,7 @@ export declare const taskListSchema: z.ZodObject<{
|
|
|
139
143
|
lastRunAt: z.ZodOptional<z.ZodString>;
|
|
140
144
|
ownedByViewer: z.ZodBoolean;
|
|
141
145
|
runsLast7Days: z.ZodNumber;
|
|
146
|
+
title: z.ZodString;
|
|
142
147
|
totalRuns: z.ZodNumber;
|
|
143
148
|
kind: z.ZodLiteral<"scheduled">;
|
|
144
149
|
nextRunAt: z.ZodOptional<z.ZodString>;
|
|
@@ -167,6 +172,7 @@ export declare const taskListSchema: z.ZodObject<{
|
|
|
167
172
|
lastRunAt: z.ZodOptional<z.ZodString>;
|
|
168
173
|
ownedByViewer: z.ZodBoolean;
|
|
169
174
|
runsLast7Days: z.ZodNumber;
|
|
175
|
+
title: z.ZodString;
|
|
170
176
|
totalRuns: z.ZodNumber;
|
|
171
177
|
events: z.ZodArray<z.ZodString>;
|
|
172
178
|
kind: z.ZodLiteral<"event">;
|
|
@@ -243,6 +249,7 @@ export declare const taskExecutionListSchema: z.ZodObject<{
|
|
|
243
249
|
lastRunAt: z.ZodOptional<z.ZodString>;
|
|
244
250
|
ownedByViewer: z.ZodBoolean;
|
|
245
251
|
runsLast7Days: z.ZodNumber;
|
|
252
|
+
title: z.ZodString;
|
|
246
253
|
totalRuns: z.ZodNumber;
|
|
247
254
|
kind: z.ZodLiteral<"scheduled">;
|
|
248
255
|
nextRunAt: z.ZodOptional<z.ZodString>;
|
|
@@ -271,6 +278,7 @@ export declare const taskExecutionListSchema: z.ZodObject<{
|
|
|
271
278
|
lastRunAt: z.ZodOptional<z.ZodString>;
|
|
272
279
|
ownedByViewer: z.ZodBoolean;
|
|
273
280
|
runsLast7Days: z.ZodNumber;
|
|
281
|
+
title: z.ZodString;
|
|
274
282
|
totalRuns: z.ZodNumber;
|
|
275
283
|
events: z.ZodArray<z.ZodString>;
|
|
276
284
|
kind: z.ZodLiteral<"event">;
|
package/dist/api/schema.js
CHANGED
package/dist/api.js
CHANGED
|
@@ -28,12 +28,12 @@ import {
|
|
|
28
28
|
taskExecutionListSchema,
|
|
29
29
|
taskListSchema,
|
|
30
30
|
taskParamsSchema
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OGQGJAD7.js";
|
|
32
32
|
import {
|
|
33
33
|
formatSlackConversationRedactedLabel,
|
|
34
34
|
readHealthReport,
|
|
35
35
|
resolveSlackConversationContextFromThreadId
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-2T5CHXRZ.js";
|
|
37
37
|
import {
|
|
38
38
|
buildSentryConversationUrl
|
|
39
39
|
} from "./chunk-4CODA7P5.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
readTaskExecutionStatusDays,
|
|
43
43
|
readTaskExecutionSummaries,
|
|
44
44
|
readTaskExecutions
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-A3XPSABC.js";
|
|
46
46
|
import {
|
|
47
47
|
healthReportSchema,
|
|
48
48
|
pluginOperationalReportFeedSchema,
|
|
@@ -61,10 +61,13 @@ import {
|
|
|
61
61
|
listPublicEventTasksForTeams,
|
|
62
62
|
listPublicScheduledTasksForTeams,
|
|
63
63
|
readStats
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-UFCA4EZB.js";
|
|
65
65
|
import {
|
|
66
66
|
parseSlackThreadId
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-OG5JQHKR.js";
|
|
68
|
+
import {
|
|
69
|
+
fallbackShortTitle
|
|
70
|
+
} from "./chunk-STX5WIH6.js";
|
|
68
71
|
import {
|
|
69
72
|
agentTurnUsageSchema,
|
|
70
73
|
hasAgentTurnUsage,
|
|
@@ -77,44 +80,44 @@ import {
|
|
|
77
80
|
listConversationAnnotations,
|
|
78
81
|
renderPluginConversationEvent,
|
|
79
82
|
resolveViewerUser
|
|
80
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-SNBTWIQO.js";
|
|
81
84
|
import {
|
|
82
85
|
getSlackClient,
|
|
83
86
|
withSlackRetries
|
|
84
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-I25V3XRN.js";
|
|
85
88
|
import {
|
|
86
89
|
decodeStoredConversationEvent,
|
|
87
90
|
getDb,
|
|
88
91
|
getSqlExecutor,
|
|
89
92
|
locationFromRow,
|
|
90
93
|
parseSessionSource
|
|
91
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-NAINBOZQ.js";
|
|
92
95
|
import {
|
|
93
96
|
juniorApiTokens,
|
|
94
97
|
juniorConversationEvents,
|
|
95
98
|
juniorConversations,
|
|
96
99
|
juniorIdentities,
|
|
97
100
|
juniorUsers
|
|
98
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-2KLMGRRQ.js";
|
|
99
102
|
import "./chunk-EM225ITJ.js";
|
|
100
|
-
import "./chunk-
|
|
101
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-M2T7MHQJ.js";
|
|
104
|
+
import "./chunk-7GVX5SOG.js";
|
|
102
105
|
import {
|
|
103
106
|
juniorDestinations
|
|
104
107
|
} from "./chunk-VFUK3X5B.js";
|
|
105
108
|
import {
|
|
106
109
|
canExposeConversationPayload
|
|
107
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-5YJBS4I5.js";
|
|
108
111
|
import "./chunk-HZF5P5UN.js";
|
|
109
112
|
import {
|
|
110
113
|
parseSlackChannelId,
|
|
111
114
|
parseSlackMessageTs,
|
|
112
115
|
parseSlackTeamId
|
|
113
116
|
} from "./chunk-F3B2YJ76.js";
|
|
114
|
-
import "./chunk-
|
|
117
|
+
import "./chunk-GZRWULXF.js";
|
|
115
118
|
import "./chunk-6GWA276C.js";
|
|
116
|
-
import "./chunk-
|
|
117
|
-
import "./chunk-
|
|
119
|
+
import "./chunk-WSWVWP2V.js";
|
|
120
|
+
import "./chunk-OB7ZJK7Y.js";
|
|
118
121
|
import "./chunk-MLKGABMK.js";
|
|
119
122
|
|
|
120
123
|
// src/api.ts
|
|
@@ -2175,7 +2178,7 @@ function readDescriptionText(home) {
|
|
|
2175
2178
|
}
|
|
2176
2179
|
}
|
|
2177
2180
|
async function readSkillReports() {
|
|
2178
|
-
const { discoverSkills } = await import("./skills-
|
|
2181
|
+
const { discoverSkills } = await import("./skills-MJWRME3A.js");
|
|
2179
2182
|
const skills = await discoverSkills();
|
|
2180
2183
|
return skillReportsSchema.parse(
|
|
2181
2184
|
skills.map((skill) => ({
|
|
@@ -2185,7 +2188,7 @@ async function readSkillReports() {
|
|
|
2185
2188
|
);
|
|
2186
2189
|
}
|
|
2187
2190
|
async function readPlugins() {
|
|
2188
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
2191
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-IAVW4W3B.js");
|
|
2189
2192
|
return pluginsSchema.parse(
|
|
2190
2193
|
pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
2191
2194
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
@@ -2198,7 +2201,7 @@ async function readPlugins() {
|
|
|
2198
2201
|
async function readRuntimeInfoReport() {
|
|
2199
2202
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
2200
2203
|
import("./discovery-GUFTFBTL.js"),
|
|
2201
|
-
import("./catalog-runtime-
|
|
2204
|
+
import("./catalog-runtime-IAVW4W3B.js"),
|
|
2202
2205
|
readPlugins(),
|
|
2203
2206
|
readSkillReports()
|
|
2204
2207
|
]);
|
|
@@ -2214,7 +2217,7 @@ async function readRuntimeInfoReport() {
|
|
|
2214
2217
|
}
|
|
2215
2218
|
async function readPluginOperationalReportFeed() {
|
|
2216
2219
|
const nowMs = Date.now();
|
|
2217
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
2220
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-2EP3QS47.js");
|
|
2218
2221
|
return pluginOperationalReportFeedSchema.parse({
|
|
2219
2222
|
source: "plugins",
|
|
2220
2223
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -3632,6 +3635,11 @@ function destinationKey(destination) {
|
|
|
3632
3635
|
function displayText(value, fallback) {
|
|
3633
3636
|
return value.trim() || fallback;
|
|
3634
3637
|
}
|
|
3638
|
+
function taskDisplayTitle(title, instruction, fallback) {
|
|
3639
|
+
const stored = title?.trim();
|
|
3640
|
+
if (stored) return stored;
|
|
3641
|
+
return fallbackShortTitle(instruction, fallback);
|
|
3642
|
+
}
|
|
3635
3643
|
async function destinationDetails(destinations) {
|
|
3636
3644
|
const selectors = new Map(
|
|
3637
3645
|
destinations.map((destination) => [
|
|
@@ -3684,6 +3692,7 @@ function scheduledTaskSummary(task, ownedByViewer, destination, stats, createdBy
|
|
|
3684
3692
|
throw new Error("Deleted scheduled tasks cannot enter the Tasks view");
|
|
3685
3693
|
}
|
|
3686
3694
|
const nextRunAtMs = task.runNowAtMs ?? task.nextRunAtMs;
|
|
3695
|
+
const instruction = displayText(task.task.text, "Untitled scheduled task");
|
|
3687
3696
|
return {
|
|
3688
3697
|
createdAt: new Date(task.createdAtMs).toISOString(),
|
|
3689
3698
|
createdBy: creatorLabel(task.createdBy),
|
|
@@ -3695,16 +3704,18 @@ function scheduledTaskSummary(task, ownedByViewer, destination, stats, createdBy
|
|
|
3695
3704
|
visibility: destination.visibility
|
|
3696
3705
|
},
|
|
3697
3706
|
id: task.id,
|
|
3698
|
-
instruction
|
|
3707
|
+
instruction,
|
|
3699
3708
|
kind: "scheduled",
|
|
3700
3709
|
...executionSummaryFields(stats),
|
|
3701
3710
|
...nextRunAtMs !== void 0 ? { nextRunAt: new Date(nextRunAtMs).toISOString() } : {},
|
|
3702
3711
|
ownedByViewer,
|
|
3703
3712
|
schedule: displayText(task.schedule.description, "Schedule unavailable"),
|
|
3704
|
-
status: task.status
|
|
3713
|
+
status: task.status,
|
|
3714
|
+
title: taskDisplayTitle(task.title, instruction, "Untitled scheduled task")
|
|
3705
3715
|
};
|
|
3706
3716
|
}
|
|
3707
3717
|
function eventTaskSummary(task, ownedByViewer, destination, stats, createdByEmail) {
|
|
3718
|
+
const instruction = task.task.text;
|
|
3708
3719
|
return {
|
|
3709
3720
|
createdAt: new Date(task.createdAtMs).toISOString(),
|
|
3710
3721
|
createdBy: creatorLabel(task.createdBy),
|
|
@@ -3717,12 +3728,13 @@ function eventTaskSummary(task, ownedByViewer, destination, stats, createdByEmai
|
|
|
3717
3728
|
},
|
|
3718
3729
|
events: task.trigger.events,
|
|
3719
3730
|
id: task.id,
|
|
3720
|
-
instruction
|
|
3731
|
+
instruction,
|
|
3721
3732
|
kind: "event",
|
|
3722
3733
|
...executionSummaryFields(stats),
|
|
3723
3734
|
ownedByViewer,
|
|
3724
3735
|
resource: `${task.trigger.label} \xB7 ${task.trigger.identifier}`,
|
|
3725
3736
|
source: task.trigger.namespace,
|
|
3737
|
+
title: taskDisplayTitle(task.title, instruction, "Untitled event task"),
|
|
3726
3738
|
triggerAvailable: eventTaskTriggerAvailable(
|
|
3727
3739
|
task,
|
|
3728
3740
|
getResourceEventCatalog()
|