@sentry/junior 0.134.0 → 0.136.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-TQSI2FKN.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 +26 -25
- package/dist/{catalog-runtime-P6QHU6XE.js → catalog-runtime-VXL5EO2X.js} +5 -5
- package/dist/chat/tasks/execution-stats.d.ts +1 -2
- package/dist/{chunk-NYWSCJVW.js → chunk-2E5D3Z3U.js} +1 -1
- package/dist/{chunk-NF2TNZPD.js → chunk-3NLQQ7DC.js} +14 -14
- package/dist/{chunk-7GKQ7UIO.js → chunk-3TOCJOYJ.js} +4 -4
- package/dist/{chunk-MFERLE3G.js → chunk-3UUDZPO5.js} +1 -1
- package/dist/{chunk-VPYKNCTN.js → chunk-4ULSYOL6.js} +3 -3
- package/dist/{chunk-VP6NCPRS.js → chunk-4VDQGQHY.js} +1 -1
- package/dist/{chunk-FDNAUM7X.js → chunk-5I3MXBNV.js} +1 -1
- package/dist/chunk-6ABWAONM.js +233 -0
- package/dist/{chunk-TR6UEEYD.js → chunk-76Y5A57F.js} +5 -5
- package/dist/{chunk-6T3AYZT7.js → chunk-BECYUPSQ.js} +1 -1
- package/dist/{chunk-QLEKAO7O.js → chunk-BTBTQEXF.js} +13 -7
- package/dist/{chunk-KWGJG4HO.js → chunk-CGZ6O74P.js} +3 -3
- package/dist/{chunk-YNLQQ622.js → chunk-CTKCGKWB.js} +4 -4
- package/dist/{chunk-GSP5SMZJ.js → chunk-DO37VD6O.js} +1 -1
- package/dist/{chunk-VGXJMECA.js → chunk-HEGTNY2S.js} +7 -7
- package/dist/{chunk-VEGF62FV.js → chunk-IUSO5QUB.js} +1 -1
- package/dist/{chunk-LKK4XMUV.js → chunk-KRUSDASP.js} +1 -1
- package/dist/{chunk-S6DMTEOM.js → chunk-QCX3TRIM.js} +2 -2
- package/dist/{chunk-XG5PHKPM.js → chunk-QE4DN7JQ.js} +2 -2
- package/dist/{chunk-7UTBPDXK.js → chunk-TRZSM67C.js} +0 -13
- package/dist/{chunk-52DIKFJV.js → chunk-UIAZI7UJ.js} +6 -14
- package/dist/{chunk-FL466XX5.js → chunk-XRC4TXJ4.js} +12 -12
- package/dist/{chunk-U3ZI7CCW.js → chunk-ZIYDJIWQ.js} +1 -1
- 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-NN6T27OO.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-VJQ27ITN.js} +17 -18
- package/dist/{runner-T77AFAH4.js → runner-ZHI3GQII.js} +11 -12
- package/dist/{skills-3KUFJOOR.js → skills-YT5ZSNAW.js} +6 -6
- package/dist/{validation-FMWDHKYU.js → validation-EKUNT5IY.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 +5 -5
- 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-76Y5A57F.js";
|
|
15
|
+
import "./chunk-4ULSYOL6.js";
|
|
16
|
+
import "./chunk-BTBTQEXF.js";
|
|
17
|
+
import "./chunk-5I3MXBNV.js";
|
|
18
|
+
import "./chunk-QE4DN7JQ.js";
|
|
19
19
|
import "./chunk-VFUK3X5B.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-KRUSDASP.js";
|
|
21
21
|
import "./chunk-HZF5P5UN.js";
|
|
22
22
|
import "./chunk-F3B2YJ76.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-BECYUPSQ.js";
|
|
24
24
|
import "./chunk-6GWA276C.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-ZIYDJIWQ.js";
|
|
26
|
+
import "./chunk-DO37VD6O.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-6ABWAONM.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-CGZ6O74P.js";
|
|
62
60
|
import {
|
|
63
61
|
parseSlackThreadId
|
|
64
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-3UUDZPO5.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-76Y5A57F.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-4ULSYOL6.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-BTBTQEXF.js";
|
|
90
|
+
import "./chunk-5I3MXBNV.js";
|
|
91
|
+
import "./chunk-QE4DN7JQ.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-KRUSDASP.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-BECYUPSQ.js";
|
|
106
104
|
import "./chunk-6GWA276C.js";
|
|
107
|
-
import "./chunk-
|
|
108
|
-
import "./chunk-
|
|
105
|
+
import "./chunk-ZIYDJIWQ.js";
|
|
106
|
+
import "./chunk-DO37VD6O.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-YT5ZSNAW.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-VXL5EO2X.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-VXL5EO2X.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-TQSI2FKN.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-XRC4TXJ4.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-UIAZI7UJ.js";
|
|
69
69
|
import {
|
|
70
70
|
GET,
|
|
71
71
|
conversationVisibilityFromSlackChannelType,
|
|
72
|
+
recordTaskExecution,
|
|
72
73
|
resolveSlackChannelTypeFromMessage,
|
|
73
74
|
resolveSlackConversationContext
|
|
74
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-6ABWAONM.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-2E5D3Z3U.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-3NLQQ7DC.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-HEGTNY2S.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-3TOCJOYJ.js";
|
|
199
197
|
import "./chunk-EPBBYMNE.js";
|
|
200
198
|
import {
|
|
201
199
|
getSandboxResourceConfig,
|
|
202
200
|
setSandboxResourceConfig
|
|
203
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-CTKCGKWB.js";
|
|
204
202
|
import {
|
|
205
203
|
createSchedulerSqlStore,
|
|
206
204
|
findMatchingEventTasks
|
|
207
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-CGZ6O74P.js";
|
|
208
206
|
import {
|
|
209
207
|
parseSlackThreadId
|
|
210
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-3UUDZPO5.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-76Y5A57F.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-4ULSYOL6.js";
|
|
250
248
|
import {
|
|
251
249
|
juniorConversationEvents,
|
|
252
250
|
juniorConversations
|
|
253
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-BTBTQEXF.js";
|
|
254
252
|
import {
|
|
255
253
|
acquireActiveLock,
|
|
256
254
|
getStateAdapter,
|
|
257
255
|
sleep
|
|
258
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-5I3MXBNV.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-QE4DN7JQ.js";
|
|
277
275
|
import {
|
|
278
276
|
juniorDestinations
|
|
279
277
|
} from "./chunk-VFUK3X5B.js";
|
|
280
|
-
import "./chunk-
|
|
281
|
-
import "./chunk-
|
|
278
|
+
import "./chunk-KRUSDASP.js";
|
|
279
|
+
import "./chunk-QCX3TRIM.js";
|
|
282
280
|
import {
|
|
283
281
|
pluginCatalogRuntime
|
|
284
|
-
} from "./chunk-
|
|
285
|
-
import "./chunk-
|
|
282
|
+
} from "./chunk-IUSO5QUB.js";
|
|
283
|
+
import "./chunk-4VDQGQHY.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-BECYUPSQ.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-ZIYDJIWQ.js";
|
|
326
324
|
import {
|
|
327
325
|
JUNIOR_VERSION
|
|
328
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-DO37VD6O.js";
|
|
329
327
|
import "./chunk-MLKGABMK.js";
|
|
330
328
|
|
|
331
329
|
// src/app.ts
|
|
@@ -9556,6 +9554,9 @@ function dashboardHostRoutePaths(dashboard) {
|
|
|
9556
9554
|
peoplePath,
|
|
9557
9555
|
`${peoplePath}/*`,
|
|
9558
9556
|
pagePath("tasks"),
|
|
9557
|
+
`${pagePath("tasks")}/*`,
|
|
9558
|
+
pagePath("memories"),
|
|
9559
|
+
`${pagePath("memories")}/*`,
|
|
9559
9560
|
pagePath("system"),
|
|
9560
9561
|
`${pagePath("system")}/*`,
|
|
9561
9562
|
pagePath("plugins"),
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IUSO5QUB.js";
|
|
4
|
+
import "./chunk-4VDQGQHY.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-BECYUPSQ.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-ZIYDJIWQ.js";
|
|
13
|
+
import "./chunk-DO37VD6O.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 = {
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
toMcpProviderError,
|
|
31
31
|
toolInvocationDestination,
|
|
32
32
|
uploadFilesToConversation
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-HEGTNY2S.js";
|
|
34
34
|
import {
|
|
35
35
|
AGENTS_REMOVAL_NOTICE,
|
|
36
36
|
AGENTS_REPLACEMENT_NOTICE,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
trimTrailingAssistantMessages,
|
|
99
99
|
truncateText,
|
|
100
100
|
updateConversationStats
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-3TOCJOYJ.js";
|
|
102
102
|
import {
|
|
103
103
|
parseSandboxEgressAuthRequiredSignal,
|
|
104
104
|
parseSandboxEgressPermissionDeniedSignal,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
runNonInteractiveCommand,
|
|
124
124
|
throwSandboxOperationError,
|
|
125
125
|
wrapSandboxSetupError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-CTKCGKWB.js";
|
|
127
127
|
import {
|
|
128
128
|
SCHEDULED_TASK_SYSTEM_ACTOR,
|
|
129
129
|
compactEventTask,
|
|
@@ -154,10 +154,10 @@ import {
|
|
|
154
154
|
resolveLocalScheduleAtMs,
|
|
155
155
|
saveEventTask,
|
|
156
156
|
writableEventTask
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-CGZ6O74P.js";
|
|
158
158
|
import {
|
|
159
159
|
parseSlackThreadId
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-3UUDZPO5.js";
|
|
161
161
|
import {
|
|
162
162
|
ToolInputError,
|
|
163
163
|
addAgentTurnUsage,
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
readActorIdentity,
|
|
182
182
|
resolveChannelCapabilities,
|
|
183
183
|
withSlackRetries
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-76Y5A57F.js";
|
|
185
185
|
import {
|
|
186
186
|
KNOWN_CONVERSATION_EVENT_TYPES,
|
|
187
187
|
contextProvenance,
|
|
@@ -192,7 +192,7 @@ import {
|
|
|
192
192
|
instructionActors,
|
|
193
193
|
instructionProvenanceFor,
|
|
194
194
|
sameActorIdentity
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-4ULSYOL6.js";
|
|
196
196
|
import {
|
|
197
197
|
SANDBOX_DATA_ROOT,
|
|
198
198
|
SANDBOX_SKILLS_ROOT,
|
|
@@ -202,7 +202,7 @@ import {
|
|
|
202
202
|
sandboxSkillFile,
|
|
203
203
|
sandboxSkillPathResolution,
|
|
204
204
|
sleep
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-5I3MXBNV.js";
|
|
206
206
|
import {
|
|
207
207
|
ACTIVE_TURN_COMPACTION_SUMMARY_PREFIX,
|
|
208
208
|
COMPACTION_SUMMARY_PREFIX,
|
|
@@ -236,7 +236,7 @@ import {
|
|
|
236
236
|
renderCurrentInstruction,
|
|
237
237
|
resolveGatewayModel,
|
|
238
238
|
unwrapCurrentInstruction
|
|
239
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-QE4DN7JQ.js";
|
|
240
240
|
import {
|
|
241
241
|
canExposeConversationPayload,
|
|
242
242
|
resolveConversationPrivacy,
|
|
@@ -246,16 +246,16 @@ import {
|
|
|
246
246
|
toGenAiMessagesTraceAttributes,
|
|
247
247
|
toGenAiPayloadMetadata,
|
|
248
248
|
toGenAiPayloadTraceAttributes
|
|
249
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-KRUSDASP.js";
|
|
250
250
|
import {
|
|
251
251
|
discoverSkills,
|
|
252
252
|
findSkillByName,
|
|
253
253
|
loadSkillsByName,
|
|
254
254
|
parseSkillInvocation
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-QCX3TRIM.js";
|
|
256
256
|
import {
|
|
257
257
|
pluginCatalogRuntime
|
|
258
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-IUSO5QUB.js";
|
|
259
259
|
import {
|
|
260
260
|
CredentialUnavailableError,
|
|
261
261
|
OAuthProviderError,
|
|
@@ -263,7 +263,7 @@ import {
|
|
|
263
263
|
getOAuthProviderErrorAttributes,
|
|
264
264
|
resolveAuthTokenPlaceholder,
|
|
265
265
|
resolvePluginCommandEnv
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-4VDQGQHY.js";
|
|
267
267
|
import {
|
|
268
268
|
credentialUserSubjectId
|
|
269
269
|
} from "./chunk-77VDLF3Z.js";
|
|
@@ -292,7 +292,7 @@ import {
|
|
|
292
292
|
summarizeMessageText,
|
|
293
293
|
withLogContext,
|
|
294
294
|
withSpan
|
|
295
|
-
} from "./chunk-
|
|
295
|
+
} from "./chunk-BECYUPSQ.js";
|
|
296
296
|
import {
|
|
297
297
|
startInactiveSpan,
|
|
298
298
|
withActiveSpan
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
instructionProvenanceFor,
|
|
19
19
|
sanitizePostgresJson,
|
|
20
20
|
withConversationEventLock
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4ULSYOL6.js";
|
|
22
22
|
import {
|
|
23
23
|
SANDBOX_WORKSPACE_ROOT,
|
|
24
24
|
getStateAdapter,
|
|
25
25
|
sleep
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-5I3MXBNV.js";
|
|
27
27
|
import {
|
|
28
28
|
botConfig,
|
|
29
29
|
escapeXml,
|
|
30
30
|
resolveGatewayModel,
|
|
31
31
|
unwrapCurrentInstruction
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QE4DN7JQ.js";
|
|
33
33
|
import {
|
|
34
34
|
toStoredSlackActor
|
|
35
35
|
} from "./chunk-HZF5P5UN.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
setSpanAttributes,
|
|
45
45
|
toOptionalNumber,
|
|
46
46
|
toOptionalString
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-BECYUPSQ.js";
|
|
48
48
|
|
|
49
49
|
// src/chat/turn-context-tag.ts
|
|
50
50
|
var TURN_CONTEXT_TAG = "runtime-turn-context";
|