deepline 0.3.573 → 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 (169) 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/cli/agents-6WN5LYUP.mjs +833 -0
  8. package/dist/cli/agents-7ZZSF4FS.js +833 -0
  9. package/dist/cli/{auth-XX3HLRQ2.mjs → auth-I2QVO677.mjs} +5 -5
  10. package/dist/cli/auth-UKPV5U2B.js +44 -0
  11. package/dist/cli/{billing-6TY2HMC6.js → billing-44QFBUWA.js} +106 -106
  12. package/dist/cli/{billing-QASEPOBL.mjs → billing-YPH4GEWU.mjs} +10 -10
  13. package/dist/cli/{chunk-GWPXWKQR.js → chunk-2QYU57RG.js} +15 -7
  14. package/dist/cli/{chunk-OPD6XUIG.js → chunk-2RPRSTHD.js} +5 -5
  15. package/dist/cli/{chunk-DSE45YP4.mjs → chunk-2TMAKJBT.mjs} +2 -2
  16. package/dist/cli/{chunk-PW3PADXI.mjs → chunk-4T2U72SP.mjs} +1 -1
  17. package/dist/cli/{chunk-JAW75RAO.js → chunk-5E2PAGF5.js} +27 -20
  18. package/dist/cli/{chunk-X3BGF6UU.js → chunk-6B5EZOI3.js} +10 -10
  19. package/dist/cli/{chunk-UBTEDSIK.js → chunk-6GZIT3TH.js} +20 -20
  20. package/dist/cli/{chunk-N5VL6BHF.mjs → chunk-7334X74C.mjs} +2 -2
  21. package/dist/cli/{chunk-TNCJ2J76.js → chunk-7GQU46SZ.js} +26 -26
  22. package/dist/cli/{chunk-KQZBN7TB.js → chunk-7UR57HPJ.js} +1 -1
  23. package/dist/cli/{chunk-6ASDTHEN.js → chunk-AFPGYZBH.js} +21 -17
  24. package/dist/cli/{chunk-QFDT35HF.mjs → chunk-B2XLIQPH.mjs} +3 -3
  25. package/dist/cli/{chunk-DIZI5YGW.js → chunk-BUBOZKH2.js} +2 -2
  26. package/dist/cli/{chunk-Z6KWSBOX.js → chunk-D6ZVRKJ2.js} +41 -41
  27. package/dist/cli/{chunk-CY3BUFMG.js → chunk-DG56RWI2.js} +2 -2
  28. package/dist/cli/{chunk-TJSKDOXN.js → chunk-DOZIWA66.js} +7 -7
  29. package/dist/cli/{chunk-LPYUGPTF.mjs → chunk-DX646HO7.mjs} +4 -4
  30. package/dist/cli/{chunk-YKHXWO7N.js → chunk-ECLCRE5P.js} +3 -3
  31. package/dist/cli/{chunk-OG3YWDYA.js → chunk-G2HW2SAP.js} +13 -13
  32. package/dist/cli/{chunk-QDQOXHXQ.mjs → chunk-G7OR3GVD.mjs} +5 -5
  33. package/dist/cli/{chunk-ROSPYLDN.mjs → chunk-GMQZFWQU.mjs} +17 -10
  34. package/dist/cli/{chunk-UZLTBBAG.js → chunk-H7PVSG3L.js} +15 -15
  35. package/dist/cli/{chunk-WQEGXOUT.js → chunk-I62ZBEKH.js} +48 -48
  36. package/dist/cli/{chunk-5NEJOCOK.mjs → chunk-IA2LTIWO.mjs} +2 -2
  37. package/dist/cli/{chunk-DLWVJ66I.js → chunk-IB225ZK4.js} +4 -4
  38. package/dist/cli/{chunk-FUVVTHXE.js → chunk-ID3LGPOE.js} +23 -23
  39. package/dist/cli/{chunk-LHPYCJNL.js → chunk-IXYVHTRZ.js} +19 -6
  40. package/dist/cli/{chunk-64MOX3SN.mjs → chunk-JCO226JM.mjs} +111 -2
  41. package/dist/cli/{chunk-JCVAVHDP.mjs → chunk-JY7RKJ65.mjs} +21 -16
  42. package/dist/cli/{chunk-N6KF6X3D.js → chunk-KSHZY52O.js} +114 -5
  43. package/dist/cli/{chunk-BM4GE67C.mjs → chunk-L2NXB4WG.mjs} +19 -6
  44. package/dist/cli/{chunk-4K6UVILG.mjs → chunk-LCAXLGAY.mjs} +2 -2
  45. package/dist/cli/{chunk-XWO4J34B.js → chunk-LJLM4BUL.js} +6 -6
  46. package/dist/cli/{chunk-T2QI52F2.mjs → chunk-LLSCFLFU.mjs} +1 -1
  47. package/dist/cli/{chunk-C52RRBYB.mjs → chunk-MAMGREBW.mjs} +1 -1
  48. package/dist/cli/{chunk-NUH56LTU.mjs → chunk-MGF3MK27.mjs} +5 -5
  49. package/dist/cli/{chunk-FXLVMWWA.js → chunk-N6I3BB2O.js} +280 -275
  50. package/dist/cli/{chunk-UNTBQY64.js → chunk-NDDGFX4X.js} +11 -11
  51. package/dist/cli/{chunk-NJTTRJ32.mjs → chunk-NRVEVKXR.mjs} +2 -2
  52. package/dist/cli/{chunk-IXCGWJJZ.mjs → chunk-OH6WOID2.mjs} +2 -2
  53. package/dist/cli/{chunk-WSXRJ2RZ.mjs → chunk-OIZUFRTE.mjs} +3 -3
  54. package/dist/cli/{chunk-2USXCXPZ.js → chunk-PP5RMEQQ.js} +5 -5
  55. package/dist/cli/{chunk-ANSHNREL.mjs → chunk-PW6NKI2A.mjs} +3 -3
  56. package/dist/cli/{chunk-ENHQBPR5.mjs → chunk-Q3A53SWK.mjs} +4 -3
  57. package/dist/cli/{chunk-XLN4Z654.mjs → chunk-QPSBV4FD.mjs} +2 -2
  58. package/dist/cli/{chunk-4LWBURSS.mjs → chunk-S22FSNNC.mjs} +1 -1
  59. package/dist/cli/{chunk-KART6FR6.js → chunk-SLXCVPN7.js} +2 -2
  60. package/dist/cli/{chunk-MQOJ7SP4.mjs → chunk-SRUNYWQ2.mjs} +9 -1
  61. package/dist/cli/{chunk-XVFRNNL2.js → chunk-UXIUAIL2.js} +53 -53
  62. package/dist/cli/{chunk-M2UJWUWX.mjs → chunk-VGIDPJXM.mjs} +3 -3
  63. package/dist/cli/{chunk-IZK2BLBW.js → chunk-VLUBEMWM.js} +20 -20
  64. package/dist/cli/{chunk-N3VZTISZ.js → chunk-VYSUJMB5.js} +8 -8
  65. package/dist/cli/{chunk-6JTJP3WO.mjs → chunk-W6UCS3O6.mjs} +5 -5
  66. package/dist/cli/{chunk-XAIXTB74.mjs → chunk-X7RKCAMX.mjs} +4 -4
  67. package/dist/cli/{chunk-TBLP7HDL.js → chunk-XMBTAPHR.js} +10 -9
  68. package/dist/cli/{chunk-ESKNCTFI.mjs → chunk-XVBEEGI4.mjs} +1 -1
  69. package/dist/cli/{chunk-5MCC4D25.mjs → chunk-YR4REP4D.mjs} +1 -1
  70. package/dist/cli/{chunk-KQLIG4YR.js → chunk-Z3XFXFRT.js} +9 -9
  71. package/dist/cli/{chunk-ENLJ67CZ.mjs → chunk-ZFXDD7VM.mjs} +1 -1
  72. package/dist/cli/{chunk-HUJMFETO.mjs → chunk-ZTCP5BHH.mjs} +7 -3
  73. package/dist/cli/command-docs.js +3 -3
  74. package/dist/cli/command-docs.mjs +2 -2
  75. package/dist/cli/concurrent-runs-help-BFVCUJF4.js +22 -0
  76. package/dist/cli/{concurrent-runs-help-IILHMHBX.mjs → concurrent-runs-help-ROQM6UB3.mjs} +7 -7
  77. package/dist/cli/{csv-OSJQVDAS.js → csv-FWGSY4GE.js} +13 -13
  78. package/dist/cli/{csv-VGYW2PQZ.mjs → csv-R7GV33BC.mjs} +4 -4
  79. package/dist/cli/{db-2IMS6K2F.js → db-OCH35YJG.js} +27 -27
  80. package/dist/cli/{db-3IQYT3WD.mjs → db-UWXA4RRV.mjs} +6 -6
  81. package/dist/cli/describe-6OI5K2SH.js +50 -0
  82. package/dist/cli/{describe-IGJ4CHUC.mjs → describe-QI4HMUGE.mjs} +21 -21
  83. package/dist/cli/describe-core.d.mts +4 -2
  84. package/dist/cli/describe-core.d.ts +4 -2
  85. package/dist/cli/describe-core.js +4 -4
  86. package/dist/cli/describe-core.mjs +3 -3
  87. package/dist/cli/{executions-VOJN4NPF.js → executions-7CFGC24E.js} +8 -8
  88. package/dist/cli/{executions-6F3PLVCR.mjs → executions-YF3KMZZN.mjs} +6 -6
  89. package/dist/cli/{feedback-BP5G27DT.mjs → feedback-DWIWBS7O.mjs} +6 -6
  90. package/dist/cli/{feedback-5N7GKSMC.js → feedback-YCZHHSBS.js} +14 -14
  91. package/dist/cli/git-TGLNZRS3.js +26 -0
  92. package/dist/cli/{git-FHNCP7QA.mjs → git-XCGMQQOD.mjs} +5 -5
  93. package/dist/cli/index.js +152 -148
  94. package/dist/cli/index.mjs +51 -47
  95. package/dist/cli/{integrations-KKCEEWDU.mjs → integrations-5ABAJBSW.mjs} +7 -7
  96. package/dist/cli/{integrations-JZV55BZT.js → integrations-IEZA3TGK.js} +29 -29
  97. package/dist/cli/{legacy-noops-OVOHF47E.js → legacy-noops-KNFLJ5P2.js} +9 -9
  98. package/dist/cli/{legacy-noops-YOPWDLRG.mjs → legacy-noops-OZMY73Y3.mjs} +6 -6
  99. package/dist/cli/{mcp-F2XGBA6W.js → mcp-NLQAO7KP.js} +24 -24
  100. package/dist/cli/{mcp-SJAXFYTI.mjs → mcp-WSPFKQPZ.mjs} +4 -4
  101. package/dist/cli/{monitors-RQRNQRYB.js → monitors-BJYOB4S3.js} +100 -100
  102. package/dist/cli/{monitors-PFH3FQLD.mjs → monitors-LPKFFTOX.mjs} +7 -7
  103. package/dist/cli/{org-PZC6SUZD.mjs → org-RYPMUYUW.mjs} +6 -6
  104. package/dist/cli/{org-WPOEKMTG.js → org-WIVHI4WT.js} +121 -121
  105. package/dist/cli/{outcomes-ZS7XD3KQ.mjs → outcomes-FADJYC4I.mjs} +9 -7
  106. package/dist/cli/{outcomes-EXOCNHOC.js → outcomes-QKX7IE3O.js} +17 -15
  107. package/dist/cli/{play-UKSRFVIU.mjs → play-4ZKK5Q7U.mjs} +88 -33
  108. package/dist/cli/{play-JS2TEEE7.js → play-ID73J3NP.js} +393 -338
  109. package/dist/cli/{providers-U6IODPMJ.mjs → providers-LURYBSNO.mjs} +6 -6
  110. package/dist/cli/{providers-3U4MWBLU.js → providers-WCCGYGW6.js} +9 -9
  111. package/dist/cli/{quickstart-G5QN5CUE.mjs → quickstart-KCCSEE5J.mjs} +4 -4
  112. package/dist/cli/{quickstart-SHBAEDX6.js → quickstart-LVPOU25V.js} +6 -6
  113. package/dist/cli/{run-SZRKNLUT.js → run-2QMJRCVA.js} +48 -48
  114. package/dist/cli/{run-3ZOJ6V7C.mjs → run-XXK7DDUF.mjs} +26 -26
  115. package/dist/cli/search-AQSAXA6D.js +32 -0
  116. package/dist/cli/{search-2VX5WNMJ.mjs → search-ZYAWW3CK.mjs} +7 -7
  117. package/dist/cli/{search-output-U5N2O6IA.mjs → search-output-N45AIOB4.mjs} +9 -6
  118. package/dist/cli/{search-output-WGDHYYHX.js → search-output-YNXAZSKT.js} +12 -9
  119. package/dist/cli/{secrets-SQKP5ILO.mjs → secrets-7Q3AOUAS.mjs} +6 -6
  120. package/dist/cli/{secrets-UITJOGVQ.js → secrets-MHT27L2M.js} +15 -15
  121. package/dist/cli/{sessions-LSXO2OKX.mjs → sessions-6QKOM7M3.mjs} +6 -6
  122. package/dist/cli/sessions-RGD7L4LC.js +23 -0
  123. package/dist/cli/{settings-YGYRDPOK.mjs → settings-NPVIDENI.mjs} +12 -12
  124. package/dist/cli/{settings-VZI675JG.js → settings-OP7Q6YX6.js} +85 -85
  125. package/dist/cli/{setup-GXGXRWKN.mjs → setup-OOT3EIMF.mjs} +9 -9
  126. package/dist/cli/{setup-OJ33NOWK.js → setup-RT6GHL3W.js} +49 -49
  127. package/dist/cli/skills-ERAA734H.js +37 -0
  128. package/dist/cli/{skills-3VDYIFAX.mjs → skills-TEXI4CLZ.mjs} +7 -7
  129. package/dist/cli/tools-D5SZSIIH.js +57 -0
  130. package/dist/cli/{tools-3TKEGDBP.mjs → tools-G5L36M3X.mjs} +19 -19
  131. package/dist/cli/update-WZ6527EF.js +37 -0
  132. package/dist/cli/{update-K6A4QXTC.mjs → update-YNKQTE4D.mjs} +9 -9
  133. package/dist/cli/{views-2PPIVWDK.mjs → views-IQFMUMLU.mjs} +6 -6
  134. package/dist/cli/{views-SGGO77XS.js → views-OVQ5AQAU.js} +21 -21
  135. package/dist/cli/{workflow-YSFOOTPB.js → workflow-RCBYXIFZ.js} +17 -17
  136. package/dist/cli/{workflow-JTG6QEFO.mjs → workflow-Y5IFMI7N.mjs} +7 -7
  137. package/dist/{client-DCnExziW.d.ts → client-BrdMPFCM.d.ts} +1 -1
  138. package/dist/{client-ClJlqkKt.d.mts → client-CF-bsrtI.d.mts} +1 -1
  139. package/dist/{client-core-DAOPQnGD.d.mts → client-core-DM1ZedOG.d.mts} +8 -0
  140. package/dist/{client-core-BKq5ZNAl.d.ts → client-core-rMoUWSYM.d.ts} +8 -0
  141. package/dist/index.d.mts +3 -3
  142. package/dist/index.d.ts +3 -3
  143. package/dist/index.js +9 -9
  144. package/dist/index.mjs +6 -6
  145. package/dist/install-integrity.json +128 -126
  146. package/dist/plays/play-description.d.mts +1 -1
  147. package/dist/plays/play-description.d.ts +1 -1
  148. package/dist/plays/run-request.d.mts +1 -1
  149. package/dist/plays/run-request.d.ts +1 -1
  150. package/dist/release.d.mts +1 -1
  151. package/dist/release.d.ts +1 -1
  152. package/dist/release.js +2 -2
  153. package/dist/release.mjs +1 -1
  154. package/dist/server.d.mts +2 -2
  155. package/dist/server.d.ts +2 -2
  156. package/dist/server.js +5 -5
  157. package/dist/server.mjs +3 -3
  158. package/package.json +1 -1
  159. package/dist/cli/auth-DGR7ZQJL.js +0 -44
  160. package/dist/cli/concurrent-runs-help-HEIDXAM2.js +0 -22
  161. package/dist/cli/describe-LBU4I6SU.js +0 -50
  162. package/dist/cli/git-JUSPUUOH.js +0 -26
  163. package/dist/cli/search-TAFMLK4K.js +0 -32
  164. package/dist/cli/sessions-RA6FBIHJ.js +0 -23
  165. package/dist/cli/skills-J5QVWKLQ.js +0 -37
  166. package/dist/cli/tools-3PQXQGXL.js +0 -57
  167. package/dist/cli/update-CA3DZ75E.js +0 -37
  168. /package/dist/cli/{chunk-2RIKOPIM.mjs → chunk-HECXJBED.mjs} +0 -0
  169. /package/dist/cli/{chunk-H4ALLC2X.js → chunk-TJCENACZ.js} +0 -0
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkXVFRNNL2js = require('./chunk-XVFRNNL2.js');
3
+ var _chunkUXIUAIL2js = require('./chunk-UXIUAIL2.js');
4
4
 
