@sentry/junior 0.173.0 → 0.175.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-TKE6PDE3.js → agent-hooks-DOXAOEHI.js} +13 -12
- package/dist/api/conversations/list.d.ts +3 -1
- package/dist/api/schema/conversation.d.ts +4 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +34 -32
- package/dist/app.js +50 -36
- package/dist/{catalog-runtime-247LR4L4.js → catalog-runtime-OTFZT3R2.js} +5 -5
- package/dist/chat/resource-events/catalog.d.ts +2 -0
- package/dist/chat/resource-events/notification.d.ts +1 -1
- package/dist/chat/resource-events/tool-support.d.ts +4 -0
- package/dist/{chunk-54LKZSAW.js → chunk-2AEUOTQL.js} +1 -1
- package/dist/{chunk-HWLN37DJ.js → chunk-2WCXOLNX.js} +2 -2
- package/dist/{chunk-YY3XHPFQ.js → chunk-2XWTVTLS.js} +1 -1
- package/dist/{chunk-UDSVV7MC.js → chunk-46BUAC7H.js} +3 -3
- package/dist/{chunk-SZ6HE45O.js → chunk-4CVWSS6Q.js} +1 -1
- package/dist/{chunk-VKBONIMW.js → chunk-6KKCC7CG.js} +4 -4
- package/dist/{chunk-TZIZCB6V.js → chunk-CSV5XEQN.js} +1 -1
- package/dist/{chunk-KUZQEAZB.js → chunk-DSZNZ7AW.js} +472 -903
- package/dist/{chunk-GBPGKJZF.js → chunk-DVWHUWTB.js} +12 -12
- package/dist/{chunk-UTMP45YM.js → chunk-ELEAIRTG.js} +2 -1
- package/dist/{chunk-MAE6RNYQ.js → chunk-GBDCHVNI.js} +5 -5
- package/dist/{chunk-NDJ5XLSR.js → chunk-GLYH4OBP.js} +1 -1
- package/dist/{chunk-FAMC3HC7.js → chunk-HHAR5IDU.js} +6 -6
- package/dist/{chunk-2XUT3VLE.js → chunk-HVI3ZLMV.js} +1 -1
- package/dist/{chunk-VEZ4VIJX.js → chunk-I7F7WVUW.js} +98 -96
- package/dist/{chunk-VQTMPROS.js → chunk-JLHYNMXZ.js} +6 -6
- package/dist/{chunk-D3XNZ5GJ.js → chunk-K4SGLRWX.js} +505 -11
- package/dist/{chunk-EHE45OBY.js → chunk-KGKKBFOI.js} +1 -1
- package/dist/{chunk-KSQ2BFUK.js → chunk-NBE6DME6.js} +1 -1
- package/dist/{chunk-33SJGQG6.js → chunk-PQV33DEV.js} +4 -4
- package/dist/{chunk-FWM663LY.js → chunk-RAV6B2TQ.js} +2 -2
- package/dist/{chunk-C4I6OV7U.js → chunk-RG6JSBDJ.js} +1 -1
- package/dist/{chunk-3J7WUHKY.js → chunk-RMANRIHC.js} +5 -5
- package/dist/{chunk-OWJJB5DQ.js → chunk-T3RN2B3T.js} +12 -12
- package/dist/{chunk-NMUEJHPW.js → chunk-TYSWSX3M.js} +8 -8
- package/dist/{chunk-A3U4JTWA.js → chunk-UQURHDWJ.js} +4 -4
- package/dist/{chunk-YJOBW6ON.js → chunk-V7QS3Z53.js} +17 -17
- package/dist/{chunk-A7TBEENH.js → chunk-VMVTHLJM.js} +1 -1
- package/dist/{chunk-Q2457VTU.js → chunk-WHKREAVX.js} +1 -1
- package/dist/{chunk-6PHOLDQI.js → chunk-WNQBHYAQ.js} +1 -1
- package/dist/{chunk-7PNMY4NE.js → chunk-XL24YNNO.js} +1 -1
- package/dist/{chunk-FMM3B64Q.js → chunk-YMBCD6FB.js} +8 -16
- package/dist/{chunk-WVFTUTAK.js → chunk-YUUMDYLN.js} +1 -1
- package/dist/cli/chat.js +31 -31
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +14 -13
- package/dist/cli/snapshot-create.js +10 -10
- package/dist/cli/upgrade.js +7 -7
- package/dist/{db-DN7KYTNR.js → db-B7NVPW7Y.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-5HSUJNR4.js → oauth-callback-server-TMTQK74Z.js} +24 -24
- package/dist/{runner-62H3GPAH.js → runner-HROVFS4C.js} +16 -16
- package/dist/{skills-76ZK6SH7.js → skills-77LC6PFU.js} +6 -6
- package/dist/spawn-JBWVVXIL.js +37 -0
- package/dist/{validation-6HZIOXZG.js → validation-EL4J4FYB.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-ZWH4KG3U.js → work-5UQRXUOD.js} +19 -19
- package/dist/worker-3FBM4GWV.js +24 -0
- package/package.json +5 -5
- package/dist/spawn-UOEYRXD7.js +0 -37
- package/dist/worker-LB7JCNA5.js +0 -24
|
@@ -13,24 +13,25 @@ import {
|
|
|
13
13
|
getPlugins,
|
|
14
14
|
setPlugins,
|
|
15
15
|
validatePlugins
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-K4SGLRWX.js";
|
|
17
|
+
import "./chunk-3Y47VMHV.js";
|
|
18
|
+
import "./chunk-46BUAC7H.js";
|
|
19
|
+
import "./chunk-RG6JSBDJ.js";
|
|
20
|
+
import "./chunk-YUUMDYLN.js";
|
|
21
|
+
import "./chunk-CSV5XEQN.js";
|
|
22
|
+
import "./chunk-RAV6B2TQ.js";
|
|
22
23
|
import "./chunk-VFUK3X5B.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-NBE6DME6.js";
|
|
25
|
+
import "./chunk-XL24YNNO.js";
|
|
26
|
+
import "./chunk-2AEUOTQL.js";
|
|
26
27
|
import "./chunk-CGA4ERJ5.js";
|
|
27
28
|
import "./chunk-M63DETLL.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-VMVTHLJM.js";
|
|
29
30
|
import "./chunk-6GWA276C.js";
|
|
30
31
|
import "./chunk-OOUNJNMR.js";
|
|
31
32
|
import "./chunk-H4HBKISO.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-HVI3ZLMV.js";
|
|
34
|
+
import "./chunk-4CVWSS6Q.js";
|
|
34
35
|
import "./chunk-MLKGABMK.js";
|
|
35
36
|
export {
|
|
36
37
|
PluginHookDeniedError,
|
|
@@ -9,7 +9,7 @@ type ConversationFeedMembership = {
|
|
|
9
9
|
kind: "actorEmail";
|
|
10
10
|
email: string;
|
|
11
11
|
};
|
|
12
|
-
declare function conversationRows(db: JuniorDatabase, limit: number, filter?: ConversationFeedMembership): Promise<{
|
|
12
|
+
declare function conversationRows(db: JuniorDatabase, limit: number, status: "active" | "archived", filter?: ConversationFeedMembership): Promise<{
|
|
13
13
|
conversation: {
|
|
14
14
|
conversationId: string;
|
|
15
15
|
schemaVersion: number;
|
|
@@ -124,6 +124,7 @@ export declare function readConversationRecordFromSql(conversationId: string): P
|
|
|
124
124
|
export declare function readConversationFeedFromSql(options?: {
|
|
125
125
|
actorEmail?: string;
|
|
126
126
|
limit?: number;
|
|
127
|
+
status?: "active" | "archived";
|
|
127
128
|
viewer?: User;
|
|
128
129
|
}): Promise<ConversationFeed>;
|
|
129
130
|
/**
|
|
@@ -132,6 +133,7 @@ export declare function readConversationFeedFromSql(options?: {
|
|
|
132
133
|
*/
|
|
133
134
|
export declare function readConversationFeed(options?: {
|
|
134
135
|
actorEmail?: string;
|
|
136
|
+
status?: "active" | "archived";
|
|
135
137
|
viewer?: User;
|
|
136
138
|
}): Promise<ConversationFeed>;
|
|
137
139
|
export {};
|
|
@@ -48,6 +48,10 @@ export declare const conversationEventsQuerySchema: z.ZodObject<{
|
|
|
48
48
|
}, z.core.$strict>;
|
|
49
49
|
export declare const conversationFeedQuerySchema: z.ZodObject<{
|
|
50
50
|
actorEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
51
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
52
|
+
active: "active";
|
|
53
|
+
archived: "archived";
|
|
54
|
+
}>>;
|
|
51
55
|
}, z.core.$strict>;
|
|
52
56
|
export declare const archiveConversationBodySchema: z.ZodObject<{
|
|
53
57
|
archived: z.ZodBoolean;
|
package/dist/api/schema.js
CHANGED
package/dist/api.js
CHANGED
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
workspaceListSchema,
|
|
42
42
|
workspaceParamsSchema,
|
|
43
43
|
workspaceSchema
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-ELEAIRTG.js";
|
|
45
45
|
import {
|
|
46
46
|
appendAndEnqueueApiConversationMessage,
|
|
47
47
|
authenticatePersonalToken,
|
|
@@ -59,15 +59,15 @@ import {
|
|
|
59
59
|
revokePersonalToken,
|
|
60
60
|
viewerConversationMembership,
|
|
61
61
|
webActorFromEmail
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-DVWHUWTB.js";
|
|
63
63
|
import {
|
|
64
64
|
buildSentryConversationUrl,
|
|
65
65
|
getWebAuthorization
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-GLYH4OBP.js";
|
|
67
67
|
import {
|
|
68
68
|
cancelHumanFacingPendingMessages,
|
|
69
69
|
getConversation
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-PQV33DEV.js";
|
|
71
71
|
import {
|
|
72
72
|
readTaskExecutionByConversationId,
|
|
73
73
|
readTaskExecutionDays,
|
|
@@ -75,8 +75,8 @@ import {
|
|
|
75
75
|
readTaskExecutionSummaries,
|
|
76
76
|
readTaskExecutions,
|
|
77
77
|
readTaskRuns
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-
|
|
78
|
+
} from "./chunk-T3RN2B3T.js";
|
|
79
|
+
import "./chunk-RMANRIHC.js";
|
|
80
80
|
import {
|
|
81
81
|
healthReportSchema,
|
|
82
82
|
pluginOperationalReportFeedSchema,
|
|
@@ -101,20 +101,19 @@ import {
|
|
|
101
101
|
listPublicScheduledTasksForTeams,
|
|
102
102
|
readLiveAttachment,
|
|
103
103
|
readStats
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-I7F7WVUW.js";
|
|
105
105
|
import {
|
|
106
106
|
parseSlackThreadId
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-WNQBHYAQ.js";
|
|
108
108
|
import {
|
|
109
109
|
agentTurnUsageSchema,
|
|
110
110
|
fallbackShortTitle,
|
|
111
111
|
hasAgentTurnUsage,
|
|
112
112
|
renderJuniorNativeConversationEvent
|
|
113
|
-
} from "./chunk-
|
|
114
|
-
import "./chunk-3Y47VMHV.js";
|
|
113
|
+
} from "./chunk-YMBCD6FB.js";
|
|
115
114
|
import {
|
|
116
115
|
getCachedSnapshot
|
|
117
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-UQURHDWJ.js";
|
|
118
117
|
import "./chunk-PDO5BLNM.js";
|
|
119
118
|
import {
|
|
120
119
|
SANDBOX_RUNTIME,
|
|
@@ -135,7 +134,8 @@ import {
|
|
|
135
134
|
updateWorkspace,
|
|
136
135
|
withSlackRetries,
|
|
137
136
|
workspaceRepoCheckoutPath
|
|
138
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-K4SGLRWX.js";
|
|
138
|
+
import "./chunk-3Y47VMHV.js";
|
|
139
139
|
import {
|
|
140
140
|
decodeStoredConversationEvent,
|
|
141
141
|
getConversationStore,
|
|
@@ -143,25 +143,25 @@ import {
|
|
|
143
143
|
getSqlExecutor,
|
|
144
144
|
locationFromRow,
|
|
145
145
|
parseSessionSource
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-46BUAC7H.js";
|
|
147
147
|
import {
|
|
148
148
|
juniorConversationEvents,
|
|
149
149
|
juniorConversations,
|
|
150
150
|
juniorIdentities,
|
|
151
151
|
juniorUsers
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-RG6JSBDJ.js";
|
|
153
153
|
import {
|
|
154
154
|
create,
|
|
155
155
|
hash
|
|
156
|
-
} from "./chunk-
|
|
157
|
-
import "./chunk-
|
|
158
|
-
import "./chunk-
|
|
156
|
+
} from "./chunk-YUUMDYLN.js";
|
|
157
|
+
import "./chunk-CSV5XEQN.js";
|
|
158
|
+
import "./chunk-RAV6B2TQ.js";
|
|
159
159
|
import {
|
|
160
160
|
juniorDestinations
|
|
161
161
|
} from "./chunk-VFUK3X5B.js";
|
|
162
|
-
import "./chunk-
|
|
163
|
-
import "./chunk-
|
|
164
|
-
import "./chunk-
|
|
162
|
+
import "./chunk-NBE6DME6.js";
|
|
163
|
+
import "./chunk-XL24YNNO.js";
|
|
164
|
+
import "./chunk-2AEUOTQL.js";
|
|
165
165
|
import "./chunk-CGA4ERJ5.js";
|
|
166
166
|
import {
|
|
167
167
|
parseSlackChannelId,
|
|
@@ -171,12 +171,12 @@ import {
|
|
|
171
171
|
import {
|
|
172
172
|
logException,
|
|
173
173
|
logWarn
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-VMVTHLJM.js";
|
|
175
175
|
import "./chunk-6GWA276C.js";
|
|
176
176
|
import "./chunk-OOUNJNMR.js";
|
|
177
177
|
import "./chunk-H4HBKISO.js";
|
|
178
|
-
import "./chunk-
|
|
179
|
-
import "./chunk-
|
|
178
|
+
import "./chunk-HVI3ZLMV.js";
|
|
179
|
+
import "./chunk-4CVWSS6Q.js";
|
|
180
180
|
import "./chunk-MLKGABMK.js";
|
|
181
181
|
|
|
182
182
|
// src/api.ts
|
|
@@ -1167,7 +1167,7 @@ async function readConversationEventPage(executor, args) {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
|
|
1169
1169
|
// src/api/conversations/list.ts
|
|
1170
|
-
import { and as and7, asc as asc2, desc as desc2, eq as eq7, isNull as isNull3 } from "drizzle-orm";
|
|
1170
|
+
import { and as and7, asc as asc2, desc as desc2, eq as eq7, isNotNull as isNotNull4, isNull as isNull3 } from "drizzle-orm";
|
|
1171
1171
|
|
|
1172
1172
|
// src/api/conversations/shared.ts
|
|
1173
1173
|
function slackStatsLocationLabel(input) {
|
|
@@ -1736,7 +1736,7 @@ function conversationFeedMembershipFilter(filter) {
|
|
|
1736
1736
|
participantMatch: conversationHasParticipantEmail(filter.email)
|
|
1737
1737
|
});
|
|
1738
1738
|
}
|
|
1739
|
-
async function conversationRows(db, limit, filter) {
|
|
1739
|
+
async function conversationRows(db, limit, status, filter) {
|
|
1740
1740
|
return db.select({
|
|
1741
1741
|
conversation: juniorConversations,
|
|
1742
1742
|
destination: juniorDestinations,
|
|
@@ -1756,7 +1756,7 @@ async function conversationRows(db, limit, filter) {
|
|
|
1756
1756
|
).leftJoin(juniorUsers, eq7(juniorUsers.id, juniorIdentities.userId)).where(
|
|
1757
1757
|
and7(
|
|
1758
1758
|
isNull3(juniorConversations.parentConversationId),
|
|
1759
|
-
isNull3(juniorConversations.archivedAt),
|
|
1759
|
+
status === "archived" ? isNotNull4(juniorConversations.archivedAt) : isNull3(juniorConversations.archivedAt),
|
|
1760
1760
|
conversationFeedMembershipFilter(filter)
|
|
1761
1761
|
)
|
|
1762
1762
|
).orderBy(
|
|
@@ -1850,6 +1850,7 @@ async function readConversationFeedFromSql(options = {}) {
|
|
|
1850
1850
|
const rows = await conversationRows(
|
|
1851
1851
|
db,
|
|
1852
1852
|
options.limit ?? CONVERSATION_FEED_LIMIT,
|
|
1853
|
+
options.status ?? "active",
|
|
1853
1854
|
conversationFeedFilter(options)
|
|
1854
1855
|
);
|
|
1855
1856
|
const conversations = rows.map((row) => conversationFromRow(row));
|
|
@@ -3171,12 +3172,13 @@ function createConversationRoutes(options) {
|
|
|
3171
3172
|
"Invalid query parameters."
|
|
3172
3173
|
),
|
|
3173
3174
|
async (context) => {
|
|
3174
|
-
const { actorEmail } = context.req.valid("query");
|
|
3175
|
+
const { actorEmail, status } = context.req.valid("query");
|
|
3175
3176
|
const viewer = context.get("viewer");
|
|
3176
3177
|
return jsonResponse(
|
|
3177
3178
|
conversationFeedSchema,
|
|
3178
3179
|
await readConversationFeed({
|
|
3179
3180
|
...actorEmail ? { actorEmail } : {},
|
|
3181
|
+
status,
|
|
3180
3182
|
...viewer ? { viewer } : {}
|
|
3181
3183
|
})
|
|
3182
3184
|
);
|
|
@@ -4077,7 +4079,7 @@ async function readPeoplePluginReports(args) {
|
|
|
4077
4079
|
source: "plugins"
|
|
4078
4080
|
});
|
|
4079
4081
|
}
|
|
4080
|
-
const { getPluginProfileReports } = await import("./agent-hooks-
|
|
4082
|
+
const { getPluginProfileReports } = await import("./agent-hooks-DOXAOEHI.js");
|
|
4081
4083
|
return pluginOperationalReportFeedSchema.parse({
|
|
4082
4084
|
generatedAt: new Date(nowMs).toISOString(),
|
|
4083
4085
|
reports: await getPluginProfileReports({
|
|
@@ -4796,7 +4798,7 @@ function readDescriptionText(home) {
|
|
|
4796
4798
|
}
|
|
4797
4799
|
}
|
|
4798
4800
|
async function readSkillReports() {
|
|
4799
|
-
const { discoverSkills } = await import("./skills-
|
|
4801
|
+
const { discoverSkills } = await import("./skills-77LC6PFU.js");
|
|
4800
4802
|
const skills = await discoverSkills();
|
|
4801
4803
|
return skillReportsSchema.parse(
|
|
4802
4804
|
skills.map((skill) => ({
|
|
@@ -4806,7 +4808,7 @@ async function readSkillReports() {
|
|
|
4806
4808
|
);
|
|
4807
4809
|
}
|
|
4808
4810
|
async function readPlugins() {
|
|
4809
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
4811
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-OTFZT3R2.js");
|
|
4810
4812
|
return pluginsSchema.parse(
|
|
4811
4813
|
pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
4812
4814
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
@@ -4819,7 +4821,7 @@ async function readPlugins() {
|
|
|
4819
4821
|
async function readRuntimeInfoReport() {
|
|
4820
4822
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
4821
4823
|
import("./discovery-GUFTFBTL.js"),
|
|
4822
|
-
import("./catalog-runtime-
|
|
4824
|
+
import("./catalog-runtime-OTFZT3R2.js"),
|
|
4823
4825
|
readPlugins(),
|
|
4824
4826
|
readSkillReports()
|
|
4825
4827
|
]);
|
|
@@ -4835,7 +4837,7 @@ async function readRuntimeInfoReport() {
|
|
|
4835
4837
|
}
|
|
4836
4838
|
async function readPluginOperationalReportFeed() {
|
|
4837
4839
|
const nowMs = Date.now();
|
|
4838
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
4840
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-DOXAOEHI.js");
|
|
4839
4841
|
return pluginOperationalReportFeedSchema.parse({
|
|
4840
4842
|
source: "plugins",
|
|
4841
4843
|
generatedAt: new Date(nowMs).toISOString(),
|
package/dist/app.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
processConversationWork
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6KKCC7CG.js";
|
|
4
4
|
import {
|
|
5
5
|
bindSpawnAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WHKREAVX.js";
|
|
7
7
|
import {
|
|
8
8
|
createAgentInvocationWorker,
|
|
9
9
|
enqueueAgentInvocation,
|
|
10
10
|
listPendingAgentInvocationMailboxAppends,
|
|
11
11
|
routeAgentInvocationWork
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JLHYNMXZ.js";
|
|
13
13
|
import {
|
|
14
14
|
GET as GET2,
|
|
15
15
|
GET2 as GET3,
|
|
@@ -36,12 +36,12 @@ import {
|
|
|
36
36
|
startSlackProcessingReaction,
|
|
37
37
|
stripLeadingBotMention,
|
|
38
38
|
wakePausedTurn
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-V7QS3Z53.js";
|
|
40
40
|
import "./chunk-FA6POGLH.js";
|
|
41
41
|
import {
|
|
42
42
|
getTurnRequestDeadline,
|
|
43
43
|
runWithTurnRequestDeadline
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-2XWTVTLS.js";
|
|
45
45
|
import {
|
|
46
46
|
GET,
|
|
47
47
|
apiTurnIdForMessage,
|
|
@@ -58,8 +58,8 @@ import {
|
|
|
58
58
|
resolveSlackConversationContext,
|
|
59
59
|
routeApiTurnWork,
|
|
60
60
|
webActorFromEmail
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-DVWHUWTB.js";
|
|
62
|
+
import "./chunk-GLYH4OBP.js";
|
|
63
63
|
import {
|
|
64
64
|
CONVERSATION_WORK_STALE_ENQUEUE_MS,
|
|
65
65
|
appendAndEnqueueInboundMessage,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
isInvalidConversationRecordError,
|
|
71
71
|
listActiveConversationIds,
|
|
72
72
|
removeActiveConversation
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-PQV33DEV.js";
|
|
74
74
|
import {
|
|
75
75
|
buildDeliveredTurnStatePatch,
|
|
76
76
|
claimDispatchMailboxAppend,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
requireTurnFailureEventId,
|
|
102
102
|
resolveTurnSessionRouting,
|
|
103
103
|
scheduleSessionCompletedPluginTasks
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-T3RN2B3T.js";
|
|
105
105
|
import {
|
|
106
106
|
ConversationTurnLifecycleService,
|
|
107
107
|
coerceThreadConversationState,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
persistThreadRuntimeState,
|
|
112
112
|
persistThreadState,
|
|
113
113
|
persistThreadStateById
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-RMANRIHC.js";
|
|
115
115
|
import "./chunk-UTL3MHPC.js";
|
|
116
116
|
import {
|
|
117
117
|
getVercelConversationWorkQueue,
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
import {
|
|
131
131
|
validatePluginEgressCredentialHooks,
|
|
132
132
|
validatePluginRegistrations
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-KGKKBFOI.js";
|
|
134
134
|
import {
|
|
135
135
|
defineJuniorPlugins,
|
|
136
136
|
pluginCatalogConfigFromEnv,
|
|
@@ -140,15 +140,12 @@ import {
|
|
|
140
140
|
import {
|
|
141
141
|
SANDBOX_EGRESS_PROXY_PATH,
|
|
142
142
|
buildSteeringPiMessage,
|
|
143
|
-
cancelSubscriptions,
|
|
144
143
|
clearSandboxEgressSignals,
|
|
145
144
|
consumeSandboxEgressAuthRequiredSignal,
|
|
146
145
|
consumeSandboxEgressPermissionDeniedSignal,
|
|
147
146
|
createContextCompactor,
|
|
148
|
-
deliverResourceEventSubscription,
|
|
149
147
|
executeAgentRun,
|
|
150
148
|
executeCredentialedEgressRequest,
|
|
151
|
-
findMatchingResourceEventSubscriptions,
|
|
152
149
|
getConfigDefaults,
|
|
153
150
|
latestReportedProgress,
|
|
154
151
|
listThreadReplies,
|
|
@@ -165,11 +162,11 @@ import {
|
|
|
165
162
|
shouldEmitDevAgentTrace,
|
|
166
163
|
shouldPropagateSandboxEgressTrace,
|
|
167
164
|
unpublishedArtifactHeaders
|
|
168
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-DSZNZ7AW.js";
|
|
169
166
|
import {
|
|
170
167
|
AuthorizationFlowDisabledError,
|
|
171
168
|
PluginCredentialFailureError
|
|
172
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-GBDCHVNI.js";
|
|
173
170
|
import "./chunk-DIB4GX3G.js";
|
|
174
171
|
import {
|
|
175
172
|
createAgentRunner,
|
|
@@ -177,7 +174,7 @@ import {
|
|
|
177
174
|
deleteMcpAuthSessionsForUserProvider,
|
|
178
175
|
deleteMcpServerSessionId,
|
|
179
176
|
deleteMcpStoredOAuthCredentials
|
|
180
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-TYSWSX3M.js";
|
|
181
178
|
import {
|
|
182
179
|
RetryableDeliveryError
|
|
183
180
|
} from "./chunk-RF6J3DIO.js";
|
|
@@ -185,7 +182,7 @@ import {
|
|
|
185
182
|
formatProviderLabel,
|
|
186
183
|
postSlackMessage,
|
|
187
184
|
startOAuthFlow
|
|
188
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-HHAR5IDU.js";
|
|
189
186
|
import "./chunk-6ZWRNC4D.js";
|
|
190
187
|
import {
|
|
191
188
|
getExperimentalFeatures,
|
|
@@ -196,13 +193,15 @@ import {
|
|
|
196
193
|
collectAttachmentGarbage,
|
|
197
194
|
createSchedulerSqlStore,
|
|
198
195
|
findMatchingEventTasks,
|
|
196
|
+
getResourceEventCatalog,
|
|
199
197
|
logScheduledTaskRunSkipped,
|
|
200
198
|
requestAttachmentDeletion,
|
|
199
|
+
resourceEventGuidance,
|
|
201
200
|
scheduledTaskRunAttributes
|
|
202
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-I7F7WVUW.js";
|
|
203
202
|
import {
|
|
204
203
|
parseSlackThreadId
|
|
205
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-WNQBHYAQ.js";
|
|
206
205
|
import {
|
|
207
206
|
ConversationTurnBoundaryError,
|
|
208
207
|
CooperativeTurnYieldError,
|
|
@@ -254,12 +253,11 @@ import {
|
|
|
254
253
|
trimTrailingAssistantMessages,
|
|
255
254
|
turnHasReply,
|
|
256
255
|
upsertConversationMessage
|
|
257
|
-
} from "./chunk-
|
|
258
|
-
import "./chunk-3Y47VMHV.js";
|
|
256
|
+
} from "./chunk-YMBCD6FB.js";
|
|
259
257
|
import {
|
|
260
258
|
getSandboxResourceConfig,
|
|
261
259
|
setSandboxResourceConfig
|
|
262
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-UQURHDWJ.js";
|
|
263
261
|
import "./chunk-PDO5BLNM.js";
|
|
264
262
|
import "./chunk-UIE3R5XU.js";
|
|
265
263
|
import {
|
|
@@ -267,10 +265,13 @@ import {
|
|
|
267
265
|
bindEventTaskCredentialSubject,
|
|
268
266
|
bindScheduledTaskCredentialSubject,
|
|
269
267
|
bindSlackDirectCredentialSubject,
|
|
268
|
+
cancelSubscriptions,
|
|
270
269
|
createPluginLogger,
|
|
271
270
|
createPluginState,
|
|
272
271
|
createResourceEventTeamIdResolver,
|
|
272
|
+
deliverResourceEventSubscription,
|
|
273
273
|
downloadPrivateSlackFile,
|
|
274
|
+
findMatchingResourceEventSubscriptions,
|
|
274
275
|
getPluginApiRoutes,
|
|
275
276
|
getPluginRoutes,
|
|
276
277
|
getPlugins,
|
|
@@ -287,7 +288,8 @@ import {
|
|
|
287
288
|
verifyEventTaskCredentialSubject,
|
|
288
289
|
verifyScheduledTaskCredentialSubject,
|
|
289
290
|
verifySlackDirectCredentialSubject
|
|
290
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-K4SGLRWX.js";
|
|
292
|
+
import "./chunk-3Y47VMHV.js";
|
|
291
293
|
import {
|
|
292
294
|
contextProvenance,
|
|
293
295
|
createSlackDestination,
|
|
@@ -300,21 +302,21 @@ import {
|
|
|
300
302
|
requireSlackDestination,
|
|
301
303
|
withConversationEventLock,
|
|
302
304
|
withConversationMutationLock
|
|
303
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-46BUAC7H.js";
|
|
304
306
|
import {
|
|
305
307
|
juniorAgentBindings,
|
|
306
308
|
juniorAgentInvocations,
|
|
307
309
|
juniorConversationEvents,
|
|
308
310
|
juniorConversations
|
|
309
|
-
} from "./chunk-
|
|
311
|
+
} from "./chunk-RG6JSBDJ.js";
|
|
310
312
|
import {
|
|
311
313
|
sleep
|
|
312
|
-
} from "./chunk-
|
|
314
|
+
} from "./chunk-YUUMDYLN.js";
|
|
313
315
|
import {
|
|
314
316
|
acquireActiveLock,
|
|
315
317
|
getStateAdapter,
|
|
316
318
|
withActiveLock
|
|
317
|
-
} from "./chunk-
|
|
319
|
+
} from "./chunk-CSV5XEQN.js";
|
|
318
320
|
import {
|
|
319
321
|
STANDARD_MODEL_PROFILE,
|
|
320
322
|
botConfig,
|
|
@@ -332,16 +334,16 @@ import {
|
|
|
332
334
|
modelIdForProfile,
|
|
333
335
|
setSlackReactionConfig,
|
|
334
336
|
standardModelId
|
|
335
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-RAV6B2TQ.js";
|
|
336
338
|
import {
|
|
337
339
|
juniorDestinations
|
|
338
340
|
} from "./chunk-VFUK3X5B.js";
|
|
339
|
-
import "./chunk-
|
|
340
|
-
import "./chunk-
|
|
341
|
+
import "./chunk-NBE6DME6.js";
|
|
342
|
+
import "./chunk-2WCXOLNX.js";
|
|
341
343
|
import {
|
|
342
344
|
pluginCatalogRuntime
|
|
343
|
-
} from "./chunk-
|
|
344
|
-
import "./chunk-
|
|
345
|
+
} from "./chunk-XL24YNNO.js";
|
|
346
|
+
import "./chunk-2AEUOTQL.js";
|
|
345
347
|
import {
|
|
346
348
|
credentialContextForActor
|
|
347
349
|
} from "./chunk-CGA4ERJ5.js";
|
|
@@ -373,7 +375,7 @@ import {
|
|
|
373
375
|
withContext,
|
|
374
376
|
withLogContext,
|
|
375
377
|
withSpan
|
|
376
|
-
} from "./chunk-
|
|
378
|
+
} from "./chunk-VMVTHLJM.js";
|
|
377
379
|
import {
|
|
378
380
|
continueTrace
|
|
379
381
|
} from "./chunk-6GWA276C.js";
|
|
@@ -381,10 +383,10 @@ import "./chunk-OOUNJNMR.js";
|
|
|
381
383
|
import "./chunk-H4HBKISO.js";
|
|
382
384
|
import {
|
|
383
385
|
JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE
|
|
384
|
-
} from "./chunk-
|
|
386
|
+
} from "./chunk-HVI3ZLMV.js";
|
|
385
387
|
import {
|
|
386
388
|
JUNIOR_VERSION
|
|
387
|
-
} from "./chunk-
|
|
389
|
+
} from "./chunk-4CVWSS6Q.js";
|
|
388
390
|
import "./chunk-MLKGABMK.js";
|
|
389
391
|
|
|
390
392
|
// src/app.ts
|
|
@@ -8575,6 +8577,11 @@ function renderTrustedEventData(data) {
|
|
|
8575
8577
|
];
|
|
8576
8578
|
}
|
|
8577
8579
|
function renderResourceEventNotificationText(subscription, event) {
|
|
8580
|
+
const guidance = resourceEventGuidance(
|
|
8581
|
+
getResourceEventCatalog(),
|
|
8582
|
+
event.namespace,
|
|
8583
|
+
event.eventType
|
|
8584
|
+
);
|
|
8578
8585
|
const lines = [
|
|
8579
8586
|
"[event notification]",
|
|
8580
8587
|
"",
|
|
@@ -8592,6 +8599,7 @@ function renderResourceEventNotificationText(subscription, event) {
|
|
|
8592
8599
|
`- resource: ${subscription.label}`,
|
|
8593
8600
|
`- event: ${event.eventType}`,
|
|
8594
8601
|
`- intent: ${subscription.intent}`,
|
|
8602
|
+
...guidance ? ["", "Install guidance:", guidance] : [],
|
|
8595
8603
|
"",
|
|
8596
8604
|
"Trusted event summary:",
|
|
8597
8605
|
event.trustedSummary
|
|
@@ -8702,12 +8710,18 @@ function replyAttribution2(task, event) {
|
|
|
8702
8710
|
return detail ? { label: "Event task", detail } : { label: "Event task" };
|
|
8703
8711
|
}
|
|
8704
8712
|
function eventInput(task, event) {
|
|
8713
|
+
const guidance = resourceEventGuidance(
|
|
8714
|
+
getResourceEventCatalog(),
|
|
8715
|
+
event.namespace,
|
|
8716
|
+
event.eventType
|
|
8717
|
+
);
|
|
8705
8718
|
const lines = [
|
|
8706
8719
|
"An event task matched a resource event.",
|
|
8707
8720
|
"Junior is executing a stored user-authored event task.",
|
|
8708
8721
|
"The matching resource event is system-authored input, not a new user command.",
|
|
8709
8722
|
"",
|
|
8710
8723
|
`Stored user instruction: ${task.task.text}`,
|
|
8724
|
+
...guidance ? ["", "Install guidance:", guidance] : [],
|
|
8711
8725
|
"",
|
|
8712
8726
|
"Trusted event metadata:",
|
|
8713
8727
|
`- namespace: ${oneLine(event.namespace)}`,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-XL24YNNO.js";
|
|
4
|
+
import "./chunk-2AEUOTQL.js";
|
|
5
5
|
import "./chunk-CGA4ERJ5.js";
|
|
6
6
|
import "./chunk-M63DETLL.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-VMVTHLJM.js";
|
|
8
8
|
import "./chunk-6GWA276C.js";
|
|
9
9
|
import "./chunk-OOUNJNMR.js";
|
|
10
10
|
import "./chunk-H4HBKISO.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-HVI3ZLMV.js";
|
|
12
|
+
import "./chunk-4CVWSS6Q.js";
|
|
13
13
|
import "./chunk-MLKGABMK.js";
|
|
14
14
|
export {
|
|
15
15
|
pluginCatalogRuntime
|
|
@@ -16,6 +16,8 @@ export declare function registeredResourceTypeSchema(catalog: ResourceEventCatal
|
|
|
16
16
|
}>;
|
|
17
17
|
/** Return whether one enabled plugin declared an event type. */
|
|
18
18
|
export declare function pluginSupportsEvent(catalog: ResourceEventCatalog, namespace: string, resourceType: string, eventType: string): boolean;
|
|
19
|
+
/** Return install guidance for one registered resource event type. */
|
|
20
|
+
export declare function resourceEventGuidance(catalog: ResourceEventCatalog, namespace: string, eventType: string): string | undefined;
|
|
19
21
|
/** Normalize one selector with the convention declared by its plugin. */
|
|
20
22
|
export declare function normalizeEventIdentifier(catalog: ResourceEventCatalog, namespace: string, identifier: string): string;
|
|
21
23
|
export {};
|
|
@@ -13,7 +13,7 @@ export interface ResourceEventNotification {
|
|
|
13
13
|
untrustedText?: string;
|
|
14
14
|
}
|
|
15
15
|
/** Render the runtime-owned conversation message for a subscribed event. */
|
|
16
|
-
export declare function renderResourceEventNotificationText(subscription: Pick<ResourceEventSubscription, "intent" | "label">, event: Pick<ResourceEventNotification, "eventType" | "trustedSummary" | "data" | "untrustedText">): string;
|
|
16
|
+
export declare function renderResourceEventNotificationText(subscription: Pick<ResourceEventSubscription, "intent" | "label">, event: Pick<ResourceEventNotification, "namespace" | "eventType" | "trustedSummary" | "data" | "untrustedText">): string;
|
|
17
17
|
/** Enqueue a resource event as normal conversation mailbox input. */
|
|
18
18
|
export declare function enqueueResourceEventNotification(args: {
|
|
19
19
|
event: ResourceEventNotification;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { ToolRuntimeContext } from "@/chat/tools/types";
|
|
2
|
+
/** Default lifetime for temporary resource subscriptions. */
|
|
3
|
+
export declare const RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS: number;
|
|
4
|
+
/** Hard upper bound for temporary resource subscriptions. */
|
|
5
|
+
export declare const RESOURCE_SUBSCRIPTION_MAX_TTL_MS: number;
|
|
2
6
|
export declare const STOP_WATCHING_TOOL_NAME = "stopWatchingResources";
|
|
3
7
|
export declare const RESOURCE_WATCH_TOOL_SOURCE: {
|
|
4
8
|
id: string;
|