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
@@ -0,0 +1,219 @@
1
+ // Why a captured raw callback receipt (`dl_meta.monitor_inbound_raw`) ended
2
+ // `write_failed`. The inbound processor and the dead-letter recorder write the
3
+ // `error` text with `rawReceiptWriteFailedError`; the admin queue reader and
4
+ // the daily dead-letter digest read it back with `classifyRawReceiptError`.
5
+ // Both sides use this one table, so a new or reworded cause cannot drift into
6
+ // the generic typed-write failure (every `write_failed` once read as one).
7
+ //
8
+ // Many `write_failed` receipts are deliberate: a billing-suspended, inactive,
9
+ // errored or retired-binding monitor captures raw-only on purpose, and a
10
+ // finding refused for credits is never recovered (KAR-43). `expected` marks
11
+ // those, so the digest can leave them out of its "needs attention" count.
12
+ import { PROVIDER_CALLBACK_TYPED_WRITE_FAILED_CODE } from './inbound-failure-codes';
13
+
14
+ type ExactCause = {
15
+ readonly text: string;
16
+ readonly expected: boolean;
17
+ readonly message: string;
18
+ };
19
+ type PrefixCause = {
20
+ readonly prefix: string;
21
+ readonly expected: boolean;
22
+ readonly message: string;
23
+ /**
24
+ * `reason`: the detail is a short machine reason (for example
25
+ * `insufficient_credits`) and is shown in the operator message. `withheld`:
26
+ * the detail is free text (an exception message) and is never echoed.
27
+ */
28
+ readonly detail: 'reason' | 'withheld';
29
+ };
30
+ /**
31
+ * The real typed-write failure stores the writer's own message, unchanged, as
32
+ * it always has. It is what any text no other cause owns reads as.
33
+ */
34
+ type FallbackCause = {
35
+ readonly fallback: true;
36
+ readonly expected: false;
37
+ readonly message: string;
38
+ };
39
+ type Cause = ExactCause | PrefixCause | FallbackCause;
40
+
41
+ /** The generic code, kept only for a real typed-write failure. */
42
+ export const RAW_RECEIPT_TYPED_WRITE_FAILED_CODE =
43
+ PROVIDER_CALLBACK_TYPED_WRITE_FAILED_CODE;
44
+
45
+ export const RAW_RECEIPT_CAUSES = {
46
+ binding_retired_raw_only: {
47
+ text: 'Callback matched a retired provider binding during cleanup; typed write skipped.',
48
+ expected: true,
49
+ message:
50
+ 'Captured raw-only on purpose: the callback matched a retired provider binding during cleanup, so no row was written.',
51
+ },
52
+ billing_suspended_raw_only: {
53
+ text: 'Monitor billing is suspended; typed write skipped.',
54
+ expected: true,
55
+ message:
56
+ "Captured raw-only on purpose: the monitor's billing is suspended, so no row was written.",
57
+ },
58
+ monitor_inactive_raw_only: {
59
+ text: 'Monitor is inactive; typed write skipped.',
60
+ expected: true,
61
+ message:
62
+ 'Captured raw-only on purpose: the monitor is inactive, so no row was written.',
63
+ },
64
+ monitor_errored_raw_only: {
65
+ text: 'Monitor is errored; typed write skipped.',
66
+ expected: true,
67
+ message:
68
+ 'Captured raw-only on purpose: the monitor is errored, so no row was written, charged or dispatched.',
69
+ },
70
+ post_write_credit_exhausted: {
71
+ text: 'A provider event was already admitted before the credit balance changed; no automatic monitor suspension was started.',
72
+ expected: false,
73
+ message:
74
+ 'The typed row was written, then the credit balance changed before delivery finished; no monitor suspension was started.',
75
+ },
76
+ monitor_billing_denied: {
77
+ prefix: 'Monitor billing admission denied before typed write: ',
78
+ detail: 'reason',
79
+ expected: true,
80
+ message:
81
+ 'Refused before the typed write because billing admission was denied; refused findings are not recovered and cannot be redriven.',
82
+ },
83
+ billing_preflight_failed: {
84
+ prefix: 'Monitor billing preflight failed before typed write: ',
85
+ detail: 'reason',
86
+ expected: false,
87
+ message:
88
+ 'Billing preflight failed before the typed write; no row was written and the monitor was moved to billing suspension.',
89
+ },
90
+ post_write_billing_suspended: {
91
+ prefix: 'Post-write delivery incomplete: ',
92
+ detail: 'reason',
93
+ expected: false,
94
+ message:
95
+ 'The typed row was written, but billing failed before delivery finished; the monitor was moved to billing suspension.',
96
+ },
97
+ billing_settle_unavailable_after_write: {
98
+ prefix: 'Billing settle unavailable after typed write: ',
99
+ detail: 'withheld',
100
+ expected: false,
101
+ message:
102
+ 'The typed row was written, but billing settlement was unavailable; the inbound queue retries the receipt.',
103
+ },
104
+ dispatch_failed_after_write: {
105
+ prefix: 'Inline dispatch failed after typed write: ',
106
+ detail: 'withheld',
107
+ expected: false,
108
+ message:
109
+ 'The typed row was written and billed, but the inline dispatch after it failed.',
110
+ },
111
+ retryable_failure_redelivery_pending: {
112
+ prefix: 'Retryable failure; the inbound queue redelivers this receipt: ',
113
+ detail: 'withheld',
114
+ expected: false,
115
+ message:
116
+ 'A retryable failure after capture; the inbound queue redelivers the receipt, and one that uses up its deliveries becomes a dead letter.',
117
+ },
118
+ dead_lettered: {
119
+ prefix: 'Dead-lettered: ',
120
+ detail: 'withheld',
121
+ expected: false,
122
+ message:
123
+ 'The event used up its deliveries and was dead-lettered; act on its signal-radar-inbound-legacy-dlq item.',
124
+ },
125
+ [RAW_RECEIPT_TYPED_WRITE_FAILED_CODE]: {
126
+ fallback: true,
127
+ expected: false,
128
+ message: 'The provider callback could not be written by its typed owner.',
129
+ },
130
+ } as const satisfies Record<string, Cause>;
131
+
132
+ export type RawReceiptCauseCode = keyof typeof RAW_RECEIPT_CAUSES;
133
+ type ExactCauseCode = {
134
+ [Code in RawReceiptCauseCode]: (typeof RAW_RECEIPT_CAUSES)[Code] extends {
135
+ text: string;
136
+ }
137
+ ? Code
138
+ : never;
139
+ }[RawReceiptCauseCode];
140
+
141
+ const CAUSE_ENTRIES = Object.entries(RAW_RECEIPT_CAUSES) as Array<
142
+ [RawReceiptCauseCode, Cause]
143
+ >;
144
+
145
+ /** The `error` text a `write_failed` mark stores for one cause. */
146
+ export function rawReceiptWriteFailedError<Code extends RawReceiptCauseCode>(
147
+ code: Code,
148
+ ...detail: Code extends ExactCauseCode ? [] : [detail: string]
149
+ ): string {
150
+ const cause: Cause = RAW_RECEIPT_CAUSES[code];
151
+ if ('text' in cause) return cause.text;
152
+ if ('prefix' in cause) return `${cause.prefix}${detail[0] ?? ''}`;
153
+ return detail[0] ?? '';
154
+ }
155
+
156
+ export type RawReceiptCause = {
157
+ code: RawReceiptCauseCode;
158
+ /** Captured raw-only on purpose; nothing to recover. */
159
+ expected: boolean;
160
+ message: string;
161
+ };
162
+
163
+ const REASON = /^[a-z][a-z0-9_]{0,63}$/;
164
+
165
+ /**
166
+ * The cause of a `write_failed` receipt from its stored `error` text. Text no
167
+ * other cause owns - the real typed-write failure, an empty error, or one
168
+ * stored before this table existed - reads as the generic typed-write failure,
169
+ * as every receipt did before.
170
+ */
171
+ export function classifyRawReceiptError(value: unknown): RawReceiptCause {
172
+ const text = typeof value === 'string' ? value : '';
173
+ for (const [code, cause] of CAUSE_ENTRIES) {
174
+ if ('text' in cause) {
175
+ if (text === cause.text) {
176
+ return { code, expected: cause.expected, message: cause.message };
177
+ }
178
+ continue;
179
+ }
180
+ if (!('prefix' in cause) || !text.startsWith(cause.prefix)) continue;
181
+ const detail = text.slice(cause.prefix.length);
182
+ return {
183
+ code,
184
+ expected: cause.expected,
185
+ message:
186
+ cause.detail === 'reason' && REASON.test(detail)
187
+ ? `${cause.message} Reason: ${detail}.`
188
+ : cause.message,
189
+ };
190
+ }
191
+ const fallback = RAW_RECEIPT_CAUSES[RAW_RECEIPT_TYPED_WRITE_FAILED_CODE];
192
+ return {
193
+ code: RAW_RECEIPT_TYPED_WRITE_FAILED_CODE,
194
+ expected: fallback.expected,
195
+ message: fallback.message,
196
+ };
197
+ }
198
+
199
+ /**
200
+ * One SQL `CASE` expression that classifies `column` the way
201
+ * `classifyRawReceiptError` does, for a grouped count that never reads rows
202
+ * out. The texts are bound as parameters through `bind`, which returns the
203
+ * placeholder for each value.
204
+ */
205
+ export function rawReceiptCauseSqlCase(
206
+ column: string,
207
+ bind: (value: string) => string,
208
+ ): string {
209
+ const branches = CAUSE_ENTRIES.flatMap(([code, cause]) =>
210
+ 'text' in cause
211
+ ? [`WHEN ${column} = ${bind(cause.text)}::text THEN ${bind(code)}::text`]
212
+ : 'prefix' in cause
213
+ ? [
214
+ `WHEN starts_with(${column}, ${bind(cause.prefix)}::text) THEN ${bind(code)}::text`,
215
+ ]
216
+ : [],
217
+ );
218
+ return `CASE ${branches.join(' ')} ELSE ${bind(RAW_RECEIPT_TYPED_WRITE_FAILED_CODE)}::text END`;
219
+ }
@@ -3,6 +3,7 @@ import { isIP } from 'node:net';
3
3
  import { internal } from '@deepline/convex-client/function-references';
