@sentry/junior 0.115.0 → 0.116.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 (111) hide show
  1. package/dist/{agent-hooks-4EUUXP2F.js → agent-hooks-67NFITDH.js} +9 -9
  2. package/dist/api/conversations/detail.d.ts +18 -0
  3. package/dist/api/conversations/event-page.d.ts +1 -1
  4. package/dist/api/conversations/events.d.ts +1 -1
  5. package/dist/api/people/profile.d.ts +2 -2
  6. package/dist/api/people/shared.d.ts +1 -1
  7. package/dist/api/personal-tokens/create.d.ts +11 -0
  8. package/dist/api/personal-tokens/list.d.ts +12 -0
  9. package/dist/api/personal-tokens/revoke.d.ts +5 -0
  10. package/dist/api/personal-tokens/routes.d.ts +4 -0
  11. package/dist/api/plugins.d.ts +0 -1
  12. package/dist/api/route.d.ts +1 -1
  13. package/dist/api/schema/conversation.d.ts +18 -0
  14. package/dist/api/schema/person.d.ts +3 -3
  15. package/dist/api/schema/personal-token.d.ts +38 -0
  16. package/dist/api/schema.d.ts +2 -0
  17. package/dist/api/schema.js +15 -3
  18. package/dist/api.d.ts +1 -0
  19. package/dist/api.js +179 -39
  20. package/dist/app.js +1035 -853
  21. package/dist/{catalog-runtime-Y32UEQLB.js → catalog-runtime-CWZY6GTH.js} +5 -5
  22. package/dist/chat/agent/request.d.ts +1 -0
  23. package/dist/chat/agent/resume.d.ts +1 -0
  24. package/dist/chat/agent/sandbox.d.ts +1 -0
  25. package/dist/chat/agent/tools.d.ts +1 -0
  26. package/dist/chat/agent-dispatch/context.d.ts +2 -0
  27. package/dist/chat/agent-dispatch/heartbeat.d.ts +11 -5
  28. package/dist/chat/agent-dispatch/signing.d.ts +14 -5
  29. package/dist/chat/agent-dispatch/store.d.ts +36 -15
  30. package/dist/chat/agent-dispatch/types.d.ts +23 -10
  31. package/dist/chat/agent-dispatch/work.d.ts +58 -0
  32. package/dist/chat/app/factory.d.ts +12 -3
  33. package/dist/chat/conversations/history.d.ts +285 -290
  34. package/dist/chat/conversations/projection.d.ts +2 -2
  35. package/dist/chat/mcp/tool-manager.d.ts +2 -1
  36. package/dist/chat/pi/conversation-events.d.ts +6 -2
  37. package/dist/chat/plugins/annotations.d.ts +8 -0
  38. package/dist/chat/plugins/registry.d.ts +0 -3
  39. package/dist/chat/plugins/types.d.ts +0 -2
  40. package/dist/chat/runtime/agent-continue-runner.d.ts +4 -0
  41. package/dist/chat/runtime/reply-executor.d.ts +6 -1
  42. package/dist/chat/runtime/slack-resume.d.ts +5 -1
  43. package/dist/chat/runtime/turn-input.d.ts +3 -0
  44. package/dist/chat/sandbox/sandbox.d.ts +2 -1
  45. package/dist/chat/sandbox/session.d.ts +2 -11
  46. package/dist/chat/sandbox/workspace.d.ts +10 -2
  47. package/dist/chat/services/turn-session-record.d.ts +14 -1
  48. package/dist/chat/slack/dispatch-turn.d.ts +25 -0
  49. package/dist/chat/state/turn-session.d.ts +11 -0
  50. package/dist/chat/tool-support/text-range-result.d.ts +3 -0
  51. package/dist/chat/tool-support/zod-tool.d.ts +1 -0
  52. package/dist/chat/tools/definition.d.ts +3 -10
  53. package/dist/chat/tools/query-conversation-events.d.ts +68 -0
  54. package/dist/chat/tools/sandbox/file-utils.d.ts +8 -1
  55. package/dist/chat/tools/sandbox/find-files.d.ts +2 -1
  56. package/dist/chat/tools/sandbox/grep.d.ts +2 -1
  57. package/dist/{chunk-6FKLPVF3.js → chunk-25GU5B5E.js} +1 -1
  58. package/dist/{chunk-PVZHG2XZ.js → chunk-3H45VOBZ.js} +32 -7
  59. package/dist/{chunk-NVUQSFWX.js → chunk-3JOGUT46.js} +3 -15
  60. package/dist/{chunk-G5SX4UPR.js → chunk-4DD6AOCG.js} +2 -2
  61. package/dist/{chunk-67CVNDJ7.js → chunk-53ZKTQO6.js} +1 -1
  62. package/dist/{chunk-43RYMWJ2.js → chunk-5UNB623T.js} +809 -213
  63. package/dist/{chunk-2QG4MZQ7.js → chunk-6RQ5GCWH.js} +2 -2
  64. package/dist/{chunk-MIAKQNYX.js → chunk-6ZK6FZIV.js} +1 -1
  65. package/dist/{chunk-6V762AB4.js → chunk-BXLS3I4W.js} +1 -1
  66. package/dist/{chunk-CWEZEPD4.js → chunk-CI3VK7X5.js} +68 -2
  67. package/dist/{chunk-EW5MLKT5.js → chunk-JZPQ5K4V.js} +1 -55
  68. package/dist/{chunk-HWCQRGLL.js → chunk-KBNDFU6J.js} +105 -37
  69. package/dist/{chunk-FHC4JUSF.js → chunk-MGH5ADQS.js} +1 -2
  70. package/dist/{chunk-TVE25LPW.js → chunk-N7TMYLF2.js} +1 -1
  71. package/dist/{chunk-CEYOL62C.js → chunk-OF5FODBL.js} +120 -20
  72. package/dist/{chunk-6OPTF4BQ.js → chunk-PE44LDDQ.js} +0 -1
  73. package/dist/{chunk-LYA2AB5G.js → chunk-PGKWXHYJ.js} +8 -52
  74. package/dist/{chunk-SYJT7AKB.js → chunk-PZGPCOSD.js} +1 -1
  75. package/dist/{chunk-JQFJO5WH.js → chunk-RXRQJF7Y.js} +74 -17
  76. package/dist/{chunk-G36V2YGB.js → chunk-TC4ZEM2D.js} +33 -1
  77. package/dist/{chunk-AGLQYELI.js → chunk-UEVLIYK5.js} +170 -170
  78. package/dist/{chunk-YCLO7D7M.js → chunk-VKZ6WVAY.js} +77 -26
  79. package/dist/{chunk-RAVKCKXA.js → chunk-VZCSLYCE.js} +20 -5
  80. package/dist/{chunk-SG5WAA7H.js → chunk-WKU7TY22.js} +0 -3
  81. package/dist/cli/chat.js +23 -23
  82. package/dist/cli/check.js +6 -6
  83. package/dist/cli/plugins.js +13 -13
  84. package/dist/cli/snapshot-warmup.js +8 -8
  85. package/dist/cli/upgrade.js +7 -7
  86. package/dist/db/schema/api-tokens.d.ts +160 -0
  87. package/dist/db/schema/conversation-annotations.d.ts +142 -0
  88. package/dist/db/schema.d.ts +305 -1
  89. package/dist/{db-KBSJHAZU.js → db-57FHVGGQ.js} +6 -6
  90. package/dist/handlers/agent-dispatch.d.ts +7 -3
  91. package/dist/instrumentation.js +2 -2
  92. package/dist/nitro.js +5 -5
  93. package/dist/{oauth-callback-server-EYRMJTCS.js → oauth-callback-server-PAQRPXZX.js} +18 -18
  94. package/dist/personal-tokens/store.d.ts +27 -0
  95. package/dist/{plugins-PZMDS7AT.js → plugins-IUJA4VBU.js} +1 -1
  96. package/dist/reporting-schema.d.ts +0 -2
  97. package/dist/{runner-RQGZ5Z2S.js → runner-4ISZYJEX.js} +12 -12
  98. package/dist/{skills-JJQIE3BT.js → skills-UE2KXQMB.js} +6 -6
  99. package/dist/{validation-MZ47PZP5.js → validation-PO5LHTJT.js} +6 -6
  100. package/dist/version.js +1 -1
  101. package/migrations/0008_sticky_rage.sql +14 -0
  102. package/migrations/0009_slippery_harrier.sql +12 -0
  103. package/migrations/0010_native_conversation_history.sql +142 -0
  104. package/migrations/meta/0008_snapshot.json +1076 -0
  105. package/migrations/meta/0009_snapshot.json +1146 -0
  106. package/migrations/meta/0010_snapshot.json +1190 -0
  107. package/migrations/meta/_journal.json +22 -1
  108. package/package.json +6 -7
  109. package/dist/chat/agent-dispatch/runner.d.ts +0 -13
  110. package/dist/chat/capabilities/catalog.d.ts +0 -16
  111. package/dist/{chunk-KNFROR7R.js → chunk-5I6ORJUY.js} +1 -1
