@sentry/junior 0.75.0 → 0.76.1
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 +1 -1
- package/bin/junior.mjs +4 -66
- package/dist/agent-hooks-ZOE7RIED.js +37 -0
- package/dist/api-reference.d.ts +2 -0
- package/dist/app.js +364 -135
- package/dist/build/virtual-config.d.ts +2 -2
- package/dist/chat/agent-dispatch/runner.d.ts +2 -0
- package/dist/chat/config.d.ts +1 -0
- package/dist/chat/credentials/state-adapter-token-store.d.ts +2 -0
- package/dist/chat/credentials/user-token-store.d.ts +17 -12
- package/dist/chat/db.d.ts +8 -0
- package/dist/chat/mcp/auth-store.d.ts +2 -1
- package/dist/chat/mcp/oauth.d.ts +2 -1
- package/dist/chat/oauth-flow.d.ts +3 -1
- package/dist/chat/pi/client.d.ts +15 -7
- package/dist/chat/plugins/agent-hooks.d.ts +7 -0
- package/dist/chat/plugins/auth/oauth-request.d.ts +11 -7
- package/dist/chat/plugins/model.d.ts +9 -0
- package/dist/chat/plugins/prompt.d.ts +5 -0
- package/dist/chat/plugins/task-callback.d.ts +5 -0
- package/dist/chat/plugins/task-message.d.ts +23 -0
- package/dist/chat/plugins/task-queue.d.ts +5 -0
- package/dist/chat/plugins/task-runner.d.ts +12 -0
- package/dist/chat/plugins/task-signing.d.ts +31 -0
- package/dist/chat/prompt.d.ts +4 -0
- package/dist/chat/requester.d.ts +6 -5
- package/dist/chat/respond-helpers.d.ts +2 -0
- package/dist/chat/respond.d.ts +4 -2
- package/dist/chat/runtime/agent-continue-runner.d.ts +4 -0
- package/dist/chat/runtime/reply-executor.d.ts +5 -1
- package/dist/chat/runtime/slack-resume.d.ts +10 -2
- package/dist/chat/sentry.d.ts +1 -0
- package/dist/chat/services/mcp-auth-orchestration.d.ts +2 -1
- package/dist/chat/services/plugin-auth-orchestration.d.ts +2 -1
- package/dist/chat/services/subscribed-decision.d.ts +2 -2
- package/dist/chat/services/turn-session-record.d.ts +11 -7
- package/dist/chat/slack/footer.d.ts +1 -1
- package/dist/chat/state/turn-session.d.ts +8 -5
- package/dist/chat/tools/agent-tools.d.ts +8 -1
- package/dist/chat/tools/slack/context.d.ts +2 -2
- package/dist/chat/tools/types.d.ts +4 -4
- package/dist/chat/vercel-queue-client.d.ts +3 -0
- package/dist/{chunk-C3AM4Z4J.js → chunk-2ECJXSVQ.js} +5 -5
- package/dist/{chunk-OJODNL2P.js → chunk-4SCWV7TJ.js} +2 -2
- package/dist/chunk-4UO6FK4G.js +64 -0
- package/dist/{chunk-BNJIEFQC.js → chunk-56TBVRJG.js} +2 -2
- package/dist/{chunk-OK4KKR7B.js → chunk-EJN6G5A2.js} +28 -12
- package/dist/{chunk-TQ74BATR.js → chunk-FFGXUXMD.js} +435 -111
- package/dist/{chunk-XJHDZUGD.js → chunk-JBASI5VV.js} +4 -4
- package/dist/chunk-KNFROR7R.js +127 -0
- package/dist/{chunk-VNTLUFTY.js → chunk-KOIMO7S3.js} +126 -87
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/{chunk-NPVUAXUE.js → chunk-NFTMTIP3.js} +303 -33
- package/dist/chunk-NYKJ3KON.js +1082 -0
- package/dist/{chunk-SJHUF3DP.js → chunk-OJ53FYVG.js} +2 -10
- package/dist/{chunk-62FUNJYS.js → chunk-Q6XFTRV5.js} +54 -3
- package/dist/{chunk-UJ7OTHPO.js → chunk-R6Z5XWY3.js} +12 -670
- package/dist/chunk-RV5RYIJW.js +56 -0
- package/dist/{chunk-EE6PJWY4.js → chunk-SG5WAA7H.js} +7 -5
- package/dist/chunk-ST6YNAXG.js +54 -0
- package/dist/{chunk-FCZO7LAR.js → chunk-T77LUIX3.js} +139 -153
- package/dist/{chunk-EIYL7I4S.js → chunk-VALUBQ7R.js} +22 -30
- package/dist/{chunk-OZSPLAQ4.js → chunk-XBBC6W45.js} +1 -1
- package/dist/{chunk-ZNNTSPNF.js → chunk-Y5OFBCBZ.js} +1 -1
- package/dist/{chunk-74HO27II.js → chunk-Z4CIQ3EB.js} +5 -1
- package/dist/{chunk-2RWFUS5F.js → chunk-ZLMBNBUG.js} +101 -44
- package/dist/{chunk-JEELK46E.js → chunk-ZQB37HUX.js} +11 -11
- package/dist/cli/chat.js +52 -23
- package/dist/cli/check.js +7 -7
- package/dist/cli/env.js +4 -53
- package/dist/cli/init.js +6 -1
- package/dist/cli/main.js +84 -0
- package/dist/cli/plugins.js +244 -0
- package/dist/cli/run.js +5 -52
- package/dist/cli/snapshot-warmup.js +9 -9
- package/dist/cli/upgrade.js +167 -48
- package/dist/db-7A7PFRGL.js +17 -0
- package/dist/deployment.d.ts +1 -0
- package/dist/instrumentation.js +14 -18
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +43 -22
- package/dist/plugins-PZMDS7AT.js +15 -0
- package/dist/plugins.d.ts +4 -2
- package/dist/{registry-NLZFIW23.js → registry-OIPAJU2O.js} +6 -6
- package/dist/reporting.js +34 -26
- package/dist/{runner-LUQZ5G67.js → runner-7Z4D6AKV.js} +76 -23
- package/dist/sentry-4CP5NNQ5.js +31 -0
- package/dist/validation-SLA6IGF7.js +15 -0
- package/dist/vercel.js +1 -1
- package/package.json +8 -7
- package/dist/agent-hooks-2HEB4C3Q.js +0 -33
- package/dist/chat/conversations/configured.d.ts +0 -7
- package/dist/chat/conversations/state.d.ts +0 -4
- package/dist/chat/plugins/db.d.ts +0 -31
- package/dist/chunk-2KG3PWR4.js +0 -17
- package/dist/chunk-D7NFH5GD.js +0 -570
- package/dist/chunk-MCMROINU.js +0 -12
- package/dist/chunk-WBZ4M5N5.js +0 -59
- package/dist/db-A3ILH67H.js +0 -20
- package/dist/plugins-OMJKLRJ2.js +0 -13
- package/dist/validation-VMCPP3YO.js +0 -15
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Run `junior init my-bot` to scaffold a complete project including `vercel.json`
|
|
|
28
28
|
Use `defineJuniorPlugins([...])` in a runtime-safe plugin module, then point
|
|
29
29
|
`juniorNitro({ plugins: "./plugins" })` at that module. `createApp()` reads the
|
|
30
30
|
same enabled set from Nitro's virtual module. Manifest-only packages use
|
|
31
|
-
package-name strings;
|
|
31
|
+
package-name strings; factories such as `githubPlugin()` register their
|
|
32
32
|
manifest and in-process hooks together.
|
|
33
33
|
|
|
34
34
|
## Full docs
|
package/bin/junior.mjs
CHANGED
|
@@ -20,75 +20,13 @@ async function loadCliFunction(moduleName, exportName, unavailableMessage) {
|
|
|
20
20
|
return loadedModule[exportName];
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
async function loadCliEnvFiles() {
|
|
24
|
-
const loadCliEnvFilesFn = await loadCliFunction(
|
|
25
|
-
"env",
|
|
26
|
-
"loadCliEnvFiles",
|
|
27
|
-
"CLI env loader is unavailable; reinstall @sentry/junior and retry.",
|
|
28
|
-
);
|
|
29
|
-
loadCliEnvFilesFn(process.cwd());
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
async function runSnapshotCreate() {
|
|
33
|
-
const runSnapshotCreateFn = await loadCliFunction(
|
|
34
|
-
"snapshot-warmup",
|
|
35
|
-
"runSnapshotCreate",
|
|
36
|
-
"Snapshot create module is unavailable; reinstall @sentry/junior and retry.",
|
|
37
|
-
);
|
|
38
|
-
await runSnapshotCreateFn();
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
async function runInit(dir) {
|
|
42
|
-
const runInitFn = await loadCliFunction(
|
|
43
|
-
"init",
|
|
44
|
-
"runInit",
|
|
45
|
-
"Init module is unavailable; reinstall @sentry/junior and retry.",
|
|
46
|
-
);
|
|
47
|
-
await runInitFn(dir);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
async function runCheck(dir) {
|
|
51
|
-
const runCheckFn = await loadCliFunction(
|
|
52
|
-
"check",
|
|
53
|
-
"runCheck",
|
|
54
|
-
"Check module is unavailable; reinstall @sentry/junior and retry.",
|
|
55
|
-
);
|
|
56
|
-
await runCheckFn(dir);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
async function runUpgrade() {
|
|
60
|
-
const runUpgradeFn = await loadCliFunction(
|
|
61
|
-
"upgrade",
|
|
62
|
-
"runUpgrade",
|
|
63
|
-
"Upgrade module is unavailable; reinstall @sentry/junior and retry.",
|
|
64
|
-
);
|
|
65
|
-
await runUpgradeFn();
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
async function runChat(argv) {
|
|
69
|
-
const runChatFn = await loadCliFunction(
|
|
70
|
-
"chat",
|
|
71
|
-
"runChat",
|
|
72
|
-
"Chat module is unavailable; reinstall @sentry/junior and retry.",
|
|
73
|
-
);
|
|
74
|
-
return await runChatFn(argv);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
23
|
async function main() {
|
|
78
|
-
await
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
"runCli",
|
|
24
|
+
const runMain = await loadCliFunction(
|
|
25
|
+
"main",
|
|
26
|
+
"runMain",
|
|
82
27
|
"CLI dispatcher module is unavailable; reinstall @sentry/junior and retry.",
|
|
83
28
|
);
|
|
84
|
-
|
|
85
|
-
runChat,
|
|
86
|
-
runInit,
|
|
87
|
-
runSnapshotCreate,
|
|
88
|
-
runCheck,
|
|
89
|
-
runUpgrade,
|
|
90
|
-
});
|
|
91
|
-
process.exit(exitCode);
|
|
29
|
+
await runMain(process.argv.slice(2), { instrument: false });
|
|
92
30
|
}
|
|
93
31
|
|
|
94
32
|
main().catch((error) => {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PluginHookDeniedError,
|
|
3
|
+
createPluginHookRunner,
|
|
4
|
+
getPluginOperationalReports,
|
|
5
|
+
getPluginRoutes,
|
|
6
|
+
getPluginSlackConversationLink,
|
|
7
|
+
getPluginSystemPromptContributions,
|
|
8
|
+
getPluginTools,
|
|
9
|
+
getPluginUserPromptContributions,
|
|
10
|
+
getPlugins,
|
|
11
|
+
setPlugins,
|
|
12
|
+
validatePlugins
|
|
13
|
+
} from "./chunk-NFTMTIP3.js";
|
|
14
|
+
import "./chunk-56TBVRJG.js";
|
|
15
|
+
import "./chunk-NYKJ3KON.js";
|
|
16
|
+
import "./chunk-G3E7SCME.js";
|
|
17
|
+
import "./chunk-Y5OFBCBZ.js";
|
|
18
|
+
import "./chunk-Q6XFTRV5.js";
|
|
19
|
+
import "./chunk-T77LUIX3.js";
|
|
20
|
+
import "./chunk-VALUBQ7R.js";
|
|
21
|
+
import "./chunk-EJN6G5A2.js";
|
|
22
|
+
import "./chunk-OJ53FYVG.js";
|
|
23
|
+
import "./chunk-ST6YNAXG.js";
|
|
24
|
+
import "./chunk-MLKGABMK.js";
|
|
25
|
+
export {
|
|
26
|
+
PluginHookDeniedError,
|
|
27
|
+
createPluginHookRunner,
|
|
28
|
+
getPluginOperationalReports,
|
|
29
|
+
getPluginRoutes,
|
|
30
|
+
getPluginSlackConversationLink,
|
|
31
|
+
getPluginSystemPromptContributions,
|
|
32
|
+
getPluginTools,
|
|
33
|
+
getPluginUserPromptContributions,
|
|
34
|
+
getPlugins,
|
|
35
|
+
setPlugins,
|
|
36
|
+
validatePlugins
|
|
37
|
+
};
|
package/dist/api-reference.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export { juniorNitro } from "./nitro";
|
|
|
5
5
|
export type { JuniorNitroOptions } from "./nitro";
|
|
6
6
|
export { defineJuniorPlugins } from "./plugins";
|
|
7
7
|
export type { JuniorPluginInput, JuniorPluginSet, JuniorPluginSetOptions, } from "./plugins";
|
|
8
|
+
export type { PluginRunContext, PluginRunTranscriptEntry, PluginTaskContext, PluginTaskDefinition, PluginTasks, } from "@sentry/junior-plugin-api";
|
|
9
|
+
export { pluginRunContextSchema, pluginRunTranscriptEntrySchema, } from "@sentry/junior-plugin-api";
|
|
8
10
|
export { createJuniorReporting } from "./reporting";
|
|
9
11
|
export type { PluginConversationStatus, PluginConversations, PluginConversationSummary, ConversationFeed, ConversationReport, ConversationReportStatus, ConversationRunReport, ConversationStatsItem, ConversationStatsReport, ConversationSummaryReport, ConversationSurface, ConversationUsage, HealthReport, JuniorReporting, PluginOperationalReport, PluginOperationalReportFeed, PluginPackageContentItemReport, PluginPackageContentReport, PluginReport, RequesterIdentity, RuntimeInfoReport, SkillReport, TranscriptMessage, TranscriptPart, TranscriptPartType, TranscriptRole, } from "./reporting";
|
|
10
12
|
export { juniorVercelConfig } from "./vercel";
|