deepline 0.3.578 → 0.3.579

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 (170) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +7 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +3 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +18 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +124 -57
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +4 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +43 -64
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +25 -0
  9. package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +83 -0
  10. package/dist/cli/{agents-MCU3ITQZ.js → agents-D5RZEVXQ.js} +31 -31
  11. package/dist/cli/{agents-LRBANBZH.mjs → agents-FJTRTYCL.mjs} +4 -4
  12. package/dist/cli/{auth-5BJKVYMQ.mjs → auth-OMYIDVXZ.mjs} +5 -5
  13. package/dist/cli/auth-Q4O7MJU4.js +44 -0
  14. package/dist/cli/{billing-NT57POHH.js → billing-EWFUDLQ7.js} +104 -102
  15. package/dist/cli/{billing-EBBI4MVL.mjs → billing-XK3LBNYS.mjs} +11 -9
  16. package/dist/cli/{chunk-H7DY5NQ3.mjs → chunk-27ZYRIQC.mjs} +5 -5
  17. package/dist/cli/{chunk-W66GXHYR.mjs → chunk-3Z4TVZE7.mjs} +1 -1
  18. package/dist/cli/{chunk-MXPCTF57.js → chunk-44NTNNKC.js} +11 -2
  19. package/dist/cli/{chunk-4LMTY4RQ.mjs → chunk-6DMGKAWO.mjs} +2 -2
  20. package/dist/cli/{chunk-ITYSPUKD.mjs → chunk-6EVVUVU3.mjs} +2 -2
  21. package/dist/cli/{chunk-4KNRCUKY.mjs → chunk-6GON36H3.mjs} +17 -14
  22. package/dist/cli/{chunk-A7NKOXBV.js → chunk-6MIEJJSO.js} +4 -4
  23. package/dist/cli/{chunk-4YSJOSBG.mjs → chunk-6NYHMXC7.mjs} +1 -1
  24. package/dist/cli/{chunk-PXMCPEE2.js → chunk-72TWLORR.js} +3 -3
  25. package/dist/cli/{chunk-3ZUKYLC6.js → chunk-7HOYKXVY.js} +8 -8
  26. package/dist/cli/{chunk-NEH7NZFT.js → chunk-7JMCRYXU.js} +10 -10
  27. package/dist/cli/{chunk-4CNHOBUO.mjs → chunk-7SZCJC4R.mjs} +2 -2
  28. package/dist/cli/{chunk-27HAQRGH.js → chunk-ABH6PUDZ.js} +23 -23
  29. package/dist/cli/{chunk-M3ITWEGS.js → chunk-AP7PIGL5.js} +41 -41
  30. package/dist/cli/{chunk-BPMA4S3O.js → chunk-BLEYV4BJ.js} +21 -21
  31. package/dist/cli/{chunk-DWUESXDD.mjs → chunk-BZ4M7OFO.mjs} +11 -1
  32. package/dist/cli/{chunk-5LCV36BR.js → chunk-DH736ASH.js} +20 -20
  33. package/dist/cli/{chunk-FYKHAT2F.mjs → chunk-DTQBQSUU.mjs} +9 -0
  34. package/dist/cli/{chunk-HZXF2HFF.mjs → chunk-F57NDSKT.mjs} +5 -5
  35. package/dist/cli/{chunk-VVZ7JZMQ.js → chunk-FKXSIIR4.js} +15 -15
  36. package/dist/cli/{chunk-CS36W3RL.js → chunk-G5CZDRY3.js} +26 -26
  37. package/dist/cli/{chunk-P35YQAUC.js → chunk-HEZW2IDK.js} +277 -274
  38. package/dist/cli/{chunk-AZFSCPYK.mjs → chunk-HGUFTSB5.mjs} +11 -2
  39. package/dist/cli/{chunk-CFLAGRWL.mjs → chunk-I2TSRLOI.mjs} +1 -1
  40. package/dist/cli/{chunk-OAQYLTUN.mjs → chunk-JFS4KHA3.mjs} +5 -5
  41. package/dist/cli/{chunk-XE66BGLB.js → chunk-K2BU67UC.js} +2 -2
  42. package/dist/cli/{chunk-NTHN7ODR.mjs → chunk-KIIOKQFY.mjs} +1 -1
  43. package/dist/cli/{chunk-IFWB4BYZ.mjs → chunk-KQAEXBVQ.mjs} +3 -3
  44. package/dist/cli/{chunk-RLPPLS6A.js → chunk-KWQHQG53.js} +6 -6
  45. package/dist/cli/{chunk-Y2TK7OXN.js → chunk-LCPJR3IY.js} +2 -2
  46. package/dist/cli/{chunk-W47SXEWQ.js → chunk-LQ45LCH7.js} +9 -9
  47. package/dist/cli/{chunk-LYZPGP3P.mjs → chunk-LV2LGW2Q.mjs} +1 -1
  48. package/dist/cli/{chunk-QPOJLAFT.mjs → chunk-LYBZLA6F.mjs} +2 -2
  49. package/dist/cli/{chunk-RWDYULX2.js → chunk-LYJ2NSHD.js} +17 -12
  50. package/dist/cli/{chunk-DDJN4RR6.mjs → chunk-M4YWN5BT.mjs} +4 -4
  51. package/dist/cli/{chunk-VMCJKGZS.mjs → chunk-N6X2UKYQ.mjs} +2 -2
  52. package/dist/cli/{chunk-25SSGQJJ.js → chunk-NKUXW4WB.js} +2 -2
  53. package/dist/cli/{chunk-CPNTDIJK.js → chunk-NOMO5GPI.js} +1 -1
  54. package/dist/cli/{chunk-CFG3ZM7M.mjs → chunk-NONMY5CY.mjs} +2 -2
  55. package/dist/cli/{chunk-24FGR73C.js → chunk-NWZU6HL4.js} +13 -13
  56. package/dist/cli/{chunk-HGQT6EGK.js → chunk-OOGP737I.js} +20 -20
  57. package/dist/cli/{chunk-ALXYCC4K.mjs → chunk-OSRATALX.mjs} +1 -1
  58. package/dist/cli/{chunk-ZO65VJRJ.js → chunk-PGRRMVQ5.js} +10 -1
  59. package/dist/cli/{chunk-J7PCSLRY.js → chunk-PLWZ3NB7.js} +5 -5
  60. package/dist/cli/{chunk-MXK4M7HP.js → chunk-Q4VKMF3B.js} +17 -17
  61. package/dist/cli/{chunk-SKHUWQZE.js → chunk-QA55PGJH.js} +17 -7
  62. package/dist/cli/{chunk-T2CCLYHV.mjs → chunk-S2OXA7QS.mjs} +7 -7
  63. package/dist/cli/{chunk-HKZN33F2.mjs → chunk-SUHCW7U5.mjs} +3 -3
  64. package/dist/cli/{chunk-PJXPHUAR.mjs → chunk-SZIWFQI2.mjs} +3 -3
  65. package/dist/cli/{chunk-7J473OJ5.mjs → chunk-TFNDOH4W.mjs} +1 -1
  66. package/dist/cli/{chunk-XBO4ERH6.js → chunk-TVAFWAOQ.js} +3 -3
  67. package/dist/cli/{chunk-UKSOIH2P.js → chunk-UYCBG75H.js} +5 -5
  68. package/dist/cli/{chunk-RW3URFZK.mjs → chunk-VFIIRK7S.mjs} +2 -2
  69. package/dist/cli/{chunk-3GF33QJJ.mjs → chunk-WQQQP3FH.mjs} +4 -4
  70. package/dist/cli/{chunk-G7PH2QVM.js → chunk-WWSGXX6U.js} +5 -5
  71. package/dist/cli/{chunk-JQPFICW3.mjs → chunk-X6LPC3SU.mjs} +1 -1
  72. package/dist/cli/{chunk-6UFTWNC5.mjs → chunk-XQYBBCFI.mjs} +2 -2
  73. package/dist/cli/{chunk-5IMWXYVB.js → chunk-XTM6NOJ6.js} +53 -53
  74. package/dist/cli/{chunk-XX7TZM4N.js → chunk-Y2ND6PPW.js} +48 -48
  75. package/dist/cli/{chunk-CSPOWVWS.mjs → chunk-YCWRKSLB.mjs} +8 -3
  76. package/dist/cli/command-docs.js +2 -2
  77. package/dist/cli/command-docs.mjs +1 -1
  78. package/dist/cli/concurrent-runs-help-D6XH3FY5.js +22 -0
  79. package/dist/cli/{concurrent-runs-help-2MHLIUC6.mjs → concurrent-runs-help-IQBZBTD5.mjs} +6 -6
  80. package/dist/cli/{csv-J6SRBMOT.mjs → csv-6BEOWTGM.mjs} +4 -4
  81. package/dist/cli/{csv-RYYDAC76.js → csv-T7TWLIGD.js} +13 -13
  82. package/dist/cli/{db-WK226TM7.mjs → db-FA5QGXZ7.mjs} +6 -6
  83. package/dist/cli/{db-5QLH6QK5.js → db-MFTUN3DF.js} +27 -27
  84. package/dist/cli/{describe-UBSCFPH5.mjs → describe-TITEQNVE.mjs} +21 -21
  85. package/dist/cli/describe-TYZ5YH3V.js +50 -0
  86. package/dist/cli/describe-core.d.mts +4 -2
  87. package/dist/cli/describe-core.d.ts +4 -2
  88. package/dist/cli/describe-core.js +4 -4
  89. package/dist/cli/describe-core.mjs +3 -3
  90. package/dist/cli/{executions-XF5BNCFS.mjs → executions-DMYJJIRB.mjs} +6 -6
  91. package/dist/cli/{executions-AGV5V7SD.js → executions-QW3L7G7J.js} +8 -8
  92. package/dist/cli/{feedback-3RDEZE2M.js → feedback-6JZGE7OQ.js} +14 -14
  93. package/dist/cli/{feedback-LT3PDK72.mjs → feedback-WPSNSFRC.mjs} +6 -6
  94. package/dist/cli/{git-7VBTCCBV.mjs → git-GO65XRM3.mjs} +5 -5
  95. package/dist/cli/git-UGGRLGTQ.js +26 -0
  96. package/dist/cli/index.js +148 -148
  97. package/dist/cli/index.mjs +47 -47
  98. package/dist/cli/{integrations-E7QRWMKZ.mjs → integrations-EEBPETH2.mjs} +7 -7
  99. package/dist/cli/{integrations-JP732FQB.js → integrations-T5JPSZXN.js} +29 -29
  100. package/dist/cli/{legacy-noops-UTL4W5WE.js → legacy-noops-B55OMNH7.js} +9 -9
  101. package/dist/cli/{legacy-noops-UFNQBPIT.mjs → legacy-noops-XDNZ46IR.mjs} +6 -6
  102. package/dist/cli/{mcp-5X4XFB4V.js → mcp-3YA333TQ.js} +24 -24
  103. package/dist/cli/{mcp-YHETA3AU.mjs → mcp-4QIUAAWS.mjs} +4 -4
  104. package/dist/cli/{monitors-WFVZ42OQ.mjs → monitors-BVUPS4CE.mjs} +7 -7
  105. package/dist/cli/{monitors-AN6KH4XY.js → monitors-FOS7MWZO.js} +100 -100
  106. package/dist/cli/{org-CN3XJZLA.js → org-CYM7HFLN.js} +121 -121
  107. package/dist/cli/{org-OMDV7WDF.mjs → org-TCMRRVFC.mjs} +6 -6
  108. package/dist/cli/{outcomes-I4ZTG5ND.mjs → outcomes-2JSWXWQ3.mjs} +6 -6
  109. package/dist/cli/{outcomes-7HCZ6K3Q.js → outcomes-VDJVP5YC.js} +14 -14
  110. package/dist/cli/{play-TSNBSHGA.mjs → play-CPP4EBYF.mjs} +20 -20
  111. package/dist/cli/{play-45VXZ57A.js → play-U3G73VIR.js} +349 -349
  112. package/dist/cli/{providers-RB3TT7AE.js → providers-2ZB67TK7.js} +9 -9
  113. package/dist/cli/{providers-4TB56ZLK.mjs → providers-RVMIX5ED.mjs} +6 -6
  114. package/dist/cli/{quickstart-XHZ3PG5I.mjs → quickstart-L3YO3OWZ.mjs} +4 -4
  115. package/dist/cli/{quickstart-ZNDM6VUD.js → quickstart-V3Y7XZ47.js} +6 -6
  116. package/dist/cli/{run-XNEJGAKV.js → run-M2CADJ6E.js} +49 -48
  117. package/dist/cli/{run-7PY4G6GB.mjs → run-PQ3Z2GOF.mjs} +27 -26
  118. package/dist/cli/{search-BG7KCIOG.mjs → search-QVLGI7SZ.mjs} +7 -7
  119. package/dist/cli/search-RHPPZZFG.js +32 -0
  120. package/dist/cli/{search-output-3ZBNTHGO.js → search-output-IUANVHWU.js} +8 -8
  121. package/dist/cli/{search-output-TWKKP2BE.mjs → search-output-PN3V7MSO.mjs} +5 -5
  122. package/dist/cli/{secrets-FNR6MX6A.js → secrets-AOW6F67J.js} +15 -15
  123. package/dist/cli/{secrets-AZZCE7E3.mjs → secrets-HK25G4K2.mjs} +6 -6
  124. package/dist/cli/sessions-AEGGTZ3K.js +23 -0
  125. package/dist/cli/{sessions-ZAMKN3AF.mjs → sessions-YN2OIAGR.mjs} +6 -6
  126. package/dist/cli/{settings-QGASFWV3.js → settings-6EV2FPGF.js} +85 -85
  127. package/dist/cli/{settings-WKWOOOI2.mjs → settings-7UW5TWSM.mjs} +12 -12
  128. package/dist/cli/{setup-U36W42LE.mjs → setup-BG56SHKH.mjs} +9 -9
  129. package/dist/cli/{setup-KUZDCR3F.js → setup-ZQPD2R5K.js} +49 -49
  130. package/dist/cli/skills-C6ZEZWBE.js +37 -0
  131. package/dist/cli/{skills-25CSZQIK.mjs → skills-MQV2TNUZ.mjs} +7 -7
  132. package/dist/cli/tools-PM3MC3RR.js +57 -0
  133. package/dist/cli/{tools-4NZQ22AA.mjs → tools-RGI4OE5T.mjs} +19 -19
  134. package/dist/cli/{update-CJYP36TG.mjs → update-SQKGHQKF.mjs} +9 -9
  135. package/dist/cli/update-ZHUPF2HT.js +37 -0
  136. package/dist/cli/{views-GYGE7FSV.mjs → views-734T2CXF.mjs} +6 -6
  137. package/dist/cli/{views-76UIPWJD.js → views-BUKVHCRD.js} +21 -21
  138. package/dist/cli/{workflow-LZSWALZS.mjs → workflow-JNRRBMEK.mjs} +7 -7
  139. package/dist/cli/{workflow-NCVXBATM.js → workflow-LPJC6RHP.js} +17 -17
  140. package/dist/{client-BrdMPFCM.d.ts → client-C1AubrWJ.d.ts} +1 -1
  141. package/dist/{client-CF-bsrtI.d.mts → client-CNYctEBh.d.mts} +1 -1
  142. package/dist/{client-core-DM1ZedOG.d.mts → client-core-Bb06TCx5.d.mts} +7 -0
  143. package/dist/{client-core-rMoUWSYM.d.ts → client-core-D6zAE46g.d.ts} +7 -0
  144. package/dist/index.d.mts +3 -3
  145. package/dist/index.d.ts +3 -3
  146. package/dist/index.js +9 -9
  147. package/dist/index.mjs +6 -6
  148. package/dist/install-integrity.json +126 -126
  149. package/dist/plays/play-description.d.mts +1 -1
  150. package/dist/plays/play-description.d.ts +1 -1
  151. package/dist/plays/run-request.d.mts +1 -1
  152. package/dist/plays/run-request.d.ts +1 -1
  153. package/dist/release.d.mts +1 -1
  154. package/dist/release.d.ts +1 -1
  155. package/dist/release.js +2 -2
  156. package/dist/release.mjs +1 -1
  157. package/dist/server.d.mts +2 -2
  158. package/dist/server.d.ts +2 -2
  159. package/dist/server.js +5 -5
  160. package/dist/server.mjs +3 -3
  161. package/package.json +1 -1
  162. package/dist/cli/auth-VSW3MTFO.js +0 -44
  163. package/dist/cli/concurrent-runs-help-ATT2GVTQ.js +0 -22
  164. package/dist/cli/describe-Q27SRQWM.js +0 -50
  165. package/dist/cli/git-BBTP3H7J.js +0 -26
  166. package/dist/cli/search-ZBU5GW4W.js +0 -32
  167. package/dist/cli/sessions-GCY62GAW.js +0 -23
  168. package/dist/cli/skills-43DHMLRW.js +0 -37
  169. package/dist/cli/tools-5BGKNMFU.js +0 -57
  170. package/dist/cli/update-CUO2MTB6.js +0 -37
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  concurrentRunsLine
3
- } from "./chunk-4CNHOBUO.mjs";
4
- import "./chunk-HKZN33F2.mjs";
3
+ } from "./chunk-7SZCJC4R.mjs";
4
+ import "./chunk-SUHCW7U5.mjs";
5
5
  import {
6
6
  DeeplineClient
7
- } from "./chunk-ITYSPUKD.mjs";
7
+ } from "./chunk-6EVVUVU3.mjs";
8
8
  import {
9
9
  PUBLIC_PLAN_SKUS,
10
10
  iterateCursorPages,
11
11
  requireBillingIdempotencyKey
12
- } from "./chunk-NTHN7ODR.mjs";
12
+ } from "./chunk-KIIOKQFY.mjs";
13
13
  import "./chunk-FZHMNK6F.mjs";
