@sentry/junior 0.189.0 → 0.190.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-6QRYH6PX.js → agent-hooks-3IG2FQW2.js} +11 -11
- package/dist/api.js +27 -27
- package/dist/app.js +86 -67
- package/dist/{catalog-runtime-IETJLJFG.js → catalog-runtime-2OT7S3ZC.js} +4 -4
- package/dist/chat/actor.d.ts +7 -2
- package/dist/chat/agent-invocations/types.d.ts +44 -308
- package/dist/chat/event-tasks/tool-support.d.ts +1 -1
- package/dist/chat/resource-events/actor.d.ts +2 -2
- package/dist/chat/source.d.ts +3 -3
- package/dist/chat/task-execution/mailbox-turn.d.ts +16 -6
- package/dist/chat/task-execution/state.d.ts +2 -2
- package/dist/chat/task-execution/store.d.ts +1 -1
- package/dist/chat/task-execution/turn-cursor.d.ts +10 -1
- package/dist/chat/tools/types.d.ts +9 -2
- package/dist/{chunk-6AUR6PWR.js → chunk-2MKHYSYL.js} +3 -3
- package/dist/{chunk-MI6ZBDTS.js → chunk-2MRF22J4.js} +25 -10
- package/dist/{chunk-OEIITG5F.js → chunk-3J3BCB4J.js} +1 -1
- package/dist/{chunk-SR6OMO5C.js → chunk-4BLFIYVK.js} +8 -8
- package/dist/{chunk-E3PDZPGV.js → chunk-4PKEJK5B.js} +1 -1
- package/dist/{chunk-CMWIMFM6.js → chunk-62DRKZQU.js} +5 -5
- package/dist/{chunk-ZV6PFUA4.js → chunk-663DQH5W.js} +1 -1
- package/dist/{chunk-GP32KD2J.js → chunk-67MMSYSE.js} +1 -1
- package/dist/{chunk-5CXCGDIL.js → chunk-6BXUSF7J.js} +1 -1
- package/dist/{chunk-WWYUYKKV.js → chunk-6H7YU6XH.js} +1 -1
- package/dist/{chunk-S3SGZUOI.js → chunk-7UJ6IJCK.js} +1 -1
- package/dist/{chunk-7R5JRPCY.js → chunk-7Y7XMI6P.js} +5 -5
- package/dist/{chunk-MFSET7Q7.js → chunk-BGOLRC36.js} +24 -8
- package/dist/{chunk-MVPLEPSI.js → chunk-BUJU6C2J.js} +1 -1
- package/dist/{chunk-KN32OWL2.js → chunk-CZXZKTAI.js} +3 -3
- package/dist/{chunk-QNIOBNOY.js → chunk-DJZGQ7OL.js} +52 -39
- package/dist/{chunk-DYXVAO2E.js → chunk-DVX6U6GI.js} +1 -1
- package/dist/{chunk-4RHJ3CXR.js → chunk-ECOR3OXY.js} +13 -12
- package/dist/{chunk-WMUAKAIF.js → chunk-F3K2267N.js} +29 -27
- package/dist/{chunk-YYZNESC3.js → chunk-FVFJ57RK.js} +8 -8
- package/dist/{chunk-PCPSX4ES.js → chunk-GWCFXTB6.js} +14 -12
- package/dist/{chunk-WDHPN2GH.js → chunk-HI5KXE3C.js} +3 -3
- package/dist/{chunk-WYDF6PGK.js → chunk-IRQ3RSX3.js} +3 -3
- package/dist/{chunk-NY2F7BZA.js → chunk-JV7U4665.js} +1 -1
- package/dist/{chunk-LHKZKAZ4.js → chunk-MNHJ4WLE.js} +3 -3
- package/dist/{chunk-YNZPOFF3.js → chunk-OJFX2FP7.js} +9 -9
- package/dist/{chunk-CUYFCI4G.js → chunk-OKAHLUSU.js} +16 -13
- package/dist/{chunk-VKQWU4PO.js → chunk-OON4IQHH.js} +1 -1
- package/dist/{chunk-AC7MDOJW.js → chunk-OYCOLHCR.js} +5 -5
- package/dist/{chunk-YYSEH2WC.js → chunk-REVH4BZU.js} +2 -2
- package/dist/{chunk-UCWO5MKP.js → chunk-RLYJYEIY.js} +4 -4
- package/dist/{chunk-ZUPDSJUE.js → chunk-T66GV7A3.js} +2 -2
- package/dist/{chunk-BYBSI5TI.js → chunk-VWNIDTFR.js} +2 -2
- package/dist/{chunk-MRXMFB4L.js → chunk-W2C4TPLB.js} +5 -5
- package/dist/{chunk-PY3EIEAF.js → chunk-Y4WL4OYD.js} +1 -1
- package/dist/{chunk-WN6VLHOU.js → chunk-YFU4DGZY.js} +4 -4
- package/dist/{chunk-O35GZCKL.js → chunk-YKIAUKYH.js} +2 -2
- package/dist/{chunk-5VWAY27R.js → chunk-ZFCO2TMB.js} +1 -1
- 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/schema/agent-invocations.d.ts +18 -6
- package/dist/db/schema.d.ts +18 -6
- package/dist/{db-LPJKR2EO.js → db-2IFDMDDY.js} +6 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-DMXF4TTQ.js → oauth-callback-server-SZSS2KH6.js} +29 -29
- package/dist/{runner-L5DPVYCN.js → runner-2N4QU77X.js} +21 -21
- package/dist/{skills-NXG3LBCK.js → skills-VU2LZAKX.js} +5 -5
- package/dist/spawn-3K7RV4T5.js +42 -0
- package/dist/task-runner-52DYFHW3.js +36 -0
- package/dist/{validation-CH36LTOS.js → validation-IJGHK7NI.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-HBC5Y5VZ.js → work-DI45MLRL.js} +21 -21
- package/dist/{worker-5RDZHLXH.js → worker-FY7KWG2M.js} +10 -10
- package/package.json +5 -5
- package/dist/spawn-VRUIGKWW.js +0 -42
- package/dist/task-runner-7YTBSPXW.js +0 -36
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
isDmChannel,
|
|
9
9
|
normalizeSlackConversationId,
|
|
10
10
|
withSlackRetries
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2MRF22J4.js";
|
|
12
12
|
import {
|
|
13
13
|
parseDestination
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OKAHLUSU.js";
|
|
15
15
|
import {
|
|
16
16
|
getStateAdapter
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6BXUSF7J.js";
|
|
18
18
|
import {
|
|
19
19
|
normalizeSlackEmojiName
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VWNIDTFR.js";
|
|
21
21
|
import {
|
|
22
22
|
pluginCatalogRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4PKEJK5B.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-Y4WL4OYD.js";
|
|
33
33
|
|
|
34
34
|
// src/chat/agent/types.ts
|
|
35
35
|
var RetryableDeliveryError = class extends Error {
|
|
@@ -55,7 +55,7 @@ function actorFromRun(run) {
|
|
|
55
55
|
}
|
|
56
56
|
function assertRunConsistency(run) {
|
|
57
57
|
const { destination, source } = run;
|
|
58
|
-
switch (source.
|
|
58
|
+
switch (source.kind) {
|
|
59
59
|
case "slack": {
|
|
60
60
|
if (destination.platform !== "slack") {
|
|
61
61
|
throw new TypeError(
|
|
@@ -108,17 +108,19 @@ function assertRunConsistency(run) {
|
|
|
108
108
|
}
|
|
109
109
|
break;
|
|
110
110
|
}
|
|
111
|
+
case "resource_event":
|
|
112
|
+
break;
|
|
111
113
|
}
|
|
112
114
|
const actor = run.dispatch?.actor ?? run.actor;
|
|
113
115
|
if (!actor || actor.platform === "system") {
|
|
114
116
|
return;
|
|
115
117
|
}
|
|
116
|
-
if (actor.platform !== source.
|
|
118
|
+
if (actor.platform !== source.kind) {
|
|
117
119
|
throw new TypeError(
|
|
118
|
-
`Actor platform "${actor.platform}" does not match Source
|
|
120
|
+
`Actor platform "${actor.platform}" does not match Source kind "${source.kind}"`
|
|
119
121
|
);
|
|
120
122
|
}
|
|
121
|
-
if (actor.platform === "slack" && source.
|
|
123
|
+
if (actor.platform === "slack" && source.kind === "slack" && actor.teamId !== source.teamId) {
|
|
122
124
|
throw new TypeError("Slack Actor team does not match Source team");
|
|
123
125
|
}
|
|
124
126
|
}
|
|
@@ -136,10 +138,10 @@ function surfaceFromRun(run) {
|
|
|
136
138
|
if (run.surface) {
|
|
137
139
|
return run.surface;
|
|
138
140
|
}
|
|
139
|
-
if (run.source.
|
|
141
|
+
if (run.source.kind === "slack") {
|
|
140
142
|
return "slack";
|
|
141
143
|
}
|
|
142
|
-
if (run.source.
|
|
144
|
+
if (run.source.kind === "web") {
|
|
143
145
|
return "api";
|
|
144
146
|
}
|
|
145
147
|
return "internal";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toOptionalTrimmed
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VWNIDTFR.js";
|
|
4
4
|
import {
|
|
5
5
|
pluginCatalogRuntime
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4PKEJK5B.js";
|
|
7
7
|
import {
|
|
8
8
|
setSpanAttributes,
|
|
9
9
|
setSpanStatus
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y4WL4OYD.js";
|
|
11
11
|
|
|
12
12
|
// src/chat/sandbox/paths.ts
|
|
13
13
|
function normalizeWorkspaceRoot(input) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConversationTurnLifecycleService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6H7YU6XH.js";
|
|
4
4
|
import {
|
|
5
5
|
runAgentWithTimeout
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GWCFXTB6.js";
|
|
7
7
|
import {
|
|
8
8
|
getConversationEventStore
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OKAHLUSU.js";
|
|
10
10
|
|
|
11
11
|
// src/chat/runtime/turn-execution.ts
|
|
12
12
|
var AgentRunError = class extends Error {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDb
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OKAHLUSU.js";
|
|
4
4
|
import {
|
|
5
5
|
juniorConversations,
|
|
6
6
|
juniorTaskExecutions
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZFCO2TMB.js";
|
|
8
8
|
import {
|
|
9
9
|
logWarn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y4WL4OYD.js";
|
|
11
11
|
|
|
12
12
|
// src/chat/tasks/execution-stats.ts
|
|
13
13
|
import {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRunError,
|
|
3
3
|
executeTurn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IRQ3RSX3.js";
|
|
5
5
|
import {
|
|
6
6
|
ConversationTurnLifecycleService
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6H7YU6XH.js";
|
|
8
8
|
import {
|
|
9
9
|
getPersistedSandboxState,
|
|
10
10
|
getPersistedThreadState,
|
|
11
11
|
persistThreadStateById
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-W2C4TPLB.js";
|
|
13
13
|
import {
|
|
14
14
|
AgentInvocationBusyError,
|
|
15
15
|
AgentInvocationLimitError,
|
|
@@ -18,32 +18,32 @@ import {
|
|
|
18
18
|
agentBindingSchema,
|
|
19
19
|
agentInvocationSchema,
|
|
20
20
|
createAgentInvocationSchema
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OYCOLHCR.js";
|
|
22
22
|
import {
|
|
23
23
|
TurnInputCommitLostError,
|
|
24
24
|
getAssistantReplyText,
|
|
25
25
|
getConversationTurnBoundaryError,
|
|
26
26
|
isTurnInputCommitLostError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-67MMSYSE.js";
|
|
28
28
|
import {
|
|
29
29
|
failTurnRecord,
|
|
30
30
|
getTerminalAssistantMessages,
|
|
31
31
|
getTurnRecord,
|
|
32
32
|
openConversationProjection,
|
|
33
33
|
saveTurnCheckpoint
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-BGOLRC36.js";
|
|
35
35
|
import {
|
|
36
36
|
appendAndEnqueueInboundMessage
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-YFU4DGZY.js";
|
|
38
38
|
import {
|
|
39
39
|
getConversationEventStore,
|
|
40
40
|
getConversationStore,
|
|
41
41
|
getSqlExecutor
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-OKAHLUSU.js";
|
|
43
43
|
import {
|
|
44
44
|
juniorAgentBindings,
|
|
45
45
|
juniorAgentInvocations
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ZFCO2TMB.js";
|
|
47
47
|
|
|
48
48
|
// src/chat/agent-invocations/work.ts
|
|
49
49
|
import { z } from "zod";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
juniorConversations,
|
|
9
9
|
juniorIdentities,
|
|
10
10
|
juniorUsers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZFCO2TMB.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-VWNIDTFR.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-Y4WL4OYD.js";
|
|
32
32
|
|
|
33
33
|
// src/chat/conversations/sql/store.ts
|
|
34
34
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -257,23 +257,26 @@ function normalizeSessionSource(value) {
|
|
|
257
257
|
if (!value) {
|
|
258
258
|
return void 0;
|
|
259
259
|
}
|
|
260
|
-
if (value.
|
|
260
|
+
if (value.kind === "local") {
|
|
261
261
|
return {
|
|
262
|
-
|
|
262
|
+
kind: "local",
|
|
263
263
|
visibility: value.visibility,
|
|
264
264
|
conversationId: value.conversationId
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
|
-
if (value.
|
|
267
|
+
if (value.kind === "web") {
|
|
268
268
|
return {
|
|
269
|
-
|
|
269
|
+
kind: "web",
|
|
270
270
|
visibility: value.visibility,
|
|
271
271
|
conversationId: value.conversationId
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
+
if (value.kind === "resource_event") {
|
|
275
|
+
return void 0;
|
|
276
|
+
}
|
|
274
277
|
const threadTs = value.threadTs?.trim();
|
|
275
278
|
return {
|
|
276
|
-
|
|
279
|
+
kind: "slack",
|
|
277
280
|
visibility: value.visibility,
|
|
278
281
|
teamId: value.teamId,
|
|
279
282
|
channelId: value.channelId,
|
|
@@ -424,7 +427,7 @@ import { locationSchema } from "@sentry/junior-plugin-api";
|
|
|
424
427
|
function locationForWrite(args) {
|
|
425
428
|
const location = args.location ? locationSchema.parse(args.location) : void 0;
|
|
426
429
|
const destination = args.destination?.platform === "slack" ? args.destination : void 0;
|
|
427
|
-
const source = args.sessionSource?.
|
|
430
|
+
const source = args.sessionSource?.kind === "slack" ? args.sessionSource : void 0;
|
|
428
431
|
if (location) {
|
|
429
432
|
if (destination && (location.id !== args.destinationId || location.teamId !== destination.teamId || location.channelId !== destination.channelId) || source && (location.teamId !== source.teamId || location.channelId !== source.channelId)) {
|
|
430
433
|
throw new Error("Conversation Location changed");
|
|
@@ -455,7 +458,7 @@ function locationFromRow(value, row, sessionSource) {
|
|
|
455
458
|
if (row.provider !== "slack") {
|
|
456
459
|
throw new Error("Conversation Location provider is not supported");
|
|
457
460
|
}
|
|
458
|
-
const slackSource = sessionSource?.
|
|
461
|
+
const slackSource = sessionSource?.kind === "slack" && sessionSource.teamId === row.providerTenantId && sessionSource.channelId === row.providerDestinationId ? sessionSource : void 0;
|
|
459
462
|
return locationSchema.parse({
|
|
460
463
|
id: row.id,
|
|
461
464
|
provider: "slack",
|
|
@@ -1166,9 +1169,9 @@ async function loadConversationSlackTenantId(executor, conversationId) {
|
|
|
1166
1169
|
if (destinationTenant) {
|
|
1167
1170
|
return destinationTenant;
|
|
1168
1171
|
}
|
|
1169
|
-
const sessionSource = row?.sessionSource;
|
|
1170
|
-
if (
|
|
1171
|
-
return sessionSource.teamId
|
|
1172
|
+
const sessionSource = parseSessionSource(row?.sessionSource);
|
|
1173
|
+
if (sessionSource?.kind === "slack") {
|
|
1174
|
+
return sessionSource.teamId;
|
|
1172
1175
|
}
|
|
1173
1176
|
return void 0;
|
|
1174
1177
|
}
|
|
@@ -7,23 +7,23 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
formatProviderLabel,
|
|
9
9
|
startOAuthFlow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GWCFXTB6.js";
|
|
11
11
|
import {
|
|
12
12
|
abandonReplacedPendingAuth,
|
|
13
13
|
canReusePendingAuthLink
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-67MMSYSE.js";
|
|
15
15
|
import {
|
|
16
16
|
recordAuthorizationRequested
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BGOLRC36.js";
|
|
18
18
|
import {
|
|
19
19
|
AGENT_INVOCATION_MAILBOX_STATUSES
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZFCO2TMB.js";
|
|
21
21
|
import {
|
|
22
22
|
TURN_REASONING_LEVELS
|
|
23
23
|
} from "./chunk-D4YV5TDV.js";
|
|
24
24
|
import {
|
|
25
25
|
pluginCatalogRuntime
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4PKEJK5B.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-4PKEJK5B.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-Y4WL4OYD.js";
|
|
10
10
|
|
|
11
11
|
// src/chat/skills.ts
|
|
12
12
|
import fs from "fs/promises";
|
|
@@ -19,23 +19,23 @@ import {
|
|
|
19
19
|
releaseConversationWork,
|
|
20
20
|
requestAnotherSlice,
|
|
21
21
|
startConversationWork
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YFU4DGZY.js";
|
|
23
23
|
import {
|
|
24
24
|
getTurnRequestDeadline
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-7UJ6IJCK.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-VWNIDTFR.js";
|
|
33
33
|
import {
|
|
34
34
|
logException,
|
|
35
35
|
logInfo,
|
|
36
36
|
logWarn,
|
|
37
37
|
withLogContext
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-Y4WL4OYD.js";
|
|
39
39
|
|
|
40
40
|
// src/chat/task-execution/worker.ts
|
|
41
41
|
var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAndEnqueueAgentInvocation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OJFX2FP7.js";
|
|
4
4
|
import {
|
|
5
5
|
actorFromRun,
|
|
6
6
|
toolInvocationDestination
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GWCFXTB6.js";
|
|
8
8
|
|
|
9
9
|
// src/chat/agent-invocations/spawn.ts
|
|
10
10
|
function bindSpawnAgent(run, options) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toCanonicalInputMessage,
|
|
8
8
|
toCanonicalOutputMessage,
|
|
9
9
|
toGenAiMessagesTraceAttributes
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DVX6U6GI.js";
|
|
11
11
|
import {
|
|
12
12
|
extractGenAiUsageAttributes,
|
|
13
13
|
logException,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
normalizeGenAiFinishReason,
|
|
16
16
|
serializeGenAiAttribute,
|
|
17
17
|
withSpan
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y4WL4OYD.js";
|
|
19
19
|
|
|
20
20
|
// src/chat/services/provider-error.ts
|
|
21
21
|
var ProviderError = class extends Error {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
persistConversationMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BGOLRC36.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-OKAHLUSU.js";
|
|
10
10
|
import {
|
|
11
11
|
juniorLocationConfigurations
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZFCO2TMB.js";
|
|
13
13
|
import {
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6BXUSF7J.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-Y4WL4OYD.js";
|
|
24
24
|
|
|
25
25
|
// src/chat/state/conversation.ts
|
|
26
26
|
function defaultConversationState() {
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
getConversationStore,
|
|
9
9
|
parseDestination,
|
|
10
10
|
sameDestination
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OKAHLUSU.js";
|
|
12
12
|
import {
|
|
13
13
|
getDefaultRedisStateAdapterFor,
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6BXUSF7J.js";
|
|
16
16
|
import {
|
|
17
17
|
getChatConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VWNIDTFR.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-Y4WL4OYD.js";
|
|
27
27
|
|
|
28
28
|
// src/chat/task-execution/state.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-PDO5BLNM.js";
|
|
4
4
|
import {
|
|
5
5
|
botConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VWNIDTFR.js";
|
|
7
7
|
import {
|
|
8
8
|
logWarn
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Y4WL4OYD.js";
|
|
10
10
|
|
|
11
11
|
// src/chat/conversations/structured-events.ts
|
|
12
12
|
import {
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAgentRun
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-DJZGQ7OL.js";
|
|
4
|
+
import "../chunk-OYCOLHCR.js";
|
|
5
5
|
import "../chunk-6Y5B5PEX.js";
|
|
6
6
|
import "../chunk-DIB4GX3G.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-FVFJ57RK.js";
|
|
8
8
|
import {
|
|
9
9
|
createAgentRunner
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-GWCFXTB6.js";
|
|
11
|
+
import "../chunk-67MMSYSE.js";
|
|
12
|
+
import "../chunk-BGOLRC36.js";
|
|
13
13
|
import "../chunk-2LYHWMR4.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-62DRKZQU.js";
|
|
15
|
+
import "../chunk-BUJU6C2J.js";
|
|
16
|
+
import "../chunk-YFU4DGZY.js";
|
|
17
17
|
import "../chunk-DA2KGZZI.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-YKIAUKYH.js";
|
|
19
|
+
import "../chunk-2MKHYSYL.js";
|
|
20
20
|
import "../chunk-PDO5BLNM.js";
|
|
21
21
|
import "../chunk-UIE3R5XU.js";
|
|
22
22
|
import "../chunk-X6GDDWQH.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-7UJ6IJCK.js";
|
|
24
24
|
import "../chunk-DKIJ2RP5.js";
|
|
25
25
|
import "../chunk-JAL3CH4G.js";
|
|
26
26
|
import "../chunk-7H2VZTWN.js";
|
|
27
27
|
import {
|
|
28
28
|
loadAppPluginSet
|
|
29
29
|
} from "../chunk-Y2CM7HXH.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-2MRF22J4.js";
|
|
31
31
|
import "../chunk-3Y47VMHV.js";
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-OKAHLUSU.js";
|
|
33
|
+
import "../chunk-ZFCO2TMB.js";
|
|
34
|
+
import "../chunk-HI5KXE3C.js";
|
|
35
|
+
import "../chunk-6BXUSF7J.js";
|
|
36
36
|
import "../chunk-GFBR4S3Q.js";
|
|
37
37
|
import "../chunk-VFUK3X5B.js";
|
|
38
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-VWNIDTFR.js";
|
|
39
39
|
import "../chunk-D4YV5TDV.js";
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-DVX6U6GI.js";
|
|
41
|
+
import "../chunk-REVH4BZU.js";
|
|
42
|
+
import "../chunk-4PKEJK5B.js";
|
|
43
|
+
import "../chunk-663DQH5W.js";
|
|
44
44
|
import "../chunk-CEMMLV5L.js";
|
|
45
45
|
import "../chunk-N7TMSOZH.js";
|
|
46
46
|
import "../chunk-DWPN6SCH.js";
|
|
47
47
|
import "../chunk-TXKUKMVO.js";
|
|
48
|
-
import "../chunk-
|
|
48
|
+
import "../chunk-Y4WL4OYD.js";
|
|
49
49
|
import "../chunk-PEQXYSSE.js";
|
|
50
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-JV7U4665.js";
|
|
51
51
|
|
|
52
52
|
// src/cli/chat.ts
|
|
53
53
|
import {
|
|
@@ -169,10 +169,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
169
169
|
databaseModule
|
|
170
170
|
] = await Promise.all([
|
|
171
171
|
import("../plugins-YTYJMMJF.js"),
|
|
172
|
-
import("../agent-hooks-
|
|
173
|
-
import("../catalog-runtime-
|
|
174
|
-
import("../validation-
|
|
175
|
-
import("../db-
|
|
172
|
+
import("../agent-hooks-3IG2FQW2.js"),
|
|
173
|
+
import("../catalog-runtime-2OT7S3ZC.js"),
|
|
174
|
+
import("../validation-IJGHK7NI.js"),
|
|
175
|
+
import("../db-2IFDMDDY.js")
|
|
176
176
|
]);
|
|
177
177
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
178
178
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -238,14 +238,14 @@ async function prepareLocalChatRun(io, pluginSet) {
|
|
|
238
238
|
await configureLocalChatPlugins(pluginSet);
|
|
239
239
|
const { setExperimentalFeatures } = await import("../experimental-P5FZM4CU.js");
|
|
240
240
|
setExperimentalFeatures({ subagents: true });
|
|
241
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
242
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
241
|
+
const { runLocalAgentTurn } = await import("../runner-2N4QU77X.js");
|
|
242
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-SZSS2KH6.js");
|
|
243
243
|
const { createLocalOAuthState } = await import("../oauth-relay-5XPVRPYB.js");
|
|
244
244
|
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-FIL7EGPR.js");
|
|
245
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
246
|
-
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-
|
|
245
|
+
const { bindSpawnAgent } = await import("../spawn-3K7RV4T5.js");
|
|
246
|
+
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-DI45MLRL.js");
|
|
247
247
|
const { createLocalConversationWork } = await import("../conversation-work-VIOQ5ZF3.js");
|
|
248
|
-
const { processConversationWork } = await import("../worker-
|
|
248
|
+
const { processConversationWork } = await import("../worker-FY7KWG2M.js");
|
|
249
249
|
let agentRunner;
|
|
250
250
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
251
251
|
if (!agentRunner) {
|
package/dist/cli/check.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-REVH4BZU.js";
|
|
4
|
+
import "../chunk-4PKEJK5B.js";
|
|
5
5
|
import {
|
|
6
6
|
parseInlinePluginManifest,
|
|
7
7
|
parsePluginManifest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-663DQH5W.js";
|
|
9
9
|
import "../chunk-CEMMLV5L.js";
|
|
10
10
|
import "../chunk-N7TMSOZH.js";
|
|
11
11
|
import "../chunk-DWPN6SCH.js";
|
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
|
|
15
15
|
JUNIOR_HEARTBEAT_ROUTE,
|
|
16
16
|
LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-Y4WL4OYD.js";
|
|
18
18
|
import "../chunk-PEQXYSSE.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-JV7U4665.js";
|
|
20
20
|
|
|
21
21
|
// src/cli/check.ts
|
|
22
22
|
import fs from "fs/promises";
|