deepline 0.3.572 → 0.3.574

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/config.ts +19 -0
  2. package/dist/bundling-sources/sdk/src/play.ts +7 -4
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +8 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +43 -7
  6. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +56 -20
  7. package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +4 -3
  8. package/dist/cli/agents-6WN5LYUP.mjs +833 -0
  9. package/dist/cli/agents-7ZZSF4FS.js +833 -0
  10. package/dist/cli/{auth-YUDM3YOC.mjs → auth-I2QVO677.mjs} +5 -5
  11. package/dist/cli/auth-UKPV5U2B.js +44 -0
  12. package/dist/cli/{billing-F3ZGOWKL.js → billing-44QFBUWA.js} +106 -106
  13. package/dist/cli/{billing-O7WUC4TU.mjs → billing-YPH4GEWU.mjs} +10 -10
  14. package/dist/cli/{chunk-ITQPBWDS.js → chunk-2QYU57RG.js} +15 -7
  15. package/dist/cli/{chunk-LBNP52C4.js → chunk-2RPRSTHD.js} +5 -5
  16. package/dist/cli/{chunk-I4WKB3HO.mjs → chunk-2TMAKJBT.mjs} +2 -2
  17. package/dist/cli/{chunk-PQ6PM4V6.mjs → chunk-4T2U72SP.mjs} +1 -1
  18. package/dist/cli/{chunk-HYCJNHZ4.js → chunk-5E2PAGF5.js} +27 -20
  19. package/dist/cli/{chunk-W3HLZ24Q.js → chunk-6B5EZOI3.js} +10 -10
  20. package/dist/cli/{chunk-YOST7EJF.js → chunk-6GZIT3TH.js} +20 -20
  21. package/dist/cli/{chunk-72WI67H4.mjs → chunk-7334X74C.mjs} +2 -2
  22. package/dist/cli/{chunk-PI4TKE2B.js → chunk-7GQU46SZ.js} +26 -26
  23. package/dist/cli/{chunk-NOKSEYMS.js → chunk-7UR57HPJ.js} +1 -1
  24. package/dist/cli/{chunk-6ASDTHEN.js → chunk-AFPGYZBH.js} +21 -17
  25. package/dist/cli/{chunk-V2W7GX2I.mjs → chunk-B2XLIQPH.mjs} +3 -3
  26. package/dist/cli/{chunk-XNJXRS3B.js → chunk-BUBOZKH2.js} +2 -2
  27. package/dist/cli/{chunk-K4LAEKHS.js → chunk-D6ZVRKJ2.js} +41 -41
  28. package/dist/cli/{chunk-5VUD7HGD.js → chunk-DG56RWI2.js} +2 -2
  29. package/dist/cli/{chunk-UKD5ZBQD.js → chunk-DOZIWA66.js} +7 -7
  30. package/dist/cli/{chunk-EKWDSE6H.mjs → chunk-DX646HO7.mjs} +4 -4
  31. package/dist/cli/{chunk-43GCEVHO.js → chunk-ECLCRE5P.js} +3 -3
  32. package/dist/cli/{chunk-UUYB6IXC.js → chunk-G2HW2SAP.js} +13 -13
  33. package/dist/cli/{chunk-BWWDU6FN.mjs → chunk-G7OR3GVD.mjs} +5 -5
  34. package/dist/cli/{chunk-UQWYDNGB.mjs → chunk-GMQZFWQU.mjs} +17 -10
  35. package/dist/cli/{chunk-VGPHXXPI.js → chunk-H7PVSG3L.js} +15 -15
  36. package/dist/cli/{chunk-EL4LME5Y.js → chunk-I62ZBEKH.js} +48 -48
  37. package/dist/cli/{chunk-QA733N7N.mjs → chunk-IA2LTIWO.mjs} +2 -2
  38. package/dist/cli/{chunk-FGBX2WVJ.js → chunk-IB225ZK4.js} +4 -4
  39. package/dist/cli/{chunk-VZ4S5JRC.js → chunk-ID3LGPOE.js} +23 -23
  40. package/dist/cli/{chunk-LHPYCJNL.js → chunk-IXYVHTRZ.js} +19 -6
  41. package/dist/cli/{chunk-64MOX3SN.mjs → chunk-JCO226JM.mjs} +111 -2
  42. package/dist/cli/{chunk-SJI56XPM.mjs → chunk-JY7RKJ65.mjs} +21 -16
  43. package/dist/cli/{chunk-N6KF6X3D.js → chunk-KSHZY52O.js} +114 -5
  44. package/dist/cli/{chunk-BM4GE67C.mjs → chunk-L2NXB4WG.mjs} +19 -6
  45. package/dist/cli/{chunk-UFUXGMHL.mjs → chunk-LCAXLGAY.mjs} +2 -2
  46. package/dist/cli/{chunk-AHNJGA6Z.js → chunk-LJLM4BUL.js} +6 -6
  47. package/dist/cli/{chunk-EKIWY5DD.mjs → chunk-LLSCFLFU.mjs} +1 -1
  48. package/dist/cli/{chunk-OUVQKSVC.mjs → chunk-MAMGREBW.mjs} +1 -1
  49. package/dist/cli/{chunk-CYW6PE3G.mjs → chunk-MGF3MK27.mjs} +5 -5
  50. package/dist/cli/{chunk-PZGK6EEB.js → chunk-N6I3BB2O.js} +280 -275
  51. package/dist/cli/{chunk-4W5EFHHY.js → chunk-NDDGFX4X.js} +11 -11
  52. package/dist/cli/{chunk-RIA73OAZ.mjs → chunk-NRVEVKXR.mjs} +2 -2
  53. package/dist/cli/{chunk-UY6Z3XWW.mjs → chunk-OH6WOID2.mjs} +2 -2
  54. package/dist/cli/{chunk-GX4VZL4Z.mjs → chunk-OIZUFRTE.mjs} +3 -3
  55. package/dist/cli/{chunk-3SFLY3T3.js → chunk-PP5RMEQQ.js} +5 -5
  56. package/dist/cli/{chunk-UMP76GYQ.mjs → chunk-PW6NKI2A.mjs} +3 -3
  57. package/dist/cli/{chunk-ENHQBPR5.mjs → chunk-Q3A53SWK.mjs} +4 -3
  58. package/dist/cli/{chunk-X6F4XOT2.mjs → chunk-QPSBV4FD.mjs} +2 -2
  59. package/dist/cli/{chunk-6R57HEPF.mjs → chunk-S22FSNNC.mjs} +1 -1
  60. package/dist/cli/{chunk-XVQE6IBS.js → chunk-SLXCVPN7.js} +2 -2
  61. package/dist/cli/{chunk-AJO3I3LL.mjs → chunk-SRUNYWQ2.mjs} +9 -1
  62. package/dist/cli/{chunk-5EMYPLTW.js → chunk-UXIUAIL2.js} +53 -53
  63. package/dist/cli/{chunk-MVQ5XGRO.mjs → chunk-VGIDPJXM.mjs} +3 -3
  64. package/dist/cli/{chunk-PRDCU7BY.js → chunk-VLUBEMWM.js} +20 -20
  65. package/dist/cli/{chunk-W3RHISD6.js → chunk-VYSUJMB5.js} +8 -8
  66. package/dist/cli/{chunk-W742U53L.mjs → chunk-W6UCS3O6.mjs} +5 -5
  67. package/dist/cli/{chunk-Q6H5RRTG.mjs → chunk-X7RKCAMX.mjs} +4 -4
  68. package/dist/cli/{chunk-TBLP7HDL.js → chunk-XMBTAPHR.js} +10 -9
  69. package/dist/cli/{chunk-EDAG7ZU4.mjs → chunk-XVBEEGI4.mjs} +1 -1
  70. package/dist/cli/{chunk-JJEN7TRR.mjs → chunk-YR4REP4D.mjs} +1 -1
  71. package/dist/cli/{chunk-QMIMGKR2.js → chunk-Z3XFXFRT.js} +9 -9
  72. package/dist/cli/{chunk-JEI7PHET.mjs → chunk-ZFXDD7VM.mjs} +1 -1
  73. package/dist/cli/{chunk-HUJMFETO.mjs → chunk-ZTCP5BHH.mjs} +7 -3
  74. package/dist/cli/command-docs.js +3 -3
  75. package/dist/cli/command-docs.mjs +2 -2
  76. package/dist/cli/concurrent-runs-help-BFVCUJF4.js +22 -0
  77. package/dist/cli/{concurrent-runs-help-5BKCGFGL.mjs → concurrent-runs-help-ROQM6UB3.mjs} +7 -7
  78. package/dist/cli/{csv-7ZAWND7L.js → csv-FWGSY4GE.js} +13 -13
  79. package/dist/cli/{csv-MO5WZZDN.mjs → csv-R7GV33BC.mjs} +4 -4
  80. package/dist/cli/{db-36LX7JBQ.js → db-OCH35YJG.js} +27 -27
  81. package/dist/cli/{db-OYMULINA.mjs → db-UWXA4RRV.mjs} +6 -6
  82. package/dist/cli/describe-6OI5K2SH.js +50 -0
  83. package/dist/cli/{describe-JLAERB6X.mjs → describe-QI4HMUGE.mjs} +21 -21
  84. package/dist/cli/describe-core.d.mts +4 -2
  85. package/dist/cli/describe-core.d.ts +4 -2
  86. package/dist/cli/describe-core.js +4 -4
  87. package/dist/cli/describe-core.mjs +3 -3
  88. package/dist/cli/{executions-AQ32J4BZ.js → executions-7CFGC24E.js} +8 -8
  89. package/dist/cli/{executions-IZAB2XNC.mjs → executions-YF3KMZZN.mjs} +6 -6
  90. package/dist/cli/{feedback-WA6EBE5H.mjs → feedback-DWIWBS7O.mjs} +6 -6
  91. package/dist/cli/{feedback-3IV54HOH.js → feedback-YCZHHSBS.js} +14 -14
  92. package/dist/cli/git-TGLNZRS3.js +26 -0
  93. package/dist/cli/{git-OSLU6HIK.mjs → git-XCGMQQOD.mjs} +5 -5
  94. package/dist/cli/index.js +152 -148
  95. package/dist/cli/index.mjs +51 -47
  96. package/dist/cli/{integrations-WOXFOC4M.mjs → integrations-5ABAJBSW.mjs} +7 -7
  97. package/dist/cli/{integrations-65SYNL53.js → integrations-IEZA3TGK.js} +29 -29
  98. package/dist/cli/{legacy-noops-3SGXDAV6.js → legacy-noops-KNFLJ5P2.js} +9 -9
  99. package/dist/cli/{legacy-noops-4FNG2JY3.mjs → legacy-noops-OZMY73Y3.mjs} +6 -6
  100. package/dist/cli/{mcp-PX27RHCY.js → mcp-NLQAO7KP.js} +24 -24
  101. package/dist/cli/{mcp-RZLWMZHH.mjs → mcp-WSPFKQPZ.mjs} +4 -4
  102. package/dist/cli/{monitors-F5BLGS4R.js → monitors-BJYOB4S3.js} +100 -100
  103. package/dist/cli/{monitors-VK2LW7VU.mjs → monitors-LPKFFTOX.mjs} +7 -7
  104. package/dist/cli/{org-7AEBTN6Y.mjs → org-RYPMUYUW.mjs} +6 -6
  105. package/dist/cli/{org-UU3V7U4K.js → org-WIVHI4WT.js} +121 -121
  106. package/dist/cli/{outcomes-BWERSUJL.mjs → outcomes-FADJYC4I.mjs} +9 -7
  107. package/dist/cli/{outcomes-GCTBGPMK.js → outcomes-QKX7IE3O.js} +17 -15
  108. package/dist/cli/{play-TX3RAAYS.mjs → play-4ZKK5Q7U.mjs} +88 -33
  109. package/dist/cli/{play-7NBCCL26.js → play-ID73J3NP.js} +393 -338
  110. package/dist/cli/{providers-KFWZXDCV.mjs → providers-LURYBSNO.mjs} +6 -6
  111. package/dist/cli/{providers-IL2IVKHB.js → providers-WCCGYGW6.js} +9 -9
  112. package/dist/cli/{quickstart-RAMDGRRI.mjs → quickstart-KCCSEE5J.mjs} +4 -4
  113. package/dist/cli/{quickstart-MPA6TUK5.js → quickstart-LVPOU25V.js} +6 -6
  114. package/dist/cli/{run-WBUSXBUS.js → run-2QMJRCVA.js} +48 -48
  115. package/dist/cli/{run-QNJSKPBN.mjs → run-XXK7DDUF.mjs} +26 -26
  116. package/dist/cli/search-AQSAXA6D.js +32 -0
  117. package/dist/cli/{search-2X4P2FXR.mjs → search-ZYAWW3CK.mjs} +7 -7
  118. package/dist/cli/{search-output-MNJ4AQLV.mjs → search-output-N45AIOB4.mjs} +9 -6
  119. package/dist/cli/{search-output-P2WNCHA3.js → search-output-YNXAZSKT.js} +12 -9
  120. package/dist/cli/{secrets-XX54OU22.mjs → secrets-7Q3AOUAS.mjs} +6 -6
  121. package/dist/cli/{secrets-K5CNDUVR.js → secrets-MHT27L2M.js} +15 -15
  122. package/dist/cli/{sessions-C4GQ6ZVO.mjs → sessions-6QKOM7M3.mjs} +6 -6
  123. package/dist/cli/sessions-RGD7L4LC.js +23 -0
  124. package/dist/cli/{settings-7HBTADGW.mjs → settings-NPVIDENI.mjs} +12 -12
  125. package/dist/cli/{settings-QP3DVFPS.js → settings-OP7Q6YX6.js} +85 -85
  126. package/dist/cli/{setup-VPDAKY2G.mjs → setup-OOT3EIMF.mjs} +9 -9
  127. package/dist/cli/{setup-X6J7U6B4.js → setup-RT6GHL3W.js} +49 -49
  128. package/dist/cli/skills-ERAA734H.js +37 -0
  129. package/dist/cli/{skills-UGY6W4AC.mjs → skills-TEXI4CLZ.mjs} +7 -7
  130. package/dist/cli/tools-D5SZSIIH.js +57 -0
  131. package/dist/cli/{tools-SVBUAHDD.mjs → tools-G5L36M3X.mjs} +19 -19
  132. package/dist/cli/update-WZ6527EF.js +37 -0
  133. package/dist/cli/{update-SDNKNDNW.mjs → update-YNKQTE4D.mjs} +9 -9
  134. package/dist/cli/{views-M6RBPC65.mjs → views-IQFMUMLU.mjs} +6 -6
  135. package/dist/cli/{views-JBFSHQBU.js → views-OVQ5AQAU.js} +21 -21
  136. package/dist/cli/{workflow-UAMTGHQC.js → workflow-RCBYXIFZ.js} +17 -17
  137. package/dist/cli/{workflow-RYVRAIHV.mjs → workflow-Y5IFMI7N.mjs} +7 -7
  138. package/dist/{client-DCnExziW.d.ts → client-BrdMPFCM.d.ts} +1 -1
  139. package/dist/{client-ClJlqkKt.d.mts → client-CF-bsrtI.d.mts} +1 -1
  140. package/dist/{client-core-DAOPQnGD.d.mts → client-core-DM1ZedOG.d.mts} +8 -0
  141. package/dist/{client-core-BKq5ZNAl.d.ts → client-core-rMoUWSYM.d.ts} +8 -0
  142. package/dist/index.d.mts +3 -3
  143. package/dist/index.d.ts +3 -3
  144. package/dist/index.js +9 -9
  145. package/dist/index.mjs +6 -6
  146. package/dist/install-integrity.json +128 -126
  147. package/dist/plays/play-description.d.mts +1 -1
  148. package/dist/plays/play-description.d.ts +1 -1
  149. package/dist/plays/run-request.d.mts +1 -1
  150. package/dist/plays/run-request.d.ts +1 -1
  151. package/dist/release.d.mts +1 -1
  152. package/dist/release.d.ts +1 -1
  153. package/dist/release.js +2 -2
  154. package/dist/release.mjs +1 -1
  155. package/dist/server.d.mts +2 -2
  156. package/dist/server.d.ts +2 -2
  157. package/dist/server.js +5 -5
  158. package/dist/server.mjs +3 -3
  159. package/package.json +1 -1
  160. package/dist/cli/auth-PXIVGUVZ.js +0 -44
  161. package/dist/cli/concurrent-runs-help-KGELXJIQ.js +0 -22
  162. package/dist/cli/describe-AVGE4MH6.js +0 -50
  163. package/dist/cli/git-VOFO6V5W.js +0 -26
  164. package/dist/cli/search-CJHG3VA4.js +0 -32
  165. package/dist/cli/sessions-3RMRBBJZ.js +0 -23
  166. package/dist/cli/skills-JUGXGSX2.js +0 -37
  167. package/dist/cli/tools-ZEI42NSP.js +0 -57
  168. package/dist/cli/update-VC4UEGMR.js +0 -37
  169. /package/dist/cli/{chunk-2RIKOPIM.mjs → chunk-HECXJBED.mjs} +0 -0
  170. /package/dist/cli/{chunk-H4ALLC2X.js → chunk-TJCENACZ.js} +0 -0
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-UFUXGMHL.mjs";
4
- import "./chunk-PQ6PM4V6.mjs";
3
+ } from "./chunk-LCAXLGAY.mjs";
4
+ import "./chunk-4T2U72SP.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-I4WKB3HO.mjs";
10
+ } from "./chunk-2TMAKJBT.mjs";
11
11
  import {
12
12
  cliFeatureEnabled,
13
13
  resolveConfig,
14
14
  sdkCliStateDirPath
15
- } from "./chunk-AJO3I3LL.mjs";
16
- import "./chunk-JEI7PHET.mjs";
15
+ } from "./chunk-SRUNYWQ2.mjs";
16
+ import "./chunk-ZFXDD7VM.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-EDAG7ZU4.mjs";
21
+ import "./chunk-XVBEEGI4.mjs";
22
22
  import "./chunk-WZYKRD7T.mjs";
