@sentry/junior 0.302.0 → 0.304.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-context-Cx9fn9B3.js → adapter-context-B1IpoELr.js} +2 -2
- package/dist/{admin-_poE5NKL.js → admin-BnVFGo_z.js} +5 -5
- package/dist/{agent-runner-CY9RvsTX.js → agent-runner-CoEeZSRh.js} +1461 -1248
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +6 -6
- package/dist/api.d.ts +13 -12
- package/dist/api.js +230 -105
- package/dist/{app-BpY3wtRP.d.ts → app-Cs157Zc5.d.ts} +17 -15
- package/dist/app.d.ts +1 -1
- package/dist/app.js +108 -96
- package/dist/{automation-Cva5ZOwW.js → automation-CuA3yEcD.js} +3 -1
- package/dist/{background-compaction-queue-CXFq1_Cz.js → background-compaction-queue-WLPNSF_b.js} +6 -6
- package/dist/{briefs-B3NG-pid.js → briefs-CagVVefw.js} +12 -9
- package/dist/{catalog-runtime-Dss0lSV6.js → catalog-runtime-B8ZXvXWm.js} +2 -2
- package/dist/cli/chat.d.ts +1 -1
- package/dist/cli/chat.js +21 -21
- package/dist/cli/check.js +10 -10
- package/dist/cli/env.d.ts +1 -0
- package/dist/cli/env.js +8 -7
- package/dist/cli/init.js +13 -4
- package/dist/cli/main.js +4 -4
- package/dist/cli/plugins.js +6 -6
- package/dist/cli/snapshot-create.js +7 -5
- package/dist/cli/upgrade.d.ts +2 -2
- package/dist/cli/upgrade.js +6 -6
- package/dist/{config-CzeZiMKs.js → config-DdO1BNcw.js} +142 -67
- package/dist/{connections-CDYhMfrs.js → connections-D20kp0j5.js} +6 -6
- package/dist/{continue-in-slack-7Uf05ndC.js → continue-in-slack-BKEVMBj1.js} +8 -8
- package/dist/{conversation-BNXfq6Lb.js → conversation-BOqdRtUx.js} +4 -12
- package/dist/{conversation-feed-Clf_cv0n.js → conversation-feed-CgpgP7yi.js} +35 -2
- package/dist/{conversation-privacy-D9xnM5mK.js → conversation-privacy-L1SK_v0V.js} +16 -8
- package/dist/{conversation-turn-D7SEZgTG.js → conversation-turn-BptVJylj.js} +20 -23
- package/dist/{credential-sync-DoD0gW-j.js → credential-sync-D1J1CGzL.js} +19 -19
- package/dist/{db-B-gtnNjr.js → db-EKJnkrIb.js} +180 -17
- package/dist/{db-BdsCzytP.d.ts → db-zbN5ZV_o.d.ts} +26 -26
- package/dist/{executor-DZg20EqU.js → executor-CoIZmFK8.js} +55 -15
- package/dist/{history-IjdmO_r6.js → history-m2-ceTTX.js} +21 -12
- package/dist/{install-t1KQyTUs.js → install-BT2Pf6HP.js} +3 -3
- package/dist/instrumentation.d.ts +4 -4
- package/dist/instrumentation.js +15 -11
- package/dist/{lineage-C79GjoQr.js → lineage-C5DGQCS_.js} +2 -2
- package/dist/{logging-C9oDAg4M.js → logging-QSZuMcvo.js} +19 -19
- package/dist/{message-BLUCzJXN.js → message-TtxftRHj.js} +9 -9
- package/dist/{model-input-5jwNC45G.js → model-input-BHXfA29g.js} +4 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +8 -8
- package/dist/{oauth-callback-server-BBl66vCb.js → oauth-callback-server-B0enqHtZ.js} +5 -4
- package/dist/{oauth-relay-DRzq73b6.js → oauth-relay-DAmfVmJu.js} +3 -6
- package/dist/{package-discovery-DJhGdS4c.js → package-discovery-x4AvVhMj.js} +1 -1
- package/dist/{plugin-module-Cf5gVPWP.js → plugin-module-Cv2ETe8Y.js} +1 -1
- package/dist/{plugins-BBX07Jzt.js → plugins-Bkk0XRo2.js} +3 -3
- package/dist/{projection-CIBwgD3s.js → projection-CNKK7doO.js} +755 -221
- package/dist/{prompt-CRQbzp5e.js → prompt-DSjhoKu5.js} +185 -12
- package/dist/{queue-DtCDaIct.js → queue-CDxkit82.js} +4 -4
- package/dist/{queue-CZyYgPF0.d.ts → queue-CbEHUO0l.d.ts} +1 -1
- package/dist/{registry-DdFQHZ_d.js → registry-DBDNUUmz.js} +37 -37
- package/dist/{resolve-CdW4BdrK.js → resolve-CQLhMWSu.js} +3 -3
- package/dist/{result-oOMv1t4O.js → result-B-pauj42.js} +10 -15
- package/dist/rolldown-runtime-BKpuH2hG.js +26 -0
- package/dist/{runner-DqitLtm-.js → runner-B3KxKks5.js} +10 -10
- package/dist/{sandbox-egress-signals-Bw9I0yfJ.js → sandbox-egress-signals-DJJX9ClG.js} +1 -1
- package/dist/{schema-DnVQepWP.js → schema-Bx0Mlo32.js} +77 -13
- package/dist/{schema-BIFM-U1a.d.ts → schema-CKcu-IK6.d.ts} +562 -23
- package/dist/{secrets-DebYU866.js → secrets-DHaJ5TTn.js} +4 -4
- package/dist/{sentry-BRTJqumy.js → sentry-CPbZjomA.js} +3 -28
- package/dist/{sentry-route-name-BhwWnfqj.js → sentry-route-name-C6EIzAGP.js} +1 -1
- package/dist/{service-account-CrZftRTb.js → service-account-2HmlNPvy.js} +49 -48
- package/dist/{service-account-B6mKAPVo.js → service-account-DQLqkSVv.js} +5 -5
- package/dist/{session-stop-DW63Z3kj.js → session-stop-DEeZKqbX.js} +132 -74
- package/dist/{skills-C16fz60Z.js → skills-2UrD7JkN.js} +6 -9
- package/dist/{slack-conversation-unfurl-BHhefEb7.js → slack-conversation-unfurl-Dd129Uov.js} +14 -18
- package/dist/{spawn-D_RnFYfy.js → spawn-eMho9HDJ.js} +7 -7
- package/dist/{legacy-web-actor-id-C-cEeWqL.js → state-Bveuc4Zh.js} +32 -32
- package/dist/{stop-7p1i08CY.js → stop-D_ltJLDS.js} +359 -171
- package/dist/{store-C28I0CVW.js → store-COeYnPL_.js} +5 -5
- package/dist/{task-queue-BVUJbQ28.js → task-queue-CBIDXZpV.js} +3 -3
- package/dist/{task-runner-CWi8j7Z6.js → task-runner-CJF7zIJL.js} +15 -18
- package/dist/{thread-context-D3-yYUd0.js → thread-context-Cg0jt0aE.js} +12 -12
- package/dist/{turn-session-routing-BFMS9ATF.js → turn-session-routing-CaY3Tp8m.js} +32 -32
- package/dist/{turn-user-message-C3-O8Omt.js → turn-user-message-tcom1RYd.js} +3 -3
- package/dist/{validation-BSFKUIb4.js → validation-EU91JwIT.js} +2 -2
- package/dist/vercel.js +1 -1
- package/dist/{version-BHHXNi-0.js → version-BYRPhY5G.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-B1SO21Qa.js → viewer-Cf8ISkAc.js} +3 -3
- package/dist/{warmup-Bz9bzkzN.js → warmup-TgY4S1vx.js} +202 -577
- package/dist/{worker-BspReIIK.js → worker-C6Uq4OKD.js} +9 -12
- package/migrations/0109_user_preferences.sql +1 -0
- package/migrations/0110_code_change_repository_state_index.sql +1 -0
- package/migrations/0111_attachment_kinds.sql +14 -0
- package/migrations/0112_attachment_url_fill.sql +51 -0
- package/migrations/0113_attachment_url_index.sql +1 -0
- package/migrations/meta/0099_snapshot.json +102 -326
- package/migrations/meta/0109_snapshot.json +4925 -0
- package/migrations/meta/0110_snapshot.json +4952 -0
- package/migrations/meta/0111_snapshot.json +5011 -0
- package/migrations/meta/0112_snapshot.json +5011 -0
- package/migrations/meta/0113_snapshot.json +5033 -0
- package/migrations/meta/_journal.json +36 -1
- package/package.json +16 -19
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-CZyYgPF0.js";
|
|
2
|
-
import { t as ConversationStore } from "./db-BdsCzytP.js";
|
|
3
|
-
import "./schema-BIFM-U1a.js";
|
|
4
1
|
import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
|
|
2
|
+
import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-CbEHUO0l.js";
|
|
3
|
+
import "./schema-CKcu-IK6.js";
|
|
4
|
+
import { t as ConversationStore } from "./db-zbN5ZV_o.js";
|
|
5
5
|
import "./sentry-DrKC2NeM.js";
|
|
6
6
|
import { Hono } from "hono";
|
|
7
7
|
import * as z from "zod";
|
|
8
8
|
import "@earendil-works/pi-ai/compat";
|
|
9
9
|
import "@earendil-works/pi-ai/api/anthropic-messages";
|
|
10
10
|
import "ai";
|
|
11
|
+
import "@earendil-works/pi-ai";
|
|
11
12
|
import "drizzle-orm";
|
|
12
|
-
import { Destination
|
|
13
|
+
import { Destination } from "@sentry/junior-plugin-api";
|
|
13
14
|
import "@earendil-works/pi-agent-core";
|
|
14
|
-
import { Message, StateAdapter } from "chat";
|
|
15
|
-
import "@earendil-works/pi-ai";
|
|
16
15
|
import "@modelcontextprotocol/sdk/client/auth.js";
|
|
17
|
-
import
|
|
16
|
+
import "@modelcontextprotocol/sdk/client";
|
|
17
|
+
import { StateAdapter } from "chat";
|
|
18
18
|
import "@sinclair/typebox";
|
|
19
19
|
import { SlackAdapter } from "@chat-adapter/slack";
|
|
20
20
|
interface BotModelConfig {
|
|
@@ -32,6 +32,8 @@ interface BotModelConfig {
|
|
|
32
32
|
guardianModelId?: string;
|
|
33
33
|
/** Model used to generate images. */
|
|
34
34
|
imageGenerationModelId?: string;
|
|
35
|
+
/** Model used to transcribe audio and video attachments. */
|
|
36
|
+
transcriptionModelId?: string;
|
|
35
37
|
/** Model used to analyze images. */
|
|
36
38
|
visionModelId?: string;
|
|
37
39
|
/** Model used for web search. */
|
|
@@ -164,7 +166,7 @@ interface ConversationWorkerContext {
|
|
|
164
166
|
attempt: InboxAttempt;
|
|
165
167
|
checkIn(): Promise<boolean>;
|
|
166
168
|
conversationId: string;
|
|
167
|
-
destination?: Destination;
|
|
169
|
+
destination?: Destination | undefined;
|
|
168
170
|
/** True when the current execution slice must stop at its next safe boundary. */
|
|
169
171
|
shouldYield(): boolean;
|
|
170
172
|
/** Return an AbortSignal backed by the durable Conversation stop request. */
|
|
@@ -178,7 +180,7 @@ interface ConversationWorkerContext {
|
|
|
178
180
|
interface InboxAttempt {
|
|
179
181
|
ack(): Promise<void>;
|
|
180
182
|
conversationId: string;
|
|
181
|
-
destination?: Destination;
|
|
183
|
+
destination?: Destination | undefined;
|
|
182
184
|
/**
|
|
183
185
|
* Give pending mailbox messages to the active Turn. By default only
|
|
184
186
|
* `interrupt` messages for this attempt are offered. With `deferred`, every
|
|
@@ -202,18 +204,18 @@ interface ConversationWorkerResult {
|
|
|
202
204
|
delayMs?: number;
|
|
203
205
|
}
|
|
204
206
|
interface ProcessConversationQueueMessageOptions {
|
|
205
|
-
beforeWorkStops?: BeforeWorkStops;
|
|
207
|
+
beforeWorkStops?: BeforeWorkStops | undefined;
|
|
206
208
|
checkInIntervalMs?: number;
|
|
207
209
|
conversationStore?: ConversationStore;
|
|
208
210
|
/** Slack installation lookup for work that runs after the Run ends. */
|
|
209
211
|
getSlackAdapter?: () => SlackAdapter;
|
|
210
|
-
nowMs?: () => number;
|
|
212
|
+
nowMs?: (() => number) | undefined;
|
|
211
213
|
queue?: ConversationWorkQueue;
|
|
212
214
|
run(context: ConversationWorkerContext): Promise<ConversationWorkerResult>;
|
|
213
|
-
softYieldAfterMs?: number;
|
|
214
|
-
state?: StateAdapter;
|
|
215
|
+
softYieldAfterMs?: number | undefined;
|
|
216
|
+
state?: StateAdapter | undefined;
|
|
215
217
|
/** Keep background work started by a turn, such as titles, alive. */
|
|
216
|
-
waitUntil?: (task: Promise<unknown>) => void;
|
|
218
|
+
waitUntil?: ((task: Promise<unknown>) => void) | undefined;
|
|
217
219
|
}
|
|
218
220
|
interface VercelConversationWorkCallbackOptions extends ProcessConversationQueueMessageOptions {
|
|
219
221
|
topic?: string;
|
|
@@ -325,7 +327,7 @@ interface JuniorAppOptions extends BotModelConfig {
|
|
|
325
327
|
* Entries may be exact domains or leading wildcard domains such as
|
|
326
328
|
* `*.sentry.io`; wildcard entries match subdomains, not the apex domain.
|
|
327
329
|
*/
|
|
328
|
-
egressTracePropagationDomains?: string[];
|
|
330
|
+
egressTracePropagationDomains?: string[] | undefined;
|
|
329
331
|
};
|
|
330
332
|
waitUntil?: WaitUntilFn;
|
|
331
333
|
}
|
package/dist/app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-
|
|
1
|
+
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-Cs157Zc5.js";
|
|
2
2
|
import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-B_0Cr0MO.js";
|
|
3
3
|
import { t as JUNIOR_VERSION } from "./version-Cc2OFd9G.js";
|
|
4
4
|
export { JUNIOR_VERSION, JuniorApp, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, createApp, defineJuniorPlugins };
|