@@ -1,22 +1,23 @@
1
1
  import {
2
2
  SANDBOX_WORKSPACE_ROOT,
3
3
  getStateAdapter
4
- } from "./chunk-67CVNDJ7.js";
4
+ } from "./chunk-53ZKTQO6.js";
5
5
  import {
6
+ createPluginAnnotations,
6
7
  isConversationChannel,
7
8
  isConversationScopedChannel,
8
9
  isDmChannel,
9
10
  normalizeSlackConversationId
10
- } from "./chunk-CWEZEPD4.js";
11
+ } from "./chunk-CI3VK7X5.js";
11
12
  import {
12
13
  getDb
13
- } from "./chunk-HWCQRGLL.js";
14
+ } from "./chunk-KBNDFU6J.js";
14
15
  import {
15
16
  botConfig,
16
17
  completeObject,
17
18
  embedTexts,
18
19
  standardModelId
19
- } from "./chunk-SYJT7AKB.js";
20
+ } from "./chunk-PZGPCOSD.js";
20
21
  import {
21
22
  isActorUserId,
22
23
  parseActorUserId
@@ -25,7 +26,7 @@ import {
25
26
  logException,
26
27
  logInfo,
27
28
  logWarn
28
- } from "./chunk-NVUQSFWX.js";
29
+ } from "./chunk-3JOGUT46.js";
29
30
  import {
30
31
  parseSlackChannelReferenceId,
31
32
  parseSlackMessageTs,
@@ -687,6 +688,11 @@ function getPluginTools(context) {
687
688
  ...dashboardConversationUrl ? { conversationLink: { url: dashboardConversationUrl } } : {},
688
689
  ...credentialSubject ? { credentialSubject } : {}
689
690
  } : void 0;
691
+ const annotations = context.conversationId ? createPluginAnnotations({
692
+ conversationId: context.conversationId,
693
+ db: getDb(),
694
+ plugin: pluginName
695
+ }) : void 0;
690
696
  let pluginContext;
691
697
  if (context.source.platform === "slack") {
692
698
  if (context.destination.platform !== "slack") {
@@ -698,6 +704,7 @@ function getPluginTools(context) {
698
704
  ...basePluginContext(plugin),
699
705
  actor: context.actor?.platform === "slack" ? context.actor : void 0,
700
706
  conversationId: context.conversationId,
707
+ ...annotations ? { annotations } : {},
701
708
  destination: context.destination,
702
709
  slack: slackContext,
703
710
  source: context.source,
@@ -717,6 +724,7 @@ function getPluginTools(context) {
717
724
  ...basePluginContext(plugin),
718
725
  actor: context.actor?.platform === "local" ? context.actor : void 0,
719
726
  conversationId: context.conversationId,
727
+ ...annotations ? { annotations } : {},
720
728
  destination: context.destination,
721
729
  source: context.source,
722
730
  userText: context.userText,
@@ -789,6 +797,13 @@ function getPluginRoutes(options) {
789
797
  }
790
798
  const pluginRoutes = hook({
791
799
  ...basePluginContext(plugin),
800
+ annotations: {
801
+ forConversation: (conversationId) => createPluginAnnotations({
802
+ conversationId,
803
+ db: getDb(),
804
+ plugin: pluginName
805
+ })
806
+ },
792
807
  resourceEvents: {
793
808
  async publish(event) {
794
809
  const parsed = resourceEventSchema.parse(event);
@@ -8,9 +8,6 @@ function cloneInlineManifests(registrations) {
8
8
  {
9
9
  manifest: {
10
10
  ...structuredClone(plugin.manifest),
11
- capabilities: plugin.manifest.capabilities?.map(
12
- (capability) => capability.includes(".") ? capability : `${plugin.manifest.name}.${capability}`
13
- ) ?? [],
14
11
  configKeys: plugin.manifest.configKeys?.map(
15
12
  (key) => key.includes(".") ? key : `${plugin.manifest.name}.${key}`
16
13
  ) ?? [],
package/dist/cli/chat.js CHANGED
@@ -1,40 +1,40 @@
1
1
  import {
2
2
  createAgentRunner,
3
3
  executeAgentRun
4
- } from "../chunk-43RYMWJ2.js";
4
+ } from "../chunk-5UNB623T.js";
5
5
  import "../chunk-DIB4GX3G.js";
6
- import "../chunk-LYA2AB5G.js";
7
- import "../chunk-CEYOL62C.js";
6
+ import "../chunk-PGKWXHYJ.js";
7
+ import "../chunk-OF5FODBL.js";
8
8
  import "../chunk-HDSDCEPK.js";
9
- import "../chunk-PVZHG2XZ.js";
9
+ import "../chunk-3H45VOBZ.js";
10
10
  import "../chunk-MU6HHZEN.js";
11
11
  import "../chunk-PDO5BLNM.js";
12
12
  import "../chunk-UIE3R5XU.js";
13
13
  import {
14
14
  loadAppPluginSet
15
15
  } from "../chunk-Y2CM7HXH.js";
16
- import "../chunk-RAVKCKXA.js";
17
- import "../chunk-67CVNDJ7.js";
18
- import "../chunk-CWEZEPD4.js";
19
- import "../chunk-HWCQRGLL.js";
20
- import "../chunk-JQFJO5WH.js";
16
+ import "../chunk-VZCSLYCE.js";
17
+ import "../chunk-53ZKTQO6.js";
18
+ import "../chunk-CI3VK7X5.js";
19
+ import "../chunk-KBNDFU6J.js";
20
+ import "../chunk-RXRQJF7Y.js";
21
21
  import "../chunk-4ZNGQH7C.js";
22
- import "../chunk-SYJT7AKB.js";
22
+ import "../chunk-PZGPCOSD.js";
23
23
  import "../chunk-VFUK3X5B.js";
24
24
  import "../chunk-FXOYURO4.js";
25
- import "../chunk-2QG4MZQ7.js";
26
- import "../chunk-6FKLPVF3.js";
27
- import "../chunk-EW5MLKT5.js";
25
+ import "../chunk-6RQ5GCWH.js";
26
+ import "../chunk-25GU5B5E.js";
27
+ import "../chunk-JZPQ5K4V.js";
28
28
  import "../chunk-W3U3YQYI.js";
29
29
  import "../chunk-HZF5P5UN.js";
30
- import "../chunk-NVUQSFWX.js";
30
+ import "../chunk-3JOGUT46.js";
31
31
  import "../chunk-OB42YVAE.js";
32
32
  import "../chunk-F3B2YJ76.js";
33
33
  import "../chunk-6GWA276C.js";
34
34
  import "../chunk-B3IT5END.js";
35
35
  import "../chunk-3V7OFJZC.js";
36
- import "../chunk-TVE25LPW.js";
37
- import "../chunk-FHC4JUSF.js";
36
+ import "../chunk-N7TMYLF2.js";
37
+ import "../chunk-MGH5ADQS.js";
38
38
  import "../chunk-MLKGABMK.js";
39
39
 
40
40
  // src/cli/chat.ts
@@ -156,11 +156,11 @@ async function configureLocalChatPlugins(pluginSet) {
156
156
  validationModule,
157
157
  databaseModule
158
158
  ] = await Promise.all([
159
- import("../plugins-PZMDS7AT.js"),
160
- import("../agent-hooks-4EUUXP2F.js"),
161
- import("../catalog-runtime-Y32UEQLB.js"),
162
- import("../validation-MZ47PZP5.js"),
163
- import("../db-KBSJHAZU.js")
159
+ import("../plugins-IUJA4VBU.js"),
160
+ import("../agent-hooks-67NFITDH.js"),
161
+ import("../catalog-runtime-CWZY6GTH.js"),
162
+ import("../validation-PO5LHTJT.js"),
163
+ import("../db-57FHVGGQ.js")
164
164
  ]);
165
165
  const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
166
166
  const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
@@ -224,8 +224,8 @@ function localDevServerUrl() {
224
224
  async function prepareLocalChatRun(io, pluginSet) {
225
225
  defaultStateAdapterForLocalChat();
226
226
  await configureLocalChatPlugins(pluginSet);
227
- const { runLocalAgentTurn } = await import("../runner-RQGZ5Z2S.js");
228
- const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-EYRMJTCS.js");
227
+ const { runLocalAgentTurn } = await import("../runner-4ISZYJEX.js");
228
+ const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-PAQRPXZX.js");
229
229
  const { createLocalOAuthState } = await import("../oauth-relay-3ZU72UGL.js");
230
230
  const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-CDFAP67O.js");
231
231
  const agentRunner = createAgentRunner(executeAgentRun);
package/dist/cli/check.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  parseSkillFile
3
- } from "../chunk-2QG4MZQ7.js";
4
- import "../chunk-6FKLPVF3.js";
3
+ } from "../chunk-6RQ5GCWH.js";
4
+ import "../chunk-25GU5B5E.js";
5
5
  import {
6
6
  parseInlinePluginManifest,
7
7
  parsePluginManifest
8
- } from "../chunk-EW5MLKT5.js";
8
+ } from "../chunk-JZPQ5K4V.js";
9
9
  import "../chunk-W3U3YQYI.js";
10
10
  import "../chunk-HZF5P5UN.js";
11
- import "../chunk-NVUQSFWX.js";
11
+ import "../chunk-3JOGUT46.js";
12
12
  import "../chunk-OB42YVAE.js";
13
13
  import "../chunk-F3B2YJ76.js";
14
14
  import "../chunk-6GWA276C.js";
@@ -18,8 +18,8 @@ import {
18
18
  JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
19
19
  JUNIOR_HEARTBEAT_ROUTE,
20
20
  LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
21
- } from "../chunk-TVE25LPW.js";
22
- import "../chunk-FHC4JUSF.js";
21
+ } from "../chunk-N7TMYLF2.js";
22
+ import "../chunk-MGH5ADQS.js";
23
23
  import "../chunk-MLKGABMK.js";
24
24
 
25
25
  // src/cli/check.ts
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  validatePluginEgressCredentialHooks,
3
3
  validatePluginRegistrations
4
- } from "../chunk-6V762AB4.js";
4
+ } from "../chunk-BXLS3I4W.js";
5
5
  import {
6
6
  pluginCatalogConfigFromPluginSet,
7
7
  pluginCliRegistrationsFromPluginSet,
8
8
  pluginRuntimeRegistrationsFromPluginSet
9
- } from "../chunk-SG5WAA7H.js";
9
+ } from "../chunk-WKU7TY22.js";
10
10
  import {
11
11
  loadAppPluginSet
12
12
  } from "../chunk-Y2CM7HXH.js";
@@ -14,31 +14,31 @@ import {
14
14
  createPluginLogger,
15
15
  setPlugins,
16
16
  validatePlugins
17
- } from "../chunk-RAVKCKXA.js";
18
- import "../chunk-67CVNDJ7.js";
19
- import "../chunk-CWEZEPD4.js";
17
+ } from "../chunk-VZCSLYCE.js";
18
+ import "../chunk-53ZKTQO6.js";
19
+ import "../chunk-CI3VK7X5.js";
20
20
  import {
21
21
  getDb
22
- } from "../chunk-HWCQRGLL.js";
23
- import "../chunk-JQFJO5WH.js";
22
+ } from "../chunk-KBNDFU6J.js";
23
+ import "../chunk-RXRQJF7Y.js";
24
24
  import "../chunk-4ZNGQH7C.js";
25
- import "../chunk-SYJT7AKB.js";
25
+ import "../chunk-PZGPCOSD.js";
26
26
  import "../chunk-VFUK3X5B.js";
27
27
  import "../chunk-FXOYURO4.js";
28
28
  import {
29
29
  pluginCatalogRuntime
30
- } from "../chunk-6FKLPVF3.js";
31
- import "../chunk-EW5MLKT5.js";
30
+ } from "../chunk-25GU5B5E.js";
31
+ import "../chunk-JZPQ5K4V.js";
32
32
  import "../chunk-W3U3YQYI.js";
33
33
  import "../chunk-HZF5P5UN.js";
34
- import "../chunk-NVUQSFWX.js";
34
+ import "../chunk-3JOGUT46.js";
35
35
  import "../chunk-OB42YVAE.js";
36
36
  import "../chunk-F3B2YJ76.js";
37
37
  import "../chunk-6GWA276C.js";
38
38
  import "../chunk-B3IT5END.js";
39
39
  import "../chunk-3V7OFJZC.js";
40
- import "../chunk-TVE25LPW.js";
41
- import "../chunk-FHC4JUSF.js";
40
+ import "../chunk-N7TMYLF2.js";
41
+ import "../chunk-MGH5ADQS.js";
42
42
  import "../chunk-MLKGABMK.js";
43
43
 
44
44
  // src/cli/plugins.ts
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  GLOBAL_RUNTIME_DEPENDENCIES,
3
3
  resolveRuntimeDependencySnapshot
4
- } from "../chunk-PVZHG2XZ.js";
4
+ } from "../chunk-3H45VOBZ.js";
5
5
  import {
6
6
  disconnectStateAdapter
7
- } from "../chunk-67CVNDJ7.js";
7
+ } from "../chunk-53ZKTQO6.js";
8
8
  import "../chunk-4ZNGQH7C.js";
