deepline 0.3.579 → 0.3.581

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 (179) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +13 -2
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/monitors/billing/public-pricing.ts +470 -15
  4. package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +12 -0
  5. package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +59 -0
  6. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +5 -3
  7. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +42 -2
  8. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +49 -11
  9. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +13 -4
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +139 -16
  11. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +39 -2
  12. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +12 -0
  13. package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +20 -0
  14. package/dist/cli/{agents-D5RZEVXQ.js → agents-UDTRMWPA.js} +81 -39
  15. package/dist/cli/{agents-FJTRTYCL.mjs → agents-VDQSVDSM.mjs} +51 -9
  16. package/dist/cli/{auth-OMYIDVXZ.mjs → auth-SRN5FXUQ.mjs} +5 -5
  17. package/dist/cli/auth-UYQHRHYR.js +44 -0
  18. package/dist/cli/{billing-EWFUDLQ7.js → billing-HGHIOFSA.js} +162 -159
  19. package/dist/cli/{billing-XK3LBNYS.mjs → billing-PR2SIEJM.mjs} +69 -66
  20. package/dist/cli/{chunk-I2TSRLOI.mjs → chunk-2MIJMDGF.mjs} +1 -1
  21. package/dist/cli/{chunk-TVAFWAOQ.js → chunk-2RLMHWXW.js} +3 -3
  22. package/dist/cli/{chunk-OSRATALX.mjs → chunk-3FMGBMT3.mjs} +1 -1
  23. package/dist/cli/{chunk-KIIOKQFY.mjs → chunk-3I6GA5QW.mjs} +7 -3
  24. package/dist/cli/{chunk-UYCBG75H.js → chunk-3LP7J63L.js} +5 -5
  25. package/dist/cli/{chunk-QA55PGJH.js → chunk-3S5KFHQH.js} +7 -7
  26. package/dist/cli/{chunk-SZIWFQI2.mjs → chunk-46EBSUZF.mjs} +3 -3
  27. package/dist/cli/{chunk-7HOYKXVY.js → chunk-5XVDZVCR.js} +217 -213
  28. package/dist/cli/{chunk-PLWZ3NB7.js → chunk-6U3THMRI.js} +5 -5
  29. package/dist/cli/{chunk-LRZGS6RZ.mjs → chunk-7MMEW2WU.mjs} +1 -1
  30. package/dist/cli/{chunk-KWQHQG53.js → chunk-7VOSQARZ.js} +6 -6
  31. package/dist/cli/{chunk-72TWLORR.js → chunk-A4IOPFEJ.js} +3 -3
  32. package/dist/cli/{chunk-S2OXA7QS.mjs → chunk-ALXIC5U5.mjs} +7 -7
  33. package/dist/cli/{chunk-6EVVUVU3.mjs → chunk-BDNQDWGI.mjs} +2 -2
  34. package/dist/cli/{chunk-HEZW2IDK.js → chunk-BQL34VOQ.js} +279 -276
  35. package/dist/cli/{chunk-FKXSIIR4.js → chunk-BULUFFST.js} +15 -15
  36. package/dist/cli/{chunk-NONMY5CY.mjs → chunk-CDIMI54H.mjs} +2 -2
  37. package/dist/cli/{chunk-NWZU6HL4.js → chunk-CN4MXBZ3.js} +13 -13
  38. package/dist/cli/{chunk-XTM6NOJ6.js → chunk-CNRPE3AE.js} +53 -53
  39. package/dist/cli/{chunk-LYBZLA6F.mjs → chunk-DZMQV5FL.mjs} +2 -2
  40. package/dist/cli/{chunk-NKUXW4WB.js → chunk-E2EGQNOS.js} +2 -2
  41. package/dist/cli/{chunk-BLEYV4BJ.js → chunk-E5ITZIWK.js} +21 -21
  42. package/dist/cli/{chunk-N6X2UKYQ.mjs → chunk-E5O4CMHZ.mjs} +2 -2
  43. package/dist/cli/{chunk-X6LPC3SU.mjs → chunk-EHTD65FE.mjs} +1 -1
  44. package/dist/cli/{chunk-E2G2DNAB.js → chunk-EP3GZAHK.js} +7 -7
  45. package/dist/cli/{chunk-NOMO5GPI.js → chunk-FXSDDEAR.js} +1 -1
  46. package/dist/cli/{chunk-AP7PIGL5.js → chunk-INRXX4SX.js} +41 -41
  47. package/dist/cli/{chunk-XQYBBCFI.mjs → chunk-INXRW5AF.mjs} +2 -2
  48. package/dist/cli/{chunk-7JMCRYXU.js → chunk-IT3F7P6O.js} +10 -10
  49. package/dist/cli/{chunk-LYJ2NSHD.js → chunk-J6ITN2X6.js} +13 -13
  50. package/dist/cli/{chunk-LCPJR3IY.js → chunk-JQK42HZQ.js} +2 -2
  51. package/dist/cli/{chunk-HGUFTSB5.mjs → chunk-KDITCSPN.mjs} +27 -1
  52. package/dist/cli/{chunk-VFIIRK7S.mjs → chunk-KLBIHDZB.mjs} +2 -2
  53. package/dist/cli/{chunk-Y2ND6PPW.js → chunk-KO6OLYSD.js} +48 -48
  54. package/dist/cli/{chunk-K2BU67UC.js → chunk-LJZESBNY.js} +2 -2
  55. package/dist/cli/{chunk-PGRRMVQ5.js → chunk-MOZDEYQC.js} +2 -1
  56. package/dist/cli/{chunk-DH736ASH.js → chunk-MSCYYFLY.js} +20 -20
  57. package/dist/cli/{chunk-JFS4KHA3.mjs → chunk-N5VJVVVV.mjs} +5 -5
  58. package/dist/cli/{chunk-G5CZDRY3.js → chunk-O5FIWG2O.js} +26 -26
  59. package/dist/cli/{chunk-YCWRKSLB.mjs → chunk-OVJWDFIL.mjs} +2 -2
  60. package/dist/cli/{chunk-WQQQP3FH.mjs → chunk-P5ZZY4RM.mjs} +4 -4
  61. package/dist/cli/{chunk-WWSGXX6U.js → chunk-PLGJG5FX.js} +5 -5
  62. package/dist/cli/{chunk-BZ4M7OFO.mjs → chunk-QXQBTTRD.mjs} +1 -1
  63. package/dist/cli/{chunk-F57NDSKT.mjs → chunk-RA3BWUTD.mjs} +5 -5
  64. package/dist/cli/{chunk-Q4VKMF3B.js → chunk-S2YKIWCD.js} +17 -17
  65. package/dist/cli/{chunk-DTQBQSUU.mjs → chunk-SECFDB27.mjs} +1 -0
  66. package/dist/cli/{chunk-6MIEJJSO.js → chunk-SNYH4QY2.js} +4 -4
  67. package/dist/cli/{chunk-6GON36H3.mjs → chunk-SZ76UE7C.mjs} +17 -14
  68. package/dist/cli/{chunk-6DMGKAWO.mjs → chunk-ULU4MEXN.mjs} +2 -2
  69. package/dist/cli/{chunk-ABH6PUDZ.js → chunk-VJR4CKYJ.js} +23 -23
  70. package/dist/cli/{chunk-TFNDOH4W.mjs → chunk-VNW454PP.mjs} +1 -1
  71. package/dist/cli/{chunk-7SZCJC4R.mjs → chunk-VTPMBOHZ.mjs} +2 -2
  72. package/dist/cli/{chunk-6NYHMXC7.mjs → chunk-VVENTTSA.mjs} +1 -1
  73. package/dist/cli/{chunk-OOGP737I.js → chunk-VWPM4OIC.js} +20 -20
  74. package/dist/cli/{chunk-27ZYRIQC.mjs → chunk-WCNJSZHC.mjs} +5 -5
  75. package/dist/cli/{chunk-KQAEXBVQ.mjs → chunk-WS5ZX4RB.mjs} +3 -3
  76. package/dist/cli/{chunk-SUHCW7U5.mjs → chunk-WVFDPC4K.mjs} +3 -3
  77. package/dist/cli/{chunk-44NTNNKC.js → chunk-Y36SQMSN.js} +28 -2
  78. package/dist/cli/{chunk-LV2LGW2Q.mjs → chunk-YTPXKG4C.mjs} +1 -1
  79. package/dist/cli/{chunk-3Z4TVZE7.mjs → chunk-Z3MJX3PP.mjs} +1 -1
  80. package/dist/cli/{chunk-LQ45LCH7.js → chunk-ZAKNDIK7.js} +9 -9
  81. package/dist/cli/{chunk-M4YWN5BT.mjs → chunk-ZTKLJADJ.mjs} +4 -4
  82. package/dist/cli/command-docs.js +4 -4
  83. package/dist/cli/command-docs.mjs +3 -3
  84. package/dist/cli/concurrent-runs-help-QWDTLZUX.js +22 -0
  85. package/dist/cli/{concurrent-runs-help-IQBZBTD5.mjs → concurrent-runs-help-Z27MIIH3.mjs} +6 -6
  86. package/dist/cli/{csv-T7TWLIGD.js → csv-4TP36F5O.js} +13 -13
  87. package/dist/cli/{csv-6BEOWTGM.mjs → csv-4YFTMVWQ.mjs} +4 -4
  88. package/dist/cli/{db-MFTUN3DF.js → db-L5EGGO72.js} +27 -27
  89. package/dist/cli/{db-FA5QGXZ7.mjs → db-U5KR6SYI.mjs} +6 -6
  90. package/dist/cli/describe-G3SUS76P.js +50 -0
  91. package/dist/cli/{describe-TITEQNVE.mjs → describe-LZXXSQ26.mjs} +21 -21
  92. package/dist/cli/describe-core.d.mts +2 -2
  93. package/dist/cli/describe-core.d.ts +2 -2
  94. package/dist/cli/describe-core.js +4 -4
  95. package/dist/cli/describe-core.mjs +3 -3
  96. package/dist/cli/{executions-QW3L7G7J.js → executions-VZKRFDGM.js} +8 -8
  97. package/dist/cli/{executions-DMYJJIRB.mjs → executions-ZWEC5DDR.mjs} +6 -6
  98. package/dist/cli/{feedback-6JZGE7OQ.js → feedback-BTJIJCQF.js} +14 -14
  99. package/dist/cli/{feedback-WPSNSFRC.mjs → feedback-HXQTHXEZ.mjs} +6 -6
  100. package/dist/cli/{git-GO65XRM3.mjs → git-P6A45MMT.mjs} +5 -5
  101. package/dist/cli/git-QU673DBV.js +26 -0
  102. package/dist/cli/index.js +150 -150
  103. package/dist/cli/index.mjs +49 -49
  104. package/dist/cli/{integrations-EEBPETH2.mjs → integrations-4POM2CJ3.mjs} +7 -7
  105. package/dist/cli/{integrations-T5JPSZXN.js → integrations-VSJQBRFS.js} +29 -29
  106. package/dist/cli/{legacy-noops-XDNZ46IR.mjs → legacy-noops-I65MIKH2.mjs} +6 -6
  107. package/dist/cli/{legacy-noops-B55OMNH7.js → legacy-noops-QOJGSGVO.js} +9 -9
  108. package/dist/cli/{mcp-4QIUAAWS.mjs → mcp-TGY6SRAC.mjs} +4 -4
  109. package/dist/cli/{mcp-3YA333TQ.js → mcp-WTKBSLSD.js} +24 -24
  110. package/dist/cli/{monitors-BVUPS4CE.mjs → monitors-E2ENT4RY.mjs} +16 -11
  111. package/dist/cli/{monitors-FOS7MWZO.js → monitors-TLWVEXW6.js} +109 -104
  112. package/dist/cli/{org-TCMRRVFC.mjs → org-J2LGW5ZR.mjs} +6 -6
  113. package/dist/cli/{org-CYM7HFLN.js → org-PZPJJU7K.js} +121 -121
  114. package/dist/cli/{outcomes-2JSWXWQ3.mjs → outcomes-TMJDASU5.mjs} +6 -6
  115. package/dist/cli/{outcomes-VDJVP5YC.js → outcomes-Z6ZNBJ3U.js} +14 -14
  116. package/dist/cli/{play-CPP4EBYF.mjs → play-S3Z24HUS.mjs} +22 -22
  117. package/dist/cli/{play-U3G73VIR.js → play-ZOOC57X4.js} +355 -355
  118. package/dist/cli/{providers-RVMIX5ED.mjs → providers-ETD6YLFL.mjs} +6 -6
  119. package/dist/cli/{providers-2ZB67TK7.js → providers-O4Y2YBS7.js} +9 -9
  120. package/dist/cli/{quickstart-V3Y7XZ47.js → quickstart-NZALIRBP.js} +6 -6
  121. package/dist/cli/{quickstart-L3YO3OWZ.mjs → quickstart-QZX32Y5T.mjs} +4 -4
  122. package/dist/cli/{run-M2CADJ6E.js → run-5UXSWJ7N.js} +48 -48
  123. package/dist/cli/{run-PQ3Z2GOF.mjs → run-HCVBRE2P.mjs} +26 -26
  124. package/dist/cli/search-T3SLR55O.js +32 -0
  125. package/dist/cli/{search-QVLGI7SZ.mjs → search-Z247K76U.mjs} +7 -7
  126. package/dist/cli/{search-output-PN3V7MSO.mjs → search-output-XCJI3XRA.mjs} +5 -5
  127. package/dist/cli/{search-output-IUANVHWU.js → search-output-XFKEGUJA.js} +8 -8
  128. package/dist/cli/{secrets-HK25G4K2.mjs → secrets-7JZXHLRU.mjs} +6 -6
  129. package/dist/cli/{secrets-AOW6F67J.js → secrets-VUQLTUTM.js} +15 -15
  130. package/dist/cli/sessions-GHW2H7N2.js +23 -0
  131. package/dist/cli/{sessions-YN2OIAGR.mjs → sessions-UNGJ342N.mjs} +6 -6
  132. package/dist/cli/{settings-7UW5TWSM.mjs → settings-67TIT4MZ.mjs} +12 -12
  133. package/dist/cli/{settings-6EV2FPGF.js → settings-WG5YNHC5.js} +85 -85
  134. package/dist/cli/{setup-ZQPD2R5K.js → setup-IYUNW5ZP.js} +49 -49
  135. package/dist/cli/{setup-BG56SHKH.mjs → setup-KMAAJOZM.mjs} +9 -9
  136. package/dist/cli/skills-JVLCEUBF.js +37 -0
  137. package/dist/cli/{skills-MQV2TNUZ.mjs → skills-UVS4DODN.mjs} +7 -7
  138. package/dist/cli/{tools-RGI4OE5T.mjs → tools-B42JY4BX.mjs} +19 -19
  139. package/dist/cli/tools-ETA3BJNM.js +57 -0
  140. package/dist/cli/{update-SQKGHQKF.mjs → update-EBYZZ7BW.mjs} +9 -9
  141. package/dist/cli/update-XZEBQCEY.js +37 -0
  142. package/dist/cli/{views-BUKVHCRD.js → views-DOUEKLEV.js} +37 -24
  143. package/dist/cli/{views-734T2CXF.mjs → views-QK3AFD2D.mjs} +21 -8
  144. package/dist/cli/{workflow-LPJC6RHP.js → workflow-TAKT2T7A.js} +17 -17
  145. package/dist/cli/{workflow-JNRRBMEK.mjs → workflow-UBJPGRKF.mjs} +7 -7
  146. package/dist/{client-CNYctEBh.d.mts → client-CmG8MT0x.d.mts} +1 -1
  147. package/dist/{client-C1AubrWJ.d.ts → client-QznpkWrk.d.ts} +1 -1
  148. package/dist/{client-core-D6zAE46g.d.ts → client-core-CXDqfeiB.d.ts} +5 -1
  149. package/dist/{client-core-Bb06TCx5.d.mts → client-core-CY0jNW0e.d.mts} +5 -1
  150. package/dist/index.d.mts +3 -3
  151. package/dist/index.d.ts +3 -3
  152. package/dist/index.js +9 -9
  153. package/dist/index.mjs +6 -6
  154. package/dist/install-integrity.json +130 -130
  155. package/dist/plays/bundle-play-file.mjs +1 -1
  156. package/dist/plays/play-description.d.mts +1 -1
  157. package/dist/plays/play-description.d.ts +1 -1
  158. package/dist/plays/run-request.d.mts +1 -1
  159. package/dist/plays/run-request.d.ts +1 -1
  160. package/dist/release.d.mts +1 -1
  161. package/dist/release.d.ts +1 -1
  162. package/dist/release.js +2 -2
  163. package/dist/release.mjs +1 -1
  164. package/dist/server.d.mts +2 -2
  165. package/dist/server.d.ts +2 -2
  166. package/dist/server.js +5 -5
  167. package/dist/server.mjs +3 -3
  168. package/package.json +1 -1
  169. package/dist/cli/auth-Q4O7MJU4.js +0 -44
  170. package/dist/cli/concurrent-runs-help-D6XH3FY5.js +0 -22
  171. package/dist/cli/describe-TYZ5YH3V.js +0 -50
  172. package/dist/cli/git-UGGRLGTQ.js +0 -26
  173. package/dist/cli/search-RHPPZZFG.js +0 -32
  174. package/dist/cli/sessions-AEGGTZ3K.js +0 -23
  175. package/dist/cli/skills-C6ZEZWBE.js +0 -37
  176. package/dist/cli/tools-PM3MC3RR.js +0 -57
  177. package/dist/cli/update-ZHUPF2HT.js +0 -37
  178. /package/dist/cli/{chunk-YGCKMI5P.js → chunk-2M3VVGMZ.js} +0 -0
  179. /package/dist/cli/{chunk-7I4B6V2S.mjs → chunk-VMGJIFSB.mjs} +0 -0
