deepline 0.3.554 → 0.3.555

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 (153) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/types.ts +8 -2
  3. package/dist/cli/auth-MRVTS74X.js +44 -0
  4. package/dist/cli/{auth-HJUNW7T2.mjs → auth-UFANBJW3.mjs} +5 -5
  5. package/dist/cli/{billing-4TSA5HEC.js → billing-BGIT2VYM.js} +102 -102
  6. package/dist/cli/{billing-SJYRJAQ2.mjs → billing-S7MCXBND.mjs} +9 -9
  7. package/dist/cli/{chunk-VLO5NFH2.mjs → chunk-57J3OOCR.mjs} +1 -1
  8. package/dist/cli/{chunk-GA2M3G3Y.mjs → chunk-5J6TKML2.mjs} +4 -4
  9. package/dist/cli/{chunk-52Q5KETX.mjs → chunk-66BQY77L.mjs} +1 -1
  10. package/dist/cli/{chunk-E74KGKFZ.js → chunk-6F5GNZQH.js} +5 -5
  11. package/dist/cli/{chunk-5CYZHOKI.js → chunk-6M2SDRWN.js} +4 -4
  12. package/dist/cli/{chunk-62HWJXST.mjs → chunk-6R5Y7U52.mjs} +2 -2
  13. package/dist/cli/{chunk-2HMN5H54.js → chunk-72VEVAIX.js} +48 -48
  14. package/dist/cli/{chunk-RBBTCYQB.mjs → chunk-732RWNDP.mjs} +3 -3
  15. package/dist/cli/{chunk-DSKSFFK2.mjs → chunk-7H753VC5.mjs} +1 -1
  16. package/dist/cli/{chunk-UOT7HPBH.js → chunk-7LM55DIN.js} +41 -41
  17. package/dist/cli/{chunk-D6Z6POKE.mjs → chunk-ASDVROA5.mjs} +5 -5
  18. package/dist/cli/{chunk-3Z4VFCXO.mjs → chunk-AUY53RLU.mjs} +5 -5
  19. package/dist/cli/{chunk-VIUUTEHY.js → chunk-AYCC5JAS.js} +3 -3
  20. package/dist/cli/{chunk-33WRQSQ2.mjs → chunk-BTKVXI3G.mjs} +3 -2
  21. package/dist/cli/{chunk-XD3MFTHA.mjs → chunk-DFL3UBW2.mjs} +1 -1
  22. package/dist/cli/{chunk-OVEYWO4H.js → chunk-DYWOBLYL.js} +8 -8
  23. package/dist/cli/{chunk-4DOFGIEJ.js → chunk-EG44APVW.js} +12 -12
  24. package/dist/cli/{chunk-2ORPFQUA.mjs → chunk-FO3U5YTL.mjs} +3 -3
  25. package/dist/cli/{chunk-XU6QNM4D.mjs → chunk-HQK2NPXE.mjs} +1 -1
  26. package/dist/cli/{chunk-B6HO2XWH.mjs → chunk-I45RNMNZ.mjs} +5 -5
  27. package/dist/cli/{chunk-M7STM3MZ.js → chunk-IHWXC7UU.js} +26 -26
  28. package/dist/cli/{chunk-TOO3YM5N.js → chunk-KSUI4YX5.js} +6 -6
  29. package/dist/cli/{chunk-VV4XGZ24.js → chunk-LU25WURE.js} +13 -13
  30. package/dist/cli/{chunk-62AUAWQV.mjs → chunk-M2CW4UZV.mjs} +4 -4
  31. package/dist/cli/{chunk-W6CZDTIR.js → chunk-M5YBTQQX.js} +53 -53
  32. package/dist/cli/{chunk-OPTV7D2V.js → chunk-MIXPZ4G7.js} +100 -100
  33. package/dist/cli/{chunk-GHT2NDL7.js → chunk-MOJ65E7L.js} +9 -9
  34. package/dist/cli/{chunk-UC4BDZKI.mjs → chunk-N55EUVKV.mjs} +2 -2
  35. package/dist/cli/{chunk-F7CMRKSK.mjs → chunk-NFWZAQAU.mjs} +1 -1
  36. package/dist/cli/{chunk-FXQ3JKE3.mjs → chunk-PGPPZMXD.mjs} +1 -1
  37. package/dist/cli/{chunk-UYCZFQYQ.js → chunk-QMDG7FKA.js} +10 -8
  38. package/dist/cli/{chunk-DUBXUAAO.js → chunk-QZ2C5ARH.js} +5 -5
  39. package/dist/cli/{chunk-YY55NYAH.mjs → chunk-RL7ZI4ZG.mjs} +11 -11
  40. package/dist/cli/{chunk-YCOGPOUX.mjs → chunk-RO7SIWBG.mjs} +2 -2
  41. package/dist/cli/{chunk-YQKCH4R7.js → chunk-RWT6N2SU.js} +20 -20
  42. package/dist/cli/{chunk-2OVHNHCF.js → chunk-S2CNGS7O.js} +2 -2
  43. package/dist/cli/{chunk-KVBQY4ST.mjs → chunk-S65SZ74B.mjs} +4 -2
  44. package/dist/cli/{chunk-GRZENGNE.js → chunk-SE56PJ46.js} +2 -2
  45. package/dist/cli/{chunk-RTHMGSZX.js → chunk-SF2LIUVO.js} +15 -15
  46. package/dist/cli/{chunk-UNNOZKRT.js → chunk-T3QSHU6E.js} +1 -1
  47. package/dist/cli/{chunk-UBBYHB2B.mjs → chunk-T4BFNFBL.mjs} +2 -2
  48. package/dist/cli/{chunk-ECHKAC7M.js → chunk-TFPKGTMD.js} +2 -2
  49. package/dist/cli/{chunk-7OWI736E.js → chunk-U6KGXTYS.js} +23 -23
  50. package/dist/cli/{chunk-6EXOAT6T.mjs → chunk-UUU5WUKM.mjs} +2 -2
  51. package/dist/cli/{chunk-BOZAP2EM.mjs → chunk-UYYOO7VT.mjs} +5 -5
  52. package/dist/cli/{chunk-Q7ACILL2.mjs → chunk-W6K6WULS.mjs} +2 -2
  53. package/dist/cli/{chunk-TJ6HLN56.js → chunk-W7SPSF63.js} +5 -5
  54. package/dist/cli/{chunk-PQQMPUCZ.js → chunk-WTQGJBHD.js} +3 -3
  55. package/dist/cli/{chunk-S6W6SJ6E.mjs → chunk-XIHZUWIG.mjs} +1 -1
  56. package/dist/cli/{chunk-IVZKMJUK.js → chunk-YI4ADWTN.js} +3 -2
  57. package/dist/cli/{chunk-WL7P32PI.js → chunk-YXH5Q7OY.js} +20 -20
  58. package/dist/cli/{chunk-FBAFX43W.js → chunk-Z2T7XTND.js} +10 -10
  59. package/dist/cli/{chunk-VQ75KX7G.mjs → chunk-Z3O5GCQM.mjs} +2 -2
  60. package/dist/cli/{chunk-KZHBDMGF.mjs → chunk-ZU6A4H6P.mjs} +2 -2
  61. package/dist/cli/command-docs.js +2 -2
  62. package/dist/cli/command-docs.mjs +1 -1
  63. package/dist/cli/concurrent-runs-help-CHBVPWYT.js +22 -0
  64. package/dist/cli/{concurrent-runs-help-O3Q5IPLF.mjs → concurrent-runs-help-I7ZLXZDD.mjs} +6 -6
  65. package/dist/cli/{csv-Y3BFPEM6.mjs → csv-K7FNSHIM.mjs} +4 -4
  66. package/dist/cli/{csv-4ZQ2RATI.js → csv-Q2Y3KKK2.js} +13 -13
  67. package/dist/cli/{db-3JYY4JNN.mjs → db-74RBHX6G.mjs} +6 -6
  68. package/dist/cli/{db-VEIFS4M7.js → db-E4XSIQDS.js} +27 -27
  69. package/dist/cli/describe-TUW35JSY.js +50 -0
  70. package/dist/cli/{describe-EVJ4MFVU.mjs → describe-UYB6WDHS.mjs} +18 -18
  71. package/dist/cli/describe-core.d.mts +2 -2
  72. package/dist/cli/describe-core.d.ts +2 -2
  73. package/dist/cli/{executions-PCXZKEHM.mjs → executions-6LKXZRL4.mjs} +6 -6
  74. package/dist/cli/{executions-HPZXOOVX.js → executions-LX6HJM72.js} +8 -8
  75. package/dist/cli/{feedback-ZKFHFVL6.js → feedback-7D2JRVOM.js} +14 -14
  76. package/dist/cli/{feedback-Y6VKZNY6.mjs → feedback-B2V64TYZ.mjs} +6 -6
  77. package/dist/cli/{git-UMPR2QYC.mjs → git-7KNCB2HN.mjs} +5 -5
  78. package/dist/cli/git-TH4M62KL.js +26 -0
  79. package/dist/cli/index.js +147 -147
  80. package/dist/cli/index.mjs +46 -46
  81. package/dist/cli/{integrations-3GQCTRTF.js → integrations-34UK7XET.js} +15 -15
  82. package/dist/cli/{integrations-V3TM6XAB.mjs → integrations-J3RHOSAR.mjs} +7 -7
  83. package/dist/cli/{legacy-noops-VYCO7NGW.js → legacy-noops-HXJ6UMK7.js} +9 -9
  84. package/dist/cli/{legacy-noops-JZBUD7ZE.mjs → legacy-noops-WQUDES3K.mjs} +6 -6
  85. package/dist/cli/{mcp-4OIWTCE6.js → mcp-EZENPRPY.js} +24 -24
  86. package/dist/cli/{mcp-PH4KZ76P.mjs → mcp-JZPAPQYI.mjs} +4 -4
  87. package/dist/cli/{monitors-SSMGIDGX.mjs → monitors-GF2WEFF6.mjs} +7 -7
  88. package/dist/cli/{monitors-E2A6VPBY.js → monitors-GS2P4OUK.js} +100 -100
  89. package/dist/cli/{org-WUDZGWBT.js → org-V56HBHPB.js} +121 -121
  90. package/dist/cli/{org-SFDKSK5D.mjs → org-WJ2RO7ZE.mjs} +6 -6
  91. package/dist/cli/{outcomes-Y7SZTLSL.js → outcomes-D6KXYKGW.js} +14 -14
  92. package/dist/cli/{outcomes-QT7LQBPK.mjs → outcomes-WP5WV54Y.mjs} +6 -6
  93. package/dist/cli/{play-EK7KSFPL.mjs → play-FHHCHNQH.mjs} +34 -22
  94. package/dist/cli/{play-GDNHCRRR.js → play-PXUVRS4K.js} +339 -327
  95. package/dist/cli/{providers-FVZLRXAU.mjs → providers-HJ77LN3M.mjs} +6 -6
  96. package/dist/cli/{providers-ZKOSECLV.js → providers-TOXIJOY2.js} +9 -9
  97. package/dist/cli/{quickstart-KSDKIXYD.js → quickstart-MDXLT5SR.js} +6 -6
  98. package/dist/cli/{quickstart-UJZ6PIQV.mjs → quickstart-UEQHXEWP.mjs} +4 -4
  99. package/dist/cli/{run-PD2BBG6S.js → run-2MXAEH6U.js} +48 -54
  100. package/dist/cli/{run-E7MZ7P35.mjs → run-ZZ5ABZL7.mjs} +27 -33
  101. package/dist/cli/search-6DT2TGOU.js +32 -0
  102. package/dist/cli/{search-VTFUFTOY.mjs → search-AF4XVWC2.mjs} +7 -7
  103. package/dist/cli/{search-output-PFVXQCWA.mjs → search-output-3GFQJJGJ.mjs} +4 -4
  104. package/dist/cli/{search-output-G2AGDCOY.js → search-output-LEKJVZSH.js} +6 -6
  105. package/dist/cli/{secrets-BCOQ4U7U.js → secrets-MR2FNFGD.js} +15 -15
  106. package/dist/cli/{secrets-7CIMEMX7.mjs → secrets-TLH3FKCT.mjs} +6 -6
  107. package/dist/cli/sessions-EJYLWV2M.js +23 -0
  108. package/dist/cli/{sessions-IUCQZEF7.mjs → sessions-LUL5P66K.mjs} +6 -6
  109. package/dist/cli/{settings-KZN62UQK.mjs → settings-AWSRUTZR.mjs} +12 -12
  110. package/dist/cli/{settings-REL4736M.js → settings-Z2HYUOL7.js} +85 -85
  111. package/dist/cli/{setup-2XIVBBCS.js → setup-FIMXN4IC.js} +49 -49
  112. package/dist/cli/{setup-2P7OG3OU.mjs → setup-PFPAJOUI.mjs} +9 -9
  113. package/dist/cli/skills-232RNG5G.js +37 -0
  114. package/dist/cli/{skills-VIGNDJKI.mjs → skills-5DKSATY5.mjs} +7 -7
  115. package/dist/cli/{tools-W3QT5EJY.mjs → tools-BDNASCSH.mjs} +17 -17
  116. package/dist/cli/tools-P7FBJVJA.js +57 -0
  117. package/dist/cli/{update-GZVBVMY3.mjs → update-CAFUZ5XT.mjs} +9 -9
  118. package/dist/cli/update-OC4UB2XE.js +37 -0
  119. package/dist/cli/{views-BOGEH424.mjs → views-7PDXZUQA.mjs} +6 -6
  120. package/dist/cli/{views-TOLJNLSV.js → views-XJOBO6US.js} +21 -21
  121. package/dist/cli/{workflow-VDG2FDQV.mjs → workflow-2BMUGN7M.mjs} +7 -7
  122. package/dist/cli/{workflow-ENWFRK5M.js → workflow-KCPLU5R7.js} +17 -17
  123. package/dist/{client-B8f7RNF8.d.mts → client-1ogYQqUw.d.mts} +1 -1
  124. package/dist/{client-C5TgXmJQ.d.ts → client-BoayTB7p.d.ts} +1 -1
  125. package/dist/{client-core-SLLGBTht.d.mts → client-core-Ch8CXaX4.d.mts} +8 -2
  126. package/dist/{client-core-p0sOxnkl.d.ts → client-core-DySw9x_E.d.ts} +8 -2
  127. package/dist/index.d.mts +3 -3
  128. package/dist/index.d.ts +3 -3
  129. package/dist/index.js +9 -9
  130. package/dist/index.mjs +6 -6
  131. package/dist/install-integrity.json +118 -118
  132. package/dist/plays/play-description.d.mts +1 -1
  133. package/dist/plays/play-description.d.ts +1 -1
  134. package/dist/plays/run-request.d.mts +1 -1
  135. package/dist/plays/run-request.d.ts +1 -1
  136. package/dist/release.d.mts +1 -1
  137. package/dist/release.d.ts +1 -1
  138. package/dist/release.js +2 -2
  139. package/dist/release.mjs +1 -1
  140. package/dist/server.d.mts +2 -2
  141. package/dist/server.d.ts +2 -2
  142. package/dist/server.js +5 -5
  143. package/dist/server.mjs +3 -3
  144. package/package.json +1 -1
  145. package/dist/cli/auth-SP6SKZJZ.js +0 -44
  146. package/dist/cli/concurrent-runs-help-ZFRZWX5V.js +0 -22
  147. package/dist/cli/describe-FG625QPF.js +0 -50
  148. package/dist/cli/git-RUBMALLH.js +0 -26
  149. package/dist/cli/search-TKSPTPHA.js +0 -32
  150. package/dist/cli/sessions-4CO556VD.js +0 -23
  151. package/dist/cli/skills-JYT5DEY6.js +0 -37
  152. package/dist/cli/tools-NTVUQ2TG.js +0 -57
  153. package/dist/cli/update-TWJZPUZM.js +0 -37
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-6EXOAT6T.mjs";
4
- import "./chunk-VLO5NFH2.mjs";
3
+ } from "./chunk-UUU5WUKM.mjs";
4
+ import "./chunk-57J3OOCR.mjs";
5
5
  import "./chunk-FZHMNK6F.mjs";
