@sentry/junior 0.196.0 → 0.197.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-IQLRR4RC.js → agent-hooks-CM4EKXL4.js} +11 -11
- package/dist/api.js +24 -24
- package/dist/app.js +38 -76
- package/dist/{catalog-runtime-EM7V2F4I.js → catalog-runtime-V7WGCXUD.js} +4 -4
- package/dist/chat/services/automated-turn-limit.d.ts +13 -34
- package/dist/chat/slack/automated-turn-limit-notice.d.ts +2 -24
- package/dist/{chunk-G6YRPYDC.js → chunk-2K26W3FP.js} +1 -1
- package/dist/{chunk-QAINJHI4.js → chunk-4USCVHQZ.js} +5 -5
- package/dist/{chunk-NE2UQMC7.js → chunk-4UUKQB6I.js} +6 -6
- package/dist/{chunk-XNXKRWWI.js → chunk-5GWV7SXF.js} +3 -10
- package/dist/{chunk-VSOO3Y6M.js → chunk-5MMQLB2B.js} +1 -1
- package/dist/{chunk-PIZJBSGZ.js → chunk-6ZQ3CE6X.js} +1 -1
- package/dist/{chunk-CTS72G4B.js → chunk-7ENMKNEK.js} +1 -1
- package/dist/{chunk-VRHZXY5X.js → chunk-BGSAFVJO.js} +1 -1
- package/dist/{chunk-PI6VXVBK.js → chunk-BQ7UXCUO.js} +1 -1
- package/dist/{chunk-5XSEOJPC.js → chunk-BR5GNDPS.js} +2 -2
- package/dist/{chunk-KZX7LORG.js → chunk-C2SOA3KN.js} +3 -3
- package/dist/{chunk-CNI74T7U.js → chunk-DBTI74IT.js} +5 -5
- package/dist/{chunk-BXIVMNLR.js → chunk-DHWYAHAM.js} +1 -1
- package/dist/{chunk-LSPUMNZK.js → chunk-DLXA2ZXJ.js} +2 -2
- package/dist/{chunk-ES7KCEND.js → chunk-EZKISZ3Q.js} +1 -1
- package/dist/{chunk-VXAQTJSR.js → chunk-FCONFDZ4.js} +1 -1
- package/dist/{chunk-EEUFKVCD.js → chunk-H6QL3FWC.js} +21 -21
- package/dist/{chunk-RAWYH7TW.js → chunk-HDSDOBWN.js} +1 -1
- package/dist/{chunk-S74KAE77.js → chunk-IGSAXSM7.js} +4 -4
- package/dist/{chunk-LCAM2P7H.js → chunk-ITP4OR7R.js} +4 -4
- package/dist/{chunk-RFNMWONZ.js → chunk-LIK4T6CF.js} +6 -6
- package/dist/{chunk-6LQNW2CJ.js → chunk-LMTHFU5D.js} +6 -6
- package/dist/{chunk-LGXI6PWX.js → chunk-MJCJ62RZ.js} +4 -4
- package/dist/{chunk-EFNUCRB5.js → chunk-NANQFFGO.js} +8 -8
- package/dist/{chunk-OVWAO5KY.js → chunk-O2H7JUEQ.js} +51 -174
- package/dist/{chunk-KJGH3KWA.js → chunk-O5RG7SKU.js} +3 -3
- package/dist/{chunk-EQBHN4JK.js → chunk-PF3PEX4Q.js} +1 -1
- package/dist/{chunk-I7GEGEHZ.js → chunk-PM5WSDAD.js} +1 -1
- package/dist/{chunk-J357NJQ5.js → chunk-S3DRTWPX.js} +5 -5
- package/dist/{chunk-VKLQ2M7V.js → chunk-SBCWV4E4.js} +9 -9
- package/dist/{chunk-7TUDDW3Y.js → chunk-T5MK3RUT.js} +3 -3
- package/dist/{chunk-N2MSPOGG.js → chunk-V2IX5Q5L.js} +8 -8
- package/dist/{chunk-GZ336GZ5.js → chunk-VAUPAX3O.js} +4 -4
- package/dist/{chunk-VVU7GHIZ.js → chunk-WOJG25QZ.js} +8 -8
- package/dist/{chunk-P3LE2CSJ.js → chunk-XALIC5SY.js} +2 -2
- package/dist/{chunk-DFWJJOW3.js → chunk-YC5CFKME.js} +1 -1
- package/dist/{chunk-SR5FS2JP.js → chunk-YLBJBBYX.js} +3 -3
- package/dist/{chunk-B5WJBVHY.js → chunk-YZQLXALE.js} +2 -2
- 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-YTM7ZXPK.js → db-6BD722UD.js} +6 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-OXW4KQLQ.js → oauth-callback-server-P6AIT27Q.js} +29 -29
- package/dist/{runner-RJY5RNJO.js → runner-OKPDZOJC.js} +21 -21
- package/dist/{skills-WZV6NLFY.js → skills-CQFX3V2I.js} +5 -5
- package/dist/spawn-GA5MADGU.js +42 -0
- package/dist/task-runner-7IIYO44C.js +36 -0
- package/dist/{validation-XS5ZHV3W.js → validation-STB4W433.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-LJMSDEY3.js → work-B7N5TEYI.js} +21 -21
- package/dist/{worker-NMFZ7A2N.js → worker-W6PBEHCA.js} +10 -10
- package/package.json +4 -4
- package/dist/spawn-J7SQJLYF.js +0 -42
- package/dist/task-runner-SMUQ5464.js +0 -36
|
@@ -1,36 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
* Destination-visible pause notice for the consecutive automated-turn limit.
|
|
3
|
-
*
|
|
4
|
-
* Best-effort: a failed post must not fail the Turn or re-enable event wakes.
|
|
5
|
-
* The consecutive-turn limit claims the notice slot before this post. Clear that
|
|
6
|
-
* claim when the post fails or is skipped so a later paused wake can try again.
|
|
7
|
-
*/
|
|
8
|
-
import type { Destination } from "@sentry/junior-plugin-api";
|
|
9
|
-
import { type AutomatedTurnLimitScope, type AutomatedTurnLimitUpdate } from "@/chat/services/automated-turn-limit";
|
|
1
|
+
import { type AutomatedTurnLimitUpdate } from "@/chat/services/automated-turn-limit";
|
|
10
2
|
/** Post the pause notice for one Conversation Location when known. */
|
|
11
3
|
export declare function postAutomatedTurnLimitNoticeForConversation(args: {
|
|
12
4
|
conversationId: string;
|
|
13
5
|
maxTurns: number;
|
|
14
6
|
nowMs?: number;
|
|
15
|
-
resumeIn?: "thread" | "channel";
|
|
16
|
-
scope?: AutomatedTurnLimitScope;
|
|
17
|
-
}): Promise<boolean>;
|
|
18
|
-
/** Post the pause notice for one Slack Destination. */
|
|
19
|
-
export declare function postAutomatedTurnLimitNoticeForDestination(args: {
|
|
20
|
-
destination: Destination;
|
|
21
|
-
maxTurns: number;
|
|
22
|
-
nowMs?: number;
|
|
23
|
-
resumeIn?: "thread" | "channel";
|
|
24
|
-
scope?: AutomatedTurnLimitScope;
|
|
25
7
|
threadTs?: string;
|
|
26
8
|
}): Promise<boolean>;
|
|
27
|
-
/**
|
|
28
|
-
* Post the pause notice after a finished Turn hits the limit.
|
|
29
|
-
* Prefer the Conversation Location so thread watches stay in-thread.
|
|
30
|
-
*/
|
|
9
|
+
/** Post the pause notice after a finished Turn hits the limit. */
|
|
31
10
|
export declare function maybePostAutomatedTurnLimitNotice(args: {
|
|
32
11
|
conversationId: string;
|
|
33
|
-
destination?: Destination;
|
|
34
12
|
maxTurns: number;
|
|
35
13
|
nowMs?: number;
|
|
36
14
|
threadTs?: string;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
persistConversationMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LMTHFU5D.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-5GWV7SXF.js";
|
|
10
10
|
import {
|
|
11
11
|
juniorLocationConfigurations
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6ZQ3CE6X.js";
|
|
13
13
|
import {
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PF3PEX4Q.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-7ENMKNEK.js";
|
|
24
24
|
|
|
25
25
|
// src/chat/state/conversation.ts
|
|
26
26
|
function defaultConversationState() {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getConversationEventStore,
|
|
6
6
|
getDb,
|
|
7
7
|
getSqlExecutor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5GWV7SXF.js";
|
|
9
9
|
import {
|
|
10
10
|
juniorCodeChanges,
|
|
11
11
|
juniorCodeRepositories,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
juniorUsers,
|
|
17
17
|
juniorWorkspaceRepos,
|
|
18
18
|
juniorWorkspaces
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6ZQ3CE6X.js";
|
|
20
20
|
import {
|
|
21
21
|
SANDBOX_WORKSPACE_ROOT,
|
|
22
22
|
getVercelSandboxCredentials,
|
|
@@ -24,16 +24,16 @@ import {
|
|
|
24
24
|
isSandboxMissingError,
|
|
25
25
|
runNonInteractiveCommand,
|
|
26
26
|
sleep
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YLBJBBYX.js";
|
|
28
28
|
import {
|
|
29
29
|
getStateAdapter
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-PF3PEX4Q.js";
|
|
31
31
|
import {
|
|
32
32
|
botConfig,
|
|
33
33
|
completeObject,
|
|
34
34
|
embedTexts,
|
|
35
35
|
getSlackBotToken
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-BR5GNDPS.js";
|
|
37
37
|
import {
|
|
38
38
|
defaultModelId
|
|
39
39
|
} from "./chunk-NHJU2ZAL.js";
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
setSpanAttributes,
|
|
53
53
|
setSpanStatus,
|
|
54
54
|
withSpan
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-7ENMKNEK.js";
|
|
56
56
|
|
|
57
57
|
// src/chat/plugins/agent-hooks.ts
|
|
58
58
|
import {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
juniorConversations,
|
|
9
9
|
juniorIdentities,
|
|
10
10
|
juniorUsers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6ZQ3CE6X.js";
|
|
12
12
|
import {
|
|
13
13
|
conversationEventDataSchema,
|
|
14
14
|
decodeStoredConversationEvent,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-VFUK3X5B.js";
|
|
21
21
|
import {
|
|
22
22
|
getChatConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BR5GNDPS.js";
|
|
24
24
|
import {
|
|
25
25
|
parseActorUserId,
|
|
26
26
|
parseSlackChannelReferenceId,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-N7TMSOZH.js";
|
|
29
29
|
import {
|
|
30
30
|
normalizeIdentityEmail
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7ENMKNEK.js";
|
|
32
32
|
|
|
33
33
|
// src/chat/conversations/sql/store.ts
|
|
34
34
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -68,12 +68,6 @@ function sameDestination(left, right) {
|
|
|
68
68
|
}
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
|
-
function destinationKey(destination) {
|
|
72
|
-
if (destination.platform === "local") {
|
|
73
|
-
return destination.conversationId;
|
|
74
|
-
}
|
|
75
|
-
return `slack:${destination.teamId}:${destination.channelId}`;
|
|
76
|
-
}
|
|
77
71
|
|
|
78
72
|
// src/chat/identities/sql.ts
|
|
79
73
|
import { randomUUID } from "crypto";
|
|
@@ -1842,7 +1836,6 @@ export {
|
|
|
1842
1836
|
parseDestination,
|
|
1843
1837
|
requireSlackDestination,
|
|
1844
1838
|
sameDestination,
|
|
1845
|
-
destinationKey,
|
|
1846
1839
|
upsertIdentity,
|
|
1847
1840
|
upsertLinkedIdentity,
|
|
1848
1841
|
deleteProviderIdentityForSlackUser,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
toCanonicalInputMessage,
|
|
9
9
|
toCanonicalOutputMessage,
|
|
10
10
|
toGenAiMessagesTraceAttributes
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EZKISZ3Q.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-7ENMKNEK.js";
|
|
20
20
|
|
|
21
21
|
// src/chat/services/provider-error.ts
|
|
22
22
|
var ProviderError = class extends Error {
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
isStale,
|
|
7
7
|
runNonInteractiveCommand,
|
|
8
8
|
sleep
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YLBJBBYX.js";
|
|
10
10
|
import {
|
|
11
11
|
getStateAdapter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PF3PEX4Q.js";
|
|
13
13
|
import {
|
|
14
14
|
setSpanAttributes,
|
|
15
15
|
withSpan
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7ENMKNEK.js";
|
|
17
17
|
|
|
18
18
|
// src/chat/sandbox/resources.ts
|
|
19
19
|
var configuredResources;
|
|
@@ -7,23 +7,23 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
formatProviderLabel,
|
|
9
9
|
startOAuthFlow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LIK4T6CF.js";
|
|
11
11
|
import {
|
|
12
12
|
abandonReplacedPendingAuth,
|
|
13
13
|
canReusePendingAuthLink
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YC5CFKME.js";
|
|
15
15
|
import {
|
|
16
16
|
recordAuthorizationRequested
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LMTHFU5D.js";
|
|
18
18
|
import {
|
|
19
19
|
AGENT_INVOCATION_MAILBOX_STATUSES
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6ZQ3CE6X.js";
|
|
21
21
|
import {
|
|
22
22
|
TURN_REASONING_LEVELS
|
|
23
23
|
} from "./chunk-NHJU2ZAL.js";
|
|
24
24
|
import {
|
|
25
25
|
pluginCatalogRuntime
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2K26W3FP.js";
|
|
27
27
|
import {
|
|
28
28
|
credentialContextSchema
|
|
29
29
|
} from "./chunk-CEMMLV5L.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2K26W3FP.js";
|
|
4
4
|
import {
|
|
5
5
|
skillRoots
|
|
6
6
|
} from "./chunk-TXKUKMVO.js";
|
|
7
7
|
import {
|
|
8
8
|
logWarn
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7ENMKNEK.js";
|
|
10
10
|
|
|
11
11
|
// src/chat/skills.ts
|
|
12
12
|
import fs from "fs/promises";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
AgentRunError,
|
|
6
6
|
executeTurn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-O5RG7SKU.js";
|
|
8
8
|
import {
|
|
9
9
|
buildDeliveredTurnStatePatch,
|
|
10
10
|
finalizeFailedTurnReplyWithEvent,
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
getTurnUserSlackMessageTs,
|
|
16
16
|
persistAuthPauseTurnState,
|
|
17
17
|
requireTurnFailureEventId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-S3DRTWPX.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveTurnSessionRouting,
|
|
21
21
|
scheduleSessionCompletedPluginTasks
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WOJG25QZ.js";
|
|
23
23
|
import {
|
|
24
24
|
getTurnLifecycle
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5MMQLB2B.js";
|
|
26
26
|
import {
|
|
27
27
|
coerceThreadConversationState,
|
|
28
28
|
configValueSchema,
|
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
getPersistedSandboxState,
|
|
31
31
|
getPersistedThreadState,
|
|
32
32
|
persistThreadStateById
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4USCVHQZ.js";
|
|
34
34
|
import {
|
|
35
35
|
buildSentryConversationUrl,
|
|
36
36
|
deleteWebAuthorization
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-HDSDOBWN.js";
|
|
38
38
|
import {
|
|
39
39
|
createUserTokenStore,
|
|
40
40
|
deleteMcpAuthSession,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
lookupSlackUserProfile,
|
|
46
46
|
putMcpStoredOAuthCredentials,
|
|
47
47
|
resolvePluginOAuthAccount
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-V2IX5Q5L.js";
|
|
49
49
|
import {
|
|
50
50
|
RetryableDeliveryError,
|
|
51
51
|
addReactionToMessage,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
removeReactionFromMessage,
|
|
60
60
|
resolveBaseUrl,
|
|
61
61
|
truncateStatusText
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-LIK4T6CF.js";
|
|
63
63
|
import {
|
|
64
64
|
CooperativeTurnYieldError,
|
|
65
65
|
clearPendingAuth,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
isCooperativeTurnYieldError,
|
|
69
69
|
isPendingAuthLatestRequest,
|
|
70
70
|
markTurnFailed
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-YC5CFKME.js";
|
|
72
72
|
import {
|
|
73
73
|
abandonTurnRecord,
|
|
74
74
|
buildConversationContext,
|
|
@@ -87,20 +87,20 @@ import {
|
|
|
87
87
|
recordTurnSummary,
|
|
88
88
|
saveTurnCheckpoint,
|
|
89
89
|
turnHasReply
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-LMTHFU5D.js";
|
|
91
91
|
import {
|
|
92
92
|
parseSlackThreadId,
|
|
93
93
|
readSlackRawMessageContext,
|
|
94
94
|
resolveSlackChannelIdFromMessage,
|
|
95
95
|
resolveSlackChannelIdFromThreadId
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-FCONFDZ4.js";
|
|
97
97
|
import {
|
|
98
98
|
ensureConversationWake,
|
|
99
99
|
requestConversationWork
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-IGSAXSM7.js";
|
|
101
101
|
import {
|
|
102
102
|
getTurnRequestDeadline
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-BGSAFVJO.js";
|
|
104
104
|
import {
|
|
105
105
|
getVercelConversationWorkQueue
|
|
106
106
|
} from "./chunk-DKIJ2RP5.js";
|
|
@@ -112,39 +112,39 @@ import {
|
|
|
112
112
|
getSlackClient,
|
|
113
113
|
isDmChannel,
|
|
114
114
|
normalizeSlackConversationId
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-4UUKQB6I.js";
|
|
116
116
|
import {
|
|
117
117
|
getConversationStore,
|
|
118
118
|
getSqlExecutor,
|
|
119
119
|
requireSlackDestination,
|
|
120
120
|
upsertIdentity,
|
|
121
121
|
upsertLinkedIdentity
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-5GWV7SXF.js";
|
|
123
123
|
import {
|
|
124
124
|
acquireActiveLock,
|
|
125
125
|
getStateAdapter
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-PF3PEX4Q.js";
|
|
127
127
|
import {
|
|
128
128
|
botConfig,
|
|
129
129
|
escapeXml,
|
|
130
130
|
getChatConfig,
|
|
131
131
|
getRuntimeMetadata,
|
|
132
132
|
normalizeSlackEmojiName
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-BR5GNDPS.js";
|
|
134
134
|
import {
|
|
135
135
|
defaultModelId
|
|
136
136
|
} from "./chunk-NHJU2ZAL.js";
|
|
137
137
|
import {
|
|
138
138
|
discoverSkills
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-DLXA2ZXJ.js";
|
|
140
140
|
import {
|
|
141
141
|
pluginCatalogRuntime
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-2K26W3FP.js";
|
|
143
143
|
import {
|
|
144
144
|
buildOAuthTokenRequest,
|
|
145
145
|
hasRequiredOAuthScope,
|
|
146
146
|
parseOAuthTokenResponse
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-DHWYAHAM.js";
|
|
148
148
|
import {
|
|
149
149
|
createSlackResumeActor,
|
|
150
150
|
isUserActor,
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
setTags,
|
|
163
163
|
toOptionalString,
|
|
164
164
|
withLogContext
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-7ENMKNEK.js";
|
|
166
166
|
|
|
167
167
|
// src/chat/slack/assistant-thread/status-render.ts
|
|
168
168
|
var DEFAULT_STATUS_CONTEXTS = {
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
getConversationStore,
|
|
9
9
|
parseDestination,
|
|
10
10
|
sameDestination
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5GWV7SXF.js";
|
|
12
12
|
import {
|
|
13
13
|
getDefaultRedisStateAdapterFor,
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PF3PEX4Q.js";
|
|
16
16
|
import {
|
|
17
17
|
getChatConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BR5GNDPS.js";
|
|
19
19
|
import {
|
|
20
20
|
parseStoredSlackActor
|
|
21
21
|
} from "./chunk-N7TMSOZH.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
isRecord,
|
|
24
24
|
toOptionalNumber,
|
|
25
25
|
toOptionalString
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-7ENMKNEK.js";
|
|
27
27
|
|
|
28
28
|
// src/chat/task-execution/state.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -19,23 +19,23 @@ import {
|
|
|
19
19
|
releaseConversationWork,
|
|
20
20
|
requestAnotherSlice,
|
|
21
21
|
startConversationWork
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IGSAXSM7.js";
|
|
23
23
|
import {
|
|
24
24
|
getTurnRequestDeadline
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BGSAFVJO.js";
|
|
26
26
|
import {
|
|
27
27
|
ConversationQueueMessageRejectedError
|
|
28
28
|
} from "./chunk-JAL3CH4G.js";
|
|
29
29
|
import {
|
|
30
30
|
getChatConfig,
|
|
31
31
|
isProviderRetryError
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BR5GNDPS.js";
|
|
33
33
|
import {
|
|
34
34
|
logException,
|
|
35
35
|
logInfo,
|
|
36
36
|
logWarn,
|
|
37
37
|
withLogContext
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-7ENMKNEK.js";
|
|
39
39
|
|
|
40
40
|
// src/chat/task-execution/worker.ts
|
|
41
41
|
var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
|
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
isDmChannel,
|
|
9
9
|
normalizeSlackConversationId,
|
|
10
10
|
withSlackRetries
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4UUKQB6I.js";
|
|
12
12
|
import {
|
|
13
13
|
parseDestination
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5GWV7SXF.js";
|
|
15
15
|
import {
|
|
16
16
|
getStateAdapter
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PF3PEX4Q.js";
|
|
18
18
|
import {
|
|
19
19
|
normalizeSlackEmojiName
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BR5GNDPS.js";
|
|
21
21
|
import {
|
|
22
22
|
pluginCatalogRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2K26W3FP.js";
|
|
24
24
|
import {
|
|
25
25
|
parseSlackMessageTs,
|
|
26
26
|
parseSlackUserId
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
isRecord,
|
|
30
30
|
logInfo,
|
|
31
31
|
logWarn
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-7ENMKNEK.js";
|
|
33
33
|
|
|
34
34
|
// src/chat/agent/types.ts
|
|
35
35
|
var RetryableDeliveryError = class extends Error {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
authenticationUnlinkedEvent,
|
|
8
8
|
fallbackShortTitle,
|
|
9
9
|
generateShortTitle
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YZQLXALE.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-5GWV7SXF.js";
|
|
20
20
|
import {
|
|
21
21
|
SANDBOX_REPOS_ROOT,
|
|
22
22
|
SANDBOX_WORKSPACE_ROOT,
|
|
23
23
|
sleep
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YLBJBBYX.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-PF3PEX4Q.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-BR5GNDPS.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-7ENMKNEK.js";
|
|
55
55
|
|
|
56
56
|
// src/chat/turn-context-tag.ts
|
|
57
57
|
var TURN_CONTEXT_TAG = "runtime-turn-context";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
agentTurnCostUsd,
|
|
3
3
|
agentTurnTotalTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YZQLXALE.js";
|
|
5
5
|
import {
|
|
6
6
|
getDb
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5GWV7SXF.js";
|
|
8
8
|
import {
|
|
9
9
|
juniorConversations,
|
|
10
10
|
juniorTaskExecutions
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6ZQ3CE6X.js";
|
|
12
12
|
import {
|
|
13
13
|
logWarn
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7ENMKNEK.js";
|
|
15
15
|
|
|
16
16
|
// src/chat/tasks/execution-stats.ts
|
|
17
17
|
import {
|