@sentry/junior 0.265.0 → 0.267.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 (76) hide show
  1. package/dist/{actor-tlxzqaRe.js → actor-DZSokpwj.js} +8 -1
  2. package/dist/{adapter-cUkPH3Om.js → adapter-BybMEezj.js} +2 -2
  3. package/dist/{admin-Cf0rDmWV.js → admin-DOs1_EiW.js} +1 -1
  4. package/dist/{agent-runner-C6MwHJEs.js → agent-runner-DgNATN4D.js} +874 -228
  5. package/dist/api/schema.d.ts +202 -23
  6. package/dist/api/schema.js +6 -5
  7. package/dist/api.d.ts +6 -1
  8. package/dist/api.js +130 -1205
  9. package/dist/{app-Csbi9dW7.d.ts → app-DAB3fzyp.d.ts} +21 -3
  10. package/dist/app.d.ts +2 -2
  11. package/dist/app.js +1611 -353
  12. package/dist/{assistant-reply-UPA8vKlC.js → assistant-reply-CT7VcXQe.js} +1 -1
  13. package/dist/{automation-2RbKzpMT.js → automation-CmeFBSEh.js} +42 -14
  14. package/dist/{briefs-DRjx8kQ9.js → briefs-CWKjka7v.js} +5 -5
  15. package/dist/{catalog-runtime-D3qbJlYz.js → catalog-runtime-cMlAI5LY.js} +1 -1
  16. package/dist/cli/chat.js +15 -15
  17. package/dist/cli/check.js +3 -3
  18. package/dist/cli/init.js +0 -1
  19. package/dist/cli/main.js +3 -3
  20. package/dist/cli/plugins.js +4 -4
  21. package/dist/cli/snapshot-create.js +4 -4
  22. package/dist/cli/upgrade.d.ts +1 -1
  23. package/dist/cli/upgrade.js +3 -3
  24. package/dist/{client-DX34VNtH.js → client-BjgbMawj.js} +2 -2
  25. package/dist/{config-BayQ9hHH.js → config-CdB6yJj5.js} +32 -10
  26. package/dist/{connections-mpN5Lsnj.js → connections-RE_65jzK.js} +13 -12
  27. package/dist/{conversation-B0baEwoA.js → conversation-DSo310Ps.js} +14 -3
  28. package/dist/{conversation-privacy-frjQCJa9.js → conversation-privacy-BzgJC5k0.js} +1 -1
  29. package/dist/{credential-sync-CZmyDNdR.js → credential-sync-DhEGEpgq.js} +15 -15
  30. package/dist/{credentialed-C6pKlB1p.js → credentialed-CIGwoLU2.js} +2913 -1026
  31. package/dist/{db-BnRqQ7G5.d.ts → db-Bg-zC3r5.d.ts} +1 -1
  32. package/dist/{executor-CAr7xQr2.js → executor-VYrx_K4w.js} +7 -4
  33. package/dist/{history-AY8rs-FR.js → history-C84mlAwO.js} +2 -1
  34. package/dist/{images-B2yA3HWE.js → images-CecjXAAz.js} +3 -3
  35. package/dist/instrumentation.js +6 -2
  36. package/dist/{job-queue-Cjo6Yg_b.js → job-queue-C0BZSa7r.js} +128 -3
  37. package/dist/{web-input-Y6aXvmfa.js → list-1XQP-o6K.js} +1374 -71
  38. package/dist/{logging-D2QBriUo.js → logging-DuZ1A4ab.js} +11 -3
  39. package/dist/{message-C9ymnpBS.js → message-NKSbbnA6.js} +4 -4
  40. package/dist/nitro.d.ts +1 -1
  41. package/dist/nitro.js +3 -3
  42. package/dist/{oauth-callback-server-BtMf3TPZ.js → oauth-callback-server-qAHLPtml.js} +2 -2
  43. package/dist/{prompt-CvaDdSX3.js → prompt-BW9jFsqZ.js} +1 -1
  44. package/dist/{registry-COTeZ2cV.js → registry-FQutO926.js} +2 -2
  45. package/dist/{resolve-g9PKz9pH.js → resolve-Bk4yeuHy.js} +3 -3
  46. package/dist/{result-COnC42GR.js → result-B9e9ATOU.js} +9 -9
  47. package/dist/{runner-BnTNS7x_.js → runner-C3S2ObH-.js} +11 -11
  48. package/dist/{sandbox-egress-signals-C_IIdLFk.js → sandbox-egress-signals-DqpGzzMB.js} +1 -1
  49. package/dist/{schema-D5Amlzkp.js → schema-X7Fj4fv1.js} +3 -2
  50. package/dist/{service-account-CwvToidT.js → service-account-BQasl-qq.js} +3 -3
  51. package/dist/{service-account-YdYftwV2.js → service-account-Do30HUNv.js} +3 -3
  52. package/dist/{session-stop-CpCUy1ZJ.js → session-stop-DkOjt46_.js} +45 -128
  53. package/dist/{skills-Bb2KaJ3m.js → skills-CQHrwfOa.js} +2 -2
  54. package/dist/{spawn-mbTcrLb3.js → spawn-BHuqN14f.js} +2 -2
  55. package/dist/{store-CqRnaZSq.js → store-6EetVP-m.js} +3 -3
  56. package/dist/{store-CG0VJyye.d.ts → store-B8CABbmR.d.ts} +10 -2
  57. package/dist/store-DvNZIsCr.js +295 -0
  58. package/dist/{task-queue-8XjDIORF.js → task-queue-B0DLgd2P.js} +10 -5
  59. package/dist/{task-runner-6mLmG6g_.js → task-runner-B-PD_JOj.js} +26 -14
  60. package/dist/{tasks-DGbrur6x.js → tasks-0ilmuCux.js} +1440 -46
  61. package/dist/{thread-state-D45lz-oC.js → thread-state-DRmdJ2QN.js} +5 -5
  62. package/dist/{turn-failure-response-CaEPLSBn.js → turn-failure-response-G11cs2gE.js} +9 -9
  63. package/dist/{turn-lifecycle-C35IyRGp.js → turn-lifecycle-OzLIwvi1.js} +2 -2
  64. package/dist/{turn-session-routing-BKx6rfVd.js → turn-session-routing-Dyut9l7Y.js} +1 -1
  65. package/dist/user-input-request-BDFBdF8r.js +116 -0
  66. package/dist/{validation-C0X3CX51.js → validation-CxEmt1id.js} +1 -1
  67. package/dist/{version-BPHgJwnm.js → version-Bapedn4A.js} +1 -1
  68. package/dist/version.js +1 -1
  69. package/dist/{viewer-B2wXNspU.js → viewer-DrN3oC2X.js} +22 -11
  70. package/dist/{work-DMbqK0kT.js → work-DUQoNcqP.js} +52 -51
  71. package/dist/{worker-B-rDJ3XN.js → worker-D1l4Ugk0.js} +30 -19
  72. package/migrations/0064_any_resource_event_triggers.sql +2 -0
  73. package/migrations/meta/0064_snapshot.json +3505 -0
  74. package/migrations/meta/_journal.json +7 -0
  75. package/package.json +20 -5
  76. package/dist/store-DdT74Lvq.js +0 -1424