14
14
  import "./chunk-5TYLSS4Q.mjs";
15
15
  import "./chunk-PSX3WHIH.mjs";
16
16
  import {
17
17
  PLAY_RUNTIME_PRICING_NOTE
18
- } from "./chunk-AZFSCPYK.mjs";
18
+ } from "./chunk-HGUFTSB5.mjs";
19
19
  import {
20
20
  PRICING_PAGE_NOTE
21
21
  } from "./chunk-HECXJBED.mjs";
@@ -32,9 +32,9 @@ import {
32
32
  openInBrowser,
33
33
  printCommandEnvelope,
34
34
  shouldEmitJson
35
- } from "./chunk-4LMTY4RQ.mjs";
36
- import "./chunk-W66GXHYR.mjs";
37
- import "./chunk-CFLAGRWL.mjs";
35
+ } from "./chunk-6DMGKAWO.mjs";
36
+ import "./chunk-3Z4TVZE7.mjs";
37
+ import "./chunk-I2TSRLOI.mjs";
38
38
  import {
39
39
  AuthError,
40
40
  ConfigError
@@ -44,7 +44,7 @@ import {
44
44
  DeeplineError
45
45
  } from "./chunk-Z3A2S3QM.mjs";
46
46
  import "./chunk-2MGZAI54.mjs";
47
- import "./chunk-4YSJOSBG.mjs";
47
+ import "./chunk-6NYHMXC7.mjs";
48
48
  import "./chunk-WZYKRD7T.mjs";
49
49
  import "./chunk-KRD6H754.mjs";
50
50
 
@@ -299,6 +299,8 @@ function recentUsageLines(entries) {
299
299
  const auditBits = [
300
300
  entry.outcome ? `outcome=${entry.outcome}` : null,
301
301
  entry.pricing_basis ? `priced_by=${entry.pricing_basis}` : null,
302
+ // managed: Deepline's provider key; user: the workspace's own key.
303
+ entry.credential_source && entry.credential_source !== "unknown" ? `key=${entry.credential_source}` : null,
302
304
  entry.run_id ? `run=${entry.run_id}` : null,
303
305
  entry.play_run_id || entry.execution_run_id ? `play_run=${entry.play_run_id ?? entry.execution_run_id}` : null,
304
306
  entry.billing_run_id ? `billing_run=${entry.billing_run_id}` : null,
@@ -4,22 +4,22 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-HZXF2HFF.mjs";
7
+ } from "./chunk-F57NDSKT.mjs";
8
8
  import {
9
9
  isCiEnvironment,
10
10
  resolveShellSpawn,
11
11
  syncSdkSkillsIfNeeded
12
- } from "./chunk-OAQYLTUN.mjs";
12
+ } from "./chunk-JFS4KHA3.mjs";
13
13
  import {
14
14
  addJsonNotice,
15
15
  isJsonOutputMode
16
- } from "./chunk-4LMTY4RQ.mjs";
16
+ } from "./chunk-6DMGKAWO.mjs";
17
17
  import {
18
18
  resolveApiKeyForBaseUrl
19
- } from "./chunk-W66GXHYR.mjs";
19
+ } from "./chunk-3Z4TVZE7.mjs";
20
20
  import {
21
21
  SDK_VERSION
22
- } from "./chunk-CFLAGRWL.mjs";
22
+ } from "./chunk-I2TSRLOI.mjs";
23
23
 