6
6
  import "./chunk-5TYLSS4Q.mjs";
7
7
  import "./chunk-PSX3WHIH.mjs";
8
8
  import {
9
9
  printCommandEnvelope
10
- } from "./chunk-UC4BDZKI.mjs";
10
+ } from "./chunk-N55EUVKV.mjs";
11
11
  import {
12
12
  ACTIVE_ORG_ID_ENV,
13
13
  ACTIVE_ORG_NAME_ENV,
@@ -29,17 +29,17 @@ import {
29
29
  saveProjectDeeplineEnvValues,
30
30
  sdkCliStateDirPath,
31
31
  storedHostFeatures
32
- } from "./chunk-52Q5KETX.mjs";
32
+ } from "./chunk-66BQY77L.mjs";
33
33
  import {
34
34
  detectAgentRuntime
35
- } from "./chunk-S6W6SJ6E.mjs";
35
+ } from "./chunk-XIHZUWIG.mjs";
36
36
  import "./chunk-ASB47RXJ.mjs";
37
37
  import "./chunk-DLIRSHV6.mjs";
38
38
  import {
39
39
  DeeplineError
40
40
  } from "./chunk-Z3A2S3QM.mjs";
41
41
  import "./chunk-2MGZAI54.mjs";
42
- import "./chunk-FXQ3JKE3.mjs";
42
+ import "./chunk-PGPPZMXD.mjs";
43
43
  import "./chunk-WZYKRD7T.mjs";
