@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.
- package/dist/{adapter-CMJfmHso.js → adapter-DxLhJEnO.js} +1 -1
- package/dist/{admin-uuecrKuD.js → admin-vt8aSiCD.js} +2 -2
- package/dist/{agent-runner-DHq1pjUg.js → agent-runner-DJu7w6mI.js} +68 -33
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +5 -5
- package/dist/api.d.ts +1 -1
- package/dist/api.js +48 -28
- package/dist/{app-fWzCHFIb.d.ts → app--a5RLOrr.d.ts} +4 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +60 -69
- package/dist/{assistant-reply-CIApSfor.js → assistant-reply-iTtEdDyc.js} +1 -1
- package/dist/{automation-BE3z19VN.js → automation-BM-OBsKW.js} +1 -1
- package/dist/{background-compaction-queue-D7ncdEa6.js → background-compaction-queue-D2j-0XkH.js} +4 -4
- package/dist/{briefs-NpgMEFh1.js → briefs-JOAoCb6d.js} +3 -3
- package/dist/{catalog-runtime-DwbTyNRD.js → catalog-runtime-CLMA9AXd.js} +1 -1
- package/dist/cli/chat.js +14 -14
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +7 -74
- package/dist/{config-B4b-NXH5.js → config-mIZeGEWv.js} +17 -7
- package/dist/{connections-Dz_AQg5p.js → connections-XhdVg7OR.js} +6 -6
- package/dist/{conversation-CtjR1Zcx.js → conversation-CDWejM4R.js} +1 -0
- package/dist/{conversation-pending-messages-1Kad1Mif.js → conversation-pending-messages-Dh2tfbaw.js} +1 -1
- package/dist/{conversation-privacy-DRsSgLGO.js → conversation-privacy-C6h-X2cZ.js} +1 -1
- package/dist/{credential-sync-ClCnnGVj.js → credential-sync-zigBlXS3.js} +13 -13
- package/dist/{db-CoA7_Xqu.js → db--xuNV7g6.js} +99 -6
- package/dist/{db-BbpttyKH.d.ts → db-DV5AbcGM.d.ts} +8 -6
- package/dist/{executor-SWyHhit0.js → executor-BItuRqAR.js} +58 -9
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-BN5drSEZ.js → logging-Cb6MGvdt.js} +1 -1
- package/dist/{message-D4qjpW1C.js → message-BTGgSmaH.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-Xi-mTLOV.js → oauth-callback-server-Dvh1aOIi.js} +2 -2
- package/dist/{projection-DXl4ftyL.js → projection-DLQgfO5N.js} +15 -96
- package/dist/{prompt-Dmx6IfWZ.js → prompt-qp_LdxLX.js} +5 -6
- package/dist/{registry-DosVt9f9.js → registry-MtwokaqW.js} +1 -1
- package/dist/{resolve-BDjWJC9s.js → resolve-BnJA0UNE.js} +3 -3
- package/dist/{result-CaAFpf4B.js → result-ChL-1KyW.js} +8 -8
- package/dist/{runner-h96Mkss6.js → runner-BONN7Dp2.js} +8 -8
- package/dist/{sandbox-egress-signals-rK91BW7i.js → sandbox-egress-signals-nmlmI5Ab.js} +1 -1
- package/dist/{schema-CHsBmXIj.d.ts → schema-DgvcyJ1y.d.ts} +38 -1
- package/dist/{schema-C_v8wb80.js → schema-yr0ccDni.js} +29 -4
- package/dist/{service-account-WUMVuqVL.js → service-account-Bd0lBaGr.js} +3 -3
- package/dist/{service-account-BpGpScaT.js → service-account-kio5nXSD.js} +3 -3
- package/dist/{session-stop-xYK15HUu.js → session-stop-CeCXL3j9.js} +11 -11
- package/dist/{skills-DHApyCjj.js → skills-e3DDNlKO.js} +2 -2
- package/dist/{spawn-BQQrwGNe.js → spawn--cRxITWQ.js} +5 -5
- package/dist/{stop-CBeD6_Gs.js → stop-Iai5N2PU.js} +25 -26
- package/dist/{store-xtibD98L.js → store-C8LsaJwS.js} +3 -3
- package/dist/{task-runner-BYPN4BEO.js → task-runner-Dw7exu0-.js} +11 -11
- package/dist/{turn-failure-response-jNVl00MD.js → turn-failure-response-BqTTx3XG.js} +8 -8
- package/dist/{validation-DGeB_moV.js → validation-BrGahtnv.js} +1 -1
- package/dist/{version-C6nqU3Qc.js → version-Bdqhx8Qh.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-9KLQibjn.js → viewer-CjRFHR5U.js} +3 -3
- package/dist/{warmup-7S6z068f.js → warmup-DuxCtzKC.js} +69 -23
- package/dist/{work-xwX6unUE.js → work-BWBG1EGV.js} +11 -11
- package/dist/{worker-CiCCfwd4.js → worker-DAnBIVMs.js} +6 -6
- package/migrations/0062_plugin_report_index.sql +1 -20
- package/migrations/0078_plugin_conversation_index.sql +1 -20
- package/migrations/0079_conversation_event_author_index.sql +1 -20
- package/migrations/0080_conversation_event_latest_message_indexes.sql +2 -27
- package/migrations/0090_guardian_review_time_index.sql +1 -20
- package/migrations/0091_conversation_participant_unsubscribed_index.sql +1 -20
- package/migrations/0097_conversation_kind_automation.sql +6 -0
- package/migrations/meta/0097_snapshot.json +4490 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +4 -4
|
@@ -1,27 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|