@sentry/junior 0.54.0 → 0.56.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.
Files changed (60) hide show
  1. package/README.md +1 -1
  2. package/dist/app.d.ts +9 -2
  3. package/dist/app.js +13024 -10255
  4. package/dist/chat/agent-dispatch/context.d.ts +6 -0
  5. package/dist/chat/agent-dispatch/heartbeat.d.ts +14 -0
  6. package/dist/chat/agent-dispatch/runner.d.ts +9 -0
  7. package/dist/chat/agent-dispatch/signing.d.ts +5 -0
  8. package/dist/chat/agent-dispatch/store.d.ts +29 -0
  9. package/dist/chat/agent-dispatch/types.d.ts +57 -0
  10. package/dist/chat/agent-dispatch/validation.d.ts +3 -0
  11. package/dist/chat/app/services.d.ts +3 -0
  12. package/dist/chat/config.d.ts +2 -0
  13. package/dist/chat/ingress/workspace-membership.d.ts +1 -2
  14. package/dist/chat/logging.d.ts +2 -0
  15. package/dist/chat/pi/client.d.ts +1 -0
  16. package/dist/chat/plugins/agent-hooks.d.ts +32 -0
  17. package/dist/chat/plugins/logging.d.ts +3 -0
  18. package/dist/chat/plugins/state.d.ts +3 -0
  19. package/dist/chat/respond.d.ts +11 -0
  20. package/dist/chat/runtime/reply-executor.d.ts +2 -0
  21. package/dist/chat/runtime/thread-context.d.ts +2 -0
  22. package/dist/chat/sandbox/egress-proxy.d.ts +8 -1
  23. package/dist/chat/sandbox/sandbox.d.ts +2 -0
  24. package/dist/chat/sandbox/session.d.ts +1 -0
  25. package/dist/chat/sandbox/skill-sync.d.ts +1 -2
  26. package/dist/chat/scheduler/cadence.d.ts +24 -0
  27. package/dist/chat/scheduler/plugin.d.ts +2 -0
  28. package/dist/chat/scheduler/prompt.d.ts +7 -0
  29. package/dist/chat/scheduler/store.d.ts +49 -0
  30. package/dist/chat/scheduler/types.d.ts +86 -0
  31. package/dist/chat/services/auth-pause.d.ts +7 -0
  32. package/dist/chat/services/context-budget.d.ts +14 -0
  33. package/dist/chat/services/context-compaction.d.ts +33 -0
  34. package/dist/chat/services/mcp-auth-orchestration.d.ts +2 -1
  35. package/dist/chat/services/plugin-auth-orchestration.d.ts +2 -1
  36. package/dist/chat/slack/assistant-thread/status-scheduler.d.ts +1 -1
  37. package/dist/chat/slack/ids.d.ts +4 -0
  38. package/dist/chat/slack/reply.d.ts +1 -1
  39. package/dist/chat/slack/user.d.ts +1 -0
  40. package/dist/chat/slack/workspace-context.d.ts +4 -0
  41. package/dist/chat/tools/agent-tools.d.ts +2 -1
  42. package/dist/chat/tools/slack/schedule-tools.d.ts +29 -0
  43. package/dist/chat/tools/types.d.ts +6 -0
  44. package/dist/{chunk-7WTXNEPF.js → chunk-AA5TIFN5.js} +119 -15
  45. package/dist/{chunk-QCHPJ4FD.js → chunk-D3G3YOU4.js} +1 -1
  46. package/dist/chunk-SCQPBJAU.js +21 -0
  47. package/dist/{chunk-YITDDLS3.js → chunk-TTUY467K.js} +13 -9
  48. package/dist/cli/check.js +2 -2
  49. package/dist/cli/init.js +5 -1
  50. package/dist/cli/snapshot-warmup.js +2 -2
  51. package/dist/handlers/agent-dispatch.d.ts +3 -0
  52. package/dist/handlers/heartbeat.d.ts +3 -0
  53. package/dist/handlers/sandbox-egress-proxy.d.ts +6 -1
  54. package/dist/vercel.js +3 -12
  55. package/package.json +8 -2
  56. package/dist/chat/credentials/test-broker.d.ts +0 -19
  57. package/dist/chat/sandbox/eval-gh-stub.d.ts +0 -2
  58. package/dist/chat/sandbox/eval-oauth-stub.d.ts +0 -2
  59. package/dist/chat/sandbox/eval-sentry-stub.d.ts +0 -2
  60. package/dist/chat/sandbox/fault-injection.d.ts +0 -2
package/README.md CHANGED
@@ -25,7 +25,7 @@ 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 `juniorNitro({ plugins: { packages: [...] } })` in `nitro.config.ts` to declare which plugin packages to bundle and load at runtime.
28
+ Use `juniorNitro({ plugins: { packages: [...] } })` in `nitro.config.ts` to declare which plugin packages to bundle and load at runtime. Packages with trusted runtime hooks, such as `@sentry/junior-github`, also need to be registered in app code with `createApp({ plugins: [...] })`.
29
29
 
30
30
  ## Full docs
31
31
 
package/dist/app.d.ts CHANGED
@@ -1,11 +1,18 @@
1
1
  import { Hono } from "hono";
2
2
  import type { PluginConfig } from "@/chat/plugins/types";
3
+ import type { JuniorPlugin } from "@sentry/junior-plugin-api";
3
4
  import type { WaitUntilFn } from "@/handlers/types";
4
5
  export interface JuniorAppOptions {
5
6
  /** Install-wide provider defaults (`provider.key` format). Channel overrides take precedence. */
6
7
  configDefaults?: Record<string, unknown>;
7
- /** Plugin packages and manifest overrides loaded by this app instance. */
8
- plugins?: PluginConfig;
8
+ /**
9
+ * Plugin packages/overrides, or trusted plugin instances loaded by this app.
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
16
  waitUntil?: WaitUntilFn;
10
17
  }
11
18
  /** Create a Hono app with all Junior routes. */