deepline 0.3.564 → 0.3.566

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 (161) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +51 -0
  2. package/dist/bundling-sources/sdk/src/connector-sync.ts +241 -0
  3. package/dist/bundling-sources/sdk/src/index.ts +10 -0
  4. package/dist/bundling-sources/sdk/src/integrations.ts +7 -0
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/shared_libs/monitors/action-actor.ts +5 -0
  7. package/dist/cli/{auth-PXZ7JZUT.mjs → auth-HSFDBHVB.mjs} +5 -5
  8. package/dist/cli/auth-RGFZEMFX.js +44 -0
  9. package/dist/cli/{billing-AMYFMDZL.mjs → billing-6T7HH6DE.mjs} +9 -9
  10. package/dist/cli/{billing-OY2ZN5XJ.js → billing-NG5W2PDU.js} +102 -102
  11. package/dist/cli/{chunk-HEWVHSNN.mjs → chunk-3PNU3FEI.mjs} +4 -4
  12. package/dist/cli/{chunk-4JQ6MHE7.js → chunk-5J6VEC75.js} +4 -4
  13. package/dist/cli/{chunk-I4XWKMGR.js → chunk-6F6DMBEJ.js} +15 -15
  14. package/dist/cli/{chunk-HGGIWRA5.js → chunk-7GLVIFDO.js} +48 -48
  15. package/dist/cli/{chunk-ZOITMXVO.mjs → chunk-AD47OWTE.mjs} +1 -1
  16. package/dist/cli/{chunk-TVF7XVPN.mjs → chunk-AGDRIXF2.mjs} +1 -1
  17. package/dist/cli/{chunk-Y2FZJRRM.js → chunk-AHELFBG5.js} +2 -2
  18. package/dist/cli/{chunk-YIDXJD5L.mjs → chunk-AIF7ZHCF.mjs} +1 -1
  19. package/dist/cli/{chunk-DHZOC2QX.mjs → chunk-ARUXRZR4.mjs} +2 -2
  20. package/dist/cli/{chunk-CXN574UU.mjs → chunk-BILFWD6F.mjs} +1 -1
  21. package/dist/cli/{search-output-AXVUC3TF.js → chunk-C5IA2OYE.js} +2 -199
  22. package/dist/cli/{chunk-2SKEXMFV.js → chunk-CQX5MWHH.js} +5 -5
  23. package/dist/cli/{chunk-DTTMFSNG.mjs → chunk-CSXMBYEW.mjs} +1 -1
  24. package/dist/cli/{chunk-IW3N7ARM.js → chunk-CXK6ZEOQ.js} +159 -9
  25. package/dist/cli/{chunk-655PNNU7.mjs → chunk-E44TMICV.mjs} +1 -1
  26. package/dist/cli/{chunk-GWTFA5GD.js → chunk-EIYQIY3C.js} +3 -3
  27. package/dist/cli/{chunk-MY45K7SA.mjs → chunk-FPKKYS7V.mjs} +5 -5
  28. package/dist/cli/{chunk-DYTTZHYX.mjs → chunk-FUTXULX5.mjs} +5 -5
  29. package/dist/cli/{chunk-WDXXHTIF.js → chunk-FXSDDRVX.js} +23 -23
  30. package/dist/cli/{chunk-KR76WIOX.js → chunk-GY7MY2IJ.js} +1 -1
  31. package/dist/cli/{chunk-RKG2E2JF.js → chunk-H6BQIQEJ.js} +9 -9
  32. package/dist/cli/{chunk-V2SNCH5X.js → chunk-ILTX6ZAH.js} +6 -6
  33. package/dist/cli/{chunk-I2GVGCMM.js → chunk-JSVNTY47.js} +12 -12
  34. package/dist/cli/{chunk-2ISK6CUL.mjs → chunk-K3DEHKV7.mjs} +11 -11
  35. package/dist/cli/{chunk-RBTOZO5M.js → chunk-K5QLALHC.js} +41 -41
  36. package/dist/cli/{chunk-JVSHMUGE.mjs → chunk-KCD4LM2D.mjs} +3 -3
  37. package/dist/cli/{chunk-OCLHNDVN.mjs → chunk-KDPGBC5U.mjs} +5 -5
  38. package/dist/cli/{chunk-XP6ALUAZ.mjs → chunk-KKC7U4UJ.mjs} +2 -2
  39. package/dist/cli/{chunk-VACBPVIR.mjs → chunk-KOMEYB7H.mjs} +104 -0
  40. package/dist/cli/{chunk-HPXN5QZZ.js → chunk-KXGUMGCU.js} +20 -20
  41. package/dist/cli/{chunk-BRQVKZWJ.js → chunk-L2P3672R.js} +7 -7
  42. package/dist/cli/{chunk-2PMHEUED.mjs → chunk-L5N4DSH4.mjs} +3 -3
  43. package/dist/cli/{chunk-4NNNJLAZ.mjs → chunk-LAQNXNVR.mjs} +2 -2
  44. package/dist/cli/{chunk-WXB7PU3O.mjs → chunk-MEBKPVHE.mjs} +1 -1
  45. package/dist/cli/{search-output-N44NPUN6.mjs → chunk-MI5Q5FOD.mjs} +1 -198
  46. package/dist/cli/{chunk-KBGP4CS5.js → chunk-MIS3V2C3.js} +10 -10
  47. package/dist/cli/{chunk-5CNHEUGJ.js → chunk-OEVCKW2M.js} +104 -0
  48. package/dist/cli/{chunk-7DU4VODD.mjs → chunk-OFEARTQO.mjs} +2 -2
  49. package/dist/cli/{chunk-XWDCKDUP.js → chunk-OL3WYX7L.js} +26 -26
  50. package/dist/cli/{chunk-TK6YKQ45.mjs → chunk-P7Q27COZ.mjs} +1 -1
  51. package/dist/cli/{chunk-UWX4TTJU.mjs → chunk-PLXQIHRM.mjs} +2 -2
  52. package/dist/cli/{chunk-V2GHSOQB.js → chunk-PRM3WYG7.js} +100 -100
  53. package/dist/cli/{chunk-QHBYLHOG.mjs → chunk-QBX4UJMY.mjs} +2 -2
  54. package/dist/cli/{chunk-RW6PFYT5.mjs → chunk-RIV2AZLY.mjs} +5 -5
  55. package/dist/cli/{chunk-YMQOTCLU.js → chunk-RUVYG5TT.js} +2 -2
  56. package/dist/cli/{chunk-RK5EKJAT.mjs → chunk-SR7IUISM.mjs} +152 -2
  57. package/dist/cli/{chunk-XVYU3J2J.js → chunk-T3RKLPPS.js} +13 -13
  58. package/dist/cli/{chunk-WSEMXB7X.js → chunk-TVGGBQFG.js} +20 -20
  59. package/dist/cli/{chunk-56P2BEVI.mjs → chunk-TYKMBPNE.mjs} +2 -2
  60. package/dist/cli/{chunk-R5555CB5.js → chunk-UF5MVM6L.js} +2 -2
  61. package/dist/cli/{chunk-ZJ23RI3B.mjs → chunk-VHRYJACF.mjs} +2 -2
  62. package/dist/cli/{chunk-7NSHH3NB.js → chunk-VRWMQUFO.js} +5 -5
  63. package/dist/cli/{chunk-QQTZ6KG4.mjs → chunk-YFP7YZUU.mjs} +4 -4
  64. package/dist/cli/{chunk-ZZW5A4HZ.js → chunk-YJEBAR3C.js} +5 -5
  65. package/dist/cli/{chunk-HXZSXPT2.js → chunk-Z5BLACQ3.js} +53 -53
  66. package/dist/cli/{chunk-4SV43Z64.js → chunk-ZYXQIOWE.js} +3 -3
  67. package/dist/cli/command-docs.js +2 -2
  68. package/dist/cli/command-docs.mjs +1 -1
  69. package/dist/cli/concurrent-runs-help-3QVRXAZG.js +22 -0
  70. package/dist/cli/{concurrent-runs-help-5GPKNDAY.mjs → concurrent-runs-help-TNMN4C74.mjs} +6 -6
  71. package/dist/cli/{csv-X3FHV56H.js → csv-77H4JMDW.js} +13 -13
  72. package/dist/cli/{csv-ARPN6J6K.mjs → csv-KAZRKSLV.mjs} +4 -4
  73. package/dist/cli/{db-WINZJRWC.js → db-MM6R2466.js} +27 -27
  74. package/dist/cli/{db-2HWSS3MA.mjs → db-XQQAVLWO.mjs} +6 -6
  75. package/dist/cli/describe-H43UIBVP.js +50 -0
  76. package/dist/cli/{describe-333JCD22.mjs → describe-P5N56GPA.mjs} +18 -18
  77. package/dist/cli/describe-core.d.mts +2 -2
  78. package/dist/cli/describe-core.d.ts +2 -2
  79. package/dist/cli/{executions-JYYXIRE6.mjs → executions-EGEQZV5V.mjs} +6 -6
  80. package/dist/cli/{executions-UHZHVQLO.js → executions-EGPCT2OK.js} +8 -8
  81. package/dist/cli/{feedback-6G4SDI7M.js → feedback-ALMW7OR5.js} +14 -14
  82. package/dist/cli/{feedback-KNGQ4VMG.mjs → feedback-IWUJAF6O.mjs} +6 -6
  83. package/dist/cli/{git-DREIWOYN.mjs → git-4CQQWLZP.mjs} +5 -5
  84. package/dist/cli/git-UYYH53Q6.js +26 -0
  85. package/dist/cli/index.js +147 -147
  86. package/dist/cli/index.mjs +46 -46
  87. package/dist/cli/integrations-LS73NWU7.mjs +284 -0
  88. package/dist/cli/integrations-Y7W5L7DW.js +284 -0
  89. package/dist/cli/{legacy-noops-FSL5Y4TO.mjs → legacy-noops-V45TJGK3.mjs} +6 -6
  90. package/dist/cli/{legacy-noops-7LZ2HNLB.js → legacy-noops-WXGSAZ6O.js} +9 -9
  91. package/dist/cli/{mcp-TAVIRUQC.js → mcp-3QRLMKFF.js} +24 -24
  92. package/dist/cli/{mcp-WDJV3OCV.mjs → mcp-4IHB3LCG.mjs} +4 -4
  93. package/dist/cli/{monitors-HGT2RVR5.js → monitors-4I2QDCOV.js} +100 -100
  94. package/dist/cli/{monitors-L5FSJSVD.mjs → monitors-K46XW6QH.mjs} +7 -7
  95. package/dist/cli/{org-4LNYSIEM.js → org-CBJY5DO5.js} +121 -121
  96. package/dist/cli/{org-J5DJCLTU.mjs → org-H3GYWKFC.mjs} +6 -6
  97. package/dist/cli/{outcomes-5DZ5EZ5Q.mjs → outcomes-AE6ZPY6O.mjs} +6 -6
  98. package/dist/cli/{outcomes-4QO264GU.js → outcomes-KHZ3S3SG.js} +14 -14
  99. package/dist/cli/{play-FZY7NZAM.js → play-SY2PCUMD.js} +324 -324
  100. package/dist/cli/{play-SETNQCBB.mjs → play-YQS3OI2Q.mjs} +19 -19
  101. package/dist/cli/{providers-754HLYAW.js → providers-IT2YALZM.js} +9 -9
  102. package/dist/cli/{providers-PIS6IQVA.mjs → providers-WJBBSM76.mjs} +6 -6
  103. package/dist/cli/{quickstart-5P4NYWZK.mjs → quickstart-TYMROAQG.mjs} +4 -4
  104. package/dist/cli/{quickstart-2TIUCHQF.js → quickstart-VMLHHXFD.js} +6 -6
  105. package/dist/cli/{run-OQNK7G3I.js → run-GQOWNUD2.js} +44 -44
  106. package/dist/cli/{run-WAN4VZMS.mjs → run-TSOLGWTK.mjs} +23 -23
  107. package/dist/cli/search-B23QXBNF.js +32 -0
  108. package/dist/cli/{search-PTX7IMBB.mjs → search-MJAL37NP.mjs} +7 -7
  109. package/dist/cli/search-output-AUVP4ZLR.js +205 -0
  110. package/dist/cli/search-output-IKVGU3MZ.mjs +205 -0
  111. package/dist/cli/{secrets-ZODIPUMI.mjs → secrets-4KYGVJJJ.mjs} +6 -6
  112. package/dist/cli/{secrets-32WRPZB2.js → secrets-NO6ZD2OZ.js} +15 -15
  113. package/dist/cli/sessions-DJLG57FC.js +23 -0
  114. package/dist/cli/{sessions-JRIS3JMT.mjs → sessions-S2O24LRW.mjs} +6 -6
  115. package/dist/cli/{settings-OI3OHCD5.mjs → settings-NSZNSX67.mjs} +12 -12
  116. package/dist/cli/{settings-YIZUG6T3.js → settings-O5BELZRA.js} +85 -85
  117. package/dist/cli/{setup-4QQ33WUA.mjs → setup-3VTTPHKI.mjs} +9 -9
  118. package/dist/cli/{setup-AF3I4UPE.js → setup-IGJKIVJ7.js} +49 -49
  119. package/dist/cli/skills-76W4VCHP.js +37 -0
  120. package/dist/cli/{skills-EITRSX56.mjs → skills-JMSX77S3.mjs} +7 -7
  121. package/dist/cli/{tools-CMOLGIDR.mjs → tools-MITGT2JM.mjs} +17 -17
  122. package/dist/cli/tools-OS32SFJD.js +57 -0
  123. package/dist/cli/update-UGLA7TLH.js +37 -0
  124. package/dist/cli/{update-PGEARBAI.mjs → update-YXASQQWE.mjs} +9 -9
  125. package/dist/cli/{views-2H77STII.mjs → views-7ZMS2B55.mjs} +6 -6
  126. package/dist/cli/{views-KFLXOZ5N.js → views-Y5CA3JWP.js} +21 -21
  127. package/dist/cli/{workflow-XWMAYWVX.mjs → workflow-GBXWHYDL.mjs} +7 -7
  128. package/dist/cli/{workflow-HCEMVZAZ.js → workflow-U7KXZLKI.js} +17 -17
  129. package/dist/{client-CnphYDTe.d.mts → client-B5cSKEi4.d.mts} +1 -1
  130. package/dist/{client-core-DQOTt3yV.d.mts → client-core-BP19BoBb.d.mts} +107 -2
  131. package/dist/{client-core-Yad6-K7-.d.ts → client-core-Deqov12F.d.ts} +107 -2
  132. package/dist/{client-BSxuaObS.d.ts → client-vUZGmXT9.d.ts} +1 -1
  133. package/dist/index.d.mts +3 -3
  134. package/dist/index.d.ts +3 -3
  135. package/dist/index.js +9 -9
  136. package/dist/index.mjs +6 -6
  137. package/dist/install-integrity.json +121 -118
  138. package/dist/plays/play-description.d.mts +1 -1
  139. package/dist/plays/play-description.d.ts +1 -1
  140. package/dist/plays/run-request.d.mts +1 -1
  141. package/dist/plays/run-request.d.ts +1 -1
  142. package/dist/release.d.mts +1 -1
  143. package/dist/release.d.ts +1 -1
  144. package/dist/release.js +2 -2
  145. package/dist/release.mjs +1 -1
  146. package/dist/server.d.mts +2 -2
  147. package/dist/server.d.ts +2 -2
  148. package/dist/server.js +5 -5
  149. package/dist/server.mjs +3 -3
  150. package/package.json +1 -1
  151. package/dist/cli/auth-645UXOAZ.js +0 -44
  152. package/dist/cli/concurrent-runs-help-QKZXIMSW.js +0 -22
  153. package/dist/cli/describe-6TJYCPFQ.js +0 -50
  154. package/dist/cli/git-TQNP4MAD.js +0 -26
  155. package/dist/cli/integrations-UY3T3ZHA.mjs +0 -129
  156. package/dist/cli/integrations-V6EO6JAM.js +0 -129
  157. package/dist/cli/search-VXKJDQA5.js +0 -32
  158. package/dist/cli/sessions-MW3SUF7R.js +0 -23
  159. package/dist/cli/skills-ECMGSQM4.js +0 -37
  160. package/dist/cli/tools-QTTCIEQM.js +0 -57
  161. package/dist/cli/update-N3YQGALD.js +0 -37
