deepline 0.3.551 → 0.3.553

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 (324) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +130 -12
  2. package/dist/bundling-sources/sdk/src/compat.ts +239 -87
  3. package/dist/bundling-sources/sdk/src/config.ts +113 -2
  4. package/dist/bundling-sources/sdk/src/errors.ts +2 -0
  5. package/dist/bundling-sources/sdk/src/http-core.ts +124 -10
  6. package/dist/bundling-sources/sdk/src/index.ts +2 -0
  7. package/dist/bundling-sources/sdk/src/integrations.ts +6 -4
  8. package/dist/bundling-sources/sdk/src/play.ts +3 -0
  9. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -1
  10. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  11. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +66 -30
  12. package/dist/bundling-sources/sdk/src/tool-calls.ts +2 -1
  13. package/dist/bundling-sources/sdk/src/tool-failure-hint.ts +104 -0
  14. package/dist/bundling-sources/sdk/src/types.ts +9 -1
  15. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +4 -2
  16. package/dist/bundling-sources/shared_libs/integration-contracts/billing-plan-skus.ts +25 -0
  17. package/dist/bundling-sources/shared_libs/monitors/action-actor.ts +2 -0
  18. package/dist/bundling-sources/shared_libs/monitors/billing/credit-recovery.ts +58 -4
  19. package/dist/bundling-sources/shared_libs/monitors/billing/policy-builders.ts +8 -0
  20. package/dist/bundling-sources/shared_libs/monitors/billing/pricing.ts +11 -0
  21. package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +13 -0
  22. package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +103 -5
  23. package/dist/bundling-sources/shared_libs/monitors/fleets/converge-admission.ts +133 -0
  24. package/dist/bundling-sources/shared_libs/monitors/fleets/fence-attention.ts +165 -0
  25. package/dist/bundling-sources/shared_libs/monitors/fleets/fence-release.ts +726 -0
  26. package/dist/bundling-sources/shared_libs/monitors/fleets/fence-walk.ts +274 -0
  27. package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +1 -0
  28. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +28 -0
  29. package/dist/bundling-sources/shared_libs/monitors/fleets/provider-bulk-wait.ts +126 -0
  30. package/dist/bundling-sources/shared_libs/monitors/fleets/shared-payload.ts +189 -0
  31. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +28 -0
  32. package/dist/bundling-sources/shared_libs/monitors/inbound-publish-key.ts +4 -0
  33. package/dist/bundling-sources/shared_libs/monitors/inventory-counter-errors.ts +25 -0
  34. package/dist/bundling-sources/shared_libs/monitors/org-monitor-limits.ts +65 -0
  35. package/dist/bundling-sources/shared_libs/monitors/package.json +11 -0
  36. package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +152 -1
  37. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +6 -0
  38. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +390 -10
  39. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +34 -0
  40. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +66 -30
  41. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +30 -0
  42. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +80 -13
  43. package/dist/bundling-sources/shared_libs/monitors/provider-resource-failure.ts +26 -3
  44. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +41 -13
  45. package/dist/bundling-sources/shared_libs/monitors/signal-radars/raw-receipt-causes.ts +219 -0
  46. package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +21 -10
  47. package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +13 -0
  48. package/dist/bundling-sources/shared_libs/monitors/tamradar-countries.ts +285 -0
  49. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +6 -0
  50. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-integrations.ts +13 -0
  51. package/dist/bundling-sources/shared_libs/observability/dlq.ts +1 -1
  52. package/dist/bundling-sources/shared_libs/observability/log-metadata.ts +5 -3
  53. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +10 -1
  54. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  55. package/dist/bundling-sources/shared_libs/observability/redaction.ts +24 -1
  56. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +312 -41
  57. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -2
  58. package/dist/bundling-sources/shared_libs/play-data-plane/preview-r2-oidc.ts +188 -0
  59. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +170 -16
  60. package/dist/bundling-sources/shared_libs/play-data-plane/runtime-sheet-storage-contract.ts +5 -0
  61. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +68 -2
  62. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +568 -26
  63. package/dist/bundling-sources/shared_libs/play-runtime/ctx-fetch-caller-deadline.ts +200 -0
  64. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +6 -0
  65. package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +21 -1
  66. package/dist/bundling-sources/shared_libs/play-runtime/durable-call-cache.ts +3 -2
  67. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +14 -2
  68. package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +70 -2
  69. package/dist/bundling-sources/shared_libs/play-runtime/durable-tool-identity.ts +3 -3
  70. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +16 -0
  71. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +92 -16
  72. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +1 -0
  73. package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +7 -1
  74. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +62 -0
  75. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +74 -3
  76. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +31 -3
  77. package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +6 -0
  78. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +8 -0
  79. package/dist/bundling-sources/shared_libs/play-runtime/query-result-dataset.ts +19 -0
  80. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +39 -2
  81. package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +9 -1
  82. package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +33 -0
  83. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-contract.ts +24 -0
  84. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +300 -57
  85. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +87 -6
  86. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +241 -10
  87. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +161 -14
  88. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +16 -3
  89. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-compression.ts +37 -0
  90. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +9 -0
  91. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +298 -46
  92. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +13 -0
  93. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +39 -0
  94. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +62 -1
  95. package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +36 -0
  96. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +36 -0
  97. package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +206 -2
  98. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +42 -0
  99. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +185 -64
  100. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-slot-ledger.ts +157 -0
  101. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +110 -2
  102. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-listener-hint.ts +323 -0
  103. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/executor-attempt-standing.ts +72 -0
  104. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/integration-operation-value-storage.ts +23 -4
  105. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +32 -10
  106. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-workspace-purge.ts +199 -0
  107. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +632 -66
  108. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +517 -16
  109. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-api-origin.ts +1 -1
  110. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-receipt-value-storage.ts +9 -0
  111. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +599 -2
  112. package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +26 -1
  113. package/dist/bundling-sources/shared_libs/play-runtime/startup-read-tool-ids.ts +60 -0
  114. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +51 -0
  115. package/dist/bundling-sources/shared_libs/play-runtime/tool-call-retry-facts.ts +2 -0
  116. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +113 -3
  117. package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +5 -7
  118. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +37 -7
  119. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +2 -0
  120. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +3 -0
  121. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +40 -5
  122. package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +3 -0
  123. package/dist/bundling-sources/shared_libs/plays/deploy/control-plane-types.ts +16 -0
  124. package/dist/bundling-sources/shared_libs/plays/deploy/run-deployment.ts +10 -41
  125. package/dist/bundling-sources/shared_libs/plays/extension-bridge.ts +33 -0
  126. package/dist/bundling-sources/shared_libs/plays/row-identity.ts +18 -1
  127. package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +108 -0
  128. package/dist/bundling-sources/shared_libs/plays/trigger-config-contract.ts +14 -0
  129. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +171 -0
  130. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +27 -1
  131. package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +9 -24
  132. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +178 -5
  133. package/dist/bundling-sources/shared_libs/security/signup-email-dns-screen.ts +148 -0
  134. package/dist/bundling-sources/shared_libs/tool-execution-error.ts +108 -0
  135. package/dist/cli/{auth-E7BH4GMJ.mjs → auth-I3QAU4RV.mjs} +8 -7
  136. package/dist/cli/auth-MQCN7WGZ.js +44 -0
  137. package/dist/cli/{billing-OXKU462W.mjs → billing-3IC54OQQ.mjs} +202 -59
  138. package/dist/cli/{billing-DNQAZGX7.js → billing-YGFFVAIC.js} +302 -159
  139. package/dist/cli/{chunk-COGREZAO.js → chunk-2B5B5KAW.js} +210 -128
  140. package/dist/cli/{chunk-UBKA33KY.mjs → chunk-2MGZAI54.mjs} +17 -0
  141. package/dist/cli/{chunk-T2B5BVZE.js → chunk-3NTP2OSG.js} +13 -13
  142. package/dist/cli/{chunk-FOTGUFVK.mjs → chunk-45OAVGU6.mjs} +5 -5
  143. package/dist/cli/{chunk-54EEYLTF.js → chunk-4747TPLV.js} +3 -3
  144. package/dist/cli/{chunk-CLRAANWH.mjs → chunk-4BFTDNHU.mjs} +1 -1
  145. package/dist/cli/{chunk-BGBJV26E.mjs → chunk-4HYNMXXF.mjs} +4 -4
  146. package/dist/cli/{chunk-5S6PHKRV.mjs → chunk-4SMCFQ23.mjs} +1 -1
  147. package/dist/cli/{chunk-VWLHRZFG.mjs → chunk-55F6HNOY.mjs} +5 -5
  148. package/dist/cli/{chunk-LX35AXTN.mjs → chunk-5TYLSS4Q.mjs} +6 -6
  149. package/dist/cli/{chunk-VTGG2RT3.js → chunk-6NE3RRRY.js} +1 -1
  150. package/dist/cli/{chunk-EITMD3A5.js → chunk-6VLFQZK6.js} +8 -8
  151. package/dist/cli/{chunk-MNSTCJMX.mjs → chunk-72V4PDH5.mjs} +18 -18
  152. package/dist/cli/{chunk-ZCDKE4UH.js → chunk-74RES4DS.js} +5 -5
  153. package/dist/cli/{chunk-WKBHUB6R.js → chunk-7GEMELKI.js} +366 -320
  154. package/dist/cli/{chunk-C4CUZH57.js → chunk-7O6J6A7P.js} +1871 -92
  155. package/dist/cli/{chunk-7RSIFA72.js → chunk-7SERLBNR.js} +161 -53
  156. package/dist/cli/{chunk-3G6QZACZ.js → chunk-7YRJ5UC4.js} +21 -21
  157. package/dist/cli/{chunk-I4VKGNAQ.mjs → chunk-A7DLBE5K.mjs} +136 -54
  158. package/dist/cli/{chunk-GGB3JYCW.mjs → chunk-AGICYWGN.mjs} +299 -69
  159. package/dist/cli/{chunk-44KSACJW.mjs → chunk-AGIQDA2T.mjs} +12 -12
  160. package/dist/cli/{chunk-PACD5DGC.js → chunk-AGLR6QVN.js} +255 -109
  161. package/dist/cli/{chunk-NURW5XH4.mjs → chunk-ASB47RXJ.mjs} +1 -1
  162. package/dist/cli/{chunk-4OMAGJ6U.js → chunk-BVDKFS2T.js} +2 -2
  163. package/dist/cli/{chunk-LPJPCGT3.js → chunk-CACFJODG.js} +190 -134
  164. package/dist/cli/{chunk-GVYLCCKN.mjs → chunk-CAEBJOYU.mjs} +1 -1
  165. package/dist/cli/{chunk-XDVT3GOM.js → chunk-CFJFUVX2.js} +18 -1
  166. package/dist/cli/{chunk-POLUE7D5.js → chunk-DP2VH7CO.js} +12 -12
  167. package/dist/cli/{chunk-D6M5HFBB.mjs → chunk-DP64MD6U.mjs} +1 -1
  168. package/dist/cli/{chunk-W425ERWN.mjs → chunk-DZA7RFGL.mjs} +5 -5
  169. package/dist/cli/{chunk-R7J7CJPZ.js → chunk-E2G2DNAB.js} +4 -1
  170. package/dist/cli/{chunk-GGGAEVCX.mjs → chunk-E7WZOX2A.mjs} +22 -18
  171. package/dist/cli/{chunk-44I675YK.js → chunk-FM7LPUPA.js} +41 -41
  172. package/dist/cli/{chunk-2UXDHFSF.mjs → chunk-GAVZ4EOD.mjs} +1 -1
  173. package/dist/cli/{chunk-Z2FIOG3V.js → chunk-HEBO3XNZ.js} +27 -31
  174. package/dist/cli/{chunk-6PWJKMFQ.mjs → chunk-HSJ6X2AQ.mjs} +4 -4
  175. package/dist/cli/{chunk-UPMRIVZB.js → chunk-HVI55MTK.js} +61 -10
  176. package/dist/cli/{chunk-KWSH5T7K.js → chunk-IH6GDNKW.js} +21 -21
  177. package/dist/cli/{chunk-3KYBDAR3.js → chunk-IMX7J4DU.js} +8 -8
  178. package/dist/cli/{chunk-HEHVGEZV.mjs → chunk-INEMTYMT.mjs} +8 -8
  179. package/dist/cli/{chunk-5VVSEU67.js → chunk-IUOGII7D.js} +6 -7
  180. package/dist/cli/{chunk-MXGA6JFI.mjs → chunk-JJGWHITQ.mjs} +5 -5
  181. package/dist/cli/{chunk-QM6Y6S4E.js → chunk-JLGP5XAJ.js} +5 -5
  182. package/dist/cli/{chunk-V6SCP4B7.mjs → chunk-LFOERUQY.mjs} +69 -3
  183. package/dist/cli/{chunk-BBTKAASQ.js → chunk-LFQJW4S2.js} +42 -1
  184. package/dist/cli/{chunk-ZMNGZ6XS.mjs → chunk-LH5PZKER.mjs} +80 -24
  185. package/dist/cli/{chunk-MR5LTVHD.js → chunk-LRDHPOZW.js} +69 -69
  186. package/dist/cli/{chunk-5LUF4LAR.mjs → chunk-LRZGS6RZ.mjs} +3 -0
  187. package/dist/cli/{chunk-SL6MYJYM.js → chunk-MJTVX4QK.js} +35 -35
  188. package/dist/cli/{chunk-UDXULACQ.js → chunk-MLABYI4M.js} +90 -24
  189. package/dist/cli/{chunk-S7IZWGUA.mjs → chunk-NDNHYONK.mjs} +17 -21
  190. package/dist/cli/{chunk-4D3WIZST.mjs → chunk-OTV2UUKW.mjs} +164 -18
  191. package/dist/cli/{chunk-XYE5XPGF.js → chunk-Q6Z6N3A7.js} +18 -18
  192. package/dist/cli/{chunk-7WQNWJQW.mjs → chunk-QG6JIWUL.mjs} +151 -43
  193. package/dist/cli/{chunk-3T65J5RG.mjs → chunk-QI5S5HWB.mjs} +2 -2
  194. package/dist/cli/{chunk-CBV7AKWM.js → chunk-R6DZ6NQ2.js} +5 -5
  195. package/dist/cli/{chunk-PM7MO62Y.mjs → chunk-RMNOZKRI.mjs} +3 -3
  196. package/dist/cli/{chunk-NMWGZD6Y.js → chunk-RTV4RF7N.js} +36 -36
  197. package/dist/cli/{chunk-CQ6JYQSW.js → chunk-SBH4CKPN.js} +11 -11
  198. package/dist/cli/{chunk-BIIJATTX.mjs → chunk-SG3LUONJ.mjs} +3 -3
  199. package/dist/cli/{chunk-2WFPHBR4.js → chunk-TFEXSHPM.js} +22 -18
  200. package/dist/cli/{chunk-5IL7SC45.mjs → chunk-TN4TY6TT.mjs} +6 -7
  201. package/dist/cli/{chunk-WEHCBH5R.mjs → chunk-UEVKMZLR.mjs} +54 -3
  202. package/dist/cli/{chunk-RE5MJBEV.mjs → chunk-UVQJYV76.mjs} +2 -2
  203. package/dist/cli/{chunk-FSIVF2SI.mjs → chunk-VZGLIK5U.mjs} +1 -1
  204. package/dist/cli/{chunk-W2ZWQUHT.js → chunk-WOCHZCUJ.js} +2 -2
  205. package/dist/cli/{chunk-ZDQFBJPO.js → chunk-XLIHTJVM.js} +348 -118
  206. package/dist/cli/{chunk-2ZYRBMQM.js → chunk-Y6SP3JMI.js} +22 -22
  207. package/dist/cli/{chunk-PPSDCN6C.js → chunk-YUA6HA6D.js} +2 -2
  208. package/dist/cli/{chunk-JL2OTMSG.mjs → chunk-Z3A2S3QM.mjs} +41 -0
  209. package/dist/cli/{chunk-E64HFB4L.mjs → chunk-Z6XPSHKM.mjs} +87 -41
  210. package/dist/cli/{chunk-7DOQ3OEX.mjs → chunk-Z7AOIHFE.mjs} +1870 -91
  211. package/dist/cli/command-docs.js +3 -3
  212. package/dist/cli/command-docs.mjs +2 -2
  213. package/dist/cli/concurrent-runs-help-CFJH4KXV.js +22 -0
  214. package/dist/cli/{concurrent-runs-help-C6L6I5OR.mjs → concurrent-runs-help-DNV2X5AZ.mjs} +9 -8
  215. package/dist/cli/{csv-QMF4FWE7.js → csv-SA6ELJY6.js} +16 -15
  216. package/dist/cli/{csv-SYSDXFEM.mjs → csv-ZXZGHWOM.mjs} +7 -6
  217. package/dist/cli/{db-Q7HURWRZ.mjs → db-A54SP6AD.mjs} +16 -16
  218. package/dist/cli/{db-YSHPPA4H.js → db-JHFEIQBU.js} +43 -43
  219. package/dist/cli/describe-PHQ33AGS.mjs +50 -0
  220. package/dist/cli/describe-RHJ4XRFI.js +50 -0
  221. package/dist/cli/describe-core.d.mts +3 -3
  222. package/dist/cli/describe-core.d.ts +3 -3
  223. package/dist/cli/describe-core.js +6 -6
  224. package/dist/cli/describe-core.mjs +5 -5
  225. package/dist/cli/{executions-G7U3VUXN.mjs → executions-HL2M2DFU.mjs} +10 -10
  226. package/dist/cli/{executions-MWBC5TAW.js → executions-TLFZRHBJ.js} +12 -12
  227. package/dist/cli/{feedback-SD55OY6H.js → feedback-5UEX5UZK.js} +17 -16
  228. package/dist/cli/{feedback-GMHIFLBJ.mjs → feedback-QMBTNXVG.mjs} +9 -8
  229. package/dist/cli/git-4JWOOHBG.js +26 -0
  230. package/dist/cli/{git-HPE45OPD.mjs → git-LKGXVIVC.mjs} +8 -7
  231. package/dist/cli/index.js +170 -158
  232. package/dist/cli/index.mjs +60 -48
  233. package/dist/cli/{integrations-HFKVBY6G.js → integrations-6RUTLMN7.js} +23 -27
  234. package/dist/cli/{integrations-2W4MGIQR.mjs → integrations-FGGRVUJ7.mjs} +15 -19
  235. package/dist/cli/{legacy-noops-SXVNDEXN.js → legacy-noops-J3Z7QRWZ.js} +12 -11
  236. package/dist/cli/{legacy-noops-GZYKNU2Z.mjs → legacy-noops-YIPRMVXZ.mjs} +9 -8
  237. package/dist/cli/{mcp-PJRHQHHU.js → mcp-6LWFP7RW.js} +121 -48
  238. package/dist/cli/{mcp-BWA6KULG.mjs → mcp-CHDYFO7F.mjs} +100 -27
  239. package/dist/cli/{monitors-K2WSI6CR.js → monitors-STM6A7OU.js} +221 -186
  240. package/dist/cli/{monitors-SYQKCATO.mjs → monitors-UGRY2BXI.mjs} +58 -23
  241. package/dist/cli/org-3SYOUQCX.mjs +2289 -0
  242. package/dist/cli/org-ZOBSNSIB.js +2289 -0
  243. package/dist/cli/outcomes-H4YYAT5X.js +2865 -0
  244. package/dist/cli/outcomes-Z3P2JE67.mjs +2865 -0
  245. package/dist/cli/{play-SZXY2F2S.js → play-SM4CW2GS.js} +1116 -846
  246. package/dist/cli/{play-TTMABJEI.mjs → play-SN5YWLS7.mjs} +375 -105
  247. package/dist/cli/{providers-GQIOMRQO.mjs → providers-WZ4YBR5Y.mjs} +10 -10
  248. package/dist/cli/{providers-YDHCTZAF.js → providers-WZARYMCF.js} +13 -13
  249. package/dist/cli/{quickstart-PHSSMKCA.mjs → quickstart-2575BNKA.mjs} +7 -6
  250. package/dist/cli/{quickstart-BNYOXQXG.js → quickstart-PS4YHQJ6.js} +9 -8
  251. package/dist/cli/{run-GFIAZXVL.js → run-FLZ6OTM7.js} +51 -51
  252. package/dist/cli/{run-74C3C75C.mjs → run-ZUHCZOJS.mjs} +31 -31
  253. package/dist/cli/run-identity-LMLFMACS.js +31 -0
  254. package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MAZ7ANH5.mjs} +9 -3
  255. package/dist/cli/{search-3SWUB7KX.mjs → search-HLPPKQEO.mjs} +11 -11
  256. package/dist/cli/search-JJWVHR3N.js +32 -0
  257. package/dist/cli/{search-output-K2SWHVHQ.mjs → search-output-PDAXNOGP.mjs} +9 -8
  258. package/dist/cli/{search-output-6JF3S4TP.js → search-output-RXJLU36B.js} +12 -11
  259. package/dist/cli/{secrets-2M4XWEKE.mjs → secrets-CGELYQ3H.mjs} +11 -11
  260. package/dist/cli/{secrets-2SAKLH2H.js → secrets-QJNG7G2Y.js} +20 -20
  261. package/dist/cli/sessions-DHTBT2GN.js +23 -0
  262. package/dist/cli/{sessions-A64BCXTO.mjs → sessions-ELMWVR4M.mjs} +9 -8
  263. package/dist/cli/{settings-HV64WIJF.js → settings-44I44P5F.js} +89 -89
  264. package/dist/cli/{settings-SVGEC3FI.mjs → settings-RR3LZXL7.mjs} +16 -16
  265. package/dist/cli/{setup-EDC3NEJ3.mjs → setup-KGWRWH4B.mjs} +20 -19
  266. package/dist/cli/{setup-FHXOLQGQ.js → setup-KTEYOCJO.js} +60 -59
  267. package/dist/cli/skills-EPZPEXI2.js +37 -0
  268. package/dist/cli/{skills-3HGHZMXB.mjs → skills-FPRID2I5.mjs} +10 -9
  269. package/dist/cli/tools-IGQQ5TML.js +57 -0
  270. package/dist/cli/{tools-P2QS6A6Q.mjs → tools-PI4WMDLY.mjs} +23 -23
  271. package/dist/cli/update-4RNCVYGE.js +37 -0
  272. package/dist/cli/{update-552BYQM4.mjs → update-VJOJAZ7B.mjs} +14 -11
  273. package/dist/cli/{views-PA25NAE3.js → views-NTUOLNQU.js} +62 -64
  274. package/dist/cli/{views-LD5HXJYY.mjs → views-OVPSINZO.mjs} +47 -49
  275. package/dist/cli/{workflow-FIDBUQV6.js → workflow-2UDYDM6F.js} +23 -23
  276. package/dist/cli/{workflow-LDYFGBYP.mjs → workflow-7OEFNXZC.mjs} +13 -13
  277. package/dist/{client-DuDFiJDU.d.mts → client-B8f7RNF8.d.mts} +1 -1
  278. package/dist/{client-t9HZAkFD.d.ts → client-C5TgXmJQ.d.ts} +1 -1
  279. package/dist/{client-core-DydMQOft.d.mts → client-core-SLLGBTht.d.mts} +285 -23
  280. package/dist/{client-core-CJRzLanv.d.ts → client-core-p0sOxnkl.d.ts} +285 -23
  281. package/dist/{compiler-manifest-BqwVrOri.d.mts → compiler-manifest-D_zZEh9Q.d.mts} +70 -5
  282. package/dist/{compiler-manifest-BqwVrOri.d.ts → compiler-manifest-D_zZEh9Q.d.ts} +70 -5
  283. package/dist/{errors-BU8FB99X.d.mts → errors-CZCrBFrQ.d.mts} +1 -1
  284. package/dist/{errors-DfVN_FUG.d.ts → errors-DsUkLrdZ.d.ts} +1 -1
  285. package/dist/{index-BGnvtYGc.d.ts → index-B6RTOZGC.d.ts} +1 -1
  286. package/dist/{index-DjZgwpGw.d.mts → index-DeOVrEmX.d.mts} +1 -1
  287. package/dist/index.d.mts +7 -7
  288. package/dist/index.d.ts +7 -7
  289. package/dist/index.js +66 -55
  290. package/dist/index.mjs +25 -14
  291. package/dist/install-integrity.json +162 -142
  292. package/dist/plays/bundle-play-file.d.mts +3 -3
  293. package/dist/plays/bundle-play-file.d.ts +3 -3
  294. package/dist/plays/bundle-play-file.mjs +23 -4
  295. package/dist/plays/csv-data-input.js +3 -3
  296. package/dist/plays/csv-data-input.mjs +2 -2
  297. package/dist/plays/play-description.d.mts +2 -2
  298. package/dist/plays/play-description.d.ts +2 -2
  299. package/dist/plays/run-request.d.mts +2 -2
  300. package/dist/plays/run-request.d.ts +2 -2
  301. package/dist/plays/run-request.js +4 -4
  302. package/dist/plays/run-request.mjs +3 -3
  303. package/dist/release.d.mts +1 -1
  304. package/dist/release.d.ts +1 -1
  305. package/dist/release.js +2 -2
  306. package/dist/release.mjs +1 -1
  307. package/dist/server.d.mts +4 -4
  308. package/dist/server.d.ts +4 -4
  309. package/dist/server.js +15 -13
  310. package/dist/server.mjs +9 -7
  311. package/package.json +1 -1
  312. package/dist/cli/auth-B4PI7GVY.js +0 -43
  313. package/dist/cli/concurrent-runs-help-JEFQZTJI.js +0 -21
  314. package/dist/cli/describe-PXTSBJTL.js +0 -50
  315. package/dist/cli/describe-YGMQBV44.mjs +0 -50
  316. package/dist/cli/git-I3JV7IGH.js +0 -25
  317. package/dist/cli/org-5KD7X7IA.mjs +0 -1282
  318. package/dist/cli/org-YQ2CR32B.js +0 -1282
  319. package/dist/cli/run-identity-G257GQED.js +0 -25
  320. package/dist/cli/search-2RRRF4LW.js +0 -32
  321. package/dist/cli/sessions-SBH27JNW.js +0 -22
  322. package/dist/cli/skills-Y3SRLOYD.js +0 -36
  323. package/dist/cli/tools-OFYPUPUV.js +0 -57
  324. package/dist/cli/update-SOUSCLB7.js +0 -34