@@ -1,40 +1,48 @@
1
1
  import {
2
2
  concurrentRunsLine
3
- } from "./chunk-7SZCJC4R.mjs";
4
- import "./chunk-SUHCW7U5.mjs";
3
+ } from "./chunk-VTPMBOHZ.mjs";
4
+ import {
5
+ buildDashboardUrl
6
+ } from "./chunk-SECFDB27.mjs";
7
+ import "./chunk-STXDSVQZ.mjs";
8
+ import "./chunk-WVFDPC4K.mjs";
5
9
  import {
6
10
  DeeplineClient
7
- } from "./chunk-6EVVUVU3.mjs";
11
+ } from "./chunk-BDNQDWGI.mjs";
8
12
  import {
9
13
  PUBLIC_PLAN_SKUS,
10
14
  iterateCursorPages,
11
- requireBillingIdempotencyKey
12
- } from "./chunk-KIIOKQFY.mjs";
15
+ requireBillingIdempotencyKey,
16
+ resolvePublicPlanSku
17
+ } from "./chunk-3I6GA5QW.mjs";
13
18
  import "./chunk-FZHMNK6F.mjs";
14
19
  import "./chunk-5TYLSS4Q.mjs";
15
20
  import "./chunk-PSX3WHIH.mjs";
16
21
  import {
17
22
  PLAY_RUNTIME_PRICING_NOTE
18
- } from "./chunk-HGUFTSB5.mjs";
23
+ } from "./chunk-KDITCSPN.mjs";
19
24
  import {
20
25
  PRICING_PAGE_NOTE
21
26
  } from "./chunk-HECXJBED.mjs";