@@ -9,7 +9,7 @@ var _chunkLHPYCJNLjs = require('./chunk-LHPYCJNL.js');
9
9
 
10
10
 
11
11
 
12
- var _chunkWSEMXB7Xjs = require('./chunk-WSEMXB7X.js');
12
+ var _chunkTVGGBQFGjs = require('./chunk-TVGGBQFG.js');
13
13
 
14
14
  // src/cli/describe-options.ts
15
15
  function addDescribeOptions(command, options = {}) {
@@ -250,7 +250,7 @@ function projectRunDatasetCell(value) {
250
250
  const logicalValue = parseSerializedDatasetValue(value);
251
251
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
252
252
  if (typeof logicalValue === "object") {
253
- return _chunkWSEMXB7Xjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
253
+ return _chunkTVGGBQFGjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
254
254
  }
255
255
  return logicalValue;
256
256
  }
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
642
642
  rows: rows.map((row) => record(row) ? row : { value: row }),
643
643
  columns
644
644
  });
645
- return _chunkWSEMXB7Xjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
645
+ return _chunkTVGGBQFGjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
646
646
  }
647
647
  function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
648
648
  let temp;
@@ -770,7 +770,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
770
770
  };
771
771
  if (options.receiptOut && !skipReceiptFile) {
772
772
  persist(options.receiptOut, jsonText(receipt));
773
- _chunkWSEMXB7Xjs.markJsonOutputHandled.call(void 0, );
773
+ _chunkTVGGBQFGjs.markJsonOutputHandled.call(void 0, );
774
774
  } else {
775
775
  printReceipt(receipt, options, {
776
776
  data: hasData ? result.data : void 0,
@@ -939,7 +939,7 @@ function receiptText(receipt, options, extra) {
939
939
  problems.push(
940
940
  `Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
941
941
  );
942
- const diagnostic = _chunkWSEMXB7Xjs.formatCliFailureDiagnostic.call(void 0, error);
942
+ const diagnostic = _chunkTVGGBQFGjs.formatCliFailureDiagnostic.call(void 0, error);
943
943
  if (diagnostic) problems.push(...diagnostic.split("\n"));
944
944
  if (record(error) && typeof error.recoveryFile === "string") {
945
945
  problems.push(
@@ -1032,8 +1032,8 @@ function printReceipt(receipt, options, extra) {
1032
1032
  const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
1033
1033
  ` : receiptText(receipt, options, extra);
1034
1034
  if (options.receiptOut !== void 0) {
1035
- _chunkWSEMXB7Xjs.writeRawStderr.call(void 0, text);
1036
- _chunkWSEMXB7Xjs.markJsonOutputHandled.call(void 0, );
1035
+ _chunkTVGGBQFGjs.writeRawStderr.call(void 0, text);
1036
+ _chunkTVGGBQFGjs.markJsonOutputHandled.call(void 0, );
1037
1037
  } else {
1038
1038
  (dataOnStdout(options) ? process.stderr : process.stdout).write(text);
1039
1039
  }
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-4NNNJLAZ.mjs";
5
+ } from "./chunk-LAQNXNVR.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -22,14 +22,14 @@ import {
22
22
  saveHostEnvValues,
23
23
  saveProjectDeeplineEnvValues,
24
24
  storedHostApiKey
25
- } from "./chunk-ZOITMXVO.mjs";
25
+ } from "./chunk-AD47OWTE.mjs";
26
26
  import {
27
27
  SDK_API_CONTRACT,
28
28
  SDK_VERSION,
29
29
  connectionFailureMessage,
30
30
  detectAgentRuntime,
31
31
  networkCauseCode
32
- } from "./chunk-TVF7XVPN.mjs";
32
+ } from "./chunk-AGDRIXF2.mjs";
33
33
  import {
34
34
  DeeplineError
35
35
  } from "./chunk-Z3A2S3QM.mjs";
@@ -4,14 +4,14 @@ import {
4
4
  resolveApiKeyForBaseUrl,
5
5
  resolveCliCommandContext,
6
6
  resolveConfig
7
- } from "./chunk-ZOITMXVO.mjs";
7
+ } from "./chunk-AD47OWTE.mjs";
8
8
  import {
9
9
  SDK_VERSION,
10
10
  agentSessionIdFromEnvironment,
11
11
  deploymentProtectionHeaders,
12
12
  detectAgentRuntime,
13
13
  readToolFailureHint
14
- } from "./chunk-TVF7XVPN.mjs";
14
+ } from "./chunk-AGDRIXF2.mjs";
15
15
  import {
16
16
  DeeplineError,
17
17
  normalizeToolExecutionFailure,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-MY45K7SA.mjs";
3
+ } from "./chunk-FPKKYS7V.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -1,22 +1,3 @@
1
- import {
2
- DEFAULT_SUMMARY_WIDTH
3
- } from "./chunk-5AEDYVB6.mjs";
4
- import {
5
- discoveryAuthLines
6
- } from "./chunk-BM4GE67C.mjs";
7
- import "./chunk-STXDSVQZ.mjs";
8
- import "./chunk-PSX3WHIH.mjs";
9
- import {
10
- renderCommandEnvelopeText
11
- } from "./chunk-4NNNJLAZ.mjs";
12
- import "./chunk-ZOITMXVO.mjs";
13
- import "./chunk-TVF7XVPN.mjs";
14
- import "./chunk-ASB47RXJ.mjs";
15
- import "./chunk-DLIRSHV6.mjs";
16
- import "./chunk-Z3A2S3QM.mjs";
17
- import "./chunk-2MGZAI54.mjs";
18
- import "./chunk-TK6YKQ45.mjs";
19
- import "./chunk-WZYKRD7T.mjs";
20
1
  import {
21
2
  __commonJS,
22
3
  __toESM
@@ -5733,184 +5714,6 @@ function formatTextTable(rows, columns) {
5733
5714
  }).split("\n").map((line) => line.trimEnd()).join("\n").trimEnd();
