@sentry/junior 0.267.0 → 0.269.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/README.md +2 -9
- package/dist/{actor-DZSokpwj.js → actor-CP9K2Idu.js} +2 -1
- package/dist/{adapter-BybMEezj.js → adapter-2-CG25be.js} +3 -51
- package/dist/{admin-DOs1_EiW.js → admin-DSs8S5Uy.js} +1 -1
- package/dist/{agent-invocations-CxKldAeB.js → agent-invocations-C1RNOCs8.js} +2 -0
- package/dist/{agent-runner-DgNATN4D.js → agent-runner-CrDrPUtY.js} +3411 -1640
- package/dist/api/schema.d.ts +2 -5630
- package/dist/api/schema.js +7 -7
- package/dist/api.d.ts +3 -1
- package/dist/api.js +268 -287
- package/dist/{app-DAB3fzyp.d.ts → app-BrMMzjYm.d.ts} +10 -3
- package/dist/app.d.ts +1 -1
- package/dist/app.js +371 -223
- package/dist/{automation-CmeFBSEh.js → automation-p87hg_AV.js} +74 -74
- package/dist/{briefs-CWKjka7v.js → briefs-PtODdLNu.js} +4 -4
- package/dist/{catalog-runtime-cMlAI5LY.js → catalog-runtime-BsoSmTM0.js} +1 -1
- package/dist/cli/chat.js +16 -26
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +5 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-BjgbMawj.js → client-Cqf4TboL.js} +20 -15
- package/dist/{config-CdB6yJj5.js → config-CPsE4T5L.js} +2 -2
- package/dist/{connections-RE_65jzK.js → connections-upFXLmhG.js} +10 -11
- package/dist/{conversation-DSo310Ps.js → conversation-CTpD_PGk.js} +7 -84
- package/dist/{conversation-privacy-BzgJC5k0.js → conversation-privacy-D6zJc8ff.js} +1 -1
- package/dist/{credential-sync-DhEGEpgq.js → credential-sync-CS_6IC-f.js} +30 -34
- package/dist/{credentialed-CIGwoLU2.js → credentialed-BU-OW7HP.js} +577 -74
- package/dist/{store-B8CABbmR.d.ts → db-BzOCzVb1.d.ts} +17 -7
- package/dist/{executor-VYrx_K4w.js → executor-CNS7ONt-.js} +78 -4
- package/dist/instrumentation.js +2 -2
- package/dist/{assistant-reply-CT7VcXQe.js → interruption-marker-g6Xup3Fk.js} +8 -2
- package/dist/{job-queue-C0BZSa7r.js → job-queue-DI-k-Bbk.js} +2 -2
- package/dist/{list-1XQP-o6K.js → list-CGoQdXTp.js} +429 -1401
- package/dist/locks-D-0h111u.js +48 -0
- package/dist/{logging-DuZ1A4ab.js → logging-n7knse-O.js} +1 -1
- package/dist/{history-C84mlAwO.js → media-85PDJxO_.js} +83 -1
- package/dist/{message-NKSbbnA6.js → message-BpaWd8TT.js} +4 -4
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-qAHLPtml.js → oauth-callback-server-CpGmEw_i.js} +2 -2
- package/dist/{prompt-BW9jFsqZ.js → prompt-BlQB0QQt.js} +1 -1
- package/dist/{registry-FQutO926.js → registry-By36_xsm.js} +2 -2
- package/dist/reporting-schema-CZREhYc-.js +104 -0
- package/dist/reporting-window-CVarfId9.js +255 -0
- package/dist/{resolve-Bk4yeuHy.js → resolve-CUIBcdPd.js} +3 -3
- package/dist/{result-B9e9ATOU.js → result-BemsOMOO.js} +31 -12
- package/dist/{runner-C3S2ObH-.js → runner-BVok7PAA.js} +12 -11
- package/dist/{sandbox-egress-signals-DqpGzzMB.js → sandbox-egress-signals-BSUWQI95.js} +1 -1
- package/dist/{schema-X7Fj4fv1.js → schema-ChnFo5f2.js} +98 -6
- package/dist/schema-jK4-1u_H.d.ts +5927 -0
- package/dist/{service-account-Do30HUNv.js → service-account-DHvlLnZw.js} +4 -3
- package/dist/{service-account-BQasl-qq.js → service-account-hMmESDcr.js} +3 -3
- package/dist/{session-stop-DkOjt46_.js → session-stop-BQW_iFcd.js} +499 -23
- package/dist/{skills-CQHrwfOa.js → skills-DmJJIuLF.js} +2 -2
- package/dist/{spawn-BHuqN14f.js → spawn-ChCm46i-.js} +2 -2
- package/dist/{store-6EetVP-m.js → store-1DVhoKOL.js} +4 -4
- package/dist/{store-DvNZIsCr.js → store-DCo2n5iJ.js} +3 -3
- package/dist/{task-queue-B0DLgd2P.js → task-queue-HMC4QjFm.js} +3 -3
- package/dist/task-runner-cA6yjn_E.js +269 -0
- package/dist/{thread-state-DRmdJ2QN.js → thread-state-CHy8LS0C.js} +8 -18
- package/dist/{turn-failure-response-G11cs2gE.js → turn-failure-response-Dr7erLWs.js} +11 -16
- package/dist/{turn-lifecycle-OzLIwvi1.js → turn-lifecycle-bf2fIYi_.js} +1 -1
- package/dist/{tasks-0ilmuCux.js → turn-session-routing-BqO0qXLk.js} +959 -44
- package/dist/{validation-CxEmt1id.js → validation-DHR1ivfh.js} +1 -1
- package/dist/{version-Bapedn4A.js → version-CXCHLgWm.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-DrN3oC2X.js → viewer-DSbD6DF6.js} +503 -241
- package/dist/{work-DUQoNcqP.js → work-BE_qTYGi.js} +17 -36
- package/dist/{worker-D1l4Ugk0.js → worker-Cm9_sWXg.js} +15 -7
- package/migrations/0065_user_customization.sql +1 -0
- package/migrations/0066_review_items.sql +53 -0
- package/migrations/0067_review_item_dedupe_tenant.sql +2 -0
- package/migrations/0068_review_item_slack_cards.sql +10 -0
- package/migrations/0069_system_identity.sql +25 -0
- package/migrations/0070_review_item_foreign_keys.sql +5 -0
- package/migrations/AGENTS.md +17 -0
- package/migrations/meta/0065_snapshot.json +3511 -0
- package/migrations/meta/0066_snapshot.json +4099 -0
- package/migrations/meta/0067_snapshot.json +3921 -0
- package/migrations/meta/0068_snapshot.json +4176 -0
- package/migrations/meta/0069_snapshot.json +3979 -0
- package/migrations/meta/0070_snapshot.json +3997 -0
- package/migrations/meta/_journal.json +42 -0
- package/package.json +5 -5
- package/dist/db-Bg-zC3r5.d.ts +0 -5
- package/dist/history-BgI33Kie.d.ts +0 -78
- package/dist/images-CecjXAAz.js +0 -64
- package/dist/task-runner-B-PD_JOj.js +0 -1074
- package/dist/turn-session-routing-Dyut9l7Y.js +0 -76
- package/dist/user-input-request-BDFBdF8r.js +0 -116
- package/dist/web-message-id-CJSUiksE.js +0 -236
- package/migrations/README.md +0 -30
|
@@ -456,6 +456,48 @@
|
|
|
456
456
|
"when": 1793326683095,
|
|
457
457
|
"tag": "0064_any_resource_event_triggers",
|
|
458
458
|
"breakpoints": true
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"idx": 65,
|
|
462
|
+
"version": "7",
|
|
463
|
+
"when": 1793403789105,
|
|
464
|
+
"tag": "0065_user_customization",
|
|
465
|
+
"breakpoints": true
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"idx": 66,
|
|
469
|
+
"version": "7",
|
|
470
|
+
"when": 1793412416681,
|
|
471
|
+
"tag": "0066_review_items",
|
|
472
|
+
"breakpoints": true
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"idx": 67,
|
|
476
|
+
"version": "7",
|
|
477
|
+
"when": 1793414511193,
|
|
478
|
+
"tag": "0067_review_item_dedupe_tenant",
|
|
479
|
+
"breakpoints": true
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"idx": 68,
|
|
483
|
+
"version": "7",
|
|
484
|
+
"when": 1793414566801,
|
|
485
|
+
"tag": "0068_review_item_slack_cards",
|
|
486
|
+
"breakpoints": true
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"idx": 69,
|
|
490
|
+
"version": "7",
|
|
491
|
+
"when": 1793461988634,
|
|
492
|
+
"tag": "0069_system_identity",
|
|
493
|
+
"breakpoints": true
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"idx": 70,
|
|
497
|
+
"version": "7",
|
|
498
|
+
"when": 1793561992655,
|
|
499
|
+
"tag": "0070_review_item_foreign_keys",
|
|
500
|
+
"breakpoints": true
|
|
459
501
|
}
|
|
460
502
|
]
|
|
461
503
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.269.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"sharp": "^0.35.3",
|
|
91
91
|
"yaml": "^2.9.0",
|
|
92
92
|
"zod": "^4.5.4",
|
|
93
|
-
"@sentry/junior-plugin-api": "0.
|
|
93
|
+
"@sentry/junior-plugin-api": "0.269.0"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"bullmq": "^6.5.0",
|
|
@@ -125,9 +125,9 @@
|
|
|
125
125
|
"typescript": "^7.0.2",
|
|
126
126
|
"vercel": "^54.4.0",
|
|
127
127
|
"vitest": "^4.1.12",
|
|
128
|
-
"@sentry/junior-
|
|
129
|
-
"@sentry/junior-
|
|
130
|
-
"@sentry/junior-
|
|
128
|
+
"@sentry/junior-github": "0.269.0",
|
|
129
|
+
"@sentry/junior-testing": "0.0.0",
|
|
130
|
+
"@sentry/junior-memory": "0.269.0"
|
|
131
131
|
},
|
|
132
132
|
"scripts": {
|
|
133
133
|
"build": "tsdown",
|
package/dist/db-Bg-zC3r5.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { ConversationAnnotation, OwnedObjectAnnotation } from "@sentry/junior-plugin-api";
|
|
3
|
-
/** Bound JSON image input below the hosting platform's request size limit. */
|
|
4
|
-
declare const MAX_INPUT_IMAGE_BYTES: number;
|
|
5
|
-
declare const MAX_INPUT_IMAGES = 3;
|
|
6
|
-
/** Image bytes accepted with a web message, never stored in its mailbox row. */
|
|
7
|
-
declare const inputImageSchema: z.ZodObject<{
|
|
8
|
-
filename: z.ZodString;
|
|
9
|
-
contentType: z.ZodEnum<{
|
|
10
|
-
"image/gif": "image/gif";
|
|
11
|
-
"image/jpeg": "image/jpeg";
|
|
12
|
-
"image/png": "image/png";
|
|
13
|
-
"image/webp": "image/webp";
|
|
14
|
-
}>;
|
|
15
|
-
data: z.ZodString;
|
|
16
|
-
}, z.core.$strict>;
|
|
17
|
-
type InputImage = z.output<typeof inputImageSchema>;
|
|
18
|
-
/** Safe attachment facts shared by mailbox input and transcript messages. */
|
|
19
|
-
declare const messageAttachmentSchema: z.ZodObject<{
|
|
20
|
-
id: z.ZodString;
|
|
21
|
-
filename: z.ZodString;
|
|
22
|
-
contentType: z.ZodString;
|
|
23
|
-
bytes: z.ZodNumber;
|
|
24
|
-
}, z.core.$strict>;
|
|
25
|
-
type MessageAttachment = z.output<typeof messageAttachmentSchema>;
|
|
26
|
-
/** Saved automation facts shown with a Message, not a live status view. */
|
|
27
|
-
declare const automationCardSchema: z.ZodObject<{
|
|
28
|
-
kind: z.ZodLiteral<"automation">;
|
|
29
|
-
id: z.ZodString;
|
|
30
|
-
title: z.ZodString;
|
|
31
|
-
url: z.ZodNullable<z.ZodString>;
|
|
32
|
-
instruction: z.ZodString;
|
|
33
|
-
trigger: z.ZodString;
|
|
34
|
-
warning: z.ZodNullable<z.ZodString>;
|
|
35
|
-
}, z.core.$strict>;
|
|
36
|
-
type AutomationCard = z.output<typeof automationCardSchema>;
|
|
37
|
-
/** Facts for delivery and display. Messages store only references. */
|
|
38
|
-
type MessageCard = OwnedObjectAnnotation | AutomationCard;
|
|
39
|
-
/** Render each built-in card with its own text format. */
|
|
40
|
-
declare function messageCardText(card: MessageCard): string;
|
|
41
|
-
/** Store only the annotation identity with a Message. */
|
|
42
|
-
declare const messageCardRefSchema: z.ZodObject<{
|
|
43
|
-
plugin: z.ZodString;
|
|
44
|
-
key: z.ZodString;
|
|
45
|
-
kind: z.ZodLiteral<"object">;
|
|
46
|
-
}, z.core.$strict>;
|
|
47
|
-
type MessageCardRef = z.output<typeof messageCardRefSchema>;
|
|
48
|
-
/** Resolve current saved facts without fetching providers or changing history. */
|
|
49
|
-
declare function resolveMessageCards(refs: readonly MessageCardRef[], annotations: readonly ConversationAnnotation[]): OwnedObjectAnnotation[];
|
|
50
|
-
/** Where a failed turn stopped. */
|
|
51
|
-
declare const conversationTurnFailureCodeSchema: z.ZodEnum<{
|
|
52
|
-
agent_run_failed: "agent_run_failed";
|
|
53
|
-
delivery_failed: "delivery_failed";
|
|
54
|
-
model_execution_failed: "model_execution_failed";
|
|
55
|
-
persistence_failed: "persistence_failed";
|
|
56
|
-
}>;
|
|
57
|
-
/**
|
|
58
|
-
* Why a failed turn stopped.
|
|
59
|
-
* Values are fixed labels only. Do not store raw exception text.
|
|
60
|
-
*/
|
|
61
|
-
declare const conversationTurnFailureReasonSchema: z.ZodEnum<{
|
|
62
|
-
auth: "auth";
|
|
63
|
-
capacity: "capacity";
|
|
64
|
-
content_policy: "content_policy";
|
|
65
|
-
empty_output: "empty_output";
|
|
66
|
-
invalid_request: "invalid_request";
|
|
67
|
-
invalid_response: "invalid_response";
|
|
68
|
-
network: "network";
|
|
69
|
-
permission: "permission";
|
|
70
|
-
quota: "quota";
|
|
71
|
-
rate_limit: "rate_limit";
|
|
72
|
-
server: "server";
|
|
73
|
-
suppressed_output: "suppressed_output";
|
|
74
|
-
timeout: "timeout";
|
|
75
|
-
tool_errors: "tool_errors";
|
|
76
|
-
unknown: "unknown";
|
|
77
|
-
}>;
|
|
78
|
-
export { resolveMessageCards as a, MAX_INPUT_IMAGES as c, messageCardText as i, MAX_INPUT_IMAGE_BYTES as l, conversationTurnFailureReasonSchema as n, AutomationCard as o, MessageCard as r, InputImage as s, conversationTurnFailureCodeSchema as t, MessageAttachment as u };
|
package/dist/images-CecjXAAz.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { m as getSqlExecutor } from "./viewer-DrN3oC2X.js";
|
|
3
|
-
import { S as readLiveAttachment, w as storeAttachment } from "./agent-runner-DgNATN4D.js";
|
|
4
|
-
import { K as detectImageMediaType } from "./conversation-DSo310Ps.js";
|
|
5
|
-
// src/chat/attachments/images.ts
|
|
6
|
-
var images_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
-
decodeInputImages: () => decodeInputImages,
|
|
8
|
-
loadInputImages: () => loadInputImages,
|
|
9
|
-
storeInputImages: () => storeInputImages
|
|
10
|
-
});
|
|
11
|
-
/** Check declared image types against file signatures before storing uploads. */
|
|
12
|
-
function decodeInputImages(images) {
|
|
13
|
-
const files = images.map((image) => {
|
|
14
|
-
const data = Buffer.from(image.data, "base64");
|
|
15
|
-
if (detectImageMediaType(data) !== image.contentType || data.toString("base64") !== image.data) throw new Error("Use PNG, JPEG, GIF, or WebP image files.");
|
|
16
|
-
return {
|
|
17
|
-
data,
|
|
18
|
-
bytes: data.byteLength,
|
|
19
|
-
filename: image.filename,
|
|
20
|
-
mimeType: image.contentType,
|
|
21
|
-
path: image.filename
|
|
22
|
-
};
|
|
23
|
-
});
|
|
24
|
-
if (files.reduce((sum, file) => sum + file.bytes, 0) > 3145728) throw new Error("Images must total 3 MB or less.");
|
|
25
|
-
return files;
|
|
26
|
-
}
|
|
27
|
-
/** Store image bytes before accepting a message into the mailbox. */
|
|
28
|
-
async function storeInputImages(args) {
|
|
29
|
-
return await Promise.all(args.files.map(async (file) => {
|
|
30
|
-
return {
|
|
31
|
-
id: (await storeAttachment({
|
|
32
|
-
conversationId: args.conversationId,
|
|
33
|
-
db: getSqlExecutor(),
|
|
34
|
-
file,
|
|
35
|
-
storage: args.storage
|
|
36
|
-
})).id,
|
|
37
|
-
filename: file.filename,
|
|
38
|
-
contentType: file.mimeType,
|
|
39
|
-
bytes: file.bytes
|
|
40
|
-
};
|
|
41
|
-
}));
|
|
42
|
-
}
|
|
43
|
-
/** Load stored images for model input. */
|
|
44
|
-
async function loadInputImages(args) {
|
|
45
|
-
return await Promise.all(args.attachments.map(async (ref) => {
|
|
46
|
-
const attachment = await readLiveAttachment({
|
|
47
|
-
attachmentId: ref.id,
|
|
48
|
-
conversationId: args.conversationId,
|
|
49
|
-
db: getSqlExecutor()
|
|
50
|
-
});
|
|
51
|
-
if (!attachment || attachment.storageProvider !== args.storage.provider) throw new Error("Input image is no longer available.");
|
|
52
|
-
const body = await args.storage.get(attachment.storageKey);
|
|
53
|
-
if (!body) throw new Error("Input image contents are unavailable.");
|
|
54
|
-
const data = Buffer.from(await new Response(body).arrayBuffer());
|
|
55
|
-
if (data.byteLength !== attachment.bytes) throw new Error("Input image size does not match stored metadata.");
|
|
56
|
-
return {
|
|
57
|
-
attachmentId: ref.id,
|
|
58
|
-
filename: attachment.filename,
|
|
59
|
-
mediaType: attachment.contentType,
|
|
60
|
-
data
|
|
61
|
-
};
|
|
62
|
-
}));
|
|
63
|
-
}
|
|
64
|
-
export { images_exports as n, storeInputImages as r, decodeInputImages as t };
|