24
24
  // src/cli/compatibility-catalog.ts
25
25
  var readers = /* @__PURE__ */ new WeakMap();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HttpClient,
3
3
  detectAgentRuntime
4
- } from "./chunk-CFLAGRWL.mjs";
4
+ } from "./chunk-I2TSRLOI.mjs";
5
5
  import {
6
6
  ConfigError
7
7
  } from "./chunk-ASB47RXJ.mjs";
@@ -524,6 +524,13 @@ Output fields:
524
524
  quota.* monthly cap, when enabled.
525
525
  recent activity one line per billed call in
526
526
  render.sections, newest first.
527
+ recent.entries[].credential_source the provider key the call ran
528
+ on: managed (Deepline's),
529
+ user (yours), or unknown
530
+ (recorded before it was
531
+ stored, or no provider key).
532
+ api_key_id is the Deepline
533
+ key that called.
527
534
  ]]
528
535
  Cases:
529
536
  A run that is still active shows a partial spend; read it again after the
@@ -647,8 +654,10 @@ Examples:
647
654
  deepline run -e 'return { doubled: input.n * 2 };' --input '{"n":21}'
648
655
  Output:
649
656
  A receipt: what ran, its status and cost, where the data was saved, and
650
- the first values. --receipt-out <path> writes the JSON receipt only to that
651
- new file, even with --json. File errors go to stderr. Use --json-out - or
657
+ the first values. A tool call's credentialSource says which provider key it
658
+ ran on (or, with --dry-run, would run on): managed is Deepline's key, user
659
+ is your own connected key. --receipt-out <path> writes the JSON receipt only
660
+ to that new file, even with --json. File errors go to stderr. Use --json-out - or
652
661
  --csv-out - to pipe result data to stdout.