5734
5715
  }
5735
5716
 
5736
- // src/cli/search-output.ts
5737
- function clipSummary(value, width) {
5738
- const characters = Array.from(value.replace(/\s+/gu, " ").trim());
5739
- return characters.length <= width ? characters.join("") : `${characters.slice(0, width - 1).join("")}\u2026`;
5740
- }
5741
- function toolPrice(item) {
5742
- const pricing = item.pricing;
5743
- if (!pricing) return item.kind === "tool" ? "unknown" : "\u2014";
5744
- if (item.billingSource === "own_provider_credentials") return "0 (byok)";
5745
- if (pricing.benefit?.status === "included")
5746
- return typeof pricing.benefit.remaining === "number" ? `0 (${pricing.benefit.remaining.toLocaleString("en-US")} free left)*` : "0 (included)*";
5747
- if (pricing.benefit?.status === "unavailable")
5748
- return "inclusion unavailable*";
5749
- if (pricing.benefit?.status === "exhausted" && typeof pricing.creditsPerUnit === "number")
5750
- return `${pricing.creditsPerUnit}/${pricing.unit ?? "result"}*`;
5751
- const range = pricing.estimatedRange;
5752
- if (range)
5753
- return `${range.minCreditsPerUnit}\u2013${range.maxCreditsPerUnit}/${pricing.unit} (estimate)*`;
5754
- const observed = pricing.observedReference;
5755
- if (observed) return `${observed.creditsPerCall}/call (observed)*`;
5756
- const observedAvg = pricing.observedMax;
5757
- if (observedAvg?.avgCreditsPerCall && observedAvg.sampleCount)
5758
- return `variable, ${observedAvg.avgCreditsPerCall} avg*`;
5759
- const display = pricing.displayText ?? "";
5760
- const footnote = pricing.summary || pricing.details?.length || pricing.observedMax ? "*" : "";
5761
- const rate = display.match(
5762
- /^([\d.,]+) Deepline credits(?: \/ \$[\d.,]+)? per (call|result|page|item|basic profile|full profile)( \(estimate\))?$/
5763
- );
5764
- if (rate) return `${rate[1]}/${rate[2]}${rate[3] ?? ""}${footnote}`;
5765
- if (pricing.creditsPerUnit === 0 && /^Free\b/.test(display))
5766
- return `0 (free)${footnote}`;
5767
- if (!display || display === "Pricing unavailable.")
5768
- return `unknown${footnote}`;
5769
- return pricing.unit === "usage" ? "usage-based*" : "variable*";
5770
- }
5771
- var RATE_WINDOW_UNITS = {
5772
- 1e3: "s",
5773
- 6e4: "min",
5774
- 36e5: "hr"
5775
- };
5776
- function rateLimitDisplay(item) {
5777
- const limits = (Array.isArray(item.rateLimits) ? item.rateLimits : []).filter(
5778
- (limit) => typeof limit?.requestsPerWindow === "number" && typeof limit?.windowMs === "number" && limit.windowMs > 0
5779
- );
5780
- const [tightest] = limits.sort(
5781
- (a, b) => a.requestsPerWindow / a.windowMs - b.requestsPerWindow / b.windowMs
5782
- );
5783
- return tightest ? `${tightest.requestsPerWindow}/${RATE_WINDOW_UNITS[tightest.windowMs] ?? `${tightest.windowMs / 1e3}s`}` : "\u2014";
5784
- }
5785
- function failureRateDisplay(rate) {
5786
- if (typeof rate !== "number") return "\u2014";
5787
- const percent = Math.round(rate * 100);
5788
- return percent === 0 && rate > 0 ? "<1%" : `${percent}%`;
5789
- }
5790
- function latencyDisplay(ms) {
5791
- if (typeof ms !== "number" || !Number.isFinite(ms)) return "\u2014";
5792
- if (ms < 1e3) return `${Math.round(ms)}ms`;
5793
- if (ms < 6e4) return `${(ms / 1e3).toFixed(ms < 1e4 ? 1 : 0)}s`;
5794
- return `${(ms / 6e4).toFixed(1)}min`;
5795
- }
5796
- function searchRow(item, summaryWidth) {
5797
- const observedCost = item.observedCost;
5798
- const notes = [];
5799
- let cost;
5800
- if (!observedCost) {
5801
- cost = toolPrice(item);
5802
- } else if (observedCost.status === "available") {
5803
- cost = `${observedCost.avgCredits}/${observedCost.unit} (observed)`;
5804
- } else {
5805
- cost = observedCost.typical ? `${observedCost.typical.lowCredits}\u2013${observedCost.typical.highCredits}/${observedCost.typical.unit} (typical)` : "no data yet";
5806
- notes.push(`Cost: ${observedCost.displayText}`);
5807
- }
5808
- if (item.auth?.connectionRequired && typeof item.connectionMessage === "string") {
5809
- notes.push(item.connectionMessage);
5810
- } else if (item.connected === false && item.credentialStatus === "managed") {
5811
- notes.push("Temporarily unavailable.");
5812
- }
5813
- return {
5814
- id: item.id,
5815
- kind: item.kind,
5816
- cost,
5817
- rateLimit: rateLimitDisplay(item),
5818
- // Production share of errored or rate-limited calls; absent when too few
5819
- // calls or orgs used the tool to say.
5820
- failureRate: failureRateDisplay(item.failureRate),
5821
- // Production share of calls that returned a result; same floor.
5822
- hitRate: failureRateDisplay(item.hitRate),
5823
- // Production p95 latency of successful calls; absent for the same reason.
5824
- p95: latencyDisplay(item.latencyP95Ms),
5825
- summary: clipSummary(item.description ?? "", summaryWidth),
5826
- notes
5827
- };
5828
- }
5829
- var SEARCH_KIND_COLUMN_ENABLED = false;
5830
- var OPTIONAL_COLUMNS = [
5831
- { header: "RATE LIMIT", key: "rateLimit" },
5832
- { header: "FAILURES", key: "failureRate" },
5833
- { header: "HIT RATE", key: "hitRate" },
5834
- { header: "P95", key: "p95" }
5835
- ];
5836
- function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5837
- if (result.results.length === 0)
5838
- return renderCommandEnvelopeText(result);
5839
- const rows = result.results.map((item) => searchRow(item, summaryWidth));
5840
- const kinds = new Set(rows.map((row) => row.kind));
5841
- const onlyTools = kinds.size === 1 && kinds.has("tool");
5842
- const columns = [
5843
- { header: onlyTools ? "TOOL" : "ID", value: (row) => row.id },
5844
- ...SEARCH_KIND_COLUMN_ENABLED && !onlyTools ? [{ header: "KIND", value: (row) => row.kind }] : [],
5845
- { header: "CREDITS", value: (row) => row.cost, alignment: "right" },
5846
- // Right-aligned figures that appear only when some row has one.
5847
- ...OPTIONAL_COLUMNS.filter(
5848
- ({ key }) => rows.some((row) => row[key] !== "\u2014")
5849
- ).map(({ header, key }) => ({
5850
- header,
5851
- value: (row) => row[key],
5852
- alignment: "right"
5853
- })),
5854
- { header: "SUMMARY", value: (row) => row.summary }
5855
- ];
5856
- const render = result.render;
5857
- const sections = render?.sections ?? [];
5858
- const resultIndex = sections.findIndex(
5859
- ({ title: title2 }) => title2 !== "ignored categories" && title2 !== "exact tool lookup"
5860
- );
5861
- const title = sections[resultIndex]?.title ?? `${result.total ?? rows.length} matches \u2014 showing ${rows.length}`;
5862
- const remaining = {
5863
- sections: sections.filter(
5864
- ({ title: title2 }, index) => index !== resultIndex && title2 !== "exact tool lookup"
5865
- ),
5866
- actions: render?.actions
5867
- };
5868
- const followUps = remaining.sections?.length || remaining.actions?.length ? `
5869
- ${renderCommandEnvelopeText({ render: remaining })}` : "";
5870
- const exact = result.exactLookup?.toolId;
5871
- const matched = exact && result.results.find((item) => item.id === exact);
5872
- const contract = matched ? [
5873
- ...matched.toolUsage?.effect ? [`Effect: ${matched.toolUsage.effect}`] : [],
5874
- ...(matched.toolUsage?.requiredInputs ?? []).map(
5875
- ({ name, meaning }) => ` ${name}${meaning ? ` \u2014 ${meaning}` : ""}`
5876
- ),
5877
- ...matched.auth ? discoveryAuthLines(matched.auth) : [],
5878
- ...matched.describeCommand ? [matched.describeCommand] : [],
5879
- ...matched.toolUsage?.example ? [matched.toolUsage.example.cli] : []
5880
- ] : [];
5881
- const missingConnections = /* @__PURE__ */ new Set();
5882
- for (const item of result.results) {
5883
- if (item.id === exact || item.auth?.connectionRequired || item.credentialStatus !== "requires_connection")
5884
- continue;
5885
- const provider = typeof item.provider === "string" && item.provider.trim();
5886
- missingConnections.add(provider || item.id);
5887
- }
5888
- const notes = [...missingConnections].map(
5889
- (provider) => ` ${provider}: Not connected. Connect to use tools that require your credentials. See deepline describe <toolId> for setup.`
5890
- );
5891
- notes.push(
5892
- ...rows.flatMap((row) => row.notes.map((note) => ` ${row.id}: ${note}`))
5893
- );
5894
- const details = [
5895
- ...notes.length ? ["Notes", ...notes, ""] : [],
5896
- rows.some((row) => row.cost.endsWith("*")) ? "* See deepline describe <toolId> for full pricing information." : "Full descriptions and pricing: deepline describe <toolId>."
5897
- ].join("\n");
5898
- const exactContract = contract.length ? `
5899
-
5900
- Exact match
5901
- ${contract.join("\n")}` : "";
5902
- const exactMiss = result.exactLookup?.status !== "found" ? result.exactLookup?.message : void 0;
5903
- return `${exactMiss ? `${exactMiss}
5904
-
5905
- ` : ""}${title}
5906
-
5907
- ${formatTextTable(rows, columns)}${exactContract}
5908
-
5909
- ${details}
5910
- ${followUps}`;
5911
- }
5912
5717
  export {
5913
- DEFAULT_SUMMARY_WIDTH,
5914
- SEARCH_KIND_COLUMN_ENABLED,
5915
- renderSearchResults
5718
+ formatTextTable
5916
5719
  };
