@sentry/junior 0.293.0 → 0.294.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 (72) hide show
  1. package/dist/{adapter-CMJfmHso.js → adapter-DxLhJEnO.js} +1 -1
  2. package/dist/{admin-uuecrKuD.js → admin-vt8aSiCD.js} +2 -2
  3. package/dist/{agent-runner-DHq1pjUg.js → agent-runner-DJu7w6mI.js} +68 -33
  4. package/dist/api/schema.d.ts +2 -2
  5. package/dist/api/schema.js +5 -5
  6. package/dist/api.d.ts +1 -1
  7. package/dist/api.js +48 -28
  8. package/dist/{app-fWzCHFIb.d.ts → app--a5RLOrr.d.ts} +4 -2
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +60 -69
  11. package/dist/{assistant-reply-CIApSfor.js → assistant-reply-iTtEdDyc.js} +1 -1
  12. package/dist/{automation-BE3z19VN.js → automation-BM-OBsKW.js} +1 -1
  13. package/dist/{background-compaction-queue-D7ncdEa6.js → background-compaction-queue-D2j-0XkH.js} +4 -4
  14. package/dist/{briefs-NpgMEFh1.js → briefs-JOAoCb6d.js} +3 -3
  15. package/dist/{catalog-runtime-DwbTyNRD.js → catalog-runtime-CLMA9AXd.js} +1 -1
  16. package/dist/cli/chat.js +14 -14
  17. package/dist/cli/check.js +3 -3
  18. package/dist/cli/main.js +3 -3
  19. package/dist/cli/plugins.js +4 -4
  20. package/dist/cli/snapshot-create.js +4 -4
  21. package/dist/cli/upgrade.d.ts +1 -1
  22. package/dist/cli/upgrade.js +7 -74
  23. package/dist/{config-B4b-NXH5.js → config-mIZeGEWv.js} +17 -7
  24. package/dist/{connections-Dz_AQg5p.js → connections-XhdVg7OR.js} +6 -6
  25. package/dist/{conversation-CtjR1Zcx.js → conversation-CDWejM4R.js} +1 -0
  26. package/dist/{conversation-pending-messages-1Kad1Mif.js → conversation-pending-messages-Dh2tfbaw.js} +1 -1
  27. package/dist/{conversation-privacy-DRsSgLGO.js → conversation-privacy-C6h-X2cZ.js} +1 -1
  28. package/dist/{credential-sync-ClCnnGVj.js → credential-sync-zigBlXS3.js} +13 -13
  29. package/dist/{db-CoA7_Xqu.js → db--xuNV7g6.js} +99 -6
  30. package/dist/{db-BbpttyKH.d.ts → db-DV5AbcGM.d.ts} +8 -6
  31. package/dist/{executor-SWyHhit0.js → executor-BItuRqAR.js} +58 -9
  32. package/dist/instrumentation.js +2 -2
  33. package/dist/{logging-BN5drSEZ.js → logging-Cb6MGvdt.js} +1 -1
  34. package/dist/{message-D4qjpW1C.js → message-BTGgSmaH.js} +9 -9
  35. package/dist/nitro.d.ts +1 -1
  36. package/dist/nitro.js +2 -2
  37. package/dist/{oauth-callback-server-Xi-mTLOV.js → oauth-callback-server-Dvh1aOIi.js} +2 -2
  38. package/dist/{projection-DXl4ftyL.js → projection-DLQgfO5N.js} +15 -96
  39. package/dist/{prompt-Dmx6IfWZ.js → prompt-qp_LdxLX.js} +5 -6
  40. package/dist/{registry-DosVt9f9.js → registry-MtwokaqW.js} +1 -1
  41. package/dist/{resolve-BDjWJC9s.js → resolve-BnJA0UNE.js} +3 -3
  42. package/dist/{result-CaAFpf4B.js → result-ChL-1KyW.js} +8 -8
  43. package/dist/{runner-h96Mkss6.js → runner-BONN7Dp2.js} +8 -8
  44. package/dist/{sandbox-egress-signals-rK91BW7i.js → sandbox-egress-signals-nmlmI5Ab.js} +1 -1
  45. package/dist/{schema-CHsBmXIj.d.ts → schema-DgvcyJ1y.d.ts} +38 -1
  46. package/dist/{schema-C_v8wb80.js → schema-yr0ccDni.js} +29 -4
  47. package/dist/{service-account-WUMVuqVL.js → service-account-Bd0lBaGr.js} +3 -3
  48. package/dist/{service-account-BpGpScaT.js → service-account-kio5nXSD.js} +3 -3
  49. package/dist/{session-stop-xYK15HUu.js → session-stop-CeCXL3j9.js} +11 -11
  50. package/dist/{skills-DHApyCjj.js → skills-e3DDNlKO.js} +2 -2
  51. package/dist/{spawn-BQQrwGNe.js → spawn--cRxITWQ.js} +5 -5
  52. package/dist/{stop-CBeD6_Gs.js → stop-Iai5N2PU.js} +25 -26
  53. package/dist/{store-xtibD98L.js → store-C8LsaJwS.js} +3 -3
  54. package/dist/{task-runner-BYPN4BEO.js → task-runner-Dw7exu0-.js} +11 -11
  55. package/dist/{turn-failure-response-jNVl00MD.js → turn-failure-response-BqTTx3XG.js} +8 -8
  56. package/dist/{validation-DGeB_moV.js → validation-BrGahtnv.js} +1 -1
  57. package/dist/{version-C6nqU3Qc.js → version-Bdqhx8Qh.js} +1 -1
  58. package/dist/version.js +1 -1
  59. package/dist/{viewer-9KLQibjn.js → viewer-CjRFHR5U.js} +3 -3
  60. package/dist/{warmup-7S6z068f.js → warmup-DuxCtzKC.js} +69 -23
  61. package/dist/{work-xwX6unUE.js → work-BWBG1EGV.js} +11 -11
  62. package/dist/{worker-CiCCfwd4.js → worker-DAnBIVMs.js} +6 -6
  63. package/migrations/0062_plugin_report_index.sql +1 -20
  64. package/migrations/0078_plugin_conversation_index.sql +1 -20
  65. package/migrations/0079_conversation_event_author_index.sql +1 -20
  66. package/migrations/0080_conversation_event_latest_message_indexes.sql +2 -27
  67. package/migrations/0090_guardian_review_time_index.sql +1 -20
  68. package/migrations/0091_conversation_participant_unsubscribed_index.sql +1 -20
  69. package/migrations/0097_conversation_kind_automation.sql +6 -0
  70. package/migrations/meta/0097_snapshot.json +4490 -0
  71. package/migrations/meta/_journal.json +7 -0
  72. package/package.json +4 -4