@@ -2,6 +2,7 @@ import 'server-only';
2
2
 
3
3
  import { workUnitAsyncStorage } from 'next/dist/server/app-render/work-unit-async-storage.external';
4
4
  import { AsyncLocalStorage } from 'node:async_hooks';
5
+ import { redactTelemetryPath } from './redaction';
5
6
 
6
7
  export type LogMetadata = Record<string, unknown>;
7
8
 
@@ -106,9 +107,10 @@ function getActiveLogMetadata(): LogMetadata {
106
107
  const contextMetadata = storage.getStore();
107
108
  const requestMetadata = getRequestMetadataFromHeaders();
108
109
 
109
- if (!contextMetadata && requestMetadata) return requestMetadata;
110
- if (!requestMetadata) return contextMetadata ?? {};
111
- return { ...requestMetadata, ...contextMetadata };
110
+ const metadata = { ...requestMetadata, ...contextMetadata };
111
+ return typeof metadata.request_path === 'string'
112
+ ? { ...metadata, request_path: redactTelemetryPath(metadata.request_path) }
113
+ : metadata;
112
114
  }
113
115
 
114
116
  function mergeLogArgs(args: unknown[], metadata: LogMetadata): unknown[] {
@@ -199,6 +199,15 @@ export const OPERATIONS_QUEUE_CATALOG = [
199
199
  600_000,
200
200
  1_800_000,
201
201
  ),
202
+ queue(
203
+ 'monitor-fleet-fence-attention',
204
+ 'Monitor Fleet create fences needing an operator',
205
+ 'leased_workset',
206
+ 'monitors',
207
+ 'Fleet create batches whose unanswered creates complete inventory reads still do not find; only an operator release on evidence ends them',
208
+ 1_800_000,
209
+ 3_600_000,
210
+ ),
202
211
  queue(
203
212
  'provider-monitor-reconciliation',
204
213
  'Provider-monitor reconciliation',
@@ -240,7 +249,7 @@ export const OPERATIONS_QUEUE_CATALOG = [
240
249
  'Signal-radar raw receipts not written',
241
250
  'provider_queue',
242
251
  'monitors',
243
- 'Read-only evidence: tenant raw callback receipts not written as rows, including deliberate raw-only captures; act on the dead-letter item',
252
+ 'Tenant raw callback receipts not written as rows; each names its cause, many are deliberate raw-only captures; retire one once addressed, redrive through the dead-letter item',
244
253
  300_000,
245
254
  900_000,
246
255
  ),
@@ -275,6 +275,7 @@ export const QUEUE_CONNECTOR_BACKENDS: Readonly<
275
275
  'monitor-fleet-convergence': 'convex',
276
276
  'monitor-deployment-jobs': 'workpool',
277
277
  'monitor-batch-operations': 'workpool',
278
+ 'monitor-fleet-fence-attention': 'convex',
278
279
  'provider-monitor-reconciliation': 'provider',
279
280
  'signal-radar-inbound-dlq': 'convex',
280
281
  'signal-radar-inbound-receipts': 'convex',
@@ -26,6 +26,29 @@ const INLINE_SECRET_PATTERN = new RegExp(
26
26
  const POSTGRES_CREDENTIAL_PATTERN =
27
27
  /\b(postgres(?:ql)?:\/\/[^:\s/@]+:)[^@\s]+@/gi;
28
28
 
29
+ /** Route capabilities are credentials even when they contain only ordinary hex. */
30
+ function redactCapabilityPaths(value: string): string {
31
+ return value
32
+ .replace(/(\/(?:api\/v2\/auth\/)?cli\/claim\/)[^/?#\s"'<>]+/gi, '$1[token]')
33
+ .replace(
34
+ /(\/(?:for-you|api\/v2\/gifting|api\/v2\/communications\/webhooks\/resend|api\/v2\/webhooks\/(?:inbound|draft))\/)[^/?#\s"'<>]+/gi,
35
+ '$1[token]',
36
+ )
37
+ .replace(
38
+ /(\/api\/v2\/monitors\/provider-callbacks\/webhook\/)[^/?#\s"'<>]+\/[^/?#\s"'<>]+\/[^/?#\s"'<>]+/gi,
39
+ '$1[provider]/[orgId]/[token]',
40
+ )
41
+ .replace(
42
+ /(\/api\/v2\/ingestion\/crm\/webhooks\/)[^/?#\s"'<>]+\/[^/?#\s"'<>]+\/[^/?#\s"'<>]+/gi,
43
+ '$1[orgId]/[provider]/[token]',
44
+ );
45
+ }
46
+
47
+ /** Safe path context: no query/fragment and no bearer capabilities in segments. */
48
+ export function redactTelemetryPath(value: string): string {
49
+ return redactPlainTelemetryText(value.split(/[?#]/, 1)[0]);
50
+ }
51
+
29
52
  /** Whether a structured telemetry field name must never retain its value. */
30
53
  export function isSensitiveTelemetryFieldName(value: string): boolean {
31
54
  return SENSITIVE_FIELD_PATTERN.test(value);
@@ -60,7 +83,7 @@ function redactStructuredValue(
60
83
 
61
84
  function redactPlainTelemetryText(value: string): string {
62
85
  return (
63
- value
86
+ redactCapabilityPaths(value)
64
87
  // Scoped to the provider host: `key` elsewhere remains an identifier.
65
88
  .replace(
66
89
  /https?:\/\/(?:api|bulkapi)\.millionverifier\.com(?=[:/?#]|$)[^\s"'<>]*/gi,
@@ -464,11 +464,29 @@
464
464
  "locator": "schedule:",
465
465
  "owner": "integrations",
466
466
  "criticality": "maintenance",
467
- "purpose": "Refresh live OpenAPI snapshots and open or update the generated refresh pull request.",
468
- "successDefinition": "Snapshots/artifacts are current and the refresh PR is updated; no diff is a valid no-op.",
469
- "failureDefinition": "Refresh, generation, validation, or PR create/update fails.",
467
+ "purpose": "Refresh each provider's live OpenAPI snapshot on its own, open or update the refresh pull request, have Claude Code fix held-back providers, and report to #deepline-provider-openapi-refresh.",
468
+ "successDefinition": "Every provider that compiles is refreshed and the refresh PR is updated (no diff is a valid no-op); held-back providers are named in the report and either fixed in a Claude PR or flagged for a human.",
469
+ "failureDefinition": "Generation, the refresh PR, the Claude fix attempt, or the Slack report fails. A held-back provider alone is not a failure.",
470
470
  "startGraceMs": 600000,
471
- "runTimeoutMs": 3600000,
471
+ "runTimeoutMs": 14400000,
472
+ "failureAlert": "github_workflow_run",
473
+ "domainReportRequired": true
474
+ },
475
+ {
476
+ "id": "github.claude-ci-usage-daily",
477
+ "name": "Claude CI usage daily",
478
+ "scheduler": "github_actions",
479
+ "cadence": "0 15 * * *",
480
+ "timezone": "UTC",
481
+ "source": ".github/workflows/claude-ci-usage-daily.yml",
482
+ "locator": "schedule:",
483
+ "owner": "integrations",
484
+ "criticality": "maintenance",
485
+ "purpose": "Post the last day's Claude Code cost and tokens of the CI bots on the shared Claude token to #deepline-provider-openapi-refresh.",
486
+ "successDefinition": "The usage message posts to Slack; a day with no Claude runs posts zeros.",
487
+ "failureDefinition": "Listing runs, reading transcripts, or the Slack post fails.",
488
+ "startGraceMs": 600000,
489
+ "runTimeoutMs": 1800000,
472
490
  "failureAlert": "github_workflow_run",
473
491
  "domainReportRequired": true
474
492
  },
@@ -490,6 +508,24 @@
490
508
  "failureAlert": "github_workflow_run",
491
509
  "domainReportRequired": true
492
510
  },
511
+ {
512
+ "id": "github.merge-train",
513
+ "name": "Merge train",
514
+ "scheduler": "github_actions",
515
+ "cadence": "*/5 * * * *",
516
+ "timezone": "UTC",
517
+ "source": ".github/workflows/merge-train.yml",
518
+ "locator": "schedule:",
519
+ "owner": "platform",
520
+ "criticality": "operational",
521
+ "purpose": "Land or fail the oldest merge train once its required check concludes, and start trains for PRs labeled train.",
522
+ "successDefinition": "The train is disabled, or every concluded train is landed with main matching its tested tree or failed with its PRs labeled, and any eligible PRs are boarded.",
523
+ "failureDefinition": "A GitHub read or write fails, a member cannot be squash-merged, or main's tree differs from the tree the train tested.",
524
+ "startGraceMs": 600000,
525
+ "runTimeoutMs": 1800000,
526
+ "failureAlert": "github_workflow_run",
527
+ "domainReportRequired": true
528
+ },
493
529
  {
494
530
  "id": "github.release-train",
495
531
  "name": "Release train",
@@ -803,18 +839,19 @@
803
839
  "domainReportRequired": true
804
840
  },
805
841
  {
806
- "id": "vercel.signal-radar-dead-letter-digest",
807
- "name": "Signal radar dead-letter digest",
842
+ "id": "vercel.monitor-health-digest",
843
+ "name": "Monitor health digest",
808
844
  "scheduler": "vercel_cron",
809
- "cadence": "0 9 * * *",
810
- "timezone": "UTC",
845
+ "cadence": "0 10 * * *",
846
+ "timezone": "America/New_York",
847
+ "vercelSchedule": "0 14,15 * * *",
811
848
  "source": "apps/deepline-api/vercel.json",
812
- "locator": "/api/v2/cron/signal-radar-dead-letter-digest",
849
+ "locator": "/api/v2/cron/monitor-health-digest",
813
850
  "owner": "monitors",
814
851
  "criticality": "operational",
815
- "purpose": "Scan monitored organizations for signal-radar ingestion dead letters, alert on backlog, and advance recovery cursors.",
816
- "successDefinition": "All selected organizations are scanned, backlog is reported, and the cursor advances only after complete evidence.",
817
- "failureDefinition": "A scan/connection or alert fails, or the cursor advances without complete evidence.",
852
+ "purpose": "Once a day at 10:00 America/New_York, read every monitor queue, outbox, journal and cron and post one digest of what is wrong; post nothing on a clean day. Vercel calls it at 14:00 and 15:00 UTC (vercelSchedule), which cover EDT and EST; the call in the other hour returns before scheduled-work recording, so only the 10:00 New York report is an occurrence.",
853
+ "successDefinition": "Every monitored workspace with live monitors and every monitor source is read, counts keep their exactness, and the digest is posted when anything is wrong (nothing is posted when all is clean).",
854
+ "failureDefinition": "The org list or day claim cannot be read, or the digest of a day with findings is rejected by Slack. A source or workspace that cannot be read is reported in the digest and makes the run a warning.",
818
855
  "startGraceMs": 300000,
819
856
  "runTimeoutMs": 1800000,
820
857
  "failureAlert": "vercel_route_wrapper",
@@ -1298,9 +1335,9 @@
1298
1335
  "locator": "/api/v2/cron/neon-managed-usage",
1299
1336
  "owner": "billing",
1300
1337
  "criticality": "operational",
1301
- "purpose": "Record the last three whole UTC days of usage for managed Neon projects owned by existing workspaces, resuming from a saved Neon cursor each hour until the window is done.",
1338
+ "purpose": "Record the last seven whole UTC days of managed Neon usage after a two-hour buffer, finish saved page walks and reread hourly to reconcile late compute at its original price.",
1302
1339
  "successDefinition": "Every page reached this run is recorded and its cursor saved; a finished window or no projects is a valid no-op.",
1303
- "failureDefinition": "A Neon page cannot be read, a usage batch fails to persist, or a workspace's billing ledger shadow refuses its facts.",
1340
+ "failureDefinition": "A Neon page cannot be read, a usage batch fails to persist, a workspace's billing ledger shadow refuses its facts, or an explicit provider compute total decreases and requires review.",
1304
1341
  "startGraceMs": 300000,
1305
1342
  "runTimeoutMs": 600000,
1306
1343
  "failureAlert": "vercel_route_wrapper",
@@ -1433,38 +1470,20 @@
1433
1470
  "domainReportRequired": true
1434
1471
  },
1435
1472
  {
1436
- "id": "convex.refresh-tool-usage-popularity",
1437
- "name": "Refresh tool usage popularity",
1473
+ "id": "convex.integration-catalog-release-maintenance",
1474
+ "name": "Integration catalog release maintenance",
1438
1475
  "scheduler": "convex_cron",
1439
- "cadence": "37 * * * *",
1440
- "timezone": "UTC",
1441
- "source": "packages/convex/crons.ts",
1442
- "locator": "refresh tool usage popularity snapshot",
1443
- "owner": "integrations",
1444
- "criticality": "operational",
1445
- "purpose": "Sum distinct user-days per tool over the last 28 complete UTC days into the snapshot tools search uses as a ranking prior, then delete user-day rows past retention.",
1446
- "successDefinition": "A complete snapshot is published and up to 2,000 expired user-day records are removed; an empty snapshot is valid before usage is folded.",
1447
- "failureDefinition": "If a scan exceeds its input budget or any required read or write fails, Search keeps serving the previous snapshot.",
1448
- "startGraceMs": 120000,
1449
- "runTimeoutMs": 1800000,
1450
- "failureAlert": "convex_action_wrapper",
1451
- "domainReportRequired": true
1452
- },
1453
- {
1454
- "id": "convex.publish-shadow-tool-rates",
1455
- "name": "Publish shadow tool rates",
1456
- "scheduler": "convex_cron",
1457
- "cadence": "47 * * * *",
1476
+ "cadence": "*/10 * * * *",
1458
1477
  "timezone": "UTC",
1459
1478
  "source": "packages/convex/crons.ts",
1460
- "locator": "publish shadow tool rates",
1479
+ "locator": "integration catalog release maintenance",
1461
1480
  "owner": "integrations",
1462
- "criticality": "operational",
1463
- "purpose": "Publish completed workspace/tool/day buckets into weighted 28-day shadow tool rates.",
1464
- "successDefinition": "The leased run publishes completed buckets within its budget and saves its scan position. Incomplete workspaces are counted and revisited on the next scan.",
1465
- "failureDefinition": "A publication read or write fails. A successful bounded run can leave work for the next invocation.",
1481
+ "criticality": "maintenance",
1482
+ "purpose": "Delete integration catalog releases past their 30-day rollback window (and abandoned unreadable ones), and prune shared vectors superseded content-addressed releases no longer serve, paced to 1 MiB/s of deleted bytes.",
1483
+ "successDefinition": "Steps reach completion or the five-minute run budget; zero eligible releases is a valid no-op.",
1484
+ "failureDefinition": "A cleanup or prune step fails, or eligible releases stop shrinking across runs.",
1466
1485
  "startGraceMs": 120000,
1467
- "runTimeoutMs": 180000,
1486
+ "runTimeoutMs": 600000,
1468
1487
  "failureAlert": "convex_action_wrapper",
1469
1488
  "domainReportRequired": true
1470
1489
  },
@@ -1864,6 +1883,42 @@
1864
1883
  "failureAlert": "convex_native_mutation",
1865
1884
  "domainReportRequired": true
1866
1885
  },
1886
+ {
1887
+ "id": "convex.team-move-batch",
1888
+ "name": "Team move batch",
1889
+ "scheduler": "convex_scheduled_mutation",
1890
+ "cadence": "runAfter 0 from a team move, one page at a time until its child stages are done",
1891
+ "timezone": "UTC",
1892
+ "source": "packages/convex/teamMoves.ts",
1893
+ "locator": "continueMove",
1894
+ "owner": "auth",
1895
+ "criticality": "standard",
1896
+ "purpose": "Move one resource's large child sets (a Play's runs and summaries, a workflow's runs, a Fleet's members) to the team its parent already moved to, in bounded resumable pages.",
1897
+ "successDefinition": "Every stage of the durable teamMoves row is worked and the move is marked done.",
1898
+ "failureDefinition": "Convex reports a failed continuation mutation; the move stays moving with its cursor until re-sent or resumed for its org.",
1899
+ "startGraceMs": 120000,
1900
+ "runTimeoutMs": 60000,
1901
+ "failureAlert": "convex_native_mutation",
1902
+ "domainReportRequired": true
1903
+ },
1904
+ {
1905
+ "id": "convex.scim-group-sync-batch",
1906
+ "name": "SCIM group sync batch",
1907
+ "scheduler": "convex_scheduled_mutation",
1908
+ "cadence": "runAfter 0 from a SCIM group mapping change, group delete, or large member change, one page at a time until the group's sync is done",
1909
+ "timezone": "UTC",
1910
+ "source": "packages/convex/scimGroupSync.ts",
1911
+ "locator": "continueGroupSync",
1912
+ "owner": "auth",
1913
+ "criticality": "standard",
1914
+ "purpose": "Bring a SCIM group's workspace grants and group-only workspace member rows in line with its members and mapping, in bounded resumable pages, after the change itself already took effect.",
1915
+ "successDefinition": "The group's durable scimGroupSync row is worked through its members and grants stages and deleted.",
1916
+ "failureDefinition": "Convex reports a failed continuation mutation; the sync row keeps its place until a newer change to the group or the org's resume control starts a new chain.",
1917
+ "startGraceMs": 120000,
1918
+ "runTimeoutMs": 60000,
1919
+ "failureAlert": "convex_native_mutation",
1920
+ "domainReportRequired": true
1921
+ },
1867
1922
  {
1868
1923
  "id": "convex.sql-listener-dispatch-retry",
1869
1924
  "name": "SQL-listener dispatch retry",
@@ -1990,5 +2045,221 @@
1990
2045
  "runTimeoutMs": 5400000,
1991
2046
  "failureAlert": "github_workflow_run",
1992
2047
  "domainReportRequired": true
2048
+ },
2049
+ {
2050
+ "id": "convex.ledger-shadow-journal-drain",
2051
+ "name": "Ledger shadow journal writer drain",
2052
+ "scheduler": "convex_scheduled_action",
2053
+ "cadence": "runAfter(0) when a shadow book's writer lease is taken; lease-owned continuation and linger hops",
2054
+ "source": "packages/convex/ledgerJournalWriter.ts",
2055
+ "locator": "drainWriter",
2056
+ "purpose": "Apply a shadow book's journal writer turns (inert: runs only on shadow books, and only while the shadow ceiling is above 0 or a dev/Preview harness forces it).",
2057
+ "successDefinition": "The drain applies its turns under its writer lease epoch and idles, hands over, or is fenced by a newer epoch.",
2058
+ "failureDefinition": "The native scheduled action fails; the writer lease watch restarts the drain at the next epoch.",
2059
+ "runTimeoutMs": 600000,
2060
+ "timezone": "UTC",
2061
+ "owner": "billing",
2062
+ "criticality": "reporting",
2063
+ "startGraceMs": 120000,
2064
+ "failureAlert": "convex_native_scheduled_function",
2065
+ "domainReportRequired": true
2066
+ },
2067
+ {
2068
+ "id": "convex.ledger-shadow-journal-watch",
2069
+ "name": "Ledger shadow journal writer lease watch",
2070
+ "scheduler": "convex_scheduled_mutation",
2071
+ "cadence": "runAfter at each drain epoch's lease end plus the watch grace",
2072
+ "source": "packages/convex/ledgerJournalWriter.ts",
2073
+ "locator": "watchWriterLease",
2074
+ "purpose": "Restart a shadow book's writer drain whose action died (inert: shadow books only, ceiling 0).",
2075
+ "successDefinition": "The watch re-arms for a live lease, ends for a released or superseded epoch, or takes the lapsed lease over at the next epoch.",
2076
+ "failureDefinition": "The native scheduled mutation fails; the next append or lease request takes the lapsed lease over.",
2077
+ "runTimeoutMs": 60000,
2078
+ "timezone": "UTC",
2079
+ "owner": "billing",
2080
+ "criticality": "reporting",
2081
+ "startGraceMs": 120000,
2082
+ "failureAlert": "convex_native_scheduled_function",
2083
+ "domainReportRequired": true
2084
+ },
2085
+ {
2086
+ "id": "convex.ledger-shadow-journal-page-sweep",
2087
+ "name": "Ledger shadow journal slot page settle and carry sweep",
2088
+ "scheduler": "convex_scheduled_mutation",
2089
+ "cadence": "runAt each slot page's window end plus the settle delay; carried tickets runAt the settle plus the carry window",
2090
+ "source": "packages/convex/ledgerJournalPages.ts",
2091
+ "locator": "settleSlotPage",
2092
+ "purpose": "Settle each shadow book's slot page once and return its carried tickets' reserve (inert: shadow books only, ceiling 0).",
2093
+ "successDefinition": "The page closes with its spend and appends its totals once, or is skipped as already closed or rescheduled as early.",
2094
+ "failureDefinition": "The native scheduled mutation fails; the writer's page watchdog schedules the settle again at its next org sweep.",
2095
+ "runTimeoutMs": 60000,
2096
+ "timezone": "UTC",
2097
+ "owner": "billing",
2098
+ "criticality": "reporting",
2099
+ "startGraceMs": 120000,
2100
+ "failureAlert": "convex_native_scheduled_function",
2101
+ "domainReportRequired": true
2102
+ },
2103
+ {
2104
+ "id": "convex.ledger-shadow-follower-drain",
2105
+ "name": "Ledger shadow follower drain",
2106
+ "scheduler": "convex_scheduled_action",
2107
+ "cadence": "runAfter(0) when an organization's follower lease is taken; lease-owned continuation while a pending row is due within the linger",
2108
+ "source": "packages/convex/ledgerJournalShadow.ts",
2109
+ "locator": "drainShadowFollower",
2110
+ "purpose": "Compare each due shadowed call with main's reservation (read in a query), finalize its immutable diff row and apply main's terminal fact to its shadow async hold, or back the row off (inert: shadow books only, shadow ceiling 0).",
2111
+ "successDefinition": "Every due pending row of the organization is finalized or backed off, and the drain continues, lingers or releases its lease with one timer for the next due row.",
2112
+ "failureDefinition": "The native scheduled action fails; the follower lease watch takes the lapsed lease over at the next epoch, and the orphan sweep requests a drain for overdue rows.",
2113
+ "runTimeoutMs": 600000,
2114
+ "timezone": "UTC",
2115
+ "owner": "billing",
2116
+ "criticality": "reporting",
2117
+ "startGraceMs": 120000,
2118
+ "failureAlert": "convex_native_scheduled_function",
2119
+ "domainReportRequired": true
2120
+ },
2121
+ {
2122
+ "id": "convex.ledger-shadow-follower-watch",
2123
+ "name": "Ledger shadow follower lease watch",
2124
+ "scheduler": "convex_scheduled_mutation",
2125
+ "cadence": "runAfter at each follower drain epoch's lease end plus the watch grace",
2126
+ "source": "packages/convex/ledgerJournalShadow.ts",
2127
+ "locator": "watchFollowerLease",
2128
+ "purpose": "Restart an organization's follower drain whose action died with due rows left (inert: shadow books only, shadow ceiling 0).",
2129
+ "successDefinition": "The watch re-arms for a live lease, ends for a superseded or idle one, or takes the lapsed lease over at the next epoch.",
2130
+ "failureDefinition": "The native scheduled mutation fails; the next shadow admit or the orphan sweep requests a drain.",
2131
+ "runTimeoutMs": 60000,
2132
+ "timezone": "UTC",
2133
+ "owner": "billing",
2134
+ "criticality": "reporting",
2135
+ "startGraceMs": 120000,
2136
+ "failureAlert": "convex_native_scheduled_function",
2137
+ "domainReportRequired": true
2138
+ },
2139
+ {
2140
+ "id": "convex.ledger-owner-freeze-watchdog",
2141
+ "name": "Ledger owner freeze deadline watchdog",
2142
+ "scheduler": "convex_scheduled_mutation",
2143
+ "cadence": "runAt(deadlineAt) scheduled by each billing owner freeze in its own transaction (expireFrozenOwner); plus one bounded pass from the shared operations API run action (expireFrozenOwners). No cron.",
2144
+ "source": "packages/convex/ledgerJournalOwnerOps.ts",
2145
+ "locator": "expireFrozenOwners",
2146
+ "purpose": "Abort every billing owner freeze still frozen past its 15-minute deadline back to main, with no flip, through the owner module (inert: no org can be frozen while LEDGER_OWNER_FLIP_ORGS is empty).",
2147
+ "successDefinition": "Each frozen record past its deadline is aborted to main at the next epoch; no other record is touched.",
2148
+ "failureDefinition": "The native scheduled mutation fails; the frozen org keeps refusing new paid calls (retryable 503) until an operator aborts it or the next pass runs. No money moves either way.",
2149
+ "runTimeoutMs": 60000,
2150
+ "timezone": "UTC",
2151
+ "owner": "billing",
2152
+ "criticality": "reporting",
2153
+ "startGraceMs": 120000,
2154
+ "failureAlert": "convex_native_scheduled_function",
2155
+ "domainReportRequired": true
2156
+ },
2157
+ {
2158
+ "id": "convex.ledger-shadow-orphan-sweep",
2159
+ "name": "Ledger shadow follower orphan sweep",
2160
+ "scheduler": "convex_scheduled_mutation",
2161
+ "cadence": "runAfter(0) from the shared operations API run action, one bounded pass (no cron until the approved activation)",
2162
+ "source": "packages/convex/ledgerJournalShadow.ts",
2163
+ "locator": "sweepOrphanFollowers",
2164
+ "purpose": "Request one follower drain for each organization whose pending rows are overdue with no live drain (inert: refuses while the shadow ceiling is 0).",
2165
+ "successDefinition": "One bounded page of overdue rows is read and each organization without a live drain gets exactly one drain request.",
2166
+ "failureDefinition": "The native scheduled mutation fails; overdue rows stay pending (no money moves) until the next pass.",
2167
+ "runTimeoutMs": 60000,
2168
+ "timezone": "UTC",
2169
+ "owner": "billing",
2170
+ "criticality": "reporting",
2171
+ "startGraceMs": 120000,
2172
+ "failureAlert": "convex_native_scheduled_function",
2173
+ "domainReportRequired": true
2174
+ },
2175
+ {
2176
+ "id": "convex.ledger-shadow-diff-retention",
2177
+ "name": "Ledger shadow diff retention",
2178
+ "scheduler": "convex_scheduled_mutation",
2179
+ "cadence": "runAfter(0) from the shared operations API run action; self-continued while pages come back full, bounded per pass (no cron until the approved activation)",
2180
+ "source": "packages/convex/ledgerJournalShadowOps.ts",
2181
+ "locator": "sweepDiffRetention",
2182
+ "purpose": "Delete shadow diff rows finalized more than 30 days ago (inert: refuses while the shadow ceiling is 0).",
2183
+ "successDefinition": "Expired diff rows are deleted in bounded pages until a short page or the pass bound.",
2184
+ "failureDefinition": "The native scheduled mutation fails; expired rows remain until the next pass.",
2185
+ "runTimeoutMs": 60000,
2186
+ "timezone": "UTC",
2187
+ "owner": "billing",
2188
+ "criticality": "reporting",
2189
+ "startGraceMs": 120000,
2190
+ "failureAlert": "convex_native_scheduled_function",
2191
+ "domainReportRequired": true
2192
+ },
2193
+ {
2194
+ "id": "convex.ledger-shadow-journal-retention",
2195
+ "name": "Ledger shadow journal retention",
2196
+ "scheduler": "convex_scheduled_action",
2197
+ "cadence": "runAfter(0) from the shared operations API run action; the pass continues itself from its book cursor until every shadow book is visited (no cron until the approved activation)",
2198
+ "source": "packages/convex/ledgerJournalShadowOps.ts",
2199
+ "locator": "sweepJournalRetention",
2200
+ "purpose": "Delete shadow journal rows of calls closed past retention (7 days, and never before the follower's last check), only for books whose probes find expired rows, in bounded rounds; never a book's funding, books, writer lease, fence or floor (inert: refuses while the shadow ceiling is 0).",
2201
+ "successDefinition": "Every shadow book is probed once per pass, and each book with expired rows is retained within the per-book round bound; unfinished books are reported.",
2202
+ "failureDefinition": "The native scheduled action fails; expired rows remain until the next pass.",
2203
+ "runTimeoutMs": 600000,
2204
+ "timezone": "UTC",
2205
+ "owner": "billing",
2206
+ "criticality": "reporting",
2207
+ "startGraceMs": 120000,
2208
+ "failureAlert": "convex_native_scheduled_function",
2209
+ "domainReportRequired": true
2210
+ },
2211
+ {
2212
+ "id": "convex.outcome-schedule-fire",
2213
+ "name": "Outcome schedule post",
2214
+ "scheduler": "convex_scheduled_mutation",
2215
+ "cadence": "runAt each schedule's next time; a repeating schedule sets its own next run (at least 1 minute apart)",
2216
+ "timezone": "UTC",
2217
+ "source": "packages/convex/outcomes.ts",
2218
+ "locator": "fireScheduleInternal",
2219
+ "owner": "product",
2220
+ "criticality": "standard",
2221
+ "purpose": "Post the update or task an outcome schedule is due to post, as its author, after asking again whether that person may still write (rollout, account block, organization membership and archive, author grant, workspace); then set the next run or end the schedule.",
2222
+ "successDefinition": "The entry is posted once (idempotency key per schedule and send) and the schedule advances or ends; or it is ended with the reason its author may no longer write; or it is held because its outcome is paused. A superseded timer does nothing.",
2223
+ "failureDefinition": "Convex reports a failed mutation. Nothing was posted and the schedule stays active and due with no timer; pausing and resuming the outcome sets it going again.",
2224
+ "startGraceMs": 120000,
2225
+ "runTimeoutMs": 60000,
2226
+ "failureAlert": "convex_native_mutation",
2227
+ "domainReportRequired": true
2228
+ },
2229
+ {
2230
+ "id": "convex.outcome-wake-delivery",
2231
+ "name": "Outcome watch wake",
2232
+ "scheduler": "convex_scheduled_action",
2233
+ "cadence": "runAfter(0) when an entry matches a watch that has a wake URL, with one recovery run 30 seconds later; retried after 5, 30 and 120 seconds",
2234
+ "timezone": "UTC",
2235
+ "source": "packages/convex/outcomeWakeDelivery.ts",
2236
+ "locator": "deliver",
2237
+ "owner": "product",
2238
+ "criticality": "standard",
2239
+ "purpose": "Send one empty, unsigned POST to a watch's public HTTPS wake URL so its agent pulls its inbox, after asking again whether the person the agent runs for may still use the outcome. Rings in flight are coalesced.",
2240
+ "successDefinition": "The URL answers 2xx and the watch returns to idle, or rings once more for matches that arrived meanwhile; or nothing is sent because the outcome is paused or the watch was ended for lost standing.",
2241
+ "failureDefinition": "After four tries the watch is marked failing with the last error; its matches stay in the inbox and are still pulled.",
2242
+ "startGraceMs": 120000,
2243
+ "runTimeoutMs": 60000,
2244
+ "failureAlert": "convex_native_scheduled_function",
2245
+ "domainReportRequired": true
2246
+ },
2247
+ {
2248
+ "id": "convex.outcome-claim-expiry",
2249
+ "name": "Outcome task claim expiry",
2250
+ "scheduler": "convex_scheduled_mutation",
2251
+ "cadence": "runAt the end of a task claim's lease; follows the lease when the claim is renewed",
2252
+ "timezone": "UTC",
2253
+ "source": "packages/convex/outcomes.ts",
2254
+ "locator": "expireClaimInternal",
2255
+ "owner": "product",
2256
+ "criticality": "standard",
2257
+ "purpose": "Return a task whose claim's lease ended to ready and tell the outcome's watches (task.expired), so a task a stalled agent held is offered again.",
2258
+ "successDefinition": "The task is ready again and matches are written for the watches that take it; or the timer moves to the renewed lease's end; or it does nothing because the claim ended another way.",
2259
+ "failureDefinition": "Convex reports a failed mutation. The task still reads as ready once its lease has passed and can be claimed; only the notice to watches is missing.",
2260
+ "startGraceMs": 120000,
2261
+ "runTimeoutMs": 60000,
2262
+ "failureAlert": "convex_native_mutation",
2263
+ "domainReportRequired": true
1993
2264
  }
1994
2265
  ]
@@ -20,8 +20,7 @@ export const MANUALLY_RUNNABLE_CONVEX_CRON_JOB_IDS = [
20
20
  'convex.cleanup-expired-legacy-run-logs',
21
21
  'convex.cleanup-expired-analytics-ip2company-cache',
22
22
  'convex.cleanup-expired-domain-health-cache',
23
- 'convex.refresh-tool-usage-popularity',
24
- 'convex.publish-shadow-tool-rates',
23
+ 'convex.integration-catalog-release-maintenance',
25
24
  'convex.refresh-prebuilt-play-cost-stats',
26
25
  'convex.salesforce-oauth-refresh-maintenance',
27
26
  'convex.monitor-fleet-convergence-tick',