@@ -3,16 +3,16 @@
3
3
  var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
4
4
 
5
5
 
6
- var _chunk7NSHH3NBjs = require('./chunk-7NSHH3NB.js');
6
+ var _chunkVRWMQUFOjs = require('./chunk-VRWMQUFO.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- var _chunkWSEMXB7Xjs = require('./chunk-WSEMXB7X.js');
11
+ var _chunkTVGGBQFGjs = require('./chunk-TVGGBQFG.js');
12
12
 
13
13
 
14
14
 
15
- var _chunk4SV43Z64js = require('./chunk-4SV43Z64.js');
15
+ var _chunkZYXQIOWEjs = require('./chunk-ZYXQIOWE.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, _chunk4SV43Z64js.sdkCliStateDirPath.call(void 0, _chunk4SV43Z64js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
25
+ return _path.join.call(void 0, _chunkZYXQIOWEjs.sdkCliStateDirPath.call(void 0, _chunkZYXQIOWEjs.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, _chunk7NSHH3NBjs.DeeplineClient)();
135
+ const client = new (0, _chunkVRWMQUFOjs.DeeplineClient)();
136
136
  const json = options.json === true;
137
- const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-AXVUC3TF.js")));
137
+ const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-AUVP4ZLR.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
- _chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0, result, { json, text });
160
+ _chunkTVGGBQFGjs.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 = _chunkWSEMXB7Xjs.errorToJsonPayload.call(void 0, error);
175
- const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkWSEMXB7Xjs.resolveSdkCliFailureExitCode.call(void 0, error)));
174
+ const payload = _chunkTVGGBQFGjs.errorToJsonPayload.call(void 0, error);
175
+ const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkTVGGBQFGjs.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
- _chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0,
187
+ _chunkTVGGBQFGjs.printCommandEnvelope.call(void 0,
188
188
  { searches },
189
189
  {
190
190
  json,
@@ -692,6 +692,7 @@ Input and output:
692
692
  reconnect, disconnect, and delete act on existing org authorizations.
693
693
  Pass --provider when the same name occurs for more than one provider.
694
694
  verify <domain> checks an existing Google Admin grant and enables it locally.
695
+ sync shows and controls CRM syncs into the Customer DB (see sync --help).
695
696
  Scope changes require provider approval; a Play's connection selection
696
697
  cannot expand granted access.
697
698
  SDK:
@@ -705,6 +706,109 @@ Examples:
705
706
  deepline integrations list --json
706
707
  deepline integrations get deepline.com --json
707
708
  `
709
+ },
710
+ "integrations sync": {
711
+ core: `
712
+ Purpose:
713
+ Show and control the CRM syncs that copy HubSpot, Salesforce and Attio
714
+ objects into the org's Customer DB. Same state and controls as the
715
+ dashboard sync page (Integrations > Sync).
716
+ Input and output:
717
+ status lists each provider's state, as the Integrations list shows it;
718
+ status <provider> shows one. objects <provider> lists its synced objects.
719
+ on <provider> and off <provider> turn its whole sync on or off.
720
+ pause <provider> <objects...> and resume <provider> <objects...> stop or
721
+ restart individual objects (for example tickets) while the rest sync.
722
+ run <provider> [objects...] syncs now instead of waiting for the schedule.
723
+ Object names are the object column of objects <provider>.
724
+ States:
725
+ off: the sync is turned off; nothing is copied.
726
+ starting: turned on; its first setup run is in progress.
727
+ on: turned on and every active object synced on schedule.
728
+ needs_attention: turned on, but objects failed, are overdue, have never
729
+ synced, are all paused, setup failed, or the Customer DB is
730
+ unavailable. reason and label say which.
731
+ unknown: turned on, but no sync has recorded its status yet; the next
732
+ scheduled check records it.
733
+ An object is overdue when its scheduled run is more than 20 minutes late.
734
+ SDK:
735
+ client.integrations.sync exposes status, get, objects, set, pause, resume
736
+ and run.
737
+ Cost:
738
+ These commands do not spend Deepline credits. Syncing reads from the
739
+ provider's API under the org's connection.
740
+ Examples:
741
+ deepline integrations sync status --json
742
+ deepline integrations sync on hubspot
743
+ deepline integrations sync pause hubspot tickets quotes
744
+ `
745
+ },
746
+ "integrations sync status": {
747
+ core: `Purpose: Show CRM sync state, as the Integrations list shows it.
748
+ Input: no provider for every CRM; a provider (hubspot, salesforce, attio) for
749
+ one.
750
+ Output: state (off, starting, on, needs_attention, unknown), reason, label
751
+ (the Integrations list text), sync_enabled, last_success_at, connector_status
752
+ (healthy, error, unknown as the sync last recorded it) and object counts:
753
+ total, active, paused, failed, backfilling, scheduled, never_synced, and
754
+ overdue (none, some or all scheduled objects past due). Counts come from the
755
+ last recorded sync check, overdue from the current time, so a sync that
756
+ stopped running still reads as overdue. objects is null when the sync is off
757
+ or nothing is recorded yet. This command never reads the Customer DB.
758
+ [[cli:--json prints GET /api/v2/ingestion/sync-status (one provider's entry
759
+ with a provider).]]
760
+ Cost: Does not spend credits.`
761
+ },
762
+ "integrations sync objects": {
763
+ core: `Purpose: List one provider's synced objects, as the sync page does.
764
+ Input: hubspot, salesforce or attio.
765
+ Output: the provider's state and every object: object_type, status, health
766
+ (healthy, paused, last_sync_failed, sync_overdue, no_successful_sync),
767
+ frequency, next run, last success and last error, read from the Customer DB.
768
+ Reads every page. Fails when the Customer DB read fails.
769
+ [[cli:--json prints the state and all objects from
770
+ GET /api/v2/ingestion/providers/<provider>/sync.]]
771
+ Cost: Does not spend credits.`
772
+ },
773
+ "integrations sync on": {
774
+ core: `Purpose: Turn a provider's CRM sync on.
775
+ Input: hubspot, salesforce or attio. The org must have it connected and a
776
+ Customer DB. The first time, Deepline creates its default objects and starts
777
+ a setup run (state starting); later, paused objects resume.
778
+ Output: the change counts and the provider's resulting sync state.
779
+ Cost: Does not spend credits.`
780
+ },
781
+ "integrations sync off": {
782
+ core: `Purpose: Turn a provider's CRM sync off.
783
+ Input: hubspot, salesforce or attio. Every object stops syncing; data already
784
+ in the Customer DB stays.
785
+ Output: the change counts and the provider's resulting state (off).
786
+ Cost: Does not spend credits.`
787
+ },
788
+ "integrations sync pause": {
789
+ core: `Purpose: Pause individual objects while the rest of the sync continues.
790
+ Input: the provider and one or more object names from objects <provider>.
791
+ An unknown object name fails (exit 4) and lists the synced objects. To stop
792
+ the whole sync use off.
793
+ Output: pausedCount and the provider's resulting state.
794
+ Cost: Does not spend credits.`
795
+ },
796
+ "integrations sync resume": {
797
+ core: `Purpose: Resume individual paused objects.
798
+ Input: the provider and one or more object names from objects <provider>.
799
+ An unknown object name fails (exit 4). Resuming does not turn on a sync
800
+ that is off; use on.
801
+ Output: resumedCount and the provider's resulting state.
802
+ Cost: Does not spend credits.`
803
+ },
804
+ "integrations sync run": {
805
+ core: `Purpose: Sync now instead of waiting for the schedule.
806
+ Input: the provider, and optionally object names; with none, every synced
807
+ object, paused ones included, as the sync page's Run all now does. The sync
808
+ must be on (exit 7 with SYNC_OFF otherwise). A paused object runs once and
809
+ stays paused.
810
+ Output: queuedCount and the provider's resulting state.
811
+ Cost: Does not spend Deepline credits; reads the provider's API.`
708
812
  },
709
813
  "integrations discover-ad-accounts": {
710
814
  core: `Purpose: Discover and save the ad accounts a connected provider can access in the selected workspace.
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-MF7PCM6C.mjs";
4
4
  import {
5
5
  parseLogLevel
6
- } from "./chunk-RK5EKJAT.mjs";
6
+ } from "./chunk-SR7IUISM.mjs";
7
7
  import {
8
8
  setDottedInputValue
9
9
  } from "./chunk-5TYLSS4Q.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  argsWantJson,
12
12
  jsonFieldArgs,
13
13
  parseJsonFields
14
- } from "./chunk-4NNNJLAZ.mjs";
14
+ } from "./chunk-LAQNXNVR.mjs";
15
15
  import {
16
16
  DeeplineError
17
17
  } from "./chunk-Z3A2S3QM.mjs";