@sentry/junior 0.317.0 → 0.319.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 (95) hide show
  1. package/dist/adapter-8_S6Birm.js +1833 -0
  2. package/dist/{admin-CAugg87B.js → admin-EsbUON1j.js} +1 -1
  3. package/dist/{agent-runner-AjrEV6Qe.js → agent-CtzMl32d.js} +19953 -6727
  4. package/dist/{agent-status-BA5x3Xtp.js → agent-status-Bq_AIpyp.js} +105 -1
  5. package/dist/{agent-update-delivery-B_YIZcgf.js → agent-update-delivery-pAvsbuGL.js} +4 -5
  6. package/dist/api/schema.d.ts +85 -51
  7. package/dist/api/schema.js +4 -4
  8. package/dist/api.js +81 -94
  9. package/dist/{app-MoNAsVV5.d.ts → app-tACXxJPI.d.ts} +8 -13
  10. package/dist/app.d.ts +2 -2
  11. package/dist/app.js +246 -153
  12. package/dist/{change-record-BzJgLsv7.d.ts → change-record-K-KsqNhT.d.ts} +9 -5
  13. package/dist/{channel-access-j-YAVYK4.js → channel-access-DET5hzZM.js} +1 -1
  14. package/dist/{chat-core-engine-aH85nEHv.js → chat-core-engine-DpM3tMVi.js} +7 -7
  15. package/dist/cli/chat.d.ts +1 -1
  16. package/dist/cli/chat.js +38 -30
  17. package/dist/cli/check.js +5 -5
  18. package/dist/cli/main.js +2 -2
  19. package/dist/cli/plugins.d.ts +1 -1
  20. package/dist/cli/plugins.js +8 -8
  21. package/dist/cli/snapshot-create.js +5 -6
  22. package/dist/cli/upgrade.d.ts +1 -1
  23. package/dist/cli/upgrade.js +3 -4
  24. package/dist/{continue-in-slack-D-FZ8Fin.js → continue-in-slack-CFzDyxkH.js} +3 -2
  25. package/dist/{conversation-feed--9S0_PXL.js → conversation-feed-DEUdD7mb.js} +2 -106
  26. package/dist/{conversation-privacy-B1uXn5sf.js → conversation-privacy-C2vYK55O.js} +1 -1
  27. package/dist/{create-DoDIYgtZ.js → create-Ta3SEIB5.js} +124 -16
  28. package/dist/{credential-sync-BJOqGnjV.js → credential-sync-DyRqDmY4.js} +17 -20
  29. package/dist/{db-BFmyYZtJ.js → db-BCaNWl9p.js} +6536 -1920
  30. package/dist/{deployment-DXq9ZLU4.js → deployment-CfOew1Tm.js} +3 -3
  31. package/dist/{engine-context-CgQ7mlHt.js → engine-context-CiExoy1B.js} +181 -155
  32. package/dist/{html-B3VKTGbJ.js → html-Bb2Si1bR.js} +6 -8
  33. package/dist/instrumentation.js +7 -23
  34. package/dist/list-wwDcROh9.js +5007 -0
  35. package/dist/{logging--smS7XRK.js → logging-BRPTXAdf.js} +10 -81
  36. package/dist/{mailbox-turn-uSXhUFc9.js → markers-9QoqW5ov.js} +1875 -1458
  37. package/dist/nitro.d.ts +2 -2
  38. package/dist/nitro.js +7 -8
  39. package/dist/{oauth-callback-server-CE4soEIY.js → oauth-callback-server-vhL9b-PZ.js} +2 -2
  40. package/dist/{oauth-relay-C36gX1gH.js → oauth-relay-CH2v7WiB.js} +1 -1
  41. package/dist/{plugins-fBrz8PCV.d.ts → plugins-DhGXZjlu.d.ts} +1 -0
  42. package/dist/{profile-BQ-iBDsZ.js → profile-D9LdwmZi.js} +17 -19
  43. package/dist/{prompt-Dv7gkpD6.js → prompt-3TqxEOtc.js} +10 -10
  44. package/dist/{reports-WKHfGTsU.js → reports-K-tbtEyx.js} +2 -2
  45. package/dist/{resolve-tony4ibz.js → resolve-BBV2qf8A.js} +5 -5
  46. package/dist/{result-Bta_dlWa.js → result-5IdGJP4M.js} +24 -13
  47. package/dist/{runner-BstDRbD9.js → runner-BK_joPlM.js} +9 -18
  48. package/dist/{sandbox-egress-signals-oSJMJOnn.js → sandbox-egress-signals-DXgWXXmm.js} +1 -1
  49. package/dist/{schema-DfqrHACA.js → schema-zWGG6VC1.js} +13 -7
  50. package/dist/{service-account-CTV_jaNu.js → service-account-CateFyhw.js} +4 -5
  51. package/dist/{skills-BCEU41zM.js → skills-Ccjw8h2P.js} +10 -9
  52. package/dist/{slack-conversation-unfurl-DxVmhbGP.js → slack-conversation-unfurl-ZC_TSpc4.js} +7 -7
  53. package/dist/storage-C9U7R5rM.js +273 -0
  54. package/dist/{system-prompt-table-CiXy0eNR.js → system-prompt-table-YBTHIFlP.js} +26 -84
  55. package/dist/topic-B2EWKKBT.js +6 -0
  56. package/dist/{package-discovery-DD9vencX.js → topics-DxuKurCX.js} +21 -1
  57. package/dist/{types-C4iC-IMC.js → types-BNHkJrOP.js} +79 -59
  58. package/dist/{users-ByG5RCEJ.js → users-CCRAqYb_.js} +1 -1
  59. package/dist/{validation-8gjfR91V.js → validation-BCUpJa8K.js} +4 -4
  60. package/dist/{version-BeZhWWBE.js → version-BNm0JYj3.js} +1 -1
  61. package/dist/version.js +1 -1
  62. package/dist/{worker-BqMQQNRk.js → worker-BhgpZ7_b.js} +5 -5
  63. package/migrations/20261127002500_turn_discarded_usage/migration.sql +2 -0
  64. package/migrations/20261127002500_turn_discarded_usage/snapshot.json +73 -0
  65. package/migrations/20261127052408_space_name_nullable/migration.sql +5 -0
  66. package/migrations/20261127052408_space_name_nullable/snapshot.json +29 -0
  67. package/migrations/20261127060000_annotation_object_id_index/migration.sql +1 -0
  68. package/migrations/20261127060000_annotation_object_id_index/snapshot.json +69 -0
  69. package/migrations/20261127060001_annotation_subjects/migration.sql +78 -0
  70. package/migrations/20261127060001_annotation_subjects/snapshot.json +104 -0
  71. package/migrations/20261127060002_annotation_subject_index/migration.sql +1 -0
  72. package/migrations/20261127060002_annotation_subject_index/snapshot.json +70 -0
  73. package/migrations/20261127060003_annotation_title_url/migration.sql +84 -0
  74. package/migrations/20261127060003_annotation_title_url/snapshot.json +73 -0
  75. package/package.json +9 -7
  76. package/dist/catalog-runtime-DfSpJZdY.js +0 -6
  77. package/dist/child-message-DHjQLEd1.js +0 -19
  78. package/dist/config-CHQ8X251.js +0 -2422
  79. package/dist/conversation-turn-BUE_7xaN.js +0 -1157
  80. package/dist/job-runner-A1lCkybD.js +0 -1506
  81. package/dist/lineage-Bktb0UcV.js +0 -36
  82. package/dist/list-Bxvg5wXf.js +0 -12623
  83. package/dist/message-BNenhsmB.js +0 -154
  84. package/dist/model-input-BReSnwHp.js +0 -82
  85. package/dist/parent-result-Ck1rFYRQ.js +0 -310
  86. package/dist/registry-iXMT5Jmh.js +0 -3279
  87. package/dist/run-conversation-DL6ru7iW.js +0 -336
  88. package/dist/sender-actors-CPglLd5R.js +0 -83
  89. package/dist/spawn-frczVPIr.js +0 -48
  90. package/dist/task-runner-C9Yc2_ae.js +0 -1526
  91. package/dist/thread-context-CqZDKErp.js +0 -166
  92. package/dist/topic-CRYYBYp-.js +0 -7
  93. package/dist/topics-SRN7IVX-.js +0 -24
  94. package/dist/turn-membership-CENFf3kI.js +0 -856
  95. package/dist/turn-wake-BhloiI2h.js +0 -151