4
4
  import { hasSnitcherSessionIdentity } from '@deepline/ingestion-v2/snitcher-session-identity';
5
5
  import { getRequiredInternalConvexClient } from '@deepline/convex-client/internal-client';
6
+ import { getSnitcherRadarWebhookSecret } from './snitcher-radar';
6
7
 
7
8
  export { hasSnitcherSessionIdentity };
8
9
 
@@ -182,13 +183,14 @@ function apiKey() {
182
183
  return value;
183
184
  }
184
185
 
185
- function ipCacheHash(input: { orgId: string; ip: string }) {
186
+ function ipCacheHash(input: { orgId: string; ip: string; fixture: boolean }) {
186
187
  // The cache is per workspace. Sharing a resolved visitor IP across tenants
187
188
  // would cross a customer-data boundary even though it would lower provider
188
189
  // spend. Keep the raw IP out of Convex control-plane state.
189
- return createHmac('sha256', apiKey())
190
- .update(`${input.orgId}\u0000${input.ip}`)
191
- .digest('hex');
190
+ const key = input.fixture ? getSnitcherRadarWebhookSecret() : apiKey();
191
+ const hash = createHmac('sha256', key);
192
+ if (input.fixture) hash.update('snitcher-fixture\u0000');
193
+ return hash.update(`${input.orgId}\u0000${input.ip}`).digest('hex');
192
194
  }
193
195
 
194
196
  function cacheableResult(
@@ -225,7 +227,7 @@ function resultFromCache(
225
227
  */
226
228
  export async function findSnitcherIp2Company(
227
229
  ip: string | null | undefined,
228
- fetchImplementation: FetchImplementation = fetch,
230
+ fetchImplementation?: FetchImplementation,
229
231
  ): Promise<SnitcherIp2CompanyResult> {
230
232
  const candidate = readString(ip);
231
233
  if (!candidate) return { status: 'skipped_no_ip', ip: null };
@@ -235,13 +237,13 @@ export async function findSnitcherIp2Company(
235
237
 
236
238
  let response: Response;
237
239
  try {
238
- response = await fetchImplementation(
240
+ response = await (fetchImplementation ?? fetch)(
239
241
  `${SNITCHER_IP2COMPANY_URL}?${new URLSearchParams({ ip: candidate })}`,
240
242
  {
241
243
  method: 'POST',
242
244
  headers: {
243
- Authorization: `Bearer ${apiKey()}`,
244
245
  Accept: 'application/json',
246
+ ...(!fetchImplementation && { Authorization: `Bearer ${apiKey()}` }),
245
247
  },
246
248
  },
247
249
  );
@@ -290,10 +292,15 @@ export async function findSnitcherIp2Company(
290
292
  };
291
293
  }
292
294
 
293
- /** Adds a non-secret enrichment envelope consumed by the typed session writer. */
295
+ /**
296
+ * Adds a non-secret enrichment envelope consumed by the typed session writer.
297
+ * `fetchImplementation` is the fake Snitcher's answerer for a workspace that
298
+ * holds its fixture; every other caller uses the real lookup.
299
+ */
294
300
  export async function enrichSnitcherSessionWithIp2Company(input: {
295
301
  orgId: string;
296
302
  payload: Record<string, unknown>;
303
+ fetchImplementation?: FetchImplementation;
297
304
  }): Promise<Record<string, unknown>> {
298
305
  const root = readRecord(input.payload);
299
306
  if (!root) return input.payload;
@@ -303,7 +310,11 @@ export async function enrichSnitcherSessionWithIp2Company(input: {
303
310
  return { ...root, _deepline_ip2company: enrichment };
304
311
  }
305
312
 
306
- const cacheKey = ipCacheHash({ orgId: input.orgId, ip });
313
+ const cacheKey = ipCacheHash({
314
+ orgId: input.orgId,
315
+ ip,
316
+ fixture: input.fetchImplementation !== undefined,
317
+ });
307
318
  const leaseId = randomUUID();
308
319
  const client = getRequiredInternalConvexClient();
309
320
  const claim = await client.mutation(internal.analyticsIp2cCache.claim, {
@@ -327,7 +338,7 @@ export async function enrichSnitcherSessionWithIp2Company(input: {
327
338
 
328
339
  let enrichment: SnitcherIp2CompanyResult;
329
340
  try {
330
- enrichment = await findSnitcherIp2Company(ip);
341
+ enrichment = await findSnitcherIp2Company(ip, input.fetchImplementation);
331
342
  } catch (error) {
332
343
  await client.mutation(internal.analyticsIp2cCache.release, {
333
344
  orgId: input.orgId,
@@ -48,4 +48,17 @@ export const MONITOR_STARTER_TEMPLATES: MonitorStarterTemplate[] = [
48
48
  prompt:
49
49
  '/deepline-gtm Monitor my target accounts for news like launches, expansions, and leadership changes.',
50
50
  },
51
+ {
52
+ // Visitors come from the customer's own RB2B or Vector account through
53
+ // its webhook monitor (rb2b.visitor_events / vector.visitor_events).
54
+ // #9686 removed "Website visitor intent", which asked for high-intent
55
+ // visits without naming a source, as an unsupported use case; naming the
56
+ // provider is what makes this one deployable.
57
+ id: 'website-visitors',
58
+ title: "Who's visiting your website",
59
+ description:
60
+ 'Using RB2B or Vector? Turn the people and companies on your site into leads.',
61
+ prompt:
62
+ '/deepline-gtm Monitor visitors to my website through my RB2B or Vector account, and turn identified visitors from my target accounts into leads.',
63
+ },
51
64
  ];
@@ -0,0 +1,285 @@
1
+ // TamRadar's supported countries for the industry radar `countries` filter:
2
+ // each row is the two-letter code, the name TamRadar saves and returns, and
3
+ // its other accepted names. TamRadar matches any of them ignoring case and
4
+ // extra spaces, so "us", "US" and "United States" are one country.
5
+ // Source: https://docs.tamradar.com/guides/supported-countries (250 countries,
6
+ // Unicode CLDR 48 English names), read 2026-11-17. Runtime-neutral: Convex
7
+ // claim admission and the app derive the same identity key from it.
8
+ const TAMRADAR_COUNTRIES: readonly (
9
+ | readonly [code: string, name: string]
10
+ | readonly [code: string, name: string, alsoAccepted: readonly string[]]
11
+ )[] = [
12
+ ['AF', 'Afghanistan'],
13
+ ['AX', 'Åland Islands'],
14
+ ['AL', 'Albania'],
15
+ ['DZ', 'Algeria'],
16
+ ['AS', 'American Samoa'],
17
+ ['AD', 'Andorra'],
18
+ ['AO', 'Angola'],
19
+ ['AI', 'Anguilla'],
20
+ ['AQ', 'Antarctica'],
21
+ ['AG', 'Antigua & Barbuda'],
22
+ ['AR', 'Argentina'],
23
+ ['AM', 'Armenia'],
24
+ ['AW', 'Aruba'],
25
+ ['AU', 'Australia'],
26
+ ['AT', 'Austria'],
27
+ ['AZ', 'Azerbaijan'],
28
+ ['BS', 'Bahamas'],
29
+ ['BH', 'Bahrain'],
30
+ ['BD', 'Bangladesh'],
31
+ ['BB', 'Barbados'],
32
+ ['BY', 'Belarus'],
33
+ ['BE', 'Belgium'],
34
+ ['BZ', 'Belize'],
35
+ ['BJ', 'Benin'],
36
+ ['BM', 'Bermuda'],
37
+ ['BT', 'Bhutan'],
38
+ ['BO', 'Bolivia'],
39
+ ['BA', 'Bosnia & Herzegovina', ['Bosnia']],
40
+ ['BW', 'Botswana'],
41
+ ['BV', 'Bouvet Island'],
42
+ ['BR', 'Brazil'],
43
+ ['IO', 'British Indian Ocean Territory', ['Chagos Archipelago']],
44
+ ['VG', 'British Virgin Islands'],
45
+ ['BN', 'Brunei'],
46
+ ['BG', 'Bulgaria'],
47
+ ['BF', 'Burkina Faso'],
48
+ ['BI', 'Burundi'],
49
+ ['KH', 'Cambodia'],
50
+ ['CM', 'Cameroon'],
51
+ ['CA', 'Canada'],
52
+ ['CV', 'Cape Verde', ['Cabo Verde']],
53
+ ['BQ', 'Caribbean Netherlands'],
54
+ ['KY', 'Cayman Islands'],
55
+ ['CF', 'Central African Republic'],
56
+ ['TD', 'Chad'],
57
+ ['CL', 'Chile'],
58
+ ['CN', 'China'],
59
+ ['CX', 'Christmas Island'],
60
+ ['CC', 'Cocos (Keeling) Islands', ['Cocos Islands']],
61
+ ['CO', 'Colombia'],
62
+ ['KM', 'Comoros'],
63
+ ['CG', 'Congo - Brazzaville', ['Congo (Republic)']],
64
+ ['CD', 'Congo - Kinshasa', ['Congo (DRC)']],
65
+ ['CK', 'Cook Islands'],
66
+ ['CR', 'Costa Rica'],
67
+ ['CI', 'Côte d’Ivoire', ['Ivory Coast']],
68
+ ['HR', 'Croatia'],
69
+ ['CU', 'Cuba'],
70
+ ['CW', 'Curaçao'],
71
+ ['CY', 'Cyprus'],
72
+ ['CZ', 'Czechia', ['Czech Republic']],
73
+ ['DK', 'Denmark'],
74
+ ['DJ', 'Djibouti'],
75
+ ['DM', 'Dominica'],
76
+ ['DO', 'Dominican Republic'],
77
+ ['EC', 'Ecuador'],
78
+ ['EG', 'Egypt'],
79
+ ['SV', 'El Salvador'],
80
+ ['GQ', 'Equatorial Guinea'],
81
+ ['ER', 'Eritrea'],
82
+ ['EE', 'Estonia'],
83
+ ['SZ', 'Eswatini', ['Swaziland']],
84
+ ['ET', 'Ethiopia'],
85
+ ['FK', 'Falkland Islands', ['Falkland Islands (Islas Malvinas)']],
86
+ ['FO', 'Faroe Islands'],
87
+ ['FJ', 'Fiji'],
88
+ ['FI', 'Finland'],
89
+ ['FR', 'France'],
90
+ ['GF', 'French Guiana'],
91
+ ['PF', 'French Polynesia'],
92
+ ['TF', 'French Southern Territories'],
93
+ ['GA', 'Gabon'],
94
+ ['GM', 'Gambia'],
95
+ ['GE', 'Georgia'],
96
+ ['DE', 'Germany'],
97
+ ['GH', 'Ghana'],
98
+ ['GI', 'Gibraltar'],
99
+ ['GR', 'Greece'],
100
+ ['GL', 'Greenland'],
101
+ ['GD', 'Grenada'],
102
+ ['GP', 'Guadeloupe'],
103
+ ['GU', 'Guam'],
104
+ ['GT', 'Guatemala'],
105
+ ['GG', 'Guernsey'],
106
+ ['GN', 'Guinea'],
107
+ ['GW', 'Guinea-Bissau'],
108
+ ['GY', 'Guyana'],
109
+ ['HT', 'Haiti'],
110
+ ['HM', 'Heard & McDonald Islands'],
111
+ ['HN', 'Honduras'],
112
+ ['HK', 'Hong Kong SAR China', ['Hong Kong']],
113
+ ['HU', 'Hungary'],
114
+ ['IS', 'Iceland'],
115
+ ['IN', 'India'],
116
+ ['ID', 'Indonesia'],
117
+ ['IR', 'Iran'],
118
+ ['IQ', 'Iraq'],
119
+ ['IE', 'Ireland'],
120
+ ['IM', 'Isle of Man'],
121
+ ['IL', 'Israel'],
122
+ ['IT', 'Italy'],
123
+ ['JM', 'Jamaica'],
124
+ ['JP', 'Japan'],
125
+ ['JE', 'Jersey'],
126
+ ['JO', 'Jordan'],
127
+ ['KZ', 'Kazakhstan'],
128
+ ['KE', 'Kenya'],
129
+ ['KI', 'Kiribati'],
130
+ ['XK', 'Kosovo'],
131
+ ['KW', 'Kuwait'],
132
+ ['KG', 'Kyrgyzstan'],
133
+ ['LA', 'Laos'],
134
+ ['LV', 'Latvia'],
135
+ ['LB', 'Lebanon'],
136
+ ['LS', 'Lesotho'],
137
+ ['LR', 'Liberia'],
138
+ ['LY', 'Libya'],
139
+ ['LI', 'Liechtenstein'],
140
+ ['LT', 'Lithuania'],
141
+ ['LU', 'Luxembourg'],
142
+ ['MO', 'Macao SAR China', ['Macao']],
143
+ ['MG', 'Madagascar'],
144
+ ['MW', 'Malawi'],
145
+ ['MY', 'Malaysia'],
146
+ ['MV', 'Maldives'],
147
+ ['ML', 'Mali'],
148
+ ['MT', 'Malta'],
149
+ ['MH', 'Marshall Islands'],
150
+ ['MQ', 'Martinique'],
151
+ ['MR', 'Mauritania'],
152
+ ['MU', 'Mauritius'],
153
+ ['YT', 'Mayotte'],
154
+ ['MX', 'Mexico'],
155
+ ['FM', 'Micronesia'],
156
+ ['MD', 'Moldova'],
157
+ ['MC', 'Monaco'],
158
+ ['MN', 'Mongolia'],
159
+ ['ME', 'Montenegro'],
160
+ ['MS', 'Montserrat'],
161
+ ['MA', 'Morocco'],
162
+ ['MZ', 'Mozambique'],
163
+ ['MM', 'Myanmar (Burma)', ['Myanmar']],
164
+ ['NA', 'Namibia'],
165
+ ['NR', 'Nauru'],
166
+ ['NP', 'Nepal'],
167
+ ['NL', 'Netherlands'],
168
+ ['NC', 'New Caledonia'],
169
+ ['NZ', 'New Zealand', ['Aotearoa New Zealand']],
170
+ ['NI', 'Nicaragua'],
171
+ ['NE', 'Niger'],
172
+ ['NG', 'Nigeria'],
173
+ ['NU', 'Niue'],
174
+ ['NF', 'Norfolk Island'],
175
+ ['KP', 'North Korea'],
176
+ ['MK', 'North Macedonia'],
177
+ ['MP', 'Northern Mariana Islands'],
178
+ ['NO', 'Norway'],
179
+ ['OM', 'Oman'],
180
+ ['PK', 'Pakistan'],
181
+ ['PW', 'Palau'],
182
+ ['PS', 'Palestinian Territories', ['Palestine']],
183
+ ['PA', 'Panama'],
184
+ ['PG', 'Papua New Guinea'],
185
+ ['PY', 'Paraguay'],
186
+ ['PE', 'Peru'],
187
+ ['PH', 'Philippines'],
188
+ ['PN', 'Pitcairn Islands', ['Pitcairn']],
189
+ ['PL', 'Poland'],
190
+ ['PT', 'Portugal'],
191
+ ['PR', 'Puerto Rico'],
192
+ ['QA', 'Qatar'],
193
+ ['RE', 'Réunion'],
194
+ ['RO', 'Romania'],
195
+ ['RU', 'Russia'],
196
+ ['RW', 'Rwanda'],
197
+ ['WS', 'Samoa'],
198
+ ['SM', 'San Marino'],
199
+ ['ST', 'São Tomé & Príncipe'],
200
+ ['SA', 'Saudi Arabia'],
201
+ ['SN', 'Senegal'],
202
+ ['RS', 'Serbia'],
203
+ ['SC', 'Seychelles'],
204
+ ['SL', 'Sierra Leone'],
205
+ ['SG', 'Singapore'],
206
+ ['SX', 'Sint Maarten'],
207
+ ['SK', 'Slovakia'],
208
+ ['SI', 'Slovenia'],
209
+ ['SB', 'Solomon Islands'],
210
+ ['SO', 'Somalia'],
211
+ ['ZA', 'South Africa'],
212
+ ['GS', 'South Georgia & South Sandwich Islands'],
213
+ ['KR', 'South Korea'],
214
+ ['SS', 'South Sudan'],
215
+ ['ES', 'Spain'],
216
+ ['LK', 'Sri Lanka'],
217
+ ['BL', 'St. Barthélemy'],
218
+ ['SH', 'St. Helena'],
219
+ ['KN', 'St. Kitts & Nevis'],
220
+ ['LC', 'St. Lucia'],
221
+ ['MF', 'St. Martin'],
222
+ ['PM', 'St. Pierre & Miquelon'],
223
+ ['VC', 'St. Vincent & Grenadines'],
224
+ ['SD', 'Sudan'],
225
+ ['SR', 'Suriname'],
226
+ ['SJ', 'Svalbard & Jan Mayen'],
227
+ ['SE', 'Sweden'],
228
+ ['CH', 'Switzerland'],
229
+ ['SY', 'Syria'],
230
+ ['TW', 'Taiwan'],
231
+ ['TJ', 'Tajikistan'],
232
+ ['TZ', 'Tanzania'],
233
+ ['TH', 'Thailand'],
234
+ ['TL', 'Timor-Leste', ['East Timor']],
235
+ ['TG', 'Togo'],
236
+ ['TK', 'Tokelau'],
237
+ ['TO', 'Tonga'],
238
+ ['TT', 'Trinidad & Tobago'],
239
+ ['TN', 'Tunisia'],
240
+ ['TR', 'Türkiye', ['Turkey']],
241
+ ['TM', 'Turkmenistan'],
242
+ ['TC', 'Turks & Caicos Islands'],
243
+ ['TV', 'Tuvalu'],
244
+ ['UM', 'U.S. Outlying Islands'],
245
+ ['VI', 'U.S. Virgin Islands'],
246
+ ['UG', 'Uganda'],
247
+ ['UA', 'Ukraine'],
248
+ ['AE', 'United Arab Emirates'],
249
+ ['GB', 'United Kingdom', ['UK']],
250
+ ['US', 'United States'],
251
+ ['UY', 'Uruguay'],
252
+ ['UZ', 'Uzbekistan'],
253
+ ['VU', 'Vanuatu'],
254
+ ['VA', 'Vatican City'],
255
+ ['VE', 'Venezuela'],
256
+ ['VN', 'Vietnam'],
257
+ ['WF', 'Wallis & Futuna'],
258
+ ['EH', 'Western Sahara'],
259
+ ['YE', 'Yemen'],
260
+ ['ZM', 'Zambia'],
261
+ ['ZW', 'Zimbabwe'],
262
+ ];
263
+
264
+ function countryLookupKey(value: string) {
265
+ return value.trim().replace(/\s+/g, ' ').toLowerCase();
266
+ }
267
+
268
+ const TAMRADAR_COUNTRY_NAME_BY_LOOKUP_KEY: ReadonlyMap<string, string> =
269
+ new Map(
270
+ TAMRADAR_COUNTRIES.flatMap(([code, name, alsoAccepted = []]) =>
271
+ [code, name, ...alsoAccepted].map(
272
+ (accepted) => [countryLookupKey(accepted), name] as const,
273
+ ),
274
+ ),
275
+ );
276
+
277
+ /**
278
+ * The country name TamRadar saves for an accepted code or name, or null when
279
+ * TamRadar does not accept the value (it refuses the create with a 400).
280
+ */
281
+ export function tamradarCanonicalCountryName(value: string): string | null {
282
+ return (
283
+ TAMRADAR_COUNTRY_NAME_BY_LOOKUP_KEY.get(countryLookupKey(value)) ?? null
284
+ );
285
+ }
@@ -22,6 +22,8 @@ export const VECTOR_POST_DEPLOY_GUIDANCE = {
22
22
  externalId: 'contact_123',
23
23
  companyDomain: 'example.com',
24
24
  },
25
+ removal_step:
26
+ "In Vector, remove this monitor's Deepline webhook endpoint from the segment's actions. Deepline refuses its deliveries now.",
25
27
  } as const satisfies ProviderMonitorPostDeployGuidance;
26
28
 
27
29
  export const RB2B_POST_DEPLOY_GUIDANCE = {
@@ -42,6 +44,8 @@ export const RB2B_POST_DEPLOY_GUIDANCE = {
42
44
  'LinkedIn URL': 'https://www.linkedin.com/in/example',
43
45
  Website: 'https://example.com',
44
46
  },
47
+ removal_step:
48
+ "In RB2B, open Integrations, choose Webhook and remove this monitor's Deepline URL. Deepline refuses its deliveries now.",
45
49
  } as const satisfies ProviderMonitorPostDeployGuidance;
46
50
 
47
51
  export const SNITCHER_POST_DEPLOY_GUIDANCE = {
@@ -66,6 +70,8 @@ export const SNITCHER_POST_DEPLOY_GUIDANCE = {
66
70
  { event_name: '$pageview', created_at: '2026-01-01T00:00:00.000Z' },
67
71
  ],
68
72
  },
73
+ // No removal_step: Deepline also holds this monitor's Snitcher tracker, so
74
+ // retiring the callback alone is not a delete (#10967).
69
75
  } as const satisfies ProviderMonitorPostDeployGuidance;
70
76
 
71
77
  export const TRACKING_PROVIDER_POST_DEPLOY_GUIDANCE = {
@@ -27,6 +27,19 @@ export const TRACKING_PROVIDER_INTEGRATIONS = {
27
27
  },
28
28
  } as const;
29
29
 
30
+ /**
31
+ * Whether a public monitor tool is a tracking provider (RB2B, Vector, Deepline
32
+ * Analytics). These are set up in Integrations, which shows the callback URL
33
+ * the customer installs at the provider and uses the fixed monitor key above.
34
+ */
35
+ export function isTrackingProviderMonitorTool(toolId: string): boolean {
36
+ return Object.values(TRACKING_PROVIDER_INTEGRATIONS).some(
37
+ (integration) =>
38
+ integration.tool === toolId ||
39
+ ('publicTool' in integration && integration.publicTool === toolId),
40
+ );
41
+ }
42
+
30
43
  export type TrackingProviderIntegration =
31
44
  (typeof TRACKING_PROVIDER_INTEGRATIONS)[keyof typeof TRACKING_PROVIDER_INTEGRATIONS] & {
32
45
  docsUrl: string;
@@ -1311,7 +1311,7 @@ const DLQ_PATH_METADATA: Readonly<Record<string, DlqPathMetadata>> = {
1311
1311
  enabled: false,
1312
1312
  requiresApproval: true,
1313
1313
  reason:
1314
- 'Raw failure rows are immutable delivery evidence. Provider redelivery and the receipt owner control retries; no per-item operator retry exists.',
1314
+ "A raw receipt keeps only the parsed payload, not the callback token and admission a redrive needs, so no per-item operator retry exists: provider redelivery reclaims the receipt, and a dead-lettered event is redriven through its signal-radar-inbound-legacy-dlq item. Retire a reviewed receipt through the operator overlay.",
1315
1315
  },
1316
1316
  ],
1317
1317
  },