deepline 0.3.535 → 0.3.537

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 (229) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +232 -147
  2. package/dist/bundling-sources/sdk/src/index.ts +4 -0
  3. package/dist/bundling-sources/sdk/src/plays/local-file-discovery.ts +27 -1
  4. package/dist/bundling-sources/sdk/src/plays/run-request.ts +16 -5
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/types.ts +2 -23
  7. package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +26 -14
  8. package/dist/bundling-sources/shared_libs/integration-contracts/monitor-input-contract.ts +33 -8
  9. package/dist/bundling-sources/shared_libs/monitors/fleets/count-drift-alert.ts +121 -0
  10. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +8 -0
  11. package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +14 -82
  12. package/dist/bundling-sources/shared_libs/monitors/package.json +1 -0
  13. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +22 -4
  14. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +0 -26
  15. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +36 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +21 -31
  17. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +88 -96
  18. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +12 -10
  19. package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +3 -1
  20. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +71 -2
  21. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +9 -0
  22. package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +2 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +1 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +127 -9
  25. package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +15 -2
  26. package/dist/bundling-sources/shared_libs/play-runtime/prebuilt-result-quality.ts +1 -1
  27. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -0
  28. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/fixture-capacity-simulator.ts +1 -0
  29. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/gradient2-concurrency-controller.ts +41 -0
  30. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-capacity-policy.ts +6 -0
  31. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-concurrency-policy.ts +9 -0
  32. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +7 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +2 -2
  34. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +5 -2
  35. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +8 -3
  36. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +31 -0
  38. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +6 -0
  39. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +26 -1
  40. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +11 -4
  41. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +73 -18
  42. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +169 -2
  43. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +26 -4
  44. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +84 -49
  45. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -32
  46. package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +13 -1
  47. package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +68 -1
  48. package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +57 -1
  49. package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +22 -9
  50. package/dist/cli/{auth-ZCTMB5RA.mjs → auth-4SUPGDIM.mjs} +7 -7
  51. package/dist/cli/auth-Y2K2ZYYA.js +43 -0
  52. package/dist/cli/{billing-OU2ZHL72.mjs → billing-5JUA3ZM3.mjs} +185 -24
  53. package/dist/cli/{billing-GVFKZQH3.js → billing-SQU726P7.js} +273 -112
  54. package/dist/cli/{chunk-T2N3B7IQ.js → chunk-2GJZLIKW.js} +8 -8
  55. package/dist/cli/{chunk-ZUVE63Y7.js → chunk-2Q7VXTMS.js} +2 -2
  56. package/dist/cli/{chunk-WAIBM6KX.mjs → chunk-37AZHCTP.mjs} +5 -5
  57. package/dist/cli/{chunk-D4MHCCIR.js → chunk-3PMCQ3LK.js} +33 -33
  58. package/dist/cli/{chunk-R4RG4FV5.mjs → chunk-4KWD3MX2.mjs} +13 -10
  59. package/dist/cli/{chunk-PI5R65OQ.js → chunk-5EOEJKSV.js} +1 -1
  60. package/dist/cli/{chunk-XSOTEVOB.js → chunk-6BBGUQJJ.js} +50 -141
  61. package/dist/cli/{chunk-OM732MGV.js → chunk-ALHKB3AE.js} +17 -17
  62. package/dist/cli/{chunk-6LHX33VN.js → chunk-AVQET3NR.js} +9 -6
  63. package/dist/cli/{chunk-W6T23EUC.mjs → chunk-AX2OAXDL.mjs} +1 -1
  64. package/dist/cli/{chunk-SQWET4SL.js → chunk-BBTKAASQ.js} +2 -1
  65. package/dist/cli/{chunk-G2DLG32W.mjs → chunk-BFHR7IC2.mjs} +40 -27
  66. package/dist/cli/{chunk-KWGXHPHL.js → chunk-BGXEMTIG.js} +523 -59
  67. package/dist/cli/{chunk-AUEUAPVS.mjs → chunk-BRRCWUOW.mjs} +1 -1
  68. package/dist/cli/{chunk-QYBAHYP4.mjs → chunk-C37VELBR.mjs} +7 -9
  69. package/dist/cli/{chunk-H6SWS5CG.mjs → chunk-C3XD2WHM.mjs} +2 -2
  70. package/dist/cli/{chunk-NRO3NTVO.js → chunk-CBV7AKWM.js} +5 -5
  71. package/dist/cli/{chunk-CIDATNTY.js → chunk-CFND2ACL.js} +16 -16
  72. package/dist/cli/{chunk-J75DANZY.mjs → chunk-CGDW2CRR.mjs} +2 -2
  73. package/dist/cli/{chunk-RFQWSH6I.js → chunk-CHIGEDAE.js} +3 -3
  74. package/dist/cli/{chunk-QNHHZ63P.mjs → chunk-CQBIO6HW.mjs} +1 -1
  75. package/dist/cli/{chunk-2KHUFWTK.js → chunk-CQDQNZGH.js} +42 -37
  76. package/dist/cli/{chunk-E3CLOVG5.mjs → chunk-CXTW7SRW.mjs} +50 -141
  77. package/dist/cli/{chunk-4NLRWKZB.js → chunk-D77W6Q67.js} +26 -26
  78. package/dist/cli/{chunk-JWWYLGUT.mjs → chunk-EEFSUCYP.mjs} +475 -11
  79. package/dist/cli/{chunk-STR5LXK4.mjs → chunk-FSIVF2SI.mjs} +1 -1
  80. package/dist/cli/{chunk-6TYRRNXY.mjs → chunk-GI3V4D7K.mjs} +2 -2
  81. package/dist/cli/{chunk-DFJODFMC.mjs → chunk-GPMS6OPX.mjs} +5 -5
  82. package/dist/cli/{chunk-5YAJGRWB.js → chunk-IPVRMYWT.js} +7 -7
  83. package/dist/cli/{chunk-DAPKLYST.js → chunk-IQOIT6E3.js} +41 -41
  84. package/dist/cli/{chunk-ZPGGW27Q.mjs → chunk-JL2OTMSG.mjs} +1 -0
  85. package/dist/cli/{chunk-FGN75ZN6.js → chunk-JMHYDDBQ.js} +390 -382
  86. package/dist/cli/{chunk-KA6ZERJL.js → chunk-JS2SBCWD.js} +6 -6
  87. package/dist/cli/{chunk-W5YJYU4G.mjs → chunk-K4WJ4BYO.mjs} +2 -2
  88. package/dist/cli/{chunk-LVISZFYO.mjs → chunk-KH27B2HJ.mjs} +2 -2
  89. package/dist/cli/{chunk-UUQ2OXMH.js → chunk-KULT6O5K.js} +18 -20
  90. package/dist/cli/{chunk-YFZLZNTH.mjs → chunk-L3JVGNAT.mjs} +4 -4
  91. package/dist/cli/{chunk-HYBZWSSH.js → chunk-L6QAIZNZ.js} +44 -44
  92. package/dist/cli/{chunk-TCVCFZP6.mjs → chunk-NU7B5X6J.mjs} +4 -1
  93. package/dist/cli/{chunk-7PXP2FQK.js → chunk-NXGLJGPB.js} +2 -2
  94. package/dist/cli/{chunk-BNH4Y35W.mjs → chunk-OLH2PHMC.mjs} +2 -2
  95. package/dist/cli/{chunk-GESIFFQX.mjs → chunk-OVX3Q5Q3.mjs} +1 -1
  96. package/dist/cli/{chunk-2D6SWQTK.js → chunk-PJ4ZGZAN.js} +13 -13
  97. package/dist/cli/{chunk-HWPOXCCK.js → chunk-PU42VOBI.js} +8 -8
  98. package/dist/cli/{chunk-RKY4LBX3.mjs → chunk-QDBGPRR2.mjs} +3 -3
  99. package/dist/cli/{chunk-KOZBZPRM.js → chunk-QPDLG7DQ.js} +55 -55
  100. package/dist/cli/{chunk-DWPY6ZID.mjs → chunk-R7JYG6XO.mjs} +1 -1
  101. package/dist/cli/{chunk-K76AEBFY.mjs → chunk-RMVZTBI5.mjs} +4 -4
  102. package/dist/cli/{chunk-IF75RD6U.js → chunk-U2LVWCTD.js} +18 -6
  103. package/dist/cli/{chunk-WNNA4L6Z.js → chunk-UGA5KI4A.js} +22 -22
  104. package/dist/cli/{chunk-ZS2WHWWL.js → chunk-UNDLNT3V.js} +1 -1
  105. package/dist/cli/{chunk-7CWSAEYS.mjs → chunk-V5IIBG2E.mjs} +1 -1
  106. package/dist/cli/{chunk-BF65LB7X.mjs → chunk-VP2K5B3R.mjs} +4 -4
  107. package/dist/cli/{chunk-DYIWDUY4.js → chunk-VRYX2BR4.js} +316 -303
  108. package/dist/cli/{chunk-R2KKEHJN.mjs → chunk-W3J3LT22.mjs} +5 -5
  109. package/dist/cli/{chunk-PHLNYBAA.js → chunk-WBFOV5HT.js} +5 -5
  110. package/dist/cli/{chunk-5EKNDNFQ.js → chunk-WBTYWJLN.js} +2 -2
  111. package/dist/cli/{chunk-C374C22Y.js → chunk-WOQO3GV4.js} +14 -11
  112. package/dist/cli/{chunk-K3IPGMGP.js → chunk-XDS26J7Z.js} +17 -19
  113. package/dist/cli/{chunk-JQQG4QL4.mjs → chunk-Y6AMMXWS.mjs} +3 -3
  114. package/dist/cli/{chunk-7R5DAANG.mjs → chunk-Z2PPB3IO.mjs} +1 -1
  115. package/dist/cli/{chunk-FKD3KL5Q.mjs → chunk-Z2XA6YU4.mjs} +10 -5
  116. package/dist/cli/{chunk-243O3FH5.js → chunk-ZFSB7GXF.js} +5 -5
  117. package/dist/cli/{chunk-MI6ZP7XI.mjs → chunk-ZG7BOECV.mjs} +18 -6
  118. package/dist/cli/{chunk-FZKPPB5P.mjs → chunk-ZHPSJ3LJ.mjs} +85 -77
  119. package/dist/cli/{chunk-K53NKWZO.mjs → chunk-ZUAMXZXC.mjs} +13 -15
  120. package/dist/cli/command-docs.js +2 -2
  121. package/dist/cli/command-docs.mjs +1 -1
  122. package/dist/cli/{csv-CLPVMIRF.mjs → csv-HZP6QMG7.mjs} +6 -6
  123. package/dist/cli/{csv-CD55KEIO.js → csv-JITYN27L.js} +15 -15
  124. package/dist/cli/{db-MQKLDAEO.js → db-FYSRB7O4.js} +36 -36
  125. package/dist/cli/{db-AU4SMWUN.mjs → db-QRIRTOMM.mjs} +9 -9
  126. package/dist/cli/describe-LSOHOLFI.js +49 -0
  127. package/dist/cli/describe-REXJVJC3.mjs +49 -0
  128. package/dist/cli/describe-core.d.mts +3 -3
  129. package/dist/cli/describe-core.d.ts +3 -3
  130. package/dist/cli/describe-core.js +5 -5
  131. package/dist/cli/describe-core.mjs +4 -4
  132. package/dist/cli/{executions-TFIJPUX7.mjs → executions-53KJAFOW.mjs} +9 -9
  133. package/dist/cli/{executions-77GOLWRM.js → executions-BSTF4DDS.js} +11 -11
  134. package/dist/cli/{feedback-OV5YAL3A.js → feedback-6MW3QOXX.js} +16 -16
  135. package/dist/cli/{feedback-2WRSZ5WL.mjs → feedback-CWUJJF3J.mjs} +8 -8
  136. package/dist/cli/{git-VNS4ATLZ.mjs → git-CKVZTJFS.mjs} +7 -7
  137. package/dist/cli/git-S7SWUZ3T.js +25 -0
  138. package/dist/cli/index.js +151 -157
  139. package/dist/cli/index.mjs +51 -57
  140. package/dist/cli/{legacy-noops-HDOB5C6F.js → legacy-noops-QBL4PNGB.js} +11 -11
  141. package/dist/cli/{legacy-noops-C732QDCY.mjs → legacy-noops-USTBRFRX.mjs} +8 -8
  142. package/dist/cli/{monitors-2LYEFXOU.mjs → monitors-6UCG5D7W.mjs} +19 -16
  143. package/dist/cli/{monitors-5IUMHH3E.js → monitors-VCR6SUZD.js} +125 -122
  144. package/dist/cli/{org-G4YGZPHS.mjs → org-GSRBOJVO.mjs} +9 -9
  145. package/dist/cli/{org-ADW2EVAC.js → org-HPILTEG4.js} +89 -89
  146. package/dist/cli/{play-7GQ56C2D.mjs → play-QRTYQNG4.mjs} +123 -76
  147. package/dist/cli/{play-EHSOSSHT.js → play-TK7WOP5H.js} +641 -594
  148. package/dist/cli/{providers-PWCF6OOO.js → providers-HEXNJ5QC.js} +12 -12
  149. package/dist/cli/{providers-WL3YTCSV.mjs → providers-OAQJWVBS.mjs} +9 -9
  150. package/dist/cli/{quickstart-323XOPGI.mjs → quickstart-FFVHTPSP.mjs} +6 -6
  151. package/dist/cli/{quickstart-ZKI5MURA.js → quickstart-PYZTFXZX.js} +8 -8
  152. package/dist/cli/{run-XZPWA6JS.js → run-4DWJXJRO.js} +50 -53
  153. package/dist/cli/{run-ZCNZU3K2.mjs → run-HLN6YYZH.mjs} +31 -34
  154. package/dist/cli/search-WERQBC6V.js +32 -0
  155. package/dist/cli/{search-CVLVSFMJ.mjs → search-ZHRCXGEL.mjs} +10 -11
  156. package/dist/cli/{search-output-7HRSSRBS.js → search-output-2KY6PFDH.js} +8 -8
  157. package/dist/cli/{search-output-6PY6RN2R.mjs → search-output-N7QXACVK.mjs} +6 -6
  158. package/dist/cli/{secrets-6S2ZWDIM.mjs → secrets-FKMWBLHU.mjs} +9 -9
  159. package/dist/cli/{secrets-IYD5VKY4.js → secrets-WXQ7XO5C.js} +18 -18
  160. package/dist/cli/{sessions-GVEX5TUJ.mjs → sessions-3YDTEDA5.mjs} +8 -8
  161. package/dist/cli/sessions-LXQ4Q6BS.js +22 -0
  162. package/dist/cli/{settings-CANK4HJQ.js → settings-67TWLQ6E.js} +88 -89
  163. package/dist/cli/{settings-BN5MJZ3C.mjs → settings-JTPASUZN.mjs} +15 -16
  164. package/dist/cli/{setup-YSGKGLSJ.js → setup-KUERQJUX.js} +51 -52
  165. package/dist/cli/{setup-JNMSCCU4.mjs → setup-VYNGXUJ6.mjs} +11 -12
  166. package/dist/cli/skills-EFRLHY3F.js +36 -0
  167. package/dist/cli/{skills-QCQN2UM2.mjs → skills-KI4KYHH6.mjs} +9 -10
  168. package/dist/cli/tools-C3EIGFFP.js +56 -0
  169. package/dist/cli/{tools-CDPOID7V.mjs → tools-UQDJS2RS.mjs} +20 -21
  170. package/dist/cli/{update-D3ZERUQ3.mjs → update-7FQQUBOD.mjs} +11 -12
  171. package/dist/cli/update-KCY72RXH.js +34 -0
  172. package/dist/cli/{views-RDZRWQBQ.mjs → views-JAM4MNNV.mjs} +54 -10
  173. package/dist/cli/{views-4NV2KQKA.js → views-MJK7JGZG.js} +66 -22
  174. package/dist/cli/{workflow-RABJCAZC.js → workflow-AQPRIWQX.js} +20 -20
  175. package/dist/cli/{workflow-2CG3TVCG.mjs → workflow-TQRV5FGO.mjs} +10 -10
  176. package/dist/{client-DhSvMO3A.d.mts → client-BlLYQDNo.d.mts} +1 -1
  177. package/dist/{client-oGNJMQFd.d.ts → client-DSQlkIDO.d.ts} +1 -1
  178. package/dist/{client-core-CdWH6Sii.d.ts → client-core-CDwapXy5.d.ts} +159 -108
  179. package/dist/{client-core-CVG1Et-4.d.mts → client-core-rX7n2H8U.d.mts} +159 -108
  180. package/dist/{compiler-manifest-D2ZlBGxj.d.ts → compiler-manifest-BHNC4RL-.d.mts} +15 -22
  181. package/dist/{compiler-manifest-D2ZlBGxj.d.mts → compiler-manifest-BHNC4RL-.d.ts} +15 -22
  182. package/dist/{errors-B-gOQdj-.d.mts → errors-D7sPXrvB.d.mts} +1 -1
  183. package/dist/{errors-CB0KAmmV.d.ts → errors-lhtIWG5Z.d.ts} +1 -1
  184. package/dist/{index-c3nvUGCS.d.ts → index-CQTBHXHr.d.ts} +1 -1
  185. package/dist/{index-BbJADro4.d.mts → index-NaDZq2xf.d.mts} +1 -1
  186. package/dist/index.d.mts +7 -7
  187. package/dist/index.d.ts +7 -7
  188. package/dist/index.js +15 -15
  189. package/dist/index.mjs +11 -11
  190. package/dist/install-integrity.json +129 -132
  191. package/dist/monitor-fleet-contract.d.mts +17 -11
  192. package/dist/monitor-fleet-contract.d.ts +17 -11
  193. package/dist/monitor-fleet-contract.js +3 -3
  194. package/dist/monitor-fleet-contract.mjs +2 -2
  195. package/dist/monitor-input-contract.js +2 -2
  196. package/dist/monitor-input-contract.mjs +1 -1
  197. package/dist/plays/bundle-play-file.d.mts +3 -3
  198. package/dist/plays/bundle-play-file.d.ts +3 -3
  199. package/dist/plays/bundle-play-file.mjs +17 -5
  200. package/dist/plays/csv-data-input.js +3 -3
  201. package/dist/plays/csv-data-input.mjs +2 -2
  202. package/dist/plays/play-description.d.mts +2 -2
  203. package/dist/plays/play-description.d.ts +2 -2
  204. package/dist/plays/run-request.d.mts +2 -2
  205. package/dist/plays/run-request.d.ts +2 -2
  206. package/dist/plays/run-request.js +3 -3
  207. package/dist/plays/run-request.mjs +2 -2
  208. package/dist/release.d.mts +1 -1
  209. package/dist/release.d.ts +1 -1
  210. package/dist/release.js +2 -2
  211. package/dist/release.mjs +1 -1
  212. package/dist/server.d.mts +4 -4
  213. package/dist/server.d.ts +4 -4
  214. package/dist/server.js +12 -12
  215. package/dist/server.mjs +6 -6
  216. package/package.json +1 -1
  217. package/dist/cli/auth-VDCU3T6A.js +0 -43
  218. package/dist/cli/chunk-4QELPWUW.mjs +0 -405
  219. package/dist/cli/chunk-T7RBM2WX.js +0 -405
  220. package/dist/cli/describe-5BFNHT5V.js +0 -50
  221. package/dist/cli/describe-AWJUXE2U.mjs +0 -50
  222. package/dist/cli/git-HGMX52XU.js +0 -25
  223. package/dist/cli/pages-KXKWSCEV.mjs +0 -266
  224. package/dist/cli/pages-VTJGAI2D.js +0 -266
  225. package/dist/cli/search-J6EY7DQN.js +0 -33
  226. package/dist/cli/sessions-7HPIVSQ4.js +0 -22
  227. package/dist/cli/skills-WDGSSKJZ.js +0 -37
  228. package/dist/cli/tools-URNVXSTZ.js +0 -57
  229. package/dist/cli/update-Q6JW32IA.js +0 -35