23
23
  import "./chunk-KRD6H754.mjs";
24
24
 
@@ -2632,7 +2632,9 @@ Examples:
2632
2632
  );
2633
2633
  handled.push({ id: match.id, entry: id, state: settled });
2634
2634
  busy = false;
2635
- console.error(` ${id}: ${settled}`);
2635
+ console.error(
2636
+ ` ${id}: ${settled === "pending" ? `${result}. It is handed out again.` : settled === "failed" ? `${result}. That was its last try: it is marked failed, and the feed says so.` : settled}`
2637
+ );
2636
2638
  if (exit.error) throw exit.error;
2637
2639
  }
2638
2640
  if (pulled.matches.length === 0 && options.drain) break;
@@ -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 _chunkLBNP52C4js = require('./chunk-LBNP52C4.js');
4
- require('./chunk-W3RHISD6.js');
3
+ var _chunk2RPRSTHDjs = require('./chunk-2RPRSTHD.js');
4
+ require('./chunk-VYSUJMB5.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 _chunkPRDCU7BYjs = require('./chunk-PRDCU7BY.js');
10
+ var _chunkVLUBEMWMjs = require('./chunk-VLUBEMWM.js');
11
11
 
12
12
 
13
13
 
14
14
 
15
- var _chunkITQPBWDSjs = require('./chunk-ITQPBWDS.js');
16
- require('./chunk-FGBX2WVJ.js');
15
+ var _chunk2QYU57RGjs = require('./chunk-2QYU57RG.js');
16
+ require('./chunk-IB225ZK4.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-NOKSEYMS.js');
21
+ require('./chunk-7UR57HPJ.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
- _chunkITQPBWDSjs.sdkCliStateDirPath.call(void 0, scope.baseUrl),
46
+ _chunk2QYU57RGjs.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, _chunkLBNP52C4js.DeeplineClient)();
106
+ const client = new (0, _chunk2RPRSTHDjs.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 } = _chunkITQPBWDSjs.resolveConfig.call(void 0, );
123
+ const { baseUrl, apiKey, workspace } = _chunk2QYU57RGjs.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
- _chunkPRDCU7BYjs.printCommandEnvelope.call(void 0,
138
+ _chunkVLUBEMWMjs.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
- _chunkPRDCU7BYjs.printCommandEnvelope.call(void 0,
166
+ _chunkVLUBEMWMjs.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
- _chunkPRDCU7BYjs.printCommandEnvelope.call(void 0,
865
+ _chunkVLUBEMWMjs.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: !_chunkITQPBWDSjs.cliFeatureEnabled.call(void 0, OUTCOMES_FEATURE) }).description(
1022
+ const outcomes = program.command("outcomes", { hidden: !_chunk2QYU57RGjs.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
- _chunkPRDCU7BYjs.printCommandEnvelope.call(void 0,
1225
+ _chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
1226
1226
  {
1227
1227
  ok: true,
1228
1228
  command: "outcomes get",
@@ -2632,7 +2632,9 @@ Examples:
2632
2632
  );
2633
2633
  handled.push({ id: match.id, entry: id, state: settled });
2634
2634
  busy = false;
2635
- console.error(` ${id}: ${settled}`);
2635
+ console.error(
2636
+ ` ${id}: ${settled === "pending" ? `${result}. It is handed out again.` : settled === "failed" ? `${result}. That was its last try: it is marked failed, and the feed says so.` : settled}`
2637
+ );
2636
2638
  if (exit.error) throw exit.error;
2637
2639
  }
2638
2640
  if (pulled.matches.length === 0 && options.drain) break;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  handleDeploymentGet,
3
3
  handleDeploymentsList
4
- } from "./chunk-72WI67H4.mjs";
4
+ } from "./chunk-7334X74C.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-RIA73OAZ.mjs";
12
+ } from "./chunk-NRVEVKXR.mjs";
13
13
  import {
14
14
  ExecutionOutputError,
15
15
  TABLE_EXPORT_ERROR_COLUMN,
@@ -22,15 +22,15 @@ import {
22
22
  underscoreKeysLast,
23
23
  writeExecutionOutput,
24
24
  writeRunDatasetCsv
25
- } from "./chunk-QA733N7N.mjs";
25
+ } from "./chunk-IA2LTIWO.mjs";
26
26
  import {
27
27
  registerDeprecatedSearchCommand
28
- } from "./chunk-Q6H5RRTG.mjs";
28
+ } from "./chunk-X7RKCAMX.mjs";
29
29
  import "./chunk-5AEDYVB6.mjs";
30
30
  import {
31
31
  buildPlayDashboardUrl,
32
32
  buildPlayRunUrl
33
- } from "./chunk-BM4GE67C.mjs";
33
+ } from "./chunk-L2NXB4WG.mjs";
34
34
  import {
35
35
  shellQuote
36
36
  } from "./chunk-STXDSVQZ.mjs";