22
27
  import {
23
28
  DEFAULT_PROVIDER_MARKUP_MULTIPLIER,
24
29
  DEFAULT_USD_PER_CUSTOMER_CREDIT
25
- } from "./chunk-LRZGS6RZ.mjs";
30
+ } from "./chunk-7MMEW2WU.mjs";
26
31
  import {
27
32
  PLAY_SANDBOX_SIZE_INPUTS
28
- } from "./chunk-7I4B6V2S.mjs";
33
+ } from "./chunk-VMGJIFSB.mjs";
29
34
  import {
30
35
  createTimestampedName,
31
36
  getAuthedHttpClient,
32
37
  openInBrowser,
33
38
  printCommandEnvelope,
34
39
  shouldEmitJson
35
- } from "./chunk-6DMGKAWO.mjs";
36
- import "./chunk-3Z4TVZE7.mjs";
37
- import "./chunk-I2TSRLOI.mjs";
40
+ } from "./chunk-ULU4MEXN.mjs";
41
+ import {
42
+ resolveBaseUrlOnly,
43
+ resolveCliDashboardOrgId
44
+ } from "./chunk-Z3MJX3PP.mjs";
45
+ import "./chunk-2MIJMDGF.mjs";
38
46
  import {
39
47
  AuthError,
40
48
  ConfigError
@@ -44,7 +52,7 @@ import {
44
52
  DeeplineError
45
53
  } from "./chunk-Z3A2S3QM.mjs";
46
54
  import "./chunk-2MGZAI54.mjs";
47
- import "./chunk-6NYHMXC7.mjs";
55
+ import "./chunk-VVENTTSA.mjs";
48
56
  import "./chunk-WZYKRD7T.mjs";
49
57
  import "./chunk-KRD6H754.mjs";
50
58
 
@@ -857,7 +865,7 @@ function planPriceText(priceUsd, priceInterval) {
857
865
  function targetPlanLine(plan) {
858
866
  const firstMonth = plan.first_month_price_usd != null ? ` (first month $${plan.first_month_price_usd})` : "";
859
867
  const bonus = plan.bonus_credits != null ? ` (+${plan.bonus_credits} bonus credits once paid)` : "";
860
- const annual = plan.annual_price_usd != null ? ` (or $${plan.annual_price_usd}/year with --annual${plan.annual_offer_label ? `, ${plan.annual_offer_label}` : ""})` : "";
868
+ const annual = plan.annual_price_usd != null ? ` (or $${plan.annual_price_usd}/year paid annually${plan.annual_offer_label ? `, ${plan.annual_offer_label}` : ""})` : "";
861
869
  return `${plan.display_name ?? plan.name} (${plan.public_sku ?? plan.sku}) | ${planPriceText(plan.recurring_price_usd, plan.interval)}${firstMonth}${bonus}${annual} | ${plan.included_credits} included credits/month | $${plan.purchased_credit_price_usd}/purchased credit | ${plan.acquisition_enabled ? "available" : "unavailable"}`;
862
870
  }
863
871
  async function handlePlans(options) {
@@ -885,7 +893,7 @@ async function handlePlans(options) {
885
893
  promo.status === "applied" ? `Promo code ${promo.code}: applied to ${promoPlanSkus.join(", ")}${promo.expires_at ? ` (until ${promo.expires_at})` : ""}` : `Promo code ${promo.code}: ${promo.status.replaceAll("_", " ")}`
886
894
  ] : [],
887
895
  ...plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...plans.map(targetPlanLine)],
888
- promo?.status === "applied" ? `Change plan: deepline billing change-plan <plan_sku> --promo-code ${promo.code}` : "Change plan: deepline billing change-plan <plan_sku>"
896
+ promo?.status === "applied" ? `Change plan: deepline billing change-plan <plan_sku>, then enter promo code ${promo.code} in the browser` : "Change plan: deepline billing change-plan <plan_sku>"
889
897
  ];
890
898
  const legacyPayload = shouldEmitJson(options.json) ? await client.billing.plans() : null;
891
899
  printCommandEnvelope(
@@ -1725,23 +1733,10 @@ async function handleTopUpRecover(creditsRaw, options) {
1725
1733
  );
1726
1734
  }
1727
1735
  async function handleTargetPlan(planSku, options) {
1728
- if (options.invoice && !options.billingEmail) {
1729
- reportBillingFailure(
1730
- {
1731
- exitCode: 2,
1732
- code: "INVALID_REQUEST",
1733
- message: "--invoice needs --billing-email <email>."
1734
- },
1735
- options
1736
- );
1737
- return;
1738
- }
1739
- const targetPlanSku = [...PUBLIC_PLAN_SKUS, ...COMPATIBLE_PLAN_SKUS].find(
1736
+ const targetPlanSku = planSku === void 0 ? void 0 : [...PUBLIC_PLAN_SKUS, ...COMPATIBLE_PLAN_SKUS].find(
1740
1737
  (sku) => sku === planSku
1741
- ) ?? // Retained Canary requests may replay their original operation. The API
1742
- // rejects new acquisition even when a caller supplies an idempotency key.
1743
- (planSku === "growth-canary-v1" && options.idempotencyKey ? planSku : void 0);
1744
- if (!targetPlanSku) {
1738
+ );
1739
+ if (planSku !== void 0 && !targetPlanSku) {
1745
1740
  reportBillingFailure(
1746
1741
  {
1747
1742
  exitCode: 2,
@@ -1752,18 +1747,26 @@ async function handleTargetPlan(planSku, options) {
1752
1747
  );
1753
1748
  return;
1754
1749
  }
1755
- const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1756
- const payload = await new DeeplineClient().billing.transitionPlan({
1757
- action: "start_or_change",
1758
- targetPlanSku,
1759
- ...options.billingEmail ? { billingEmail: options.billingEmail } : {},
1760
- ...options.promoCode ? { promoCode: options.promoCode } : {},
1761
- ...options.annual ? { billingInterval: "year" } : {},
1762
- ...options.invoice ? { paymentMethod: "invoice" } : {},
1763
- idempotencyKey
1764
- });
1750
+ const baseUrl = resolveBaseUrlOnly();
1751
+ const link = buildDashboardUrl(
1752
+ baseUrl,
1753
+ targetPlanSku ? `/dashboard/billing?plan=${encodeURIComponent(resolvePublicPlanSku(targetPlanSku))}` : "/dashboard/billing?plan",
1754
+ resolveCliDashboardOrgId(baseUrl)
1755
+ );
1756
+ if (!options.json && options.open !== false) openInBrowser(link);
1765
1757
  printCommandEnvelope(
1766
- { ok: true, idempotency_key: idempotencyKey, ...payload },
1758
+ {
1759
+ ok: true,
1760
+ url: link,
1761
+ render: {
1762
+ sections: [
1763
+ {
1764
+ title: "billing change-plan",
1765
+ lines: [`Open this link to choose and confirm the plan: ${link}`]
1766
+ }
1767
+ ]
1768
+ }
1769
+ },
1767
1770
  { json: options.json }
1768
1771
  );
1769
1772
  }
@@ -2208,22 +2211,25 @@ Examples:
2208
2211
  (cardId, options) => handleCardChange("remove", cardId, options)
2209
2212
  )
2210
2213
  );
2211
- billing.command("change-plan").description("Start or change the target billing plan.").argument(
2212
- "<plan_sku>",
2213
- `${PUBLIC_PLAN_SKUS.join(", ")}. Run deepline billing plans to see workspace availability.`
2214
- ).option(
2215
- "--billing-email <email>",
2216
- "Invoice recipient: required with --invoice, otherwise used when the account has no billing email"
2217
- ).option(
2218
- "--promo-code <code>",
2219
- "Plan promo code; an unknown, expired, or used code refuses the change"
2220
- ).option(
2221
- "--annual",
2222
- "Pay for a year up front where `billing plans` shows an annual price; credits stay monthly and a cancellation takes effect at the end of the paid year"
2223
- ).option(
2224
- "--invoice",
2225
- "Email an invoice to --billing-email instead of charging a card (monthly or with --annual, starting from Solo); the plan starts once it is paid (due in 27 days). Set company name, address and tax ID first with `billing details set`"
2226
- ).option("--idempotency-key <key>", "Stable retry key").option("--json", "Emit JSON output").action(handleTargetPlan);
2214
+ billing.command("change-plan").description(
2215
+ "Print and open a billing page link with the plan dialog open; the plan changes only once you confirm it in the browser."
2216
+ ).addHelpText(
2217
+ "after",
2218
+ `
2219
+ Notes:
2220
+ Makes no change itself. A named plan opens its confirmation in the browser;
2221
+ without one, the plan picker opens. Annual billing and promo codes are
2222
+ chosen in the browser. Agents: give the user the printed link.
2223
+
2224
+ Examples:
2225
+ deepline billing change-plan
2226
+ deepline billing change-plan team
2227
+ deepline billing change-plan scale --no-open
2228
+ `
2229
+ ).argument(
2230
+ "[plan_sku]",
2231
+ `${PUBLIC_PLAN_SKUS.join(", ")}. Opens that plan's confirmation; omit to open the plan picker.`
2232
+ ).option("--no-open", "Print the link without opening a browser").option("--json", "Emit JSON output").action(handleTargetPlan);
2227
2233
  const details = billing.command("details").description(
2228
2234
  "Show the company name, billing address and tax ID printed on invoices."
2229
2235
  ).option("--json", "Emit JSON output").action(handleBillingDetailsShow);
@@ -2242,15 +2248,12 @@ Notes:
2242
2248
  Read-only. Shows the current target billing plan, pending plan, and every
2243
2249
  visible plan's recurring price, included credits, purchased-credit price,
2244
2250
  and current acquisition availability. All amounts are Deepline credits and
2245
- Deepline-facing USD, never raw provider spend. Change to an available plan
2246
- with: deepline billing change-plan <plan_sku>. A first-month price or bonus
2247
- credits appear on a plan when the org is offered them. An annual
2248
- price appears when the org may pay for a year up front; buy it with
2249
- change-plan <plan_sku> --annual. Where offered, any plan can be invoiced
2250
- instead of charged: add --invoice --billing-email <email> (billing details set adds the company
2251
- name, address and tax ID). With
2252
- --promo-code, prices are quoted with that code and its outcome is shown;
2253
- pass the same code to change-plan.
2251
+ Deepline-facing USD, never raw provider spend. Get a link to change to an
2252
+ available plan with: deepline billing change-plan <plan_sku>. A first-month
2253
+ price or bonus credits appear on a plan when the org is offered them. An
2254
+ annual price appears when the org may pay for a year up front; choose it in
2255
+ the browser. With --promo-code, prices are quoted with that code and its
2256
+ outcome is shown; enter the same code in the browser.
2254
2257
 
2255
2258
  Examples:
2256
2259
  deepline billing plans
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-2MGZAI54.mjs";
22
22
  import {
23
23
  SDK_RELEASE
24
- } from "./chunk-6NYHMXC7.mjs";
24
+ } from "./chunk-VVENTTSA.mjs";
25
25
 
26
26
  // src/version.ts
27
27
  var SDK_VERSION = SDK_RELEASE.version;
@@ -1,7 +1,7 @@
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
3
 
4
- var _chunk6MIEJJSOjs = require('./chunk-6MIEJJSO.js');
4
+ var _chunkSNYH4QY2js = require('./chunk-SNYH4QY2.js');
5
5
 
6
6
 
7
7
  var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
@@ -778,7 +778,7 @@ function readSkillsVersionFile(path) {
778
778
  }
779
779
  }