@@ -4,21 +4,21 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-WAIBM6KX.mjs";
7
+ } from "./chunk-37AZHCTP.mjs";
8
8
  import {
9
9
  isCiEnvironment,
10
10
  syncSdkSkillsIfNeeded
11
- } from "./chunk-DFJODFMC.mjs";
11
+ } from "./chunk-GPMS6OPX.mjs";
12
12
  import {
13
13
  addJsonNotice,
14
14
  isJsonOutputMode
15
- } from "./chunk-JWWYLGUT.mjs";
15
+ } from "./chunk-EEFSUCYP.mjs";
16
16
  import {
17
17
  resolveApiKeyForBaseUrl
18
- } from "./chunk-W5YJYU4G.mjs";
18
+ } from "./chunk-K4WJ4BYO.mjs";
19
19
  import {
20
20
  SDK_VERSION
21
- } from "./chunk-RKY4LBX3.mjs";
21
+ } from "./chunk-QDBGPRR2.mjs";
22
22
 
23
23
  // src/cli/compatibility-catalog.ts
24
24
  var readers = /* @__PURE__ */ new WeakMap();
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkFGN75ZN6js = require('./chunk-FGN75ZN6.js');
3
+ var _chunkJMHYDDBQjs = require('./chunk-JMHYDDBQ.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkHWPOXCCKjs = require('./chunk-HWPOXCCK.js');
7
+ var _chunkPU42VOBIjs = require('./chunk-PU42VOBI.js');
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
137
137
 
138
138
  // src/plays/client.ts
139
139
  function createPlayClient(options) {
140
- const config = _chunkHWPOXCCKjs.resolveConfig.call(void 0, options);
141
- return new (0, _chunkFGN75ZN6js.PlayClient)(
142
- new (0, _chunkHWPOXCCKjs.HttpClient)(config),
140
+ const config = _chunkPU42VOBIjs.resolveConfig.call(void 0, options);
141
+ return new (0, _chunkJMHYDDBQjs.PlayClient)(
142
+ new (0, _chunkPU42VOBIjs.HttpClient)(config),
143
143
  _nullishCoalesce(config.environment, () => ( process.env))
144
144
  );
145
145
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkHYBZWSSHjs = require('./chunk-HYBZWSSH.js');
3
+ var _chunkL6QAIZNZjs = require('./chunk-L6QAIZNZ.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkHYBZWSSHjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkL6QAIZNZjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -1,10 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkIF75RD6Ujs = require('./chunk-IF75RD6U.js');
3
+ var _chunkU2LVWCTDjs = require('./chunk-U2LVWCTD.js');
4
4
 
5
5
  // ../integration-contracts/monitor-fleet-contract.ts
6
- var MONITOR_FLEET_MAX_MEMBERS = 1e3;
7
- var MONITOR_FLEET_FRONTIER_MAX_ROWS = 1e4;
6
+ var MONITOR_FLEET_MAX_MEMBERS = 2e4;
7
+ var MONITOR_FLEET_FRONTIER_MAX_ROWS = Math.max(
8
+ 1e4,
9
+ MONITOR_FLEET_MAX_MEMBERS
10
+ );
8
11
  var MONITOR_FLEET_AUTHORING_CONTRACT_EDITION = 2;
9
12
  var SUPPORTED_MONITOR_FLEET_AUTHORING_CONTRACT_EDITIONS = [
10
13
  1,
@@ -13,7 +16,7 @@ var SUPPORTED_MONITOR_FLEET_AUTHORING_CONTRACT_EDITIONS = [
13
16
  var MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG = [
14
17
  {
15
18
  edition: 1,
16
- changed: "Initial Fleet JSON contract: bounded sticky table membership, source refresh, and a seven-day removal grace.",
19
+ changed: "Initial Fleet JSON contract: bounded sticky table membership, source refresh, and a seven-day removal grace. The grace was retired for every edition on 2026-11-13: a member whose row is gone is removed by the next plan (see the fixed policy).",
17
20
  compatibilityOwner: "Monitors Runtime",
18
21
  newWritesEnd: null,
19
22
  readerRemoval: null
@@ -26,19 +29,19 @@ var MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG = [
26
29
  readerRemoval: null
27
30
  }
28
31
  ];
29
- var MONITOR_FLEET_REMOVAL_GRACE_MS = 7 * 24 * 60 * 6e4;
32
+ var MONITOR_FLEET_REMOVAL_GRACE_MS = 0;
30
33
  var MONITOR_FLEET_DOCUMENTATION = {
31
34
  summary: "A Monitor Fleet keeps one bounded, sticky set of ordinary monitors aligned with Customer DB rows.",
32
35
  authoredFields: {
33
36
  id: "Stable lowercase fleet id used by sync, get, and deactivate.",
34
37
  source: "Customer DB table, unique row key, and optional equality filters that select candidate rows.",
35
38
  monitor: "One Batch-compatible MonitorSpec. Direct Handlebars source-row fields such as {{domain}} are rendered for each selected row.",
36
- selection: "Deterministic ranking and an active-member limit between 1 and 1,000."
39
+ selection: `Deterministic ranking and an active-member limit between 1 and ${MONITOR_FLEET_MAX_MEMBERS.toLocaleString("en-US")}.`
37
40
  },
38
41
  fixedPolicy: {
39
- cadence: "60s fair bounded source refresh",
42
+ cadence: "15m fair bounded source refresh",
40
43
  membership: "sticky",
41
- removalGrace: "7d",
44
+ removalGrace: "none",
42
45
  onRemoved: "deactivate",
43
46
  ownership: "A Fleet may adopt a same-tool ordinary monitor with its deterministic member key. The first Fleet claim wins; another Fleet or a different tool receives a conflict.",
44
47
  billing: "No Fleet fee, permit, or renewal. Dry-run reports ordinary monitor lifecycle charges due now."
@@ -254,7 +257,7 @@ function validateMonitorFleetDefinitionV1(value) {
254
257
  issues.push({
255
258
  path: "selection.limit",
256
259
  code: "MONITOR_FLEET_LIMIT_EXCEEDED",
257
- message: "selection.limit must be between 1 and 1,000."
260
+ message: `selection.limit must be between 1 and ${MONITOR_FLEET_MAX_MEMBERS.toLocaleString("en-US")}.`
258
261
  });
259
262
  }
260
263
  if (_optionalChain([selection, 'optionalAccess', _11 => _11.membership]) !== "sticky") {
@@ -310,7 +313,7 @@ function validateMonitorFleetDefinitionV1(value) {
310
313
  issues.push({
311
314
  path: removedOption,
312
315
  code: "unsupported_fleet_option",
313
- message: `${removedOption} is fixed by Monitor Fleets and must be omitted. Fleets sync ${MONITOR_FLEET_DOCUMENTATION.fixedPolicy.cadence} and ${MONITOR_FLEET_DOCUMENTATION.fixedPolicy.onRemoved} members after ${MONITOR_FLEET_DOCUMENTATION.fixedPolicy.removalGrace} absent from the source.`
316
+ message: `${removedOption} is fixed by Monitor Fleets and must be omitted. Fleets sync on a ${MONITOR_FLEET_DOCUMENTATION.fixedPolicy.cadence} and ${MONITOR_FLEET_DOCUMENTATION.fixedPolicy.onRemoved} a member as soon as the source no longer returns its row.`
314
317
  });
315
318
  }
316
319
  }
@@ -384,7 +387,7 @@ function validateMonitorFleetDefinitionV2(value) {
384
387
  }
385
388
  const monitorInput = record(input.monitor);
386
389
  const monitorKey = _optionalChain([monitorInput, 'optionalAccess', _21 => _21.key]);
387
- const monitor = _chunkIF75RD6Ujs.lintMonitorSpecTemplate.call(void 0, input.monitor);
390
+ const monitor = _chunkU2LVWCTDjs.lintMonitorSpecTemplate.call(void 0, input.monitor);
388
391
  issues.push(...monitor.issues.map(v2Issue));
389
392
  if (typeof monitorKey === "string" && typeof _optionalChain([sourceKey, 'optionalAccess', _22 => _22.column]) === "string" && !monitorKey.includes(`{{${sourceKey.column}}}`)) {
390
393
  issues.push({
@@ -3,18 +3,16 @@
3
3
  var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
4
4
 
5
5
 
6
- var _chunk243O3FH5js = require('./chunk-243O3FH5.js');
6
+ var _chunkZFSB7GXFjs = require('./chunk-ZFSB7GXF.js');
7
7
 
8
8
 
9
- var _chunkT7RBM2WXjs = require('./chunk-T7RBM2WX.js');
10
9
 
11
10
 
11
+ var _chunkBGXEMTIGjs = require('./chunk-BGXEMTIG.js');
12
12
 
13
- var _chunkKWGXHPHLjs = require('./chunk-KWGXHPHL.js');
14
13
 
15
14
 
16
-
17
- var _chunkHWPOXCCKjs = require('./chunk-HWPOXCCK.js');
15
+ var _chunkPU42VOBIjs = require('./chunk-PU42VOBI.js');
18
16
 
19
17
  // src/cli/commands/search.ts
20
18
  var _commander = require('commander');
@@ -24,7 +22,7 @@ var _fs = require('fs');
24
22
  var _path = require('path');
25
23
  var SEARCH_REF_TTL_MS = 15 * 6e4;
26
24
  function lastSearchPath() {
27
- return _path.join.call(void 0, _chunkHWPOXCCKjs.sdkCliStateDirPath.call(void 0, _chunkHWPOXCCKjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
25
+ return _path.join.call(void 0, _chunkPU42VOBIjs.sdkCliStateDirPath.call(void 0, _chunkPU42VOBIjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
28
26
  }
29
27
  function rememberSearchRef(searchRef) {
30
28
  writeSearchRefs({ searchRef });
@@ -65,7 +63,7 @@ var SEARCH_TYPES = [
65
63
  "custom",
66
64
  "docs"
67
65
  ];
68
- var USAGE = 'Usage: deepline search "<task>" ["<task>" ...] [--type <types>] [--json]';
66
+ var USAGE = 'Usage: deepline search "<task>" ["<task>" ...] [--json]';
69
67
  function parseTypes(flag, raw) {
70
68
  const names = (_nullishCoalesce(raw, () => ( ""))).split(",").map((name) => name.trim().toLowerCase()).filter(Boolean);
71
69
  const unknown = names.filter(
@@ -134,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
134
132
  console.error("--summary-width must be an integer of at least 2.");
135
133
  return 1;
136
134
  }
137
- const client = new (0, _chunk243O3FH5js.DeeplineClient)();
135
+ const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
138
136
  const json = options.json === true;
139
- const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-7HRSSRBS.js")));
137
+ const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-2KY6PFDH.js")));
140
138
  const searches = [];
141
139
  const chunks = [];
142
140
  const refs = /* @__PURE__ */ new Map();
@@ -159,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
159
157
  const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
160
158
  if (!multiple) {
161
159
  if (searchRef) rememberSearchRef(searchRef);
162
- _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, result, { json, text });
160
+ _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, result, { json, text });
163
161
  return 0;
164
162
  }
165
163
  searches.push({ ...result, query });
@@ -173,8 +171,8 @@ ${text}`);
173
171
  }
174
172
  } catch (error) {
175
173
  if (!multiple) throw error;
176
- const payload = _chunkKWGXHPHLjs.errorToJsonPayload.call(void 0, error);
177
- const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkT7RBM2WXjs.resolveSdkCliFailureExitCode.call(void 0, error)));
174
+ const payload = _chunkBGXEMTIGjs.errorToJsonPayload.call(void 0, error);
175
+ const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkBGXEMTIGjs.resolveSdkCliFailureExitCode.call(void 0, error)));
178
176
  searches.push({ ...payload, query, exitCode: queryExitCode });
179
177
  if (!json) {
180
178
  console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
@@ -186,7 +184,7 @@ Search failed.
186
184
  }
187
185
  }
188
186
  rememberSearchRefsByTool(refs);
189
- _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
187
+ _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
190
188
  { searches },
191
189
  {
192
190
  json,
@@ -198,21 +196,21 @@ Search failed.
198
196
  function registerDeprecatedSearchCommand(parent, typesFor) {
199
197
  const name = `deepline ${parent.name()} search`;
200
198
  addSearchOptions(
201
- parent.command("search [task]").description(`Deprecated. Use deepline search --type <types>.`).addHelpText(
199
+ parent.command("search [task]").description(`Deprecated. Use deepline search.`).addHelpText(
202
200
  "after",
203
201
  `
204
202
  Notes:
205
- Deprecated alias for the unified search. It runs deepline search with the
206
- matching --type and returns the same results envelope.
203
+ Deprecated alias for the unified search. It runs deepline search for the
204
+ matching kinds and returns the same results envelope.
207
205
 
208
206
  Examples:
209
- deepline search "name and company domain -> work email" --type ${typesFor({}).join(",")}
207
+ deepline search "name and company domain -> work email"
210
208
  `
211
209
  ).option("--all", "Include plays your workspace created").option("--compact", "Accepted for compatibility; results are compact")
212
210
  ).action(async (query, options) => {
213
211
  const types = typesFor(options);
214
212
  console.error(
215
- `${name} is deprecated. Use: deepline search${query ? ` ${JSON.stringify(query)}` : ""} --type ${types.join(",")}`
213
+ `${name} is deprecated. Use: deepline search${query ? ` ${JSON.stringify(query)}` : ""}`
216
214
  );
217
215
  process.exitCode = await runSearch(
218
216
  query === void 0 ? [] : [query],
@@ -227,7 +225,7 @@ function registerSearchCommand(program) {
227
225
  "Search tools, monitors, plays, and docs together, ranked by intent."
228
226
  ).option(
229
227
  "--type <types>",
230
- "Only these kinds, comma-separated: tools, plays, monitors, docs",
228
+ "Only these kinds, comma-separated: tools (or plays, the same), monitors, docs",
231
229
  appendCsv
232
230
  ).option(
233
231
  "--exclude <types>",
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  rejectRestrictedFeedback
3
- } from "./chunk-W6T23EUC.mjs";
3
+ } from "./chunk-AX2OAXDL.mjs";
4
4
  import {
5
5
  getAuthedHttpClient,
6
6
  printCommandEnvelope
7
- } from "./chunk-JWWYLGUT.mjs";
7
+ } from "./chunk-EEFSUCYP.mjs";
8
8
  import {
9
9
  agentSessionIdFromEnvironment,
10
10
  claudeProjectsRoots,
11
11
  coworkTranscriptFromEnvironment
12
- } from "./chunk-RKY4LBX3.mjs";
12
+ } from "./chunk-QDBGPRR2.mjs";
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-JWWYLGUT.mjs";
3
+ } from "./chunk-EEFSUCYP.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-DLIRSHV6.mjs";
9
9
  import {
10
10
  DeeplineError
11
- } from "./chunk-ZPGGW27Q.mjs";
11
+ } from "./chunk-JL2OTMSG.mjs";
12
12
 
13
13
  // ../play-data-plane/column-names.ts
14
14
  var POSTGRES_IDENTIFIER_MAX_BYTES = 63;
@@ -480,11 +480,16 @@ function stringMetadata(metadata, key) {
480
480
  function fileInputBindingsFromPlaySchema(inputSchema) {
481
481
  const csvInput = schemaMetadata(inputSchema, "csvInput");
482
482
  if (!csvInput) return [];
483
- return [
484
- {
485
- inputPath: stringMetadata(csvInput, "inputField") ?? CSV_DATA_INPUT_KEY
486
- }
483
+ const listed = inputSchema?.csvInputFields;
484
+ const fields = [
485
+ stringMetadata(csvInput, "inputField") ?? CSV_DATA_INPUT_KEY,
486
+ ...Array.isArray(listed) ? listed.filter(
487
+ (field) => typeof field === "string" && field.trim().length > 0
488
+ ) : []
487
489
  ];
490
+ return [...new Set(fields.map((field) => field.trim()))].map((inputPath) => ({
491
+ inputPath
492
+ }));
488
493
  }
489
494
  function fileInputBindingsFromStaticPipeline(staticPipeline) {
490
495
  if (!staticPipeline || typeof staticPipeline !== "object" || Array.isArray(staticPipeline)) {
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkFGN75ZN6js = require('./chunk-FGN75ZN6.js');
3
+ var _chunkJMHYDDBQjs = require('./chunk-JMHYDDBQ.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkHWPOXCCKjs = require('./chunk-HWPOXCCK.js');
7
+ var _chunkPU42VOBIjs = require('./chunk-PU42VOBI.js');
8
8
 
9
9
  // src/client.ts
10
- var DeeplineClient2 = class extends _chunkFGN75ZN6js.DeeplineClient {
10
+ var DeeplineClient2 = class extends _chunkJMHYDDBQjs.DeeplineClient {
11
11
  constructor(options) {
12
- const config = _chunkHWPOXCCKjs.resolveConfig.call(void 0, options);
13
- super(config, new (0, _chunkHWPOXCCKjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
12
+ const config = _chunkPU42VOBIjs.resolveConfig.call(void 0, options);
13
+ super(config, new (0, _chunkPU42VOBIjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
14
14
  }
15
15
  };
16
16
 
@@ -303,15 +303,27 @@ function lintMonitorSpecTemplate(value, path = "monitor") {
303
303
  const ordered = issues.sort(issueOrder);
304
304
  return ordered.some((issue) => issue.severity === "error") ? { issues: ordered } : { normalized, issues: ordered };
305
305
  }
306
+ var COMPILED_TEMPLATES = /* @__PURE__ */ new Map();
307
+ var COMPILED_TEMPLATES_MAX = 1e3;
308
+ function compiledTemplate(source) {
309
+ const cached = COMPILED_TEMPLATES.get(source);
310
+ if (cached) return cached;
311
+ if (COMPILED_TEMPLATES.size >= COMPILED_TEMPLATES_MAX) {
312
+ COMPILED_TEMPLATES.clear();
313
+ }
314
+ const compiled = Handlebars.compile(source, {
315
+ noEscape: true,
316
+ strict: true,
317
+ knownHelpersOnly: true,
318
+ preventIndent: true
319
+ });
320
+ COMPILED_TEMPLATES.set(source, compiled);
321
+ return compiled;
322
+ }
306
323
  function renderValue(value, row) {
307
324
  if (typeof value === "string" && value.includes("{{")) {
308
325
  const context = Object.assign(/* @__PURE__ */ Object.create(null), row);
309
- return Handlebars.compile(value, {
310
- noEscape: true,
311
- strict: true,
312
- knownHelpersOnly: true,
313
- preventIndent: true
314
- })(context, {
326
+ return compiledTemplate(value)(context, {
315
327
  allowProtoMethodsByDefault: false,
316
328
  allowProtoPropertiesByDefault: false,
317
329
  helpers: /* @__PURE__ */ Object.create(null),
@@ -20,7 +20,7 @@ import {
20
20
  stagePlayFiles,
21
21
  startPlayRun,
22
22
  submitPreparedPlayRunAdmission
23
- } from "./chunk-FKD3KL5Q.mjs";
23
+ } from "./chunk-Z2XA6YU4.mjs";
24
24
  import {
25
25
  describePlayDetail,
26
26
  describePlayListItem
@@ -31,16 +31,16 @@ import {
31
31
  RETAINED_PIPELINE_RECEIVERS_HEADER,
32
32
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
33
33
  SDK_API_MAJOR
34
- } from "./chunk-RKY4LBX3.mjs";
34
+ } from "./chunk-QDBGPRR2.mjs";
35
35
  import {
36
36
  CustomerDbQueryOutcomeUnknownError
37
- } from "./chunk-QNHHZ63P.mjs";
37
+ } from "./chunk-CQBIO6HW.mjs";
38
38
  import {
39
39
  DeeplineError,
40
40
  TOOL_EXECUTION_ERROR_SCHEMA_HEADER,
41
41
  TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
42
42
  ToolExecutionError
43
- } from "./chunk-ZPGGW27Q.mjs";
43
+ } from "./chunk-JL2OTMSG.mjs";
44
44
 
45
45
  // src/pagination.ts
46
46
  async function* iterateCursorPages(fetchPage) {
@@ -3537,7 +3537,7 @@ var DeeplineClient = class _DeeplineClient {
3537
3537
  usageEvent: (requestId) => this.getBillingUsageEvent(requestId),
3538
3538
  usageEvents: (options) => this.getBillingUsageEvents(options),
3539
3539
  usage: (options) => this.getBillingUsage(options),
3540
- targetPlans: () => this.getTargetBillingPlans(),
3540
+ targetPlans: (options) => this.getTargetBillingPlans(options),
3541
3541
  targetStatus: () => this.getTargetBillingStatus(),
3542
3542
  autoRecharge: {
3543
3543
  get: () => this.getTargetAutoRecharge(),
@@ -3552,6 +3552,37 @@ var DeeplineClient = class _DeeplineClient {
3552
3552
  ),
3553
3553
  update: (options) => this.updateTargetAutoRecharge(options)
3554
3554
  },
3555
+ cards: {
3556
+ list: (options) => {
3557
+ const query = new URLSearchParams();
3558
+ if (options?.limit !== void 0) {
3559
+ query.set("limit", String(options.limit));
3560
+ }
3561
+ if (options?.cursor) query.set("cursor", options.cursor);
3562
+ const suffix = query.size > 0 ? `?${query.toString()}` : "";
3563
+ return this.http.get(
3564
+ `/api/v2/billing/payment-methods${suffix}`
3565
+ );
3566
+ },
3567
+ add: (options) => this.http.post(
3568
+ "/api/v2/billing/payment-method/setup",
3569
+ { make_default: options?.makeDefault === true }
3570
+ ),
3571
+ setDefault: (options) => this.http.post(
3572
+ "/api/v2/billing/payment-methods/default",
3573
+ {
3574
+ card_id: options.cardId,
3575
+ change_id: options.changeId ?? globalThis.crypto.randomUUID()
3576
+ }
3577
+ ),
3578
+ remove: (options) => this.http.post(
3579
+ "/api/v2/billing/payment-methods/remove",
3580
+ {
3581
+ card_id: options.cardId,
3582
+ change_id: options.changeId ?? globalThis.crypto.randomUUID()
3583
+ }
3584
+ )
3585
+ },
3555
3586
  purchaseCredits: (options) => this.purchaseTargetBillingCredits(options),
3556
3587
  recoverCreditPurchase: (options) => this.recoverTargetBillingCreditPurchase(options),
3557
3588
  transitionPlan: (options) => this.transitionTargetBillingPlan(options),
@@ -3677,75 +3708,6 @@ var DeeplineClient = class _DeeplineClient {
3677
3708
  // ——————————————————————————————————————————————————————————
3678
3709
  // Secrets
3679
3710
  // ——————————————————————————————————————————————————————————
3680
- /** List this workspace's hosted pages, newest update first. */
3681
- async listPages(input) {
3682
- const params = new URLSearchParams();
3683
- if (input?.cursor) params.set("cursor", input.cursor);
3684
- if (input?.limit) params.set("limit", String(input.limit));
3685
- const query = params.size > 0 ? `?${params}` : "";
3686
- return await this.http.get(`/api/v2/pages${query}`);
3687
- }
3688
- /** Read one hosted page's metadata. */
3689
- async getPage(name) {
3690
- return await this.http.get(
3691
- `/api/v2/pages/${encodeURIComponent(name)}`
3692
- );
3693
- }
3694
- /** Replace a page's whole content. `public` says who the write is for. */
3695
- async writePage(name, input) {
3696
- return await this.http.put(
3697
- `/api/v2/pages/${encodeURIComponent(name)}`,
3698
- {
3699
- public: input.public,
3700
- content_base64: input.contentBase64,
3701
- content_type: input.contentType,
3702
- description: input.description
3703
- }
3704
- );
3705
- }
3706
- /** Delete a page, its content, and its links. Safe to repeat. */
3707
- async deletePage(name) {
3708
- return await this.http.delete(
3709
- `/api/v2/pages/${encodeURIComponent(name)}`
3710
- );
3711
- }
3712
- /** Replace the origins allowed to read this page in a browser when public. */
3713
- async setPageAllowedOrigins(name, origins) {
3714
- return await this.http.put(
3715
- `/api/v2/pages/${encodeURIComponent(name)}/origins`,
3716
- { allowed_origins: origins }
3717
- );
3718
- }
3719
- /** The explicit way to change who can see an existing page. */
3720
- async setPageVisibility(name, isPublic) {
3721
- return await this.http.post(
3722
- `/api/v2/pages/${encodeURIComponent(name)}/visibility`,
3723
- { public: isPublic }
3724
- );
3725
- }
3726
- /** List a page's links. Their URLs cannot be shown again. */
3727
- async listPageLinks(name) {
3728
- return await this.http.get(
3729
- `/api/v2/pages/${encodeURIComponent(name)}/links`
3730
- );
3731
- }
3732
- /** The returned URL is shown once. Either expiry or `permanent` is required. */
3733
- async createPageLink(name, input) {
3734
- return await this.http.post(
3735
- `/api/v2/pages/${encodeURIComponent(name)}/links`,
3736
- {
3737
- expires_in_seconds: input.expiresInSeconds,
3738
- permanent: input.permanent,
3739
- label: input.label
3740
- }
3741
- );
3742
- }
3743
- /** Stop a link working. Safe to repeat. */
3744
- async revokePageLink(name, linkId) {
3745
- return await this.http.delete(
3746
- `/api/v2/pages/${encodeURIComponent(name)}/links/${encodeURIComponent(linkId)}`
3747
- );
3748
- }
3749
3711
  // ——————————————————————————————————————————————————————————
3750
3712
  // Views
3751
3713
  // ——————————————————————————————————————————————————————————
@@ -3781,6 +3743,32 @@ var DeeplineClient = class _DeeplineClient {
3781
3743
  { access }
3782
3744
  );
3783
3745
  }
3746
+ /** The view's share links, newest first. Their tokens are never returned. */
3747
+ async listViewShareLinks(id) {
3748
+ return await this.http.get(
3749
+ `/api/v2/views/${encodeURIComponent(id)}/links`
3750
+ );
3751
+ }
3752
+ /**
3753
+ * Create a share link. `url` in the result is the only copy of the link;
3754
+ * keep it. With `emails`, Deepline also emails it to those people, except
3755
+ * `not_emailed` addresses that bounced or complained before. One
3756
+ * Idempotency-Key per call, so a retried request returns the same link
3757
+ * (with `url: null`) instead of making and emailing a second one.
3758
+ */
3759
+ async createViewShareLink(id, input) {
3760
+ return await this.http.post(
3761
+ `/api/v2/views/${encodeURIComponent(id)}/links`,
3762
+ input,
3763
+ { "Idempotency-Key": `view-link-${globalThis.crypto.randomUUID()}` }
3764
+ );
3765
+ }
3766
+ /** Revoke a share link. It stops opening the view at once. */
3767
+ async revokeViewShareLink(id, linkId) {
3768
+ return await this.http.delete(
3769
+ `/api/v2/views/${encodeURIComponent(id)}/links/${encodeURIComponent(linkId)}`
3770
+ );
3771
+ }
3784
3772
  /** Every run of the view's Play, newest first. */
3785
3773
  async listViewRuns(id, input) {
3786
3774
  const params = new URLSearchParams();
@@ -5570,6 +5558,13 @@ var DeeplineClient = class _DeeplineClient {
5570
5558
  async listWorkspaceIntegrationConnections() {
5571
5559
  return this.http.get("/api/v2/integrations/connections");
5572
5560
  }
5561
+ /** List workspace members' personal HubSpot connection status as an admin. */
5562
+ async listPersonalHubSpotMembers(cursor) {
5563
+ const path = "/api/v2/integrations/connections/hubspot-members";
5564
+ return this.http.get(
5565
+ cursor ? `${path}?${new URLSearchParams({ cursor })}` : path
5566
+ );
5567
+ }
5573
5568
  /** Manage a workspace-owned OAuth connection. Consent completes in the browser. */
5574
5569
  async manageWorkspaceIntegrationConnection(input) {
5575
5570
  return this.http.post("/api/v2/integrations/connections", {
@@ -6455,8 +6450,10 @@ var DeeplineClient = class _DeeplineClient {
6455
6450
  );
6456
6451
  }
6457
6452
  /** List the reviewed target plans and whether new acquisition is enabled. */
6458
- async getTargetBillingPlans() {
6459
- return this.http.get("/api/v2/billing/plans");
6453
+ async getTargetBillingPlans(options) {
6454
+ return this.http.get(
6455
+ options?.promoCode ? `/api/v2/billing/plans?promo_code=${encodeURIComponent(options.promoCode)}` : "/api/v2/billing/plans"
6456
+ );
6460
6457
  }
6461
6458
  /** Read the workspace's normalized target plan, payment, and balance state. */
6462
6459
  async getTargetBillingStatus() {
@@ -6547,7 +6544,8 @@ var DeeplineClient = class _DeeplineClient {
6547
6544
  {
6548
6545
  action: options.action,
6549
6546
  ...options.action === "start_or_change" && options.billingEmail ? { billing_email: options.billingEmail } : {},
6550
- ...options.targetPlanSku ? { target_plan_sku: options.targetPlanSku } : {}
6547
+ ...options.targetPlanSku ? { target_plan_sku: options.targetPlanSku } : {},
6548
+ ...options.action === "start_or_change" && options.promoCode ? { promo_code: options.promoCode } : {}
6551
6549
  },
6552
6550
  { "Idempotency-Key": idempotencyKey },
6553
6551
  { maxRetries: 0, exactUrlOnly: true }
@@ -7128,6 +7126,13 @@ var DeeplineClient = class _DeeplineClient {
7128
7126
  "Idempotency-Key": idempotencyKey?.trim() || this.monitorFleetIdempotencyKey(operation)
7129
7127
  };
7130
7128
  }
7129
+ /**
7130
+ * Fleet writes plan against the whole fleet inside one request, so they
7131
+ * wait as long as the server lets those routes run (300 s) plus transit,
7132
+ * not the client's default. A ten-thousand-member deploy took 62 s; giving
7133
+ * up at 60 s reported a timeout for a plan the server then committed.
7134
+ */
7135
+ static MONITOR_FLEET_WRITE_TIMEOUT_MS = 31e4;
7131
7136
  monitorFleetPath(fleetId) {
7132
7137
  return `/api/v2/monitors/fleets/${encodeURIComponent(fleetId)}`;
7133
7138
  }
@@ -7153,6 +7158,7 @@ var DeeplineClient = class _DeeplineClient {
7153
7158
  {
7154
7159
  method: "PUT",
7155
7160
  body,
7161
+ timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
7156
7162
  headers: this.monitorFleetHeaders("sync", options?.idempotencyKey),
7157
7163
  maxRetries: 0,
7158
7164
  exactUrlOnly: true
@@ -7216,6 +7222,7 @@ var DeeplineClient = class _DeeplineClient {
7216
7222
  {
7217
7223
  method: "DELETE",
7218
7224
  body: options?.dryRun ? { dry_run: true } : {},
7225
+ timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
7219
7226
  headers: this.monitorFleetHeaders(
7220
7227
  "deactivate",
7221
7228
  options?.idempotencyKey
@@ -7231,6 +7238,7 @@ var DeeplineClient = class _DeeplineClient {
7231
7238
  {
7232
7239
  method: "POST",
7233
7240
  body: {},
7241
+ timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
7234
7242
  headers: this.monitorFleetHeaders(
7235
7243
  "reactivate",
7236
7244
  options?.idempotencyKey