@sentry/junior 0.308.0 → 0.310.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 (89) hide show
  1. package/dist/{actor-D2iXzvlN.js → actor-BsBdxDXQ.js} +0 -1
  2. package/dist/{adapter-context-BO432242.js → adapter-context-BhKpjpGD.js} +2 -2
  3. package/dist/{admin-vSmheo3Z.js → admin-tgZEZAk2.js} +2 -2
  4. package/dist/{agent-runner-BnOofGFG.js → agent-runner-D9cvNlQl.js} +245 -204
  5. package/dist/api/schema.d.ts +1 -1
  6. package/dist/api/schema.js +5 -5
  7. package/dist/api.d.ts +4 -2
  8. package/dist/api.js +416 -272
  9. package/dist/{app-CqYqy541.d.ts → app-B_7Wn0en.d.ts} +4 -6
  10. package/dist/app.d.ts +1 -1
  11. package/dist/app.js +74 -193
  12. package/dist/{background-compaction-queue-BpmDEQf6.js → background-compaction-queue-BGHqkhkY.js} +4 -4
  13. package/dist/{briefs-Dbh94cRp.js → briefs-DKxkoruh.js} +3 -3
  14. package/dist/{catalog-runtime-q9AJjuUN.js → catalog-runtime-BxwzbLKY.js} +1 -1
  15. package/dist/cli/chat.js +16 -16
  16. package/dist/cli/check.js +10 -10
  17. package/dist/cli/main.js +3 -3
  18. package/dist/cli/plugins.js +4 -4
  19. package/dist/cli/snapshot-create.js +5 -5
  20. package/dist/cli/upgrade.d.ts +1 -1
  21. package/dist/cli/upgrade.js +3 -3
  22. package/dist/{config-Cx8H0MRw.js → config-Dkt2Le2b.js} +51 -92
  23. package/dist/{continue-in-slack-CtTv1tkn.js → continue-in-slack-BWVwePKD.js} +6 -6
  24. package/dist/{conversation--f85g4zL.js → conversation-M9KZ5JxF.js} +7 -2
  25. package/dist/{conversation-feed-BNs9KiqC.js → conversation-feed-Ci6YD1N-.js} +1 -1
  26. package/dist/{conversation-privacy-CivmFlWP.js → conversation-privacy-C39g8BY4.js} +1 -1
  27. package/dist/{conversation-turn-C9-Nfnsy.js → conversation-turn-CBlZIH02.js} +20 -21
  28. package/dist/{credential-sync-CWIORwD9.js → credential-sync-vGnrB0BY.js} +31 -23
  29. package/dist/{db-C41UgdBj.d.ts → db-B4Hjxr-u.d.ts} +2 -2
  30. package/dist/{db-CO6Y10eM.js → db-CFZggNoy.js} +20 -10
  31. package/dist/{executor-Doo-N6Yn.js → executor-BPkZDx5-.js} +12 -4
  32. package/dist/fan-out-Cod-yEHG.js +10 -0
  33. package/dist/{history-N7IVbUom.js → history-CYstOMKX.js} +6 -0
  34. package/dist/{connections-DUylBPiR.js → html-2r2KmLwi.js} +146 -11
  35. package/dist/{install-Y2s9ZPvk.js → install-C-oE6C_u.js} +2 -2
  36. package/dist/instrumentation.js +2 -2
  37. package/dist/{lineage-BcqyhMyp.js → lineage-CsvrEFQe.js} +2 -2
  38. package/dist/{logging-DnBYBM8z.js → logging-D5gkyvnK.js} +1 -1
  39. package/dist/{message-fSnXIqvl.js → message-DwvJ-I3w.js} +8 -8
  40. package/dist/{model-input-DRChpXJ7.js → model-input-MAq2881y.js} +15 -10
  41. package/dist/nitro.d.ts +1 -1
  42. package/dist/nitro.js +4 -4
  43. package/dist/{oauth-callback-server-BUU6zd_T.js → oauth-callback-server-DIF6Li06.js} +2 -2
  44. package/dist/{oauth-relay-gO_Ynmpb.js → oauth-relay-DPE-wrwO.js} +1 -1
  45. package/dist/{package-discovery-x4AvVhMj.js → package-discovery-DD9vencX.js} +0 -1
  46. package/dist/{projection-Bqn6zdVT.js → projection-jZSlEAXG.js} +116 -123
  47. package/dist/{prompt-DAjjk5fm.js → prompt-CaMyeCpA.js} +25 -14
  48. package/dist/{registry-tHJLCtKS.js → registry-BBkWFCl8.js} +3 -3
  49. package/dist/{resolve-z2sKt8xM.js → resolve-B38MkHXE.js} +3 -3
  50. package/dist/{result-D2wshngt.js → result-BaqSZcJb.js} +12 -13
  51. package/dist/{runner-BvNPWLAy.js → runner-11h8PrHh.js} +10 -10
  52. package/dist/{sandbox-egress-signals-CmHD-6vr.js → sandbox-egress-signals-CTcACAtJ.js} +1 -1
  53. package/dist/{schedule-BG1tEbRF.js → schedule-DWxZ3kja.js} +1 -1
  54. package/dist/{schema-CRXcj4fj.d.ts → schema-DriSvB40.d.ts} +43 -43
  55. package/dist/{schema-D4jdesIu.js → schema-obw5jvR4.js} +65 -28
  56. package/dist/{service-account-B2d1Er_r.js → service-account-Bx93N1n1.js} +3 -3
  57. package/dist/{service-account-CddxU-yC.js → service-account-Zc5bUcIJ.js} +7 -8
  58. package/dist/{session-stop-BQ0J0Fph.js → session-stop-BfY4rhJs.js} +179 -199
  59. package/dist/{skills-Dm2-5nn5.js → skills-C8Npu5zO.js} +99 -57
  60. package/dist/{slack-conversation-unfurl-CLH0tTLk.js → slack-conversation-unfurl-DlRVA02H.js} +18 -15
  61. package/dist/{spawn-PwAuSN59.js → spawn-CXr58R0x.js} +6 -6
  62. package/dist/{state-rXH58smZ.js → state-CGrGVeQC.js} +4 -4
  63. package/dist/{stop-CcHPEcFE.js → stop-DYzjRf2U.js} +176 -135
  64. package/dist/{store-7QA00oK6.js → store-D4FQ1Nml.js} +5 -5
  65. package/dist/{task-queue-DvQZH5rG.js → task-queue-CaZffYaH.js} +7 -4
  66. package/dist/{task-runner-CyZMcuZy.js → task-runner-Dm7BHbGp.js} +11 -12
  67. package/dist/{thread-context-C-hLTQST.js → thread-context-Dyj1KWaY.js} +13 -11
  68. package/dist/{turn-session-routing-Cqjj1B3i.js → turn-session-routing-CD0BRCex.js} +4 -4
  69. package/dist/{turn-user-message-DbU7MNd9.js → turn-user-message-9IxeEv5v.js} +14 -5
  70. package/dist/{queue-CbEHUO0l.d.ts → types-fnU7Xs__.d.ts} +3 -1
  71. package/dist/{users-B-UpCmw9.js → users-CaUAYMb3.js} +1 -1
  72. package/dist/{validation-BEUlev32.js → validation-DxVNIxA0.js} +1 -1
  73. package/dist/{version-BE1OyrXV.js → version-Cr7Z71yG.js} +1 -1
  74. package/dist/version.js +1 -1
  75. package/dist/{viewer-CqOkWizK.js → viewer-AHldghAD.js} +7 -5
  76. package/dist/{warmup-HFgFZFwS.js → warmup-C6LOZ2d2.js} +138 -80
  77. package/dist/{worker-CCEDWbsY.js → worker-CUBtu1Li.js} +8 -8
  78. package/migrations/0121_people_list_metric_index.sql +1 -0
  79. package/migrations/0122_automation_rollout_repair.sql +56 -0
  80. package/migrations/0123_cache_warming_history_reset.sql +10 -0
  81. package/migrations/0124_artifact_visibility.sql +9 -0
  82. package/migrations/0125_artifact_public_sha_index.sql +1 -0
  83. package/migrations/meta/0121_snapshot.json +5481 -0
  84. package/migrations/meta/0122_snapshot.json +5481 -0
  85. package/migrations/meta/0123_snapshot.json +5481 -0
  86. package/migrations/meta/0124_snapshot.json +5516 -0
  87. package/migrations/meta/0125_snapshot.json +5516 -0
  88. package/migrations/meta/_journal.json +35 -0
  89. package/package.json +7 -7