9
- import "../chunk-SYJT7AKB.js";
9
+ import "../chunk-PZGPCOSD.js";
10
10
  import "../chunk-FXOYURO4.js";
11
11
  import {
12
12
  pluginCatalogRuntime
13
- } from "../chunk-6FKLPVF3.js";
14
- import "../chunk-EW5MLKT5.js";
13
+ } from "../chunk-25GU5B5E.js";
14
+ import "../chunk-JZPQ5K4V.js";
15
15
  import "../chunk-W3U3YQYI.js";
16
16
  import "../chunk-HZF5P5UN.js";
17
- import "../chunk-NVUQSFWX.js";
17
+ import "../chunk-3JOGUT46.js";
18
18
  import "../chunk-OB42YVAE.js";
19
19
  import "../chunk-F3B2YJ76.js";
20
20
  import "../chunk-6GWA276C.js";
21
21
  import "../chunk-B3IT5END.js";
22
22
  import "../chunk-3V7OFJZC.js";
23
- import "../chunk-TVE25LPW.js";
24
- import "../chunk-FHC4JUSF.js";
23
+ import "../chunk-N7TMYLF2.js";
24
+ import "../chunk-MGH5ADQS.js";
25
25
  import "../chunk-MLKGABMK.js";
26
26
 
27
27
  // src/cli/snapshot-warmup.ts