653
662
  --fields picks values and CSV columns. Exit code 0 completed, 1 failed or
654
663
  still running, 2 nothing ran.
@@ -4,14 +4,14 @@ import {
4
4
  resolveApiKeyForBaseUrl,
5
5
  resolveCliCommandContext,
6
6
  resolveConfig
7
- } from "./chunk-W66GXHYR.mjs";
7
+ } from "./chunk-3Z4TVZE7.mjs";
8
8
  import {
9
9
  SDK_VERSION,
10
10
  agentSessionIdFromEnvironment,
11
11
  deploymentProtectionHeaders,
12
12
  detectAgentRuntime,
13
13
  readToolFailureHint
14
- } from "./chunk-CFLAGRWL.mjs";
14
+ } from "./chunk-I2TSRLOI.mjs";
15
15
  import {
16
16
  DeeplineError,
17
17
  normalizeToolExecutionFailure,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-NTHN7ODR.mjs";
3
+ } from "./chunk-KIIOKQFY.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-W66GXHYR.mjs";
7
+ } from "./chunk-3Z4TVZE7.mjs";
8
8
 
9
9
  // src/client.ts
10
10
  var DeeplineClient2 = class extends DeeplineClient {
@@ -2,7 +2,7 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-CSPOWVWS.mjs";
5
+ } from "./chunk-YCWRKSLB.mjs";
6
6
  import {
7
7
  registerIntegrationBalanceCommand,
8
8
  registerIntegrationConnectCommand,
@@ -11,11 +11,11 @@ import {
11
11
  registerLegacyHubSpotMembersCommand,
12
12
  registerLegacyWorkspaceConnectionCommand,
13
13
  registerWorkspaceConnectionListCommand
14
- } from "./chunk-IFWB4BYZ.mjs";
14
+ } from "./chunk-KQAEXBVQ.mjs";
15
15
  import {
16
16
  recentSearchRef,
17
17
  registerDeprecatedSearchCommand
18
- } from "./chunk-DDJN4RR6.mjs";
18
+ } from "./chunk-M4YWN5BT.mjs";
19
19
  import {
20
20
  Capability,
21
21
  arrayField,
@@ -37,10 +37,10 @@ import {
37
37
  toolInputFieldsForDisplay,
38
38
  toolMetadataJsonForDescribe,
39
39
  toolOutputFieldsForDisplay
40
- } from "./chunk-DWUESXDD.mjs";
40
+ } from "./chunk-BZ4M7OFO.mjs";
41
41
  import {
42
42
  rateLimitQualifier
43
- } from "./chunk-FYKHAT2F.mjs";
43
+ } from "./chunk-DTQBQSUU.mjs";
44
44
  import {
45
45
  shellArgument,
46
46
  shellQuote
@@ -57,29 +57,29 @@ import {
57
57
  } from "./chunk-FIVKWNMT.mjs";
58
58
  import {
59
59
  DeeplineClient
60
- } from "./chunk-ITYSPUKD.mjs";
60
+ } from "./chunk-6EVVUVU3.mjs";
61
61
  import {
62
62
  validateExecutionIdempotencyKey
63
- } from "./chunk-NTHN7ODR.mjs";
63
+ } from "./chunk-KIIOKQFY.mjs";
64
64
  import {
65
65
  beginToolExecuteCommand,
66
66
  getToolExecuteInvocationId,
67
67
  maybeAutoUpdateAndRelaunch,
68
68
  registerCompatibilityCatalog,
69
69
  runToolExecuteStage
70
- } from "./chunk-H7DY5NQ3.mjs";
70
+ } from "./chunk-27ZYRIQC.mjs";
71
71
  import {
72
72
  isCliTraceEnabled,
73
73
  recordCliTrace,
74
74
  resolveCliMaintenancePolicy
75
- } from "./chunk-JQPFICW3.mjs";
75
+ } from "./chunk-X6LPC3SU.mjs";
76
76
  import {
77
77
  checkSdkCompatibility,
78
78
  enforceSdkCompatibilityResponse,
79
79
  flushDeferredSkillsSyncNotices,
80
80
  requireSdkCompatibility,
81
81
  syncSdkSkillsIfNeeded
82
- } from "./chunk-OAQYLTUN.mjs";
82
+ } from "./chunk-JFS4KHA3.mjs";
83
83
  import {
84
84
  errorToJsonPayload,
85
85
  printCommandEnvelope,
@@ -88,12 +88,12 @@ import {
88
88
  printJsonError,
89
89
  renderCommandEnvelopeText,
90
90
  shouldEmitJson
91
- } from "./chunk-4LMTY4RQ.mjs";
91
+ } from "./chunk-6DMGKAWO.mjs";
92
92
  import {
93
93
  readSdkSkillsLocalVersion,
94
94
  resolveConfig,
95
95
  sdkCliStateDirPath
96
- } from "./chunk-W66GXHYR.mjs";
96
+ } from "./chunk-3Z4TVZE7.mjs";
97
97
  import {
98
98
  DeeplineError
99
99
  } from "./chunk-Z3A2S3QM.mjs";
