@sentry/junior 0.221.1 → 0.223.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 (65) hide show
  1. package/dist/{agent-CY49A4pN.js → agent-Bzbf92vv.js} +97 -42
  2. package/dist/{agent-hooks-BnZBgDPe.js → agent-hooks-DZU5nsd1.js} +60 -15
  3. package/dist/{agent-runner-BC8iSAfE.js → agent-runner-2VQ9WhkG.js} +6 -5
  4. package/dist/api/schema.d.ts +209 -11
  5. package/dist/api/schema.js +4 -4
  6. package/dist/api.js +18 -515
  7. package/dist/{app-BYD2Nyji.d.ts → app-BbSD6EtD.d.ts} +1 -1
  8. package/dist/app.d.ts +1 -1
  9. package/dist/app.js +241 -39
  10. package/dist/{auth-pause-state-CJwPs1cT.js → auth-pause-state-Bn2vX4PA.js} +41 -7
  11. package/dist/{briefs-BSOhy23c.js → briefs-BJPfCrlT.js} +6 -6
  12. package/dist/{catalog-runtime-0oMD2jas.js → catalog-runtime-BthunUDD.js} +1 -1
  13. package/dist/{checkpoint-Bl47qAIY.js → checkpoint-Deu-OVb3.js} +11 -7
  14. package/dist/cli/chat.js +13 -13
  15. package/dist/cli/check.js +3 -3
  16. package/dist/cli/main.js +1 -1
  17. package/dist/cli/plugins.js +3 -3
  18. package/dist/cli/snapshot-create.js +3 -3
  19. package/dist/cli/upgrade.js +3 -3
  20. package/dist/{client-BrThxuRI.js → client-DjC6-6iU.js} +56 -6
  21. package/dist/{config-CEuC6CFj.js → config-CtoUVs72.js} +6 -7
  22. package/dist/{conversation-BSRGzJmY.js → conversation-1HUoZr2l.js} +75 -4
  23. package/dist/{conversation-privacy-aHn1OwXL.js → conversation-privacy-xS1t92xa.js} +1 -1
  24. package/dist/{credential-sync-Dht95TJQ.js → credential-sync-CKdXEUDO.js} +180 -31
  25. package/dist/{execution-stats-D9m2kmmg.js → execution-stats-CrXs9vSH.js} +3 -3
  26. package/dist/{executor-3IasVOqK.js → executor-AOhG9X1t.js} +1 -1
  27. package/dist/history-yaSjGMD_.d.ts +65 -0
  28. package/dist/instrumentation.js +2 -2
  29. package/dist/{job-queue-36liupTq.js → job-queue-CNd9cpIy.js} +1 -1
  30. package/dist/{logging-gR24QCo_.js → logging-DiN3o3nB.js} +1 -1
  31. package/dist/nitro.d.ts +1 -1
  32. package/dist/nitro.js +3 -3
  33. package/dist/{oauth-callback-server-BvNIWVA3.js → oauth-callback-server-Ca0VLUEw.js} +2 -2
  34. package/dist/{pending-auth-Cl4BsopG.js → pending-auth-D7vmttn_.js} +2 -2
  35. package/dist/{profile-VmUpQuOm.js → profile-BsNrw8lj.js} +4 -4
  36. package/dist/{prompt-BkaHwBW0.js → prompt-90miy8VV.js} +1 -1
  37. package/dist/{registry-BATk1X_v.js → registry-Dankt-Pl.js} +1 -1
  38. package/dist/reporting-window-DbUqng0P.js +229 -0
  39. package/dist/{resolve-Cf79l1H8.js → resolve-B38CpJe2.js} +2 -2
  40. package/dist/{runner-DNN4EPj_.js → runner-Ck5rEjCm.js} +21 -10
  41. package/dist/{sandbox-egress-signals-C-HUJW1G.js → sandbox-egress-signals-BOfFkvly.js} +1 -1
  42. package/dist/{schema-YPJXVcOW.js → schema-RpbW5Od2.js} +5 -128
  43. package/dist/{short-title-Cy3D8vg1.js → short-title-BHd_jUFX.js} +2 -2
  44. package/dist/{skills-DMQkR1Yu.js → skills-DbP4TDft.js} +2 -2
  45. package/dist/{spawn-BHk7RpYw.js → spawn-DzXc_PKO.js} +2 -2
  46. package/dist/{stats-8Bzht8zO.js → stats-pNGp3G5q.js} +56 -15
  47. package/dist/{task-queue-Cm4FhC0n.js → task-queue-Cy9y1foT.js} +3 -3
  48. package/dist/{task-runner-dQwOhCYs.js → task-runner-DI1FBJFJ.js} +8 -8
  49. package/dist/{thread-state-D0Ktlch_.js → thread-state-DXgxOYpZ.js} +5 -5
  50. package/dist/{turn-execution-BfLZfabf.js → turn-execution-BNOXrZ-M.js} +3 -3
  51. package/dist/{turn-lifecycle-D75pWL8e.js → turn-lifecycle-Bjf6y2GO.js} +1 -1
  52. package/dist/{validation-D5fdtuzG.js → validation-D5CIslEu.js} +1 -1
  53. package/dist/{version-DErORHQC.js → version-_ZQFlslB.js} +1 -1
  54. package/dist/version.js +1 -1
  55. package/dist/{web-authorization-IHMPbDay.js → web-authorization-6mmfS_o-.js} +1 -1
  56. package/dist/web-input-BJpWm6go.js +899 -0
  57. package/dist/{work-CaaSjlNk.js → work-DvIlJR3C.js} +9 -9
  58. package/dist/{worker-Eom9CfBl.js → worker-D1qidg-Y.js} +5 -5
  59. package/migrations/0044_event_automation_channel_destinations.sql +36 -0
  60. package/migrations/meta/0044_snapshot.json +3473 -0
  61. package/migrations/meta/_journal.json +7 -0
  62. package/package.json +4 -4
  63. package/dist/history-ClE4toxe.d.ts +0 -32
  64. package/dist/reporting-schema-DosTN__Q.js +0 -105
  65. package/dist/web-input-DskRJhrK.js +0 -392
