@sentry/junior 0.181.0 → 0.182.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-IQUW6ERD.js → agent-hooks-3S25UIHO.js} +11 -11
- package/dist/api.js +125 -51
- package/dist/app-adapter.d.ts +85 -0
- package/dist/app.d.ts +6 -1
- package/dist/app.js +343 -487
- package/dist/{catalog-runtime-PMQWNIXA.js → catalog-runtime-ESLMBQBV.js} +4 -4
- package/dist/chat/api-turns/adapter-conversations.d.ts +15 -0
- package/dist/chat/api-turns/stop.d.ts +12 -0
- package/dist/chat/api-turns/work.d.ts +9 -1
- package/dist/chat/app/conversation-work.d.ts +1 -1
- package/dist/chat/event-tasks/tool-support.d.ts +7 -1
- package/dist/chat/event-tasks/types.d.ts +1 -0
- package/dist/chat/experimental.d.ts +1 -1
- package/dist/chat/resource-events/catalog.d.ts +11 -1
- package/dist/chat/resource-events/store.d.ts +5 -1
- package/dist/chat/services/subscribed-decision.d.ts +2 -1
- package/dist/chat/tools/create-event-task.d.ts +3 -0
- package/dist/chat/tools/delete-event-task.d.ts +2 -0
- package/dist/chat/tools/list-event-tasks.d.ts +2 -0
- package/dist/chat/tools/list-resource-event-subscriptions.d.ts +2 -0
- package/dist/chat/tools/search-resource-event-types.d.ts +10 -0
- package/dist/chat/tools/update-event-task.d.ts +3 -0
- package/dist/chat/tools/watch-resource-events.d.ts +3 -0
- package/dist/{chunk-D6ZD7VXP.js → chunk-2CEOXDG2.js} +20 -11
- package/dist/{chunk-VRS6WDK5.js → chunk-2LYHWMR4.js} +1 -1
- package/dist/{chunk-IKKETMQC.js → chunk-3ENUMZNG.js} +3 -3
- package/dist/{chunk-IJ6SS4WB.js → chunk-3NFHI2NA.js} +1 -1
- package/dist/{chunk-GREV5PJK.js → chunk-3THPTNN6.js} +4 -4
- package/dist/{chunk-KKSVCHDO.js → chunk-44BQ3TSK.js} +1 -1
- package/dist/{chunk-4IX32NSL.js → chunk-4DZ62L36.js} +1 -1
- package/dist/{chunk-RNMASWLP.js → chunk-6TSWXBTQ.js} +3 -3
- package/dist/{chunk-PBKZQAUA.js → chunk-A7THOQ6N.js} +58 -32
- package/dist/{chunk-DSA6WTRP.js → chunk-BDDWVY32.js} +19 -19
- package/dist/{chunk-TJHSAHQN.js → chunk-BZD4ADQH.js} +3 -2
- package/dist/{chunk-EU7KJDOG.js → chunk-CVBIM4Z3.js} +1 -1
- package/dist/{chunk-LZOQFC5F.js → chunk-D6OHGAIO.js} +5 -5
- package/dist/{chunk-KQZX24QQ.js → chunk-DZR3L74W.js} +3 -3
- package/dist/{chunk-3KCQEG6W.js → chunk-GGYA5NPN.js} +9 -9
- package/dist/{chunk-EM7EECT5.js → chunk-JIOKUIAS.js} +2 -2
- package/dist/{chunk-3X55QRAG.js → chunk-KGMHUDVF.js} +6 -6
- package/dist/{chunk-3KSSALN4.js → chunk-LB4FWMCV.js} +92 -8
- package/dist/{chunk-XYTJUHRZ.js → chunk-LHQK5XCU.js} +2 -2
- package/dist/{chunk-LCNPXLE7.js → chunk-LT4QYGKM.js} +7 -7
- package/dist/{chunk-TDT2R77B.js → chunk-MJISSOWB.js} +1 -1
- package/dist/{chunk-FWILPBVQ.js → chunk-PQES5LB5.js} +5 -5
- package/dist/{chunk-GWFRPQNP.js → chunk-QHALFHZA.js} +9 -9
- package/dist/{chunk-PPYDHUEL.js → chunk-S35OZMSL.js} +130 -200
- package/dist/{chunk-ETJTXYHY.js → chunk-SVFSYQMT.js} +1 -1
- package/dist/{chunk-NQTA72Q3.js → chunk-SXOZIG5X.js} +6 -6
- package/dist/{chunk-Q2KY27IX.js → chunk-TEFNHMO2.js} +63 -7
- package/dist/{chunk-KMBU4PJP.js → chunk-UKIHNBBD.js} +3 -3
- package/dist/{chunk-EBMRB6Z6.js → chunk-UQP54CXZ.js} +1 -1
- package/dist/{chunk-GPA3ZSYY.js → chunk-UUMBHORH.js} +1 -1
- package/dist/{chunk-LG5MYY6U.js → chunk-V5UZCCNW.js} +6 -6
- package/dist/{chunk-HZHUMCNV.js → chunk-VHMAFMHB.js} +1 -1
- package/dist/{chunk-HEBMSITT.js → chunk-WOIALVN2.js} +1 -1
- package/dist/{chunk-HJ27A6YB.js → chunk-YHL2L2ZZ.js} +1 -1
- package/dist/{chunk-PL57B6NC.js → chunk-Z7ALSQS3.js} +1 -1
- package/dist/cli/chat.js +34 -34
- 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-QNPVCQPT.js → db-NYIWZ4L5.js} +6 -6
- package/dist/{experimental-SIJSRDJD.js → experimental-P5FZM4CU.js} +1 -1
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-KYMPJOTC.js → oauth-callback-server-A2YTPVVX.js} +26 -26
- package/dist/{runner-3RS2D2ZR.js → runner-VKAEU52J.js} +18 -18
- package/dist/{skills-5B3Y6XX6.js → skills-52GMXUTY.js} +5 -5
- package/dist/spawn-GSS4EBLR.js +37 -0
- package/dist/task-runner-DUGDWF5O.js +32 -0
- package/dist/{validation-Q65QD27B.js → validation-VD2YQX2W.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-DCMQWAAP.js → work-ZWBTGEQP.js} +18 -18
- package/dist/worker-XUWD5WS7.js +22 -0
- package/package.json +6 -5
- package/dist/api/acp/route.d.ts +0 -13
- package/dist/spawn-VYARS3DU.js +0 -37
- package/dist/task-runner-4IXKKZHL.js +0 -32
- package/dist/worker-QL3CHLZL.js +0 -22
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
ToolInputError,
|
|
3
3
|
canRouteResourceEvents,
|
|
4
4
|
getPlugins
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2CEOXDG2.js";
|
|
6
6
|
import {
|
|
7
7
|
getDb
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6TSWXBTQ.js";
|
|
9
9
|
import {
|
|
10
10
|
juniorAttachments,
|
|
11
11
|
juniorConversations,
|
|
@@ -13,20 +13,21 @@ import {
|
|
|
13
13
|
juniorSchedulerRuns,
|
|
14
14
|
juniorSchedulerTasks,
|
|
15
15
|
juniorStats
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-44BQ3TSK.js";
|
|
17
17
|
import {
|
|
18
18
|
juniorDestinations
|
|
19
19
|
} from "./chunk-VFUK3X5B.js";
|
|
20
20
|
import {
|
|
21
21
|
getSlackBotToken
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LHQK5XCU.js";
|
|
23
23
|
import {
|
|
24
24
|
logWarn
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UQP54CXZ.js";
|
|
26
26
|
|
|
27
27
|
// src/chat/resource-events/catalog.ts
|
|
28
28
|
import {
|
|
29
|
-
normalizeResourceEventIdentifier
|
|
29
|
+
normalizeResourceEventIdentifier,
|
|
30
|
+
resourceEventMatchSchema
|
|
30
31
|
} from "@sentry/junior-plugin-api";
|
|
31
32
|
import { z } from "zod";
|
|
32
33
|
function enumSchema(values, unavailableMessage) {
|
|
@@ -75,6 +76,72 @@ function resourceEventGuidance(catalog, namespace, resourceType, eventType) {
|
|
|
75
76
|
(candidate) => candidate.type === resourceType
|
|
76
77
|
)?.guidance?.[eventType];
|
|
77
78
|
}
|
|
79
|
+
function resourceEventMatchFields(catalog, namespace, resourceType) {
|
|
80
|
+
return catalog[namespace]?.resourceTypes.find(
|
|
81
|
+
(candidate) => candidate.type === resourceType
|
|
82
|
+
)?.matchFields;
|
|
83
|
+
}
|
|
84
|
+
function registeredResourceEventMatchSchema() {
|
|
85
|
+
return resourceEventMatchSchema.optional().describe(
|
|
86
|
+
"Optional exact values from the resource type matchFields. A single value must equal the event data. A list means the event value may be any one entry. Omit a key to ignore it. Unmatched events are dropped with no agent turn."
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
function requireSupportedResourceEventMatch(catalog, input) {
|
|
90
|
+
const match = input.match;
|
|
91
|
+
if (!match || Object.keys(match).length === 0) return void 0;
|
|
92
|
+
const fields = resourceEventMatchFields(
|
|
93
|
+
catalog,
|
|
94
|
+
input.namespace,
|
|
95
|
+
input.resourceType
|
|
96
|
+
);
|
|
97
|
+
if (!fields || Object.keys(fields).length === 0) {
|
|
98
|
+
throw new ToolInputError(
|
|
99
|
+
`Resource type "${input.namespace}:${input.resourceType}" does not support match.`
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
const normalized = {};
|
|
103
|
+
for (const [key, value] of Object.entries(match)) {
|
|
104
|
+
const field = fields[key];
|
|
105
|
+
if (!field) {
|
|
106
|
+
throw new ToolInputError(
|
|
107
|
+
`Resource type "${input.namespace}:${input.resourceType}" does not support match key "${key}".`
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
if (Array.isArray(value)) {
|
|
111
|
+
if (field.kind === "boolean") {
|
|
112
|
+
throw new ToolInputError(
|
|
113
|
+
`Match key "${key}" is boolean and cannot use a list.`
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
for (const entry of value) {
|
|
117
|
+
if (typeof entry !== field.kind) {
|
|
118
|
+
throw new ToolInputError(
|
|
119
|
+
`Match key "${key}" expects ${field.kind} values.`
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
if (field.enum && typeof entry === "string" && !field.enum.includes(entry)) {
|
|
123
|
+
throw new ToolInputError(
|
|
124
|
+
`Match key "${key}" does not allow value "${entry}".`
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
normalized[key] = [...new Set(value)];
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
if (typeof value !== field.kind) {
|
|
132
|
+
throw new ToolInputError(
|
|
133
|
+
`Match key "${key}" expects a ${field.kind} value.`
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
if (field.enum && typeof value === "string" && !field.enum.includes(value)) {
|
|
137
|
+
throw new ToolInputError(
|
|
138
|
+
`Match key "${key}" does not allow value "${value}".`
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
normalized[key] = value;
|
|
142
|
+
}
|
|
143
|
+
return Object.keys(normalized).length > 0 ? normalized : void 0;
|
|
144
|
+
}
|
|
78
145
|
function normalizeEventIdentifier(catalog, namespace, identifier) {
|
|
79
146
|
return normalizeResourceEventIdentifier(catalog[namespace], identifier);
|
|
80
147
|
}
|
|
@@ -94,12 +161,16 @@ function getResourceEventCatalog() {
|
|
|
94
161
|
}
|
|
95
162
|
|
|
96
163
|
// src/chat/event-tasks/store.ts
|
|
164
|
+
import {
|
|
165
|
+
resourceEventMatches
|
|
166
|
+
} from "@sentry/junior-plugin-api";
|
|
97
167
|
import { and, asc, desc, eq, inArray, or, sql } from "drizzle-orm";
|
|
98
168
|
|
|
99
169
|
// src/chat/event-tasks/types.ts
|
|
100
170
|
import {
|
|
101
171
|
actorUserIdSchema,
|
|
102
172
|
destinationVisibilitySchema,
|
|
173
|
+
resourceEventMatchSchema as resourceEventMatchSchema2,
|
|
103
174
|
resourceEventTypeSchema,
|
|
104
175
|
slackDestinationSchema
|
|
105
176
|
} from "@sentry/junior-plugin-api";
|
|
@@ -113,6 +184,7 @@ var eventTaskPrincipalSchema = z2.object({
|
|
|
113
184
|
var eventTaskTriggerSchema = z2.object({
|
|
114
185
|
events: z2.array(resourceEventTypeSchema).min(1),
|
|
115
186
|
label: z2.string().min(1),
|
|
187
|
+
match: resourceEventMatchSchema2.optional(),
|
|
116
188
|
namespace: z2.string().min(1),
|
|
117
189
|
identifier: z2.string().min(1).max(EVENT_TASK_IDENTIFIER_MAX_LENGTH),
|
|
118
190
|
resourceType: z2.string().min(1)
|
|
@@ -228,7 +300,9 @@ async function findMatchingEventTasks(db, event, teamId) {
|
|
|
228
300
|
eq(juniorEventTasks.identifier, event.identifier)
|
|
229
301
|
)
|
|
230
302
|
).orderBy(asc(juniorEventTasks.createdAtMs), asc(juniorEventTasks.id));
|
|
231
|
-
return rows.map(parseTask).filter(
|
|
303
|
+
return rows.map(parseTask).filter(
|
|
304
|
+
(task) => task.trigger.events.includes(event.eventType) && resourceEventMatches(task.trigger.match, event.data)
|
|
305
|
+
);
|
|
232
306
|
}
|
|
233
307
|
|
|
234
308
|
// src/stats.ts
|
|
@@ -407,6 +481,7 @@ var compactEventTaskResultSchema = z5.object({
|
|
|
407
481
|
resourceType: z5.string().min(1),
|
|
408
482
|
label: z5.string().min(1),
|
|
409
483
|
events: z5.array(z5.string().min(1)).min(1),
|
|
484
|
+
match: z5.record(z5.string(), z5.unknown()).optional(),
|
|
410
485
|
credentialMode: z5.enum(["system", "creator"]),
|
|
411
486
|
createdBy: eventTaskPrincipalSchema,
|
|
412
487
|
triggerAvailable: z5.boolean()
|
|
@@ -424,7 +499,8 @@ function registeredEventTaskTriggerSchema(catalog) {
|
|
|
424
499
|
identifier: z5.string().trim().min(1).max(EVENT_TASK_IDENTIFIER_MAX_LENGTH),
|
|
425
500
|
resourceType: registeredResourceTypeSchema(catalog),
|
|
426
501
|
label: z5.string().trim().min(1).max(500),
|
|
427
|
-
events: z5.array(registeredEventTypeSchema(catalog)).min(1)
|
|
502
|
+
events: z5.array(registeredEventTypeSchema(catalog)).min(1),
|
|
503
|
+
match: registeredResourceEventMatchSchema()
|
|
428
504
|
}).strict();
|
|
429
505
|
}
|
|
430
506
|
function requireSupportedEventTaskTrigger(catalog, trigger) {
|
|
@@ -440,6 +516,11 @@ function requireSupportedEventTaskTrigger(catalog, trigger) {
|
|
|
440
516
|
);
|
|
441
517
|
}
|
|
442
518
|
}
|
|
519
|
+
return requireSupportedResourceEventMatch(catalog, {
|
|
520
|
+
match: trigger.match,
|
|
521
|
+
namespace: trigger.namespace,
|
|
522
|
+
resourceType: trigger.resourceType
|
|
523
|
+
});
|
|
443
524
|
}
|
|
444
525
|
function requireEventTaskSlackContext(context) {
|
|
445
526
|
if (context.source.platform !== "slack" || context.destination.platform !== "slack" || context.actor?.platform !== "slack" || context.actor.teamId !== context.source.teamId) {
|
|
@@ -489,6 +570,7 @@ function compactEventTask(task, catalog) {
|
|
|
489
570
|
resourceType: task.trigger.resourceType,
|
|
490
571
|
label: task.trigger.label,
|
|
491
572
|
events: task.trigger.events,
|
|
573
|
+
...task.trigger.match ? { match: task.trigger.match } : void 0,
|
|
492
574
|
credentialMode: task.credentialMode,
|
|
493
575
|
createdBy: task.createdBy,
|
|
494
576
|
triggerAvailable: eventTaskTriggerAvailable(task, catalog)
|
|
@@ -1138,6 +1220,8 @@ export {
|
|
|
1138
1220
|
registeredResourceTypeSchema,
|
|
1139
1221
|
pluginSupportsEvent,
|
|
1140
1222
|
resourceEventGuidance,
|
|
1223
|
+
registeredResourceEventMatchSchema,
|
|
1224
|
+
requireSupportedResourceEventMatch,
|
|
1141
1225
|
normalizeEventIdentifier,
|
|
1142
1226
|
getResourceEventCatalog,
|
|
1143
1227
|
getEventTask,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
toCanonicalInputMessage,
|
|
4
4
|
toCanonicalOutputMessage,
|
|
5
5
|
toGenAiMessagesTraceAttributes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SVFSYQMT.js";
|
|
7
7
|
import {
|
|
8
8
|
extractGenAiUsageAttributes,
|
|
9
9
|
logException,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
normalizeGenAiFinishReason,
|
|
12
12
|
serializeGenAiAttribute,
|
|
13
13
|
withSpan
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UQP54CXZ.js";
|
|
15
15
|
|
|
16
16
|
// src/chat/services/provider-error.ts
|
|
17
17
|
var ProviderError = class extends Error {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getPersistedSandboxState,
|
|
6
6
|
getPersistedThreadState,
|
|
7
7
|
persistThreadStateById
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PQES5LB5.js";
|
|
9
9
|
import {
|
|
10
10
|
AgentInvocationBusyError,
|
|
11
11
|
AgentInvocationLimitError,
|
|
@@ -14,32 +14,32 @@ import {
|
|
|
14
14
|
agentBindingSchema,
|
|
15
15
|
agentInvocationSchema,
|
|
16
16
|
createAgentInvocationSchema
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KGMHUDVF.js";
|
|
18
18
|
import {
|
|
19
19
|
appendAndEnqueueInboundMessage
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TEFNHMO2.js";
|
|
21
21
|
import {
|
|
22
22
|
TurnInputCommitLostError,
|
|
23
23
|
getAssistantReplyText,
|
|
24
24
|
getConversationTurnBoundaryError,
|
|
25
25
|
isTurnInputCommitLostError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YHL2L2ZZ.js";
|
|
27
27
|
import {
|
|
28
28
|
failTurnRecord,
|
|
29
29
|
getTerminalAssistantMessages,
|
|
30
30
|
getTurnRecord,
|
|
31
31
|
openConversationProjection,
|
|
32
32
|
saveTurnCheckpoint
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-SXOZIG5X.js";
|
|
34
34
|
import {
|
|
35
35
|
getConversationEventStore,
|
|
36
36
|
getConversationStore,
|
|
37
37
|
getSqlExecutor
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-6TSWXBTQ.js";
|
|
39
39
|
import {
|
|
40
40
|
juniorAgentBindings,
|
|
41
41
|
juniorAgentInvocations
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-44BQ3TSK.js";
|
|
43
43
|
|
|
44
44
|
// src/chat/agent-invocations/work.ts
|
|
45
45
|
import { z } from "zod";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
persistConversationMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SXOZIG5X.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-6TSWXBTQ.js";
|
|
10
10
|
import {
|
|
11
11
|
juniorLocationConfigurations
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-44BQ3TSK.js";
|
|
13
13
|
import {
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Z7ALSQS3.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-UQP54CXZ.js";
|
|
24
24
|
|
|
25
25
|
// src/chat/state/conversation.ts
|
|
26
26
|
function defaultConversationState() {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
coerceThreadConversationState,
|
|
3
3
|
getPersistedThreadState
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PQES5LB5.js";
|
|
5
5
|
import {
|
|
6
6
|
pluginTaskId,
|
|
7
7
|
pluginTaskParamsSchema,
|
|
8
8
|
sendVercelPluginTask
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DZR3L74W.js";
|
|
10
10
|
import {
|
|
11
11
|
getPiMessageRole,
|
|
12
12
|
getTurnRecord,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
isToolResultMessage,
|
|
17
17
|
normalizeToolNameFromResult,
|
|
18
18
|
stripRuntimeTurnContext
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SXOZIG5X.js";
|
|
20
20
|
import {
|
|
21
21
|
createPluginConversationEvents,
|
|
22
22
|
createPluginEmbedder,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
createPluginState,
|
|
26
26
|
getPlugins,
|
|
27
27
|
readActorIdentity
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2CEOXDG2.js";
|
|
29
29
|
import {
|
|
30
30
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
31
31
|
} from "./chunk-3Y47VMHV.js";
|
|
@@ -33,14 +33,14 @@ import {
|
|
|
33
33
|
getConversationStore,
|
|
34
34
|
getDb,
|
|
35
35
|
sameActorIdentity
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6TSWXBTQ.js";
|
|
37
37
|
import {
|
|
38
38
|
juniorConversations,
|
|
39
39
|
juniorTaskExecutions
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-44BQ3TSK.js";
|
|
41
41
|
import {
|
|
42
42
|
getStateAdapter
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-Z7ALSQS3.js";
|
|
44
44
|
import {
|
|
45
45
|
credentialSubjectSchema
|
|
46
46
|
} from "./chunk-CEMMLV5L.js";
|
|
@@ -49,14 +49,14 @@ import {
|
|
|
49
49
|
} from "./chunk-N7TMSOZH.js";
|
|
50
50
|
import {
|
|
51
51
|
logWarn
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-UQP54CXZ.js";
|
|
53
53
|
|
|
54
54
|
// src/chat/plugins/task-runner.ts
|
|
55
55
|
import { pluginRunContextSchema } from "@sentry/junior-plugin-api";
|
|
56
56
|
|
|
57
57
|
// src/chat/services/turn-session-routing.ts
|
|
58
58
|
async function resolveTurnSessionRouting(args) {
|
|
59
|
-
const conversationStore = args.conversationStore ?? (await import("./db-
|
|
59
|
+
const conversationStore = args.conversationStore ?? (await import("./db-NYIWZ4L5.js")).getConversationStore();
|
|
60
60
|
const conversation = await conversationStore.get({
|
|
61
61
|
conversationId: args.conversationId
|
|
62
62
|
});
|