@sentry/junior 0.129.0 → 0.130.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-ZM4WMZCN.js → agent-hooks-LJHLLMFC.js} +8 -8
- package/dist/api.js +15 -15
- package/dist/app.js +21 -21
- package/dist/{catalog-runtime-TN2GPVEI.js → catalog-runtime-45AHWLJL.js} +5 -5
- package/dist/{chunk-6QQOLIJJ.js → chunk-224V72RX.js} +14 -14
- package/dist/{chunk-CZJUBH6O.js → chunk-2V7BQAJ6.js} +12 -12
- package/dist/{chunk-PQFNTLZI.js → chunk-4AF3XOZI.js} +2 -2
- package/dist/{chunk-ESYXDXNX.js → chunk-4X2MZ4FP.js} +6 -6
- package/dist/{chunk-2BCQKJTX.js → chunk-5I4SWLD7.js} +2 -2
- package/dist/{chunk-U23X4ASF.js → chunk-5XDJRSU5.js} +4 -4
- package/dist/{chunk-3N4MWF3R.js → chunk-7OO3LMEP.js} +1 -1
- package/dist/{chunk-K3U5447S.js → chunk-A64VQ4N4.js} +1 -1
- package/dist/{chunk-A6QQPVSH.js → chunk-ATCTPG7J.js} +1 -1
- package/dist/{chunk-GPWHBHAG.js → chunk-DMS2RTEK.js} +1 -1
- package/dist/{chunk-QAOA4GUG.js → chunk-EKZSU2RK.js} +4 -4
- package/dist/{chunk-BDIEEZK7.js → chunk-GXO3EXBM.js} +2 -2
- package/dist/{chunk-6CMYU62S.js → chunk-H6GDE77O.js} +7 -7
- package/dist/{chunk-XENYUOZG.js → chunk-HJHTRJKR.js} +4 -4
- package/dist/{chunk-P6I7LFKC.js → chunk-J6B27DOC.js} +1 -1
- package/dist/{chunk-R62DRNKB.js → chunk-LYEXN7FN.js} +2 -2
- package/dist/{chunk-E4UCPRYL.js → chunk-PVHL3274.js} +1 -1
- package/dist/{chunk-CZQ2DSQZ.js → chunk-RTJCNKQD.js} +1 -1
- package/dist/{chunk-LV2BQ26V.js → chunk-UDYVHDLH.js} +1 -1
- package/dist/{chunk-GURSWCI4.js → chunk-XRROAXID.js} +2 -2
- package/dist/{chunk-NNRV4T2C.js → chunk-Z72XGIFF.js} +1 -1
- package/dist/cli/chat.js +23 -23
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +11 -11
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +6 -6
- package/dist/{db-ZI6TBXIS.js → db-XE6DXA5Z.js} +6 -6
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-TLA4GARF.js → oauth-callback-server-O42UXC7E.js} +16 -16
- package/dist/{runner-23YFRWQJ.js → runner-BSP3374N.js} +10 -10
- package/dist/{skills-QIUG4D6M.js → skills-BNLHOZ75.js} +6 -6
- package/dist/{validation-3KGEBATS.js → validation-O7BF3JX6.js} +6 -6
- package/dist/version.js +1 -1
- package/package.json +5 -5
|
@@ -11,19 +11,19 @@ import {
|
|
|
11
11
|
getPlugins,
|
|
12
12
|
setPlugins,
|
|
13
13
|
validatePlugins
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-EKZSU2RK.js";
|
|
15
|
+
import "./chunk-4AF3XOZI.js";
|
|
16
16
|
import "./chunk-KB2M27DL.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-7OO3LMEP.js";
|
|
18
|
+
import "./chunk-5I4SWLD7.js";
|
|
19
19
|
import "./chunk-VFUK3X5B.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-DMS2RTEK.js";
|
|
21
21
|
import "./chunk-HZF5P5UN.js";
|
|
22
22
|
import "./chunk-F3B2YJ76.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-J6B27DOC.js";
|
|
24
24
|
import "./chunk-6GWA276C.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-A64VQ4N4.js";
|
|
26
|
+
import "./chunk-Z72XGIFF.js";
|
|
27
27
|
import "./chunk-MLKGABMK.js";
|
|
28
28
|
export {
|
|
29
29
|
PluginHookDeniedError,
|
package/dist/api.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
formatSlackConversationRedactedLabel,
|
|
33
33
|
readHealthReport,
|
|
34
34
|
resolveSlackConversationContextFromThreadId
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-XRROAXID.js";
|
|
36
36
|
import {
|
|
37
37
|
buildSentryConversationUrl
|
|
38
38
|
} from "./chunk-4CODA7P5.js";
|
|
@@ -54,10 +54,10 @@ import {
|
|
|
54
54
|
listPublicEventTasksForTeams,
|
|
55
55
|
listPublicScheduledTasksForTeams,
|
|
56
56
|
readStats
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-GXO3EXBM.js";
|
|
58
58
|
import {
|
|
59
59
|
parseSlackThreadId
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-UDYVHDLH.js";
|
|
61
61
|
import {
|
|
62
62
|
agentTurnUsageSchema,
|
|
63
63
|
hasAgentTurnUsage,
|
|
@@ -70,13 +70,13 @@ import {
|
|
|
70
70
|
listConversationAnnotations,
|
|
71
71
|
renderPluginConversationEvent,
|
|
72
72
|
resolveViewerUser
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-EKZSU2RK.js";
|
|
74
74
|
import {
|
|
75
75
|
decodeStoredConversationEvent,
|
|
76
76
|
getDb,
|
|
77
77
|
getSqlExecutor,
|
|
78
78
|
parseSessionSource
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-4AF3XOZI.js";
|
|
80
80
|
import {
|
|
81
81
|
juniorApiTokens,
|
|
82
82
|
juniorConversationEvents,
|
|
@@ -84,23 +84,23 @@ import {
|
|
|
84
84
|
juniorIdentities,
|
|
85
85
|
juniorUsers
|
|
86
86
|
} from "./chunk-KB2M27DL.js";
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-7OO3LMEP.js";
|
|
88
|
+
import "./chunk-5I4SWLD7.js";
|
|
89
89
|
import {
|
|
90
90
|
juniorDestinations
|
|
91
91
|
} from "./chunk-VFUK3X5B.js";
|
|
92
92
|
import {
|
|
93
93
|
canExposeConversationPayload
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-DMS2RTEK.js";
|
|
95
95
|
import "./chunk-HZF5P5UN.js";
|
|
96
96
|
import {
|
|
97
97
|
parseSlackChannelId,
|
|
98
98
|
parseSlackTeamId
|
|
99
99
|
} from "./chunk-F3B2YJ76.js";
|
|
100
|
-
import "./chunk-
|
|
100
|
+
import "./chunk-J6B27DOC.js";
|
|
101
101
|
import "./chunk-6GWA276C.js";
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
102
|
+
import "./chunk-A64VQ4N4.js";
|
|
103
|
+
import "./chunk-Z72XGIFF.js";
|
|
104
104
|
import "./chunk-MLKGABMK.js";
|
|
105
105
|
|
|
106
106
|
// src/api.ts
|
|
@@ -2026,7 +2026,7 @@ function readDescriptionText(home) {
|
|
|
2026
2026
|
}
|
|
2027
2027
|
}
|
|
2028
2028
|
async function readSkillReports() {
|
|
2029
|
-
const { discoverSkills } = await import("./skills-
|
|
2029
|
+
const { discoverSkills } = await import("./skills-BNLHOZ75.js");
|
|
2030
2030
|
const skills = await discoverSkills();
|
|
2031
2031
|
return skillReportsSchema.parse(
|
|
2032
2032
|
skills.map((skill) => ({
|
|
@@ -2036,7 +2036,7 @@ async function readSkillReports() {
|
|
|
2036
2036
|
);
|
|
2037
2037
|
}
|
|
2038
2038
|
async function readPlugins() {
|
|
2039
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
2039
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-45AHWLJL.js");
|
|
2040
2040
|
return pluginsSchema.parse(
|
|
2041
2041
|
pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
2042
2042
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
@@ -2049,7 +2049,7 @@ async function readPlugins() {
|
|
|
2049
2049
|
async function readRuntimeInfoReport() {
|
|
2050
2050
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
2051
2051
|
import("./discovery-GUFTFBTL.js"),
|
|
2052
|
-
import("./catalog-runtime-
|
|
2052
|
+
import("./catalog-runtime-45AHWLJL.js"),
|
|
2053
2053
|
readPlugins(),
|
|
2054
2054
|
readSkillReports()
|
|
2055
2055
|
]);
|
|
@@ -2065,7 +2065,7 @@ async function readRuntimeInfoReport() {
|
|
|
2065
2065
|
}
|
|
2066
2066
|
async function readPluginOperationalReportFeed() {
|
|
2067
2067
|
const nowMs = Date.now();
|
|
2068
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
2068
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-LJHLLMFC.js");
|
|
2069
2069
|
return pluginOperationalReportFeedSchema.parse({
|
|
2070
2070
|
source: "plugins",
|
|
2071
2071
|
generatedAt: new Date(nowMs).toISOString(),
|
package/dist/app.js
CHANGED
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
startConversationWork,
|
|
51
51
|
startSlackProcessingReaction,
|
|
52
52
|
stripLeadingBotMention
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-2V7BQAJ6.js";
|
|
54
54
|
import "./chunk-FA6POGLH.js";
|
|
55
55
|
import {
|
|
56
56
|
ConversationTurnLifecycleService,
|
|
@@ -65,13 +65,13 @@ import {
|
|
|
65
65
|
processPluginTask,
|
|
66
66
|
requireTurnFailureEventId,
|
|
67
67
|
scheduleSessionCompletedPluginTasks
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-4X2MZ4FP.js";
|
|
69
69
|
import {
|
|
70
70
|
GET,
|
|
71
71
|
conversationVisibilityFromSlackChannelType,
|
|
72
72
|
resolveSlackChannelTypeFromMessage,
|
|
73
73
|
resolveSlackConversationContext
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-XRROAXID.js";
|
|
75
75
|
import "./chunk-4CODA7P5.js";
|
|
76
76
|
import "./chunk-UTL3MHPC.js";
|
|
77
77
|
import {
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
import {
|
|
91
91
|
validatePluginEgressCredentialHooks,
|
|
92
92
|
validatePluginRegistrations
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-PVHL3274.js";
|
|
94
94
|
import {
|
|
95
95
|
defineJuniorPlugins,
|
|
96
96
|
pluginCatalogConfigFromEnv,
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
setConfigDefaults,
|
|
126
126
|
shouldEmitDevAgentTrace,
|
|
127
127
|
shouldPropagateSandboxEgressTrace
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-224V72RX.js";
|
|
129
129
|
import "./chunk-DIB4GX3G.js";
|
|
130
130
|
import {
|
|
131
131
|
RetryableDeliveryError,
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
formatProviderLabel,
|
|
137
137
|
postSlackMessage,
|
|
138
138
|
startOAuthFlow
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-H6GDE77O.js";
|
|
140
140
|
import {
|
|
141
141
|
ConversationTurnBoundaryError,
|
|
142
142
|
CooperativeTurnYieldError,
|
|
@@ -192,19 +192,19 @@ import {
|
|
|
192
192
|
trimTrailingAssistantMessages,
|
|
193
193
|
updateConversationStats,
|
|
194
194
|
upsertConversationMessage
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-5XDJRSU5.js";
|
|
196
196
|
import "./chunk-EPBBYMNE.js";
|
|
197
197
|
import {
|
|
198
198
|
getSandboxResourceConfig,
|
|
199
199
|
setSandboxResourceConfig
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-HJHTRJKR.js";
|
|
201
201
|
import {
|
|
202
202
|
createSchedulerSqlStore,
|
|
203
203
|
findMatchingEventTasks
|
|
204
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-GXO3EXBM.js";
|
|
205
205
|
import {
|
|
206
206
|
parseSlackThreadId
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-UDYVHDLH.js";
|
|
208
208
|
import "./chunk-HX236W2U.js";
|
|
209
209
|
import "./chunk-PDO5BLNM.js";
|
|
210
210
|
import "./chunk-UIE3R5XU.js";
|
|
@@ -232,7 +232,7 @@ import {
|
|
|
232
232
|
verifyEventTaskCredentialSubject,
|
|
233
233
|
verifyScheduledTaskCredentialSubject,
|
|
234
234
|
verifySlackDirectCredentialSubject
|
|
235
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-EKZSU2RK.js";
|
|
236
236
|
import {
|
|
237
237
|
contextProvenance,
|
|
238
238
|
createSlackDestination,
|
|
@@ -243,7 +243,7 @@ import {
|
|
|
243
243
|
instructionProvenanceFor,
|
|
244
244
|
requireSlackDestination,
|
|
245
245
|
withConversationEventLock
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-4AF3XOZI.js";
|
|
247
247
|
import {
|
|
248
248
|
juniorConversationEvents,
|
|
249
249
|
juniorConversations
|
|
@@ -252,7 +252,7 @@ import {
|
|
|
252
252
|
acquireActiveLock,
|
|
253
253
|
getStateAdapter,
|
|
254
254
|
sleep
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-7OO3LMEP.js";
|
|
256
256
|
import {
|
|
257
257
|
STANDARD_MODEL_PROFILE,
|
|
258
258
|
botConfig,
|
|
@@ -270,16 +270,16 @@ import {
|
|
|
270
270
|
modelIdForProfile,
|
|
271
271
|
setSlackReactionConfig,
|
|
272
272
|
standardModelId
|
|
273
|
-
} from "./chunk-
|
|
273
|
+
} from "./chunk-5I4SWLD7.js";
|
|
274
274
|
import {
|
|
275
275
|
juniorDestinations
|
|
276
276
|
} from "./chunk-VFUK3X5B.js";
|
|
277
|
-
import "./chunk-
|
|
278
|
-
import "./chunk-
|
|
277
|
+
import "./chunk-DMS2RTEK.js";
|
|
278
|
+
import "./chunk-LYEXN7FN.js";
|
|
279
279
|
import {
|
|
280
280
|
pluginCatalogRuntime
|
|
281
|
-
} from "./chunk-
|
|
282
|
-
import "./chunk-
|
|
281
|
+
} from "./chunk-ATCTPG7J.js";
|
|
282
|
+
import "./chunk-RTJCNKQD.js";
|
|
283
283
|
import {
|
|
284
284
|
credentialSubjectSchema
|
|
285
285
|
} from "./chunk-77VDLF3Z.js";
|
|
@@ -311,7 +311,7 @@ import {
|
|
|
311
311
|
withContext,
|
|
312
312
|
withLogContext,
|
|
313
313
|
withSpan
|
|
314
|
-
} from "./chunk-
|
|
314
|
+
} from "./chunk-J6B27DOC.js";
|
|
315
315
|
import {
|
|
316
316
|
continueTrace
|
|
317
317
|
} from "./chunk-6GWA276C.js";
|
|
@@ -319,10 +319,10 @@ import "./chunk-OOUNJNMR.js";
|
|
|
319
319
|
import "./chunk-H4HBKISO.js";
|
|
320
320
|
import {
|
|
321
321
|
JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE
|
|
322
|
-
} from "./chunk-
|
|
322
|
+
} from "./chunk-A64VQ4N4.js";
|
|
323
323
|
import {
|
|
324
324
|
JUNIOR_VERSION
|
|
325
|
-
} from "./chunk-
|
|
325
|
+
} from "./chunk-Z72XGIFF.js";
|
|
326
326
|
import "./chunk-MLKGABMK.js";
|
|
327
327
|
|
|
328
328
|
// src/app.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ATCTPG7J.js";
|
|
4
|
+
import "./chunk-RTJCNKQD.js";
|
|
5
5
|
import "./chunk-77VDLF3Z.js";
|
|
6
6
|
import "./chunk-HZF5P5UN.js";
|
|
7
7
|
import "./chunk-F3B2YJ76.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-J6B27DOC.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-A64VQ4N4.js";
|
|
13
|
+
import "./chunk-Z72XGIFF.js";
|
|
14
14
|
import "./chunk-MLKGABMK.js";
|
|
15
15
|
export {
|
|
16
16
|
pluginCatalogRuntime
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
toMcpProviderError,
|
|
31
31
|
toolInvocationDestination,
|
|
32
32
|
uploadFilesToConversation
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-H6GDE77O.js";
|
|
34
34
|
import {
|
|
35
35
|
CooperativeTurnYieldError,
|
|
36
36
|
JUNIOR_THREAD_STATE_TTL_MS,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
stripRuntimeTurnContext,
|
|
81
81
|
trimTrailingAssistantMessages,
|
|
82
82
|
updateConversationStats
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-5XDJRSU5.js";
|
|
84
84
|
import {
|
|
85
85
|
parseSandboxEgressAuthRequiredSignal,
|
|
86
86
|
parseSandboxEgressPermissionDeniedSignal,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
runNonInteractiveCommand,
|
|
105
105
|
throwSandboxOperationError,
|
|
106
106
|
wrapSandboxSetupError
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-HJHTRJKR.js";
|
|
108
108
|
import {
|
|
109
109
|
SCHEDULED_TASK_SYSTEM_ACTOR,
|
|
110
110
|
ToolInputError,
|
|
@@ -136,10 +136,10 @@ import {
|
|
|
136
136
|
resolveLocalScheduleAtMs,
|
|
137
137
|
saveEventTask,
|
|
138
138
|
writableEventTask
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-GXO3EXBM.js";
|
|
140
140
|
import {
|
|
141
141
|
parseSlackThreadId
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-UDYVHDLH.js";
|
|
143
143
|
import {
|
|
144
144
|
addAgentTurnUsage,
|
|
145
145
|
hasAgentTurnUsage
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
readActorIdentity,
|
|
163
163
|
resolveChannelCapabilities,
|
|
164
164
|
withSlackRetries
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-EKZSU2RK.js";
|
|
166
166
|
import {
|
|
167
167
|
KNOWN_CONVERSATION_EVENT_TYPES,
|
|
168
168
|
contextProvenance,
|
|
@@ -173,7 +173,7 @@ import {
|
|
|
173
173
|
instructionActors,
|
|
174
174
|
instructionProvenanceFor,
|
|
175
175
|
sameActorIdentity
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-4AF3XOZI.js";
|
|
177
177
|
import {
|
|
178
178
|
SANDBOX_DATA_ROOT,
|
|
179
179
|
SANDBOX_SKILLS_ROOT,
|
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
sandboxSkillFile,
|
|
184
184
|
sandboxSkillPathResolution,
|
|
185
185
|
sleep
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-7OO3LMEP.js";
|
|
187
187
|
import {
|
|
188
188
|
ACTIVE_TURN_COMPACTION_SUMMARY_PREFIX,
|
|
189
189
|
COMPACTION_SUMMARY_PREFIX,
|
|
@@ -217,7 +217,7 @@ import {
|
|
|
217
217
|
renderCurrentInstruction,
|
|
218
218
|
resolveGatewayModel,
|
|
219
219
|
unwrapCurrentInstruction
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-5I4SWLD7.js";
|
|
221
221
|
import {
|
|
222
222
|
canExposeConversationPayload,
|
|
223
223
|
resolveConversationPrivacy,
|
|
@@ -227,16 +227,16 @@ import {
|
|
|
227
227
|
toGenAiMessagesTraceAttributes,
|
|
228
228
|
toGenAiPayloadMetadata,
|
|
229
229
|
toGenAiPayloadTraceAttributes
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-DMS2RTEK.js";
|
|
231
231
|
import {
|
|
232
232
|
discoverSkills,
|
|
233
233
|
findSkillByName,
|
|
234
234
|
loadSkillsByName,
|
|
235
235
|
parseSkillInvocation
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-LYEXN7FN.js";
|
|
237
237
|
import {
|
|
238
238
|
pluginCatalogRuntime
|
|
239
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-ATCTPG7J.js";
|
|
240
240
|
import {
|
|
241
241
|
CredentialUnavailableError,
|
|
242
242
|
OAuthProviderError,
|
|
@@ -244,7 +244,7 @@ import {
|
|
|
244
244
|
getOAuthProviderErrorAttributes,
|
|
245
245
|
resolveAuthTokenPlaceholder,
|
|
246
246
|
resolvePluginCommandEnv
|
|
247
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-RTJCNKQD.js";
|
|
248
248
|
import {
|
|
249
249
|
credentialUserSubjectId
|
|
250
250
|
} from "./chunk-77VDLF3Z.js";
|
|
@@ -273,7 +273,7 @@ import {
|
|
|
273
273
|
summarizeMessageText,
|
|
274
274
|
withLogContext,
|
|
275
275
|
withSpan
|
|
276
|
-
} from "./chunk-
|
|
276
|
+
} from "./chunk-J6B27DOC.js";
|
|
277
277
|
import {
|
|
278
278
|
startInactiveSpan,
|
|
279
279
|
withActiveSpan
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
persistAuthPauseTurnState,
|
|
14
14
|
requireTurnFailureEventId,
|
|
15
15
|
scheduleSessionCompletedPluginTasks
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4X2MZ4FP.js";
|
|
17
17
|
import {
|
|
18
18
|
buildSentryConversationUrl
|
|
19
19
|
} from "./chunk-4CODA7P5.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
resolveBaseUrl,
|
|
41
41
|
resolvePluginOAuthAccount,
|
|
42
42
|
truncateStatusText
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-H6GDE77O.js";
|
|
44
44
|
import {
|
|
45
45
|
JUNIOR_THREAD_STATE_TTL_MS,
|
|
46
46
|
TurnSliceLimitExceededError,
|
|
@@ -73,13 +73,13 @@ import {
|
|
|
73
73
|
recordDeliveredAssistantMessage,
|
|
74
74
|
turnHasReply,
|
|
75
75
|
updateConversationStats
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-5XDJRSU5.js";
|
|
77
77
|
import {
|
|
78
78
|
parseSlackThreadId,
|
|
79
79
|
readSlackRawMessageContext,
|
|
80
80
|
resolveSlackChannelIdFromMessage,
|
|
81
81
|
resolveSlackChannelIdFromThreadId
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-UDYVHDLH.js";
|
|
83
83
|
import {
|
|
84
84
|
SlackActionError,
|
|
85
85
|
getDashboardConversationLink,
|
|
@@ -88,19 +88,19 @@ import {
|
|
|
88
88
|
getSlackClient,
|
|
89
89
|
isDmChannel,
|
|
90
90
|
normalizeSlackConversationId
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-EKZSU2RK.js";
|
|
92
92
|
import {
|
|
93
93
|
getConversationEventStore,
|
|
94
94
|
getConversationStore,
|
|
95
95
|
parseDestination,
|
|
96
96
|
requireSlackDestination,
|
|
97
97
|
sameDestination
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-4AF3XOZI.js";
|
|
99
99
|
import {
|
|
100
100
|
acquireActiveLock,
|
|
101
101
|
getDefaultRedisStateAdapterFor,
|
|
102
102
|
getStateAdapter
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-7OO3LMEP.js";
|
|
104
104
|
import {
|
|
105
105
|
FUNCTION_TIMEOUT_BUFFER_SECONDS,
|
|
106
106
|
botConfig,
|
|
@@ -109,18 +109,18 @@ import {
|
|
|
109
109
|
getRuntimeMetadata,
|
|
110
110
|
normalizeSlackEmojiName,
|
|
111
111
|
standardModelId
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-5I4SWLD7.js";
|
|
113
113
|
import {
|
|
114
114
|
discoverSkills
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-LYEXN7FN.js";
|
|
116
116
|
import {
|
|
117
117
|
pluginCatalogRuntime
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-ATCTPG7J.js";
|
|
119
119
|
import {
|
|
120
120
|
buildOAuthTokenRequest,
|
|
121
121
|
hasRequiredOAuthScope,
|
|
122
122
|
parseOAuthTokenResponse
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-RTJCNKQD.js";
|
|
124
124
|
import {
|
|
125
125
|
createSlackResumeActor,
|
|
126
126
|
isUserActor,
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
toOptionalNumber,
|
|
140
140
|
toOptionalString,
|
|
141
141
|
withLogContext
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-J6B27DOC.js";
|
|
143
143
|
import {
|
|
144
144
|
homeDir
|
|
145
145
|
} from "./chunk-H4HBKISO.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
TURN_REASONING_LEVELS,
|
|
10
10
|
getChatConfig,
|
|
11
11
|
modelProfileSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5I4SWLD7.js";
|
|
13
13
|
import {
|
|
14
14
|
juniorDestinations
|
|
15
15
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-F3B2YJ76.js";
|
|
20
20
|
import {
|
|
21
21
|
normalizeIdentityEmail
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-J6B27DOC.js";
|
|
23
23
|
|
|
24
24
|
// src/chat/conversations/sql/store.ts
|
|
25
25
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
persistThreadStateById,
|
|
23
23
|
stripRuntimeTurnContext,
|
|
24
24
|
updateConversationStats
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5XDJRSU5.js";
|
|
26
26
|
import {
|
|
27
27
|
createPluginConversationEvents,
|
|
28
28
|
createPluginEmbedder,
|
|
@@ -30,26 +30,26 @@ import {
|
|
|
30
30
|
createPluginModel,
|
|
31
31
|
createPluginState,
|
|
32
32
|
getPlugins
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-EKZSU2RK.js";
|
|
34
34
|
import {
|
|
35
35
|
getDb,
|
|
36
36
|
sameActorIdentity
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-4AF3XOZI.js";
|
|
38
38
|
import {
|
|
39
39
|
getStateAdapter
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-7OO3LMEP.js";
|
|
41
41
|
import {
|
|
42
42
|
ProviderError,
|
|
43
43
|
findProviderError,
|
|
44
44
|
getProviderErrorAttributes,
|
|
45
45
|
getProviderErrorUserMessage
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-5I4SWLD7.js";
|
|
47
47
|
import {
|
|
48
48
|
parseSlackMessageTs
|
|
49
49
|
} from "./chunk-F3B2YJ76.js";
|
|
50
50
|
import {
|
|
51
51
|
buildTurnFailureResponse
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-J6B27DOC.js";
|
|
53
53
|
|
|
54
54
|
// src/chat/runtime/delivered-turn-state.ts
|
|
55
55
|
function buildDeliveredTurnStatePatch(args) {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
toCanonicalInputMessage,
|
|
4
4
|
toCanonicalOutputMessage,
|
|
5
5
|
toGenAiMessagesTraceAttributes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DMS2RTEK.js";
|
|
7
7
|
import {
|
|
8
8
|
extractGenAiUsageAttributes,
|
|
9
9
|
logException,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
normalizeGenAiFinishReason,
|
|
12
12
|
serializeGenAiAttribute,
|
|
13
13
|
withSpan
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-J6B27DOC.js";
|
|
15
15
|
|
|
16
16
|
// src/chat/config.ts
|
|
17
17
|
import { getModel as getModel2 } from "@earendil-works/pi-ai/compat";
|
|
@@ -16,17 +16,17 @@ import {
|
|
|
16
16
|
instructionProvenanceFor,
|
|
17
17
|
sanitizePostgresJson,
|
|
18
18
|
withConversationEventLock
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4AF3XOZI.js";
|
|
20
20
|
import {
|
|
21
21
|
getStateAdapter,
|
|
22
22
|
sleep
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7OO3LMEP.js";
|
|
24
24
|
import {
|
|
25
25
|
botConfig,
|
|
26
26
|
escapeXml,
|
|
27
27
|
resolveGatewayModel,
|
|
28
28
|
unwrapCurrentInstruction
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5I4SWLD7.js";
|
|
30
30
|
import {
|
|
31
31
|
toStoredSlackActor
|
|
32
32
|
} from "./chunk-HZF5P5UN.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
setSpanAttributes,
|
|
42
42
|
toOptionalNumber,
|
|
43
43
|
toOptionalString
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-J6B27DOC.js";
|
|
45
45
|
|
|
46
46
|
// src/chat/turn-context-tag.ts
|
|
47
47
|
var TURN_CONTEXT_TAG = "runtime-turn-context";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConversationEventStore,
|
|
3
3
|
getDb
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4AF3XOZI.js";
|
|
5
5
|
import {
|
|
6
6
|
juniorConversationAnnotations,
|
|
7
7
|
juniorConversationEvents,
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
SANDBOX_WORKSPACE_ROOT,
|
|
13
13
|
getStateAdapter,
|
|
14
14
|
sleep
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7OO3LMEP.js";
|
|
16
16
|
import {
|
|
17
17
|
botConfig,
|
|
18
18
|
completeObject,
|
|
19
19
|
embedTexts,
|
|
20
20
|
getSlackBotToken,
|
|
21
21
|
standardModelId
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-5I4SWLD7.js";
|
|
23
23
|
import {
|
|
24
24
|
isActorUserId,
|
|
25
25
|
parseActorUserId
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
setSpanAttributes,
|
|
38
38
|
setSpanStatus,
|
|
39
39
|
withSpan
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-J6B27DOC.js";
|
|
41
41
|
|
|
42
42
|
// src/chat/plugins/agent-hooks.ts
|
|
43
43
|
import {
|