5
5
 
6
- var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
6
+ var _chunkTJCENACZjs = require('./chunk-TJCENACZ.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkGWPXWKQRjs = require('./chunk-GWPXWKQR.js');
10
+ var _chunk2QYU57RGjs = require('./chunk-2QYU57RG.js');
11
11
 
12
12
  // src/cli/concurrent-runs-help.ts
13
13
  var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
@@ -24,11 +24,11 @@ function concurrentRunsLine(payload) {
24
24
  return plans ? `${here} Plan limits: ${plans}.` : here;
25
25
  }
26
26
  async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
27
- const baseUrl = _chunkGWPXWKQRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
28
- const apiKey = _chunkGWPXWKQRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
27
+ const baseUrl = _chunk2QYU57RGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
28
+ const apiKey = _chunk2QYU57RGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
29
29
  if (!apiKey) return "";
30
30
  try {
31
- const { status, data } = await _chunkXVFRNNL2js.httpJson.call(void 0,
31
+ const { status, data } = await _chunkUXIUAIL2js.httpJson.call(void 0,
32
32
  "GET",
33
33
  `${baseUrl}/api/v2/billing/entitlements`,
34
34
  apiKey,
@@ -40,7 +40,7 @@ async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
40
40
  return line ? `
41
41
  Your org:
42
42
  ${line}
43
- ${_chunkH4ALLC2Xjs.PRICING_PAGE_NOTE}
43
+ ${_chunkTJCENACZjs.PRICING_PAGE_NOTE}
44
44
  ` : "";
45
45
  } catch (e) {
46
46
  return "";
@@ -11,20 +11,20 @@ import {
11
11
  skillsInstallLeasePath,
12
12
  skillsSourceUrl,
13
13
  syncSdkSkillsIfNeeded
14
- } from "./chunk-NUH56LTU.mjs";
14
+ } from "./chunk-MGF3MK27.mjs";
15
15
  import {
16
16
  printCommandEnvelope
17
- } from "./chunk-DSE45YP4.mjs";
17
+ } from "./chunk-2TMAKJBT.mjs";
18
18
  import {
19
19
  autoDetectBaseUrl,
20
20
  ensureProjectPrivatePathsIgnored,
21
21
  resolveProjectPinTarget,
22
22
  sdkCliStateDirPath
23
- } from "./chunk-MQOJ7SP4.mjs";
23
+ } from "./chunk-SRUNYWQ2.mjs";
24
24
  import {
25
25
  SDK_VERSION,
26
26
  detectAgentRuntime
27
- } from "./chunk-ENLJ67CZ.mjs";
27
+ } from "./chunk-ZFXDD7VM.mjs";
28
28
  import {
29
29
  DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
30
30
  } from "./chunk-5JPKRDFC.mjs";