44
44
  import "./chunk-KRD6H754.mjs";
45
45
 
@@ -1,24 +1,24 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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 _chunkDUBXUAAOjs = require('./chunk-DUBXUAAO.js');
4
- require('./chunk-OVEYWO4H.js');
3
+ var _chunkQZ2C5ARHjs = require('./chunk-QZ2C5ARH.js');
4
+ require('./chunk-DYWOBLYL.js');
5
5
  require('./chunk-4WAM6TLD.js');
6
6
  require('./chunk-MJTVX4QK.js');
7
7
  require('./chunk-PMH4GLMD.js');
8
8
 
9
9
 
10
- var _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.js');
10
+ var _chunkRWT6N2SUjs = require('./chunk-RWT6N2SU.js');
11
11
 
12
12
 
13
13
 
14
14
 
15
- var _chunkVIUUTEHYjs = require('./chunk-VIUUTEHY.js');
16
- require('./chunk-5CYZHOKI.js');
15
+ var _chunkAYCC5JASjs = require('./chunk-AYCC5JAS.js');
16
+ require('./chunk-6M2SDRWN.js');
17
17
  require('./chunk-6VLFQZK6.js');
18
18
  require('./chunk-XNYIZMNQ.js');
19
19
  require('./chunk-LFQJW4S2.js');
