@sentry/junior 0.145.0 → 0.146.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-L7D2BDVV.js → agent-hooks-SLJADYE5.js} +10 -10
- package/dist/api.js +19 -19
- package/dist/app.js +97 -84
- package/dist/{catalog-runtime-QLAC4Q3W.js → catalog-runtime-RQIMSDPR.js} +5 -5
- package/dist/chat/agent/resume.d.ts +0 -3
- package/dist/chat/agent/skills.d.ts +0 -1
- package/dist/chat/agent/tools.d.ts +0 -1
- package/dist/chat/conversations/message-search.d.ts +32 -0
- package/dist/chat/conversations/sql/message-search.d.ts +4 -0
- package/dist/chat/conversations/tool-source.d.ts +5 -0
- package/dist/chat/db.d.ts +2 -2
- package/dist/chat/slack/message/attachments.d.ts +2 -0
- package/dist/chat/slack/message/blocks.d.ts +2 -0
- package/dist/chat/slack/message/content.d.ts +18 -0
- package/dist/chat/slack/message/identity.d.ts +7 -0
- package/dist/chat/slack/tools/{conversation-search.d.ts → conversation-message-search.d.ts} +21 -14
- package/dist/chat/slack/tools/user-lookup.d.ts +2 -1
- package/dist/chat/task-execution/checkpoint.d.ts +1 -3
- package/dist/chat/task-execution/turn-cursor.d.ts +0 -9
- package/dist/chat/tools/{query-conversation-events.d.ts → search-conversation-events.d.ts} +3 -3
- package/dist/{chunk-2UH3JI64.js → chunk-37EVZP66.js} +41 -29
- package/dist/{chunk-CD2XFGYQ.js → chunk-37JJDS4H.js} +1 -1
- package/dist/{chunk-I47UGQPJ.js → chunk-47OSH2ZO.js} +7 -7
- package/dist/{chunk-RUSS62EN.js → chunk-AISNSNDV.js} +3 -3
- package/dist/{chunk-2LWPFSB4.js → chunk-B63BF443.js} +1 -1
- package/dist/{chunk-64SBYW2O.js → chunk-BLETMLRX.js} +455 -162
- package/dist/{chunk-GDV5LXRA.js → chunk-F7REGDKO.js} +1 -1
- package/dist/{chunk-B46ZMVOV.js → chunk-FEKQHPVA.js} +5 -5
- package/dist/{chunk-5PNPQYTO.js → chunk-FGHADGIC.js} +2 -2
- package/dist/{chunk-GUWLDMGF.js → chunk-FXDDDSPL.js} +4 -4
- package/dist/{chunk-ZIAMN2UW.js → chunk-GDQEU4I7.js} +16 -28
- package/dist/{chunk-QUG4JSZK.js → chunk-GYEKOX7N.js} +1 -1
- package/dist/{chunk-QJBDABQA.js → chunk-H6U2U3EP.js} +10 -10
- package/dist/{chunk-DS3J6WGY.js → chunk-HQE6EJS5.js} +1 -1
- package/dist/{chunk-HISR3DTV.js → chunk-JUA6VU2Z.js} +5 -7
- package/dist/{chunk-PJ4NMVQB.js → chunk-LVW7BLLT.js} +2 -2
- package/dist/{chunk-LVVSIMBB.js → chunk-M6ZWP4RI.js} +1 -1
- package/dist/{chunk-27TEJTZO.js → chunk-MCFIXAV5.js} +1 -1
- package/dist/{chunk-XFKIRN3Q.js → chunk-MKRIZ4VG.js} +2 -3
- package/dist/{chunk-2XET6PKP.js → chunk-OFPYOC3M.js} +15 -16
- package/dist/{chunk-SIN3MXH6.js → chunk-PB222GIA.js} +1 -1
- package/dist/{chunk-DXEQAIUV.js → chunk-PH4Q3A6W.js} +1 -1
- package/dist/{chunk-JTGS3ZZE.js → chunk-QG7OOKIN.js} +1 -1
- package/dist/{chunk-EIX2LQ6L.js → chunk-QSXZ42KX.js} +3 -3
- package/dist/{chunk-ZIMRGFYL.js → chunk-SCGVWUZX.js} +6 -6
- package/dist/{chunk-VTDMB7XX.js → chunk-T5GXFFLA.js} +1 -1
- package/dist/{chunk-WF5HVH3M.js → chunk-TCEJ7XXM.js} +1 -1
- package/dist/{chunk-TZRXYWRE.js → chunk-V6SRLKUB.js} +2 -2
- package/dist/{chunk-ZYAJMESY.js → chunk-W65V465O.js} +2 -2
- package/dist/{chunk-YD54Q45G.js → chunk-X22KCSCO.js} +4 -4
- package/dist/{chunk-HLOUZC5C.js → chunk-X2WMBTS3.js} +4 -4
- package/dist/{chunk-FUBRJA5F.js → chunk-ZDGHGY74.js} +6 -6
- package/dist/cli/chat.js +32 -32
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/{db-62PW6LM3.js → db-WWOMXWTT.js} +9 -9
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-6NZNHJAM.js → oauth-callback-server-A6ZZX74U.js} +23 -23
- package/dist/{runner-GCRPG3GQ.js → runner-KSGB2UAV.js} +15 -17
- package/dist/{skills-2S3MDFIQ.js → skills-26QPWKVS.js} +6 -6
- package/dist/{spawn-7WK37BTD.js → spawn-5LAJXZ2P.js} +17 -17
- package/dist/{validation-HAOLCJ5A.js → validation-OPSRGFGH.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-R4XYKMUW.js → work-VMSW7STJ.js} +16 -16
- package/dist/{worker-U2UCVR7M.js → worker-2JNFB7C7.js} +10 -10
- package/package.json +5 -5
- package/dist/chat/conversations/search.d.ts +0 -24
- package/dist/chat/conversations/sql/search.d.ts +0 -4
- package/dist/chat/slack/legacy-attachments.d.ts +0 -4
- package/dist/chat/slack/message.d.ts +0 -12
|
@@ -11,21 +11,21 @@ import {
|
|
|
11
11
|
getPlugins,
|
|
12
12
|
setPlugins,
|
|
13
13
|
validatePlugins
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-SCGVWUZX.js";
|
|
15
|
+
import "./chunk-V6SRLKUB.js";
|
|
16
|
+
import "./chunk-37EVZP66.js";
|
|
17
|
+
import "./chunk-MCFIXAV5.js";
|
|
18
18
|
import "./chunk-EM225ITJ.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-GYEKOX7N.js";
|
|
20
|
+
import "./chunk-MKRIZ4VG.js";
|
|
21
21
|
import "./chunk-VFUK3X5B.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-QG7OOKIN.js";
|
|
23
23
|
import "./chunk-HZF5P5UN.js";
|
|
24
24
|
import "./chunk-F3B2YJ76.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-B63BF443.js";
|
|
26
26
|
import "./chunk-6GWA276C.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-HQE6EJS5.js";
|
|
28
|
+
import "./chunk-F7REGDKO.js";
|
|
29
29
|
import "./chunk-MLKGABMK.js";
|
|
30
30
|
export {
|
|
31
31
|
PluginHookDeniedError,
|
package/dist/api.js
CHANGED
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
formatSlackConversationRedactedLabel,
|
|
35
35
|
readHealthReport,
|
|
36
36
|
resolveSlackConversationContextFromThreadId
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LVW7BLLT.js";
|
|
38
38
|
import {
|
|
39
39
|
buildSentryConversationUrl
|
|
40
40
|
} from "./chunk-4CODA7P5.js";
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
readTaskExecutionSummaries,
|
|
46
46
|
readTaskExecutions,
|
|
47
47
|
readTaskRuns
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-QSXZ42KX.js";
|
|
49
49
|
import {
|
|
50
50
|
healthReportSchema,
|
|
51
51
|
pluginOperationalReportFeedSchema,
|
|
@@ -64,13 +64,13 @@ import {
|
|
|
64
64
|
listPublicEventTasksForTeams,
|
|
65
65
|
listPublicScheduledTasksForTeams,
|
|
66
66
|
readStats
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-X22KCSCO.js";
|
|
68
68
|
import {
|
|
69
69
|
parseSlackThreadId
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-PH4Q3A6W.js";
|
|
71
71
|
import {
|
|
72
72
|
fallbackShortTitle
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-W65V465O.js";
|
|
74
74
|
import {
|
|
75
75
|
agentTurnUsageSchema,
|
|
76
76
|
hasAgentTurnUsage,
|
|
@@ -83,44 +83,44 @@ import {
|
|
|
83
83
|
listConversationAnnotations,
|
|
84
84
|
renderPluginConversationEvent,
|
|
85
85
|
resolveViewerUser
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-SCGVWUZX.js";
|
|
87
87
|
import {
|
|
88
88
|
getSlackClient,
|
|
89
89
|
withSlackRetries
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-V6SRLKUB.js";
|
|
91
91
|
import {
|
|
92
92
|
decodeStoredConversationEvent,
|
|
93
93
|
getDb,
|
|
94
94
|
getSqlExecutor,
|
|
95
95
|
locationFromRow,
|
|
96
96
|
parseSessionSource
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-37EVZP66.js";
|
|
98
98
|
import {
|
|
99
99
|
juniorApiTokens,
|
|
100
100
|
juniorConversationEvents,
|
|
101
101
|
juniorConversations,
|
|
102
102
|
juniorIdentities,
|
|
103
103
|
juniorUsers
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-MCFIXAV5.js";
|
|
105
105
|
import "./chunk-EM225ITJ.js";
|
|
106
|
-
import "./chunk-
|
|
107
|
-
import "./chunk-
|
|
106
|
+
import "./chunk-GYEKOX7N.js";
|
|
107
|
+
import "./chunk-MKRIZ4VG.js";
|
|
108
108
|
import {
|
|
109
109
|
juniorDestinations
|
|
110
110
|
} from "./chunk-VFUK3X5B.js";
|
|
111
111
|
import {
|
|
112
112
|
canExposeConversationPayload
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-QG7OOKIN.js";
|
|
114
114
|
import "./chunk-HZF5P5UN.js";
|
|
115
115
|
import {
|
|
116
116
|
parseSlackChannelId,
|
|
117
117
|
parseSlackMessageTs,
|
|
118
118
|
parseSlackTeamId
|
|
119
119
|
} from "./chunk-F3B2YJ76.js";
|
|
120
|
-
import "./chunk-
|
|
120
|
+
import "./chunk-B63BF443.js";
|
|
121
121
|
import "./chunk-6GWA276C.js";
|
|
122
|
-
import "./chunk-
|
|
123
|
-
import "./chunk-
|
|
122
|
+
import "./chunk-HQE6EJS5.js";
|
|
123
|
+
import "./chunk-F7REGDKO.js";
|
|
124
124
|
import "./chunk-MLKGABMK.js";
|
|
125
125
|
|
|
126
126
|
// src/api.ts
|
|
@@ -2717,7 +2717,7 @@ function readDescriptionText(home) {
|
|
|
2717
2717
|
}
|
|
2718
2718
|
}
|
|
2719
2719
|
async function readSkillReports() {
|
|
2720
|
-
const { discoverSkills } = await import("./skills-
|
|
2720
|
+
const { discoverSkills } = await import("./skills-26QPWKVS.js");
|
|
2721
2721
|
const skills = await discoverSkills();
|
|
2722
2722
|
return skillReportsSchema.parse(
|
|
2723
2723
|
skills.map((skill) => ({
|
|
@@ -2727,7 +2727,7 @@ async function readSkillReports() {
|
|
|
2727
2727
|
);
|
|
2728
2728
|
}
|
|
2729
2729
|
async function readPlugins() {
|
|
2730
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
2730
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-RQIMSDPR.js");
|
|
2731
2731
|
return pluginsSchema.parse(
|
|
2732
2732
|
pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
2733
2733
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
@@ -2740,7 +2740,7 @@ async function readPlugins() {
|
|
|
2740
2740
|
async function readRuntimeInfoReport() {
|
|
2741
2741
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
2742
2742
|
import("./discovery-GUFTFBTL.js"),
|
|
2743
|
-
import("./catalog-runtime-
|
|
2743
|
+
import("./catalog-runtime-RQIMSDPR.js"),
|
|
2744
2744
|
readPlugins(),
|
|
2745
2745
|
readSkillReports()
|
|
2746
2746
|
]);
|
|
@@ -2756,7 +2756,7 @@ async function readRuntimeInfoReport() {
|
|
|
2756
2756
|
}
|
|
2757
2757
|
async function readPluginOperationalReportFeed() {
|
|
2758
2758
|
const nowMs = Date.now();
|
|
2759
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
2759
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-SLJADYE5.js");
|
|
2760
2760
|
return pluginOperationalReportFeedSchema.parse({
|
|
2761
2761
|
source: "plugins",
|
|
2762
2762
|
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-AISNSNDV.js";
|
|
4
4
|
import {
|
|
5
5
|
bindSpawnAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M6ZWP4RI.js";
|
|
7
7
|
import {
|
|
8
8
|
createAgentInvocationWorker,
|
|
9
9
|
enqueueAgentInvocation,
|
|
10
10
|
listPendingAgentInvocationMailboxAppends,
|
|
11
11
|
routeAgentInvocationWork
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JUA6VU2Z.js";
|
|
13
13
|
import {
|
|
14
14
|
GET as GET2,
|
|
15
15
|
GET2 as GET3,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
startSlackProcessingReaction,
|
|
39
39
|
stripLeadingBotMention,
|
|
40
40
|
wakePausedTurn
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-OFPYOC3M.js";
|
|
42
42
|
import "./chunk-FA6POGLH.js";
|
|
43
43
|
import {
|
|
44
44
|
CONVERSATION_WORK_STALE_ENQUEUE_MS,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
isInvalidConversationRecordError,
|
|
51
51
|
listActiveConversationIds,
|
|
52
52
|
removeActiveConversation
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-X2WMBTS3.js";
|
|
54
54
|
import {
|
|
55
55
|
buildConversationContext,
|
|
56
56
|
buildDeliveredTurnStatePatch,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
scheduleSessionCompletedPluginTasks,
|
|
92
92
|
turnHasReply,
|
|
93
93
|
upsertConversationMessage
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-H6U2U3EP.js";
|
|
95
95
|
import {
|
|
96
96
|
ConversationTurnLifecycleService
|
|
97
97
|
} from "./chunk-Q6QZTTLS.js";
|
|
@@ -100,11 +100,11 @@ import {
|
|
|
100
100
|
conversationVisibilityFromSlackChannelType,
|
|
101
101
|
resolveSlackChannelTypeFromMessage,
|
|
102
102
|
resolveSlackConversationContext
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-LVW7BLLT.js";
|
|
104
104
|
import "./chunk-4CODA7P5.js";
|
|
105
105
|
import {
|
|
106
106
|
recordTaskExecution
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-QSXZ42KX.js";
|
|
108
108
|
import "./chunk-UTL3MHPC.js";
|
|
109
109
|
import {
|
|
110
110
|
getVercelConversationWorkQueue,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
import {
|
|
124
124
|
validatePluginEgressCredentialHooks,
|
|
125
125
|
validatePluginRegistrations
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-TCEJ7XXM.js";
|
|
127
127
|
import {
|
|
128
128
|
defineJuniorPlugins,
|
|
129
129
|
pluginCatalogConfigFromEnv,
|
|
@@ -132,7 +132,6 @@ import {
|
|
|
132
132
|
} from "./chunk-FIANEE7Z.js";
|
|
133
133
|
import {
|
|
134
134
|
SANDBOX_EGRESS_PROXY_PATH,
|
|
135
|
-
appendSlackLegacyAttachmentText,
|
|
136
135
|
buildSteeringPiMessage,
|
|
137
136
|
cancelSubscriptions,
|
|
138
137
|
clearSandboxEgressSignals,
|
|
@@ -149,25 +148,26 @@ import {
|
|
|
149
148
|
listThreadReplies,
|
|
150
149
|
normalizeSandboxEgressTracePropagationDomains,
|
|
151
150
|
parseSandboxEgressCredentialToken,
|
|
152
|
-
|
|
151
|
+
renderAttachmentText,
|
|
152
|
+
renderBlockText,
|
|
153
153
|
resolveDestinationVisibility,
|
|
154
154
|
resolveSandboxEgressProviderForHost,
|
|
155
155
|
sanitizeScheduledTaskPrincipal,
|
|
156
156
|
setConfigDefaults,
|
|
157
157
|
shouldEmitDevAgentTrace,
|
|
158
158
|
shouldPropagateSandboxEgressTrace
|
|
159
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-BLETMLRX.js";
|
|
160
160
|
import {
|
|
161
161
|
AuthorizationFlowDisabledError,
|
|
162
162
|
PluginCredentialFailureError
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-FEKQHPVA.js";
|
|
164
164
|
import "./chunk-DIB4GX3G.js";
|
|
165
165
|
import {
|
|
166
166
|
createUserTokenStore,
|
|
167
167
|
deleteMcpAuthSessionsForUserProvider,
|
|
168
168
|
deleteMcpServerSessionId,
|
|
169
169
|
deleteMcpStoredOAuthCredentials
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-47OSH2ZO.js";
|
|
171
171
|
import {
|
|
172
172
|
RetryableDeliveryError
|
|
173
173
|
} from "./chunk-R776HKPK.js";
|
|
@@ -175,10 +175,10 @@ import {
|
|
|
175
175
|
formatProviderLabel,
|
|
176
176
|
postSlackMessage,
|
|
177
177
|
startOAuthFlow
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-ZDGHGY74.js";
|
|
179
179
|
import {
|
|
180
180
|
estimateTextTokens
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-T5GXFFLA.js";
|
|
182
182
|
import {
|
|
183
183
|
ConversationTurnBoundaryError,
|
|
184
184
|
CooperativeTurnYieldError,
|
|
@@ -225,7 +225,7 @@ import {
|
|
|
225
225
|
startActiveTurn,
|
|
226
226
|
stripRuntimeTurnContext,
|
|
227
227
|
trimTrailingAssistantMessages
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-GDQEU4I7.js";
|
|
229
229
|
import "./chunk-3Y47VMHV.js";
|
|
230
230
|
import "./chunk-HUO3UTAQ.js";
|
|
231
231
|
import {
|
|
@@ -235,17 +235,17 @@ import {
|
|
|
235
235
|
import {
|
|
236
236
|
getSandboxResourceConfig,
|
|
237
237
|
setSandboxResourceConfig
|
|
238
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-FXDDDSPL.js";
|
|
239
239
|
import {
|
|
240
240
|
createSchedulerSqlStore,
|
|
241
241
|
findMatchingEventTasks,
|
|
242
242
|
logScheduledTaskRunSkipped,
|
|
243
243
|
scheduledTaskRunAttributes
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-X22KCSCO.js";
|
|
245
245
|
import {
|
|
246
246
|
parseSlackThreadId
|
|
247
|
-
} from "./chunk-
|
|
248
|
-
import "./chunk-
|
|
247
|
+
} from "./chunk-PH4Q3A6W.js";
|
|
248
|
+
import "./chunk-W65V465O.js";
|
|
249
249
|
import "./chunk-HLXXQI5Q.js";
|
|
250
250
|
import "./chunk-PDO5BLNM.js";
|
|
251
251
|
import "./chunk-UIE3R5XU.js";
|
|
@@ -265,7 +265,7 @@ import {
|
|
|
265
265
|
verifyEventTaskCredentialSubject,
|
|
266
266
|
verifyScheduledTaskCredentialSubject,
|
|
267
267
|
verifySlackDirectCredentialSubject
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-SCGVWUZX.js";
|
|
269
269
|
import {
|
|
270
270
|
SlackActionError,
|
|
271
271
|
downloadPrivateSlackFile,
|
|
@@ -275,7 +275,7 @@ import {
|
|
|
275
275
|
normalizeSlackConversationId,
|
|
276
276
|
runWithSlackInstallationToken,
|
|
277
277
|
runWithWorkspaceTeamId
|
|
278
|
-
} from "./chunk-
|
|
278
|
+
} from "./chunk-V6SRLKUB.js";
|
|
279
279
|
import {
|
|
280
280
|
contextProvenance,
|
|
281
281
|
createSlackDestination,
|
|
@@ -287,19 +287,19 @@ import {
|
|
|
287
287
|
requireSlackDestination,
|
|
288
288
|
withConversationEventLock,
|
|
289
289
|
withConversationMutationLock
|
|
290
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-37EVZP66.js";
|
|
291
291
|
import {
|
|
292
292
|
juniorAgentBindings,
|
|
293
293
|
juniorAgentInvocations,
|
|
294
294
|
juniorConversationEvents,
|
|
295
295
|
juniorConversations
|
|
296
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-MCFIXAV5.js";
|
|
297
297
|
import "./chunk-EM225ITJ.js";
|
|
298
298
|
import {
|
|
299
299
|
acquireActiveLock,
|
|
300
300
|
getStateAdapter,
|
|
301
301
|
withActiveLock
|
|
302
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-GYEKOX7N.js";
|
|
303
303
|
import {
|
|
304
304
|
STANDARD_MODEL_PROFILE,
|
|
305
305
|
botConfig,
|
|
@@ -317,16 +317,16 @@ import {
|
|
|
317
317
|
modelIdForProfile,
|
|
318
318
|
setSlackReactionConfig,
|
|
319
319
|
standardModelId
|
|
320
|
-
} from "./chunk-
|
|
320
|
+
} from "./chunk-MKRIZ4VG.js";
|
|
321
321
|
import {
|
|
322
322
|
juniorDestinations
|
|
323
323
|
} from "./chunk-VFUK3X5B.js";
|
|
324
|
-
import "./chunk-
|
|
325
|
-
import "./chunk-
|
|
324
|
+
import "./chunk-QG7OOKIN.js";
|
|
325
|
+
import "./chunk-FGHADGIC.js";
|
|
326
326
|
import {
|
|
327
327
|
pluginCatalogRuntime
|
|
328
|
-
} from "./chunk-
|
|
329
|
-
import "./chunk-
|
|
328
|
+
} from "./chunk-PB222GIA.js";
|
|
329
|
+
import "./chunk-37JJDS4H.js";
|
|
330
330
|
import {
|
|
331
331
|
credentialContextForActor
|
|
332
332
|
} from "./chunk-RUIXF3YQ.js";
|
|
@@ -358,7 +358,7 @@ import {
|
|
|
358
358
|
withContext,
|
|
359
359
|
withLogContext,
|
|
360
360
|
withSpan
|
|
361
|
-
} from "./chunk-
|
|
361
|
+
} from "./chunk-B63BF443.js";
|
|
362
362
|
import {
|
|
363
363
|
continueTrace
|
|
364
364
|
} from "./chunk-6GWA276C.js";
|
|
@@ -366,10 +366,10 @@ import "./chunk-OOUNJNMR.js";
|
|
|
366
366
|
import "./chunk-H4HBKISO.js";
|
|
367
367
|
import {
|
|
368
368
|
JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE
|
|
369
|
-
} from "./chunk-
|
|
369
|
+
} from "./chunk-HQE6EJS5.js";
|
|
370
370
|
import {
|
|
371
371
|
JUNIOR_VERSION
|
|
372
|
-
} from "./chunk-
|
|
372
|
+
} from "./chunk-F7REGDKO.js";
|
|
373
373
|
import "./chunk-MLKGABMK.js";
|
|
374
374
|
|
|
375
375
|
// src/app.ts
|
|
@@ -4649,23 +4649,38 @@ async function decideSubscribedThreadReply(args) {
|
|
|
4649
4649
|
}
|
|
4650
4650
|
}
|
|
4651
4651
|
|
|
4652
|
-
// src/chat/slack/message.ts
|
|
4652
|
+
// src/chat/slack/message/content.ts
|
|
4653
4653
|
import { stringifyMarkdown } from "chat";
|
|
4654
|
-
function
|
|
4655
|
-
const
|
|
4656
|
-
if (
|
|
4657
|
-
|
|
4658
|
-
}
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
return
|
|
4654
|
+
function combineText(text, attachmentText) {
|
|
4655
|
+
const topLevelText = text.trim();
|
|
4656
|
+
if (!attachmentText) return topLevelText;
|
|
4657
|
+
if (!topLevelText) return attachmentText;
|
|
4658
|
+
return `${topLevelText}
|
|
4659
|
+
${attachmentText}`;
|
|
4660
|
+
}
|
|
4661
|
+
function replaceTopLevelText(content, text) {
|
|
4662
|
+
return combineText(text, content.attachmentText);
|
|
4663
4663
|
}
|
|
4664
|
-
function
|
|
4664
|
+
function readRawBlocks(raw) {
|
|
4665
|
+
if (!raw || typeof raw !== "object") return void 0;
|
|
4666
|
+
return raw.blocks;
|
|
4667
|
+
}
|
|
4668
|
+
function renderTopLevelText(message) {
|
|
4665
4669
|
if (message.formatted.children.length > 0) {
|
|
4666
4670
|
return stringifyMarkdown(message.formatted).trim();
|
|
4667
4671
|
}
|
|
4668
|
-
|
|
4672
|
+
const text = message.text.trim();
|
|
4673
|
+
return text || renderBlockText(readRawBlocks(message.raw));
|
|
4674
|
+
}
|
|
4675
|
+
function parseContent(message) {
|
|
4676
|
+
const topLevelText = renderTopLevelText(message);
|
|
4677
|
+
const attachmentText = renderAttachmentText(message.raw);
|
|
4678
|
+
return {
|
|
4679
|
+
attachmentText,
|
|
4680
|
+
hasAttachments: message.attachments.length > 0 || attachmentText.length > 0,
|
|
4681
|
+
text: combineText(topLevelText, attachmentText),
|
|
4682
|
+
topLevelText
|
|
4683
|
+
};
|
|
4669
4684
|
}
|
|
4670
4685
|
|
|
4671
4686
|
// src/chat/runtime/turn-input.ts
|
|
@@ -4695,9 +4710,9 @@ function shouldRethrowTurnControlError(error) {
|
|
|
4695
4710
|
}
|
|
4696
4711
|
function getQueuedMessages(context, options) {
|
|
4697
4712
|
return (context?.skipped ?? []).map((message) => {
|
|
4698
|
-
const
|
|
4713
|
+
const content = parseContent(message);
|
|
4699
4714
|
const stripped = options.stripLeadingBotMention(
|
|
4700
|
-
stripLeadingSteeringOverride(
|
|
4715
|
+
stripLeadingSteeringOverride(content.topLevelText),
|
|
4701
4716
|
{
|
|
4702
4717
|
stripLeadingSlackMentionToken: options.explicitMention || Boolean(message.isMention)
|
|
4703
4718
|
}
|
|
@@ -4705,8 +4720,8 @@ function getQueuedMessages(context, options) {
|
|
|
4705
4720
|
return {
|
|
4706
4721
|
explicitMention: Boolean(message.isMention),
|
|
4707
4722
|
message,
|
|
4708
|
-
rawText:
|
|
4709
|
-
userText:
|
|
4723
|
+
rawText: content.text,
|
|
4724
|
+
userText: replaceTopLevelText(content, stripped)
|
|
4710
4725
|
};
|
|
4711
4726
|
});
|
|
4712
4727
|
}
|
|
@@ -4847,23 +4862,22 @@ function createSlackTurnRuntime(deps) {
|
|
|
4847
4862
|
channelId: deps.getChannelId(thread, message),
|
|
4848
4863
|
runId: deps.getRunId(thread, message)
|
|
4849
4864
|
};
|
|
4850
|
-
const
|
|
4851
|
-
const messageText = getSlackMessageText(message);
|
|
4865
|
+
const content = parseContent(message);
|
|
4852
4866
|
const strippedUserText = deps.stripLeadingBotMention(
|
|
4853
|
-
stripLeadingSteeringOverride(
|
|
4867
|
+
stripLeadingSteeringOverride(content.topLevelText),
|
|
4854
4868
|
{
|
|
4855
4869
|
stripLeadingSlackMentionToken: Boolean(message.isMention)
|
|
4856
4870
|
}
|
|
4857
4871
|
);
|
|
4858
4872
|
const text = {
|
|
4859
|
-
rawText:
|
|
4860
|
-
userText:
|
|
4873
|
+
rawText: content.text,
|
|
4874
|
+
userText: replaceTopLevelText(content, strippedUserText)
|
|
4861
4875
|
};
|
|
4862
4876
|
const decision = await deps.decideSubscribedReply({
|
|
4863
4877
|
rawText: text.rawText,
|
|
4864
4878
|
text: text.userText,
|
|
4865
4879
|
conversationContext,
|
|
4866
|
-
hasAttachments:
|
|
4880
|
+
hasAttachments: content.hasAttachments,
|
|
4867
4881
|
isExplicitMention: true,
|
|
4868
4882
|
context
|
|
4869
4883
|
});
|
|
@@ -5187,22 +5201,16 @@ function createSlackTurnRuntime(deps) {
|
|
|
5187
5201
|
runId
|
|
5188
5202
|
});
|
|
5189
5203
|
await deps.withSpan("chat.turn", "chat.turn", turnContext, async () => {
|
|
5190
|
-
const
|
|
5191
|
-
message.raw
|
|
5192
|
-
);
|
|
5193
|
-
const messageText = getSlackMessageText(message);
|
|
5204
|
+
const content = parseContent(message);
|
|
5194
5205
|
const strippedUserText = deps.stripLeadingBotMention(
|
|
5195
|
-
stripLeadingSteeringOverride(
|
|
5206
|
+
stripLeadingSteeringOverride(content.topLevelText),
|
|
5196
5207
|
{
|
|
5197
5208
|
stripLeadingSlackMentionToken: Boolean(message.isMention)
|
|
5198
5209
|
}
|
|
5199
5210
|
);
|
|
5200
5211
|
const currentText = {
|
|
5201
|
-
rawText:
|
|
5202
|
-
userText:
|
|
5203
|
-
strippedUserText,
|
|
5204
|
-
message.raw
|
|
5205
|
-
)
|
|
5212
|
+
rawText: content.text,
|
|
5213
|
+
userText: replaceTopLevelText(content, strippedUserText)
|
|
5206
5214
|
};
|
|
5207
5215
|
const threadContext = {
|
|
5208
5216
|
threadId,
|
|
@@ -5250,9 +5258,9 @@ function createSlackTurnRuntime(deps) {
|
|
|
5250
5258
|
rawText: combinedText.rawText,
|
|
5251
5259
|
text: combinedText.userText,
|
|
5252
5260
|
conversationContext: deps.getPreparedConversationContext(preparedState),
|
|
5253
|
-
hasAttachments:
|
|
5261
|
+
hasAttachments: content.hasAttachments || queuedMessages.some(
|
|
5254
5262
|
(queued) => queued.message.attachments.length > 0
|
|
5255
|
-
)
|
|
5263
|
+
),
|
|
5256
5264
|
isExplicitMention: turnIsExplicitMention,
|
|
5257
5265
|
context: threadContext
|
|
5258
5266
|
});
|
|
@@ -5967,6 +5975,18 @@ function createJuniorRuntimeServices(overrides = {}) {
|
|
|
5967
5975
|
// src/chat/runtime/reply-executor.ts
|
|
5968
5976
|
import { createSlackSource as createSlackSource2 } from "@sentry/junior-plugin-api";
|
|
5969
5977
|
|
|
5978
|
+
// src/chat/slack/message/identity.ts
|
|
5979
|
+
function getMessageTimestamp(message) {
|
|
5980
|
+
const idTs = parseSlackMessageTs(message.id);
|
|
5981
|
+
if (idTs) {
|
|
5982
|
+
return idTs;
|
|
5983
|
+
}
|
|
5984
|
+
if (message.raw && typeof message.raw === "object") {
|
|
5985
|
+
return parseSlackMessageTs(message.raw.ts);
|
|
5986
|
+
}
|
|
5987
|
+
return void 0;
|
|
5988
|
+
}
|
|
5989
|
+
|
|
5970
5990
|
// src/chat/slack/action-token.ts
|
|
5971
5991
|
import { z as z6 } from "zod";
|
|
5972
5992
|
var slackActionTokenSchema = z6.string().trim().min(1).brand();
|
|
@@ -6128,7 +6148,7 @@ function queuedInstructionActor(queued) {
|
|
|
6128
6148
|
const actor = getMessageActorIdentity(queued.message);
|
|
6129
6149
|
const authorId = actor?.userId ?? parseActorUserId(queued.message.author.userId);
|
|
6130
6150
|
const authorName = actor?.fullName ?? actor?.userName;
|
|
6131
|
-
const slackTs =
|
|
6151
|
+
const slackTs = getMessageTimestamp(queued.message);
|
|
6132
6152
|
return {
|
|
6133
6153
|
...authorId ? { authorId } : {},
|
|
6134
6154
|
...authorName ? { authorName } : {},
|
|
@@ -6262,20 +6282,17 @@ function createReplyToThread(deps) {
|
|
|
6262
6282
|
modelId: standardModelId(botConfig)
|
|
6263
6283
|
},
|
|
6264
6284
|
async () => {
|
|
6265
|
-
const
|
|
6285
|
+
const content = parseContent(message);
|
|
6266
6286
|
const strippedUserText = stripLeadingBotMention(
|
|
6267
|
-
stripLeadingSteeringOverride(
|
|
6287
|
+
stripLeadingSteeringOverride(content.topLevelText),
|
|
6268
6288
|
{
|
|
6269
6289
|
botUserId: deps.getSlackAdapter().botUserId,
|
|
6270
6290
|
stripLeadingSlackMentionToken: options.explicitMention || Boolean(message.isMention)
|
|
6271
6291
|
}
|
|
6272
6292
|
);
|
|
6273
6293
|
const currentText = {
|
|
6274
|
-
rawText:
|
|
6275
|
-
userText:
|
|
6276
|
-
strippedUserText,
|
|
6277
|
-
message.raw
|
|
6278
|
-
)
|
|
6294
|
+
rawText: content.text,
|
|
6295
|
+
userText: replaceTopLevelText(content, strippedUserText)
|
|
6279
6296
|
};
|
|
6280
6297
|
await Promise.all(
|
|
6281
6298
|
(options.queuedMessages ?? []).filter((queued) => !isResourceEventSlackMessage(queued.message)).map(
|
|
@@ -6327,7 +6344,7 @@ function createReplyToThread(deps) {
|
|
|
6327
6344
|
},
|
|
6328
6345
|
skipBackfill: options.skipBackfill
|
|
6329
6346
|
});
|
|
6330
|
-
const slackMessageTs =
|
|
6347
|
+
const slackMessageTs = getMessageTimestamp(message);
|
|
6331
6348
|
const turnId = options.execution?.turnId ?? buildDeterministicTurnId(message.id);
|
|
6332
6349
|
let beforeFirstResponsePostCalled = false;
|
|
6333
6350
|
const beforeFirstResponsePost = async () => {
|
|
@@ -6386,7 +6403,7 @@ function createReplyToThread(deps) {
|
|
|
6386
6403
|
channelId,
|
|
6387
6404
|
runId,
|
|
6388
6405
|
conversation: preparedState.conversation,
|
|
6389
|
-
messageTs:
|
|
6406
|
+
messageTs: getMessageTimestamp(queued.message)
|
|
6390
6407
|
}
|
|
6391
6408
|
)
|
|
6392
6409
|
};
|
|
@@ -7132,7 +7149,6 @@ function createReplyToThread(deps) {
|
|
|
7132
7149
|
turnId,
|
|
7133
7150
|
durationMs: reply.diagnostics.durationMs,
|
|
7134
7151
|
usage: reply.diagnostics.usage,
|
|
7135
|
-
reasoningLevel: reply.diagnostics.reasoningLevel,
|
|
7136
7152
|
destination,
|
|
7137
7153
|
destinationVisibility,
|
|
7138
7154
|
source,
|
|
@@ -7141,7 +7157,6 @@ function createReplyToThread(deps) {
|
|
|
7141
7157
|
...options.execution?.dispatch && turnResult.errorMessage ? { errorMessage: turnResult.errorMessage } : {},
|
|
7142
7158
|
...acceptedDeliveryId ? { resultMessageId: acceptedDeliveryId } : {},
|
|
7143
7159
|
messages: reply.piMessages,
|
|
7144
|
-
modelId: reply.diagnostics.modelId,
|
|
7145
7160
|
actor: executionActor,
|
|
7146
7161
|
surface: options.execution?.surface ?? "slack",
|
|
7147
7162
|
dispatchId: options.execution?.dispatch?.id
|
|
@@ -7442,7 +7457,7 @@ function resolveMessageText(args) {
|
|
|
7442
7457
|
}
|
|
7443
7458
|
function toConversationMessage(args) {
|
|
7444
7459
|
const actor = getMessageActorIdentity(args.entry);
|
|
7445
|
-
const slackTs =
|
|
7460
|
+
const slackTs = getMessageTimestamp(args.entry);
|
|
7446
7461
|
const messageHasPotentialImageAttachment = hasPotentialImageAttachment(
|
|
7447
7462
|
args.entry.attachments
|
|
7448
7463
|
);
|
|
@@ -7477,9 +7492,7 @@ function hasPendingImageHydration(conversation) {
|
|
|
7477
7492
|
);
|
|
7478
7493
|
}
|
|
7479
7494
|
function getBackfillText(entry) {
|
|
7480
|
-
const text = normalizeConversationText(
|
|
7481
|
-
appendSlackLegacyAttachmentText(getSlackMessageText(entry), entry.raw)
|
|
7482
|
-
);
|
|
7495
|
+
const text = normalizeConversationText(parseContent(entry).text);
|
|
7483
7496
|
return text || void 0;
|
|
7484
7497
|
}
|
|
7485
7498
|
async function seedConversationBackfill(thread, conversation, currentTurn) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-PB222GIA.js";
|
|
4
|
+
import "./chunk-37JJDS4H.js";
|
|
5
5
|
import "./chunk-RUIXF3YQ.js";
|
|
6
6
|
import "./chunk-HZF5P5UN.js";
|
|
7
7
|
import "./chunk-F3B2YJ76.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-B63BF443.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-HQE6EJS5.js";
|
|
13
|
+
import "./chunk-F7REGDKO.js";
|
|
14
14
|
import "./chunk-MLKGABMK.js";
|
|
15
15
|
export {
|
|
16
16
|
pluginCatalogRuntime
|
|
@@ -21,9 +21,6 @@ interface ResumeStateArgs {
|
|
|
21
21
|
destinationVisibility?: ConversationPrivacy;
|
|
22
22
|
dispatchId?: string;
|
|
23
23
|
durability: AgentRunDurability;
|
|
24
|
-
getLoadedSkillNames: () => string[];
|
|
25
|
-
getModelId: () => string;
|
|
26
|
-
getReasoningLevel: () => string | undefined;
|
|
27
24
|
recordActiveMcpProviders: () => Promise<void>;
|
|
28
25
|
actor?: Actor;
|
|
29
26
|
runSource: Source;
|