@sentry/junior 0.134.0 → 0.135.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-HGXNYOOD.js → agent-hooks-EMXDAD2K.js} +9 -9
- package/dist/api/schema/task.d.ts +0 -24
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +1 -3
- package/dist/api.js +20 -71
- package/dist/app.js +23 -25
- package/dist/{catalog-runtime-P6QHU6XE.js → catalog-runtime-NVPT6HA5.js} +5 -5
- package/dist/chat/tasks/execution-stats.d.ts +1 -2
- package/dist/{chunk-KWGJG4HO.js → chunk-45DPXMI3.js} +3 -3
- package/dist/{chunk-FL466XX5.js → chunk-5EX36ZCD.js} +12 -12
- package/dist/{chunk-LKK4XMUV.js → chunk-5LD6EBH2.js} +1 -1
- package/dist/{chunk-VP6NCPRS.js → chunk-6UNZ5DHG.js} +1 -1
- package/dist/{chunk-S6DMTEOM.js → chunk-AGAHACF7.js} +2 -2
- package/dist/{chunk-NYWSCJVW.js → chunk-EBRB6ZBF.js} +1 -1
- package/dist/{chunk-52DIKFJV.js → chunk-EJT7EPP3.js} +6 -14
- package/dist/{chunk-U3ZI7CCW.js → chunk-HDGTBCQR.js} +1 -1
- package/dist/{chunk-MFERLE3G.js → chunk-IRTIVX42.js} +1 -1
- package/dist/{chunk-7GKQ7UIO.js → chunk-NGX2V4WY.js} +4 -4
- package/dist/{chunk-YNLQQ622.js → chunk-OSCF2BDE.js} +4 -4
- package/dist/{chunk-VGXJMECA.js → chunk-P2D7IW57.js} +7 -7
- package/dist/{chunk-6T3AYZT7.js → chunk-QQCEMMVN.js} +1 -1
- package/dist/{chunk-XG5PHKPM.js → chunk-RMI6OX52.js} +2 -2
- package/dist/{chunk-7UTBPDXK.js → chunk-TRZSM67C.js} +0 -13
- package/dist/{chunk-FDNAUM7X.js → chunk-TYEDZVRM.js} +1 -1
- package/dist/{chunk-QLEKAO7O.js → chunk-U37P4IIP.js} +13 -7
- package/dist/{chunk-VEGF62FV.js → chunk-UXYZPEWP.js} +1 -1
- package/dist/{chunk-VPYKNCTN.js → chunk-VZEKCQLD.js} +3 -3
- package/dist/{chunk-NF2TNZPD.js → chunk-Y6627MTY.js} +14 -14
- package/dist/{chunk-GSP5SMZJ.js → chunk-YPKPXLMS.js} +1 -1
- package/dist/chunk-Z67KVHMJ.js +233 -0
- package/dist/{chunk-TR6UEEYD.js → chunk-ZBQIA5NI.js} +5 -5
- package/dist/cli/chat.js +24 -24
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/{db-GFK4NHWJ.js → db-UA6OFL25.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-HUJLAQ5N.js → oauth-callback-server-IJDYBSTX.js} +17 -18
- package/dist/{runner-T77AFAH4.js → runner-K6GID4HN.js} +11 -12
- package/dist/{skills-3KUFJOOR.js → skills-KJVS753I.js} +6 -6
- package/dist/{validation-FMWDHKYU.js → validation-7VDJGK7K.js} +6 -6
- package/dist/version.js +1 -1
- package/migrations/0020_restrict_task_execution_kinds.sql +2 -0
- package/migrations/meta/0020_snapshot.json +1848 -0
- package/migrations/meta/_journal.json +8 -1
- package/package.json +4 -4
- package/dist/chat/tasks/registered.d.ts +0 -3
- package/dist/chunk-AS3I7OIL.js +0 -115
- package/dist/chunk-NOA34AJY.js +0 -122
|
@@ -11,19 +11,19 @@ import {
|
|
|
11
11
|
getPlugins,
|
|
12
12
|
setPlugins,
|
|
13
13
|
validatePlugins
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-ZBQIA5NI.js";
|
|
15
|
+
import "./chunk-VZEKCQLD.js";
|
|
16
|
+
import "./chunk-U37P4IIP.js";
|
|
17
|
+
import "./chunk-TYEDZVRM.js";
|
|
18
|
+
import "./chunk-RMI6OX52.js";
|
|
19
19
|
import "./chunk-VFUK3X5B.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-5LD6EBH2.js";
|
|
21
21
|
import "./chunk-HZF5P5UN.js";
|
|
22
22
|
import "./chunk-F3B2YJ76.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-QQCEMMVN.js";
|
|
24
24
|
import "./chunk-6GWA276C.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-HDGTBCQR.js";
|
|
26
|
+
import "./chunk-YPKPXLMS.js";
|
|
27
27
|
import "./chunk-MLKGABMK.js";
|
|
28
28
|
export {
|
|
29
29
|
PluginHookDeniedError,
|
|
@@ -106,41 +106,18 @@ export declare const taskSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
106
106
|
source: z.ZodString;
|
|
107
107
|
triggerAvailable: z.ZodBoolean;
|
|
108
108
|
}, z.core.$strict>], "kind">;
|
|
109
|
-
/** One registered plugin background task with run frequency and recency. */
|
|
110
|
-
export declare const registeredTaskSummarySchema: z.ZodObject<{
|
|
111
|
-
id: z.ZodString;
|
|
112
|
-
lastConversationId: z.ZodOptional<z.ZodString>;
|
|
113
|
-
lastRunAt: z.ZodOptional<z.ZodString>;
|
|
114
|
-
name: z.ZodString;
|
|
115
|
-
pluginDisplayName: z.ZodString;
|
|
116
|
-
pluginName: z.ZodString;
|
|
117
|
-
runsLast7Days: z.ZodNumber;
|
|
118
|
-
totalRuns: z.ZodNumber;
|
|
119
|
-
}, z.core.$strict>;
|
|
120
109
|
/** One UTC day of successful task executions stacked by task type. */
|
|
121
110
|
export declare const taskExecutionDaySchema: z.ZodObject<{
|
|
122
111
|
date: z.ZodString;
|
|
123
112
|
event: z.ZodNumber;
|
|
124
|
-
registered: z.ZodNumber;
|
|
125
113
|
scheduled: z.ZodNumber;
|
|
126
114
|
}, z.core.$strict>;
|
|
127
115
|
export declare const taskListSchema: z.ZodObject<{
|
|
128
116
|
executionDays: z.ZodArray<z.ZodObject<{
|
|
129
117
|
date: z.ZodString;
|
|
130
118
|
event: z.ZodNumber;
|
|
131
|
-
registered: z.ZodNumber;
|
|
132
119
|
scheduled: z.ZodNumber;
|
|
133
120
|
}, z.core.$strict>>;
|
|
134
|
-
registeredTasks: z.ZodArray<z.ZodObject<{
|
|
135
|
-
id: z.ZodString;
|
|
136
|
-
lastConversationId: z.ZodOptional<z.ZodString>;
|
|
137
|
-
lastRunAt: z.ZodOptional<z.ZodString>;
|
|
138
|
-
name: z.ZodString;
|
|
139
|
-
pluginDisplayName: z.ZodString;
|
|
140
|
-
pluginName: z.ZodString;
|
|
141
|
-
runsLast7Days: z.ZodNumber;
|
|
142
|
-
totalRuns: z.ZodNumber;
|
|
143
|
-
}, z.core.$strict>>;
|
|
144
121
|
tasks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
145
122
|
createdAt: z.ZodString;
|
|
146
123
|
createdBy: z.ZodString;
|
|
@@ -203,7 +180,6 @@ export declare const taskParamsSchema: z.ZodObject<{
|
|
|
203
180
|
scheduled: "scheduled";
|
|
204
181
|
}>;
|
|
205
182
|
}, z.core.$strict>;
|
|
206
|
-
export type RegisteredTaskSummary = z.output<typeof registeredTaskSummarySchema>;
|
|
207
183
|
export type TaskExecutionDay = z.output<typeof taskExecutionDaySchema>;
|
|
208
184
|
export type TaskSummary = z.output<typeof taskSummarySchema>;
|
|
209
185
|
export type TaskList = z.output<typeof taskListSchema>;
|
package/dist/api/schema.d.ts
CHANGED
|
@@ -10,8 +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,
|
|
14
|
-
export type {
|
|
13
|
+
export { eventTaskSummarySchema, scheduledTaskSummarySchema, taskListSchema, taskParamsSchema, taskSummarySchema, } from "./schema/task";
|
|
14
|
+
export type { TaskExecutionDay, TaskList, TaskSummary } from "./schema/task";
|
|
15
15
|
export { statSchema, statsReportSchema } from "./schema/stats";
|
|
16
16
|
export type { StatReport, StatsReport } from "./schema/stats";
|
|
17
17
|
export { healthReportSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, runtimeInfoReportSchema, skillReportSchema, skillReportsSchema, } from "../reporting-schema";
|
package/dist/api/schema.js
CHANGED
|
@@ -30,7 +30,6 @@ import {
|
|
|
30
30
|
personalTokenListSchema,
|
|
31
31
|
personalTokenMetadataSchema,
|
|
32
32
|
personalTokenParamsSchema,
|
|
33
|
-
registeredTaskSummarySchema,
|
|
34
33
|
revokePersonalTokenResponseSchema,
|
|
35
34
|
scheduledTaskSummarySchema,
|
|
36
35
|
statSchema,
|
|
@@ -38,7 +37,7 @@ import {
|
|
|
38
37
|
taskListSchema,
|
|
39
38
|
taskParamsSchema,
|
|
40
39
|
taskSummarySchema
|
|
41
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-TRZSM67C.js";
|
|
42
41
|
import {
|
|
43
42
|
healthReportSchema,
|
|
44
43
|
pluginOperationalReportFeedSchema,
|
|
@@ -93,7 +92,6 @@ export {
|
|
|
93
92
|
pluginPackageContentReportSchema,
|
|
94
93
|
pluginSchema,
|
|
95
94
|
pluginsSchema,
|
|
96
|
-
registeredTaskSummarySchema,
|
|
97
95
|
revokePersonalTokenResponseSchema,
|
|
98
96
|
runtimeInfoReportSchema,
|
|
99
97
|
scheduledTaskSummarySchema,
|
package/dist/api.js
CHANGED
|
@@ -27,19 +27,17 @@ import {
|
|
|
27
27
|
statsReportSchema,
|
|
28
28
|
taskListSchema,
|
|
29
29
|
taskParamsSchema
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-TRZSM67C.js";
|
|
31
31
|
import {
|
|
32
32
|
formatSlackConversationRedactedLabel,
|
|
33
33
|
readHealthReport,
|
|
34
|
+
readTaskExecutionDays,
|
|
35
|
+
readTaskExecutionSummaries,
|
|
34
36
|
resolveSlackConversationContextFromThreadId
|
|
35
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-Z67KVHMJ.js";
|
|
36
38
|
import {
|
|
37
39
|
buildSentryConversationUrl
|
|
38
40
|
} from "./chunk-4CODA7P5.js";
|
|
39
|
-
import {
|
|
40
|
-
readTaskExecutionDays,
|
|
41
|
-
readTaskExecutionSummaries
|
|
42
|
-
} from "./chunk-NOA34AJY.js";
|
|
43
41
|
import {
|
|
44
42
|
healthReportSchema,
|
|
45
43
|
pluginOperationalReportFeedSchema,
|
|
@@ -58,10 +56,10 @@ import {
|
|
|
58
56
|
listPublicEventTasksForTeams,
|
|
59
57
|
listPublicScheduledTasksForTeams,
|
|
60
58
|
readStats
|
|
61
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-45DPXMI3.js";
|
|
62
60
|
import {
|
|
63
61
|
parseSlackThreadId
|
|
64
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-IRTIVX42.js";
|
|
65
63
|
import {
|
|
66
64
|
agentTurnUsageSchema,
|
|
67
65
|
hasAgentTurnUsage,
|
|
@@ -74,38 +72,38 @@ import {
|
|
|
74
72
|
listConversationAnnotations,
|
|
75
73
|
renderPluginConversationEvent,
|
|
76
74
|
resolveViewerUser
|
|
77
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-ZBQIA5NI.js";
|
|
78
76
|
import {
|
|
79
77
|
decodeStoredConversationEvent,
|
|
80
78
|
getDb,
|
|
81
79
|
getSqlExecutor,
|
|
82
80
|
locationFromRow,
|
|
83
81
|
parseSessionSource
|
|
84
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-VZEKCQLD.js";
|
|
85
83
|
import {
|
|
86
84
|
juniorApiTokens,
|
|
87
85
|
juniorConversationEvents,
|
|
88
86
|
juniorConversations,
|
|
89
87
|
juniorIdentities,
|
|
90
88
|
juniorUsers
|
|
91
|
-
} from "./chunk-
|
|
92
|
-
import "./chunk-
|
|
93
|
-
import "./chunk-
|
|
89
|
+
} from "./chunk-U37P4IIP.js";
|
|
90
|
+
import "./chunk-TYEDZVRM.js";
|
|
91
|
+
import "./chunk-RMI6OX52.js";
|
|
94
92
|
import {
|
|
95
93
|
juniorDestinations
|
|
96
94
|
} from "./chunk-VFUK3X5B.js";
|
|
97
95
|
import {
|
|
98
96
|
canExposeConversationPayload
|
|
99
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-5LD6EBH2.js";
|
|
100
98
|
import "./chunk-HZF5P5UN.js";
|
|
101
99
|
import {
|
|
102
100
|
parseSlackChannelId,
|
|
103
101
|
parseSlackTeamId
|
|
104
102
|
} from "./chunk-F3B2YJ76.js";
|
|
105
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-QQCEMMVN.js";
|
|
106
104
|
import "./chunk-6GWA276C.js";
|
|
107
|
-
import "./chunk-
|
|
108
|
-
import "./chunk-
|
|
105
|
+
import "./chunk-HDGTBCQR.js";
|
|
106
|
+
import "./chunk-YPKPXLMS.js";
|
|
109
107
|
import "./chunk-MLKGABMK.js";
|
|
110
108
|
|
|
111
109
|
// src/api.ts
|
|
@@ -2031,7 +2029,7 @@ function readDescriptionText(home) {
|
|
|
2031
2029
|
}
|
|
2032
2030
|
}
|
|
2033
2031
|
async function readSkillReports() {
|
|
2034
|
-
const { discoverSkills } = await import("./skills-
|
|
2032
|
+
const { discoverSkills } = await import("./skills-KJVS753I.js");
|
|
2035
2033
|
const skills = await discoverSkills();
|
|
2036
2034
|
return skillReportsSchema.parse(
|
|
2037
2035
|
skills.map((skill) => ({
|
|
@@ -2041,7 +2039,7 @@ async function readSkillReports() {
|
|
|
2041
2039
|
);
|
|
2042
2040
|
}
|
|
2043
2041
|
async function readPlugins() {
|
|
2044
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
2042
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-NVPT6HA5.js");
|
|
2045
2043
|
return pluginsSchema.parse(
|
|
2046
2044
|
pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
2047
2045
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
@@ -2054,7 +2052,7 @@ async function readPlugins() {
|
|
|
2054
2052
|
async function readRuntimeInfoReport() {
|
|
2055
2053
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
2056
2054
|
import("./discovery-GUFTFBTL.js"),
|
|
2057
|
-
import("./catalog-runtime-
|
|
2055
|
+
import("./catalog-runtime-NVPT6HA5.js"),
|
|
2058
2056
|
readPlugins(),
|
|
2059
2057
|
readSkillReports()
|
|
2060
2058
|
]);
|
|
@@ -2070,7 +2068,7 @@ async function readRuntimeInfoReport() {
|
|
|
2070
2068
|
}
|
|
2071
2069
|
async function readPluginOperationalReportFeed() {
|
|
2072
2070
|
const nowMs = Date.now();
|
|
2073
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
2071
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-EMXDAD2K.js");
|
|
2074
2072
|
return pluginOperationalReportFeedSchema.parse({
|
|
2075
2073
|
source: "plugins",
|
|
2076
2074
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -3355,53 +3353,6 @@ import { Hono as Hono6 } from "hono";
|
|
|
3355
3353
|
// src/chat/tasks/read.ts
|
|
3356
3354
|
import { and as and14, eq as eq15, or as or3 } from "drizzle-orm";
|
|
3357
3355
|
|
|
3358
|
-
// src/chat/tasks/registered.ts
|
|
3359
|
-
async function readRegisteredTasks() {
|
|
3360
|
-
const [{ getPlugins: getPlugins2 }, { pluginCatalogRuntime }] = await Promise.all([
|
|
3361
|
-
import("./agent-hooks-HGXNYOOD.js"),
|
|
3362
|
-
import("./catalog-runtime-P6QHU6XE.js")
|
|
3363
|
-
]);
|
|
3364
|
-
const runtimePlugins = new Map(
|
|
3365
|
-
getPlugins2().map((plugin) => [plugin.manifest.name, plugin])
|
|
3366
|
-
);
|
|
3367
|
-
const providers = pluginCatalogRuntime.getProviders();
|
|
3368
|
-
const pluginTaskStats = new Map(
|
|
3369
|
-
await Promise.all(
|
|
3370
|
-
providers.map(
|
|
3371
|
-
async (plugin) => [
|
|
3372
|
-
plugin.manifest.name,
|
|
3373
|
-
await readTaskExecutionSummaries(
|
|
3374
|
-
"registered",
|
|
3375
|
-
plugin.manifest.name
|
|
3376
|
-
)
|
|
3377
|
-
]
|
|
3378
|
-
)
|
|
3379
|
-
)
|
|
3380
|
-
);
|
|
3381
|
-
return providers.flatMap((plugin) => {
|
|
3382
|
-
const taskNames = Object.keys(
|
|
3383
|
-
runtimePlugins.get(plugin.manifest.name)?.tasks ?? {}
|
|
3384
|
-
).sort((left, right) => left.localeCompare(right));
|
|
3385
|
-
return taskNames.map((name) => {
|
|
3386
|
-
const stats = pluginTaskStats.get(plugin.manifest.name)?.get(name);
|
|
3387
|
-
return {
|
|
3388
|
-
id: `${plugin.manifest.name}:${name}`,
|
|
3389
|
-
name,
|
|
3390
|
-
pluginDisplayName: plugin.manifest.displayName,
|
|
3391
|
-
pluginName: plugin.manifest.name,
|
|
3392
|
-
runsLast7Days: stats?.runsLast7Days ?? 0,
|
|
3393
|
-
totalRuns: stats?.totalRuns ?? 0,
|
|
3394
|
-
...stats?.lastConversationId ? { lastConversationId: stats.lastConversationId } : {},
|
|
3395
|
-
...stats?.lastExecutedAtMs ? {
|
|
3396
|
-
lastRunAt: new Date(stats.lastExecutedAtMs).toISOString()
|
|
3397
|
-
} : {}
|
|
3398
|
-
};
|
|
3399
|
-
});
|
|
3400
|
-
}).sort(
|
|
3401
|
-
(left, right) => left.pluginDisplayName.localeCompare(right.pluginDisplayName) || left.name.localeCompare(right.name)
|
|
3402
|
-
);
|
|
3403
|
-
}
|
|
3404
|
-
|
|
3405
3356
|
// src/chat/scheduled-tasks/personal.ts
|
|
3406
3357
|
import { z as z3 } from "zod";
|
|
3407
3358
|
var cursorSchema = z3.object({
|
|
@@ -3665,8 +3616,7 @@ async function readViewerTasks(user) {
|
|
|
3665
3616
|
const visible = selected.filter(
|
|
3666
3617
|
(candidate) => candidate.ownedByViewer || destinations.get(destinationKey(candidate.task.destination))?.visibility === "public"
|
|
3667
3618
|
);
|
|
3668
|
-
const [
|
|
3669
|
-
readRegisteredTasks(),
|
|
3619
|
+
const [executionDays, scheduledStats, eventStats] = await Promise.all([
|
|
3670
3620
|
readTaskExecutionDays(),
|
|
3671
3621
|
readTaskExecutionSummaries("scheduled", "junior"),
|
|
3672
3622
|
readTaskExecutionSummaries("event", "junior")
|
|
@@ -3720,7 +3670,6 @@ async function readViewerTasks(user) {
|
|
|
3720
3670
|
});
|
|
3721
3671
|
return {
|
|
3722
3672
|
executionDays,
|
|
3723
|
-
registeredTasks,
|
|
3724
3673
|
tasks,
|
|
3725
3674
|
truncated: ownedCandidates.length > TASK_LIST_LIMIT || publicCandidates.length > TASK_LIST_LIMIT
|
|
3726
3675
|
};
|
package/dist/app.js
CHANGED
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
startConversationWork,
|
|
51
51
|
startSlackProcessingReaction,
|
|
52
52
|
stripLeadingBotMention
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-5EX36ZCD.js";
|
|
54
54
|
import "./chunk-FA6POGLH.js";
|
|
55
55
|
import {
|
|
56
56
|
ConversationTurnLifecycleService,
|
|
@@ -65,17 +65,15 @@ import {
|
|
|
65
65
|
processPluginTask,
|
|
66
66
|
requireTurnFailureEventId,
|
|
67
67
|
scheduleSessionCompletedPluginTasks
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-EJT7EPP3.js";
|
|
69
69
|
import {
|
|
70
70
|
GET,
|
|
71
71
|
conversationVisibilityFromSlackChannelType,
|
|
72
|
+
recordTaskExecution,
|
|
72
73
|
resolveSlackChannelTypeFromMessage,
|
|
73
74
|
resolveSlackConversationContext
|
|
74
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-Z67KVHMJ.js";
|
|
75
76
|
import "./chunk-4CODA7P5.js";
|
|
76
|
-
import {
|
|
77
|
-
recordTaskExecution
|
|
78
|
-
} from "./chunk-NOA34AJY.js";
|
|
79
77
|
import "./chunk-UTL3MHPC.js";
|
|
80
78
|
import {
|
|
81
79
|
ConversationQueueMessageRejectedError,
|
|
@@ -93,7 +91,7 @@ import {
|
|
|
93
91
|
import {
|
|
94
92
|
validatePluginEgressCredentialHooks,
|
|
95
93
|
validatePluginRegistrations
|
|
96
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-EBRB6ZBF.js";
|
|
97
95
|
import {
|
|
98
96
|
defineJuniorPlugins,
|
|
99
97
|
pluginCatalogConfigFromEnv,
|
|
@@ -128,7 +126,7 @@ import {
|
|
|
128
126
|
setConfigDefaults,
|
|
129
127
|
shouldEmitDevAgentTrace,
|
|
130
128
|
shouldPropagateSandboxEgressTrace
|
|
131
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-Y6627MTY.js";
|
|
132
130
|
import "./chunk-DIB4GX3G.js";
|
|
133
131
|
import {
|
|
134
132
|
RetryableDeliveryError,
|
|
@@ -139,7 +137,7 @@ import {
|
|
|
139
137
|
formatProviderLabel,
|
|
140
138
|
postSlackMessage,
|
|
141
139
|
startOAuthFlow
|
|
142
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-P2D7IW57.js";
|
|
143
141
|
import {
|
|
144
142
|
ConversationTurnBoundaryError,
|
|
145
143
|
CooperativeTurnYieldError,
|
|
@@ -195,19 +193,19 @@ import {
|
|
|
195
193
|
trimTrailingAssistantMessages,
|
|
196
194
|
updateConversationStats,
|
|
197
195
|
upsertConversationMessage
|
|
198
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-NGX2V4WY.js";
|
|
199
197
|
import "./chunk-EPBBYMNE.js";
|
|
200
198
|
import {
|
|
201
199
|
getSandboxResourceConfig,
|
|
202
200
|
setSandboxResourceConfig
|
|
203
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-OSCF2BDE.js";
|
|
204
202
|
import {
|
|
205
203
|
createSchedulerSqlStore,
|
|
206
204
|
findMatchingEventTasks
|
|
207
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-45DPXMI3.js";
|
|
208
206
|
import {
|
|
209
207
|
parseSlackThreadId
|
|
210
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-IRTIVX42.js";
|
|
211
209
|
import "./chunk-CDQ4YIZM.js";
|
|
212
210
|
import "./chunk-PDO5BLNM.js";
|
|
213
211
|
import "./chunk-UIE3R5XU.js";
|
|
@@ -235,7 +233,7 @@ import {
|
|
|
235
233
|
verifyEventTaskCredentialSubject,
|
|
236
234
|
verifyScheduledTaskCredentialSubject,
|
|
237
235
|
verifySlackDirectCredentialSubject
|
|
238
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-ZBQIA5NI.js";
|
|
239
237
|
import {
|
|
240
238
|
contextProvenance,
|
|
241
239
|
createSlackDestination,
|
|
@@ -246,16 +244,16 @@ import {
|
|
|
246
244
|
instructionProvenanceFor,
|
|
247
245
|
requireSlackDestination,
|
|
248
246
|
withConversationEventLock
|
|
249
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-VZEKCQLD.js";
|
|
250
248
|
import {
|
|
251
249
|
juniorConversationEvents,
|
|
252
250
|
juniorConversations
|
|
253
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-U37P4IIP.js";
|
|
254
252
|
import {
|
|
255
253
|
acquireActiveLock,
|
|
256
254
|
getStateAdapter,
|
|
257
255
|
sleep
|
|
258
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-TYEDZVRM.js";
|
|
259
257
|
import {
|
|
260
258
|
STANDARD_MODEL_PROFILE,
|
|
261
259
|
botConfig,
|
|
@@ -273,16 +271,16 @@ import {
|
|
|
273
271
|
modelIdForProfile,
|
|
274
272
|
setSlackReactionConfig,
|
|
275
273
|
standardModelId
|
|
276
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-RMI6OX52.js";
|
|
277
275
|
import {
|
|
278
276
|
juniorDestinations
|
|
279
277
|
} from "./chunk-VFUK3X5B.js";
|
|
280
|
-
import "./chunk-
|
|
281
|
-
import "./chunk-
|
|
278
|
+
import "./chunk-5LD6EBH2.js";
|
|
279
|
+
import "./chunk-AGAHACF7.js";
|
|
282
280
|
import {
|
|
283
281
|
pluginCatalogRuntime
|
|
284
|
-
} from "./chunk-
|
|
285
|
-
import "./chunk-
|
|
282
|
+
} from "./chunk-UXYZPEWP.js";
|
|
283
|
+
import "./chunk-6UNZ5DHG.js";
|
|
286
284
|
import {
|
|
287
285
|
credentialSubjectSchema
|
|
288
286
|
} from "./chunk-77VDLF3Z.js";
|
|
@@ -314,7 +312,7 @@ import {
|
|
|
314
312
|
withContext,
|
|
315
313
|
withLogContext,
|
|
316
314
|
withSpan
|
|
317
|
-
} from "./chunk-
|
|
315
|
+
} from "./chunk-QQCEMMVN.js";
|
|
318
316
|
import {
|
|
319
317
|
continueTrace
|
|
320
318
|
} from "./chunk-6GWA276C.js";
|
|
@@ -322,10 +320,10 @@ import "./chunk-OOUNJNMR.js";
|
|
|
322
320
|
import "./chunk-H4HBKISO.js";
|
|
323
321
|
import {
|
|
324
322
|
JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE
|
|
325
|
-
} from "./chunk-
|
|
323
|
+
} from "./chunk-HDGTBCQR.js";
|
|
326
324
|
import {
|
|
327
325
|
JUNIOR_VERSION
|
|
328
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-YPKPXLMS.js";
|
|
329
327
|
import "./chunk-MLKGABMK.js";
|
|
330
328
|
|
|
331
329
|
// src/app.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-UXYZPEWP.js";
|
|
4
|
+
import "./chunk-6UNZ5DHG.js";
|
|
5
5
|
import "./chunk-77VDLF3Z.js";
|
|
6
6
|
import "./chunk-HZF5P5UN.js";
|
|
7
7
|
import "./chunk-F3B2YJ76.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-QQCEMMVN.js";
|
|
9
9
|
import "./chunk-6GWA276C.js";
|
|
10
10
|
import "./chunk-OOUNJNMR.js";
|
|
11
11
|
import "./chunk-H4HBKISO.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-HDGTBCQR.js";
|
|
13
|
+
import "./chunk-YPKPXLMS.js";
|
|
14
14
|
import "./chunk-MLKGABMK.js";
|
|
15
15
|
export {
|
|
16
16
|
pluginCatalogRuntime
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export declare const TASK_EXECUTION_TYPES: readonly ["
|
|
1
|
+
export declare const TASK_EXECUTION_TYPES: readonly ["scheduled", "event"];
|
|
2
2
|
export type TaskExecutionType = (typeof TASK_EXECUTION_TYPES)[number];
|
|
3
3
|
export type TaskExecutionDay = {
|
|
4
4
|
date: string;
|
|
5
5
|
event: number;
|
|
6
|
-
registered: number;
|
|
7
6
|
scheduled: number;
|
|
8
7
|
};
|
|
9
8
|
export type TaskExecutionSummary = {
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
canRouteResourceEvents,
|
|
6
6
|
getPlugins
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZBQIA5NI.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VZEKCQLD.js";
|
|
11
11
|
import {
|
|
12
12
|
juniorEventTasks,
|
|
13
13
|
juniorSchedulerRuns,
|
|
14
14
|
juniorSchedulerTasks,
|
|
15
15
|
juniorStats
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-U37P4IIP.js";
|
|
17
17
|
import {
|
|
18
18
|
juniorDestinations
|
|
19
19
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
persistAuthPauseTurnState,
|
|
14
14
|
requireTurnFailureEventId,
|
|
15
15
|
scheduleSessionCompletedPluginTasks
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EJT7EPP3.js";
|
|
17
17
|
import {
|
|
18
18
|
buildSentryConversationUrl
|
|
19
19
|
} from "./chunk-4CODA7P5.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
resolveBaseUrl,
|
|
41
41
|
resolvePluginOAuthAccount,
|
|
42
42
|
truncateStatusText
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-P2D7IW57.js";
|
|
44
44
|
import {
|
|
45
45
|
JUNIOR_THREAD_STATE_TTL_MS,
|
|
46
46
|
TurnSliceLimitExceededError,
|
|
@@ -72,13 +72,13 @@ import {
|
|
|
72
72
|
recordDeliveredAssistantMessage,
|
|
73
73
|
turnHasReply,
|
|
74
74
|
updateConversationStats
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-NGX2V4WY.js";
|
|
76
76
|
import {
|
|
77
77
|
parseSlackThreadId,
|
|
78
78
|
readSlackRawMessageContext,
|
|
79
79
|
resolveSlackChannelIdFromMessage,
|
|
80
80
|
resolveSlackChannelIdFromThreadId
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-IRTIVX42.js";
|
|
82
82
|
import {
|
|
83
83
|
SlackActionError,
|
|
84
84
|
getDashboardConversationLink,
|
|
@@ -87,19 +87,19 @@ import {
|
|
|
87
87
|
getSlackClient,
|
|
88
88
|
isDmChannel,
|
|
89
89
|
normalizeSlackConversationId
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-ZBQIA5NI.js";
|
|
91
91
|
import {
|
|
92
92
|
getConversationEventStore,
|
|
93
93
|
getConversationStore,
|
|
94
94
|
parseDestination,
|
|
95
95
|
requireSlackDestination,
|
|
96
96
|
sameDestination
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-VZEKCQLD.js";
|
|
98
98
|
import {
|
|
99
99
|
acquireActiveLock,
|
|
100
100
|
getDefaultRedisStateAdapterFor,
|
|
101
101
|
getStateAdapter
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-TYEDZVRM.js";
|
|
103
103
|
import {
|
|
104
104
|
FUNCTION_TIMEOUT_BUFFER_SECONDS,
|
|
105
105
|
botConfig,
|
|
@@ -108,18 +108,18 @@ import {
|
|
|
108
108
|
getRuntimeMetadata,
|
|
109
109
|
normalizeSlackEmojiName,
|
|
110
110
|
standardModelId
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-RMI6OX52.js";
|
|
112
112
|
import {
|
|
113
113
|
discoverSkills
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-AGAHACF7.js";
|
|
115
115
|
import {
|
|
116
116
|
pluginCatalogRuntime
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-UXYZPEWP.js";
|
|
118
118
|
import {
|
|
119
119
|
buildOAuthTokenRequest,
|
|
120
120
|
hasRequiredOAuthScope,
|
|
121
121
|
parseOAuthTokenResponse
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-6UNZ5DHG.js";
|
|
123
123
|
import {
|
|
124
124
|
createSlackResumeActor,
|
|
125
125
|
isUserActor,
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
toOptionalNumber,
|
|
139
139
|
toOptionalString,
|
|
140
140
|
withLogContext
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-QQCEMMVN.js";
|
|
142
142
|
import {
|
|
143
143
|
homeDir
|
|
144
144
|
} from "./chunk-H4HBKISO.js";
|