@sentry/junior 0.313.0 → 0.314.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/{adapter-CYAvJzZS.js → adapter-JARQvoLw.js} +1 -2
- package/dist/{adapter-context-CVsHoVSf.js → adapter-context-B4BrJZuS.js} +2 -2
- package/dist/{admin-Cyhb4TwZ.js → admin-BXGAySz0.js} +1 -1
- package/dist/{agent-runner-B5y9MsT-.js → agent-runner-qZU5TR8i.js} +797 -118
- package/dist/agent-update-cS7Z9mnG.js +26 -0
- package/dist/agent-update-delivery-CZ5M8RDa.js +85 -0
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +6 -6
- package/dist/api.d.ts +1 -1
- package/dist/api.js +334 -100
- package/dist/{app-DA8-hCMj.d.ts → app-D7tKnw9a.d.ts} +4 -21
- package/dist/app.d.ts +2 -2
- package/dist/app.js +80 -169
- package/dist/{background-compaction-queue-iZXadLV3.js → background-compaction-queue-C_uIBUvS.js} +6 -67
- package/dist/callback-C8SdXCwr.js +68 -0
- package/dist/{catalog-runtime-kkE3hvCX.js → catalog-runtime-BLKtnUL3.js} +1 -1
- package/dist/{channel-access-mt7K6dPh.js → channel-access-BOL29BG3.js} +6 -6
- package/dist/child-message--2G3Ft26.js +19 -0
- package/dist/cli/chat.js +18 -21
- package/dist/cli/check.js +4 -4
- package/dist/cli/main.js +2 -2
- package/dist/cli/plugins.js +5 -5
- package/dist/cli/snapshot-create.js +5 -5
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +23 -4
- package/dist/{config-CWbwKj0j.js → config-BIfHKNXN.js} +40 -35
- package/dist/{continue-in-slack-CxyFzdlF.js → continue-in-slack-fnmD2Ifb.js} +5 -7
- package/dist/{conversation-feed-BEXLD3Me.js → conversation-feed-DdFQuQDR.js} +1 -1
- package/dist/{logging-DNt-qOIO.js → conversation-privacy-DtZhI91r.js} +188 -2
- package/dist/{conversation-turn-B35eu0uz.js → conversation-turn-DScuDYmN.js} +418 -33
- package/dist/create-CrNt4Ewu.js +212 -0
- package/dist/{credential-sync-DWTOEQrm.js → credential-sync-CtqsGjj1.js} +14 -17
- package/dist/{credentialed-Dyv8b-lu.js → credentialed-dWRA3-oJ.js} +910 -426
- package/dist/{db-PwSRzWWn.js → db-BTmLKZrp.js} +2235 -38
- package/dist/{db-DYGcXYl3.d.ts → db-DcmzbA55.d.ts} +2 -2
- package/dist/{history-CYstOMKX.js → history-CneKY7_V.js} +19 -1
- package/dist/{html-DidUcRhI.js → html-B8rBt7F4.js} +5 -7
- package/dist/{install-2urLLXNt.js → install-OtFboxOM.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-BXplQAVH.js → lineage-EULJkGO1.js} +1 -2
- package/dist/{list-DyIyReSV.js → list-C5400AlJ.js} +235 -77
- package/dist/{turn-membership-DTR3SaKD.js → mailbox-turn-DL3Lvsm0.js} +4698 -587
- package/dist/markers-DUP8aBOp.js +323 -0
- package/dist/{media-B0pZJ0bG.js → media-FYM-Bl3H.js} +33 -8
- package/dist/{message-Z5YKC-Af.js → message-DuDelZFr.js} +16 -29
- package/dist/{model-input-BhPJYdSV.js → model-input-0osF3pBS.js} +3 -3
- package/dist/nitro.d.ts +2 -4
- package/dist/nitro.js +340 -13
- package/dist/{oauth-callback-server-ByvDdcdY.js → oauth-callback-server-DX2fQ7Nq.js} +2 -2
- package/dist/{oauth-relay-D-kK0yoN.js → oauth-relay-PwPMdZJv.js} +1 -1
- package/dist/{plugins-Bkk0XRo2.js → plugins-BXMdNdyA.js} +1 -1
- package/dist/{registry-POH4bZC4.js → registry-D6kS6xYH.js} +1402 -64
- package/dist/{resolve-CWtBNSKP.js → resolve-D8CPJcNK.js} +3 -3
- package/dist/result-D090hxr5.js +402 -0
- package/dist/{runner-CsZ_VRxp.js → runner-BU7fgrm-.js} +7 -8
- package/dist/{sandbox-egress-signals-FbCk1FkN.js → sandbox-egress-signals-BUmVrsoG.js} +1 -1
- package/dist/{schema-DojR2uCL.js → schema-7gW9vBpJ.js} +90 -9
- package/dist/{schema-DBf18QPS.d.ts → schema-BB6E0wyV.d.ts} +138 -5
- package/dist/{service-account-CDYb9hfX.js → service-account-plA-uzIB.js} +6 -5
- package/dist/{skills-B0jP4whm.js → skills-CIosT6bS.js} +3 -3
- package/dist/{slack-conversation-unfurl-D26t9kBC.js → slack-conversation-unfurl-CBgZqth6.js} +8 -10
- package/dist/{spawn-BjljgExZ.js → spawn-DRjdzh3R.js} +9 -17
- package/dist/{start-conversation-DbVujrwO.js → start-conversation-a4NXH4X9.js} +12 -15
- package/dist/{store-CjXrp-Up.js → store-BuhF1QDm.js} +2 -4
- package/dist/{task-queue-Cwlatjz3.js → task-queue-CrRjFzOh.js} +5 -16
- package/dist/{task-runner--Ke8KSMf.js → task-runner-C-pXsgHM.js} +104 -50
- package/dist/{thread-context-B8exINEe.js → thread-context-CDX4dSZd.js} +8 -9
- package/dist/turn-session-routing-CZTRU8IY.js +116 -0
- package/dist/turn-wake-Bzq1Efrm.js +154 -0
- package/dist/user-customization-B27StpVQ.js +9 -0
- package/dist/{validation-Ce0qbMlT.js → validation-bTq88sya.js} +1 -1
- package/dist/{vercel-queue-q4z8w5QO.js → vercel-queue-nL0Hq3hr.js} +32 -147
- package/dist/{version-DFh4n9nr.js → version-DGUa1dZK.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{warmup-D5hzqTcp.js → warmup-CCOuIwAS.js} +639 -137
- package/dist/{worker-CDg9Lbpg.js → worker-AkZg7Dg1.js} +5 -6
- package/migrations/0160_money_micro_usd_repair.sql +99 -0
- package/migrations/0161_agent_config_backfill.sql +34 -0
- package/migrations/0162_inbox_item_deliveries.sql +15 -0
- package/migrations/0163_pg_trgm.sql +2 -0
- package/migrations/0164_search_indexes.sql +4 -0
- package/migrations/0165_drop_legacy_archive_columns.sql +4 -0
- package/migrations/0166_memory_prefix_index.sql +1 -0
- package/migrations/0167_todo_search_indexes.sql +2 -0
- package/migrations/0168_todo_inbox_items.sql +4 -0
- package/migrations/0169_drop_code_urls.sql +2 -0
- package/migrations/meta/0160_snapshot.json +6515 -0
- package/migrations/meta/0161_snapshot.json +6278 -0
- package/migrations/meta/0162_snapshot.json +6404 -0
- package/migrations/meta/0163_snapshot.json +6404 -0
- package/migrations/meta/0164_snapshot.json +6466 -0
- package/migrations/meta/0165_snapshot.json +6466 -0
- package/migrations/meta/0166_snapshot.json +6494 -0
- package/migrations/meta/0167_snapshot.json +6525 -0
- package/migrations/meta/0168_snapshot.json +6525 -0
- package/migrations/meta/0169_snapshot.json +6513 -0
- package/migrations/meta/_journal.json +70 -0
- package/package.json +9 -18
- package/skills/design-automation-skill/SKILL.md +2 -3
- package/dist/actor-BsBdxDXQ.js +0 -208
- package/dist/conversation-privacy-BrMiDN61.js +0 -189
- package/dist/executor-CgWyWfYz.js +0 -1858
- package/dist/fan-out-Cod-yEHG.js +0 -10
- package/dist/ingest-B0AggUEC.js +0 -7931
- package/dist/request-deadline-BUiRYQYj.js +0 -24
- package/dist/service-account-o15pZWcJ.js +0 -931
- package/dist/state-BTawTCme.js +0 -161
- package/dist/statuses-BKwqCPhj.js +0 -69
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { Bt as getConversationWorkState, En as addConversationNote, K as getConversationStoppedAtMs, Rt as ensureConversationWake, S as getChildAgentLockName, Si as loadTurnStart, b as readAgentConfig, l as appendParentMessage, si as hasConversationStop, u as buildParentMessage, w as getSpawnedChildConversationId, y as agentConfigSchema } from "./mailbox-turn-DL3Lvsm0.js";
|
|
2
|
+
import { Br as juniorConversations, Sr as juniorAgentBindings, Xn as nextDetailVersion, i as getConversationStore, o as getSqlExecutor } from "./db-BTmLKZrp.js";
|
|
3
|
+
import { gt as AgentInvocationLimitError, tt as getAgentBinding, vt as AgentNameInUseError, yt as AgentStoppedError } from "./warmup-CCOuIwAS.js";
|
|
4
|
+
import { m as spawnChildAgentInputSchema, n as recordSubagentStartedMarker, s as listOpenChildAgents, v as readChildConversationSender } from "./markers-DUP8aBOp.js";
|
|
5
|
+
import { randomUUID } from "node:crypto";
|
|
6
|
+
import { eq } from "drizzle-orm";
|
|
7
|
+
/**
|
|
8
|
+
* A stopped child agent cannot start or give work to child agents until its
|
|
9
|
+
* parent gives it new work, which ends the stop. A root Conversation has no
|
|
10
|
+
* agent config, so it always passes.
|
|
11
|
+
*/
|
|
12
|
+
async function assertCanGiveChildWork(parentConversationId) {
|
|
13
|
+
if (await readAgentConfig(parentConversationId) !== void 0 && await getConversationStoppedAtMs(parentConversationId) !== void 0) throw new AgentStoppedError();
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Throw when giving work to one child agent would put its parent over
|
|
17
|
+
* `MAX_ACTIVE_AGENT_INVOCATIONS_PER_PARENT`. A child agent is active while
|
|
18
|
+
* its listing shows open work, so a busy child already counts and messages
|
|
19
|
+
* queued for it do not count again. A new or idle child becomes active. This
|
|
20
|
+
* is the only place the rule for which child agents count lives. `active` is
|
|
21
|
+
* the parent's active children from `listOpenChildAgents`.
|
|
22
|
+
*/
|
|
23
|
+
function assertChildAgentCapacity(active, childConversationId) {
|
|
24
|
+
if (!active.includes(childConversationId) && active.length >= 8) throw new AgentInvocationLimitError(8);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Create the Conversation of one new child agent and bind its name, after
|
|
28
|
+
* the checks that every new child passes: its parent can give work, the name
|
|
29
|
+
* is free, and the parent has room. Call it under the parent lock, in the
|
|
30
|
+
* same transaction, so no other create can take this name or room first.
|
|
31
|
+
*/
|
|
32
|
+
async function createChildAgentConversation(input, childConversationId, nowMs) {
|
|
33
|
+
await assertCanGiveChildWork(input.parentConversationId);
|
|
34
|
+
if (input.agentName && await getAgentBinding({
|
|
35
|
+
name: input.agentName,
|
|
36
|
+
parentConversationId: input.parentConversationId
|
|
37
|
+
})) throw new AgentNameInUseError(input.agentName);
|
|
38
|
+
assertChildAgentCapacity(await listOpenChildAgents(input.parentConversationId), childConversationId);
|
|
39
|
+
await getConversationStore().createChild({
|
|
40
|
+
childConversationId,
|
|
41
|
+
kind: input.kind,
|
|
42
|
+
parentConversationId: input.parentConversationId,
|
|
43
|
+
nowMs,
|
|
44
|
+
source: "internal",
|
|
45
|
+
...input.title ? { title: input.title } : void 0
|
|
46
|
+
});
|
|
47
|
+
if (input.agentName) await getSqlExecutor().db().insert(juniorAgentBindings).values({
|
|
48
|
+
childConversationId,
|
|
49
|
+
name: input.agentName,
|
|
50
|
+
parentConversationId: input.parentConversationId
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Give one task or message to a child agent. Under
|
|
55
|
+
* the parent lock, `prepare` runs the checks of its caller. Unless it finds
|
|
56
|
+
* a spawn replay or leaves a note, the parent's `subagent_started` marker
|
|
57
|
+
* and the parent message are written. The message reaches the mailbox under
|
|
58
|
+
* the lock, so the next spawn counts the child as active. The wake runs
|
|
59
|
+
* after the lock commits, so the child's worker reads the new Conversation;
|
|
60
|
+
* a lost wake is recovered like any other stranded mailbox input.
|
|
61
|
+
*/
|
|
62
|
+
async function giveChildAgentWork(work, options, prepare) {
|
|
63
|
+
const message = buildParentMessage(work);
|
|
64
|
+
const prepared = await getSqlExecutor().withLock(getChildAgentLockName(work.parentConversationId), async () => {
|
|
65
|
+
const prepared = await prepare();
|
|
66
|
+
if (prepared.delivery === "noted" || prepared.delivery === "replay") return prepared;
|
|
67
|
+
await recordSubagentStartedMarker({
|
|
68
|
+
agentName: work.agentName,
|
|
69
|
+
childConversationId: work.childConversationId,
|
|
70
|
+
createdAtMs: work.nowMs,
|
|
71
|
+
input: work.text,
|
|
72
|
+
markerId: message.inboundMessageId,
|
|
73
|
+
parentConversationId: work.parentConversationId,
|
|
74
|
+
parentToolCallId: work.parentToolCallId,
|
|
75
|
+
reasoningLevel: work.reasoningLevel,
|
|
76
|
+
title: work.title
|
|
77
|
+
});
|
|
78
|
+
await appendParentMessage(message, prepared.delivery, options);
|
|
79
|
+
return prepared;
|
|
80
|
+
});
|
|
81
|
+
if (prepared.delivery === "noted") return prepared.value;
|
|
82
|
+
await ensureConversationWake({
|
|
83
|
+
conversationId: work.childConversationId,
|
|
84
|
+
conversationStore: options.conversationStore,
|
|
85
|
+
...prepared.delivery === "new_child" ? {
|
|
86
|
+
idempotencyKey: `${message.inboundMessageId}:${randomUUID()}`,
|
|
87
|
+
ignoreEnqueueMarker: true
|
|
88
|
+
} : { idempotencyKey: message.inboundMessageId },
|
|
89
|
+
queue: options.queue,
|
|
90
|
+
state: options.state
|
|
91
|
+
});
|
|
92
|
+
return prepared.value;
|
|
93
|
+
}
|
|
94
|
+
/** Build the agent config that a spawn stores. */
|
|
95
|
+
function spawnAgentConfig(input) {
|
|
96
|
+
return agentConfigSchema.parse({
|
|
97
|
+
...input.agentType ? { agentType: input.agentType } : void 0,
|
|
98
|
+
...input.fork ? { fork: true } : void 0,
|
|
99
|
+
...input.reasoningLevel ? { reasoningLevel: input.reasoningLevel } : void 0
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Return whether a Conversation's current Turn is stopped: its run has a stop
|
|
104
|
+
* request, or the stop came after the Turn started. A stop's time is when its
|
|
105
|
+
* message was sent, so a Turn that started before the stop arrived still has
|
|
106
|
+
* the stop request. Any other stop from before the Turn does not count: a
|
|
107
|
+
* later Turn runs past it, such as one for the reply of a Thread that a
|
|
108
|
+
* person resumed. With no record of the Turn's start, any stop counts.
|
|
109
|
+
*/
|
|
110
|
+
async function isStoppedInTurn(conversationId, turnId, state) {
|
|
111
|
+
const runId = (await getConversationWorkState({
|
|
112
|
+
conversationId,
|
|
113
|
+
state
|
|
114
|
+
}))?.execution.runId;
|
|
115
|
+
if (runId && await hasConversationStop({
|
|
116
|
+
conversationId,
|
|
117
|
+
runId,
|
|
118
|
+
state
|
|
119
|
+
})) return true;
|
|
120
|
+
const stoppedAtMs = await getConversationStoppedAtMs(conversationId);
|
|
121
|
+
if (stoppedAtMs === void 0) return false;
|
|
122
|
+
const start = await loadTurnStart(conversationId, turnId);
|
|
123
|
+
return start === void 0 || stoppedAtMs >= start.startedAtMs;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Check a spawn replay against the child that the first spawn stored: its
|
|
127
|
+
* kind, its name, and its agent config. A replay sends nothing, so the first
|
|
128
|
+
* task, Actor, and credentials stay, and other input there gains no
|
|
129
|
+
* authority.
|
|
130
|
+
*/
|
|
131
|
+
async function assertSameSpawn(input, child) {
|
|
132
|
+
const [sender, config] = await Promise.all([readChildConversationSender(child.conversationId), readAgentConfig(child.conversationId)]);
|
|
133
|
+
const expected = spawnAgentConfig(input);
|
|
134
|
+
if (child.kind !== input.kind || sender?.agentName !== input.agentName || config?.agentType !== expected.agentType || config?.fork !== expected.fork || config?.reasoningLevel !== expected.reasoningLevel) throw new Error(`Spawn idempotency key was reused with different input for ${child.conversationId}`);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Create or replay one child agent: its Conversation, its binding, its agent
|
|
138
|
+
* config, and its task as a parent message. The spawn's idempotency key
|
|
139
|
+
* names the child Conversation, so a replay finds it in SQL and sends
|
|
140
|
+
* nothing. The child exists in SQL only when its task reached its mailbox in
|
|
141
|
+
* the same transaction.
|
|
142
|
+
*/
|
|
143
|
+
async function spawnChildAgent(rawInput, options, nowMs = Date.now()) {
|
|
144
|
+
const { parentTurnId, ...spawnInput } = rawInput;
|
|
145
|
+
const input = spawnChildAgentInputSchema.parse(spawnInput);
|
|
146
|
+
const childConversationId = getSpawnedChildConversationId(input.parentConversationId, input.idempotencyKey);
|
|
147
|
+
await giveChildAgentWork({
|
|
148
|
+
...input,
|
|
149
|
+
childConversationId,
|
|
150
|
+
nowMs,
|
|
151
|
+
text: input.input
|
|
152
|
+
}, options, async () => {
|
|
153
|
+
const child = await getConversationStore().get({ conversationId: childConversationId });
|
|
154
|
+
if (child) {
|
|
155
|
+
await assertSameSpawn(input, child);
|
|
156
|
+
return {
|
|
157
|
+
delivery: "replay",
|
|
158
|
+
value: void 0
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
if (await isStoppedInTurn(input.parentConversationId, parentTurnId, options.state)) throw new AgentStoppedError();
|
|
162
|
+
await createChildAgentConversation(input, childConversationId, nowMs);
|
|
163
|
+
await getSqlExecutor().db().update(juniorConversations).set({
|
|
164
|
+
agentConfig: spawnAgentConfig(input),
|
|
165
|
+
detailVersion: nextDetailVersion
|
|
166
|
+
}).where(eq(juniorConversations.conversationId, childConversationId));
|
|
167
|
+
return {
|
|
168
|
+
delivery: "new_child",
|
|
169
|
+
value: void 0
|
|
170
|
+
};
|
|
171
|
+
});
|
|
172
|
+
return { childConversationId };
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Give one `messageAgent` message to a child agent, as a parent message. `findChildAgentConversationId` must have found
|
|
176
|
+
* the child under this parent. `queued` means the child already has open
|
|
177
|
+
* work, so it reads the message after that work. While the parent is
|
|
178
|
+
* stopped, the message becomes a Conversation note on the child instead: it
|
|
179
|
+
* starts no work and ends no stop, and the child's next Turn shows it.
|
|
180
|
+
*/
|
|
181
|
+
async function messageChildAgent(input, options, nowMs = Date.now()) {
|
|
182
|
+
const { parentTurnId, ...work } = input;
|
|
183
|
+
const sender = await readChildConversationSender(input.childConversationId);
|
|
184
|
+
return { delivery: await giveChildAgentWork({
|
|
185
|
+
...work,
|
|
186
|
+
agentName: sender?.agentName,
|
|
187
|
+
nowMs,
|
|
188
|
+
text: input.input,
|
|
189
|
+
title: sender?.title
|
|
190
|
+
}, options, async () => {
|
|
191
|
+
if (await isStoppedInTurn(input.parentConversationId, parentTurnId, options.state)) {
|
|
192
|
+
await addConversationNote({
|
|
193
|
+
conversationId: input.childConversationId,
|
|
194
|
+
createdAtMs: nowMs,
|
|
195
|
+
key: `stopped-parent-message:${input.parentConversationId}:${input.idempotencyKey}`,
|
|
196
|
+
text: `Your parent agent sent this message while it was stopped, so it started no work: ${input.input}`
|
|
197
|
+
});
|
|
198
|
+
return {
|
|
199
|
+
delivery: "noted",
|
|
200
|
+
value: "noted"
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
await assertCanGiveChildWork(input.parentConversationId);
|
|
204
|
+
const active = await listOpenChildAgents(input.parentConversationId);
|
|
205
|
+
assertChildAgentCapacity(active, input.childConversationId);
|
|
206
|
+
return {
|
|
207
|
+
delivery: "message",
|
|
208
|
+
value: active.includes(input.childConversationId) ? "queued" : "started"
|
|
209
|
+
};
|
|
210
|
+
}) };
|
|
211
|
+
}
|
|
212
|
+
export { spawnChildAgent as n, messageChildAgent as t };
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { L as acquireActiveLock, i as getRuntimeMetadata, n as botConfig } from "./config-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Qt as resolveActorIdentityId, Rt as readIdentityById, in as findUserByVerifiedEmails, ln as upsertLinkedIdentity, s as getSqlExecutor } from "./db-PwSRzWWn.js";
|
|
7
|
-
import { i as getStateAdapter } from "./adapter-CYAvJzZS.js";
|
|
1
|
+
import { Yo as getSlackClient, gn as resolveBaseUrl, hn as parseOAuthStatePayload, i as resolvePluginOAuthAccount, mn as formatProviderLabel, r as createUserTokenStore, ui as postSlackMessage, xr as lookupSlackUserProfile } from "./credentialed-dWRA3-oJ.js";
|
|
2
|
+
import { L as acquireActiveLock, gt as mapBounded, i as getRuntimeMetadata, n as botConfig } from "./config-BIfHKNXN.js";
|
|
3
|
+
import { E as runBestEffort, S as logException, nt as isNativeIdentityProvider, w as logWarn } from "./conversation-privacy-DtZhI91r.js";
|
|
4
|
+
import { Cn as upsertLinkedIdentity, Qt as readIdentityById, fn as resolveActorIdentityId, hi as parseSlackUserId, o as getSqlExecutor, vn as findUserByVerifiedEmails } from "./db-BTmLKZrp.js";
|
|
5
|
+
import { i as getStateAdapter } from "./adapter-JARQvoLw.js";
|
|
8
6
|
import { i as homeDir } from "./package-discovery-DD9vencX.js";
|
|
9
|
-
import { t as discoverSkills } from "./skills-
|
|
10
|
-
import {
|
|
11
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
12
|
-
import { i as finalizeMcpAuthorization } from "./agent-runner-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { n as relayLocalOAuthCallback } from "./oauth-relay-D-kK0yoN.js";
|
|
7
|
+
import { t as discoverSkills } from "./skills-CIosT6bS.js";
|
|
8
|
+
import { B as getMcpProviderErrorAttributes, O as putMcpStoredOAuthCredentials, S as getMcpAuthSession, d as buildOAuthTokenRequest, f as parseOAuthTokenResponse, p as hasRequiredOAuthScope, v as deleteMcpAuthSession, w as getMcpStoredOAuthCredentials } from "./registry-D6kS6xYH.js";
|
|
9
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BLKtnUL3.js";
|
|
10
|
+
import { i as finalizeMcpAuthorization } from "./agent-runner-qZU5TR8i.js";
|
|
11
|
+
import { Gr as getConversationPendingAuth, Rr as authorizationId, ei as getTurnRecord, gt as getPersistedThreadState, nr as recordAuthenticationLinked, rr as recordAuthorizationCompleted, xt as deleteWebAuthorization, yt as coerceThreadConversationState } from "./mailbox-turn-DL3Lvsm0.js";
|
|
12
|
+
import { f as readJuniorSecret } from "./vercel-queue-nL0Hq3hr.js";
|
|
13
|
+
import { a as wakePausedTurn, i as wakeAuthorizedTurn } from "./turn-wake-Bzq1Efrm.js";
|
|
14
|
+
import { s as readConnectedOAuthTokens, t as escapeHtml, u as htmlCallbackResponse } from "./html-B8rBt7F4.js";
|
|
15
|
+
import { n as relayLocalOAuthCallback } from "./oauth-relay-PwPMdZJv.js";
|
|
19
16
|
import * as z from "zod";
|
|
20
17
|
import path from "node:path";
|
|
21
18
|
import { createHmac, createSecretKey, timingSafeEqual } from "node:crypto";
|