@sentry/junior 0.195.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-VIBTIP5F.js → agent-hooks-CM4EKXL4.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 -108
- package/dist/{catalog-runtime-6E6SGRZK.js → catalog-runtime-V7WGCXUD.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/automated-turn-limit.d.ts +13 -34
- package/dist/chat/services/subscribed-decision.d.ts +8 -0
- package/dist/chat/slack/automated-turn-limit-notice.d.ts +2 -24
- package/dist/chat/tools/types.d.ts +6 -2
- package/dist/{chunk-RKA22BQP.js → chunk-2K26W3FP.js} +1 -1
- package/dist/{chunk-FE3Y4KES.js → chunk-4USCVHQZ.js} +5 -5
- package/dist/{chunk-PFQRZ4IB.js → chunk-4UUKQB6I.js} +7 -7
- package/dist/{chunk-KQ3GZGBK.js → chunk-5GWV7SXF.js} +4 -11
- package/dist/{chunk-7PQMTME5.js → chunk-5MMQLB2B.js} +1 -1
- package/dist/{chunk-FPQPYJEG.js → chunk-6ZQ3CE6X.js} +1 -1
- package/dist/{chunk-HUQOXMDG.js → chunk-7ENMKNEK.js} +1 -1
- package/dist/{chunk-GFBR4S3Q.js → chunk-7NL7T6VU.js} +1 -1
- package/dist/{chunk-I4RH3KLJ.js → chunk-BGSAFVJO.js} +1 -1
- package/dist/{chunk-3VWIZVK7.js → chunk-BQ7UXCUO.js} +1 -1
- package/dist/{chunk-LMYRF6HX.js → chunk-BR5GNDPS.js} +85 -14
- package/dist/{chunk-L62JVQPL.js → chunk-C2SOA3KN.js} +3 -3
- package/dist/{chunk-JBSCMOLR.js → chunk-DBTI74IT.js} +6 -6
- package/dist/{chunk-X3PBQ4BK.js → chunk-DHWYAHAM.js} +1 -1
- package/dist/{chunk-RQO67SAO.js → chunk-DLXA2ZXJ.js} +2 -2
- package/dist/{chunk-KBPWC7NU.js → chunk-EZKISZ3Q.js} +1 -1
- package/dist/{chunk-6TRQLG3D.js → chunk-FCONFDZ4.js} +1 -1
- package/dist/{chunk-7UED4D5T.js → chunk-H6QL3FWC.js} +22 -22
- package/dist/{chunk-5HNXLP4W.js → chunk-HDSDOBWN.js} +1 -1
- package/dist/{chunk-QKHZF2LH.js → chunk-IGSAXSM7.js} +4 -4
- package/dist/{chunk-HE5PZAPS.js → chunk-ITP4OR7R.js} +4 -4
- package/dist/{chunk-QPZL2IYT.js → chunk-LBN67OZR.js} +1 -1
- package/dist/{chunk-R5OHONYU.js → chunk-LIK4T6CF.js} +6 -6
- package/dist/{chunk-RZ3PBNDV.js → chunk-LMTHFU5D.js} +7 -7
- package/dist/{chunk-5NR7N567.js → chunk-MJCJ62RZ.js} +4 -4
- package/dist/{chunk-PYTRZZ4V.js → chunk-NANQFFGO.js} +8 -8
- package/dist/{chunk-D4YV5TDV.js → chunk-NHJU2ZAL.js} +11 -0
- package/dist/{chunk-FEZIEEOP.js → chunk-O2H7JUEQ.js} +289 -334
- package/dist/{chunk-CE2P6TOV.js → chunk-O5RG7SKU.js} +3 -3
- package/dist/{chunk-7MYXH5LA.js → chunk-PF3PEX4Q.js} +1 -1
- package/dist/{chunk-C4NY6L7S.js → chunk-PM5WSDAD.js} +1 -1
- package/dist/{chunk-KUQRWV53.js → chunk-S3DRTWPX.js} +5 -5
- package/dist/{chunk-N67T4VY3.js → chunk-SBCWV4E4.js} +9 -9
- package/dist/{chunk-6GGDBXXP.js → chunk-T5MK3RUT.js} +3 -3
- package/dist/{chunk-OQHO62VA.js → chunk-V2IX5Q5L.js} +8 -8
- package/dist/{chunk-DTYOEHUP.js → chunk-VAUPAX3O.js} +4 -4
- package/dist/{chunk-BJZML4RT.js → chunk-WOJG25QZ.js} +9 -9
- package/dist/{chunk-QHJZSYKY.js → chunk-XALIC5SY.js} +2 -2
- package/dist/{chunk-VYDIA2UL.js → chunk-YC5CFKME.js} +2 -6
- package/dist/{chunk-LM7UE523.js → chunk-YLBJBBYX.js} +3 -3
- package/dist/{chunk-R5BGW4WR.js → chunk-YZQLXALE.js} +2 -2
- 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-6BD722UD.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-P6AIT27Q.js} +31 -31
- package/dist/{runner-RHYU7OGV.js → runner-OKPDZOJC.js} +23 -23
- package/dist/{skills-QTN73DN5.js → skills-CQFX3V2I.js} +5 -5
- package/dist/spawn-GA5MADGU.js +42 -0
- package/dist/task-runner-7IIYO44C.js +36 -0
- package/dist/{validation-2ZK7GA6N.js → validation-STB4W433.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-7IBKSZRU.js → work-B7N5TEYI.js} +23 -23
- package/dist/worker-W6PBEHCA.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
|
@@ -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
|
-
} from "./chunk-
|
|
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,31 +16,31 @@ 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,
|
|
34
34
|
instructionActors,
|
|
35
35
|
instructionProvenanceFor
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-7NL7T6VU.js";
|
|
37
37
|
import {
|
|
38
38
|
botConfig,
|
|
39
39
|
completeText,
|
|
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 {
|
|
@@ -3,39 +3,39 @@ import {
|
|
|
3
3
|
} from "./chunk-RC745GGZ.js";
|
|
4
4
|
import {
|
|
5
5
|
parseSlackThreadId
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FCONFDZ4.js";
|
|
7
7
|
import {
|
|
8
8
|
appendAndEnqueueExclusiveInboundMessage,
|
|
9
9
|
appendAndEnqueueInboundMessage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IGSAXSM7.js";
|
|
11
11
|
import {
|
|
12
12
|
buildDeterministicTurnId
|
|
13
13
|
} from "./chunk-DA2KGZZI.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeSlackConversationId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4UUKQB6I.js";
|
|
17
17
|
import {
|
|
18
18
|
getConversationStore,
|
|
19
19
|
getDb
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5GWV7SXF.js";
|
|
21
21
|
import {
|
|
22
22
|
juniorConversationParticipants,
|
|
23
23
|
juniorConversations,
|
|
24
24
|
juniorIdentities,
|
|
25
25
|
juniorUsers
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6ZQ3CE6X.js";
|
|
27
27
|
import {
|
|
28
28
|
juniorDestinations
|
|
29
29
|
} from "./chunk-VFUK3X5B.js";
|
|
30
30
|
import {
|
|
31
31
|
getSlackBotToken
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BR5GNDPS.js";
|
|
33
33
|
import {
|
|
34
34
|
canExposeConversationPayload
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-EZKISZ3Q.js";
|
|
36
36
|
import {
|
|
37
37
|
logWarn
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-7ENMKNEK.js";
|
|
39
39
|
|
|
40
40
|
// src/handlers/health.ts
|
|
41
41
|
function readHealthReport() {
|
|
@@ -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,
|