@@ -1,27 +1,2 @@
1
- -- Before this migration runs, junior upgrade builds the marked indexes with
2
- -- CREATE INDEX CONCURRENTLY, so the builds below do not block writes.
3
- DO $$
4
- BEGIN
5
- -- Even CREATE INDEX IF NOT EXISTS takes a write-blocking table lock.
6
- IF to_regclass('junior_conversation_events_message_role_idx') IS NULL THEN
7
- -- junior:concurrent-index
8
- CREATE INDEX "junior_conversation_events_message_role_idx" ON "junior_conversation_events" USING btree ("conversation_id",("payload"->>'role'),"created_at","seq") WHERE "junior_conversation_events"."type" = 'message';
9
- END IF;
10
- IF to_regclass('junior_conversation_events_user_message_time_idx') IS NULL THEN
11
- -- junior:concurrent-index
12
- CREATE INDEX "junior_conversation_events_user_message_time_idx" ON "junior_conversation_events" USING btree ("conversation_id","created_at","seq") WHERE "junior_conversation_events"."type" = 'user_message' and ("junior_conversation_events"."payload"->'provenance'->>'authority') = 'instruction' and ("junior_conversation_events"."payload"->'provenance'->'actor'->>'platform') in ('slack', 'local', 'web');
13
- END IF;
14
-
15
- -- A failed concurrent build can leave an index that exists but cannot be used.
16
- IF (
17
- SELECT count(*) FROM pg_index
18
- WHERE indexrelid IN (
19
- 'junior_conversation_events_message_role_idx'::regclass,
20
- 'junior_conversation_events_user_message_time_idx'::regclass
21
- )
22
- AND indrelid = 'junior_conversation_events'::regclass
23
- AND indisvalid AND indisready
24
- ) <> 2 THEN
25
- RAISE EXCEPTION 'The conversation event latest message indexes are not valid and ready. Repair the concurrent builds before running junior upgrade.';
26
- END IF;
27
- END $$;
1
+ CREATE INDEX CONCURRENTLY IF NOT EXISTS "junior_conversation_events_message_role_idx" ON "junior_conversation_events" USING btree ("conversation_id",("payload"->>'role'),"created_at","seq") WHERE "junior_conversation_events"."type" = 'message';--> statement-breakpoint
2
+ CREATE INDEX CONCURRENTLY IF NOT EXISTS "junior_conversation_events_user_message_time_idx" ON "junior_conversation_events" USING btree ("conversation_id","created_at","seq") WHERE "junior_conversation_events"."type" = 'user_message' and ("junior_conversation_events"."payload"->'provenance'->>'authority') = 'instruction' and ("junior_conversation_events"."payload"->'provenance'->'actor'->>'platform') in ('slack', 'local', 'web');
@@ -1,20 +1 @@
1
- -- Before this migration runs, junior upgrade builds the marked index with
2
- -- CREATE INDEX CONCURRENTLY, so the build below does not block writes.
3
- DO $$
4
- BEGIN
5
- -- Even CREATE INDEX IF NOT EXISTS takes a write-blocking table lock.
6
- IF to_regclass('junior_conversation_events_guardian_review_time_idx') IS NULL THEN
7
- -- junior:concurrent-index
8
- CREATE INDEX "junior_conversation_events_guardian_review_time_idx" ON "junior_conversation_events" USING btree ("created_at") WHERE "junior_conversation_events"."type" = 'guardian_action_reviewed';
9
- END IF;
10
-
11
- -- A failed concurrent build can leave an index that exists but cannot be used.
12
- IF NOT EXISTS (
13
- SELECT 1 FROM pg_index
14
- WHERE indexrelid = 'junior_conversation_events_guardian_review_time_idx'::regclass
15
- AND indrelid = 'junior_conversation_events'::regclass
16
- AND indisvalid AND indisready
17
- ) THEN
18
- RAISE EXCEPTION 'The Guardian review time index is not valid and ready. Repair the concurrent build before running junior upgrade.';
19
- END IF;
20
- END $$;
1
+ CREATE INDEX CONCURRENTLY IF NOT EXISTS "junior_conversation_events_guardian_review_time_idx" ON "junior_conversation_events" USING btree ("created_at") WHERE "junior_conversation_events"."type" = 'guardian_action_reviewed';
@@ -1,20 +1 @@
1
- -- Before this migration runs, junior upgrade builds the marked index with
2
- -- CREATE INDEX CONCURRENTLY, so the build below does not block writes.
3
- DO $$
4
- BEGIN
5
- -- Even CREATE INDEX IF NOT EXISTS takes a write-blocking table lock.
6
- IF to_regclass('junior_conversation_participants_unsubscribed_idx') IS NULL THEN
7
- -- junior:concurrent-index
8
- CREATE INDEX "junior_conversation_participants_unsubscribed_idx" ON "junior_conversation_participants" USING btree ("user_id","root_conversation_id") WHERE "junior_conversation_participants"."unsubscribed_at" is not null;
9
- END IF;
10
-
11
- -- A failed concurrent build can leave an index that exists but cannot be used.
12
- IF NOT EXISTS (
13
- SELECT 1 FROM pg_index
14
- WHERE indexrelid = 'junior_conversation_participants_unsubscribed_idx'::regclass
15
- AND indrelid = 'junior_conversation_participants'::regclass
16
- AND indisvalid AND indisready
17
- ) THEN
18
- RAISE EXCEPTION 'The conversation participant unsubscribed index is not valid and ready. Repair the concurrent build before running junior upgrade.';
19
- END IF;
20
- END $$;
1
+ CREATE INDEX CONCURRENTLY IF NOT EXISTS "junior_conversation_participants_unsubscribed_idx" ON "junior_conversation_participants" USING btree ("user_id","root_conversation_id") WHERE "junior_conversation_participants"."unsubscribed_at" is not null;
@@ -0,0 +1,6 @@
1
+ -- NOT VALID: the widened checks accept every existing row, so they skip the
2
+ -- scan and still hold for every new write.
3
+ ALTER TABLE "junior_conversations" DROP CONSTRAINT "junior_conversations_kind_check";--> statement-breakpoint
4
+ ALTER TABLE "junior_conversations" DROP CONSTRAINT "junior_conversations_kind_parent_check";--> statement-breakpoint
5
+ ALTER TABLE "junior_conversations" ADD CONSTRAINT "junior_conversations_kind_check" CHECK ("junior_conversations"."kind" in ('root', 'automation', 'thread', 'task')) NOT VALID;--> statement-breakpoint
6
+ ALTER TABLE "junior_conversations" ADD CONSTRAINT "junior_conversations_kind_parent_check" CHECK ("junior_conversations"."kind" is null or (("junior_conversations"."kind" in ('root', 'automation')) = ("junior_conversations"."parent_conversation_id" is null))) NOT VALID;