@@ -2,31 +2,31 @@ import {
2
2
  defineJuniorPlugins,
3
3
  pluginCatalogConfigFromEnv,
4
4
  pluginCatalogConfigFromPluginSet
5
- } from "../chunk-SG5WAA7H.js";
5
+ } from "../chunk-WKU7TY22.js";
6
6
  import {
7
7
  loadAppPluginSet
8
8
  } from "../chunk-Y2CM7HXH.js";
9
9
  import {
10
10
  createJuniorSqlExecutor
11
- } from "../chunk-JQFJO5WH.js";
11
+ } from "../chunk-RXRQJF7Y.js";
12
12
  import {
13
13
  getChatConfig
14
- } from "../chunk-SYJT7AKB.js";
14
+ } from "../chunk-PZGPCOSD.js";
15
15
  import "../chunk-VFUK3X5B.js";
16
16
  import "../chunk-FXOYURO4.js";
17
17
  import {
18
18
  createPluginCatalogRuntime
19
- } from "../chunk-EW5MLKT5.js";
19
+ } from "../chunk-JZPQ5K4V.js";
20
20
  import "../chunk-W3U3YQYI.js";
21
21
  import "../chunk-HZF5P5UN.js";
22
- import "../chunk-NVUQSFWX.js";
22
+ import "../chunk-3JOGUT46.js";
23
23
  import "../chunk-OB42YVAE.js";
