@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
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
formatProviderLabel,
|
|
6
6
|
startOAuthFlow
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZDGHGY74.js";
|
|
8
8
|
import {
|
|
9
9
|
abandonReplacedPendingAuth,
|
|
10
10
|
canReusePendingAuthLink,
|
|
11
11
|
recordAuthorizationRequested
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GDQEU4I7.js";
|
|
13
13
|
import {
|
|
14
14
|
parseSandboxEgressAuthRequiredSignal
|
|
15
15
|
} from "./chunk-HUO3UTAQ.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENT_INVOCATION_MAILBOX_STATUSES
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MCFIXAV5.js";
|
|
19
19
|
import {
|
|
20
20
|
TURN_REASONING_LEVELS
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MKRIZ4VG.js";
|
|
22
22
|
import {
|
|
23
23
|
pluginCatalogRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PB222GIA.js";
|
|
25
25
|
import {
|
|
26
26
|
credentialContextSchema
|
|
27
27
|
} from "./chunk-RUIXF3YQ.js";
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
} from "./chunk-EM225ITJ.js";
|
|
5
5
|
import {
|
|
6
6
|
getStateAdapter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GYEKOX7N.js";
|
|
8
8
|
import {
|
|
9
9
|
toOptionalTrimmed
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MKRIZ4VG.js";
|
|
11
11
|
import {
|
|
12
12
|
pluginCatalogRuntime
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PB222GIA.js";
|
|
14
14
|
import {
|
|
15
15
|
setSpanAttributes,
|
|
16
16
|
setSpanStatus,
|
|
17
17
|
withSpan
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-B63BF443.js";
|
|
19
19
|
|
|
20
20
|
// src/chat/sandbox/resources.ts
|
|
21
21
|
var configuredResources;
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
instructionProvenanceFor,
|
|
22
22
|
sanitizePostgresJson,
|
|
23
23
|
withConversationEventLock
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-37EVZP66.js";
|
|
25
25
|
import {
|
|
26
26
|
SANDBOX_WORKSPACE_ROOT,
|
|
27
27
|
sleep
|
|
@@ -31,11 +31,11 @@ import {
|
|
|
31
31
|
fenceLock,
|
|
32
32
|
getStateAdapter,
|
|
33
33
|
withLock
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GYEKOX7N.js";
|
|
35
35
|
import {
|
|
36
36
|
botConfig,
|
|
37
37
|
unwrapCurrentInstruction
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-MKRIZ4VG.js";
|
|
39
39
|
import {
|
|
40
40
|
toStoredSlackActor
|
|
41
41
|
} from "./chunk-HZF5P5UN.js";
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
logException,
|
|
46
46
|
toOptionalNumber,
|
|
47
47
|
toOptionalString
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-B63BF443.js";
|
|
49
49
|
|
|
50
50
|
// src/chat/turn-context-tag.ts
|
|
51
51
|
var TURN_CONTEXT_TAG = "runtime-turn-context";
|
|
@@ -1643,7 +1643,7 @@ async function recordConversationActivityMetadata(args) {
|
|
|
1643
1643
|
visibility: isChild ? void 0 : args.destinationVisibility
|
|
1644
1644
|
});
|
|
1645
1645
|
}
|
|
1646
|
-
function materializeTurnRecord(stored, piProjection, turnStartMessageIndex, restoreVolatileContext = true,
|
|
1646
|
+
function materializeTurnRecord(stored, piProjection, turnStartMessageIndex, restoreVolatileContext = true, runtimeMetrics) {
|
|
1647
1647
|
const restoredProjection = restoreVolatileContext && (stored.state === "running" || stored.state === "paused") ? restoreRuntimeContext(piProjection, stored.runtimeContext) : piProjection;
|
|
1648
1648
|
return {
|
|
1649
1649
|
schemaVersion: stored.schemaVersion,
|
|
@@ -1658,13 +1658,10 @@ function materializeTurnRecord(stored, piProjection, turnStartMessageIndex, rest
|
|
|
1658
1658
|
piMessages: restoredProjection.messages,
|
|
1659
1659
|
piMessageProvenance: restoredProjection.provenance,
|
|
1660
1660
|
actors: instructionActors(piProjection.provenance),
|
|
1661
|
-
cumulativeDurationMs:
|
|
1661
|
+
cumulativeDurationMs: runtimeMetrics?.cumulativeDurationMs ?? 0,
|
|
1662
1662
|
...definedProps({
|
|
1663
|
-
channelName:
|
|
1664
|
-
cumulativeUsage:
|
|
1665
|
-
loadedSkillNames: runtimeMetadata?.loadedSkillNames,
|
|
1666
|
-
modelId: runtimeMetadata?.modelId,
|
|
1667
|
-
reasoningLevel: runtimeMetadata?.reasoningLevel,
|
|
1663
|
+
channelName: runtimeMetrics?.channelName,
|
|
1664
|
+
cumulativeUsage: runtimeMetrics?.cumulativeUsage,
|
|
1668
1665
|
dispatchId: stored.dispatchId,
|
|
1669
1666
|
dispatchOutcome: stored.dispatchOutcome,
|
|
1670
1667
|
errorMessage: stored.errorMessage,
|
|
@@ -1802,7 +1799,7 @@ async function setStoredRecord(args) {
|
|
|
1802
1799
|
summary: {
|
|
1803
1800
|
...projectTurnSummary(storedRecord),
|
|
1804
1801
|
startedAtMs: storedRecord.startedAtMs,
|
|
1805
|
-
...args.
|
|
1802
|
+
...args.runtimeMetrics
|
|
1806
1803
|
}
|
|
1807
1804
|
});
|
|
1808
1805
|
await args.fence();
|
|
@@ -1824,7 +1821,7 @@ async function setStoredRecord(args) {
|
|
|
1824
1821
|
},
|
|
1825
1822
|
args.turnStartMessageIndex,
|
|
1826
1823
|
true,
|
|
1827
|
-
args.
|
|
1824
|
+
args.runtimeMetrics
|
|
1828
1825
|
);
|
|
1829
1826
|
}
|
|
1830
1827
|
async function updateTurnState(args) {
|
|
@@ -1840,14 +1837,11 @@ async function updateTurnState(args) {
|
|
|
1840
1837
|
piMessages: args.existing.piMessages,
|
|
1841
1838
|
piMessageProvenance: args.existing.piMessageProvenance,
|
|
1842
1839
|
ttlMs: turnCursorTtlMs(args.state),
|
|
1843
|
-
|
|
1840
|
+
runtimeMetrics: {
|
|
1844
1841
|
cumulativeDurationMs: args.existing.cumulativeDurationMs,
|
|
1845
1842
|
...definedProps({
|
|
1846
1843
|
channelName: args.existing.channelName,
|
|
1847
|
-
cumulativeUsage: args.existing.cumulativeUsage
|
|
1848
|
-
loadedSkillNames: args.existing.loadedSkillNames,
|
|
1849
|
-
modelId: args.existing.modelId,
|
|
1850
|
-
reasoningLevel: args.existing.reasoningLevel
|
|
1844
|
+
cumulativeUsage: args.existing.cumulativeUsage
|
|
1851
1845
|
})
|
|
1852
1846
|
},
|
|
1853
1847
|
...definedProps({
|
|
@@ -1930,15 +1924,12 @@ async function upsertTurnRecordLocked(args, fence) {
|
|
|
1930
1924
|
piMessages: commit.messages,
|
|
1931
1925
|
piMessageProvenance: commit.provenance,
|
|
1932
1926
|
ttlMs,
|
|
1933
|
-
//
|
|
1934
|
-
//
|
|
1935
|
-
|
|
1927
|
+
// Checkpoint commit also updates conversation execution metrics in SQL.
|
|
1928
|
+
// Channel/duration/usage are not Redis resume-cursor fields.
|
|
1929
|
+
runtimeMetrics: {
|
|
1936
1930
|
channelName: args.channelName ?? conversation?.channelName,
|
|
1937
1931
|
cumulativeDurationMs: args.cumulativeDurationMs ?? executionMetrics?.durationMs ?? 0,
|
|
1938
|
-
cumulativeUsage: args.cumulativeUsage ?? executionMetrics?.usage
|
|
1939
|
-
loadedSkillNames: args.loadedSkillNames,
|
|
1940
|
-
modelId: args.modelId,
|
|
1941
|
-
reasoningLevel: args.reasoningLevel
|
|
1932
|
+
cumulativeUsage: args.cumulativeUsage ?? executionMetrics?.usage
|
|
1942
1933
|
},
|
|
1943
1934
|
// Pass through only an explicit override so indexes stay on the resume window
|
|
1944
1935
|
// by default even when the record takes a short terminal TTL.
|
|
@@ -2167,7 +2158,6 @@ async function saveTurnCheckpoint(args) {
|
|
|
2167
2158
|
function sharedWrite(args, latest) {
|
|
2168
2159
|
return {
|
|
2169
2160
|
conversationId: args.conversationId,
|
|
2170
|
-
modelId: args.modelId,
|
|
2171
2161
|
turnId: args.turnId,
|
|
2172
2162
|
...definedProps2({
|
|
2173
2163
|
actor: args.actor,
|
|
@@ -2175,8 +2165,6 @@ function sharedWrite(args, latest) {
|
|
|
2175
2165
|
destination: args.destination,
|
|
2176
2166
|
destinationVisibility: args.destinationVisibility,
|
|
2177
2167
|
dispatchId: args.dispatchId ?? latest?.dispatchId,
|
|
2178
|
-
loadedSkillNames: args.loadedSkillNames,
|
|
2179
|
-
reasoningLevel: args.reasoningLevel,
|
|
2180
2168
|
source: args.source,
|
|
2181
2169
|
surface: args.surface ?? latest?.surface,
|
|
2182
2170
|
traceId: getActiveTraceId() ?? latest?.traceId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
recordTaskExecution
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QSXZ42KX.js";
|
|
4
4
|
import {
|
|
5
5
|
pluginTaskId,
|
|
6
6
|
pluginTaskParamsSchema,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
calculateContextCompactionTargetTokens,
|
|
11
11
|
estimateTextTokens,
|
|
12
12
|
getConversationContextCompactionTriggerTokens
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-T5GXFFLA.js";
|
|
14
14
|
import {
|
|
15
15
|
buildDeterministicTurnId,
|
|
16
16
|
clearPendingAuth,
|
|
@@ -28,14 +28,14 @@ import {
|
|
|
28
28
|
normalizeToolNameFromResult,
|
|
29
29
|
persistThreadStateById,
|
|
30
30
|
stripRuntimeTurnContext
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-GDQEU4I7.js";
|
|
32
32
|
import {
|
|
33
33
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
34
34
|
} from "./chunk-3Y47VMHV.js";
|
|
35
35
|
import {
|
|
36
36
|
fallbackShortTitle,
|
|
37
37
|
generateShortTitle
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-W65V465O.js";
|
|
39
39
|
import {
|
|
40
40
|
createPluginConversationEvents,
|
|
41
41
|
createPluginEmbedder,
|
|
@@ -43,15 +43,15 @@ import {
|
|
|
43
43
|
createPluginModel,
|
|
44
44
|
createPluginState,
|
|
45
45
|
getPlugins
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-SCGVWUZX.js";
|
|
47
47
|
import {
|
|
48
48
|
getConversationStore,
|
|
49
49
|
getDb,
|
|
50
50
|
sameActorIdentity
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-37EVZP66.js";
|
|
52
52
|
import {
|
|
53
53
|
getStateAdapter
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-GYEKOX7N.js";
|
|
55
55
|
import {
|
|
56
56
|
ProviderError,
|
|
57
57
|
botConfig,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
findProviderError,
|
|
60
60
|
getProviderErrorAttributes,
|
|
61
61
|
getProviderErrorUserMessage
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-MKRIZ4VG.js";
|
|
63
63
|
import {
|
|
64
64
|
credentialSubjectSchema
|
|
65
65
|
} from "./chunk-RUIXF3YQ.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
buildTurnFailureResponse,
|
|
71
71
|
logWarn,
|
|
72
72
|
setSpanAttributes
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-B63BF443.js";
|
|
74
74
|
|
|
75
75
|
// src/chat/services/conversation-memory.ts
|
|
76
76
|
var CONTEXT_MIN_LIVE_MESSAGES = 12;
|
|
@@ -410,7 +410,7 @@ import {
|
|
|
410
410
|
|
|
411
411
|
// src/chat/services/turn-session-routing.ts
|
|
412
412
|
async function resolveTurnSessionRouting(args) {
|
|
413
|
-
const conversationStore = args.conversationStore ?? (await import("./db-
|
|
413
|
+
const conversationStore = args.conversationStore ?? (await import("./db-WWOMXWTT.js")).getConversationStore();
|
|
414
414
|
const conversation = await conversationStore.get({
|
|
415
415
|
conversationId: args.conversationId
|
|
416
416
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appendAndEnqueueInboundMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X2WMBTS3.js";
|
|
4
4
|
import {
|
|
5
5
|
ConversationTurnLifecycleService
|
|
6
6
|
} from "./chunk-Q6QZTTLS.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
agentBindingSchema,
|
|
13
13
|
agentInvocationSchema,
|
|
14
14
|
createAgentInvocationSchema
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FEKQHPVA.js";
|
|
16
16
|
import {
|
|
17
17
|
TurnInputCommitLostError,
|
|
18
18
|
coerceThreadArtifactsState,
|
|
@@ -27,16 +27,16 @@ import {
|
|
|
27
27
|
openConversationProjection,
|
|
28
28
|
persistThreadStateById,
|
|
29
29
|
saveTurnCheckpoint
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-GDQEU4I7.js";
|
|
31
31
|
import {
|
|
32
32
|
getConversationEventStore,
|
|
33
33
|
getConversationStore,
|
|
34
34
|
getSqlExecutor
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-37EVZP66.js";
|
|
36
36
|
import {
|
|
37
37
|
juniorAgentBindings,
|
|
38
38
|
juniorAgentInvocations
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-MCFIXAV5.js";
|
|
40
40
|
|
|
41
41
|
// src/chat/agent-invocations/work.ts
|
|
42
42
|
import { z } from "zod";
|
|
@@ -636,9 +636,7 @@ function createAgentInvocationWorker(options) {
|
|
|
636
636
|
errorMessage: result.diagnostics.errorMessage ?? "Agent invocation failed"
|
|
637
637
|
} : {},
|
|
638
638
|
messages: result.piMessages,
|
|
639
|
-
modelId: result.diagnostics.modelId,
|
|
640
639
|
actor: invocation.actor,
|
|
641
|
-
reasoningLevel: result.diagnostics.reasoningLevel,
|
|
642
640
|
source: invocation.source,
|
|
643
641
|
surface: "internal"
|
|
644
642
|
});
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-UTL3MHPC.js";
|
|
4
4
|
import {
|
|
5
5
|
parseSlackThreadId
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PH4Q3A6W.js";
|
|
7
7
|
import {
|
|
8
8
|
normalizeSlackConversationId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-V6SRLKUB.js";
|
|
10
10
|
|
|
11
11
|
// src/handlers/health.ts
|
|
12
12
|
function readHealthReport() {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
toCanonicalInputMessage,
|
|
4
4
|
toCanonicalOutputMessage,
|
|
5
5
|
toGenAiMessagesTraceAttributes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QG7OOKIN.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-B63BF443.js";
|
|
15
15
|
|
|
16
16
|
// src/chat/services/provider-error.ts
|
|
17
17
|
var ProviderError = class extends Error {
|
|
@@ -1070,7 +1070,6 @@ export {
|
|
|
1070
1070
|
embedTexts,
|
|
1071
1071
|
normalizeSlackEmojiName,
|
|
1072
1072
|
TURN_REASONING_LEVELS,
|
|
1073
|
-
parseTurnReasoningLevel,
|
|
1074
1073
|
STANDARD_MODEL_PROFILE,
|
|
1075
1074
|
DEFAULT_HANDOFF_MODEL_PROFILE,
|
|
1076
1075
|
modelProfileSchema,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ensureConversationWake,
|
|
6
6
|
requestConversationWork
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X2WMBTS3.js";
|
|
8
8
|
import {
|
|
9
9
|
buildConversationContext,
|
|
10
10
|
buildDeliveredTurnStatePatch,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
resolveTurnSessionRouting,
|
|
22
22
|
scheduleSessionCompletedPluginTasks,
|
|
23
23
|
turnHasReply
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-H6U2U3EP.js";
|
|
25
25
|
import {
|
|
26
26
|
ConversationTurnLifecycleService
|
|
27
27
|
} from "./chunk-Q6QZTTLS.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
getMcpProviderErrorAttributes,
|
|
40
40
|
getMcpStoredOAuthCredentials,
|
|
41
41
|
resolvePluginOAuthAccount
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-47OSH2ZO.js";
|
|
43
43
|
import {
|
|
44
44
|
RetryableDeliveryError
|
|
45
45
|
} from "./chunk-R776HKPK.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
removeReactionFromMessage,
|
|
56
56
|
resolveBaseUrl,
|
|
57
57
|
truncateStatusText
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-ZDGHGY74.js";
|
|
59
59
|
import {
|
|
60
60
|
TurnSliceLimitExceededError,
|
|
61
61
|
abandonTurnRecord,
|
|
@@ -82,32 +82,32 @@ import {
|
|
|
82
82
|
recordAuthorizationCompleted,
|
|
83
83
|
recordTurnSummary,
|
|
84
84
|
saveTurnCheckpoint
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-GDQEU4I7.js";
|
|
86
86
|
import {
|
|
87
87
|
parseSlackThreadId,
|
|
88
88
|
readSlackRawMessageContext,
|
|
89
89
|
resolveSlackChannelIdFromMessage,
|
|
90
90
|
resolveSlackChannelIdFromThreadId
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-PH4Q3A6W.js";
|
|
92
92
|
import {
|
|
93
93
|
getDashboardConversationLink,
|
|
94
94
|
getPluginSlackConversationLink
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-SCGVWUZX.js";
|
|
96
96
|
import {
|
|
97
97
|
SlackActionError,
|
|
98
98
|
getHeaderString,
|
|
99
99
|
getSlackClient,
|
|
100
100
|
isDmChannel,
|
|
101
101
|
normalizeSlackConversationId
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-V6SRLKUB.js";
|
|
103
103
|
import {
|
|
104
104
|
getConversationEventStore,
|
|
105
105
|
requireSlackDestination
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-37EVZP66.js";
|
|
107
107
|
import {
|
|
108
108
|
acquireActiveLock,
|
|
109
109
|
getStateAdapter
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-GYEKOX7N.js";
|
|
111
111
|
import {
|
|
112
112
|
FUNCTION_TIMEOUT_BUFFER_SECONDS,
|
|
113
113
|
botConfig,
|
|
@@ -116,18 +116,18 @@ import {
|
|
|
116
116
|
getRuntimeMetadata,
|
|
117
117
|
normalizeSlackEmojiName,
|
|
118
118
|
standardModelId
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-MKRIZ4VG.js";
|
|
120
120
|
import {
|
|
121
121
|
discoverSkills
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-FGHADGIC.js";
|
|
123
123
|
import {
|
|
124
124
|
pluginCatalogRuntime
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-PB222GIA.js";
|
|
126
126
|
import {
|
|
127
127
|
buildOAuthTokenRequest,
|
|
128
128
|
hasRequiredOAuthScope,
|
|
129
129
|
parseOAuthTokenResponse
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-37JJDS4H.js";
|
|
131
131
|
import {
|
|
132
132
|
createSlackResumeActor,
|
|
133
133
|
isUserActor
|
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
setTags,
|
|
144
144
|
toOptionalString,
|
|
145
145
|
withLogContext
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-B63BF443.js";
|
|
147
147
|
import {
|
|
148
148
|
homeDir
|
|
149
149
|
} from "./chunk-H4HBKISO.js";
|
|
@@ -1597,7 +1597,6 @@ async function resumeSlackTurnInContext(args) {
|
|
|
1597
1597
|
conversationId: runArgs.conversationId,
|
|
1598
1598
|
turnId: runArgs.turnId,
|
|
1599
1599
|
messages: reply.piMessages,
|
|
1600
|
-
modelId: reply.diagnostics.modelId,
|
|
1601
1600
|
durationMs: reply.diagnostics.durationMs,
|
|
1602
1601
|
usage: reply.diagnostics.usage,
|
|
1603
1602
|
destination: replyContext.routing.destination,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDb
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-37EVZP66.js";
|
|
4
4
|
import {
|
|
5
5
|
juniorConversations,
|
|
6
6
|
juniorTaskExecutions
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MCFIXAV5.js";
|
|
8
8
|
import {
|
|
9
9
|
logWarn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-B63BF443.js";
|
|
11
11
|
|
|
12
12
|
// src/chat/tasks/execution-stats.ts
|
|
13
13
|
import {
|
|
@@ -4,30 +4,30 @@ import {
|
|
|
4
4
|
isConversationScopedChannel,
|
|
5
5
|
isDmChannel,
|
|
6
6
|
normalizeSlackConversationId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V6SRLKUB.js";
|
|
8
8
|
import {
|
|
9
9
|
getConversationEventStore,
|
|
10
10
|
getDb
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-37EVZP66.js";
|
|
12
12
|
import {
|
|
13
13
|
juniorConversationAnnotations,
|
|
14
14
|
juniorConversationEvents,
|
|
15
15
|
juniorIdentities,
|
|
16
16
|
juniorUsers
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MCFIXAV5.js";
|
|
18
18
|
import {
|
|
19
19
|
SANDBOX_WORKSPACE_ROOT
|
|
20
20
|
} from "./chunk-EM225ITJ.js";
|
|
21
21
|
import {
|
|
22
22
|
getStateAdapter
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GYEKOX7N.js";
|
|
24
24
|
import {
|
|
25
25
|
botConfig,
|
|
26
26
|
completeObject,
|
|
27
27
|
embedTexts,
|
|
28
28
|
getSlackBotToken,
|
|
29
29
|
standardModelId
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-MKRIZ4VG.js";
|
|
31
31
|
import {
|
|
32
32
|
isActorUserId,
|
|
33
33
|
parseActorUserId
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
logInfo,
|
|
43
43
|
logWarn,
|
|
44
44
|
normalizeIdentityEmail
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-B63BF443.js";
|
|
46
46
|
|
|
47
47
|
// src/chat/plugins/agent-hooks.ts
|
|
48
48
|
import {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-EM225ITJ.js";
|
|
4
4
|
import {
|
|
5
5
|
getSlackBotToken
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MKRIZ4VG.js";
|
|
7
7
|
import {
|
|
8
8
|
parseSlackChannelReferenceId
|
|
9
9
|
} from "./chunk-F3B2YJ76.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
setSpanAttributes,
|
|
13
13
|
setSpanStatus,
|
|
14
14
|
withSpan
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-B63BF443.js";
|
|
16
16
|
|
|
17
17
|
// src/chat/slack/client.ts
|
|
18
18
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "async_hooks";
|