20
20
  require('./chunk-CFJFUVX2.js');
21
- require('./chunk-UNNOZKRT.js');
21
+ require('./chunk-T3QSHU6E.js');
22
22
  require('./chunk-OG64RBAC.js');
23
23
  require('./chunk-COGTRVWW.js');
24
24
 
@@ -43,7 +43,7 @@ var _fs = require('fs');
43
43
  function scopeDir(scope) {
44
44
  const digest = _crypto.createHash.call(void 0, "sha256").update(_crypto.createHash.call(void 0, "sha256").update(scope.apiKey).digest("hex")).update("\0").update(_nullishCoalesce(_optionalChain([scope, 'access', _ => _.workspace, 'optionalAccess', _2 => _2.trim, 'call', _3 => _3()]), () => ( ""))).digest("hex");
45
45
  return _path.join.call(void 0,
46
- _chunkVIUUTEHYjs.sdkCliStateDirPath.call(void 0, scope.baseUrl),
46
+ _chunkAYCC5JASjs.sdkCliStateDirPath.call(void 0, scope.baseUrl),
47
47
  "outcome-claims",
48
48
  digest.slice(0, 32)
49
49
  );
@@ -103,7 +103,7 @@ async function readLocalFile(path) {
103
103
  }
104
104
  var BUSY_RETRIES = 3;
105
105
  async function api(method, path, body, options) {
106
- const client = new (0, _chunkDUBXUAAOjs.DeeplineClient)();
106
+ const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
107
107
  for (let attempt = 0; ; attempt += 1) {
108
108
  try {
109
109
  return await client.outcomesApi(method, path, body, {
@@ -120,7 +120,7 @@ async function api(method, path, body, options) {
120
120
  }
121
121
  }
122
122
  function claimScope() {
123
- const { baseUrl, apiKey, workspace } = _chunkVIUUTEHYjs.resolveConfig.call(void 0, );
123
+ const { baseUrl, apiKey, workspace } = _chunkAYCC5JASjs.resolveConfig.call(void 0, );
124
124
  return { baseUrl, apiKey, workspace };
125
125
  }
126
126
  function outcomePath(outcome, rest = "") {
@@ -135,7 +135,7 @@ function safeForTerminal(text) {
135
135
  }
136
136
  function print(command, json, data, lines) {
137
137
  const safe = lines.map(safeForTerminal);
138
- _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
138
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
139
139
  {
140
140
  ok: true,
141
141
  command,
@@ -163,7 +163,7 @@ function errorResponse(error) {
163
163
  function printFailure(json, failure, extra = {}) {
164
164
  const { code, message, exitCode, next } = failure;
165
165
  if (json) {
166
- _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
166
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
167
167
  {
168
168
  ok: false,
169
169
  code,
@@ -862,7 +862,7 @@ function printCheckFailure(command, json, check) {
862
862
  );
863
863
  return;
864
864
  }
865
- _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
865
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
866
866
  { ok: false, command, render: { sections: [{ title: command, lines }] } },
867
867
  { json: false, text: `${lines.join("\n")}
868
868
  ` }
@@ -1019,7 +1019,7 @@ Text that starts with - goes after --, for example: deepline ${path} ... -- "-5%
1019
1019
  }
1020
1020
  }
1021
1021
  function registerOutcomesCommands(program) {
1022
- const outcomes = program.command("outcomes", { hidden: !_chunkVIUUTEHYjs.cliFeatureEnabled.call(void 0, OUTCOMES_FEATURE) }).description(
1022
+ const outcomes = program.command("outcomes", { hidden: !_chunkAYCC5JASjs.cliFeatureEnabled.call(void 0, OUTCOMES_FEATURE) }).description(
1023
1023
  "Hand a role to agents and people: what should be true, the guardrails, and a shared feed."
1024
1024
  ).addHelpText(
1025
1025
  "after",
@@ -1222,7 +1222,7 @@ Examples:
1222
1222
  );
1223
1223
  return;
1224
1224
  }
1225
- _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
1225
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
1226
1226
  {
1227
1227
  ok: true,
1228
1228
  command: "outcomes get",
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-6EXOAT6T.mjs";
4
- import "./chunk-VLO5NFH2.mjs";
3
+ } from "./chunk-UUU5WUKM.mjs";
4
+ import "./chunk-57J3OOCR.mjs";
5
5
  import "./chunk-FZHMNK6F.mjs";
6
6
  import "./chunk-5TYLSS4Q.mjs";
7
7
  import "./chunk-PSX3WHIH.mjs";
8
8
  import {
9
9
  printCommandEnvelope
10
- } from "./chunk-UC4BDZKI.mjs";
10
+ } from "./chunk-N55EUVKV.mjs";
11
11
  import {
12
12
  cliFeatureEnabled,
13
13
  resolveConfig,
14
14
  sdkCliStateDirPath
15
- } from "./chunk-52Q5KETX.mjs";
16
- import "./chunk-S6W6SJ6E.mjs";
15
+ } from "./chunk-66BQY77L.mjs";
16
+ import "./chunk-XIHZUWIG.mjs";
17
17
  import "./chunk-ASB47RXJ.mjs";
18
18
  import "./chunk-DLIRSHV6.mjs";
19
19
  import "./chunk-Z3A2S3QM.mjs";
20
20
  import "./chunk-2MGZAI54.mjs";
21
- import "./chunk-FXQ3JKE3.mjs";
21
+ import "./chunk-PGPPZMXD.mjs";
22
22
  import "./chunk-WZYKRD7T.mjs";
23
23
  import "./chunk-KRD6H754.mjs";
24
24
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  handleDeploymentGet,
3
3
  handleDeploymentsList
4
- } from "./chunk-KZHBDMGF.mjs";
4
+ } from "./chunk-ZU6A4H6P.mjs";
5
5
  import {
6
6
  DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS,
7
7
  MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS,
@@ -9,7 +9,7 @@ import {
9
9
  parsePlayRunHeaderFlag,
10
10
  parsePlayRunOptions,
11
11
  resolvePlayRunCliOptions
12
- } from "./chunk-VQ75KX7G.mjs";
12
+ } from "./chunk-Z3O5GCQM.mjs";
13
13
  import {
14
14
  ExecutionOutputError,
15
15
  TABLE_EXPORT_ERROR_COLUMN,
@@ -22,10 +22,10 @@ import {
22
22
  underscoreKeysLast,
23
23
  writeExecutionOutput,
24
24
  writeRunDatasetCsv
25
- } from "./chunk-KVBQY4ST.mjs";
25
+ } from "./chunk-S65SZ74B.mjs";
26
26
  import {
27
27
  registerDeprecatedSearchCommand
28
- } from "./chunk-GA2M3G3Y.mjs";
28
+ } from "./chunk-5J6TKML2.mjs";
29
29
  import "./chunk-5AEDYVB6.mjs";
30
30
  import {
31
31
  buildPlayDashboardUrl,
@@ -51,10 +51,10 @@ import {
51
51
  import {
52
52
  pinLocalPlayImports,
53
53
  planLocalPlayExecution
54
- } from "./chunk-UBBYHB2B.mjs";
54
+ } from "./chunk-T4BFNFBL.mjs";
55
55
  import {
56
56
  DeeplineClient
57
- } from "./chunk-6EXOAT6T.mjs";
57
+ } from "./chunk-UUU5WUKM.mjs";
58
58
  import {
59
59
  RUN_EVENT_SEARCH_KIND_VALUES,
60
60
  RunEventQueryInputError,
@@ -67,7 +67,7 @@ import {
67
67
  normalizePlayStatus,
68
68
  normalizeRunEventOperationRequest,
69
69
  parseLogLevel
70
- } from "./chunk-VLO5NFH2.mjs";
70
+ } from "./chunk-57J3OOCR.mjs";
71
71
  import "./chunk-FZHMNK6F.mjs";
72
72
  import {
73
73
  CSV_DATA_INPUT_KEY,
@@ -90,18 +90,18 @@ import {
90
90
  import {
91
91
  checkPlayRunCompatibility,
92
92
  usesCliPlayAdmission
93
- } from "./chunk-YCOGPOUX.mjs";
93
+ } from "./chunk-RO7SIWBG.mjs";
94
94
  import {
95
95
  isCliTraceEnabled,
96
96
  recordCliTrace,
97
97
  resolveCliMaintenancePolicy,
98
98
  traceCliSpan
99
- } from "./chunk-F7CMRKSK.mjs";
100
- import "./chunk-BOZAP2EM.mjs";
99
+ } from "./chunk-NFWZAQAU.mjs";
100
+ import "./chunk-UYYOO7VT.mjs";
101
101
  import {
102
102
  createCliProgress,
103
103
  getActiveCliProgress
104
- } from "./chunk-DSKSFFK2.mjs";
104
+ } from "./chunk-7H753VC5.mjs";
105
105
  import {
106
106
  formatNonStandardSandboxRuntimeWarning
107
107
  } from "./chunk-LRZGS6RZ.mjs";
@@ -122,13 +122,13 @@ import {
122
122
  printJsonError,
123
123
  renderCommandEnvelopeText,
124
124
  shouldEmitJson
125
- } from "./chunk-UC4BDZKI.mjs";
125
+ } from "./chunk-N55EUVKV.mjs";
126
126
  import {
127
127
  cliFeatureEnabled
128
- } from "./chunk-52Q5KETX.mjs";
128
+ } from "./chunk-66BQY77L.mjs";
129
129
  import {
130
130
  fetchWithDeploymentProtection
131
- } from "./chunk-S6W6SJ6E.mjs";
131
+ } from "./chunk-XIHZUWIG.mjs";
132
132
  import "./chunk-ASB47RXJ.mjs";
133
133
  import "./chunk-DLIRSHV6.mjs";
134
134
  import {
@@ -138,7 +138,7 @@ import {
138
138
  playRunIdLookupPrefix,
139
139
  shortPlayRunId
140
140
  } from "./chunk-2MGZAI54.mjs";
141
- import "./chunk-FXQ3JKE3.mjs";
141
+ import "./chunk-PGPPZMXD.mjs";
142
142
  import "./chunk-WZYKRD7T.mjs";
143
143
  import {
144
144
  __commonJS,
@@ -14205,6 +14205,7 @@ async function writePlayRunReceipt(client, status, output) {
14205
14205
  const allCollections = outputCollections(data).map(
14206
14206
  (collection) => byRows.get(collection.rows) ?? collection
14207
14207
  );
14208
+ const credits = status.billingTotalCreditsRollup ?? status.billing?.totalCredits ?? null;
14208
14209
  writeExecutionOutput(
14209
14210
  {
14210
14211
  id: status.runId,
@@ -14213,13 +14214,17 @@ async function writePlayRunReceipt(client, status, output) {
14213
14214
  ...allCollections.length ? { collections: allCollections } : {},
14214
14215
  complete: allCollections.every((c) => c.complete === true) ? true : allCollections.some((c) => c.complete === false) ? false : null,
14215
14216
  error,
14216
- credits: status.billingTotalCreditsRollup ?? status.billing?.totalCredits ?? null,
14217
+ credits,
14218
+ ...credits !== null ? { creditsPostedSoFar: true } : {},
14217
14219
  ...playName ? { page: buildPlayRunUrl(client.baseUrl, playName, status.runId) } : {},
14218
14220
  warnings: [
14219
14221
  ...buildRunWarnings(status, null),
14220
14222
  ...status.status === "completed" && collections.length && collections.every((collection) => collection.rows.length === 0) ? ["Run completed with 0 output rows."] : []
14221
14223
  ],
14222
- next
14224
+ next: {
14225
+ ...next,
14226
+ settledCost: `deepline billing usage --run-id ${shellQuote(status.runId)}`
14227
+ }
14223
14228
  },
14224
14229
  output
14225
14230
  );
@@ -16748,7 +16753,7 @@ async function handlePlaySave(args) {
16748
16753
  }
16749
16754
  }
16750
16755
  async function enforceOutcomeGuardrail(input) {
16751
- const { requireOutcomeGuardrail } = await import("./outcomes-QT7LQBPK.mjs");
16756
+ const { requireOutcomeGuardrail } = await import("./outcomes-WP5WV54Y.mjs");
16752
16757
  try {
16753
16758
  const gate = await requireOutcomeGuardrail({ ...input, phase: "reserve" });
16754
16759
  return {
@@ -16776,7 +16781,7 @@ async function enforceOutcomeGuardrail(input) {
16776
16781
  }
16777
16782
  }
16778
16783
  async function settleOutcomeApproval(input) {
16779
- const { requireOutcomeGuardrail } = await import("./outcomes-QT7LQBPK.mjs");
16784
+ const { requireOutcomeGuardrail } = await import("./outcomes-WP5WV54Y.mjs");
16780
16785
  const id = `${input.outcome}/${input.approval.seq}`;
16781
16786
  try {
16782
16787
  await requireOutcomeGuardrail({
@@ -17337,7 +17342,14 @@ Notes:
17337
17342
  resolvers. Accepted range: 1-${MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
17338
17343
  may lower it when source-row size exceeds the active-row memory budget.
17339
17344
  --max-credits replaces the play's billing.maxCreditsPerRun for this run.
17340
- Tool calls that would exceed it are denied.
17345
+ Before each tool call, its quoted price is added to what the run has
17346
+ already been charged; a call that would go over the cap is refused with
17347
+ RUN_BILLING_CAP_EXCEEDED. The cap counts charges already posted, not
17348
+ calls still in flight, so calls that run in parallel can together end the
17349
+ run somewhat over the cap. Compute is always charged and never refused by
17350
+ the cap, so it can also take the run over it.
17351
+ Charges can post a few seconds after the run ends;
17352
+ deepline billing usage --run-id <run-id> shows the settled cost.
17341
17353
  This command starts cloud work and may spend Deepline credits through tool calls.
17342
17354
 
17343
17355
  Idempotent execution:
@@ -17783,7 +17795,7 @@ Examples:
17783
17795
  process.exitCode = await ownView();
17784
17796
  return;
17785
17797
  }
17786
- const { describeAnything } = await import("./describe-EVJ4MFVU.mjs");
17798
+ const { describeAnything } = await import("./describe-UYB6WDHS.mjs");
17787
17799
  process.exitCode = await describeAnything(
17788
17800
  name,
17789
17801
  {
@@ -18174,7 +18186,7 @@ Examples:
18174
18186
  new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
18175
18187
  ).action(async (runId, options) => {
18176
18188
  if (TOOL_EXECUTION_ID.test(runId)) {
18177
- const { getToolExecutionReceipt } = await import("./tools-W3QT5EJY.mjs");
18189
+ const { getToolExecutionReceipt } = await import("./tools-BDNASCSH.mjs");
18178
18190
  process.exitCode = await getToolExecutionReceipt(runId, {
18179
18191
  receiptJson: options.json !== void 0
18180
18192
  });