24
24
  import "../chunk-F3B2YJ76.js";
25
25
  import "../chunk-6GWA276C.js";
26
26
  import "../chunk-B3IT5END.js";
27
27
  import "../chunk-3V7OFJZC.js";
28
- import "../chunk-TVE25LPW.js";
29
- import "../chunk-FHC4JUSF.js";
28
+ import "../chunk-N7TMYLF2.js";
29
+ import "../chunk-MGH5ADQS.js";
30
30
  import "../chunk-MLKGABMK.js";
31
31
 
32
32
  // src/chat/conversations/sql/migrations.ts
@@ -0,0 +1,160 @@
1
+ export declare const juniorApiTokens: import("drizzle-orm/pg-core").PgTableWithColumns<{
2
+ name: "junior_api_tokens";
3
+ schema: undefined;
4
+ columns: {
5
+ id: import("drizzle-orm/pg-core").PgColumn<{
6
+ name: "id";
7
+ tableName: "junior_api_tokens";
8
+ dataType: "string";
9
+ columnType: "PgText";
10
+ data: string;
11
+ driverParam: string;
12
+ notNull: true;
13
+ hasDefault: false;
14
+ isPrimaryKey: true;
15
+ isAutoincrement: false;
16
+ hasRuntimeDefault: false;
17
+ enumValues: [string, ...string[]];
18
+ baseColumn: never;
19
+ identity: undefined;
20
+ generated: undefined;
21
+ }, {}, {}>;
22
+ ownerEmailNormalized: import("drizzle-orm/pg-core").PgColumn<{
23
+ name: "owner_email_normalized";
24
+ tableName: "junior_api_tokens";
25
+ dataType: "string";
26
+ columnType: "PgText";
27
+ data: string;
28
+ driverParam: string;
29
+ notNull: true;
30
+ hasDefault: false;
31
+ isPrimaryKey: false;
32
+ isAutoincrement: false;
33
+ hasRuntimeDefault: false;
34
+ enumValues: [string, ...string[]];
35
+ baseColumn: never;
36
+ identity: undefined;
37
+ generated: undefined;
38
+ }, {}, {}>;
39
+ name: import("drizzle-orm/pg-core").PgColumn<{
40
+ name: "name";
41
+ tableName: "junior_api_tokens";
42
+ dataType: "string";
43
+ columnType: "PgText";
44
+ data: string;
45
+ driverParam: string;
46
+ notNull: true;
47
+ hasDefault: false;
48
+ isPrimaryKey: false;
49
+ isAutoincrement: false;
50
+ hasRuntimeDefault: false;
51
+ enumValues: [string, ...string[]];
52
+ baseColumn: never;
53
+ identity: undefined;
54
+ generated: undefined;
55
+ }, {}, {}>;
56
+ tokenHash: import("drizzle-orm/pg-core").PgColumn<{
57
+ name: "token_hash";
58
+ tableName: "junior_api_tokens";
59
+ dataType: "string";
60
+ columnType: "PgText";
61
+ data: string;
62
+ driverParam: string;
63
+ notNull: true;
64
+ hasDefault: false;
65
+ isPrimaryKey: false;
66
+ isAutoincrement: false;
67
+ hasRuntimeDefault: false;
68
+ enumValues: [string, ...string[]];
69
+ baseColumn: never;
70
+ identity: undefined;
71
+ generated: undefined;
72
+ }, {}, {}>;
73
+ tokenSuffix: import("drizzle-orm/pg-core").PgColumn<{
74
+ name: "token_suffix";
75
+ tableName: "junior_api_tokens";
76
+ dataType: "string";
77
+ columnType: "PgText";
78
+ data: string;
79
+ driverParam: string;
80
+ notNull: true;
81
+ hasDefault: false;
82
+ isPrimaryKey: false;
83
+ isAutoincrement: false;
84
+ hasRuntimeDefault: false;
85
+ enumValues: [string, ...string[]];
86
+ baseColumn: never;
87
+ identity: undefined;
88
+ generated: undefined;
89
+ }, {}, {}>;
90
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
91
+ name: string;
92
+ tableName: "junior_api_tokens";
93
+ dataType: "date";
94
+ columnType: "PgTimestamp";
95
+ data: Date;
96
+ driverParam: string;
97
+ notNull: true;
98
+ hasDefault: false;
99
+ isPrimaryKey: false;
100
+ isAutoincrement: false;
101
+ hasRuntimeDefault: false;
102
+ enumValues: undefined;
103
+ baseColumn: never;
104
+ identity: undefined;
105
+ generated: undefined;
106
+ }, {}, {}>;
107
+ expiresAt: import("drizzle-orm/pg-core").PgColumn<{
108
+ name: string;
109
+ tableName: "junior_api_tokens";
110
+ dataType: "date";
111
+ columnType: "PgTimestamp";
112
+ data: Date;
113
+ driverParam: string;
114
+ notNull: true;
115
+ hasDefault: false;
116
+ isPrimaryKey: false;
117
+ isAutoincrement: false;
118
+ hasRuntimeDefault: false;
119
+ enumValues: undefined;
120
+ baseColumn: never;
121
+ identity: undefined;
122
+ generated: undefined;
123
+ }, {}, {}>;
124
+ lastUsedAt: import("drizzle-orm/pg-core").PgColumn<{
125
+ name: string;
126
+ tableName: "junior_api_tokens";
127
+ dataType: "date";
128
+ columnType: "PgTimestamp";
129
+ data: Date;
130
+ driverParam: string;
131
+ notNull: false;
132
+ hasDefault: false;
133
+ isPrimaryKey: false;
134
+ isAutoincrement: false;
135
+ hasRuntimeDefault: false;
136
+ enumValues: undefined;
137
+ baseColumn: never;
138
+ identity: undefined;
139
+ generated: undefined;
140
+ }, {}, {}>;
141
+ revokedAt: import("drizzle-orm/pg-core").PgColumn<{
142
+ name: string;
143
+ tableName: "junior_api_tokens";
144
+ dataType: "date";
145
+ columnType: "PgTimestamp";
146
+ data: Date;
147
+ driverParam: string;
148
+ notNull: false;
149
+ hasDefault: false;
150
+ isPrimaryKey: false;
151
+ isAutoincrement: false;
152
+ hasRuntimeDefault: false;
153
+ enumValues: undefined;
154
+ baseColumn: never;
155
+ identity: undefined;
156
+ generated: undefined;
157
+ }, {}, {}>;
158
+ };
159
+ dialect: "pg";
160
+ }>;
@@ -0,0 +1,142 @@
1
+ export declare const juniorConversationAnnotations: import("drizzle-orm/pg-core").PgTableWithColumns<{
2
+ name: "junior_conversation_annotations";
3
+ schema: undefined;
4
+ columns: {
5
+ conversationId: import("drizzle-orm/pg-core").PgColumn<{
6
+ name: "conversation_id";
7
+ tableName: "junior_conversation_annotations";
8
+ dataType: "string";
9
+ columnType: "PgText";
10
+ data: string;
11
+ driverParam: string;
12
+ notNull: true;
13
+ hasDefault: false;
14
+ isPrimaryKey: false;
15
+ isAutoincrement: false;
16
+ hasRuntimeDefault: false;
17
+ enumValues: [string, ...string[]];
18
+ baseColumn: never;
19
+ identity: undefined;
20
+ generated: undefined;
21
+ }, {}, {}>;
22
+ plugin: import("drizzle-orm/pg-core").PgColumn<{
23
+ name: "plugin";
24
+ tableName: "junior_conversation_annotations";
25
+ dataType: "string";
26
+ columnType: "PgText";
27
+ data: string;
28
+ driverParam: string;
29
+ notNull: true;
30
+ hasDefault: false;
31
+ isPrimaryKey: false;
32
+ isAutoincrement: false;
33
+ hasRuntimeDefault: false;
34
+ enumValues: [string, ...string[]];
35
+ baseColumn: never;
36
+ identity: undefined;
37
+ generated: undefined;
38
+ }, {}, {}>;
39
+ kind: import("drizzle-orm/pg-core").PgColumn<{
40
+ name: "kind";
41
+ tableName: "junior_conversation_annotations";
42
+ dataType: "string";
43
+ columnType: "PgText";
44
+ data: string;
45
+ driverParam: string;
46
+ notNull: true;
47
+ hasDefault: false;
48
+ isPrimaryKey: false;
49
+ isAutoincrement: false;
50
+ hasRuntimeDefault: false;
51
+ enumValues: [string, ...string[]];
52
+ baseColumn: never;
53
+ identity: undefined;
54
+ generated: undefined;
55
+ }, {}, {}>;
56
+ key: import("drizzle-orm/pg-core").PgColumn<{
57
+ name: "key";
58
+ tableName: "junior_conversation_annotations";
59
+ dataType: "string";
60
+ columnType: "PgText";
61
+ data: string;
62
+ driverParam: string;
63
+ notNull: true;
64
+ hasDefault: false;
65
+ isPrimaryKey: false;
66
+ isAutoincrement: false;
67
+ hasRuntimeDefault: false;
68
+ enumValues: [string, ...string[]];
69
+ baseColumn: never;
70
+ identity: undefined;
71
+ generated: undefined;
72
+ }, {}, {}>;
73
+ annotation: import("drizzle-orm/pg-core").PgColumn<{
74
+ name: "annotation_json";
75
+ tableName: "junior_conversation_annotations";
76
+ dataType: "json";
77
+ columnType: "PgJsonb";
78
+ data: {
79
+ kind: "resource_link";
80
+ key: string;
81
+ label: string;
82
+ url: string;
83
+ description?: string | undefined;
84
+ status?: "warning" | "open" | "draft" | "closed" | "merged" | undefined;
85
+ };
86
+ driverParam: unknown;
87
+ notNull: true;
88
+ hasDefault: false;
89
+ isPrimaryKey: false;
90
+ isAutoincrement: false;
91
+ hasRuntimeDefault: false;
92
+ enumValues: undefined;
93
+ baseColumn: never;
94
+ identity: undefined;
95
+ generated: undefined;
96
+ }, {}, {
97
+ $type: {
98
+ kind: "resource_link";
99
+ key: string;
100
+ label: string;
101
+ url: string;
102
+ description?: string | undefined;
103
+ status?: "warning" | "open" | "draft" | "closed" | "merged" | undefined;
104
+ };
105
+ }>;
106
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
107
+ name: string;
108
+ tableName: "junior_conversation_annotations";
109
+ dataType: "date";
110
+ columnType: "PgTimestamp";
111
+ data: Date;
112
+ driverParam: string;
113
+ notNull: true;
114
+ hasDefault: false;
115
+ isPrimaryKey: false;
116
+ isAutoincrement: false;
117
+ hasRuntimeDefault: false;
118
+ enumValues: undefined;
119
+ baseColumn: never;
120
+ identity: undefined;
121
+ generated: undefined;
122
+ }, {}, {}>;
123
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
124
+ name: string;
125
+ tableName: "junior_conversation_annotations";
126
+ dataType: "date";
127
+ columnType: "PgTimestamp";
128
+ data: Date;
129
+ driverParam: string;
130
+ notNull: true;
131
+ hasDefault: false;
132
+ isPrimaryKey: false;
133
+ isAutoincrement: false;
134
+ hasRuntimeDefault: false;
135
+ enumValues: undefined;
136
+ baseColumn: never;
137
+ identity: undefined;
138
+ generated: undefined;
139
+ }, {}, {}>;
140
+ };
141
+ dialect: "pg";
142
+ }>;