@sentry/junior 0.197.0 → 0.198.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-CM4EKXL4.js → agent-hooks-3E7O7ATZ.js} +11 -11
- package/dist/api.js +24 -24
- package/dist/app.d.ts +2 -1
- package/dist/app.js +44 -42
- package/dist/{catalog-runtime-V7WGCXUD.js → catalog-runtime-QDUBRXEW.js} +4 -4
- package/dist/chat/config.d.ts +16 -0
- package/dist/{chunk-6ZQ3CE6X.js → chunk-2ACXVY6O.js} +1 -1
- package/dist/{chunk-5MMQLB2B.js → chunk-342FVAX5.js} +1 -1
- package/dist/{chunk-2K26W3FP.js → chunk-3J5Y4RWY.js} +1 -1
- package/dist/{chunk-7ENMKNEK.js → chunk-3TMKXW4H.js} +1 -1
- package/dist/{chunk-EZKISZ3Q.js → chunk-4FHQ6CCO.js} +1 -1
- package/dist/{chunk-4UUKQB6I.js → chunk-4UW7BEJZ.js} +6 -6
- package/dist/{chunk-DHWYAHAM.js → chunk-7KXZRRMK.js} +1 -1
- package/dist/{chunk-IGSAXSM7.js → chunk-A6KKPVEA.js} +4 -4
- package/dist/{chunk-YLBJBBYX.js → chunk-BFIFTKUS.js} +3 -3
- package/dist/{chunk-H6QL3FWC.js → chunk-C3SNQB6B.js} +21 -21
- package/dist/{chunk-BQ7UXCUO.js → chunk-CBHQOGFA.js} +1 -1
- package/dist/{chunk-WOJG25QZ.js → chunk-CGNZXN7B.js} +8 -8
- package/dist/{chunk-XALIC5SY.js → chunk-CSGQWJIY.js} +2 -2
- package/dist/{chunk-LIK4T6CF.js → chunk-CZC6ZEXR.js} +6 -6
- package/dist/{chunk-DLXA2ZXJ.js → chunk-D3SLBCD4.js} +2 -2
- package/dist/{chunk-BR5GNDPS.js → chunk-EATO3SKS.js} +54 -2
- package/dist/{chunk-T5MK3RUT.js → chunk-EWPTEQXA.js} +3 -3
- package/dist/{chunk-S3DRTWPX.js → chunk-F3XUS2T5.js} +5 -5
- package/dist/{chunk-YZQLXALE.js → chunk-FU4OWKCL.js} +2 -2
- package/dist/{chunk-4USCVHQZ.js → chunk-G2CT2D5U.js} +5 -5
- package/dist/{chunk-MJCJ62RZ.js → chunk-G6XSYS3Q.js} +4 -4
- package/dist/{chunk-SBCWV4E4.js → chunk-IZ4CIFJY.js} +9 -9
- package/dist/{chunk-YC5CFKME.js → chunk-KVXHBJCH.js} +1 -1
- package/dist/{chunk-O5RG7SKU.js → chunk-LXPGGSYD.js} +3 -3
- package/dist/{chunk-HDSDOBWN.js → chunk-N3GQY63R.js} +8 -2
- package/dist/{chunk-BGSAFVJO.js → chunk-N6LJYW7V.js} +1 -1
- package/dist/{chunk-FCONFDZ4.js → chunk-NVDUM2CM.js} +1 -1
- package/dist/{chunk-DBTI74IT.js → chunk-OKQMTCHU.js} +5 -5
- package/dist/{chunk-VAUPAX3O.js → chunk-QYSJWJLJ.js} +4 -4
- package/dist/{chunk-O2H7JUEQ.js → chunk-SCVIT6K4.js} +22 -22
- package/dist/{chunk-5GWV7SXF.js → chunk-SPEJV3TW.js} +3 -3
- package/dist/{chunk-PF3PEX4Q.js → chunk-T5KV6DUY.js} +1 -1
- package/dist/{chunk-LMTHFU5D.js → chunk-U67DBSNZ.js} +6 -6
- package/dist/{chunk-ITP4OR7R.js → chunk-VYGZPJSM.js} +4 -4
- package/dist/{chunk-V2IX5Q5L.js → chunk-X2WFY3TM.js} +8 -8
- package/dist/{chunk-PM5WSDAD.js → chunk-XNZAZ57D.js} +1 -1
- package/dist/{chunk-NANQFFGO.js → chunk-ZORFTPFN.js} +8 -8
- package/dist/{chunk-C2SOA3KN.js → chunk-ZUEUBQWE.js} +3 -3
- 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-6BD722UD.js → db-OSPYS4WA.js} +6 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-P6AIT27Q.js → oauth-callback-server-VG736DHZ.js} +29 -29
- package/dist/{runner-OKPDZOJC.js → runner-3GKIVG6A.js} +21 -21
- package/dist/{skills-CQFX3V2I.js → skills-FKMV7HTX.js} +5 -5
- package/dist/spawn-5YR3E42B.js +42 -0
- package/dist/task-runner-GR2WZNCW.js +36 -0
- package/dist/{validation-STB4W433.js → validation-4XYG33GY.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-B7N5TEYI.js → work-TJAL6PV3.js} +21 -21
- package/dist/{worker-W6PBEHCA.js → worker-3OYUEME2.js} +10 -10
- package/package.json +4 -4
- package/dist/spawn-GA5MADGU.js +0 -42
- package/dist/task-runner-7IIYO44C.js +0 -36
|
@@ -13,26 +13,26 @@ import {
|
|
|
13
13
|
getPlugins,
|
|
14
14
|
setPlugins,
|
|
15
15
|
validatePlugins
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4UW7BEJZ.js";
|
|
17
17
|
import "./chunk-3Y47VMHV.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-SPEJV3TW.js";
|
|
19
|
+
import "./chunk-2ACXVY6O.js";
|
|
20
|
+
import "./chunk-BFIFTKUS.js";
|
|
21
|
+
import "./chunk-T5KV6DUY.js";
|
|
22
22
|
import "./chunk-7NL7T6VU.js";
|
|
23
23
|
import "./chunk-VFUK3X5B.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-EATO3SKS.js";
|
|
25
25
|
import "./chunk-NHJU2ZAL.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-4FHQ6CCO.js";
|
|
27
|
+
import "./chunk-3J5Y4RWY.js";
|
|
28
|
+
import "./chunk-7KXZRRMK.js";
|
|
29
29
|
import "./chunk-CEMMLV5L.js";
|
|
30
30
|
import "./chunk-N7TMSOZH.js";
|
|
31
31
|
import "./chunk-DWPN6SCH.js";
|
|
32
32
|
import "./chunk-TXKUKMVO.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-3TMKXW4H.js";
|
|
34
34
|
import "./chunk-PEQXYSSE.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-XNZAZ57D.js";
|
|
36
36
|
export {
|
|
37
37
|
PluginHookDeniedError,
|
|
38
38
|
applyPluginFormatMarkdown,
|
package/dist/api.js
CHANGED
|
@@ -78,12 +78,12 @@ import {
|
|
|
78
78
|
resolveSlackConversationContextFromThreadId,
|
|
79
79
|
viewerConversationMembership,
|
|
80
80
|
webActorFromEmail
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-ZORFTPFN.js";
|
|
82
82
|
import {
|
|
83
83
|
buildSentryConversationUrl,
|
|
84
84
|
buildSentryEventUrl,
|
|
85
85
|
getWebAuthorization
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-N3GQY63R.js";
|
|
87
87
|
import {
|
|
88
88
|
conversationActiveDaysColumn,
|
|
89
89
|
conversationAggregateColumns,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
readTaskExecutionSummaries,
|
|
98
98
|
readTaskExecutions,
|
|
99
99
|
readTaskRuns
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-G6XSYS3Q.js";
|
|
101
101
|
import {
|
|
102
102
|
healthReportSchema,
|
|
103
103
|
pluginOperationalReportFeedSchema,
|
|
@@ -121,24 +121,24 @@ import {
|
|
|
121
121
|
readScheduledTask,
|
|
122
122
|
readStats,
|
|
123
123
|
saveScheduledTask
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-QYSJWJLJ.js";
|
|
125
125
|
import {
|
|
126
126
|
parseSlackThreadId
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-NVDUM2CM.js";
|
|
128
128
|
import {
|
|
129
129
|
cancelHumanFacingPendingMessages,
|
|
130
130
|
getConversation
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-A6KKPVEA.js";
|
|
132
132
|
import "./chunk-DA2KGZZI.js";
|
|
133
133
|
import {
|
|
134
134
|
agentTurnUsageSchema,
|
|
135
135
|
fallbackShortTitle,
|
|
136
136
|
hasAgentTurnUsage,
|
|
137
137
|
renderJuniorNativeConversationEvent
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-FU4OWKCL.js";
|
|
139
139
|
import {
|
|
140
140
|
getCachedSnapshot
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-ZUEUBQWE.js";
|
|
142
142
|
import "./chunk-PDO5BLNM.js";
|
|
143
143
|
import {
|
|
144
144
|
getVercelConversationWorkQueue
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
updateWorkspace,
|
|
165
165
|
withSlackRetries,
|
|
166
166
|
workspaceRepoCheckoutPath
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-4UW7BEJZ.js";
|
|
168
168
|
import "./chunk-3Y47VMHV.js";
|
|
169
169
|
import {
|
|
170
170
|
getConversationStore,
|
|
@@ -173,7 +173,7 @@ import {
|
|
|
173
173
|
locationFromRow,
|
|
174
174
|
parseSessionSource,
|
|
175
175
|
resolveRootConversationId
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-SPEJV3TW.js";
|
|
177
177
|
import {
|
|
178
178
|
conversationReadColumns,
|
|
179
179
|
juniorApiTokens,
|
|
@@ -185,23 +185,23 @@ import {
|
|
|
185
185
|
juniorIdentities,
|
|
186
186
|
juniorSchedulerTasks,
|
|
187
187
|
juniorUsers
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-2ACXVY6O.js";
|
|
189
189
|
import {
|
|
190
190
|
create,
|
|
191
191
|
hash
|
|
192
|
-
} from "./chunk-
|
|
193
|
-
import "./chunk-
|
|
192
|
+
} from "./chunk-BFIFTKUS.js";
|
|
193
|
+
import "./chunk-T5KV6DUY.js";
|
|
194
194
|
import {
|
|
195
195
|
decodeStoredConversationEvent
|
|
196
196
|
} from "./chunk-7NL7T6VU.js";
|
|
197
197
|
import {
|
|
198
198
|
juniorDestinations
|
|
199
199
|
} from "./chunk-VFUK3X5B.js";
|
|
200
|
-
import "./chunk-
|
|
200
|
+
import "./chunk-EATO3SKS.js";
|
|
201
201
|
import "./chunk-NHJU2ZAL.js";
|
|
202
|
-
import "./chunk-
|
|
203
|
-
import "./chunk-
|
|
204
|
-
import "./chunk-
|
|
202
|
+
import "./chunk-4FHQ6CCO.js";
|
|
203
|
+
import "./chunk-3J5Y4RWY.js";
|
|
204
|
+
import "./chunk-7KXZRRMK.js";
|
|
205
205
|
import "./chunk-CEMMLV5L.js";
|
|
206
206
|
import {
|
|
207
207
|
parseSlackChannelId,
|
|
@@ -213,9 +213,9 @@ import "./chunk-TXKUKMVO.js";
|
|
|
213
213
|
import {
|
|
214
214
|
logException,
|
|
215
215
|
logWarn
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-3TMKXW4H.js";
|
|
217
217
|
import "./chunk-PEQXYSSE.js";
|
|
218
|
-
import "./chunk-
|
|
218
|
+
import "./chunk-XNZAZ57D.js";
|
|
219
219
|
|
|
220
220
|
// src/api.ts
|
|
221
221
|
import { Hono as Hono9 } from "hono";
|
|
@@ -5048,7 +5048,7 @@ async function readPeoplePluginReports(args) {
|
|
|
5048
5048
|
source: "plugins"
|
|
5049
5049
|
});
|
|
5050
5050
|
}
|
|
5051
|
-
const { getPluginProfileReports } = await import("./agent-hooks-
|
|
5051
|
+
const { getPluginProfileReports } = await import("./agent-hooks-3E7O7ATZ.js");
|
|
5052
5052
|
return pluginOperationalReportFeedSchema.parse({
|
|
5053
5053
|
generatedAt: new Date(nowMs).toISOString(),
|
|
5054
5054
|
reports: await getPluginProfileReports({
|
|
@@ -5882,7 +5882,7 @@ function readDescriptionText(home) {
|
|
|
5882
5882
|
}
|
|
5883
5883
|
}
|
|
5884
5884
|
async function readSkillReports() {
|
|
5885
|
-
const { discoverSkills } = await import("./skills-
|
|
5885
|
+
const { discoverSkills } = await import("./skills-FKMV7HTX.js");
|
|
5886
5886
|
const skills = await discoverSkills();
|
|
5887
5887
|
return skillReportsSchema.parse(
|
|
5888
5888
|
skills.map((skill) => ({
|
|
@@ -5892,7 +5892,7 @@ async function readSkillReports() {
|
|
|
5892
5892
|
);
|
|
5893
5893
|
}
|
|
5894
5894
|
async function readPlugins() {
|
|
5895
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
5895
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-QDUBRXEW.js");
|
|
5896
5896
|
return pluginsSchema.parse(
|
|
5897
5897
|
pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
5898
5898
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
@@ -5905,7 +5905,7 @@ async function readPlugins() {
|
|
|
5905
5905
|
async function readRuntimeInfoReport() {
|
|
5906
5906
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
5907
5907
|
import("./discovery-DWVDM7UK.js"),
|
|
5908
|
-
import("./catalog-runtime-
|
|
5908
|
+
import("./catalog-runtime-QDUBRXEW.js"),
|
|
5909
5909
|
readPlugins(),
|
|
5910
5910
|
readSkillReports()
|
|
5911
5911
|
]);
|
|
@@ -5921,7 +5921,7 @@ async function readRuntimeInfoReport() {
|
|
|
5921
5921
|
}
|
|
5922
5922
|
async function readPluginOperationalReportFeed() {
|
|
5923
5923
|
const nowMs = Date.now();
|
|
5924
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
5924
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-3E7O7ATZ.js");
|
|
5925
5925
|
return pluginOperationalReportFeedSchema.parse({
|
|
5926
5926
|
source: "plugins",
|
|
5927
5927
|
generatedAt: new Date(nowMs).toISOString(),
|
package/dist/app.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
+
import { type BotModelConfig } from "@/chat/config";
|
|
2
3
|
import type { ModelProfileInput } from "@/chat/model-profile";
|
|
3
4
|
import { type ExperimentalFeaturesConfig } from "@/chat/experimental";
|
|
4
5
|
import { type SandboxResourceConfig } from "@/chat/sandbox/resources";
|
|
@@ -10,7 +11,7 @@ export { defineJuniorPlugins } from "./plugins";
|
|
|
10
11
|
export { JUNIOR_VERSION };
|
|
11
12
|
export type { JuniorPluginInput, JuniorPluginSet, JuniorPluginSetOptions, } from "./plugins";
|
|
12
13
|
export type { ModelProfileInput } from "@/chat/model-profile";
|
|
13
|
-
export interface JuniorAppOptions {
|
|
14
|
+
export interface JuniorAppOptions extends BotModelConfig {
|
|
14
15
|
/** Authenticated dashboard mounted by core when configured. */
|
|
15
16
|
dashboard?: JuniorDashboardOptions;
|
|
16
17
|
/**
|
package/dist/app.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
processConversationWork
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VYGZPJSM.js";
|
|
4
4
|
import {
|
|
5
5
|
bindSpawnAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CSGQWJIY.js";
|
|
7
7
|
import {
|
|
8
8
|
createAgentInvocationWorker,
|
|
9
9
|
enqueueAgentInvocation,
|
|
10
10
|
listPendingAgentInvocationMailboxAppends,
|
|
11
11
|
resolveAgentInvocationId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IZ4CIFJY.js";
|
|
13
13
|
import {
|
|
14
14
|
GET as GET2,
|
|
15
15
|
GET2 as GET3,
|
|
@@ -37,12 +37,12 @@ import {
|
|
|
37
37
|
startProcessingReaction,
|
|
38
38
|
stripLeadingBotMention,
|
|
39
39
|
wakePausedTurn
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-C3SNQB6B.js";
|
|
41
41
|
import "./chunk-FA6POGLH.js";
|
|
42
42
|
import {
|
|
43
43
|
AgentRunError,
|
|
44
44
|
executeTurn
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-LXPGGSYD.js";
|
|
46
46
|
import {
|
|
47
47
|
buildDeliveredTurnStatePatch,
|
|
48
48
|
completeAuthPauseTurn,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
getTurnUserSlackMessageTs,
|
|
54
54
|
persistAuthPauseTurnState,
|
|
55
55
|
requireTurnFailureEventId
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-F3XUS2T5.js";
|
|
57
57
|
import {
|
|
58
58
|
claimDispatchMailboxAppend,
|
|
59
59
|
confirmDispatchMailboxAppend,
|
|
@@ -73,11 +73,11 @@ import {
|
|
|
73
73
|
processPluginTask,
|
|
74
74
|
resolveTurnSessionRouting,
|
|
75
75
|
scheduleSessionCompletedPluginTasks
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-CGNZXN7B.js";
|
|
77
77
|
import {
|
|
78
78
|
ConversationTurnLifecycleService,
|
|
79
79
|
getTurnLifecycle
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-342FVAX5.js";
|
|
81
81
|
import {
|
|
82
82
|
coerceThreadConversationState,
|
|
83
83
|
getLocationConfigurationService,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
persistThreadRuntimeState,
|
|
87
87
|
persistThreadState,
|
|
88
88
|
persistThreadStateById
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-G2CT2D5U.js";
|
|
90
90
|
import {
|
|
91
91
|
GET,
|
|
92
92
|
appendAndEnqueueWebMessage,
|
|
@@ -101,24 +101,24 @@ import {
|
|
|
101
101
|
resolveSlackChannelTypeFromMessage,
|
|
102
102
|
resolveSlackConversationContext,
|
|
103
103
|
webActorFromEmail
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-ZORFTPFN.js";
|
|
105
105
|
import {
|
|
106
106
|
createWebAuthorization,
|
|
107
107
|
deleteWebAuthorization
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-N3GQY63R.js";
|
|
109
109
|
import {
|
|
110
110
|
recordTaskExecution
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-G6XSYS3Q.js";
|
|
112
112
|
import "./chunk-RC745GGZ.js";
|
|
113
113
|
import {
|
|
114
114
|
createVercelPluginTaskCallback,
|
|
115
115
|
queueCallback,
|
|
116
116
|
registerVercelPluginTaskDevConsumer
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-EWPTEQXA.js";
|
|
118
118
|
import {
|
|
119
119
|
validatePluginEgressCredentialHooks,
|
|
120
120
|
validatePluginRegistrations
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-CBHQOGFA.js";
|
|
122
122
|
import {
|
|
123
123
|
defineJuniorPlugins,
|
|
124
124
|
pluginCatalogConfigFromEnv,
|
|
@@ -160,11 +160,11 @@ import {
|
|
|
160
160
|
shouldEmitDevAgentTrace,
|
|
161
161
|
shouldPropagateSandboxEgressTrace,
|
|
162
162
|
unpublishedArtifactHeaders
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-SCVIT6K4.js";
|
|
164
164
|
import {
|
|
165
165
|
AuthorizationFlowDisabledError,
|
|
166
166
|
PluginCredentialFailureError
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-OKQMTCHU.js";
|
|
168
168
|
import "./chunk-6Y5B5PEX.js";
|
|
169
169
|
import "./chunk-DIB4GX3G.js";
|
|
170
170
|
import {
|
|
@@ -172,14 +172,14 @@ import {
|
|
|
172
172
|
deleteMcpAuthSessionsForUserProvider,
|
|
173
173
|
deleteMcpServerSessionId,
|
|
174
174
|
deleteMcpStoredOAuthCredentials
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-X2WFY3TM.js";
|
|
176
176
|
import {
|
|
177
177
|
RetryableDeliveryError,
|
|
178
178
|
createAgentRunner,
|
|
179
179
|
formatProviderLabel,
|
|
180
180
|
postSlackMessage,
|
|
181
181
|
startOAuthFlow
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-CZC6ZEXR.js";
|
|
183
183
|
import {
|
|
184
184
|
ConversationTurnBoundaryError,
|
|
185
185
|
CooperativeTurnYieldError,
|
|
@@ -195,7 +195,7 @@ import {
|
|
|
195
195
|
markTurnCompleted,
|
|
196
196
|
markTurnFailed,
|
|
197
197
|
startActiveTurn
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-KVXHBJCH.js";
|
|
199
199
|
import {
|
|
200
200
|
abandonTurnRecord,
|
|
201
201
|
appendThreadContextMessages,
|
|
@@ -232,7 +232,7 @@ import {
|
|
|
232
232
|
trimTrailingAssistantMessages,
|
|
233
233
|
turnHasReply,
|
|
234
234
|
upsertConversationMessage
|
|
235
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-U67DBSNZ.js";
|
|
236
236
|
import {
|
|
237
237
|
getExperimentalFeatures,
|
|
238
238
|
isExperimentalFeatureEnabled,
|
|
@@ -252,10 +252,10 @@ import {
|
|
|
252
252
|
scheduledRunId,
|
|
253
253
|
scheduledRunSchema,
|
|
254
254
|
withScheduledTaskLock
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-QYSJWJLJ.js";
|
|
256
256
|
import {
|
|
257
257
|
parseSlackThreadId
|
|
258
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-NVDUM2CM.js";
|
|
259
259
|
import {
|
|
260
260
|
CONVERSATION_WORK_STALE_ENQUEUE_MS,
|
|
261
261
|
appendAndEnqueueInboundMessage,
|
|
@@ -270,16 +270,16 @@ import {
|
|
|
270
270
|
removeActiveConversation,
|
|
271
271
|
requestConversationWork,
|
|
272
272
|
stopConversationWork
|
|
273
|
-
} from "./chunk-
|
|
273
|
+
} from "./chunk-A6KKPVEA.js";
|
|
274
274
|
import {
|
|
275
275
|
buildDeterministicAssistantMessageId,
|
|
276
276
|
buildDeterministicTurnId
|
|
277
277
|
} from "./chunk-DA2KGZZI.js";
|
|
278
|
-
import "./chunk-
|
|
278
|
+
import "./chunk-FU4OWKCL.js";
|
|
279
279
|
import {
|
|
280
280
|
getSandboxResourceConfig,
|
|
281
281
|
setSandboxResourceConfig
|
|
282
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-ZUEUBQWE.js";
|
|
283
283
|
import "./chunk-PDO5BLNM.js";
|
|
284
284
|
import "./chunk-UIE3R5XU.js";
|
|
285
285
|
import {
|
|
@@ -288,7 +288,7 @@ import {
|
|
|
288
288
|
} from "./chunk-X6GDDWQH.js";
|
|
289
289
|
import {
|
|
290
290
|
getTurnRequestDeadline
|
|
291
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-N6LJYW7V.js";
|
|
292
292
|
import {
|
|
293
293
|
getVercelConversationWorkQueue,
|
|
294
294
|
resolveConversationWorkQueueTopic,
|
|
@@ -324,7 +324,7 @@ import {
|
|
|
324
324
|
verifyEventTaskCredentialSubject,
|
|
325
325
|
verifyScheduledTaskCredentialSubject,
|
|
326
326
|
verifySlackDirectCredentialSubject
|
|
327
|
-
} from "./chunk-
|
|
327
|
+
} from "./chunk-4UW7BEJZ.js";
|
|
328
328
|
import "./chunk-3Y47VMHV.js";
|
|
329
329
|
import {
|
|
330
330
|
createSlackDestination,
|
|
@@ -336,7 +336,7 @@ import {
|
|
|
336
336
|
requireSlackDestination,
|
|
337
337
|
withConversationEventLock,
|
|
338
338
|
withConversationMutationLock
|
|
339
|
-
} from "./chunk-
|
|
339
|
+
} from "./chunk-SPEJV3TW.js";
|
|
340
340
|
import {
|
|
341
341
|
juniorAgentBindings,
|
|
342
342
|
juniorAgentInvocations,
|
|
@@ -344,13 +344,13 @@ import {
|
|
|
344
344
|
juniorConversations,
|
|
345
345
|
juniorSchedulerRuns,
|
|
346
346
|
juniorSchedulerTasks
|
|
347
|
-
} from "./chunk-
|
|
348
|
-
import "./chunk-
|
|
347
|
+
} from "./chunk-2ACXVY6O.js";
|
|
348
|
+
import "./chunk-BFIFTKUS.js";
|
|
349
349
|
import {
|
|
350
350
|
acquireActiveLock,
|
|
351
351
|
getStateAdapter,
|
|
352
352
|
withActiveLock
|
|
353
|
-
} from "./chunk-
|
|
353
|
+
} from "./chunk-T5KV6DUY.js";
|
|
354
354
|
import {
|
|
355
355
|
instructionProvenanceFor
|
|
356
356
|
} from "./chunk-7NL7T6VU.js";
|
|
@@ -370,19 +370,20 @@ import {
|
|
|
370
370
|
getSlackReactionConfig,
|
|
371
371
|
getSlackSigningSecret,
|
|
372
372
|
isProviderRetryError,
|
|
373
|
+
setBotModelConfig,
|
|
373
374
|
setProfiles,
|
|
374
375
|
setSlackReactionConfig
|
|
375
|
-
} from "./chunk-
|
|
376
|
+
} from "./chunk-EATO3SKS.js";
|
|
376
377
|
import {
|
|
377
378
|
defaultModelId,
|
|
378
379
|
modelIdForProfile
|
|
379
380
|
} from "./chunk-NHJU2ZAL.js";
|
|
380
|
-
import "./chunk-
|
|
381
|
-
import "./chunk-
|
|
381
|
+
import "./chunk-4FHQ6CCO.js";
|
|
382
|
+
import "./chunk-D3SLBCD4.js";
|
|
382
383
|
import {
|
|
383
384
|
pluginCatalogRuntime
|
|
384
|
-
} from "./chunk-
|
|
385
|
-
import "./chunk-
|
|
385
|
+
} from "./chunk-3J5Y4RWY.js";
|
|
386
|
+
import "./chunk-7KXZRRMK.js";
|
|
386
387
|
import {
|
|
387
388
|
credentialContextForActor
|
|
388
389
|
} from "./chunk-CEMMLV5L.js";
|
|
@@ -418,13 +419,13 @@ import {
|
|
|
418
419
|
withContext,
|
|
419
420
|
withLogContext,
|
|
420
421
|
withSpan
|
|
421
|
-
} from "./chunk-
|
|
422
|
+
} from "./chunk-3TMKXW4H.js";
|
|
422
423
|
import {
|
|
423
424
|
continueTrace
|
|
424
425
|
} from "./chunk-PEQXYSSE.js";
|
|
425
426
|
import {
|
|
426
427
|
JUNIOR_VERSION
|
|
427
|
-
} from "./chunk-
|
|
428
|
+
} from "./chunk-XNZAZ57D.js";
|
|
428
429
|
|
|
429
430
|
// src/app.ts
|
|
430
431
|
import { createRequire } from "module";
|
|
@@ -12164,8 +12165,7 @@ async function createApp(options) {
|
|
|
12164
12165
|
validatePlugins(plugins);
|
|
12165
12166
|
getDb();
|
|
12166
12167
|
const shouldValidatePluginCatalog = hasConfiguredPluginCatalog(pluginConfig) || Boolean(configuredPlugins?.registrations.length) || Boolean(Object.keys(options?.configDefaults ?? {}).length);
|
|
12167
|
-
const
|
|
12168
|
-
const previousModelProfiles = botConfig.profiles;
|
|
12168
|
+
const previousBotConfig = { ...botConfig };
|
|
12169
12169
|
const previousPluginCatalogConfig = pluginCatalogRuntime.setConfig(pluginConfig);
|
|
12170
12170
|
const previousPlugins = setPlugins(plugins);
|
|
12171
12171
|
const previousConfigDefaults = getConfigDefaults();
|
|
@@ -12177,8 +12177,7 @@ async function createApp(options) {
|
|
|
12177
12177
|
pluginCatalogRuntime.setConfig(previousPluginCatalogConfig);
|
|
12178
12178
|
setPlugins(previousPlugins);
|
|
12179
12179
|
setConfigDefaults(previousConfigDefaults);
|
|
12180
|
-
botConfig
|
|
12181
|
-
botConfig.profiles = previousModelProfiles;
|
|
12180
|
+
Object.assign(botConfig, previousBotConfig);
|
|
12182
12181
|
setSlackReactionConfig(previousSlackReactionConfig);
|
|
12183
12182
|
setSandboxResourceConfig(previousSandboxResources);
|
|
12184
12183
|
setExperimentalFeatures(previousExperimentalFeatures);
|
|
@@ -12201,6 +12200,9 @@ async function createApp(options) {
|
|
|
12201
12200
|
if (options?.profiles || options?.defaultProfile) {
|
|
12202
12201
|
setProfiles(options.profiles, options.defaultProfile);
|
|
12203
12202
|
}
|
|
12203
|
+
if (options) {
|
|
12204
|
+
setBotModelConfig(options);
|
|
12205
|
+
}
|
|
12204
12206
|
if (options?.slack) {
|
|
12205
12207
|
setSlackReactionConfig(options.slack);
|
|
12206
12208
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-3J5Y4RWY.js";
|
|
4
|
+
import "./chunk-7KXZRRMK.js";
|
|
5
5
|
import "./chunk-CEMMLV5L.js";
|
|
6
6
|
import "./chunk-N7TMSOZH.js";
|
|
7
7
|
import "./chunk-DWPN6SCH.js";
|
|
8
8
|
import "./chunk-TXKUKMVO.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-3TMKXW4H.js";
|
|
10
10
|
import "./chunk-PEQXYSSE.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-XNZAZ57D.js";
|
|
12
12
|
export {
|
|
13
13
|
pluginCatalogRuntime
|
|
14
14
|
};
|
package/dist/chat/config.d.ts
CHANGED
|
@@ -8,6 +8,20 @@ export declare const DEFAULT_SQL_STATEMENT_TIMEOUT_MS = 30000;
|
|
|
8
8
|
export declare const FUNCTION_TIMEOUT_BUFFER_SECONDS = 20;
|
|
9
9
|
/** Additional buffer that makes conversation work yield before the hard request deadline. */
|
|
10
10
|
export declare const CONVERSATION_WORK_SOFT_YIELD_BUFFER_SECONDS = 40;
|
|
11
|
+
export interface BotModelConfig {
|
|
12
|
+
/** Model used for embeddings. */
|
|
13
|
+
embeddingModelId?: string;
|
|
14
|
+
/** Model used for low-cost structured and utility calls. */
|
|
15
|
+
fastModelId?: string;
|
|
16
|
+
/** Model used to review sensitive tool calls. */
|
|
17
|
+
guardianModelId?: string;
|
|
18
|
+
/** Model used to generate images. */
|
|
19
|
+
imageGenerationModelId?: string;
|
|
20
|
+
/** Model used to analyze images. */
|
|
21
|
+
visionModelId?: string;
|
|
22
|
+
/** Model used for web search. */
|
|
23
|
+
webSearchModelId?: string;
|
|
24
|
+
}
|
|
11
25
|
export interface BotConfig {
|
|
12
26
|
contextWindowTokens: number;
|
|
13
27
|
crossActorMidRunMode: CrossActorMidRunMode;
|
|
@@ -76,6 +90,8 @@ export interface SlackReactionConfig {
|
|
|
76
90
|
completedReactionEmoji: string;
|
|
77
91
|
processingReactionEmoji: string;
|
|
78
92
|
}
|
|
93
|
+
/** Apply model overrides from createApp(). */
|
|
94
|
+
export declare function setBotModelConfig(config: BotModelConfig): void;
|
|
79
95
|
/** Apply profiles from createApp(). */
|
|
80
96
|
export declare function setProfiles(profiles: Readonly<Record<string, ModelProfileInput>> | undefined, defaultProfile: string | undefined): void;
|
|
81
97
|
/** Return the current Slack reaction emoji config. */
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getConversationEventStore,
|
|
6
6
|
getDb,
|
|
7
7
|
getSqlExecutor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SPEJV3TW.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-2ACXVY6O.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-BFIFTKUS.js";
|
|
28
28
|
import {
|
|
29
29
|
getStateAdapter
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-T5KV6DUY.js";
|
|
31
31
|
import {
|
|
32
32
|
botConfig,
|
|
33
33
|
completeObject,
|
|
34
34
|
embedTexts,
|
|
35
35
|
getSlackBotToken
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-EATO3SKS.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-3TMKXW4H.js";
|
|
56
56
|
|
|
57
57
|
// src/chat/plugins/agent-hooks.ts
|
|
58
58
|
import {
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
getConversationStore,
|
|
9
9
|
parseDestination,
|
|
10
10
|
sameDestination
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SPEJV3TW.js";
|
|
12
12
|
import {
|
|
13
13
|
getDefaultRedisStateAdapterFor,
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-T5KV6DUY.js";
|
|
16
16
|
import {
|
|
17
17
|
getChatConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EATO3SKS.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-3TMKXW4H.js";
|
|
27
27
|
|
|
28
28
|
// src/chat/task-execution/state.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|