@sentry/junior 0.62.0 → 0.64.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 +5 -1
- package/dist/api-reference.d.ts +2 -0
- package/dist/app.d.ts +5 -10
- package/dist/app.js +348 -874
- package/dist/build/virtual-config.d.ts +18 -2
- package/dist/chat/logging.d.ts +12 -2
- package/dist/chat/plugins/agent-hooks.d.ts +11 -4
- package/dist/chat/plugins/inline-manifest-source.d.ts +5 -0
- package/dist/chat/plugins/manifest.d.ts +5 -3
- package/dist/chat/plugins/package-discovery.d.ts +5 -0
- package/dist/chat/plugins/registry.d.ts +2 -2
- package/dist/chat/plugins/types.d.ts +8 -3
- package/dist/chat/prompt.d.ts +0 -1
- package/dist/chat/state/turn-session.d.ts +1 -1
- package/dist/{chunk-I4FDGMFI.js → chunk-4CRYMG7M.js} +787 -31
- package/dist/chunk-5VDO6LSG.js +104 -0
- package/dist/{chunk-ITOW4DED.js → chunk-D23WCM66.js} +2 -2
- package/dist/{chunk-FKEKRBUB.js → chunk-IGVHCX2U.js} +28 -2
- package/dist/{chunk-5LUISFEY.js → chunk-KVZL5NZS.js} +6 -1
- package/dist/{chunk-H652GMDH.js → chunk-WDPWFMCE.js} +297 -84
- package/dist/{chunk-QDGD5WVN.js → chunk-WZFQQ6SP.js} +3 -28
- package/dist/cli/check.js +9 -4
- package/dist/cli/snapshot-warmup.js +4 -4
- package/dist/nitro.d.ts +10 -3
- package/dist/nitro.js +161 -6
- package/dist/plugins.d.ts +22 -0
- package/dist/reporting.d.ts +26 -11
- package/dist/reporting.js +62 -25
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -25,7 +25,11 @@ export default app;
|
|
|
25
25
|
|
|
26
26
|
Run `junior init my-bot` to scaffold a complete project including `vercel.json` for Vercel deployment.
|
|
27
27
|
|
|
28
|
-
Use `
|
|
28
|
+
Use `defineJuniorPlugins([...])` in a runtime-safe plugin module, then point
|
|
29
|
+
`juniorNitro({ plugins: "./plugins" })` at that module. `createApp()` reads the
|
|
30
|
+
same enabled set from Nitro's virtual module. Manifest-only packages use
|
|
31
|
+
package-name strings; trusted factories such as `githubPlugin()` register their
|
|
32
|
+
manifest and in-process hooks together.
|
|
29
33
|
|
|
30
34
|
## Full docs
|
|
31
35
|
|
package/dist/api-reference.d.ts
CHANGED
|
@@ -3,5 +3,7 @@ export type { JuniorAppOptions } from "./app";
|
|
|
3
3
|
export { initSentry } from "./instrumentation";
|
|
4
4
|
export { juniorNitro } from "./nitro";
|
|
5
5
|
export type { JuniorNitroOptions } from "./nitro";
|
|
6
|
+
export { defineJuniorPlugins } from "./plugins";
|
|
7
|
+
export type { JuniorPluginInput, JuniorPluginSet, JuniorPluginSetOptions, } from "./plugins";
|
|
6
8
|
export { juniorVercelConfig } from "./vercel";
|
|
7
9
|
export type { JuniorVercelConfigOptions } from "./vercel";
|
package/dist/app.d.ts
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import type
|
|
3
|
-
import type { JuniorPlugin } from "@sentry/junior-plugin-api";
|
|
2
|
+
import { type JuniorPluginSet } from "@/plugins";
|
|
4
3
|
import type { WaitUntilFn } from "@/handlers/types";
|
|
4
|
+
export { defineJuniorPlugins } from "@/plugins";
|
|
5
|
+
export type { JuniorPluginInput, JuniorPluginSet, JuniorPluginSetOptions, } from "@/plugins";
|
|
5
6
|
export interface JuniorAppOptions {
|
|
6
7
|
/** Install-wide provider defaults (`provider.key` format). Channel overrides take precedence. */
|
|
7
8
|
configDefaults?: Record<string, unknown>;
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
*
|
|
11
|
-
* Use `PluginConfig` for declarative package lists and manifest overrides.
|
|
12
|
-
* Use `JuniorPlugin[]` for trusted plugin factories such as `githubPlugin()`;
|
|
13
|
-
* their package config is merged with the catalog bundled by `juniorNitro()`.
|
|
14
|
-
*/
|
|
15
|
-
plugins?: PluginConfig | JuniorPlugin[];
|
|
9
|
+
/** Direct plugin set override. Usually omitted when `juniorNitro()` uses a plugin module. */
|
|
10
|
+
plugins?: JuniorPluginSet;
|
|
16
11
|
waitUntil?: WaitUntilFn;
|
|
17
12
|
}
|
|
18
13
|
/** Create a Hono app with all Junior routes. */
|