@sentry/junior 0.201.0 → 0.202.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-HMG23EIR.js → agent-hooks-UXITLYOK.js} +11 -11
- package/dist/api.js +24 -24
- package/dist/app.js +59 -38
- package/dist/{catalog-runtime-7TIXWSYG.js → catalog-runtime-BG3JLLK2.js} +4 -4
- package/dist/{chunk-44W7JB5V.js → chunk-2MK3QBGA.js} +1 -1
- package/dist/{chunk-ZXSPPXX3.js → chunk-3PGQSKJV.js} +9 -9
- package/dist/{chunk-IXGQ4NTO.js → chunk-3UI3WFTX.js} +5 -5
- package/dist/{chunk-QHCI2E2A.js → chunk-5NOPO64K.js} +1 -1
- package/dist/{chunk-6QQYL2XW.js → chunk-5PKWYPFT.js} +6 -6
- package/dist/{chunk-PJIU4AGA.js → chunk-63NKKFJL.js} +2 -2
- package/dist/{chunk-VRD7FJZ2.js → chunk-6AYH6252.js} +4 -4
- package/dist/{chunk-73RVLY6A.js → chunk-7DHZP5KJ.js} +2 -2
- package/dist/{chunk-LINEEYW6.js → chunk-A76OIMYN.js} +1 -1
- package/dist/{chunk-KS5RPVQI.js → chunk-AWMS3SPP.js} +3 -3
- package/dist/{chunk-T4WKGKAW.js → chunk-B3LY5RCL.js} +5 -5
- package/dist/{chunk-FNAEGMGB.js → chunk-BD2KT3OB.js} +1 -1
- package/dist/{chunk-H5SDC32F.js → chunk-BXCX5QKA.js} +1 -1
- package/dist/{chunk-APX6WBD7.js → chunk-C6VVF43U.js} +1 -1
- package/dist/{chunk-6CYKW2J7.js → chunk-DBVY6HLX.js} +1 -1
- package/dist/{chunk-3XPQV262.js → chunk-DL2KLKVH.js} +6 -6
- package/dist/{chunk-UEIDAG2O.js → chunk-ELWOYVOY.js} +1 -1
- package/dist/{chunk-J4AWOSCT.js → chunk-EWT7H65X.js} +4 -4
- package/dist/{chunk-NN5Y32TJ.js → chunk-HMREVIO2.js} +2 -2
- package/dist/{chunk-VQ2XYXLB.js → chunk-IIWUT4FO.js} +8 -8
- package/dist/{chunk-GHZ677GD.js → chunk-JSJQEWBJ.js} +21 -21
- package/dist/{chunk-7V4KWIXL.js → chunk-KHKKHDLD.js} +2 -2
- package/dist/{chunk-I7F3JVYE.js → chunk-LA6R4A7Q.js} +3 -3
- package/dist/{chunk-X2PTNIN5.js → chunk-LOOU2DUR.js} +29 -25
- package/dist/{chunk-7YNSWPVU.js → chunk-M6FHWXE3.js} +9 -9
- package/dist/{chunk-VGNL3QUM.js → chunk-M76HMB7M.js} +3 -3
- package/dist/{chunk-SIMN6AUL.js → chunk-MAGNK5J4.js} +1 -1
- package/dist/{chunk-KKI5K43Z.js → chunk-NSXKRGRT.js} +3 -3
- package/dist/{chunk-BQFWG7MB.js → chunk-OWMPFXJA.js} +4 -4
- package/dist/{chunk-UJRD4NN4.js → chunk-PW4P4JYF.js} +1 -1
- package/dist/{chunk-ZPGGVW34.js → chunk-QB54UQUS.js} +5 -5
- package/dist/{chunk-RAWQD5DS.js → chunk-QP3OGJXF.js} +1 -1
- package/dist/{chunk-4DDQVL3Q.js → chunk-REOIRYPR.js} +2 -2
- package/dist/{chunk-OZ2QJWQF.js → chunk-SCOZRLZ4.js} +3 -3
- package/dist/{chunk-Q3BTNRDK.js → chunk-TXJSXBV5.js} +4 -4
- package/dist/{chunk-JYJG6LAG.js → chunk-U2GPUYAL.js} +6 -6
- package/dist/{chunk-5LXHEN3P.js → chunk-WQSHDTTI.js} +8 -8
- package/dist/{chunk-Y6EUAX5O.js → chunk-YDUR3ZYW.js} +1 -1
- package/dist/cli/chat.js +33 -33
- 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-S5DGFIFR.js → db-3L2MCVRI.js} +6 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-JDEUY5KP.js → oauth-callback-server-YVV6C6T2.js} +29 -29
- package/dist/{runner-OQZRPML2.js → runner-LQ7RETDP.js} +21 -21
- package/dist/{skills-4VE2VHGF.js → skills-XRWYEDCD.js} +5 -5
- package/dist/spawn-RC6SJUAI.js +42 -0
- package/dist/task-runner-7DY7ARYH.js +36 -0
- package/dist/{validation-CX2H5J6S.js → validation-7MNQGCJA.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-GUHO34OE.js → work-COALHUCG.js} +21 -21
- package/dist/{worker-F44XXKBH.js → worker-6MURZIPD.js} +10 -10
- package/package.json +5 -5
- package/dist/spawn-4WCYSTFY.js +0 -42
- package/dist/task-runner-7SDXKQ3L.js +0 -36
|
@@ -13,26 +13,26 @@ import {
|
|
|
13
13
|
getPlugins,
|
|
14
14
|
setPlugins,
|
|
15
15
|
validatePlugins
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-U2GPUYAL.js";
|
|
17
17
|
import "./chunk-3Y47VMHV.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-M76HMB7M.js";
|
|
19
|
+
import "./chunk-PW4P4JYF.js";
|
|
20
|
+
import "./chunk-NSXKRGRT.js";
|
|
21
|
+
import "./chunk-2MK3QBGA.js";
|
|
22
22
|
import "./chunk-7NL7T6VU.js";
|
|
23
23
|
import "./chunk-VFUK3X5B.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-63NKKFJL.js";
|
|
25
25
|
import "./chunk-NHJU2ZAL.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-5NOPO64K.js";
|
|
27
|
+
import "./chunk-YDUR3ZYW.js";
|
|
28
|
+
import "./chunk-BXCX5QKA.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-MAGNK5J4.js";
|
|
34
34
|
import "./chunk-PEQXYSSE.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-HMREVIO2.js";
|
|
36
36
|
export {
|
|
37
37
|
PluginHookDeniedError,
|
|
38
38
|
applyPluginFormatMarkdown,
|
package/dist/api.js
CHANGED
|
@@ -78,12 +78,12 @@ import {
|
|
|
78
78
|
resolveSlackConversationContextFromThreadId,
|
|
79
79
|
viewerConversationMembership,
|
|
80
80
|
webActorFromEmail
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-M6FHWXE3.js";
|
|
82
82
|
import {
|
|
83
83
|
buildSentryConversationUrl,
|
|
84
84
|
buildSentryEventUrl,
|
|
85
85
|
getWebAuthorization
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-QP3OGJXF.js";
|
|
87
87
|
import {
|
|
88
88
|
conversationActiveDaysColumn,
|
|
89
89
|
conversationAggregateColumns,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
readTaskExecutionSummaries,
|
|
98
98
|
readTaskExecutions,
|
|
99
99
|
readTaskRuns
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-EWT7H65X.js";
|
|
101
101
|
import {
|
|
102
102
|
healthReportSchema,
|
|
103
103
|
pluginOperationalReportFeedSchema,
|
|
@@ -121,24 +121,24 @@ import {
|
|
|
121
121
|
readScheduledTask,
|
|
122
122
|
readStats,
|
|
123
123
|
saveScheduledTask
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-TXJSXBV5.js";
|
|
125
125
|
import {
|
|
126
126
|
parseSlackThreadId
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-A76OIMYN.js";
|
|
128
128
|
import {
|
|
129
129
|
cancelHumanFacingPendingMessages,
|
|
130
130
|
getConversation
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-OWMPFXJA.js";
|
|
132
132
|
import "./chunk-DA2KGZZI.js";
|
|
133
133
|
import {
|
|
134
134
|
agentTurnUsageSchema,
|
|
135
135
|
fallbackShortTitle,
|
|
136
136
|
hasAgentTurnUsage,
|
|
137
137
|
renderJuniorNativeConversationEvent
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-7DHZP5KJ.js";
|
|
139
139
|
import {
|
|
140
140
|
getCachedSnapshot
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-LA6R4A7Q.js";
|
|
142
142
|
import "./chunk-PDO5BLNM.js";
|
|
143
143
|
import {
|
|
144
144
|
getVercelConversationWorkQueue
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
updateWorkspace,
|
|
165
165
|
withSlackRetries,
|
|
166
166
|
workspaceRepoCheckoutPath
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-U2GPUYAL.js";
|
|
168
168
|
import "./chunk-3Y47VMHV.js";
|
|
169
169
|
import {
|
|
170
170
|
getConversationStore,
|
|
@@ -173,7 +173,7 @@ import {
|
|
|
173
173
|
locationFromRow,
|
|
174
174
|
parseSessionSource,
|
|
175
175
|
resolveRootConversationId
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-M76HMB7M.js";
|
|
177
177
|
import {
|
|
178
178
|
conversationReadColumns,
|
|
179
179
|
juniorApiTokens,
|
|
@@ -185,23 +185,23 @@ import {
|
|
|
185
185
|
juniorIdentities,
|
|
186
186
|
juniorSchedulerTasks,
|
|
187
187
|
juniorUsers
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-PW4P4JYF.js";
|
|
189
189
|
import {
|
|
190
190
|
create,
|
|
191
191
|
hash
|
|
192
|
-
} from "./chunk-
|
|
193
|
-
import "./chunk-
|
|
192
|
+
} from "./chunk-NSXKRGRT.js";
|
|
193
|
+
import "./chunk-2MK3QBGA.js";
|
|
194
194
|
import {
|
|
195
195
|
decodeStoredConversationEvent
|
|
196
196
|
} from "./chunk-7NL7T6VU.js";
|
|
197
197
|
import {
|
|
198
198
|
juniorDestinations
|
|
199
199
|
} from "./chunk-VFUK3X5B.js";
|
|
200
|
-
import "./chunk-
|
|
200
|
+
import "./chunk-63NKKFJL.js";
|
|
201
201
|
import "./chunk-NHJU2ZAL.js";
|
|
202
|
-
import "./chunk-
|
|
203
|
-
import "./chunk-
|
|
204
|
-
import "./chunk-
|
|
202
|
+
import "./chunk-5NOPO64K.js";
|
|
203
|
+
import "./chunk-YDUR3ZYW.js";
|
|
204
|
+
import "./chunk-BXCX5QKA.js";
|
|
205
205
|
import "./chunk-CEMMLV5L.js";
|
|
206
206
|
import {
|
|
207
207
|
parseSlackChannelId,
|
|
@@ -213,9 +213,9 @@ import "./chunk-TXKUKMVO.js";
|
|
|
213
213
|
import {
|
|
214
214
|
logException,
|
|
215
215
|
logWarn
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-MAGNK5J4.js";
|
|
217
217
|
import "./chunk-PEQXYSSE.js";
|
|
218
|
-
import "./chunk-
|
|
218
|
+
import "./chunk-HMREVIO2.js";
|
|
219
219
|
|
|
220
220
|
// src/api.ts
|
|
221
221
|
import { Hono as Hono9 } from "hono";
|
|
@@ -5049,7 +5049,7 @@ async function readPeoplePluginReports(args) {
|
|
|
5049
5049
|
source: "plugins"
|
|
5050
5050
|
});
|
|
5051
5051
|
}
|
|
5052
|
-
const { getPluginProfileReports } = await import("./agent-hooks-
|
|
5052
|
+
const { getPluginProfileReports } = await import("./agent-hooks-UXITLYOK.js");
|
|
5053
5053
|
return pluginOperationalReportFeedSchema.parse({
|
|
5054
5054
|
generatedAt: new Date(nowMs).toISOString(),
|
|
5055
5055
|
reports: await getPluginProfileReports({
|
|
@@ -5883,7 +5883,7 @@ function readDescriptionText(home) {
|
|
|
5883
5883
|
}
|
|
5884
5884
|
}
|
|
5885
5885
|
async function readSkillReports() {
|
|
5886
|
-
const { discoverSkills } = await import("./skills-
|
|
5886
|
+
const { discoverSkills } = await import("./skills-XRWYEDCD.js");
|
|
5887
5887
|
const skills = await discoverSkills();
|
|
5888
5888
|
return skillReportsSchema.parse(
|
|
5889
5889
|
skills.map((skill) => ({
|
|
@@ -5893,7 +5893,7 @@ async function readSkillReports() {
|
|
|
5893
5893
|
);
|
|
5894
5894
|
}
|
|
5895
5895
|
async function readPlugins() {
|
|
5896
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
5896
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-BG3JLLK2.js");
|
|
5897
5897
|
return pluginsSchema.parse(
|
|
5898
5898
|
pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
5899
5899
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
@@ -5906,7 +5906,7 @@ async function readPlugins() {
|
|
|
5906
5906
|
async function readRuntimeInfoReport() {
|
|
5907
5907
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
5908
5908
|
import("./discovery-DWVDM7UK.js"),
|
|
5909
|
-
import("./catalog-runtime-
|
|
5909
|
+
import("./catalog-runtime-BG3JLLK2.js"),
|
|
5910
5910
|
readPlugins(),
|
|
5911
5911
|
readSkillReports()
|
|
5912
5912
|
]);
|
|
@@ -5922,7 +5922,7 @@ async function readRuntimeInfoReport() {
|
|
|
5922
5922
|
}
|
|
5923
5923
|
async function readPluginOperationalReportFeed() {
|
|
5924
5924
|
const nowMs = Date.now();
|
|
5925
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
5925
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-UXITLYOK.js");
|
|
5926
5926
|
return pluginOperationalReportFeedSchema.parse({
|
|
5927
5927
|
source: "plugins",
|
|
5928
5928
|
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-6AYH6252.js";
|
|
4
4
|
import {
|
|
5
5
|
bindSpawnAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-REOIRYPR.js";
|
|
7
7
|
import {
|
|
8
8
|
createAgentInvocationWorker,
|
|
9
9
|
enqueueAgentInvocation,
|
|
10
10
|
listPendingAgentInvocationMailboxAppends,
|
|
11
11
|
resolveAgentInvocationId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3PGQSKJV.js";
|
|
13
13
|
import {
|
|
14
14
|
GET as GET2,
|
|
15
15
|
GET2 as GET3,
|
|
@@ -37,12 +37,12 @@ import {
|
|
|
37
37
|
startProcessingReaction,
|
|
38
38
|
stripLeadingBotMention,
|
|
39
39
|
wakePausedTurn
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-JSJQEWBJ.js";
|
|
41
41
|
import "./chunk-FA6POGLH.js";
|
|
42
42
|
import {
|
|
43
43
|
AgentRunError,
|
|
44
44
|
executeTurn
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-AWMS3SPP.js";
|
|
46
46
|
import {
|
|
47
47
|
buildDeliveredTurnStatePatch,
|
|
48
48
|
completeAuthPauseTurn,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
getTurnUserSlackMessageTs,
|
|
54
54
|
persistAuthPauseTurnState,
|
|
55
55
|
requireTurnFailureEventId
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-B3LY5RCL.js";
|
|
57
57
|
import {
|
|
58
58
|
claimDispatchMailboxAppend,
|
|
59
59
|
confirmDispatchMailboxAppend,
|
|
@@ -73,11 +73,11 @@ import {
|
|
|
73
73
|
processPluginTask,
|
|
74
74
|
resolveTurnSessionRouting,
|
|
75
75
|
scheduleSessionCompletedPluginTasks
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-IIWUT4FO.js";
|
|
77
77
|
import {
|
|
78
78
|
ConversationTurnLifecycleService,
|
|
79
79
|
getTurnLifecycle
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-DBVY6HLX.js";
|
|
81
81
|
import {
|
|
82
82
|
coerceThreadConversationState,
|
|
83
83
|
getLocationConfigurationService,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
persistThreadRuntimeState,
|
|
87
87
|
persistThreadState,
|
|
88
88
|
persistThreadStateById
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-3UI3WFTX.js";
|
|
90
90
|
import {
|
|
91
91
|
GET,
|
|
92
92
|
appendAndEnqueueWebMessage,
|
|
@@ -101,24 +101,24 @@ import {
|
|
|
101
101
|
resolveSlackChannelTypeFromMessage,
|
|
102
102
|
resolveSlackConversationContext,
|
|
103
103
|
webActorFromEmail
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-M6FHWXE3.js";
|
|
105
105
|
import {
|
|
106
106
|
createWebAuthorization,
|
|
107
107
|
deleteWebAuthorization
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-QP3OGJXF.js";
|
|
109
109
|
import {
|
|
110
110
|
recordTaskExecution
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-EWT7H65X.js";
|
|
112
112
|
import "./chunk-RC745GGZ.js";
|
|
113
113
|
import {
|
|
114
114
|
createVercelPluginTaskCallback,
|
|
115
115
|
queueCallback,
|
|
116
116
|
registerVercelPluginTaskDevConsumer
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-SCOZRLZ4.js";
|
|
118
118
|
import {
|
|
119
119
|
validatePluginEgressCredentialHooks,
|
|
120
120
|
validatePluginRegistrations
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-C6VVF43U.js";
|
|
122
122
|
import {
|
|
123
123
|
defineJuniorPlugins,
|
|
124
124
|
pluginCatalogConfigFromEnv,
|
|
@@ -163,11 +163,11 @@ import {
|
|
|
163
163
|
shouldEmitDevAgentTrace,
|
|
164
164
|
shouldPropagateSandboxEgressTrace,
|
|
165
165
|
unpublishedArtifactHeaders
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-LOOU2DUR.js";
|
|
167
167
|
import {
|
|
168
168
|
AuthorizationFlowDisabledError,
|
|
169
169
|
PluginCredentialFailureError
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-QB54UQUS.js";
|
|
171
171
|
import "./chunk-6Y5B5PEX.js";
|
|
172
172
|
import "./chunk-DIB4GX3G.js";
|
|
173
173
|
import {
|
|
@@ -175,14 +175,14 @@ import {
|
|
|
175
175
|
deleteMcpAuthSessionsForUserProvider,
|
|
176
176
|
deleteMcpServerSessionId,
|
|
177
177
|
deleteMcpStoredOAuthCredentials
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-WQSHDTTI.js";
|
|
179
179
|
import {
|
|
180
180
|
RetryableDeliveryError,
|
|
181
181
|
createAgentRunner,
|
|
182
182
|
formatProviderLabel,
|
|
183
183
|
postSlackMessage,
|
|
184
184
|
startOAuthFlow
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-DL2KLKVH.js";
|
|
186
186
|
import {
|
|
187
187
|
ConversationTurnBoundaryError,
|
|
188
188
|
CooperativeTurnYieldError,
|
|
@@ -198,7 +198,7 @@ import {
|
|
|
198
198
|
markTurnCompleted,
|
|
199
199
|
markTurnFailed,
|
|
200
200
|
startActiveTurn
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-ELWOYVOY.js";
|
|
202
202
|
import {
|
|
203
203
|
abandonTurnRecord,
|
|
204
204
|
appendConversationMessages,
|
|
@@ -236,7 +236,7 @@ import {
|
|
|
236
236
|
trimTrailingAssistantMessages,
|
|
237
237
|
turnHasReply,
|
|
238
238
|
upsertConversationMessage
|
|
239
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-5PKWYPFT.js";
|
|
240
240
|
import {
|
|
241
241
|
getExperimentalFeatures,
|
|
242
242
|
isExperimentalFeatureEnabled,
|
|
@@ -257,10 +257,10 @@ import {
|
|
|
257
257
|
scheduledRunSchema,
|
|
258
258
|
storeAttachment,
|
|
259
259
|
withScheduledTaskLock
|
|
260
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-TXJSXBV5.js";
|
|
261
261
|
import {
|
|
262
262
|
parseSlackThreadId
|
|
263
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-A76OIMYN.js";
|
|
264
264
|
import {
|
|
265
265
|
CONVERSATION_WORK_STALE_ENQUEUE_MS,
|
|
266
266
|
appendAndEnqueueInboundMessage,
|
|
@@ -275,16 +275,16 @@ import {
|
|
|
275
275
|
removeActiveConversation,
|
|
276
276
|
requestConversationWork,
|
|
277
277
|
stopConversationWork
|
|
278
|
-
} from "./chunk-
|
|
278
|
+
} from "./chunk-OWMPFXJA.js";
|
|
279
279
|
import {
|
|
280
280
|
buildDeterministicAssistantMessageId,
|
|
281
281
|
buildDeterministicTurnId
|
|
282
282
|
} from "./chunk-DA2KGZZI.js";
|
|
283
|
-
import "./chunk-
|
|
283
|
+
import "./chunk-7DHZP5KJ.js";
|
|
284
284
|
import {
|
|
285
285
|
getSandboxResourceConfig,
|
|
286
286
|
setSandboxResourceConfig
|
|
287
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-LA6R4A7Q.js";
|
|
288
288
|
import "./chunk-PDO5BLNM.js";
|
|
289
289
|
import "./chunk-UIE3R5XU.js";
|
|
290
290
|
import {
|
|
@@ -293,7 +293,7 @@ import {
|
|
|
293
293
|
} from "./chunk-X6GDDWQH.js";
|
|
294
294
|
import {
|
|
295
295
|
getTurnRequestDeadline
|
|
296
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-BD2KT3OB.js";
|
|
297
297
|
import {
|
|
298
298
|
getVercelConversationWorkQueue,
|
|
299
299
|
resolveConversationWorkQueueTopic,
|
|
@@ -330,7 +330,7 @@ import {
|
|
|
330
330
|
verifyEventTaskCredentialSubject,
|
|
331
331
|
verifyScheduledTaskCredentialSubject,
|
|
332
332
|
verifySlackDirectCredentialSubject
|
|
333
|
-
} from "./chunk-
|
|
333
|
+
} from "./chunk-U2GPUYAL.js";
|
|
334
334
|
import {
|
|
335
335
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
336
336
|
} from "./chunk-3Y47VMHV.js";
|
|
@@ -344,7 +344,7 @@ import {
|
|
|
344
344
|
requireSlackDestination,
|
|
345
345
|
withConversationEventLock,
|
|
346
346
|
withConversationMutationLock
|
|
347
|
-
} from "./chunk-
|
|
347
|
+
} from "./chunk-M76HMB7M.js";
|
|
348
348
|
import {
|
|
349
349
|
juniorAgentBindings,
|
|
350
350
|
juniorAgentInvocations,
|
|
@@ -352,15 +352,15 @@ import {
|
|
|
352
352
|
juniorConversations,
|
|
353
353
|
juniorSchedulerRuns,
|
|
354
354
|
juniorSchedulerTasks
|
|
355
|
-
} from "./chunk-
|
|
356
|
-
import "./chunk-
|
|
355
|
+
} from "./chunk-PW4P4JYF.js";
|
|
356
|
+
import "./chunk-NSXKRGRT.js";
|
|
357
357
|
import {
|
|
358
358
|
MUTATION_LOCK_TTL_MS,
|
|
359
359
|
acquireActiveLock,
|
|
360
360
|
getStateAdapter,
|
|
361
361
|
withActiveLock,
|
|
362
362
|
withLock
|
|
363
|
-
} from "./chunk-
|
|
363
|
+
} from "./chunk-2MK3QBGA.js";
|
|
364
364
|
import {
|
|
365
365
|
instructionProvenanceFor
|
|
366
366
|
} from "./chunk-7NL7T6VU.js";
|
|
@@ -383,17 +383,17 @@ import {
|
|
|
383
383
|
setBotModelConfig,
|
|
384
384
|
setProfiles,
|
|
385
385
|
setSlackReactionConfig
|
|
386
|
-
} from "./chunk-
|
|
386
|
+
} from "./chunk-63NKKFJL.js";
|
|
387
387
|
import {
|
|
388
388
|
defaultModelId,
|
|
389
389
|
modelIdForProfile
|
|
390
390
|
} from "./chunk-NHJU2ZAL.js";
|
|
391
|
-
import "./chunk-
|
|
392
|
-
import "./chunk-
|
|
391
|
+
import "./chunk-5NOPO64K.js";
|
|
392
|
+
import "./chunk-KHKKHDLD.js";
|
|
393
393
|
import {
|
|
394
394
|
pluginCatalogRuntime
|
|
395
|
-
} from "./chunk-
|
|
396
|
-
import "./chunk-
|
|
395
|
+
} from "./chunk-YDUR3ZYW.js";
|
|
396
|
+
import "./chunk-BXCX5QKA.js";
|
|
397
397
|
import {
|
|
398
398
|
credentialContextForActor
|
|
399
399
|
} from "./chunk-CEMMLV5L.js";
|
|
@@ -429,13 +429,13 @@ import {
|
|
|
429
429
|
withContext,
|
|
430
430
|
withLogContext,
|
|
431
431
|
withSpan
|
|
432
|
-
} from "./chunk-
|
|
432
|
+
} from "./chunk-MAGNK5J4.js";
|
|
433
433
|
import {
|
|
434
434
|
continueTrace
|
|
435
435
|
} from "./chunk-PEQXYSSE.js";
|
|
436
436
|
import {
|
|
437
437
|
JUNIOR_VERSION
|
|
438
|
-
} from "./chunk-
|
|
438
|
+
} from "./chunk-HMREVIO2.js";
|
|
439
439
|
|
|
440
440
|
// src/app.ts
|
|
441
441
|
import { createRequire } from "module";
|
|
@@ -5152,6 +5152,17 @@ function buildImageAttachmentFailurePromptText(args) {
|
|
|
5152
5152
|
"</image-attachment>"
|
|
5153
5153
|
].join("\n");
|
|
5154
5154
|
}
|
|
5155
|
+
function buildAttachmentResolutionFailurePromptText(args) {
|
|
5156
|
+
return [
|
|
5157
|
+
"<attachment>",
|
|
5158
|
+
`filename: ${args.filename ?? "unnamed"}`,
|
|
5159
|
+
`media_type: ${args.mediaType}`,
|
|
5160
|
+
"<resolution-error>",
|
|
5161
|
+
"The user attached this file, but Junior could not download its content from Slack. Tell the user the attachment could not be read; do not say no attachment was sent.",
|
|
5162
|
+
"</resolution-error>",
|
|
5163
|
+
"</attachment>"
|
|
5164
|
+
].join("\n");
|
|
5165
|
+
}
|
|
5155
5166
|
async function summarizeImageWithVision(args) {
|
|
5156
5167
|
const visionModelId = botConfig.visionModelId;
|
|
5157
5168
|
if (!visionModelId) {
|
|
@@ -5255,6 +5266,16 @@ async function resolveUserAttachmentsWithDeps(attachments, context, deps) {
|
|
|
5255
5266
|
"exception.message": error instanceof Error ? error.message : String(error),
|
|
5256
5267
|
"app.file.mime_type": mediaType
|
|
5257
5268
|
});
|
|
5269
|
+
if (results.length < MAX_USER_ATTACHMENTS) {
|
|
5270
|
+
results.push({
|
|
5271
|
+
mediaType,
|
|
5272
|
+
filename: attachment.name,
|
|
5273
|
+
promptText: buildAttachmentResolutionFailurePromptText({
|
|
5274
|
+
filename: attachment.name,
|
|
5275
|
+
mediaType
|
|
5276
|
+
})
|
|
5277
|
+
});
|
|
5278
|
+
}
|
|
5258
5279
|
continue;
|
|
5259
5280
|
}
|
|
5260
5281
|
let attachmentId;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-YDUR3ZYW.js";
|
|
4
|
+
import "./chunk-BXCX5QKA.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-MAGNK5J4.js";
|
|
10
10
|
import "./chunk-PEQXYSSE.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-HMREVIO2.js";
|
|
12
12
|
export {
|
|
13
13
|
pluginCatalogRuntime
|
|
14
14
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRunError,
|
|
3
3
|
executeTurn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AWMS3SPP.js";
|
|
5
5
|
import {
|
|
6
6
|
ConversationTurnLifecycleService
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DBVY6HLX.js";
|
|
8
8
|
import {
|
|
9
9
|
getPersistedSandboxState,
|
|
10
10
|
getPersistedThreadState,
|
|
11
11
|
persistThreadStateById
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3UI3WFTX.js";
|
|
13
13
|
import {
|
|
14
14
|
AgentInvocationBusyError,
|
|
15
15
|
AgentInvocationLimitError,
|
|
@@ -18,32 +18,32 @@ import {
|
|
|
18
18
|
agentBindingSchema,
|
|
19
19
|
agentInvocationSchema,
|
|
20
20
|
createAgentInvocationSchema
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QB54UQUS.js";
|
|
22
22
|
import {
|
|
23
23
|
TurnInputCommitLostError,
|
|
24
24
|
getAssistantReplyText,
|
|
25
25
|
getConversationTurnBoundaryError,
|
|
26
26
|
isTurnInputCommitLostError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ELWOYVOY.js";
|
|
28
28
|
import {
|
|
29
29
|
failTurnRecord,
|
|
30
30
|
getTerminalAssistantMessages,
|
|
31
31
|
getTurnRecord,
|
|
32
32
|
openConversationProjection,
|
|
33
33
|
saveTurnCheckpoint
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-5PKWYPFT.js";
|
|
35
35
|
import {
|
|
36
36
|
appendAndEnqueueInboundMessage
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-OWMPFXJA.js";
|
|
38
38
|
import {
|
|
39
39
|
getConversationEventStore,
|
|
40
40
|
getConversationStore,
|
|
41
41
|
getSqlExecutor
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-M76HMB7M.js";
|
|
43
43
|
import {
|
|
44
44
|
juniorAgentBindings,
|
|
45
45
|
juniorAgentInvocations
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-PW4P4JYF.js";
|
|
47
47
|
|
|
48
48
|
// src/chat/agent-invocations/work.ts
|
|
49
49
|
import { z } from "zod";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
persistConversationMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5PKWYPFT.js";
|
|
4
4
|
import {
|
|
5
5
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
6
6
|
} from "./chunk-3Y47VMHV.js";
|
|
7
7
|
import {
|
|
8
8
|
getDb
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M76HMB7M.js";
|
|
10
10
|
import {
|
|
11
11
|
juniorLocationConfigurations
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PW4P4JYF.js";
|
|
13
13
|
import {
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2MK3QBGA.js";
|
|
16
16
|
import {
|
|
17
17
|
juniorDestinations
|
|
18
18
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
isRecord,
|
|
21
21
|
toOptionalNumber,
|
|
22
22
|
toOptionalString
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MAGNK5J4.js";
|
|
24
24
|
|
|
25
25
|
// src/chat/state/conversation.ts
|
|
26
26
|
function defaultConversationState() {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
authenticationUnlinkedEvent,
|
|
8
8
|
fallbackShortTitle,
|
|
9
9
|
generateShortTitle
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7DHZP5KJ.js";
|
|
11
11
|
import {
|
|
12
12
|
bindProviderConversation,
|
|
13
13
|
createSqlConversationEventStore,
|
|
@@ -16,18 +16,18 @@ import {
|
|
|
16
16
|
getSqlExecutor,
|
|
17
17
|
sanitizePostgresJson,
|
|
18
18
|
withConversationEventLock
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-M76HMB7M.js";
|
|
20
20
|
import {
|
|
21
21
|
SANDBOX_REPOS_ROOT,
|
|
22
22
|
SANDBOX_WORKSPACE_ROOT,
|
|
23
23
|
sleep
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NSXKRGRT.js";
|
|
25
25
|
import {
|
|
26
26
|
MUTATION_LOCK_TTL_MS,
|
|
27
27
|
fenceLock,
|
|
28
28
|
getStateAdapter,
|
|
29
29
|
withLock
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2MK3QBGA.js";
|
|
31
31
|
import {
|
|
32
32
|
agentHistoryItemSchema,
|
|
33
33
|
contextProvenance,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
escapeXml,
|
|
41
41
|
resolveGatewayModel,
|
|
42
42
|
unwrapCurrentInstruction
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-63NKKFJL.js";
|
|
44
44
|
import {
|
|
45
45
|
parseSlackMessageTs,
|
|
46
46
|
toStoredSlackActor
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
logException,
|
|
52
52
|
logWarn,
|
|
53
53
|
setSpanAttributes
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-MAGNK5J4.js";
|
|
55
55
|
|
|
56
56
|
// src/chat/turn-context-tag.ts
|
|
57
57
|
var TURN_CONTEXT_TAG = "runtime-turn-context";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
toCanonicalInputMessage,
|
|
9
9
|
toCanonicalOutputMessage,
|
|
10
10
|
toGenAiMessagesTraceAttributes
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5NOPO64K.js";
|
|
12
12
|
import {
|
|
13
13
|
extractGenAiUsageAttributes,
|
|
14
14
|
logException,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
normalizeGenAiFinishReason,
|
|
17
17
|
serializeGenAiAttribute,
|
|
18
18
|
withSpan
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MAGNK5J4.js";
|
|
20
20
|
|
|
21
21
|
// src/chat/services/provider-error.ts
|
|
22
22
|
var ProviderError = class extends Error {
|