@@ -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 _chunkIZK2BLBWjs = require('./chunk-IZK2BLBW.js');
3
+ var _chunkVLUBEMWMjs = require('./chunk-VLUBEMWM.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 && !_chunkIZK2BLBWjs.isJsonOutputMode.call(void 0, );
22
+ this.enabled = enabled && !_chunkVLUBEMWMjs.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 (_chunkIZK2BLBWjs.isJsonOutputMode.call(void 0, )) return;
62
+ if (_chunkVLUBEMWMjs.isJsonOutputMode.call(void 0, )) return;
63
63
  if (!this.enabled) {
64
64
  process.stderr.write(`${line}
65
65
  `);
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkDIZI5YGWjs = require('./chunk-DIZI5YGW.js');
3
+ var _chunkBUBOZKH2js = require('./chunk-BUBOZKH2.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkIZK2BLBWjs = require('./chunk-IZK2BLBW.js');
7
+ var _chunkVLUBEMWMjs = require('./chunk-VLUBEMWM.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkDLWVJ66Ijs = require('./chunk-DLWVJ66I.js');
12
+ var _chunkIB225ZK4js = require('./chunk-IB225ZK4.js');
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
 
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
55
55
  }
56
56
  function listClaudeSessionFiles() {
57
57
  const files = [];
58
- for (const root of _chunkDLWVJ66Ijs.claudeProjectsRoots.call(void 0, )) {
58
+ for (const root of _chunkIB225ZK4js.claudeProjectsRoots.call(void 0, )) {
59
59
  files.push(...listClaudeSessionFilesIn(root));
60
60
  }
61
61
  return files;
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
147
147
  const newestFirst = listSessionFiles(agent).sort(
148
148
  (a, b) => b.mtimeMs - a.mtimeMs
149
149
  );
150
- const sessionId = _chunkDLWVJ66Ijs.agentSessionIdFromEnvironment.call(void 0,
150
+ const sessionId = _chunkIB225ZK4js.agentSessionIdFromEnvironment.call(void 0,
151
151
  process.env,
152
152
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
153
153
  );
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
156
156
  (candidate) => candidate.sessionId === sessionId
157
157
  );
158
158
  if (named) return named;
159
- const cowork = agent === "codex" ? null : _chunkDLWVJ66Ijs.coworkTranscriptFromEnvironment.call(void 0, );
159
+ const cowork = agent === "codex" ? null : _chunkIB225ZK4js.coworkTranscriptFromEnvironment.call(void 0, );
160
160
  const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
161
161
  if (cowork && coworkStat) {
162
162
  return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
166
166
  ), () => ( newestFirst[0])), () => ( null));
167
167
  }
168
168
  function feedbackAgentSessionId(agentRuntime) {
169
- return _nullishCoalesce(_chunkDLWVJ66Ijs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkDLWVJ66Ijs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
169
+ return _nullishCoalesce(_chunkIB225ZK4js.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkIB225ZK4js.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
170
170
  }
171
171
  function sessionStartedInDirectory(candidate, cwd) {
172
172
  if (candidate.agent === "claude") {
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
215
215
  return null;
216
216
  }
217
217
  function sessionSearchDescription(agent) {
218
- const claude = _chunkDLWVJ66Ijs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
218
+ const claude = _chunkIB225ZK4js.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
219
219
  if (agent === "claude") return claude;
220
220
  if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
221
221
  return `${claude} or ~/.codex/sessions/**/*.jsonl`;
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
472
472
  return { encodedContent: encoded, needsChunking: true };
473
473
  }
474
474
  async function uploadPayload(path, payload) {
475
- const { http } = _chunkIZK2BLBWjs.getAuthedHttpClient.call(void 0, );
475
+ const { http } = _chunkVLUBEMWMjs.getAuthedHttpClient.call(void 0, );
476
476
  return await http.post(path, payload);
477
477
  }
478
478
  async function uploadChunkedSessions(sessions, options) {
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
550
550
  return target.sessionId;
551
551
  }
552
552
  async function handleSessionsSend(options) {
553
- if (_chunkDIZI5YGWjs.rejectRestrictedFeedback.call(void 0, options)) return;
553
+ if (_chunkBUBOZKH2js.rejectRestrictedFeedback.call(void 0, options)) return;
554
554
  const rating = parseSessionRating(options.rating);
555
555
  if (options.file) {
556
556
  const filePath = _path.resolve.call(void 0, options.file);
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
562
562
  filename: _path.basename.call(void 0, filePath),
563
563
  ...rating ? { rating } : {}
564
564
  });
565
- _chunkIZK2BLBWjs.printCommandEnvelope.call(void 0,
565
+ _chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
566
566
  {
567
567
  ...response2,
568
568
  ok: true,
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
594
594
  labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
595
595
  });
596
596
  const sessionIds = built.map((session) => session.sessionId);
597
- _chunkIZK2BLBWjs.printCommandEnvelope.call(void 0,
597
+ _chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
598
598
  {
599
599
  ...response,
600
600
  ok: true,
@@ -702,7 +702,7 @@ ${refreshMeta}
702
702
  </body>
703
703
  </html>`;
704
704
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
705
- _chunkIZK2BLBWjs.printCommandEnvelope.call(void 0,
705
+ _chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
706
706
  {
707
707
  ok: true,
708
708
  file: outputPath,
@@ -4,22 +4,22 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-6JTJP3WO.mjs";
7
+ } from "./chunk-W6UCS3O6.mjs";
8
8
  import {
9
9
  isCiEnvironment,
10
10
  resolveShellSpawn,
11
11
  syncSdkSkillsIfNeeded
12
- } from "./chunk-NUH56LTU.mjs";
12
+ } from "./chunk-MGF3MK27.mjs";
13
13
  import {
14
14
  addJsonNotice,
15
15
  isJsonOutputMode
16
- } from "./chunk-DSE45YP4.mjs";
16
+ } from "./chunk-2TMAKJBT.mjs";
17
17
  import {
18
18
  resolveApiKeyForBaseUrl
19
- } from "./chunk-MQOJ7SP4.mjs";
19
+ } from "./chunk-SRUNYWQ2.mjs";
20
20
  import {
21
21
  SDK_VERSION
22
- } from "./chunk-ENLJ67CZ.mjs";
22
+ } from "./chunk-ZFXDD7VM.mjs";
23
23
 
24
24
  // src/cli/compatibility-catalog.ts
25
25
  var readers = /* @__PURE__ */ new WeakMap();
@@ -1,29 +1,30 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-JCVAVHDP.mjs";
3
+ } from "./chunk-JY7RKJ65.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-5NEJOCOK.mjs";
6
+ } from "./chunk-IA2LTIWO.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
10
10
  findNamed
11
- } from "./chunk-HUJMFETO.mjs";
11
+ } from "./chunk-ZTCP5BHH.mjs";
12
12
  import {
13
13
  SCHEMA_LINE_LIMIT
14
- } from "./chunk-BM4GE67C.mjs";
14
+ } from "./chunk-L2NXB4WG.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-4K6UVILG.mjs";
17
+ } from "./chunk-LCAXLGAY.mjs";
18
18
  import {
19
19
  failureReportHeaders,
20
20
  isFailureReportingDisabled,
21
21
  printCommandEnvelope
22
- } from "./chunk-DSE45YP4.mjs";
22
+ } from "./chunk-2TMAKJBT.mjs";
23
23
  import {
24
24
  autoDetectBaseUrl,
25
- resolveApiKeyForBaseUrl
26
- } from "./chunk-MQOJ7SP4.mjs";
25
+ resolveApiKeyForBaseUrl,
26
+ resolveCliDashboardOrgId
27
+ } from "./chunk-SRUNYWQ2.mjs";
27
28
 
28
29
  // src/cli/commands/describe.ts
29
30
  import { writeFileSync } from "fs";
@@ -52,11 +53,17 @@ function nothingNamed(name) {
52
53
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
53
54
  }
54
55
  function findNamed2(name, options) {
55
- return findNamed(name, options, describeLookupsFor(new DeeplineClient()));
56
+ return findNamed(name, options, cliDescribeLookups(new DeeplineClient()));
57
+ }
58
+ function cliDescribeLookups(client) {
59
+ return {
60
+ ...describeLookupsFor(client),
61
+ dashboardOrgId: resolveCliDashboardOrgId(client.baseUrl)
62
+ };
56
63
  }
57
64
  async function describeAnything(name, options, onMissing) {
58
65
  const client = new DeeplineClient();
59
- const lookups = describeLookupsFor(client);
66
+ const lookups = cliDescribeLookups(client);
60
67
  const outcome = await describeName(name, options, {
61
68
  ...lookups,
62
69
  // `tools describe` has already fetched the tool for its compatibility check.
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkOPD6XUIGjs = require('./chunk-OPD6XUIG.js');
3
+ var _chunk2RPRSTHDjs = require('./chunk-2RPRSTHD.js');
4
4
 
5
5
 
6
- var _chunkIZK2BLBWjs = require('./chunk-IZK2BLBW.js');
6
+ var _chunkVLUBEMWMjs = require('./chunk-VLUBEMWM.js');
7
7
 
8
8
 
9
- var _chunkGWPXWKQRjs = require('./chunk-GWPXWKQR.js');
9
+ var _chunk2QYU57RGjs = require('./chunk-2QYU57RG.js');
10
10
 
11
11
  // src/cli/commands/integration-commands.ts
12
12
  var _commander = require('commander');
13
13
  var _fs = require('fs');
14
14
  var _path = require('path');
15
15
  function printIntegrationResult(value, json, lines, nextCursor) {
16
- _chunkIZK2BLBWjs.printCommandEnvelope.call(void 0,
16
+ _chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
17
17
  {},
18
18
  {
19
19
  json: json || void 0,
@@ -29,7 +29,7 @@ function registerIntegrationBalanceCommand(parent, hidden = false) {
29
29
  return parent.command("balance <provider>", { hidden }).description(
30
30
  "Read a fresh balance using this org\u2019s own provider connection (LeadMagic)."
31
31
  ).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
32
- const balance = await new (0, _chunkOPD6XUIGjs.DeeplineClient)().getIntegrationBalance(
32
+ const balance = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().getIntegrationBalance(
33
33
  provider
34
34
  );
35
35
  printIntegrationResult(balance, options.json, [
@@ -43,7 +43,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
43
43
  "List teammates\u2019 personal connections for this provider"
44
44
  ).option("--cursor <cursor>", "Read the next page of members").action(
45
45
  async (options) => {
46
- const client = new (0, _chunkOPD6XUIGjs.DeeplineClient)();
46
+ const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
47
47
  if (name === "list" && options.cursor && !options.members)
48
48
  throw new Error(
49
49
  "Use --cursor with --members to continue a member page."
@@ -85,7 +85,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
85
85
  }
86
86
  function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
87
87
  return parent.command("hubspot-members", { hidden }).description("List personal HubSpot connection status for org members.").option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
88
- const page = await new (0, _chunkOPD6XUIGjs.DeeplineClient)().listPersonalHubSpotMembers(
88
+ const page = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().listPersonalHubSpotMembers(
89
89
  options.cursor
90
90
  );
91
91
  const rows = page.members.map((member) => {
@@ -111,7 +111,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
111
111
  );
112
112
  if (options.autoName && (action !== "connect" || options.name !== void 0))
113
113
  throw new Error("Use --auto-name with connect and omit --name.");
114
- const client = new (0, _chunkOPD6XUIGjs.DeeplineClient)();
114
+ const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
115
115
  const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
116
116
  const row = connections.find(
117
117
  (connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
@@ -144,7 +144,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
144
144
  "Print the proposed change without contacting Google or saving it"
145
145
  ).option("--json", "Print the result as JSON").action(
146
146
  async (action, options) => {
147
- const client = new (0, _chunkOPD6XUIGjs.DeeplineClient)();
147
+ const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
148
148
  if (action === "list") {
149
149
  const inventory = await client.listCalendarAvailabilityConnections();
150
150
  const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
@@ -294,7 +294,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
294
294
  }
295
295
  function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
296
296
  return parent.command("availability-calendars", { hidden }).description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
297
- const page = await new (0, _chunkOPD6XUIGjs.DeeplineClient)().listAvailabilityCalendars(
297
+ const page = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().listAvailabilityCalendars(
298
298
  options.cursor
299
299
  );
300
300
  printIntegrationResult(page, options.json, [
@@ -372,7 +372,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
372
372
  );
373
373
  return;
374
374
  }
375
- const result2 = await new (0, _chunkOPD6XUIGjs.DeeplineClient)().connectManagedIntegration(
375
+ const result2 = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().connectManagedIntegration(
376
376
  provider,
377
377
  {
378
378
  termsVersion: options.acceptTerms,
@@ -409,7 +409,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
409
409
  printSetupPlan({ provider, action: "connect_link" }, options.json);
410
410
  return;
411
411
  }
412
- const link = await new (0, _chunkOPD6XUIGjs.DeeplineClient)().getIntegrationConnectLink(
412
+ const link = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().getIntegrationConnectLink(
413
413
  provider
414
414
  );
415
415
  printIntegrationResult(link, options.json, [link.connect_url]);
@@ -439,7 +439,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
439
439
  );
440
440
  return;
441
441
  }
442
- const result2 = await new (0, _chunkOPD6XUIGjs.DeeplineClient)().startIntegrationOAuth(
442
+ const result2 = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().startIntegrationOAuth(
443
443
  provider,
444
444
  {
445
445
  ...options.preset !== void 0 ? { preset: options.preset } : {},
@@ -501,7 +501,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
501
501
  "--credentials-file must contain a nonempty JSON object of string credential values."
502
502
  );
503
503
  }
504
- const result = await new (0, _chunkOPD6XUIGjs.DeeplineClient)().setIntegrationCredentials(
504
+ const result = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().setIntegrationCredentials(
505
505
  provider,
506
506
  credentials,
507
507
  { expectedConnectionId: options.expectedConnectionId, teamId }
@@ -530,7 +530,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
530
530
  function connectTeamId(orgDefault) {
531
531
  if (orgDefault) return null;
532
532
  try {
533
- return _nullishCoalesce(_chunkGWPXWKQRjs.resolveConfig.call(void 0, ).workspace, () => ( null));
533
+ return _nullishCoalesce(_chunk2QYU57RGjs.resolveConfig.call(void 0, ).workspace, () => ( null));
534
534
  } catch (e2) {
535
535
  return _optionalChain([process, 'access', _9 => _9.env, 'access', _10 => _10.DEEPLINE_WORKSPACE_ID, 'optionalAccess', _11 => _11.trim, 'call', _12 => _12()]) || null;
536
536
  }