@@ -1,11 +1,12 @@
1
1
  import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-C37RbDVc.js";
2
- import { t as ConversationStore } from "./store-CG0VJyye.js";
2
+ import { t as ConversationStore } from "./store-B8CABbmR.js";
3
3
  import "./history-BgI33Kie.js";
4
4
  import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
5
5
  import { Hono } from "hono";
6
6
  import "@earendil-works/pi-ai/compat";
7
7
  import "@earendil-works/pi-ai/api/anthropic-messages";
8
8
  import "ai";
9
+ import "@sentry/node";
9
10
  import { z } from "zod";
10
11
  import { Destination, OwnedObjectAnnotation, PluginRegistration, Source, User } from "@sentry/junior-plugin-api";
11
12
  import "@earendil-works/pi-agent-core";
@@ -87,6 +88,11 @@ type ExperimentalFeaturesConfig = Readonly<Partial<Record<ExperimentalFeature, b
87
88
  interface SandboxResourceConfig {
88
89
  vcpus?: number;
89
90
  }
91
+ /** Consumers that pull messages in one process. */
92
+ interface QueueWorker {
93
+ /** Stop taking messages, wait for running ones, and release connections. */
94
+ close(): Promise<void>;
95
+ }
90
96
  declare const pluginTaskQueueMessageSchema: z.ZodObject<{
91
97
  name: z.ZodString;
92
98
  params: z.ZodObject<{
@@ -293,6 +299,18 @@ interface JuniorAppOptions extends BotModelConfig {
293
299
  };
294
300
  waitUntil?: WaitUntilFn;
295
301
  }
302
+ /** A Hono app from `createApp()` that can also run its queue consumers. */
303
+ type JuniorApp = Hono & {
304
+ /**
305
+ * Pull this app's queue messages in this process until `close()`.
306
+ *
307
+ * Only for a queue provider whose consumers pull messages, such as the
308
+ * local BullMQ queue. The dev server runs it in its own worker process, so
309
+ * the Nitro process only sends messages. `close()` also closes the database
310
+ * and state connections of this process.
311
+ */
312
+ startQueueWorker(): Promise<QueueWorker>;
313
+ };
296
314
  /** Create a Hono app with all Junior routes. */
297
- declare function createApp(options?: JuniorAppOptions): Promise<Hono>;
298
- export { ModelProfileInput as i, createApp as n, JuniorDashboardOptions as r, JuniorAppOptions as t };
315
+ declare function createApp(options?: JuniorAppOptions): Promise<JuniorApp>;
316
+ export { ModelProfileInput as a, JuniorDashboardOptions as i, JuniorAppOptions as n, createApp as r, JuniorApp as t };
package/dist/app.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as ModelProfileInput, n as createApp, r as JuniorDashboardOptions, t as JuniorAppOptions } from "./app-Csbi9dW7.js";
1
+ import { a as ModelProfileInput, i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-DAB3fzyp.js";
2
2
  import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-B_0Cr0MO.js";
3
3
  import { t as JUNIOR_VERSION } from "./version-Cc2OFd9G.js";
4
- export { JUNIOR_VERSION, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, type ModelProfileInput, createApp, defineJuniorPlugins };
4
+ export { JUNIOR_VERSION, JuniorApp, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, type ModelProfileInput, createApp, defineJuniorPlugins };