@@ -0,0 +1,56 @@
1
+ -- While 0117 rolled out, the previous runtime still settled runs. It did not
2
+ -- copy run cost or move last_run_id, so those runs show no cost and their
3
+ -- Automations show an older last run. This recomputes both for runs that ended
4
+ -- after 1794933607046, when 0117 was written. No deploy ran 0117 before then,
5
+ -- so the window covers the whole rollout. Rows that already match are skipped,
6
+ -- so a second run changes nothing.
7
+ -- junior:bounded-backfill: runs that ended since 0117 was written, found through the completed index; each row reads its own Conversation by primary key, and rows that already match are not updated.
8
+ UPDATE "junior_automation_runs"
9
+ SET "cost_micro_usd" = "repair"."cost_micro_usd"
10
+ FROM (
11
+ SELECT "run"."id", round(CASE
12
+ WHEN "usage_json"->'cost'->>'total' IS NOT NULL
13
+ THEN ("usage_json"->'cost'->>'total')::double precision
14
+ WHEN COALESCE(
15
+ "usage_json"->'cost'->>'input',
16
+ "usage_json"->'cost'->>'output',
17
+ "usage_json"->'cost'->>'cacheRead',
18
+ "usage_json"->'cost'->>'cacheWrite'
19
+ ) IS NOT NULL
20
+ THEN COALESCE(("usage_json"->'cost'->>'input')::double precision, 0)
21
+ + COALESCE(("usage_json"->'cost'->>'output')::double precision, 0)
22
+ + COALESCE(("usage_json"->'cost'->>'cacheRead')::double precision, 0)
23
+ + COALESCE(("usage_json"->'cost'->>'cacheWrite')::double precision, 0)
24
+ ELSE NULL
25
+ END * 1000000)::bigint AS "cost_micro_usd"
26
+ FROM "junior_automation_runs" AS "run"
27
+ JOIN "junior_conversations"
28
+ ON "junior_conversations"."conversation_id" = "run"."conversation_id"
29
+ WHERE "run"."completed_at_ms" >= 1794933607046
30
+ AND "run"."status" IN ('blocked', 'completed', 'failed', 'skipped')
31
+ ) AS "repair"
32
+ WHERE "junior_automation_runs"."id" = "repair"."id"
33
+ AND "junior_automation_runs"."cost_micro_usd" IS DISTINCT FROM "repair"."cost_micro_usd";--> statement-breakpoint
34
+ -- junior:bounded-backfill: Automations with a run that ended since 0117 was written; each row reads one index range of its runs, and rows that already match are not updated.
35
+ UPDATE "junior_automations"
36
+ SET "last_run_id" = "repair"."last_run_id"
37
+ FROM (
38
+ SELECT "automation"."id", (
39
+ SELECT "run"."id"
40
+ FROM "junior_automation_runs" AS "run"
41
+ WHERE "run"."automation_id" = "automation"."id"
42
+ AND "run"."status" IN ('blocked', 'completed', 'failed')
43
+ AND "run"."completed_at_ms" IS NOT NULL
44
+ ORDER BY "run"."completed_at_ms" DESC, "run"."id" DESC
45
+ LIMIT 1
46
+ ) AS "last_run_id"
47
+ FROM "junior_automations" AS "automation"
48
+ WHERE "automation"."status" <> 'deleted'
49
+ AND "automation"."id" IN (
50
+ SELECT "automation_id"
51
+ FROM "junior_automation_runs"
52
+ WHERE "completed_at_ms" >= 1794933607046
53
+ )
54
+ ) AS "repair"
55
+ WHERE "junior_automations"."id" = "repair"."id"
56
+ AND "junior_automations"."last_run_id" IS DISTINCT FROM "repair"."last_run_id";
@@ -0,0 +1,10 @@
1
+ -- Days that a cache warming savings re-fill wrote before this release count
2
+ -- hits that no warmup reached and have no warmup cost. This deletes them, so
3
+ -- the System page does not show them as savings. A new re-fill rebuilds them.
4
+ -- junior:bounded-backfill: only the cache warming counters of days that a re-fill wrote, at most 90 days of a few rows per model; live recording does not write those days.
5
+ DELETE FROM "junior_stats"
6
+ WHERE "namespace" = 'cache_warming'
7
+ AND "date" IN (
8
+ SELECT "date" FROM "junior_stats"
9
+ WHERE "namespace" = 'cache_warming' AND "metric" = 'history_days'
10
+ );
@@ -0,0 +1,9 @@
1
+ -- `visibility` replaces `public`. publishImage is the only writer, and it
2
+ -- always wrote `public = true`, so the 'public' default is right for every
3
+ -- existing row. The defaults on both columns keep the previous runtime's
4
+ -- inserts valid during rollout.
5
+ ALTER TABLE "junior_artifacts" ALTER COLUMN "public" SET DEFAULT true;--> statement-breakpoint
6
+ ALTER TABLE "junior_artifacts" ADD COLUMN "visibility" text DEFAULT 'public' NOT NULL;--> statement-breakpoint
7
+ -- Every existing row is 'public' here. NOT VALID skips the scan under lock
8
+ -- and still checks every new write.
9
+ ALTER TABLE "junior_artifacts" ADD CONSTRAINT "junior_artifacts_visibility_check" CHECK ("junior_artifacts"."visibility" in ('conversation', 'internal', 'public')) NOT VALID;
@@ -0,0 +1 @@
1
+ CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS "junior_artifacts_public_sha_uidx" ON "junior_artifacts" USING btree ("conversation_id","sha256") WHERE "junior_artifacts"."visibility" = 'public';