@sentry/junior 0.103.0 → 0.104.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 (77) hide show
  1. package/dist/{agent-hooks-NHIXBJW3.js → agent-hooks-EOFSY2PD.js} +3 -3
  2. package/dist/api/conversations/archive.d.ts +7 -0
  3. package/dist/api/conversations/detail.d.ts +7 -0
  4. package/dist/api/conversations/list.d.ts +109 -0
  5. package/dist/api/conversations/routes.d.ts +3 -0
  6. package/dist/api/conversations/schema.d.ts +72 -69
  7. package/dist/api/conversations/stats.d.ts +7 -0
  8. package/dist/api/conversations/subagent.d.ts +7 -0
  9. package/dist/api/http.d.ts +5 -0
  10. package/dist/api/locations/detail.d.ts +10 -2
  11. package/dist/api/locations/list.d.ts +7 -0
  12. package/dist/api/locations/routes.d.ts +3 -0
  13. package/dist/api/locations/schema.d.ts +4 -3
  14. package/dist/api/people/list.d.ts +7 -0
  15. package/dist/api/people/profile.d.ts +7 -0
  16. package/dist/api/people/routes.d.ts +3 -0
  17. package/dist/api/people/schema.d.ts +35 -33
  18. package/dist/api/people/shared.d.ts +3 -3
  19. package/dist/api/route.d.ts +7 -0
  20. package/dist/api/schema.js +11 -17
  21. package/dist/api.js +2184 -88
  22. package/dist/app.js +107 -101
  23. package/dist/chat/conversations/history.d.ts +6 -6
  24. package/dist/chat/conversations/store.d.ts +1 -0
  25. package/dist/chat/pi/messages.d.ts +2 -2
  26. package/dist/chat/plugins/agent-hooks.d.ts +2 -2
  27. package/dist/chat/resource-events/store.d.ts +2 -2
  28. package/dist/chat/slack/tools/conversation-search.d.ts +2 -2
  29. package/dist/chat/state/session-log.d.ts +2 -2
  30. package/dist/chat/task-execution/store.d.ts +2 -2
  31. package/dist/chat/tools/search-tools.d.ts +2 -2
  32. package/dist/chunk-AIRE7Q2W.js +362 -0
  33. package/dist/{chunk-HOBDQQJY.js → chunk-BCULHGZK.js} +23 -3
  34. package/dist/{chunk-DEQZ23O3.js → chunk-O7ILGCMJ.js} +77 -0
  35. package/dist/{chunk-C4BT2P2K.js → chunk-QDKRE3LS.js} +339 -8
  36. package/dist/{chunk-GY5ZRYPH.js → chunk-QVTVCJR4.js} +5 -5
  37. package/dist/{chunk-JXQWOCBE.js → chunk-RMZ65YAA.js} +2 -2
  38. package/dist/{chunk-E2VS47AZ.js → chunk-RYDF4GOX.js} +2 -2
  39. package/dist/{chunk-OE453VRG.js → chunk-TMWUGGSA.js} +26 -28
  40. package/dist/{chunk-JPXLAJUU.js → chunk-VDHMFCDY.js} +9 -10
  41. package/dist/cli/chat.js +10 -11
  42. package/dist/cli/plugins.js +4 -4
  43. package/dist/cli/upgrade.js +3 -4
  44. package/dist/db/schema/conversations.d.ts +17 -0
  45. package/dist/db/schema.d.ts +17 -0
  46. package/dist/{db-I343BSOM.js → db-PDMC67T3.js} +1 -1
  47. package/dist/{legacy-import-M7VBOQTK.js → legacy-import-G333RHJZ.js} +2 -2
  48. package/dist/reporting-schema.d.ts +4 -4
  49. package/dist/{runner-IEE5G4NV.js → runner-6A7MQRUE.js} +7 -8
  50. package/migrations/0004_useful_magus.sql +1 -0
  51. package/migrations/meta/0004_snapshot.json +1041 -0
  52. package/migrations/meta/_journal.json +7 -0
  53. package/package.json +6 -6
  54. package/dist/api/conversations/list.query.d.ts +0 -103
  55. package/dist/chunk-2RNOB32R.js +0 -17
  56. package/dist/chunk-6FPTHPXF.js +0 -77
  57. package/dist/chunk-6LBNXC4F.js +0 -66
  58. package/dist/chunk-7LLRS2OK.js +0 -215
  59. package/dist/chunk-B43K4C5K.js +0 -102
  60. package/dist/chunk-BQCPAIAB.js +0 -319
  61. package/dist/chunk-FW7DVHTL.js +0 -673
  62. package/dist/chunk-GCGRQJR5.js +0 -84
  63. package/dist/chunk-HRDWLE7Q.js +0 -273
  64. package/dist/chunk-LVUKF5CE.js +0 -63
  65. package/dist/chunk-QNVHH5PU.js +0 -20
  66. package/dist/chunk-QOZOJNSE.js +0 -96
  67. package/dist/chunk-VKFOVMZL.js +0 -331
  68. package/dist/detail-ENVV4HIY.js +0 -68
  69. package/dist/detail-UIOKVIET.js +0 -29
  70. package/dist/list-WR5U6JVM.js +0 -30
  71. package/dist/list-XZ4HKQ4R.js +0 -121
  72. package/dist/list-ZOUSMSEH.js +0 -30
  73. package/dist/plugin-conversations-DTUP4RH6.js +0 -37
  74. package/dist/profile-UO2N3XXG.js +0 -212
  75. package/dist/reporting/plugin-conversations.d.ts +0 -3
  76. package/dist/stats-NZIET4LT.js +0 -174
  77. package/dist/subagent-DY6XKTJ5.js +0 -49