@@ -51,10 +51,10 @@ import {
51
51
  import {
52
52
  pinLocalPlayImports,
53
53
  planLocalPlayExecution
54
- } from "./chunk-X6F4XOT2.mjs";
54
+ } from "./chunk-QPSBV4FD.mjs";
55
55
  import {
56
56
  DeeplineClient
57
- } from "./chunk-UFUXGMHL.mjs";
57
+ } from "./chunk-LCAXLGAY.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-PQ6PM4V6.mjs";
70
+ } from "./chunk-4T2U72SP.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-UY6Z3XWW.mjs";
93
+ } from "./chunk-OH6WOID2.mjs";
94
94
  import {
95
95
  isCliTraceEnabled,
96
96
  recordCliTrace,
97
97
  resolveCliMaintenancePolicy,
98
98
  traceCliSpan
99
- } from "./chunk-6R57HEPF.mjs";
100
- import "./chunk-CYW6PE3G.mjs";
99
+ } from "./chunk-S22FSNNC.mjs";
100
+ import "./chunk-MGF3MK27.mjs";
101
101
  import {
102
102
  createCliProgress,
103
103
  getActiveCliProgress
104
- } from "./chunk-JJEN7TRR.mjs";
104
+ } from "./chunk-YR4REP4D.mjs";
105
105
  import {
106
106
  formatNonStandardSandboxRuntimeWarning
107
107
  } from "./chunk-LRZGS6RZ.mjs";
