@sentry/junior 0.195.0 → 0.196.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-VIBTIP5F.js → agent-hooks-IQLRR4RC.js} +13 -13
- package/dist/api/schema.js +3 -3
- package/dist/api.js +27 -27
- package/dist/app.d.ts +8 -2
- package/dist/app.js +102 -70
- package/dist/{catalog-runtime-6E6SGRZK.js → catalog-runtime-EM7V2F4I.js} +4 -4
- package/dist/chat/agent/handoff.d.ts +73 -0
- package/dist/chat/config.d.ts +2 -2
- package/dist/chat/model-profile.d.ts +12 -0
- package/dist/chat/no-reply.d.ts +4 -3
- package/dist/chat/services/subscribed-decision.d.ts +8 -0
- package/dist/chat/tools/types.d.ts +6 -2
- package/dist/{chunk-LMYRF6HX.js → chunk-5XSEOJPC.js} +85 -14
- package/dist/{chunk-RZ3PBNDV.js → chunk-6LQNW2CJ.js} +7 -7
- package/dist/{chunk-GFBR4S3Q.js → chunk-7NL7T6VU.js} +1 -1
- package/dist/{chunk-6GGDBXXP.js → chunk-7TUDDW3Y.js} +3 -3
- package/dist/{chunk-R5BGW4WR.js → chunk-B5WJBVHY.js} +2 -2
- package/dist/{chunk-X3PBQ4BK.js → chunk-BXIVMNLR.js} +1 -1
- package/dist/{chunk-JBSCMOLR.js → chunk-CNI74T7U.js} +6 -6
- package/dist/{chunk-HUQOXMDG.js → chunk-CTS72G4B.js} +1 -1
- package/dist/{chunk-VYDIA2UL.js → chunk-DFWJJOW3.js} +2 -6
- package/dist/{chunk-7UED4D5T.js → chunk-EEUFKVCD.js} +22 -22
- package/dist/{chunk-PYTRZZ4V.js → chunk-EFNUCRB5.js} +8 -8
- package/dist/{chunk-7MYXH5LA.js → chunk-EQBHN4JK.js} +1 -1
- package/dist/{chunk-KBPWC7NU.js → chunk-ES7KCEND.js} +1 -1
- package/dist/{chunk-RKA22BQP.js → chunk-G6YRPYDC.js} +1 -1
- package/dist/{chunk-DTYOEHUP.js → chunk-GZ336GZ5.js} +4 -4
- package/dist/{chunk-C4NY6L7S.js → chunk-I7GEGEHZ.js} +1 -1
- package/dist/{chunk-KUQRWV53.js → chunk-J357NJQ5.js} +5 -5
- package/dist/{chunk-CE2P6TOV.js → chunk-KJGH3KWA.js} +3 -3
- package/dist/{chunk-L62JVQPL.js → chunk-KZX7LORG.js} +3 -3
- package/dist/{chunk-QPZL2IYT.js → chunk-LBN67OZR.js} +1 -1
- package/dist/{chunk-HE5PZAPS.js → chunk-LCAM2P7H.js} +4 -4
- package/dist/{chunk-5NR7N567.js → chunk-LGXI6PWX.js} +4 -4
- package/dist/{chunk-RQO67SAO.js → chunk-LSPUMNZK.js} +2 -2
- package/dist/{chunk-OQHO62VA.js → chunk-N2MSPOGG.js} +8 -8
- package/dist/{chunk-PFQRZ4IB.js → chunk-NE2UQMC7.js} +7 -7
- package/dist/{chunk-D4YV5TDV.js → chunk-NHJU2ZAL.js} +11 -0
- package/dist/{chunk-FEZIEEOP.js → chunk-OVWAO5KY.js} +260 -182
- package/dist/{chunk-QHJZSYKY.js → chunk-P3LE2CSJ.js} +2 -2
- package/dist/{chunk-3VWIZVK7.js → chunk-PI6VXVBK.js} +1 -1
- package/dist/{chunk-FPQPYJEG.js → chunk-PIZJBSGZ.js} +1 -1
- package/dist/{chunk-FE3Y4KES.js → chunk-QAINJHI4.js} +5 -5
- package/dist/{chunk-5HNXLP4W.js → chunk-RAWYH7TW.js} +1 -1
- package/dist/{chunk-R5OHONYU.js → chunk-RFNMWONZ.js} +6 -6
- package/dist/{chunk-QKHZF2LH.js → chunk-S74KAE77.js} +4 -4
- package/dist/{chunk-LM7UE523.js → chunk-SR5FS2JP.js} +3 -3
- package/dist/{chunk-N67T4VY3.js → chunk-VKLQ2M7V.js} +9 -9
- package/dist/{chunk-I4RH3KLJ.js → chunk-VRHZXY5X.js} +1 -1
- package/dist/{chunk-7PQMTME5.js → chunk-VSOO3Y6M.js} +1 -1
- package/dist/{chunk-BJZML4RT.js → chunk-VVU7GHIZ.js} +9 -9
- package/dist/{chunk-6TRQLG3D.js → chunk-VXAQTJSR.js} +1 -1
- package/dist/{chunk-KQ3GZGBK.js → chunk-XNXKRWWI.js} +4 -4
- package/dist/cli/chat.js +35 -35
- package/dist/cli/check.js +5 -5
- package/dist/cli/plugins.js +14 -14
- package/dist/cli/snapshot-create.js +10 -10
- package/dist/cli/upgrade.js +7 -7
- package/dist/{db-FVCSDROR.js → db-YTM7ZXPK.js} +8 -8
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +7 -7
- package/dist/{oauth-callback-server-Z5PXTDOE.js → oauth-callback-server-OXW4KQLQ.js} +31 -31
- package/dist/{runner-RHYU7OGV.js → runner-RJY5RNJO.js} +23 -23
- package/dist/{skills-QTN73DN5.js → skills-WZV6NLFY.js} +5 -5
- package/dist/spawn-J7SQJLYF.js +42 -0
- package/dist/task-runner-SMUQ5464.js +36 -0
- package/dist/{validation-2ZK7GA6N.js → validation-XS5ZHV3W.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-7IBKSZRU.js → work-LJMSDEY3.js} +23 -23
- package/dist/worker-NMFZ7A2N.js +24 -0
- package/package.json +5 -5
- package/dist/spawn-R56OWLUH.js +0 -42
- package/dist/task-runner-LLJZTLRP.js +0 -36
- package/dist/worker-RNVQVCO7.js +0 -24
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ToolInputError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B5WJBVHY.js";
|
|
4
4
|
import {
|
|
5
5
|
getPlugins
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NE2UQMC7.js";
|
|
7
7
|
import {
|
|
8
8
|
getDb
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XNXKRWWI.js";
|
|
10
10
|
import {
|
|
11
11
|
juniorAttachments,
|
|
12
12
|
juniorConversations,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
juniorSchedulerRuns,
|
|
15
15
|
juniorSchedulerTasks,
|
|
16
16
|
juniorStats
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PIZJBSGZ.js";
|
|
18
18
|
import {
|
|
19
19
|
juniorDestinations
|
|
20
20
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
coerceThreadConversationState,
|
|
3
3
|
getPersistedThreadState,
|
|
4
4
|
persistThreadStateById
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QAINJHI4.js";
|
|
6
6
|
import {
|
|
7
7
|
clearPendingAuth,
|
|
8
8
|
markTurnClosed,
|
|
9
9
|
markTurnCompleted
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DFWJJOW3.js";
|
|
11
11
|
import {
|
|
12
12
|
hydrateConversationMessages,
|
|
13
13
|
markConversationMessage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6LQNW2CJ.js";
|
|
15
15
|
import {
|
|
16
16
|
buildDeterministicTurnId
|
|
17
17
|
} from "./chunk-DA2KGZZI.js";
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
findProviderError,
|
|
21
21
|
getProviderErrorAttributes,
|
|
22
22
|
getProviderErrorUserMessage
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-5XSEOJPC.js";
|
|
24
24
|
import {
|
|
25
25
|
parseSlackMessageTs
|
|
26
26
|
} from "./chunk-N7TMSOZH.js";
|
|
27
27
|
import {
|
|
28
28
|
buildTurnFailureResponse
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-CTS72G4B.js";
|
|
30
30
|
|
|
31
31
|
// src/chat/runtime/delivered-turn-state.ts
|
|
32
32
|
function buildDeliveredTurnStatePatch(args) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConversationTurnLifecycleService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VSOO3Y6M.js";
|
|
4
4
|
import {
|
|
5
5
|
runAgentWithTimeout
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RFNMWONZ.js";
|
|
7
7
|
import {
|
|
8
8
|
getConversationEventStore
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XNXKRWWI.js";
|
|
10
10
|
|
|
11
11
|
// src/chat/runtime/turn-execution.ts
|
|
12
12
|
var AgentRunError = class extends Error {
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
isStale,
|
|
7
7
|
runNonInteractiveCommand,
|
|
8
8
|
sleep
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SR5FS2JP.js";
|
|
10
10
|
import {
|
|
11
11
|
getStateAdapter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EQBHN4JK.js";
|
|
13
13
|
import {
|
|
14
14
|
setSpanAttributes,
|
|
15
15
|
withSpan
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CTS72G4B.js";
|
|
17
17
|
|
|
18
18
|
// src/chat/sandbox/resources.ts
|
|
19
19
|
var configuredResources;
|
|
@@ -19,23 +19,23 @@ import {
|
|
|
19
19
|
releaseConversationWork,
|
|
20
20
|
requestAnotherSlice,
|
|
21
21
|
startConversationWork
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-S74KAE77.js";
|
|
23
23
|
import {
|
|
24
24
|
getTurnRequestDeadline
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-VRHZXY5X.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-5XSEOJPC.js";
|
|
33
33
|
import {
|
|
34
34
|
logException,
|
|
35
35
|
logInfo,
|
|
36
36
|
logWarn,
|
|
37
37
|
withLogContext
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CTS72G4B.js";
|
|
39
39
|
|
|
40
40
|
// src/chat/task-execution/worker.ts
|
|
41
41
|
var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
agentTurnCostUsd,
|
|
3
3
|
agentTurnTotalTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-B5WJBVHY.js";
|
|
5
5
|
import {
|
|
6
6
|
getDb
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XNXKRWWI.js";
|
|
8
8
|
import {
|
|
9
9
|
juniorConversations,
|
|
10
10
|
juniorTaskExecutions
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PIZJBSGZ.js";
|
|
12
12
|
import {
|
|
13
13
|
logWarn
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CTS72G4B.js";
|
|
15
15
|
|
|
16
16
|
// src/chat/tasks/execution-stats.ts
|
|
17
17
|
import {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-G6YRPYDC.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-CTS72G4B.js";
|
|
10
10
|
|
|
11
11
|
// src/chat/skills.ts
|
|
12
12
|
import fs from "fs/promises";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveBaseUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RFNMWONZ.js";
|
|
4
4
|
import {
|
|
5
5
|
createPluginLogger,
|
|
6
6
|
getPlugins,
|
|
7
7
|
getSlackClient,
|
|
8
8
|
withSlackRetries
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NE2UQMC7.js";
|
|
10
10
|
import {
|
|
11
11
|
getDb,
|
|
12
12
|
parseDestination
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XNXKRWWI.js";
|
|
14
14
|
import {
|
|
15
15
|
sleep
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SR5FS2JP.js";
|
|
17
17
|
import {
|
|
18
18
|
acquireActiveLock,
|
|
19
19
|
getStateAdapter
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EQBHN4JK.js";
|
|
21
21
|
import {
|
|
22
22
|
pluginCatalogRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-G6YRPYDC.js";
|
|
24
24
|
import {
|
|
25
25
|
fetchWithBoundedOAuthErrorBodies
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BXIVMNLR.js";
|
|
27
27
|
import {
|
|
28
28
|
isRecord
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-CTS72G4B.js";
|
|
30
30
|
|
|
31
31
|
// src/chat/capabilities/router.ts
|
|
32
32
|
var ProviderCredentialRouter = class {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getConversationEventStore,
|
|
6
6
|
getDb,
|
|
7
7
|
getSqlExecutor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XNXKRWWI.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-PIZJBSGZ.js";
|
|
20
20
|
import {
|
|
21
21
|
SANDBOX_WORKSPACE_ROOT,
|
|
22
22
|
getVercelSandboxCredentials,
|
|
@@ -24,19 +24,19 @@ import {
|
|
|
24
24
|
isSandboxMissingError,
|
|
25
25
|
runNonInteractiveCommand,
|
|
26
26
|
sleep
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SR5FS2JP.js";
|
|
28
28
|
import {
|
|
29
29
|
getStateAdapter
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-EQBHN4JK.js";
|
|
31
31
|
import {
|
|
32
32
|
botConfig,
|
|
33
33
|
completeObject,
|
|
34
34
|
embedTexts,
|
|
35
35
|
getSlackBotToken
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-5XSEOJPC.js";
|
|
37
37
|
import {
|
|
38
38
|
defaultModelId
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-NHJU2ZAL.js";
|
|
40
40
|
import {
|
|
41
41
|
isActorUserId,
|
|
42
42
|
parseActorUserId,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
setSpanAttributes,
|
|
53
53
|
setSpanStatus,
|
|
54
54
|
withSpan
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-CTS72G4B.js";
|
|
56
56
|
|
|
57
57
|
// src/chat/plugins/agent-hooks.ts
|
|
58
58
|
import {
|
|
@@ -14,6 +14,15 @@ function parseTurnReasoningLevel(value) {
|
|
|
14
14
|
// src/chat/model-profile.ts
|
|
15
15
|
import { z as z2 } from "zod";
|
|
16
16
|
var modelProfileSchema = z2.string().regex(/^[a-z][a-z0-9_-]*$/);
|
|
17
|
+
function formatModelProfile(profile, description) {
|
|
18
|
+
const text = description?.trim();
|
|
19
|
+
return text ? `"${profile}": ${text}` : `"${profile}"`;
|
|
20
|
+
}
|
|
21
|
+
function formatModelProfiles(profiles, profileNames) {
|
|
22
|
+
return profileNames.map(
|
|
23
|
+
(profile) => `- ${formatModelProfile(profile, profiles[profile]?.description)}`
|
|
24
|
+
).join("\n");
|
|
25
|
+
}
|
|
17
26
|
var ModelProfileNotConfiguredError = class extends Error {
|
|
18
27
|
constructor(profile) {
|
|
19
28
|
super(`Model profile "${profile}" is not configured`);
|
|
@@ -38,6 +47,8 @@ export {
|
|
|
38
47
|
TURN_REASONING_LEVELS,
|
|
39
48
|
parseTurnReasoningLevel,
|
|
40
49
|
modelProfileSchema,
|
|
50
|
+
formatModelProfile,
|
|
51
|
+
formatModelProfiles,
|
|
41
52
|
ModelProfileNotConfiguredError,
|
|
42
53
|
modelIdForProfile,
|
|
43
54
|
defaultModelId,
|