@sentry/junior 0.187.0 → 0.188.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-XVAE2554.js → agent-hooks-5RQEVLQD.js} +11 -11
- package/dist/api.js +31 -31
- package/dist/app.js +52 -46
- package/dist/{catalog-runtime-DWFAC562.js → catalog-runtime-L4A6BJ3U.js} +4 -4
- package/dist/chat/agent/types.d.ts +8 -12
- package/dist/chat/agent-invocations/types.d.ts +72 -0
- package/dist/chat/conversations/location.d.ts +3 -8
- package/dist/chat/conversations/store.d.ts +4 -7
- package/dist/chat/event-tasks/tool-support.d.ts +6 -0
- package/dist/chat/services/turn-session-routing.d.ts +5 -5
- package/dist/chat/task-execution/slack-resource-event.d.ts +13 -5
- package/dist/{chunk-7LRRVMPH.js → chunk-32XSSFZV.js} +1 -1
- package/dist/{chunk-Z6OHCDXP.js → chunk-3HEZWDS5.js} +2 -2
- package/dist/{chunk-WRDW3A3D.js → chunk-6JZGXLL2.js} +5 -5
- package/dist/{chunk-D5BWM37G.js → chunk-6YGFBU3A.js} +12 -12
- package/dist/{chunk-WL3R2KTS.js → chunk-AW77HH54.js} +92 -10
- package/dist/{chunk-TQHCZXN7.js → chunk-CDSLOYOR.js} +5 -5
- package/dist/{chunk-27T5HZHO.js → chunk-CIG6WI7Q.js} +6 -87
- package/dist/{chunk-4A2R3AQB.js → chunk-CVBDVIF4.js} +1 -1
- package/dist/{chunk-2VUDJGB6.js → chunk-CZRWU4ZM.js} +1 -1
- package/dist/{chunk-OM4SFFJK.js → chunk-ERZMACYA.js} +2 -2
- package/dist/{chunk-Q6OCUQ7W.js → chunk-FIUCHYT6.js} +1 -1
- package/dist/{chunk-U3KMII5Y.js → chunk-HCIVBCP5.js} +1 -1
- package/dist/{chunk-WKIS4VRK.js → chunk-IUUQWIG2.js} +14 -31
- package/dist/{chunk-4YD3DET6.js → chunk-LODJKINF.js} +19 -20
- package/dist/{chunk-NIKLTFBP.js → chunk-MQDIIFZM.js} +4 -4
- package/dist/{chunk-QH3I7ZOK.js → chunk-NZLZ4KYZ.js} +1 -1
- package/dist/{chunk-ITLYUKGZ.js → chunk-PSHMPRIU.js} +1 -1
- package/dist/{chunk-URZ7UD4P.js → chunk-Q7O74WOO.js} +2 -2
- package/dist/{chunk-DUE4EUNL.js → chunk-QCGNHSMA.js} +6 -6
- package/dist/{chunk-EIWYZXSM.js → chunk-QDHJTKPE.js} +5 -5
- package/dist/{chunk-6YCIYOVA.js → chunk-QIMN3FXL.js} +1 -1
- package/dist/{chunk-X5SXFVZT.js → chunk-QIOUTXTZ.js} +1 -1
- package/dist/{chunk-HXR3FHTE.js → chunk-QVH6FW3T.js} +1 -1
- package/dist/{chunk-U5POFCKM.js → chunk-RMB7CERI.js} +26 -26
- package/dist/{chunk-KRYJ5VOD.js → chunk-SC67CH3C.js} +13 -15
- package/dist/{chunk-6FKNNUSN.js → chunk-UVUXFRYN.js} +6 -6
- package/dist/{chunk-MUPPP7A7.js → chunk-VFZAUQ5V.js} +6 -6
- package/dist/{chunk-BITZUBPJ.js → chunk-W2DDJCPS.js} +8 -8
- package/dist/{chunk-VC343WHM.js → chunk-W42ENMJW.js} +1 -1
- package/dist/{chunk-JCRXXEMC.js → chunk-WGZJ5SU4.js} +1 -1
- package/dist/{chunk-P2VU5JNH.js → chunk-WW2Y7JIA.js} +27 -26
- package/dist/{chunk-JZPDYKRG.js → chunk-X55FOVZO.js} +3 -3
- package/dist/{chunk-STF4GSK4.js → chunk-XI4PVY2T.js} +3 -3
- package/dist/{chunk-D3GDGREI.js → chunk-XJIPMHKI.js} +3 -3
- package/dist/{chunk-NU775DLU.js → chunk-Z5SKZE5B.js} +1 -1
- package/dist/{chunk-U6ZQHRIP.js → chunk-ZX7RSBQ6.js} +1 -1
- package/dist/cli/chat.js +32 -32
- package/dist/cli/check.js +5 -5
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +6 -6
- package/dist/db/schema/agent-invocations.d.ts +36 -0
- package/dist/db/schema.d.ts +36 -0
- package/dist/{db-FBHAWVXU.js → db-YPRZAA2T.js} +6 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-5HS5ULC6.js → oauth-callback-server-DBBIR3XG.js} +27 -27
- package/dist/{runner-46W6NV6B.js → runner-FKVFFPLO.js} +20 -20
- package/dist/{skills-TG3QC4B6.js → skills-4RBAZEMV.js} +5 -5
- package/dist/spawn-CO7QFCNJ.js +41 -0
- package/dist/task-runner-DUGZGI7V.js +34 -0
- package/dist/{validation-GMRIDBC5.js → validation-E6Z5LHZM.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-W4ULBJTU.js → work-OFTXWOK4.js} +20 -20
- package/dist/{worker-M6NVACS2.js → worker-OMWNOKTJ.js} +10 -10
- package/package.json +5 -5
- package/dist/spawn-Y6YWBIJS.js +0 -41
- package/dist/task-runner-YSGBPN4U.js +0 -34
|
@@ -13,26 +13,26 @@ import {
|
|
|
13
13
|
getPlugins,
|
|
14
14
|
setPlugins,
|
|
15
15
|
validatePlugins
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QCGNHSMA.js";
|
|
17
17
|
import "./chunk-3Y47VMHV.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-IUUQWIG2.js";
|
|
19
|
+
import "./chunk-QVH6FW3T.js";
|
|
20
|
+
import "./chunk-X55FOVZO.js";
|
|
21
|
+
import "./chunk-ZX7RSBQ6.js";
|
|
22
22
|
import "./chunk-GFBR4S3Q.js";
|
|
23
23
|
import "./chunk-VFUK3X5B.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-Q7O74WOO.js";
|
|
25
25
|
import "./chunk-D4YV5TDV.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-FIUCHYT6.js";
|
|
27
|
+
import "./chunk-NZLZ4KYZ.js";
|
|
28
|
+
import "./chunk-QIOUTXTZ.js";
|
|
29
29
|
import "./chunk-CEMMLV5L.js";
|
|
30
30
|
import "./chunk-N7TMSOZH.js";
|
|
31
31
|
import "./chunk-DWPN6SCH.js";
|
|
32
32
|
import "./chunk-TXKUKMVO.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-QIMN3FXL.js";
|
|
34
34
|
import "./chunk-PEQXYSSE.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-32XSSFZV.js";
|
|
36
36
|
export {
|
|
37
37
|
PluginHookDeniedError,
|
|
38
38
|
applyPluginFormatMarkdown,
|
package/dist/api.js
CHANGED
|
@@ -62,14 +62,14 @@ import {
|
|
|
62
62
|
resolveSlackConversationContextFromThreadId,
|
|
63
63
|
viewerConversationMembership,
|
|
64
64
|
webActorFromEmail
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-LODJKINF.js";
|
|
66
66
|
import {
|
|
67
67
|
buildSentryConversationUrl,
|
|
68
68
|
buildSentryEventUrl,
|
|
69
69
|
getWebAuthorization
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
70
|
+
} from "./chunk-PSHMPRIU.js";
|
|
71
|
+
import "./chunk-ERZMACYA.js";
|
|
72
|
+
import "./chunk-QDHJTKPE.js";
|
|
73
73
|
import {
|
|
74
74
|
readTaskExecutionByConversationId,
|
|
75
75
|
readTaskExecutionDays,
|
|
@@ -77,9 +77,9 @@ import {
|
|
|
77
77
|
readTaskExecutionSummaries,
|
|
78
78
|
readTaskExecutions,
|
|
79
79
|
readTaskRuns
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
80
|
+
} from "./chunk-AW77HH54.js";
|
|
81
|
+
import "./chunk-W42ENMJW.js";
|
|
82
|
+
import "./chunk-CIG6WI7Q.js";
|
|
83
83
|
import {
|
|
84
84
|
healthReportSchema,
|
|
85
85
|
pluginOperationalReportFeedSchema,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
runtimeInfoReportSchema,
|
|
88
88
|
skillReportsSchema
|
|
89
89
|
} from "./chunk-UTL3MHPC.js";
|
|
90
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-XI4PVY2T.js";
|
|
91
91
|
import {
|
|
92
92
|
deleteEventTask,
|
|
93
93
|
eventTaskBelongsToUser,
|
|
@@ -103,33 +103,33 @@ import {
|
|
|
103
103
|
readScheduledTask,
|
|
104
104
|
readStats,
|
|
105
105
|
saveScheduledTask
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-VFZAUQ5V.js";
|
|
107
107
|
import {
|
|
108
108
|
parseSlackThreadId
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-CVBDVIF4.js";
|
|
110
110
|
import "./chunk-6FGN7ZEG.js";
|
|
111
111
|
import {
|
|
112
112
|
cancelHumanFacingPendingMessages,
|
|
113
113
|
getConversation
|
|
114
|
-
} from "./chunk-
|
|
115
|
-
import "./chunk-
|
|
114
|
+
} from "./chunk-MQDIIFZM.js";
|
|
115
|
+
import "./chunk-Z5SKZE5B.js";
|
|
116
116
|
import {
|
|
117
117
|
agentTurnUsageSchema,
|
|
118
118
|
fallbackShortTitle,
|
|
119
119
|
hasAgentTurnUsage,
|
|
120
120
|
renderJuniorNativeConversationEvent
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-6YGFBU3A.js";
|
|
122
122
|
import "./chunk-2LYHWMR4.js";
|
|
123
123
|
import {
|
|
124
124
|
getCachedSnapshot
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-XJIPMHKI.js";
|
|
126
126
|
import "./chunk-PDO5BLNM.js";
|
|
127
127
|
import {
|
|
128
128
|
getVercelConversationWorkQueue
|
|
129
129
|
} from "./chunk-DKIJ2RP5.js";
|
|
130
130
|
import "./chunk-JAL3CH4G.js";
|
|
131
131
|
import "./chunk-7H2VZTWN.js";
|
|
132
|
-
import "./chunk-
|
|
132
|
+
import "./chunk-WGZJ5SU4.js";
|
|
133
133
|
import {
|
|
134
134
|
SANDBOX_RUNTIME,
|
|
135
135
|
WorkspaceValidationError,
|
|
@@ -149,7 +149,7 @@ import {
|
|
|
149
149
|
updateWorkspace,
|
|
150
150
|
withSlackRetries,
|
|
151
151
|
workspaceRepoCheckoutPath
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-QCGNHSMA.js";
|
|
153
153
|
import "./chunk-3Y47VMHV.js";
|
|
154
154
|
import {
|
|
155
155
|
getConversationStore,
|
|
@@ -158,7 +158,7 @@ import {
|
|
|
158
158
|
locationFromRow,
|
|
159
159
|
parseSessionSource,
|
|
160
160
|
resolveRootConversationId
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-IUUQWIG2.js";
|
|
162
162
|
import {
|
|
163
163
|
conversationReadColumns,
|
|
164
164
|
juniorApiTokens,
|
|
@@ -170,23 +170,23 @@ import {
|
|
|
170
170
|
juniorIdentities,
|
|
171
171
|
juniorSchedulerTasks,
|
|
172
172
|
juniorUsers
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-QVH6FW3T.js";
|
|
174
174
|
import {
|
|
175
175
|
create,
|
|
176
176
|
hash
|
|
177
|
-
} from "./chunk-
|
|
178
|
-
import "./chunk-
|
|
177
|
+
} from "./chunk-X55FOVZO.js";
|
|
178
|
+
import "./chunk-ZX7RSBQ6.js";
|
|
179
179
|
import {
|
|
180
180
|
decodeStoredConversationEvent
|
|
181
181
|
} from "./chunk-GFBR4S3Q.js";
|
|
182
182
|
import {
|
|
183
183
|
juniorDestinations
|
|
184
184
|
} from "./chunk-VFUK3X5B.js";
|
|
185
|
-
import "./chunk-
|
|
185
|
+
import "./chunk-Q7O74WOO.js";
|
|
186
186
|
import "./chunk-D4YV5TDV.js";
|
|
187
|
-
import "./chunk-
|
|
188
|
-
import "./chunk-
|
|
189
|
-
import "./chunk-
|
|
187
|
+
import "./chunk-FIUCHYT6.js";
|
|
188
|
+
import "./chunk-NZLZ4KYZ.js";
|
|
189
|
+
import "./chunk-QIOUTXTZ.js";
|
|
190
190
|
import "./chunk-CEMMLV5L.js";
|
|
191
191
|
import {
|
|
192
192
|
parseSlackChannelId,
|
|
@@ -198,9 +198,9 @@ import "./chunk-TXKUKMVO.js";
|
|
|
198
198
|
import {
|
|
199
199
|
logException,
|
|
200
200
|
logWarn
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-QIMN3FXL.js";
|
|
202
202
|
import "./chunk-PEQXYSSE.js";
|
|
203
|
-
import "./chunk-
|
|
203
|
+
import "./chunk-32XSSFZV.js";
|
|
204
204
|
|
|
205
205
|
// src/api.ts
|
|
206
206
|
import { Hono as Hono9 } from "hono";
|
|
@@ -4596,7 +4596,7 @@ async function readPeoplePluginReports(args) {
|
|
|
4596
4596
|
source: "plugins"
|
|
4597
4597
|
});
|
|
4598
4598
|
}
|
|
4599
|
-
const { getPluginProfileReports } = await import("./agent-hooks-
|
|
4599
|
+
const { getPluginProfileReports } = await import("./agent-hooks-5RQEVLQD.js");
|
|
4600
4600
|
return pluginOperationalReportFeedSchema.parse({
|
|
4601
4601
|
generatedAt: new Date(nowMs).toISOString(),
|
|
4602
4602
|
reports: await getPluginProfileReports({
|
|
@@ -5400,7 +5400,7 @@ function readDescriptionText(home) {
|
|
|
5400
5400
|
}
|
|
5401
5401
|
}
|
|
5402
5402
|
async function readSkillReports() {
|
|
5403
|
-
const { discoverSkills } = await import("./skills-
|
|
5403
|
+
const { discoverSkills } = await import("./skills-4RBAZEMV.js");
|
|
5404
5404
|
const skills = await discoverSkills();
|
|
5405
5405
|
return skillReportsSchema.parse(
|
|
5406
5406
|
skills.map((skill) => ({
|
|
@@ -5410,7 +5410,7 @@ async function readSkillReports() {
|
|
|
5410
5410
|
);
|
|
5411
5411
|
}
|
|
5412
5412
|
async function readPlugins() {
|
|
5413
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
5413
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-L4A6BJ3U.js");
|
|
5414
5414
|
return pluginsSchema.parse(
|
|
5415
5415
|
pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
5416
5416
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
@@ -5423,7 +5423,7 @@ async function readPlugins() {
|
|
|
5423
5423
|
async function readRuntimeInfoReport() {
|
|
5424
5424
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
5425
5425
|
import("./discovery-DWVDM7UK.js"),
|
|
5426
|
-
import("./catalog-runtime-
|
|
5426
|
+
import("./catalog-runtime-L4A6BJ3U.js"),
|
|
5427
5427
|
readPlugins(),
|
|
5428
5428
|
readSkillReports()
|
|
5429
5429
|
]);
|
|
@@ -5439,7 +5439,7 @@ async function readRuntimeInfoReport() {
|
|
|
5439
5439
|
}
|
|
5440
5440
|
async function readPluginOperationalReportFeed() {
|
|
5441
5441
|
const nowMs = Date.now();
|
|
5442
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
5442
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-5RQEVLQD.js");
|
|
5443
5443
|
return pluginOperationalReportFeedSchema.parse({
|
|
5444
5444
|
source: "plugins",
|
|
5445
5445
|
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-CDSLOYOR.js";
|
|
4
4
|
import {
|
|
5
5
|
bindSpawnAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CZRWU4ZM.js";
|
|
7
7
|
import {
|
|
8
8
|
createAgentInvocationWorker,
|
|
9
9
|
enqueueAgentInvocation,
|
|
10
10
|
listPendingAgentInvocationMailboxAppends,
|
|
11
11
|
routeAgentInvocationWork
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SC67CH3C.js";
|
|
13
13
|
import {
|
|
14
14
|
GET as GET2,
|
|
15
15
|
GET2 as GET3,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
startProcessingReaction,
|
|
38
38
|
stripLeadingBotMention,
|
|
39
39
|
wakePausedTurn
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-WW2Y7JIA.js";
|
|
41
41
|
import "./chunk-FA6POGLH.js";
|
|
42
42
|
import {
|
|
43
43
|
GET,
|
|
@@ -55,12 +55,12 @@ import {
|
|
|
55
55
|
resolveSlackConversationContext,
|
|
56
56
|
routeApiTurnWork,
|
|
57
57
|
webActorFromEmail
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
58
|
+
} from "./chunk-LODJKINF.js";
|
|
59
|
+
import "./chunk-PSHMPRIU.js";
|
|
60
60
|
import {
|
|
61
61
|
AgentRunError,
|
|
62
62
|
executeTurn
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-ERZMACYA.js";
|
|
64
64
|
import {
|
|
65
65
|
buildDeliveredTurnStatePatch,
|
|
66
66
|
completeAuthPauseTurn,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
getTurnUserSlackMessageTs,
|
|
72
72
|
persistAuthPauseTurnState,
|
|
73
73
|
requireTurnFailureEventId
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-QDHJTKPE.js";
|
|
75
75
|
import {
|
|
76
76
|
claimDispatchMailboxAppend,
|
|
77
77
|
confirmDispatchMailboxAppend,
|
|
@@ -89,11 +89,13 @@ import {
|
|
|
89
89
|
markDispatchFailed,
|
|
90
90
|
markDispatchRunning,
|
|
91
91
|
recordTaskExecution,
|
|
92
|
+
resolveConversationRouting,
|
|
93
|
+
resolveTurnSessionRouting,
|
|
92
94
|
scheduleSessionCompletedPluginTasks
|
|
93
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-AW77HH54.js";
|
|
94
96
|
import {
|
|
95
97
|
getTurnLifecycle
|
|
96
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-W42ENMJW.js";
|
|
97
99
|
import {
|
|
98
100
|
coerceThreadConversationState,
|
|
99
101
|
getLocationConfigurationService,
|
|
@@ -101,20 +103,18 @@ import {
|
|
|
101
103
|
getPersistedThreadState,
|
|
102
104
|
persistThreadRuntimeState,
|
|
103
105
|
persistThreadState,
|
|
104
|
-
persistThreadStateById
|
|
105
|
-
|
|
106
|
-
resolveTurnSessionRouting
|
|
107
|
-
} from "./chunk-27T5HZHO.js";
|
|
106
|
+
persistThreadStateById
|
|
107
|
+
} from "./chunk-CIG6WI7Q.js";
|
|
108
108
|
import "./chunk-UTL3MHPC.js";
|
|
109
109
|
import {
|
|
110
110
|
createVercelPluginTaskCallback,
|
|
111
111
|
queueCallback,
|
|
112
112
|
registerVercelPluginTaskDevConsumer
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-XI4PVY2T.js";
|
|
114
114
|
import {
|
|
115
115
|
validatePluginEgressCredentialHooks,
|
|
116
116
|
validatePluginRegistrations
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-HCIVBCP5.js";
|
|
118
118
|
import {
|
|
119
119
|
defineJuniorPlugins,
|
|
120
120
|
pluginCatalogConfigFromEnv,
|
|
@@ -150,11 +150,11 @@ import {
|
|
|
150
150
|
shouldEmitDevAgentTrace,
|
|
151
151
|
shouldPropagateSandboxEgressTrace,
|
|
152
152
|
unpublishedArtifactHeaders
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-RMB7CERI.js";
|
|
154
154
|
import {
|
|
155
155
|
AuthorizationFlowDisabledError,
|
|
156
156
|
PluginCredentialFailureError
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-6JZGXLL2.js";
|
|
158
158
|
import "./chunk-6Y5B5PEX.js";
|
|
159
159
|
import "./chunk-DIB4GX3G.js";
|
|
160
160
|
import {
|
|
@@ -162,12 +162,12 @@ import {
|
|
|
162
162
|
deleteMcpAuthSessionsForUserProvider,
|
|
163
163
|
deleteMcpServerSessionId,
|
|
164
164
|
deleteMcpStoredOAuthCredentials
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-W2DDJCPS.js";
|
|
166
166
|
import {
|
|
167
167
|
formatProviderLabel,
|
|
168
168
|
postSlackMessage,
|
|
169
169
|
startOAuthFlow
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-UVUXFRYN.js";
|
|
171
171
|
import {
|
|
172
172
|
RESOURCE_EVENT_AUTHOR_ID,
|
|
173
173
|
RESOURCE_EVENT_MESSAGE_AUTHOR,
|
|
@@ -189,10 +189,10 @@ import {
|
|
|
189
189
|
scheduledRunId,
|
|
190
190
|
scheduledRunSchema,
|
|
191
191
|
withScheduledTaskLock
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-VFZAUQ5V.js";
|
|
193
193
|
import {
|
|
194
194
|
parseSlackThreadId
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-CVBDVIF4.js";
|
|
196
196
|
import {
|
|
197
197
|
RetryableDeliveryError,
|
|
198
198
|
createAgentRunner
|
|
@@ -211,7 +211,7 @@ import {
|
|
|
211
211
|
removeActiveConversation,
|
|
212
212
|
requestConversationWork,
|
|
213
213
|
stopConversationWork
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-MQDIIFZM.js";
|
|
215
215
|
import {
|
|
216
216
|
ConversationTurnBoundaryError,
|
|
217
217
|
CooperativeTurnYieldError,
|
|
@@ -229,7 +229,7 @@ import {
|
|
|
229
229
|
markTurnCompleted,
|
|
230
230
|
markTurnFailed,
|
|
231
231
|
startActiveTurn
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-Z5SKZE5B.js";
|
|
233
233
|
import {
|
|
234
234
|
abandonTurnRecord,
|
|
235
235
|
appendThreadContextMessages,
|
|
@@ -265,7 +265,7 @@ import {
|
|
|
265
265
|
trimTrailingAssistantMessages,
|
|
266
266
|
turnHasReply,
|
|
267
267
|
upsertConversationMessage
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-6YGFBU3A.js";
|
|
269
269
|
import {
|
|
270
270
|
getExperimentalFeatures,
|
|
271
271
|
isExperimentalFeatureEnabled,
|
|
@@ -274,7 +274,7 @@ import {
|
|
|
274
274
|
import {
|
|
275
275
|
getSandboxResourceConfig,
|
|
276
276
|
setSandboxResourceConfig
|
|
277
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-XJIPMHKI.js";
|
|
278
278
|
import "./chunk-PDO5BLNM.js";
|
|
279
279
|
import "./chunk-UIE3R5XU.js";
|
|
280
280
|
import {
|
|
@@ -293,7 +293,7 @@ import {
|
|
|
293
293
|
import "./chunk-7H2VZTWN.js";
|
|
294
294
|
import {
|
|
295
295
|
getTurnRequestDeadline
|
|
296
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-WGZJ5SU4.js";
|
|
297
297
|
import {
|
|
298
298
|
SlackActionError,
|
|
299
299
|
bindEventTaskCredentialSubject,
|
|
@@ -319,7 +319,7 @@ import {
|
|
|
319
319
|
verifyEventTaskCredentialSubject,
|
|
320
320
|
verifyScheduledTaskCredentialSubject,
|
|
321
321
|
verifySlackDirectCredentialSubject
|
|
322
|
-
} from "./chunk-
|
|
322
|
+
} from "./chunk-QCGNHSMA.js";
|
|
323
323
|
import "./chunk-3Y47VMHV.js";
|
|
324
324
|
import {
|
|
325
325
|
createSlackDestination,
|
|
@@ -331,7 +331,7 @@ import {
|
|
|
331
331
|
requireSlackDestination,
|
|
332
332
|
withConversationEventLock,
|
|
333
333
|
withConversationMutationLock
|
|
334
|
-
} from "./chunk-
|
|
334
|
+
} from "./chunk-IUUQWIG2.js";
|
|
335
335
|
import {
|
|
336
336
|
juniorAgentBindings,
|
|
337
337
|
juniorAgentInvocations,
|
|
@@ -339,13 +339,13 @@ import {
|
|
|
339
339
|
juniorConversations,
|
|
340
340
|
juniorSchedulerRuns,
|
|
341
341
|
juniorSchedulerTasks
|
|
342
|
-
} from "./chunk-
|
|
343
|
-
import "./chunk-
|
|
342
|
+
} from "./chunk-QVH6FW3T.js";
|
|
343
|
+
import "./chunk-X55FOVZO.js";
|
|
344
344
|
import {
|
|
345
345
|
acquireActiveLock,
|
|
346
346
|
getStateAdapter,
|
|
347
347
|
withActiveLock
|
|
348
|
-
} from "./chunk-
|
|
348
|
+
} from "./chunk-ZX7RSBQ6.js";
|
|
349
349
|
import {
|
|
350
350
|
contextProvenance,
|
|
351
351
|
instructionProvenanceFor
|
|
@@ -368,17 +368,17 @@ import {
|
|
|
368
368
|
isProviderRetryError,
|
|
369
369
|
setProfiles,
|
|
370
370
|
setSlackReactionConfig
|
|
371
|
-
} from "./chunk-
|
|
371
|
+
} from "./chunk-Q7O74WOO.js";
|
|
372
372
|
import {
|
|
373
373
|
defaultModelId,
|
|
374
374
|
modelIdForProfile
|
|
375
375
|
} from "./chunk-D4YV5TDV.js";
|
|
376
|
-
import "./chunk-
|
|
377
|
-
import "./chunk-
|
|
376
|
+
import "./chunk-FIUCHYT6.js";
|
|
377
|
+
import "./chunk-3HEZWDS5.js";
|
|
378
378
|
import {
|
|
379
379
|
pluginCatalogRuntime
|
|
380
|
-
} from "./chunk-
|
|
381
|
-
import "./chunk-
|
|
380
|
+
} from "./chunk-NZLZ4KYZ.js";
|
|
381
|
+
import "./chunk-QIOUTXTZ.js";
|
|
382
382
|
import {
|
|
383
383
|
credentialContextForActor
|
|
384
384
|
} from "./chunk-CEMMLV5L.js";
|
|
@@ -414,13 +414,13 @@ import {
|
|
|
414
414
|
withContext,
|
|
415
415
|
withLogContext,
|
|
416
416
|
withSpan
|
|
417
|
-
} from "./chunk-
|
|
417
|
+
} from "./chunk-QIMN3FXL.js";
|
|
418
418
|
import {
|
|
419
419
|
continueTrace
|
|
420
420
|
} from "./chunk-PEQXYSSE.js";
|
|
421
421
|
import {
|
|
422
422
|
JUNIOR_VERSION
|
|
423
|
-
} from "./chunk-
|
|
423
|
+
} from "./chunk-32XSSFZV.js";
|
|
424
424
|
|
|
425
425
|
// src/app.ts
|
|
426
426
|
import { createRequire } from "module";
|
|
@@ -2951,9 +2951,7 @@ async function resolveSlackResourceEventThread(args) {
|
|
|
2951
2951
|
);
|
|
2952
2952
|
const threadTs = routing?.source?.platform === "slack" ? routing.source.threadTs?.trim() : void 0;
|
|
2953
2953
|
if (!threadTs) {
|
|
2954
|
-
|
|
2955
|
-
`Conversation ${args.conversationId} is missing a Slack thread for resource-event delivery`
|
|
2956
|
-
);
|
|
2954
|
+
return void 0;
|
|
2957
2955
|
}
|
|
2958
2956
|
return { destination, threadTs };
|
|
2959
2957
|
}
|
|
@@ -3398,6 +3396,13 @@ function createSlackConversationWorker(options) {
|
|
|
3398
3396
|
conversationStore: options.conversationStore,
|
|
3399
3397
|
destination: context.destination
|
|
3400
3398
|
}) : void 0;
|
|
3399
|
+
if (hasPlainResourceEvent && !resourceEventThread) {
|
|
3400
|
+
logWarn("conversation.work.resource_event.missing_thread", {
|
|
3401
|
+
"app.inbound.message_count": records.length
|
|
3402
|
+
});
|
|
3403
|
+
await context.attempt.ack();
|
|
3404
|
+
return { status: "completed" };
|
|
3405
|
+
}
|
|
3401
3406
|
const turnResult = await runWithSlackInstallation({
|
|
3402
3407
|
adapter,
|
|
3403
3408
|
installation: resourceEventThread ? { teamId: resourceEventThread.destination.teamId } : getInstallation(records),
|
|
@@ -7276,8 +7281,7 @@ function createSlackTurn(deps) {
|
|
|
7276
7281
|
// carry the system principal; interactive turns carry the Slack user.
|
|
7277
7282
|
actor: executionActor,
|
|
7278
7283
|
slackConversation,
|
|
7279
|
-
source,
|
|
7280
|
-
...location ? { location } : void 0,
|
|
7284
|
+
source: location ? { ...source, location } : source,
|
|
7281
7285
|
destination,
|
|
7282
7286
|
publishExternally: shouldPublishExternally2(
|
|
7283
7287
|
options.publishExternally
|
|
@@ -7309,7 +7313,10 @@ function createSlackTurn(deps) {
|
|
|
7309
7313
|
});
|
|
7310
7314
|
}
|
|
7311
7315
|
},
|
|
7312
|
-
delivery:
|
|
7316
|
+
delivery: {
|
|
7317
|
+
...location && shouldPublishExternally2(options.publishExternally) ? { location } : void 0,
|
|
7318
|
+
send: deliverAssistantMessage
|
|
7319
|
+
},
|
|
7313
7320
|
durability: {
|
|
7314
7321
|
onInputCommitted: options.ack,
|
|
7315
7322
|
drainSteeringMessages,
|
|
@@ -8485,7 +8492,6 @@ async function runPausedTurnInContext(payload, options, runOptions) {
|
|
|
8485
8492
|
credentialContext,
|
|
8486
8493
|
actor,
|
|
8487
8494
|
destination: routingDestination,
|
|
8488
|
-
...routing.location ? { location: routing.location } : void 0,
|
|
8489
8495
|
// Slack resume publishes unless the checkpoint opted out.
|
|
8490
8496
|
// Missing means legacy/in-flight Slack turns still post.
|
|
8491
8497
|
publishExternally: activeTurn.publishExternally !== false,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-NZLZ4KYZ.js";
|
|
4
|
+
import "./chunk-QIOUTXTZ.js";
|
|
5
5
|
import "./chunk-CEMMLV5L.js";
|
|
6
6
|
import "./chunk-N7TMSOZH.js";
|
|
7
7
|
import "./chunk-DWPN6SCH.js";
|
|
8
8
|
import "./chunk-TXKUKMVO.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-QIMN3FXL.js";
|
|
10
10
|
import "./chunk-PEQXYSSE.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-32XSSFZV.js";
|
|
12
12
|
export {
|
|
13
13
|
pluginCatalogRuntime
|
|
14
14
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** Input for one Run through Junior's agent. */
|
|
2
2
|
import type { Destination, ReplyAttribution, Source, SystemActor } from "@sentry/junior-plugin-api";
|
|
3
|
+
import type { Location } from "@/chat/conversations/location";
|
|
3
4
|
import type { LocationConfigurationService } from "@/chat/configuration/types";
|
|
4
5
|
import type { ConversationPrivacy } from "@/chat/conversation-privacy";
|
|
5
|
-
import type { Location } from "@/chat/conversations/location";
|
|
6
6
|
import type { CredentialContext } from "@/chat/credentials/context";
|
|
7
7
|
import type { PiMessage } from "@/chat/pi/messages";
|
|
8
8
|
import type { Actor } from "@/chat/actor";
|
|
@@ -102,7 +102,12 @@ export type AgentRunState = {
|
|
|
102
102
|
* The runner must commit the preceding agent boundary before invoking this
|
|
103
103
|
* port; the accepted reply transaction appends only this message.
|
|
104
104
|
*/
|
|
105
|
-
export type
|
|
105
|
+
export type Delivery = {
|
|
106
|
+
/** Location where this capability can send output, when outside Junior. */
|
|
107
|
+
location?: Location;
|
|
108
|
+
/** Send one accepted assistant message. */
|
|
109
|
+
send(message: AssistantMessage): void | Promise<void>;
|
|
110
|
+
};
|
|
106
111
|
/** Resume the agent turn after a transient or ambiguous delivery failure. */
|
|
107
112
|
export declare class RetryableDeliveryError extends Error {
|
|
108
113
|
constructor(cause: unknown);
|
|
@@ -173,17 +178,8 @@ export type AgentRun = {
|
|
|
173
178
|
/** Credential authority projected from actor (plus optional subject). */
|
|
174
179
|
credentialContext?: CredentialContext;
|
|
175
180
|
source: Source;
|
|
176
|
-
/**
|
|
177
|
-
* Transitional Conversation Location for this Run.
|
|
178
|
-
* TODO(dcramer): Remove top-level Location, Destination, and
|
|
179
|
-
* publishExternally after Source and Delivery contain Location across new,
|
|
180
|
-
* resumed, and child Runs.
|
|
181
|
-
*/
|
|
182
|
-
location?: Location;
|
|
183
181
|
destination: Destination;
|
|
184
|
-
/** When true, also publish assistant output to the conversation destination. */
|
|
185
182
|
publishExternally?: boolean;
|
|
186
|
-
/** Confirmed visibility of the destination where this run is delivered. */
|
|
187
183
|
destinationVisibility?: ConversationPrivacy;
|
|
188
184
|
surface?: AgentTurnSurface;
|
|
189
185
|
dispatch?: AgentDispatch;
|
|
@@ -215,7 +211,7 @@ export type AgentRun = {
|
|
|
215
211
|
state?: AgentRunState;
|
|
216
212
|
/** Best-effort progress only. */
|
|
217
213
|
onEvent?: (event: AgentEvent) => void | Promise<void>;
|
|
218
|
-
delivery?:
|
|
214
|
+
delivery?: Delivery;
|
|
219
215
|
durability?: AgentDurability;
|
|
220
216
|
};
|
|
221
217
|
/** Return whether one optional agent capability is disabled for this run. */
|