@@ -1,15 +1,16 @@
1
- import { F as isRecord$1, I as toOptionalNumber, L as toOptionalString } from "./logging-gR24QCo_.js";
2
- import { a as getChatConfig } from "./config-CEuC6CFj.js";
1
+ import { F as isRecord$1, I as toOptionalNumber, L as toOptionalString } from "./logging-DiN3o3nB.js";
2
+ import { a as getChatConfig } from "./config-CtoUVs72.js";
3
3
  import { _ as parseSlackMessageTs, d as parseStoredSlackActor, h as parseSlackTeamId, p as parseSlackChannelId } from "./context-Bplcgypl.js";
4
- import { Gt as getDb, J as withSlackRetries, U as getSlackClient, Wt as getConversationStore, fn as sameDestination, pt as JUNIOR_THREAD_STATE_TTL_MS, u as getPlugins, un as parseDestination } from "./agent-hooks-BnZBgDPe.js";
4
+ import { Ft as saveObjectAnnotations, J as withSlackRetries, Kt as getConversationStore, U as getSlackClient, fn as parseDestination, ht as getDashboardTaskLink, mn as sameDestination, pt as JUNIOR_THREAD_STATE_TTL_MS, qt as getDb, u as getPlugins } from "./agent-hooks-DZU5nsd1.js";
5
5
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
6
- import { E as juniorConversations, a as juniorSchedulerRuns, c as juniorStats, l as juniorEventAutomations, o as juniorSchedulerTasks, w as juniorAttachments } from "./executor-3IasVOqK.js";
7
- import { C as getDefaultRedisStateAdapterFor, w as getStateAdapter } from "./profile-VmUpQuOm.js";
6
+ import { E as juniorConversations, a as juniorSchedulerRuns, c as juniorStats, l as juniorEventAutomations, o as juniorSchedulerTasks, w as juniorAttachments } from "./executor-AOhG9X1t.js";
7
+ import { t as fallbackShortTitle } from "./short-title-BHd_jUFX.js";
8
+ import { C as getDefaultRedisStateAdapterFor, w as getStateAdapter } from "./profile-BsNrw8lj.js";
8
9
  import "./vercel-queue-DIkVcfK4.js";