@@ -1057,7 +1057,7 @@ Examples:
1057
1057
  process.exitCode = await narrowView();
1058
1058
  return;
1059
1059
  }
1060
- const { describeAnything } = await import("./describe-UBSCFPH5.mjs");
1060
+ const { describeAnything } = await import("./describe-TITEQNVE.mjs");
1061
1061
  process.exitCode = await describeAnything(
1062
1062
  toolId,
1063
1063
  {
@@ -2574,7 +2574,9 @@ function writeToolReceipt(input) {
2574
2574
  const toolResponse = recordField(envelope, "toolResponse");
2575
2575
  const data = Object.hasOwn(toolResponse, "rawV2") ? toolResponse.rawV2 : Object.hasOwn(toolResponse, "raw") ? toolResponse.raw : Object.hasOwn(envelope, "output") ? envelope.output : Object.hasOwn(envelope, "result") ? envelope.result : response;
2576
2576
  const status = typeof envelope.status === "string" ? envelope.status : "completed";
2577
- const charged = recordField(envelope, "billing").credits_charged;
2577
+ const billing = recordField(envelope, "billing");
2578
+ const charged = billing.credits_charged;
2579
+ const credentialSource = stringField(billing, "credential_source");
2578
2580
  writeExecutionOutput(
2579
2581
  {
2580
2582
  id: input.key ?? jobId,
@@ -2584,6 +2586,7 @@ function writeToolReceipt(input) {
2584
2586
  complete: null,
2585
2587
  declared: declaredOutputs(metadata, envelope, data),
2586
2588
  credits: typeof charged === "number" ? charged : null,
2589
+ ...credentialSource ? { credentialSource } : {},
2587
2590
  warnings: [
2588
2591
  ...input.warnings ?? [],
2589
2592
  ...extractToolExecutionWarningMessages(response)
@@ -21,12 +21,12 @@ var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
21
21
  var _chunkCFJFUVX2js = require('./chunk-CFJFUVX2.js');
22
22
 
23
23
 
24
- var _chunkCPNTDIJKjs = require('./chunk-CPNTDIJK.js');
24
+ var _chunkNOMO5GPIjs = require('./chunk-NOMO5GPI.js');
25
25
 
26
26
  // src/version.ts
27
- var SDK_VERSION = _chunkCPNTDIJKjs.SDK_RELEASE.version;
28
- var SDK_API_MAJOR = _chunkCPNTDIJKjs.SDK_RELEASE.contracts.api.currentMajor;
29
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkCPNTDIJKjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
27
+ var SDK_VERSION = _chunkNOMO5GPIjs.SDK_RELEASE.version;
28
+ var SDK_API_MAJOR = _chunkNOMO5GPIjs.SDK_RELEASE.contracts.api.currentMajor;
29
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkNOMO5GPIjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
30
30
 
31
31
  // src/agent-runtime.ts
32
32
  var _fs = require('fs');
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.578",
52
+ version: "0.3.579",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -1,6 +1,6 @@
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; } var _class;
2
2
 
3
- var _chunkHGQT6EGKjs = require('./chunk-HGQT6EGK.js');
3
+ var _chunkOOGP737Ijs = require('./chunk-OOGP737I.js');
4
4
 
5
5
  // src/cli/progress.ts
6
6
  var _worker_threads = require('worker_threads');
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
19
19
  __init9() {this.quiet = false}
20
20
  // --json output is one JSON document: progress never renders under it.
21
21
  constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
22
- this.enabled = enabled && !_chunkHGQT6EGKjs.isJsonOutputMode.call(void 0, );
22
+ this.enabled = enabled && !_chunkOOGP737Ijs.isJsonOutputMode.call(void 0, );
23
23
  }
24
24
  setLogWriter(writer) {
25
25
  this.logWriter = writer;
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
59
59
  this.logWriter(line);
60
60
  return;
61
61
  }
62
- if (_chunkHGQT6EGKjs.isJsonOutputMode.call(void 0, )) return;
62
+ if (_chunkOOGP737Ijs.isJsonOutputMode.call(void 0, )) return;
63
63
  if (!this.enabled) {
64
64
  process.stderr.write(`${line}
65
65
  `);
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
37
37
 
38
38
 
39
39
 
40
- var _chunkA7NKOXBVjs = require('./chunk-A7NKOXBV.js');
40
+ var _chunk6MIEJJSOjs = require('./chunk-6MIEJJSO.js');
41
41
 
42
42
 
43
43
  var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
@@ -963,7 +963,7 @@ var ToolCalls = class {
963
963
  idempotencyKey,
964
964
  onResponse: (response2) => {
965
965
  lastResponse = null;
966
- atomicToolsSupported = response2.headers.get(_chunkA7NKOXBVjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
966
+ atomicToolsSupported = response2.headers.get(_chunk6MIEJJSOjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
967
967
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
968
968
  if (_optionalChain([options, 'optionalAccess', _38 => _38.onServerTiming])) {
969
969
  try {
@@ -1350,15 +1350,15 @@ function runtimeSelectionHeaders(runtime, env) {
1350
1350
  }
1351
1351
  const receivers = _optionalChain([env, 'access', _63 => _63.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65()]);
1352
1352
  return {
1353
- [_chunkA7NKOXBVjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1354
- ...receivers ? { [_chunkA7NKOXBVjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1353
+ [_chunk6MIEJJSOjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1354
+ ...receivers ? { [_chunk6MIEJJSOjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1355
1355
  };
1356
1356
  }
1357
1357
  function playRunStartHeaders(runtime, env) {
1358
1358
  const headers = runtimeSelectionHeaders(runtime, env);
1359
1359
  const experimentSwitches = _optionalChain([env, 'access', _66 => _66.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _67 => _67.trim, 'call', _68 => _68()]);
1360
1360
  if (!experimentSwitches) return headers;
1361
- return { ...headers, [_chunkA7NKOXBVjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
1361
+ return { ...headers, [_chunk6MIEJJSOjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
1362
1362
  }
1363
1363
  function normalizeTestPolicyOverrides(value, source) {
1364
1364
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -1428,7 +1428,7 @@ var PlayClient = class {
1428
1428
  return _chunkMJTVX4QKjs.startPlayRun.call(void 0,
1429
1429
  this.http,
1430
1430
  resolved.request,
1431
- _optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkA7NKOXBVjs.SDK_API_MAJOR) } : headers,
1431
+ _optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk6MIEJJSOjs.SDK_API_MAJOR) } : headers,
1432
1432
  options
1433
1433
  );
1434
1434
  }
@@ -3546,7 +3546,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3546
3546
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3547
3547
  );
3548
3548
  }
3549
- return { [_chunkA7NKOXBVjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3549
+ return { [_chunk6MIEJJSOjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3550
3550
  }
3551
3551
  function sleep(ms) {
3552
3552
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -4482,7 +4482,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4482
4482
  );
4483
4483
  const headers = _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? {
4484
4484
  ...runtimeHeaders,
4485
- "X-Deepline-API-Major": String(_chunkA7NKOXBVjs.SDK_API_MAJOR)
4485
+ "X-Deepline-API-Major": String(_chunk6MIEJJSOjs.SDK_API_MAJOR)
4486
4486
  } : runtimeHeaders;
4487
4487
  const http = this.http;
4488
4488
  let submitted = false;
@@ -3,16 +3,16 @@
3
3
  var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
4
4
 
5
5
 
6
- var _chunkUKSOIH2Pjs = require('./chunk-UKSOIH2P.js');
6
+ var _chunkUYCBG75Hjs = require('./chunk-UYCBG75H.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- var _chunkHGQT6EGKjs = require('./chunk-HGQT6EGK.js');
11
+ var _chunkOOGP737Ijs = require('./chunk-OOGP737I.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkXBO4ERH6js = require('./chunk-XBO4ERH6.js');
15
+ var _chunkTVAFWAOQjs = require('./chunk-TVAFWAOQ.js');
16
16
 
17
17
  // src/cli/commands/search.ts
18
18
  var _commander = require('commander');
@@ -22,7 +22,7 @@ var _fs = require('fs');
22
22
  var _path = require('path');
23
23
  var SEARCH_REF_TTL_MS = 15 * 6e4;
24
24
  function lastSearchPath() {
25
- return _path.join.call(void 0, _chunkXBO4ERH6js.sdkCliStateDirPath.call(void 0, _chunkXBO4ERH6js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
25
+ return _path.join.call(void 0, _chunkTVAFWAOQjs.sdkCliStateDirPath.call(void 0, _chunkTVAFWAOQjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
26
26
  }
27
27
  function rememberSearchRef(searchRef) {
28
28
  writeSearchRefs({ searchRef });
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
132
132
  console.error("--summary-width must be an integer of at least 2.");
133
133
  return 1;
134
134
  }
135
- const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
135
+ const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
136
136
  const json = options.json === true;
137
- const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-3ZBNTHGO.js")));
137
+ const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-IUANVHWU.js")));
138
138
  const searches = [];
139
139
  const chunks = [];
140
140
  const refs = /* @__PURE__ */ new Map();
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
157
157
  const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
158
158
  if (!multiple) {
159
159
  if (searchRef) rememberSearchRef(searchRef);
160
- _chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, result, { json, text });
160
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, result, { json, text });
161
161
  return 0;
162
162
  }
163
163
  searches.push({ ...result, query });
@@ -171,8 +171,8 @@ ${text}`);
171
171
  }
172
172
  } catch (error) {
173
173
  if (!multiple) throw error;
174
- const payload = _chunkHGQT6EGKjs.errorToJsonPayload.call(void 0, error);
175
- const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkHGQT6EGKjs.resolveSdkCliFailureExitCode.call(void 0, error)));
174
+ const payload = _chunkOOGP737Ijs.errorToJsonPayload.call(void 0, error);
175
+ const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkOOGP737Ijs.resolveSdkCliFailureExitCode.call(void 0, error)));
176
176
  searches.push({ ...payload, query, exitCode: queryExitCode });
177
177
  if (!json) {
178
178
  console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
@@ -184,7 +184,7 @@ Search failed.
184
184
  }
185
185
  }
186
186
  rememberSearchRefsByTool(refs);
187
- _chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
187
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
188
188
  { searches },
189
189
  {
190
190
  json,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  httpJson
3
- } from "./chunk-HKZN33F2.mjs";
3
+ } from "./chunk-SUHCW7U5.mjs";
4
4
  import {
5
5
  PRICING_PAGE_NOTE
6
6
  } from "./chunk-HECXJBED.mjs";
7
7
  import {
8
8
  autoDetectBaseUrl,
9
9
  resolveApiKeyForBaseUrl
10
- } from "./chunk-W66GXHYR.mjs";
10
+ } from "./chunk-3Z4TVZE7.mjs";
11
11
 
12
12
  // src/cli/concurrent-runs-help.ts
13
13
  var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
@@ -4,22 +4,22 @@
4
4
 
5
5
 
6
6
 
7
- var _chunk5LCV36BRjs = require('./chunk-5LCV36BR.js');
7
+ var _chunkDH736ASHjs = require('./chunk-DH736ASH.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkXX7TZM4Njs = require('./chunk-XX7TZM4N.js');
12
+ var _chunkY2ND6PPWjs = require('./chunk-Y2ND6PPW.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkHGQT6EGKjs = require('./chunk-HGQT6EGK.js');
16
+ var _chunkOOGP737Ijs = require('./chunk-OOGP737I.js');
17
17
 
18
18
 
19
- var _chunkXBO4ERH6js = require('./chunk-XBO4ERH6.js');
19
+ var _chunkTVAFWAOQjs = require('./chunk-TVAFWAOQ.js');
20
20
 
21
21
 
22
- var _chunkA7NKOXBVjs = require('./chunk-A7NKOXBV.js');
22
+ var _chunk6MIEJJSOjs = require('./chunk-6MIEJJSO.js');
23
23
 
24
24
  // src/cli/compatibility-catalog.ts
25
25
  var readers = /* @__PURE__ */ new WeakMap();
@@ -46,7 +46,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
46
46
  async function reportAutoUpdateEvent(input) {
47
47
  let apiKey = "";
48
48
  try {
49
- apiKey = _chunkXBO4ERH6js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
+ apiKey = _chunkTVAFWAOQjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
50
50
  } catch (e2) {
51
51
  return;
52
52
  }
@@ -62,15 +62,15 @@ async function reportAutoUpdateEvent(input) {
62
62
  headers: {
63
63
  Authorization: `Bearer ${apiKey}`,
64
64
  "Content-Type": "application/json",
65
- "User-Agent": `deepline-ts-sdk/${_chunkA7NKOXBVjs.SDK_VERSION}`,
65
+ "User-Agent": `deepline-ts-sdk/${_chunk6MIEJJSOjs.SDK_VERSION}`,
66
66
  "X-Deepline-Client-Family": "sdk",
67
67
  "X-Deepline-CLI-Family": "sdk",
68
- "X-Deepline-CLI-Version": _chunkA7NKOXBVjs.SDK_VERSION,
69
- "X-Deepline-SDK-Version": _chunkA7NKOXBVjs.SDK_VERSION
68
+ "X-Deepline-CLI-Version": _chunk6MIEJJSOjs.SDK_VERSION,
69
+ "X-Deepline-SDK-Version": _chunk6MIEJJSOjs.SDK_VERSION
70
70
  },
71
71
  body: JSON.stringify({
72
72
  event: input.event,
73
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkA7NKOXBVjs.SDK_VERSION,
73
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunk6MIEJJSOjs.SDK_VERSION,
74
74
  target_version: input.response.latest,
75
75
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
76
76
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -89,19 +89,19 @@ function envTruthy(name) {
89
89
  return value === "1" || value === "true" || value === "yes";
90
90
  }
91
91
  function shouldSkipSelfUpdate(policy) {
92
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk5LCV36BRjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkXX7TZM4Njs.isCiEnvironment.call(void 0, );
92
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkDH736ASHjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkY2ND6PPWjs.isCiEnvironment.call(void 0, );
93
93
  }
94
94
  function isDowngradeAutoUpdateResponse(response) {
95
95
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
96
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkA7NKOXBVjs.SDK_VERSION;
96
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunk6MIEJJSOjs.SDK_VERSION;
97
97
  if (!target) return false;
98
- return _chunk5LCV36BRjs.compareUpdateVersions.call(void 0, target, current) < 0;
98
+ return _chunkDH736ASHjs.compareUpdateVersions.call(void 0, target, current) < 0;
99
99
  }
100
100
  function relaunchCurrentCommand(plan, runtime = {}) {
101
101
  return new Promise((resolve) => {
102
102
  const argv = _nullishCoalesce(runtime.argv, () => ( process.argv));
103
103
  const platform = _nullishCoalesce(runtime.platform, () => ( process.platform));
104
- const launch = plan.kind === "python-sidecar" ? _chunkXX7TZM4Njs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
104
+ const launch = plan.kind === "python-sidecar" ? _chunkY2ND6PPWjs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
105
105
  command: _nullishCoalesce(runtime.execPath, () => ( process.execPath)),
106
106
  args: argv.slice(1),
107
107
  shell: false
@@ -148,7 +148,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
148
148
  }
149
149
  if (isDowngradeAutoUpdateResponse(response)) {
150
150
  const target = response.latest;
151
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkA7NKOXBVjs.SDK_VERSION;
151
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunk6MIEJJSOjs.SDK_VERSION;
152
152
  process.stderr.write(
153
153
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
154
154
  `
@@ -156,21 +156,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
156
156
  return false;
157
157
  }
158
158
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
159
- const plan = _chunk5LCV36BRjs.resolveUpdatePlan.call(void 0, {
159
+ const plan = _chunkDH736ASHjs.resolveUpdatePlan.call(void 0, {
160
160
  packageSpec,
161
161
  requireVerifiedNpmOwnership: true,
162
162
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
163
163
  });
164
- if (!_chunk5LCV36BRjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
164
+ if (!_chunkDH736ASHjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
165
165
  return false;
166
166
  }
167
167
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
168
168
  deferredAutoUpdate = async () => {
169
169
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
170
170
  };
171
- if (_chunkHGQT6EGKjs.isJsonOutputMode.call(void 0, )) {
171
+ if (_chunkOOGP737Ijs.isJsonOutputMode.call(void 0, )) {
172
172
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
173
- _chunkHGQT6EGKjs.addJsonNotice.call(void 0, {
173
+ _chunkOOGP737Ijs.addJsonNotice.call(void 0, {
174
174
  code: "sdk_update_queued",
175
175
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
176
176
  });
@@ -183,7 +183,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
183
183
  return true;
184
184
  }
185
185
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
186
- if (!_chunk5LCV36BRjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
186
+ if (!_chunkDH736ASHjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
187
187
  const autoUpdate = response.auto_update;
188
188
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
189
189
  process.stderr.write(
@@ -196,7 +196,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
196
196
  event: "started",
197
197
  installKind: plan.kind
198
198
  });
199
- const updateResult = await _chunk5LCV36BRjs.runAutomaticUpdatePlan.call(void 0, plan);
199
+ const updateResult = await _chunkDH736ASHjs.runAutomaticUpdatePlan.call(void 0, plan);
200
200
  if (updateResult.status === "skipped_previous_failure") {
201
201
  void reportAutoUpdateEvent({
202
202
  baseUrl,
@@ -234,7 +234,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
234
234
  exitCode: 0
235
235
  });
236
236
  try {
237
- await _chunkXX7TZM4Njs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
237
+ await _chunkY2ND6PPWjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
238
238
  mode: "detached",
239
239
  update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
240
240
  afterCliUpdate: {
@@ -261,7 +261,7 @@ var _crypto = require('crypto');
261
261
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
262
262
  var activeToolExecuteCommand = null;
263
263
  function progressLine(line) {
264
- if (!_chunkHGQT6EGKjs.isJsonOutputMode.call(void 0, )) console.error(line);
264
+ if (!_chunkOOGP737Ijs.isJsonOutputMode.call(void 0, )) console.error(line);
265
265
  }
266
266
  function beginToolExecuteCommand() {
267
267
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;