@@ -1,36 +0,0 @@
1
- import { K as conversationKindFromRow, a as getDb, lf as juniorConversations } from "./db-BFmyYZtJ.js";
2
- import { desc, eq, sql } from "drizzle-orm";
3
- // src/chat/conversations/lineage.ts
4
- /**
5
- * Read the parent chain of a Conversation in one query, root first, with the
6
- * Conversation last. Returns an empty list when the Conversation is missing.
7
- *
8
- * The chain stops at a parent that is missing or that is already in the
9
- * chain. Then the first entry still has a `parentConversationId`, so callers
10
- * can tell a broken chain from one that ends at a root.
11
- */
12
- async function readConversationLineage(conversationId) {
13
- const lineage = sql`(
14
- with recursive lineage(conversation_id, parent_conversation_id, depth, path) as (
15
- select selected.conversation_id, selected.parent_conversation_id, 0, array[selected.conversation_id]
16
- from junior_conversations selected
17
- where selected.conversation_id = ${conversationId}
18
- union all
19
- select parent.conversation_id, parent.parent_conversation_id, lineage.depth + 1, lineage.path || parent.conversation_id
20
- from junior_conversations parent
21
- join lineage on parent.conversation_id = lineage.parent_conversation_id
22
- where parent.conversation_id <> all(lineage.path)
23
- )
24
- select conversation_id, depth from lineage
25
- ) conversation_lineage`;
26
- return (await getDb().select({
27
- conversationId: juniorConversations.conversationId,
28
- kind: juniorConversations.kind,
29
- parentConversationId: juniorConversations.parentConversationId
30
- }).from(juniorConversations).innerJoin(lineage, eq(sql`conversation_lineage.conversation_id`, juniorConversations.conversationId)).orderBy(desc(sql`conversation_lineage.depth`))).map((row) => ({
31
- conversationId: row.conversationId,
32
- kind: conversationKindFromRow(row),
33
- ...row.parentConversationId ? { parentConversationId: row.parentConversationId } : void 0
34
- }));
35
- }
36
- export { readConversationLineage as t };