@@ -592,6 +592,23 @@ export declare const juniorConversations: import("drizzle-orm/pg-core").PgTableW
592
592
  identity: undefined;
593
593
  generated: undefined;
594
594
  }, {}, {}>;
595
+ archivedAt: import("drizzle-orm/pg-core").PgColumn<{
596
+ name: string;
597
+ tableName: "junior_conversations";
598
+ dataType: "date";
599
+ columnType: "PgTimestamp";
600
+ data: Date;
601
+ driverParam: string;
602
+ notNull: false;
603
+ hasDefault: false;
604
+ isPrimaryKey: false;
605
+ isAutoincrement: false;
606
+ hasRuntimeDefault: false;
607
+ enumValues: undefined;
608
+ baseColumn: never;
609
+ identity: undefined;
610
+ generated: undefined;
611
+ }, {}, {}>;
595
612
  };
596
613
  dialect: "pg";
597
614
  }>;
@@ -874,6 +874,23 @@ export declare const juniorSqlSchema: {
874
874
  identity: undefined;
875
875
  generated: undefined;
876
876
  }, {}, {}>;
877
+ archivedAt: import("drizzle-orm/pg-core").PgColumn<{
878
+ name: string;
879
+ tableName: "junior_conversations";
880
+ dataType: "date";
881
+ columnType: "PgTimestamp";
882
+ data: Date;
883
+ driverParam: string;
884
+ notNull: false;
885
+ hasDefault: false;
886
+ isPrimaryKey: false;
887
+ isAutoincrement: false;
888
+ hasRuntimeDefault: false;
889
+ enumValues: undefined;
890
+ baseColumn: never;
891
+ identity: undefined;
892
+ generated: undefined;
893
+ }, {}, {}>;
877
894
  };
878
895
  dialect: "pg";
879
896
  }>;
@@ -6,7 +6,7 @@ import {
6
6
  getConversationStore,
7
7
  getDb,
8
8
  getSqlExecutor
9
- } from "./chunk-HOBDQQJY.js";
9
+ } from "./chunk-BCULHGZK.js";
10
10
  import "./chunk-M3UAVLEN.js";
11
11
  import "./chunk-FXFQNHRU.js";
12
12
  import "./chunk-RT5BUHR5.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ensureLegacyConversationImport,
3
3
  importConversationFromLegacy
4
- } from "./chunk-E2VS47AZ.js";
5
- import "./chunk-HOBDQQJY.js";
4
+ } from "./chunk-RYDF4GOX.js";
5
+ import "./chunk-BCULHGZK.js";
6
6
  import "./chunk-M3UAVLEN.js";
7
7
  import "./chunk-FXFQNHRU.js";
8
8
  import "./chunk-RT5BUHR5.js";