780
780
  function resolveAutoSyncSkillAgents() {
781
- switch (_chunk6MIEJJSOjs.detectAgentRuntime.call(void 0, )) {
781
+ switch (_chunkSNYH4QY2js.detectAgentRuntime.call(void 0, )) {
782
782
  case "codex":
783
783
  return ["codex"];
784
784
  case "claude_code":
@@ -848,7 +848,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
848
848
  }
849
849
 
850
850
  // src/http.ts
851
- var HttpClient2 = class extends _chunk6MIEJJSOjs.HttpClient {
851
+ var HttpClient2 = class extends _chunkSNYH4QY2js.HttpClient {
852
852
  constructor(config) {
853
853
  super(config, readSdkSkillsLocalVersion);
854
854
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  printCommandEnvelope
3
- } from "./chunk-6DMGKAWO.mjs";
3
+ } from "./chunk-ULU4MEXN.mjs";
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
  import {
@@ -37,7 +37,7 @@ import {
37
37
  RETAINED_PIPELINE_RECEIVERS_HEADER,
38
38
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
39
39
  SDK_API_MAJOR
40
- } from "./chunk-I2TSRLOI.mjs";
40
+ } from "./chunk-2MIJMDGF.mjs";
41
41
  import {
42
42
  CustomerDbQueryOutcomeUnknownError
43
43
  } from "./chunk-ASB47RXJ.mjs";
@@ -4079,10 +4079,13 @@ var DeeplineClient = class _DeeplineClient {
4079
4079
  );
4080
4080
  }
4081
4081
  /** Who can open a view: its workspace, every org member, or anyone with its URL. */
4082
- async setViewAccess(id, access) {
4082
+ async setViewAccess(id, access, options) {
4083
4083
  return await this.http.post(
4084
4084
  `/api/v2/views/${encodeURIComponent(id)}/access`,
4085
- { access }
4085
+ {
4086
+ access,
4087
+ ...options?.embedOrigins !== void 0 ? { embed_origins: options.embedOrigins } : {}
4088
+ }
4086
4089
  );
4087
4090
  }
4088
4091
  /** The view's share links, newest first. Their tokens are never returned. */
@@ -7810,6 +7813,7 @@ export {
7810
7813
  AD_ACCOUNT_DISCOVERY_PROVIDERS,
7811
7814
  planAdAccountDiscovery,
7812
7815
  PUBLIC_PLAN_SKUS,
7816
+ resolvePublicPlanSku,
7813
7817
  iterateCursorPages,
7814
7818
  requireBillingIdempotencyKey,
7815
7819
  planCustomerDbQuery,
@@ -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 _chunk7HOYKXVYjs = require('./chunk-7HOYKXVY.js');
3
+ var _chunk5XVDZVCRjs = require('./chunk-5XVDZVCR.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkTVAFWAOQjs = require('./chunk-TVAFWAOQ.js');
7
+ var _chunk2RLMHWXWjs = require('./chunk-2RLMHWXW.js');
8
8
 
9
9
  // src/client.ts
10
- var DeeplineClient2 = class extends _chunk7HOYKXVYjs.DeeplineClient {
10
+ var DeeplineClient2 = class extends _chunk5XVDZVCRjs.DeeplineClient {
11
11
  constructor(options) {
12
- const config = _chunkTVAFWAOQjs.resolveConfig.call(void 0, options);
13
- super(config, new (0, _chunkTVAFWAOQjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
12
+ const config = _chunk2RLMHWXWjs.resolveConfig.call(void 0, options);
13
+ super(config, new (0, _chunk2RLMHWXWjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
14
14
  }
15
15
  };
16
16
 
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkPGRRMVQ5js = require('./chunk-PGRRMVQ5.js');
5
+ var _chunkMOZDEYQCjs = require('./chunk-MOZDEYQC.js');
6
6
 
7
7
 
8
8
 
@@ -318,7 +318,7 @@ function extractorValueType(name) {
318
318
  }
319
319
  const named = NAMED_VALUE_SHAPES[definition.valueKind];
320
320
  if (!named) return { type: "string" };
321
- const { type, fields } = _chunkPGRRMVQ5js.schemaField.call(void 0, name, named.schema, true);
321
+ const { type, fields } = _chunkMOZDEYQCjs.schemaField.call(void 0, name, named.schema, true);
322
322
  return { type, ...fields ? { fields } : {}, shape: named.shape };
323
323
  }
324
324
  function jsonSchemaOf(wrapper) {
@@ -378,7 +378,7 @@ function describedTool(tool, requestedToolId) {
378
378
  // The server's public monitor pricing sends `display`.
379
379
  cost: stringField(pricing, "display", "displayText") || void 0,
380
380
  guidance: [],
381
- inputs: _chunkPGRRMVQ5js.schemaFields.call(void 0,
381
+ inputs: _chunkMOZDEYQCjs.schemaFields.call(void 0,
382
382
  recordField(tool, "payload_schema", "payloadSchema")
383
383
  ),
384
384
  outputs: [],
@@ -415,7 +415,7 @@ function describedTool(tool, requestedToolId) {
415
415
  (path) => path.replace(/^toolResponse\.raw\./, "")
416
416
  );
417
417
  const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
418
- const { fields, ...typed } = _chunkPGRRMVQ5js.schemaField.call(void 0, name, node, true);
418
+ const { fields, ...typed } = _chunkMOZDEYQCjs.schemaField.call(void 0, name, node, true);
419
419
  const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
420
420
  const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
421
421
  const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
@@ -491,7 +491,7 @@ function describedTool(tool, requestedToolId) {
491
491
  ],
492
492
  rateLimit: withPlanRateLimit(
493
493
  recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
494
- _chunkPGRRMVQ5js.rateLimitSummary.call(void 0,
494
+ _chunkMOZDEYQCjs.rateLimitSummary.call(void 0,
495
495
  recordField(contract, "executionMetadata").configuredRateLimits
496
496
  )
497
497
  ),
@@ -501,9 +501,9 @@ function describedTool(tool, requestedToolId) {
501
501
  ...connectCommand && !_optionalChain([tool, 'access', _5 => _5.auth, 'optionalAccess', _6 => _6.connectionRequired]) ? { connectCommand } : {},
502
502
  ...tool.auth ? { auth: tool.auth } : {},
503
503
  ...tool.toolUsage ? { toolUsage: tool.toolUsage } : {},
504
- inputs: _chunkPGRRMVQ5js.schemaFields.call(void 0, inputSchema),
504
+ inputs: _chunkMOZDEYQCjs.schemaFields.call(void 0, inputSchema),
505
505
  outputs: [...lists, ...values].map(({ field }) => field),
506
- rawResponse: _chunkPGRRMVQ5js.schemaFields.call(void 0, outputSchema),
506
+ rawResponse: _chunkMOZDEYQCjs.schemaFields.call(void 0, outputSchema),
507
507
  runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
508
508
  };
509
509
  }
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  rejectRestrictedFeedback
3
- } from "./chunk-OSRATALX.mjs";
3
+ } from "./chunk-3FMGBMT3.mjs";
4
4
  import {
5
5
  getAuthedHttpClient,
6
6
  printCommandEnvelope
7
- } from "./chunk-6DMGKAWO.mjs";
7
+ } from "./chunk-ULU4MEXN.mjs";
8
8
  import {
9
9
  agentSessionIdFromEnvironment,
10
10
  claudeProjectsRoots,
11
11
  coworkTranscriptFromEnvironment
12
- } from "./chunk-I2TSRLOI.mjs";
12
+ } from "./chunk-2MIJMDGF.mjs";
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
  import {