9
10
  import { z } from "zod";
10
11
  import { createHash, randomUUID } from "node:crypto";
11
12
  import { and, asc, desc, eq, gte, inArray, isNotNull, isNull, lte, ne, notInArray, or, sql } from "drizzle-orm";
12
- import { actorUserIdSchema, destinationSchema, destinationVisibilitySchema, eventMatchSchema, eventMatches, eventTypeSchema, normalizeEventIdentifier, slackDestinationSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
13
+ import { actorUserIdSchema, destinationSchema, destinationVisibilitySchema, eventMatchSchema, eventMatches, eventTypeSchema, normalizeEventIdentifier, ownedObjectAnnotationSchema, slackDestinationSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
13
14
  //#region src/chat/tools/execution/tool-input-error.ts
14
15
  /** Thrown when a tool fails due to invalid model/user input, not a system error. */
15
16
  var ToolInputError = class extends Error {
@@ -1640,21 +1641,28 @@ const eventAutomationTriggerSchema = z.object({
1640
1641
  identifier: z.string().min(1).max(300),
1641
1642
  resourceType: z.string().min(1)
1642
1643
  }).strict();
1644
+ /** Event automations target a Slack channel or DM, never a message thread. */
1645
+ const eventAutomationDestinationSchema = slackDestinationSchema.omit({ threadTs: true });
1646
+ const eventAutomationOutcomeSchema = taskOutcomeSchema.extend({ destination: eventAutomationDestinationSchema });
1643
1647
  /** Validate one persisted event automation. */
1644
1648
  const eventAutomationSchema = z.object({
1645
1649
  id: z.string().min(1),
1646
1650
  createdAtMs: z.number().finite(),
1647
1651
  createdBy: eventAutomationPrincipalSchema,
1648
1652
  credentialMode: z.enum(["system", "creator"]),
1649
- destination: slackDestinationSchema,
1653
+ destination: eventAutomationDestinationSchema,
1650
1654
  destinationVisibility: destinationVisibilitySchema,
1651
1655
  /** Explicit visible effects after successful work. An empty list is silent. */
1652
- outcomes: z.array(taskOutcomeSchema).max(5),
1656
+ outcomes: z.array(eventAutomationOutcomeSchema).max(5),
1653
1657
  task: z.object({ text: z.string().min(1) }).strict(),
1654
1658
  trigger: eventAutomationTriggerSchema
1655
1659
  }).strict();
1656
1660
  //#endregion
1657
1661
  //#region src/chat/event-automations/store.ts
1662
+ const retainedEventAutomationSchema = eventAutomationSchema.extend({
1663
+ destination: slackDestinationSchema,
1664
+ outcomes: z.array(taskOutcomeSchema).max(5)
1665
+ });
1658
1666
  /** JSON task payload must not carry SQL-backed columns. */
1659
1667
  function eventAutomationJsonPayload(task) {
1660
1668
  const { status: _status, title: _title, ...payload } = task;
@@ -1667,10 +1675,19 @@ function parseTask(row) {
1667
1675
  action: "send_message",
1668
1676
  destination: raw.destination
1669
1677
  }];
1670
- const payload = eventAutomationSchema.parse(raw);
1678
+ const retained = retainedEventAutomationSchema.parse(raw);
1679
+ const { threadTs: _threadTs, ...destination } = retained.destination;
1671
1680
  const title = row.title?.trim();
1672
1681
  return {
1673
- ...payload,
1682
+ ...retained,
1683
+ destination,
1684
+ outcomes: retained.outcomes.map((outcome) => {
1685
+ const { threadTs: _threadTs, ...destination } = outcome.destination;
1686
+ return {
1687
+ ...outcome,
1688
+ destination
1689
+ };
1690
+ }),
1674
1691
  status: row.status === "deleted" ? "deleted" : "active",
1675
1692
  ...title ? { title } : void 0
1676
1693
  };
@@ -1885,6 +1902,7 @@ function moveTaskOutcomes(outcomes, currentDestination, nextDestination) {
1885
1902
  const compactEventAutomationResultSchema = z.object({
1886
1903
  id: z.string().min(1),
1887
1904
  title: z.string().min(1).nullable(),
1905
+ dashboardUrl: z.string().url().nullable(),
1888
1906
  instruction: z.string().min(1),
1889
1907
  trigger: z.object({
1890
1908
  namespace: z.string().min(1),
@@ -1910,7 +1928,10 @@ const compactEventAutomationResultSchema = z.object({
1910
1928
  }).strict()
1911
1929
  }).strict();
1912
1930
  /** Validate one successful event-automation mutation result. */
1913
- const eventAutomationToolResultSchema = juniorToolOutputSchema.extend({ automation: compactEventAutomationResultSchema }).strict();
1931
+ const eventAutomationToolResultSchema = juniorToolOutputSchema.extend({
1932
+ automation: compactEventAutomationResultSchema,
1933
+ objectCards: z.array(ownedObjectAnnotationSchema)
1934
+ }).strict();
1914
1935
  /** Validate one successful event-automation list result. */
1915
1936
  const eventAutomationListToolResultSchema = juniorToolOutputSchema.extend({
1916
1937
  automations: z.array(compactEventAutomationResultSchema),
@@ -1946,8 +1967,7 @@ function requireEventAutomationSlackContext(context) {
1946
1967
  destination: {
1947
1968
  platform: "slack",
1948
1969
  teamId: context.source.teamId,
1949
- channelId: context.source.channelId,
1950
- threadTs: context.source.threadTs ?? context.source.messageTs
1970
+ channelId: context.source.channelId
1951
1971
  },
1952
1972
  source: context.source
1953
1973
  };
@@ -1981,6 +2001,7 @@ function compactEventAutomation(task, catalog, requesterSlackUserId) {
1981
2001
  return compactEventAutomationResultSchema.parse({
1982
2002
  id: task.id,
1983
2003
  title: task.title?.trim() || null,
2004
+ dashboardUrl: getDashboardTaskLink(task.id) ?? null,
1984
2005
  instruction: task.task.text,
1985
2006
  trigger: {
1986
2007
  namespace: task.trigger.namespace,
@@ -2007,8 +2028,28 @@ function compactEventAutomation(task, catalog, requesterSlackUserId) {
2007
2028
  });
2008
2029
  }
2009
2030
  /** Return the standard successful event-automation tool result. */
2010
- function eventAutomationToolResult(task, catalog, requesterSlackUserId) {
2011
- return { automation: compactEventAutomation(task, catalog, requesterSlackUserId) };
2031
+ async function eventAutomationToolResult(conversationId, task, catalog, requesterSlackUserId) {
2032
+ const automation = compactEventAutomation(task, catalog, requesterSlackUserId);
2033
+ const filters = Object.entries(task.trigger.match ?? {}).map(([key, value]) => `${key} = ${JSON.stringify(value)}`);
2034
+ const title = automation.title ?? fallbackShortTitle(task.task.text, "Event automation");
2035
+ return {
2036
+ automation,
2037
+ objectCards: await saveObjectAnnotations(conversationId, "junior", [{
2038
+ kind: "object",
2039
+ objectType: "automation",
2040
+ label: title,
2041
+ key: task.id,
2042
+ title,
2043
+ url: automation.dashboardUrl,
2044
+ description: task.task.text,
2045
+ trigger: [
2046
+ task.trigger.label,
2047
+ task.trigger.events.join(", "),
2048
+ ...filters
2049
+ ].join(" · "),
2050
+ warning: !automation.trigger.available ? "Trigger unavailable. This automation cannot receive events." : void 0
2051
+ }])
2052
+ };
2012
2053
  }
2013
2054
  //#endregion
2014
2055
  //#region src/chat/scheduled-automations/types.ts
@@ -1,6 +1,6 @@
1
- import { f as logWarn } from "./logging-gR24QCo_.js";
1
+ import { f as logWarn } from "./logging-DiN3o3nB.js";
2
2
  import { a as signQueueMessage, i as QUEUE_SIGNATURE_MAX_AGE_MS, o as verifyQueueMessage, s as createVercelQueueClient } from "./vercel-queue-DIkVcfK4.js";
3
- import { o as runWithTurnRequestDeadline } from "./job-queue-36liupTq.js";
3
+ import { o as runWithTurnRequestDeadline } from "./job-queue-CNd9cpIy.js";
4
4
  import { z } from "zod";
5
5
  import { createHash } from "node:crypto";
6
6
  import { handleCallback, registerDevConsumer } from "@vercel/queue";
@@ -110,7 +110,7 @@ function pluginTaskCallback() {
110
110
  maxDeliveries: PLUGIN_TASK_MAX_DELIVERIES,
111
111
  onRejected: logPluginTaskQueueMessageRejected,
112
112
  run: async (message) => {
113
- const { processPluginTask } = await import("./task-runner-dQwOhCYs.js").then((n) => n.r);
113
+ const { processPluginTask } = await import("./task-runner-DI1FBJFJ.js").then((n) => n.r);
114
114
  await processPluginTask(message);
115
115
  },
116
116
  topic: PLUGIN_TASK_QUEUE_TOPIC,
@@ -1,12 +1,12 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
2
  import { _ as parseSlackMessageTs, r as credentialSubjectSchema } from "./context-Bplcgypl.js";
3
- import { At as createPluginConversationEvents, Gt as getDb, Q as readActorIdentity, Wt as getConversationStore, _t as createPluginState, bt as createPluginLogger, p as coreTaskRegistrations, pt as JUNIOR_THREAD_STATE_TTL_MS, u as getPlugins, vt as createPluginEmbedder, yt as createPluginModel } from "./agent-hooks-BnZBgDPe.js";
4
- import { G as sameActorIdentity } from "./conversation-BSRGzJmY.js";
5
- import { E as normalizeToolNameFromResult, O as stripRuntimeTurnContext, T as isToolResultMessage, Y as hydrateConversationMessages, _ as getPiMessageRole, s as getTurnRecord, w as isToolResultError, x as instructionTextForProjection } from "./checkpoint-Bl47qAIY.js";
6
- import { w as getStateAdapter } from "./profile-VmUpQuOm.js";
7
- import { u as recordAutomationExecution } from "./execution-stats-D9m2kmmg.js";
8
- import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-D0Ktlch_.js";
9
- import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-Cm4FhC0n.js";
3
+ import { At as createPluginConversationEvents, Kt as getConversationStore, Q as readActorIdentity, _t as createPluginState, bt as createPluginLogger, p as coreTaskRegistrations, pt as JUNIOR_THREAD_STATE_TTL_MS, qt as getDb, u as getPlugins, vt as createPluginEmbedder, yt as createPluginModel } from "./agent-hooks-DZU5nsd1.js";
4
+ import { X as sameActorIdentity } from "./conversation-1HUoZr2l.js";
5
+ import { E as normalizeToolNameFromResult, O as stripRuntimeTurnContext, T as isToolResultMessage, Y as hydrateConversationMessages, _ as getPiMessageRole, s as getTurnRecord, w as isToolResultError, x as instructionTextForProjection } from "./checkpoint-Deu-OVb3.js";
6
+ import { w as getStateAdapter } from "./profile-BsNrw8lj.js";
7
+ import { u as recordAutomationExecution } from "./execution-stats-CrXs9vSH.js";
8
+ import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-DXgxOYpZ.js";
9
+ import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-Cy9y1foT.js";
10
10
  import { z } from "zod";
11
11
  import { createHash } from "node:crypto";
12
12
  import { destinationSchema, destinationVisibilitySchema, isSlackDestination, pluginRunContextSchema, replyAttributionSchema, sourceSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
@@ -345,7 +345,7 @@ function slackSourceForDestination(args) {
345
345
  * Reads parent Conversations when this Conversation has no Destination.
346
346
  */
347
347
  async function resolveConversationRouting(args) {
348
- const conversationStore = args.conversationStore ?? (await import("./agent-hooks-BnZBgDPe.js").then((n) => n.Vt)).getConversationStore();
348
+ const conversationStore = args.conversationStore ?? (await import("./agent-hooks-DZU5nsd1.js").then((n) => n.Ut)).getConversationStore();
349
349
  const chain = await loadConversationChain(args.conversationId, conversationStore);
350
350
  let destination;
351
351
  let source;
@@ -1,9 +1,9 @@
1
- import { F as isRecord, I as toOptionalNumber, L as toOptionalString } from "./logging-gR24QCo_.js";
2
- import { Gt as getDb, pt as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-BnZBgDPe.js";
1
+ import { F as isRecord, I as toOptionalNumber, L as toOptionalString } from "./logging-DiN3o3nB.js";
2
+ import { pt as JUNIOR_THREAD_STATE_TTL_MS, qt as getDb } from "./agent-hooks-DZU5nsd1.js";
3
3
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
4
- import { u as juniorLocationConfigurations } from "./executor-3IasVOqK.js";
5
- import { X as persistConversationMessages } from "./checkpoint-Bl47qAIY.js";
6
- import { w as getStateAdapter } from "./profile-VmUpQuOm.js";
4
+ import { u as juniorLocationConfigurations } from "./executor-AOhG9X1t.js";
5
+ import { X as persistConversationMessages } from "./checkpoint-Deu-OVb3.js";
6
+ import { w as getStateAdapter } from "./profile-BsNrw8lj.js";
7
7
  import { z } from "zod";
8
8
  import { randomUUID } from "node:crypto";
9
9
  import { and, eq, sql } from "drizzle-orm";
@@ -1,6 +1,6 @@
1
- import { Ht as getConversationEventStore } from "./agent-hooks-BnZBgDPe.js";
2
- import { n as runAgentWithTimeout } from "./agent-runner-BC8iSAfE.js";
3
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-D75pWL8e.js";
1
+ import { Wt as getConversationEventStore } from "./agent-hooks-DZU5nsd1.js";
2
+ import { n as runAgentWithTimeout } from "./agent-runner-2VQ9WhkG.js";
3
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-Bjf6y2GO.js";
4
4
  //#region src/chat/runtime/turn-execution.ts
5
5
  /** An error thrown while the agent advances a Run. */
6
6
  var AgentRunError = class extends Error {
@@ -1,4 +1,4 @@
1
- import { Ht as getConversationEventStore } from "./agent-hooks-BnZBgDPe.js";
1
+ import { Wt as getConversationEventStore } from "./agent-hooks-DZU5nsd1.js";
2
2
  //#region src/chat/conversations/turn-lifecycle.ts
3
3
  /** Persist correlated turn lifecycle facts with retry-safe terminal exclusion. */
4
4
  var ConversationTurnLifecycleService = class {
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { n as pluginCatalogRuntime } from "./catalog-runtime-0oMD2jas.js";
2
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-BthunUDD.js";
3
3
  import { isDeepStrictEqual } from "node:util";
4
4
  //#region src/chat/plugins/validation.ts
5
5
  var validation_exports = /* @__PURE__ */ __exportAll({
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.221.1";
2
+ var version = "0.223.0";
3
3
  //#endregion
4
4
  //#region src/version.ts
5
5
  /** Installed Junior package version, or `unknown` when package metadata is unavailable. */
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as JUNIOR_VERSION } from "./version-DErORHQC.js";
1
+ import { t as JUNIOR_VERSION } from "./version-_ZQFlslB.js";
2
2
  export { JUNIOR_VERSION };
@@ -1,4 +1,4 @@
1
- import { w as getStateAdapter } from "./profile-VmUpQuOm.js";
1
+ import { w as getStateAdapter } from "./profile-BsNrw8lj.js";
2
2
  import { randomUUID } from "node:crypto";
3
3
  //#region src/chat/conversations/web-authorization.ts
4
4
  const WEB_AUTHORIZATION_PREFIX = "junior:web_authorization:v1";