@sentry/junior 0.100.0 → 0.102.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 +0 -1
- package/dist/{agent-hooks-V6KU7PQN.js → agent-hooks-I4I2DHSW.js} +7 -7
- package/dist/api/conversations/schema.d.ts +2 -2
- package/dist/api/people/schema.d.ts +13 -0
- package/dist/api/schema.d.ts +1 -1
- package/dist/api/schema.js +3 -3
- package/dist/api.js +16 -16
- package/dist/app.js +165 -104
- package/dist/{catalog-runtime-PFHVMHDR.js → catalog-runtime-5CVM2DOF.js} +2 -2
- package/dist/chat/agent/prompt.d.ts +1 -1
- package/dist/chat/agent/request.d.ts +1 -1
- package/dist/chat/agent-dispatch/validation.d.ts +1 -1
- package/dist/chat/conversation-privacy.d.ts +2 -6
- package/dist/chat/conversations/store.d.ts +1 -1
- package/dist/chat/credentials/context.d.ts +33 -6
- package/dist/chat/credentials/subject.d.ts +15 -1
- package/dist/chat/logging.d.ts +4 -2
- package/dist/chat/mcp/auth-store.d.ts +1 -0
- package/dist/chat/mcp/client.d.ts +2 -0
- package/dist/chat/mcp/oauth-provider.d.ts +4 -1
- package/dist/chat/mcp/oauth.d.ts +3 -1
- package/dist/chat/mcp/tool-manager.d.ts +3 -1
- package/dist/chat/sandbox/egress/schemas.d.ts +13 -2
- package/dist/chat/services/context-compaction-marker.d.ts +8 -0
- package/dist/chat/services/mcp-auth-orchestration.d.ts +1 -1
- package/dist/chat/services/pending-auth.d.ts +17 -9
- package/dist/chat/state/conversation.d.ts +7 -3
- package/dist/{chunk-XJA7BPHS.js → chunk-3OABPOHR.js} +3 -3
- package/dist/{chunk-2T7DCRAW.js → chunk-3UK5DFKW.js} +3 -3
- package/dist/{chunk-IDZBM3NW.js → chunk-4YN2ZXKB.js} +10 -2
- package/dist/{chunk-NSOCZGOH.js → chunk-5K4N73TP.js} +9 -11
- package/dist/{chunk-LMJPRYHP.js → chunk-77LHNQK4.js} +32 -8
- package/dist/{chunk-I35CTGPO.js → chunk-AEWZ7F65.js} +41 -17
- package/dist/{chunk-IQIBZXGB.js → chunk-B5QS4AVO.js} +2 -2
- package/dist/{chunk-XSBIISXS.js → chunk-DTUSCR2Y.js} +9 -12
- package/dist/{chunk-GEUUJRQF.js → chunk-E4EMFKGB.js} +1 -1
- package/dist/{chunk-VVIXK2BX.js → chunk-EMUZSROX.js} +2 -2
- package/dist/{chunk-IVXL57YF.js → chunk-EOB77KME.js} +4 -4
- package/dist/{chunk-PGGEOCQY.js → chunk-F4CQEUTP.js} +1 -1
- package/dist/{chunk-4AQUWWEM.js → chunk-HNIT4HXU.js} +1 -1
- package/dist/{chunk-MM5UFDAC.js → chunk-HYDQULR2.js} +1 -1
- package/dist/{chunk-FP5N5OWZ.js → chunk-IQ36I3DF.js} +2 -2
- package/dist/{chunk-JSAANELJ.js → chunk-LJB2TLVT.js} +3 -3
- package/dist/{chunk-D5KZYS4T.js → chunk-MJSJAHBW.js} +1 -1
- package/dist/{chunk-QSBQJ3PA.js → chunk-MR6H67P2.js} +3 -3
- package/dist/{chunk-VY7BT4SM.js → chunk-NSP6OGL2.js} +9 -8
- package/dist/{chunk-VHRM6GNH.js → chunk-QZGVPPIJ.js} +27 -3
- package/dist/{chunk-LVA4I4H7.js → chunk-RT5BUHR5.js} +15 -44
- package/dist/{chunk-A7X2FDUO.js → chunk-SHBPSE7A.js} +88 -66
- package/dist/{chunk-CM5EZD5F.js → chunk-UIE3R5XU.js} +1 -1
- package/dist/{chunk-JPQISMMJ.js → chunk-VSAFV2GI.js} +7 -6
- package/dist/{chunk-3ECW2K2O.js → chunk-WR7H7VLJ.js} +2 -2
- package/dist/{chunk-TPTJEHUE.js → chunk-X2IPNCB5.js} +61 -25
- package/dist/{chunk-6DTVCPLO.js → chunk-XIMUQ4IU.js} +4 -3
- package/dist/{chunk-45DMFMY2.js → chunk-ZIX4PNBI.js} +348 -200
- package/dist/{chunk-PWC24W5F.js → chunk-ZSHL44IQ.js} +2 -2
- package/dist/cli/chat.js +22 -22
- package/dist/cli/check.js +3 -3
- package/dist/cli/plugins.js +9 -9
- package/dist/cli/snapshot-warmup.js +5 -5
- package/dist/cli/upgrade.js +203 -14
- package/dist/db/postgres-json.d.ts +5 -0
- package/dist/{db-RCZB7KNM.js → db-6QP6HY7U.js} +4 -4
- package/dist/{detail-LU6COZO6.js → detail-OEIVZYXS.js} +12 -12
- package/dist/{detail-5SLCGT6J.js → detail-U6IP2Z4N.js} +8 -8
- package/dist/instrumentation.js +2 -2
- package/dist/{legacy-import-VCYLWT2V.js → legacy-import-R3BMM2GH.js} +5 -5
- package/dist/{list-KHRAWZWU.js → list-AJ6RWBOG.js} +8 -8
- package/dist/list-UMZKA5AI.js +121 -0
- package/dist/{list-4ALSU6ZW.js → list-Z3CC52CZ.js} +8 -8
- package/dist/{plugin-conversations-JANXC4GA.js → plugin-conversations-F3IBVNFX.js} +7 -7
- package/dist/{profile-3O3OVENT.js → profile-CQMPFKED.js} +8 -8
- package/dist/{runner-BM7D35YW.js → runner-C2ZTIOUD.js} +13 -13
- package/dist/{skills-MAZXZ2KE.js → skills-722AXRV5.js} +3 -3
- package/dist/{stats-J3YGCYDF.js → stats-ZYFQFCTL.js} +6 -6
- package/dist/{subagent-P7HOSMVC.js → subagent-X3ZWJHR4.js} +11 -11
- package/dist/{validation-FMEAEKCY.js → validation-EUI2UFRM.js} +3 -3
- package/package.json +6 -6
- package/dist/api-reference.d.ts +0 -14
- package/dist/list-2FI5SFV7.js +0 -80
package/README.md
CHANGED
|
@@ -50,4 +50,3 @@ Canonical docs: **https://junior.sentry.dev/**
|
|
|
50
50
|
- Slack app setup: https://junior.sentry.dev/start-here/slack-app-setup/
|
|
51
51
|
- Deployment: https://junior.sentry.dev/start-here/deploy-to-vercel/
|
|
52
52
|
- Plugin setup: https://junior.sentry.dev/extend/
|
|
53
|
-
- API reference: https://junior.sentry.dev/reference/api/
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
getPlugins,
|
|
12
12
|
setPlugins,
|
|
13
13
|
validatePlugins
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-X2IPNCB5.js";
|
|
15
|
+
import "./chunk-IQ36I3DF.js";
|
|
16
|
+
import "./chunk-ZSHL44IQ.js";
|
|
17
|
+
import "./chunk-QZGVPPIJ.js";
|
|
18
18
|
import "./chunk-G3E7SCME.js";
|
|
19
19
|
import "./chunk-4ZNGQH7C.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-SHBPSE7A.js";
|
|
21
21
|
import "./chunk-FXFQNHRU.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-RT5BUHR5.js";
|
|
23
23
|
import "./chunk-B7PUBQQM.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-AEWZ7F65.js";
|
|
25
25
|
import "./chunk-OB42YVAE.js";
|
|
26
26
|
import "./chunk-6GWA276C.js";
|
|
27
27
|
import "./chunk-7FBGKXPE.js";
|
|
@@ -310,7 +310,7 @@ export declare const conversationContextEventSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
310
310
|
type: z.ZodLiteral<"model_handoff">;
|
|
311
311
|
createdAt: z.ZodString;
|
|
312
312
|
fromModelId: z.ZodOptional<z.ZodString>;
|
|
313
|
-
|
|
313
|
+
message: z.ZodOptional<z.ZodString>;
|
|
314
314
|
toModelId: z.ZodString;
|
|
315
315
|
transcriptIndex: z.ZodNumber;
|
|
316
316
|
}, z.core.$strict>], "type">;
|
|
@@ -436,7 +436,7 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
436
436
|
type: z.ZodLiteral<"model_handoff">;
|
|
437
437
|
createdAt: z.ZodString;
|
|
438
438
|
fromModelId: z.ZodOptional<z.ZodString>;
|
|
439
|
-
|
|
439
|
+
message: z.ZodOptional<z.ZodString>;
|
|
440
440
|
toModelId: z.ZodString;
|
|
441
441
|
transcriptIndex: z.ZodNumber;
|
|
442
442
|
}, z.core.$strict>], "type">>>;
|
|
@@ -45,6 +45,11 @@ export declare const actorActivityDayReportSchema: z.ZodObject<{
|
|
|
45
45
|
failed: z.ZodNumber;
|
|
46
46
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
47
47
|
}, z.core.$strict>;
|
|
48
|
+
export declare const peopleActivityDayReportSchema: z.ZodObject<{
|
|
49
|
+
activePeople: z.ZodNumber;
|
|
50
|
+
conversations: z.ZodNumber;
|
|
51
|
+
date: z.ZodString;
|
|
52
|
+
}, z.core.$strict>;
|
|
48
53
|
export declare const actorTotalsReportSchema: z.ZodObject<{
|
|
49
54
|
active: z.ZodNumber;
|
|
50
55
|
activeDays: z.ZodNumber;
|
|
@@ -76,6 +81,11 @@ export declare const actorSummaryReportSchema: z.ZodObject<{
|
|
|
76
81
|
}, z.core.$strict>;
|
|
77
82
|
}, z.core.$strict>;
|
|
78
83
|
export declare const actorDirectoryReportSchema: z.ZodObject<{
|
|
84
|
+
activityDays: z.ZodArray<z.ZodObject<{
|
|
85
|
+
activePeople: z.ZodNumber;
|
|
86
|
+
conversations: z.ZodNumber;
|
|
87
|
+
date: z.ZodString;
|
|
88
|
+
}, z.core.$strict>>;
|
|
79
89
|
generatedAt: z.ZodString;
|
|
80
90
|
people: z.ZodArray<z.ZodObject<{
|
|
81
91
|
active: z.ZodNumber;
|
|
@@ -94,6 +104,8 @@ export declare const actorDirectoryReportSchema: z.ZodObject<{
|
|
|
94
104
|
}, z.core.$strict>;
|
|
95
105
|
}, z.core.$strict>>;
|
|
96
106
|
source: z.ZodLiteral<"conversation_index">;
|
|
107
|
+
windowEnd: z.ZodString;
|
|
108
|
+
windowStart: z.ZodString;
|
|
97
109
|
}, z.core.$strict>;
|
|
98
110
|
export declare const actorProfileReportSchema: z.ZodObject<{
|
|
99
111
|
activityDays: z.ZodArray<z.ZodObject<{
|
|
@@ -172,6 +184,7 @@ export type ActorIdentity = z.infer<typeof actorIdentitySchema>;
|
|
|
172
184
|
export type ConversationSummaryReport = z.infer<typeof peopleConversationSummaryReportSchema>;
|
|
173
185
|
export type ConversationStatsItem = z.infer<typeof peopleConversationStatsItemSchema>;
|
|
174
186
|
export type ActorActivityDayReport = z.infer<typeof actorActivityDayReportSchema>;
|
|
187
|
+
export type PeopleActivityDayReport = z.infer<typeof peopleActivityDayReportSchema>;
|
|
175
188
|
export type ActorTotalsReport = z.infer<typeof actorTotalsReportSchema>;
|
|
176
189
|
export type ActorSummaryReport = z.infer<typeof actorSummaryReportSchema>;
|
|
177
190
|
export type ActorDirectoryReport = z.infer<typeof actorDirectoryReportSchema>;
|
package/dist/api/schema.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type { ActorIdentity, ConversationActivityReport, ConversationActivitySta
|
|
|
5
5
|
export { actorDirectoryReportSchema, actorProfileReportSchema, } from "./people/schema";
|
|
6
6
|
export { locationDetailReportSchema, locationDirectoryReportSchema, } from "./locations/schema";
|
|
7
7
|
export type { LocationActorSummaryReport, LocationDetailReport, LocationDirectoryReport, LocationSummaryReport, } from "./locations/schema";
|
|
8
|
-
export type { ActorActivityDayReport, ActorDirectoryReport, ActorProfileReport, ActorSummaryReport, ActorTotalsReport, } from "./people/schema";
|
|
8
|
+
export type { ActorActivityDayReport, ActorDirectoryReport, ActorProfileReport, ActorSummaryReport, ActorTotalsReport, PeopleActivityDayReport, } from "./people/schema";
|
|
9
9
|
export { healthReportSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginReportSchema, pluginReportsSchema, runtimeInfoReportSchema, skillReportSchema, skillReportsSchema, } from "../reporting-schema";
|
|
10
10
|
export type { HealthReport, PluginOperationalReport, PluginOperationalReportFeed, PluginPackageContentItemReport, PluginPackageContentReport, PluginReport, PluginReports, RuntimeInfoReport, SkillReport, SkillReports, } from "../reporting-schema";
|
|
11
11
|
import { z } from "zod";
|
package/dist/api/schema.js
CHANGED
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
dailyConversationActivitySchema,
|
|
10
10
|
locationDetailReportSchema,
|
|
11
11
|
locationDirectoryReportSchema
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-HNIT4HXU.js";
|
|
13
13
|
import {
|
|
14
14
|
actorDirectoryReportSchema,
|
|
15
15
|
actorProfileReportSchema
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-4YN2ZXKB.js";
|
|
17
17
|
import {
|
|
18
18
|
conversationDetailReportSchema,
|
|
19
19
|
conversationFeedSchema,
|
|
20
20
|
conversationStatsReportSchema,
|
|
21
21
|
conversationSubagentTranscriptReportSchema
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-HYDQULR2.js";
|
|
23
23
|
import {
|
|
24
24
|
healthReportSchema,
|
|
25
25
|
pluginOperationalReportFeedSchema,
|
package/dist/api.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
personParamsSchema,
|
|
6
6
|
subagentParamsSchema
|
|
7
7
|
} from "./chunk-2RNOB32R.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-HNIT4HXU.js";
|
|
9
|
+
import "./chunk-4YN2ZXKB.js";
|
|
10
|
+
import "./chunk-HYDQULR2.js";
|
|
11
11
|
import {
|
|
12
12
|
readHealthReport
|
|
13
13
|
} from "./chunk-QNVHH5PU.js";
|
|
@@ -37,7 +37,7 @@ function readDescriptionText(home) {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
async function readSkillReports() {
|
|
40
|
-
const { discoverSkills } = await import("./skills-
|
|
40
|
+
const { discoverSkills } = await import("./skills-722AXRV5.js");
|
|
41
41
|
const skills = await discoverSkills();
|
|
42
42
|
return skillReportsSchema.parse(
|
|
43
43
|
skills.map((skill) => ({
|
|
@@ -47,7 +47,7 @@ async function readSkillReports() {
|
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
49
|
async function readPluginReports() {
|
|
50
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
50
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-5CVM2DOF.js");
|
|
51
51
|
return pluginReportsSchema.parse(
|
|
52
52
|
pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
53
53
|
name: plugin.manifest.name
|
|
@@ -57,7 +57,7 @@ async function readPluginReports() {
|
|
|
57
57
|
async function readRuntimeInfoReport() {
|
|
58
58
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
59
59
|
import("./discovery-RMHYSRL7.js"),
|
|
60
|
-
import("./catalog-runtime-
|
|
60
|
+
import("./catalog-runtime-5CVM2DOF.js"),
|
|
61
61
|
readPluginReports(),
|
|
62
62
|
readSkillReports()
|
|
63
63
|
]);
|
|
@@ -73,11 +73,11 @@ async function readRuntimeInfoReport() {
|
|
|
73
73
|
}
|
|
74
74
|
async function readPluginOperationalReportFeed() {
|
|
75
75
|
const listRecent = async (listOptions) => {
|
|
76
|
-
const { listRecentConversationSummaries } = await import("./plugin-conversations-
|
|
76
|
+
const { listRecentConversationSummaries } = await import("./plugin-conversations-F3IBVNFX.js");
|
|
77
77
|
return listRecentConversationSummaries(listOptions?.limit);
|
|
78
78
|
};
|
|
79
79
|
const nowMs = Date.now();
|
|
80
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
80
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-I4I2DHSW.js");
|
|
81
81
|
return pluginOperationalReportFeedSchema.parse({
|
|
82
82
|
source: "plugins",
|
|
83
83
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -126,7 +126,7 @@ function createJuniorApi() {
|
|
|
126
126
|
return Response.json(await readPluginOperationalReportFeed());
|
|
127
127
|
});
|
|
128
128
|
app.get("/api/conversations", async (c) => {
|
|
129
|
-
const { readConversationFeed } = await import("./list-
|
|
129
|
+
const { readConversationFeed } = await import("./list-AJ6RWBOG.js");
|
|
130
130
|
const { actorEmail } = parseQuery(
|
|
131
131
|
conversationFeedQuerySchema,
|
|
132
132
|
c.req.query()
|
|
@@ -134,11 +134,11 @@ function createJuniorApi() {
|
|
|
134
134
|
return Response.json(await readConversationFeed({ actorEmail }));
|
|
135
135
|
});
|
|
136
136
|
app.get("/api/conversations/stats", async () => {
|
|
137
|
-
const { readConversationStats } = await import("./stats-
|
|
137
|
+
const { readConversationStats } = await import("./stats-ZYFQFCTL.js");
|
|
138
138
|
return Response.json(await readConversationStats());
|
|
139
139
|
});
|
|
140
140
|
app.get("/api/conversations/:conversationId", async (c) => {
|
|
141
|
-
const { readConversationDetail } = await import("./detail-
|
|
141
|
+
const { readConversationDetail } = await import("./detail-OEIVZYXS.js");
|
|
142
142
|
const { conversationId } = parseParams(
|
|
143
143
|
conversationParamsSchema,
|
|
144
144
|
c.req.param()
|
|
@@ -149,7 +149,7 @@ function createJuniorApi() {
|
|
|
149
149
|
app.get(
|
|
150
150
|
"/api/conversations/:conversationId/subagents/:subagentId",
|
|
151
151
|
async (c) => {
|
|
152
|
-
const { readConversationSubagent } = await import("./subagent-
|
|
152
|
+
const { readConversationSubagent } = await import("./subagent-X3ZWJHR4.js");
|
|
153
153
|
const { conversationId, subagentId } = parseParams(
|
|
154
154
|
subagentParamsSchema,
|
|
155
155
|
c.req.param()
|
|
@@ -159,21 +159,21 @@ function createJuniorApi() {
|
|
|
159
159
|
}
|
|
160
160
|
);
|
|
161
161
|
app.get("/api/people", async () => {
|
|
162
|
-
const { readPeopleList } = await import("./list-
|
|
162
|
+
const { readPeopleList } = await import("./list-UMZKA5AI.js");
|
|
163
163
|
return Response.json(await readPeopleList());
|
|
164
164
|
});
|
|
165
165
|
app.get("/api/people/:email", async (c) => {
|
|
166
166
|
const { email } = parseParams(personParamsSchema, c.req.param());
|
|
167
|
-
const { readPeopleProfile } = await import("./profile-
|
|
167
|
+
const { readPeopleProfile } = await import("./profile-CQMPFKED.js");
|
|
168
168
|
return Response.json(await readPeopleProfile(email));
|
|
169
169
|
});
|
|
170
170
|
app.get("/api/locations", async () => {
|
|
171
|
-
const { readLocationDirectory } = await import("./list-
|
|
171
|
+
const { readLocationDirectory } = await import("./list-Z3CC52CZ.js");
|
|
172
172
|
return Response.json(await readLocationDirectory());
|
|
173
173
|
});
|
|
174
174
|
app.get("/api/locations/:locationId", async (c) => {
|
|
175
175
|
const { locationId } = parseParams(locationParamsSchema, c.req.param());
|
|
176
|
-
const { readLocationDetail } = await import("./detail-
|
|
176
|
+
const { readLocationDetail } = await import("./detail-U6IP2Z4N.js");
|
|
177
177
|
const report = await readLocationDetail(locationId);
|
|
178
178
|
return report ? Response.json(report) : Response.json({ error: "Location not found." }, { status: 404 });
|
|
179
179
|
});
|