@@ -63,10 +63,10 @@ export declare const pluginOperationalReportSchema: z.ZodObject<{
63
63
  metrics: z.ZodOptional<z.ZodArray<z.ZodObject<{
64
64
  label: z.ZodString;
65
65
  tone: z.ZodOptional<z.ZodEnum<{
66
+ warning: "warning";
66
67
  danger: "danger";
67
68
  good: "good";
68
69
  neutral: "neutral";
69
- warning: "warning";
70
70
  }>>;
71
71
  value: z.ZodString;
72
72
  }, z.core.$strict>>>;
@@ -79,10 +79,10 @@ export declare const pluginOperationalReportSchema: z.ZodObject<{
79
79
  records: z.ZodOptional<z.ZodArray<z.ZodObject<{
80
80
  id: z.ZodString;
81
81
  tone: z.ZodOptional<z.ZodEnum<{
82
+ warning: "warning";
82
83
  danger: "danger";
83
84
  good: "good";
84
85
  neutral: "neutral";
85
- warning: "warning";
86
86
  }>>;
87
87
  values: z.ZodRecord<z.ZodString, z.ZodString>;
88
88
  }, z.core.$strict>>>;
@@ -98,10 +98,10 @@ export declare const pluginOperationalReportFeedSchema: z.ZodObject<{
98
98
  metrics: z.ZodOptional<z.ZodArray<z.ZodObject<{
99
99
  label: z.ZodString;
100
100
  tone: z.ZodOptional<z.ZodEnum<{
101
+ warning: "warning";
101
102
  danger: "danger";
102
103
  good: "good";
103
104
  neutral: "neutral";
104
- warning: "warning";
105
105
  }>>;
106
106
  value: z.ZodString;
107
107
  }, z.core.$strict>>>;
@@ -114,10 +114,10 @@ export declare const pluginOperationalReportFeedSchema: z.ZodObject<{
114
114
  records: z.ZodOptional<z.ZodArray<z.ZodObject<{
115
115
  id: z.ZodString;
116
116
  tone: z.ZodOptional<z.ZodEnum<{
117
+ warning: "warning";
117
118
  danger: "danger";
118
119
  good: "good";
119
120
  neutral: "neutral";
120
- warning: "warning";
121
121
  }>>;
122
122
  values: z.ZodRecord<z.ZodString, z.ZodString>;
123
123
  }, z.core.$strict>>>;
@@ -3,7 +3,7 @@ import {
3
3
  finalizeFailedTurnReply,
4
4
  processPluginTask,
5
5
  scheduleSessionCompletedPluginTasks
6
- } from "./chunk-GY5ZRYPH.js";
6
+ } from "./chunk-QVTVCJR4.js";
7
7
  import "./chunk-KNFROR7R.js";
8
8
  import {
9
9
  coerceThreadArtifactsState,
@@ -13,15 +13,14 @@ import {
13
13
  markTurnFailed,
14
14
  persistThreadStateById,
15
15
  startActiveTurn
16
- } from "./chunk-JXQWOCBE.js";
16
+ } from "./chunk-RMZ65YAA.js";
17
17
  import {
18
18
  coerceThreadConversationState
19
19
  } from "./chunk-XIMUQ4IU.js";
20
- import "./chunk-C4BT2P2K.js";
21
20
  import {
22
21
  commitMessages,
23
22
  loadProjection
24
- } from "./chunk-BQCPAIAB.js";
23
+ } from "./chunk-QDKRE3LS.js";
25
24
  import {
26
25
  buildConversationContext,
27
26
  hydrateConversationMessages,
@@ -29,13 +28,13 @@ import {
29
28
  normalizeConversationText,
30
29
  updateConversationStats,
31
30
  upsertConversationMessage
32
- } from "./chunk-E2VS47AZ.js";
31
+ } from "./chunk-RYDF4GOX.js";
33
32
  import "./chunk-PDO5BLNM.js";
34
- import "./chunk-JPXLAJUU.js";
35
- import "./chunk-CCTCIISK.js";
33
+ import "./chunk-VDHMFCDY.js";
36
34
  import "./chunk-4PDVOHXP.js";
37
- import "./chunk-HOBDQQJY.js";
38
35
  import "./chunk-G3E7SCME.js";
36
+ import "./chunk-CCTCIISK.js";
37
+ import "./chunk-BCULHGZK.js";
39
38
  import {
40
39
  sleep
41
40
  } from "./chunk-4ZNGQH7C.js";
@@ -0,0 +1 @@
1
+ ALTER TABLE "junior_conversations" ADD COLUMN "archived_at" timestamp with time zone;