@@ -122,13 +122,14 @@ import {
122
122
  printJsonError,
123
123
  renderCommandEnvelopeText,
124
124
  shouldEmitJson
125
- } from "./chunk-I4WKB3HO.mjs";
125
+ } from "./chunk-2TMAKJBT.mjs";
126
126
  import {
127
- cliFeatureEnabled
128
- } from "./chunk-AJO3I3LL.mjs";
127
+ cliFeatureEnabled,
128
+ resolveCliDashboardOrgId
129
+ } from "./chunk-SRUNYWQ2.mjs";
129
130
  import {
130
131
  fetchWithDeploymentProtection
131
- } from "./chunk-JEI7PHET.mjs";
132
+ } from "./chunk-ZFXDD7VM.mjs";
132
133
  import "./chunk-ASB47RXJ.mjs";
133
134
  import "./chunk-DLIRSHV6.mjs";
134
135
  import {
@@ -138,7 +139,7 @@ import {
138
139
  playRunIdLookupPrefix,
139
140
  shortPlayRunId
140
141
  } from "./chunk-2MGZAI54.mjs";
141
- import "./chunk-EDAG7ZU4.mjs";
142
+ import "./chunk-XVBEEGI4.mjs";
142
143
  import "./chunk-WZYKRD7T.mjs";
143
144
  import {
144
145
  __commonJS,
@@ -9687,7 +9688,11 @@ async function startAndWaitForPlayCompletion(input) {
9687
9688
  }
9688
9689
  await input.onRunStarted?.(workflowId);
9689
9690
  await input.onRunAdmitted?.(workflowId);
9690
- const dashboardUrl = started.dashboardUrl ?? buildPlayDashboardUrl(input.client.baseUrl, input.playName);
9691
+ const dashboardUrl = started.dashboardUrl ?? buildPlayDashboardUrl(
9692
+ input.client.baseUrl,
9693
+ input.playName,
9694
+ resolveCliDashboardOrgId(input.client.baseUrl)
9695
+ );
9691
9696
  const rateLimited = started.rateLimited ?? null;
9692
9697
  if (!input.jsonOutput) {
9693
9698
  writeStartedPlayRun({
@@ -9934,7 +9939,8 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9934
9939
  const startedAt = Date.now();
9935
9940
  const dashboardUrl = buildPlayDashboardUrl(
9936
9941
  input.client.baseUrl,
9937
- input.playName
9942
+ input.playName,
9943
+ resolveCliDashboardOrgId(input.client.baseUrl)
9938
9944
  );
9939
9945
  const state = {
9940
9946
  emittedRunnerStarted: false,
@@ -13813,7 +13819,11 @@ async function handleFileBackedRun(options, hooks) {
13813
13819
  );
13814
13820
  await hooks?.onRunStarted?.(started.workflowId);
13815
13821
  await hooks?.onRunAdmitted?.(started.workflowId);
13816
- const resolvedDashboardUrl = buildPlayDashboardUrl(client.baseUrl, playName);
13822
+ const resolvedDashboardUrl = buildPlayDashboardUrl(
13823
+ client.baseUrl,
13824
+ playName,
13825
+ resolveCliDashboardOrgId(client.baseUrl)
13826
+ );
13817
13827
  openPlayDashboard(
13818
13828
  resolvePlayRunUrl({
13819
13829
  runId: started.workflowId,
@@ -14073,7 +14083,11 @@ async function handleNamedRun(options, hooks) {
14073
14083
  );
14074
14084
  await hooks?.onRunStarted?.(started.workflowId);
14075
14085
  await hooks?.onRunAdmitted?.(started.workflowId);
14076
- const resolvedDashboardUrl = buildPlayDashboardUrl(client.baseUrl, playName);
14086
+ const resolvedDashboardUrl = buildPlayDashboardUrl(
14087
+ client.baseUrl,
14088
+ playName,
14089
+ resolveCliDashboardOrgId(client.baseUrl)
14090
+ );
14077
14091
  openPlayDashboard(
14078
14092
  resolvePlayRunUrl({
14079
14093
  runId: started.workflowId,
@@ -14126,7 +14140,14 @@ async function writePlayRunReceipt(client, status, output) {
14126
14140
  {
14127
14141
  id: status.runId,
14128
14142
  status: status.status,
14129
- ...playName ? { page: buildPlayRunUrl(client.baseUrl, playName, status.runId) } : {},
14143
+ ...playName ? {
14144
+ page: buildPlayRunUrl(
14145
+ client.baseUrl,
14146
+ playName,
14147
+ status.runId,
14148
+ resolveCliDashboardOrgId(client.baseUrl)
14149
+ )
14150
+ } : {},
14130
14151
  next
14131
14152
  },
14132
14153
  output
@@ -14216,7 +14237,14 @@ async function writePlayRunReceipt(client, status, output) {
14216
14237
  error,
14217
14238
  credits,
14218
14239
  ...credits !== null ? { creditsPostedSoFar: true } : {},
14219
- ...playName ? { page: buildPlayRunUrl(client.baseUrl, playName, status.runId) } : {},
14240
+ ...playName ? {
14241
+ page: buildPlayRunUrl(
14242
+ client.baseUrl,
14243
+ playName,
14244
+ status.runId,
14245
+ resolveCliDashboardOrgId(client.baseUrl)
14246
+ )
14247
+ } : {},
14220
14248
  warnings: [
14221
14249
  ...buildRunWarnings(status, null),
14222
14250
  ...status.status === "completed" && collections.length && collections.every((collection) => collection.rows.length === 0) ? ["Run completed with 0 output rows."] : []
@@ -14575,8 +14603,17 @@ async function handleRunGetAndPrint(args) {
14575
14603
  console.error(`Run ${runId} does not name its play; no run page URL.`);
14576
14604
  return 1;
14577
14605
  }
14578
- const dashboardUrl2 = buildPlayDashboardUrl(client.baseUrl, playName2);
14579
- const runUrl2 = buildPlayRunUrl(client.baseUrl, playName2, runId);
14606
+ const dashboardUrl2 = buildPlayDashboardUrl(
14607
+ client.baseUrl,
14608
+ playName2,
14609
+ resolveCliDashboardOrgId(client.baseUrl)
14610
+ );
14611
+ const runUrl2 = buildPlayRunUrl(
14612
+ client.baseUrl,
14613
+ playName2,
14614
+ runId,
14615
+ resolveCliDashboardOrgId(client.baseUrl)
14616
+ );
14580
14617
  if (web) {
14581
14618
  const opened = openInBrowser(runUrl2);
14582
14619
  printCommandEnvelope(
@@ -14655,8 +14692,17 @@ async function handleRunGetAndPrint(args) {
14655
14692
  })
14656
14693
  ) : status;
14657
14694
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
14658
- const legacyDashboardUrl = legacyPlayName ? buildPlayDashboardUrl(client.baseUrl, legacyPlayName) : null;
14659
- const legacyRunUrl = legacyPlayName ? buildPlayRunUrl(client.baseUrl, legacyPlayName, runId) : null;
14695
+ const legacyDashboardUrl = legacyPlayName ? buildPlayDashboardUrl(
14696
+ client.baseUrl,
14697
+ legacyPlayName,
14698
+ resolveCliDashboardOrgId(client.baseUrl)
14699
+ ) : null;
14700
+ const legacyRunUrl = legacyPlayName ? buildPlayRunUrl(
14701
+ client.baseUrl,
14702
+ legacyPlayName,
14703
+ runId,
14704
+ resolveCliDashboardOrgId(client.baseUrl)
14705
+ ) : null;
14660
14706
  if (argsWantJson(args)) {
14661
14707
  printCommandEnvelope(
14662
14708
  {
@@ -14701,8 +14747,17 @@ async function handleRunGetAndPrint(args) {
14701
14747
  const hitLines = formatRunHitsLines(hits);
14702
14748
  const json = argsWantJson(args);
14703
14749
  const playName = resolveRunPlayName(status, runId);
14704
- const dashboardUrl = playName ? buildPlayDashboardUrl(client.baseUrl, playName) : void 0;
14705
- const runUrl = playName ? buildPlayRunUrl(client.baseUrl, playName, runId) : void 0;
14750
+ const dashboardUrl = playName ? buildPlayDashboardUrl(
14751
+ client.baseUrl,
14752
+ playName,
14753
+ resolveCliDashboardOrgId(client.baseUrl)
14754
+ ) : void 0;
14755
+ const runUrl = playName ? buildPlayRunUrl(
14756
+ client.baseUrl,
14757
+ playName,
14758
+ runId,
14759
+ resolveCliDashboardOrgId(client.baseUrl)
14760
+ ) : void 0;
14706
14761
  printCommandEnvelope(
14707
14762
  {
14708
14763
  ...overview,
@@ -16753,7 +16808,7 @@ async function handlePlaySave(args) {
16753
16808
  }
16754
16809
  }
16755
16810
  async function enforceOutcomeGuardrail(input) {
16756
- const { requireOutcomeGuardrail } = await import("./outcomes-BWERSUJL.mjs");
16811
+ const { requireOutcomeGuardrail } = await import("./outcomes-FADJYC4I.mjs");
16757
16812
  try {
16758
16813
  const gate = await requireOutcomeGuardrail({ ...input, phase: "reserve" });
16759
16814
  return {
@@ -16781,7 +16836,7 @@ async function enforceOutcomeGuardrail(input) {
16781
16836
  }
16782
16837
  }
16783
16838
  async function settleOutcomeApproval(input) {
16784
- const { requireOutcomeGuardrail } = await import("./outcomes-BWERSUJL.mjs");
16839
+ const { requireOutcomeGuardrail } = await import("./outcomes-FADJYC4I.mjs");
16785
16840
  const id = `${input.outcome}/${input.approval.seq}`;
16786
16841
  try {
16787
16842
  await requireOutcomeGuardrail({
@@ -17795,7 +17850,7 @@ Examples:
17795
17850
  process.exitCode = await ownView();
17796
17851
  return;
17797
17852
  }
17798
- const { describeAnything } = await import("./describe-JLAERB6X.mjs");
17853
+ const { describeAnything } = await import("./describe-QI4HMUGE.mjs");
17799
17854
  process.exitCode = await describeAnything(
17800
17855
  name,
17801
17856
  {
@@ -18186,7 +18241,7 @@ Examples:
18186
18241
  new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
18187
18242
  ).action(async (runId, options) => {
18188
18243
  if (TOOL_EXECUTION_ID.test(runId)) {
18189
- const { getToolExecutionReceipt } = await import("./tools-SVBUAHDD.mjs");
18244
+ const { getToolExecutionReceipt } = await import("./tools-G5L36M3X.mjs");
18190
18245
  process.exitCode = await getToolExecutionReceipt(runId, {
18191
18246
  receiptJson: options.json !== void 0
18192
18247
  });