@codebolt/codeboltjs 1.1.75 → 1.1.77

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 (83) hide show
  1. package/.github/workflows/publish-to-npm.yml +1 -1
  2. package/docs/modules/_internal_.EventEmitter.html +6 -0
  3. package/docs/modules/_internal_.WebSocket.html +21 -0
  4. package/docs/modules/_internal_._node_stream_consumers_.html +6 -0
  5. package/docs/modules/_internal_._node_stream_promises_.html +3 -0
  6. package/docs/modules/_internal_.html +228 -0
  7. package/docs/modules/_internal_.internal.finished.html +2 -0
  8. package/docs/modules/_internal_.internal.html +36 -0
  9. package/docs/modules/_internal_.internal.pipeline.html +2 -0
  10. package/index.d.ts +254 -0
  11. package/modules/browser.d.ts +108 -0
  12. package/modules/browser.js +331 -0
  13. package/modules/chat.d.ts +64 -0
  14. package/modules/chat.js +190 -0
  15. package/modules/codeparsers.d.ts +23 -0
  16. package/modules/codeparsers.js +30 -0
  17. package/modules/codeutils.d.ts +37 -0
  18. package/modules/codeutils.js +166 -0
  19. package/modules/crawler.d.ts +45 -0
  20. package/modules/crawler.js +123 -0
  21. package/modules/dbmemory.d.ts +20 -0
  22. package/modules/dbmemory.js +54 -0
  23. package/modules/debug.d.ts +23 -0
  24. package/modules/debug.js +64 -0
  25. package/modules/docutils.d.ts +12 -0
  26. package/modules/docutils.js +19 -0
  27. package/modules/fs.d.ts +94 -0
  28. package/modules/fs.js +264 -0
  29. package/modules/git.d.ts +76 -0
  30. package/modules/git.js +240 -0
  31. package/modules/history.d.ts +19 -0
  32. package/modules/history.js +46 -0
  33. package/modules/knowledge.d.ts +2 -0
  34. package/modules/knowledge.js +6 -0
  35. package/modules/llm.d.ts +18 -0
  36. package/modules/llm.js +39 -0
  37. package/modules/mcp.d.ts +8 -0
  38. package/modules/mcp.js +139 -0
  39. package/modules/outputparsers.d.ts +24 -0
  40. package/modules/outputparsers.js +32 -0
  41. package/modules/project.d.ts +21 -0
  42. package/modules/project.js +72 -0
  43. package/modules/rag.d.ts +22 -0
  44. package/modules/rag.js +30 -0
  45. package/modules/search.d.ts +23 -0
  46. package/modules/search.js +37 -0
  47. package/modules/state.d.ts +21 -0
  48. package/modules/state.js +68 -0
  49. package/modules/task.d.ts +23 -0
  50. package/modules/task.js +75 -0
  51. package/modules/terminal.d.ts +46 -0
  52. package/modules/terminal.js +108 -0
  53. package/modules/tokenizer.d.ts +19 -0
  54. package/modules/tokenizer.js +56 -0
  55. package/modules/vectordb.d.ts +33 -0
  56. package/modules/vectordb.js +103 -0
  57. package/modules/websocket.d.ts +27 -0
  58. package/modules/websocket.js +88 -0
  59. package/package.json +3 -5
  60. package/src/modules/browser.ts +352 -0
  61. package/src/modules/chat.ts +193 -0
  62. package/src/modules/codeparsers.ts +30 -0
  63. package/src/modules/codeutils.ts +181 -0
  64. package/src/modules/crawler.ts +121 -0
  65. package/src/modules/dbmemory.ts +52 -0
  66. package/src/modules/debug.ts +68 -0
  67. package/src/modules/docutils.ts +18 -0
  68. package/src/modules/fs.ts +263 -0
  69. package/src/modules/git.ts +237 -0
  70. package/src/modules/history.ts +61 -0
  71. package/src/modules/knowledge.ts +5 -0
  72. package/src/modules/llm.ts +36 -0
  73. package/src/modules/mcp.ts +127 -0
  74. package/src/modules/outputparsers.ts +30 -0
  75. package/src/modules/project.ts +68 -0
  76. package/src/modules/rag.ts +28 -0
  77. package/src/modules/search.ts +35 -0
  78. package/src/modules/state.ts +69 -0
  79. package/src/modules/task.ts +73 -0
  80. package/src/modules/terminal.ts +114 -0
  81. package/src/modules/tokenizer.ts +56 -0
  82. package/src/modules/vectordb.ts +102 -0
  83. package/src/modules/websocket.ts +89 -0
@@ -0,0 +1,2 @@
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>finished | @codebolt/codeboltjs</title><meta name="description" content="Documentation for @codebolt/codeboltjs"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@codebolt/codeboltjs</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@codebolt/codeboltjs</a></li><li><a href="_internal_.html">&lt;internal&gt;</a></li><li><a href="_internal_.internal.html">internal</a></li><li><a href="_internal_.internal.finished.html">finished</a></li></ul><h1>Namespace finished</h1></div><aside class="tsd-sources"><ul><li>Defined in node_modules/@types/node/stream.d.ts:1439</li><li>Defined in node_modules/@types/node/stream.d.ts:1444</li><li>Defined in node_modules/@types/node/stream.d.ts:1448</li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><h3 class="tsd-index-heading uppercase">Index</h3><section class="tsd-index-section"><h3 class="tsd-index-heading">Functions</h3><div class="tsd-index-list"><a href="../functions/_internal_.internal.finished.__promisify__.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-64"></use></svg><span>__promisify__</span></a>
2
+ </div></section></section></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@codebolt/codeboltjs</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -0,0 +1,36 @@
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>internal | @codebolt/codeboltjs</title><meta name="description" content="Documentation for @codebolt/codeboltjs"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@codebolt/codeboltjs</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@codebolt/codeboltjs</a></li><li><a href="_internal_.html">&lt;internal&gt;</a></li><li><a href="_internal_.internal.html">internal</a></li></ul><h1>Namespace internal</h1></div><aside class="tsd-sources"><ul><li>Defined in node_modules/@types/node/stream.d.ts:29</li><li>Defined in node_modules/@types/node/stream.d.ts:950</li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">References</h3><div class="tsd-index-list"><a href="_internal_.internal.html#Duplex" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Duplex</span></a>
2
+ <a href="_internal_.internal.html#DuplexOptions" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Duplex<wbr/>Options</span></a>
3
+ <a href="_internal_.internal.html#Readable" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Readable</span></a>
4
+ <a href="_internal_.internal.html#ReadableOptions" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Readable<wbr/>Options</span></a>
5
+ <a href="_internal_.internal.html#Stream" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Stream</span></a>
6
+ <a href="_internal_.internal.html#StreamOptions" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Stream<wbr/>Options</span></a>
7
+ <a href="_internal_.internal.html#Writable" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Writable</span></a>
8
+ <a href="_internal_.internal.html#WritableOptions" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Writable<wbr/>Options</span></a>
9
+ </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Namespaces</h3><div class="tsd-index-list"><a href="_internal_.internal.finished.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4"></use></svg><span>finished</span></a>
10
+ <a href="_internal_.internal.pipeline.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4"></use></svg><span>pipeline</span></a>
11
+ </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Classes</h3><div class="tsd-index-list"><a href="../classes/_internal_.internal.PassThrough.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-128"></use></svg><span>Pass<wbr/>Through</span></a>
12
+ <a href="../classes/_internal_.internal.Transform.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-128"></use></svg><span>Transform</span></a>
13
+ </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Interfaces</h3><div class="tsd-index-list"><a href="../interfaces/_internal_.internal.FinishedOptions.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-256"></use></svg><span>Finished<wbr/>Options</span></a>
14
+ <a href="../interfaces/_internal_.internal.Pipe.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-256"></use></svg><span>Pipe</span></a>
15
+ <a href="../interfaces/_internal_.internal.PipelineOptions.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-256"></use></svg><span>Pipeline<wbr/>Options</span></a>
16
+ <a href="../interfaces/_internal_.internal.TransformOptions.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-256"></use></svg><span>Transform<wbr/>Options</span></a>
17
+ </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Type Aliases</h3><div class="tsd-index-list"><a href="../types/_internal_.internal.PipelineCallback.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>Pipeline<wbr/>Callback</span></a>
18
+ <a href="../types/_internal_.internal.PipelineDestination.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>Pipeline<wbr/>Destination</span></a>
19
+ <a href="../types/_internal_.internal.PipelineDestinationIterableFunction.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>Pipeline<wbr/>Destination<wbr/>Iterable<wbr/>Function</span></a>
20
+ <a href="../types/_internal_.internal.PipelineDestinationPromiseFunction.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>Pipeline<wbr/>Destination<wbr/>Promise<wbr/>Function</span></a>
21
+ <a href="../types/_internal_.internal.PipelinePromise.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>Pipeline<wbr/>Promise</span></a>
22
+ <a href="../types/_internal_.internal.PipelineSource.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>Pipeline<wbr/>Source</span></a>
23
+ <a href="../types/_internal_.internal.PipelineSourceFunction.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>Pipeline<wbr/>Source<wbr/>Function</span></a>
24
+ <a href="../types/_internal_.internal.PipelineTransform.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>Pipeline<wbr/>Transform</span></a>
25
+ <a href="../types/_internal_.internal.PipelineTransformSource.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>Pipeline<wbr/>Transform<wbr/>Source</span></a>
26
+ <a href="../types/_internal_.internal.TransformCallback.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>Transform<wbr/>Callback</span></a>
27
+ </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Variables</h3><div class="tsd-index-list"><a href="../variables/_internal_.internal.consumers.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-32"></use></svg><span>consumers</span></a>
28
+ <a href="../variables/_internal_.internal.promises.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-32"></use></svg><span>promises</span></a>
29
+ </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Functions</h3><div class="tsd-index-list"><a href="../functions/_internal_.internal.addAbortSignal.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-64"></use></svg><span>add<wbr/>Abort<wbr/>Signal</span></a>
30
+ <a href="../functions/_internal_.internal.finished-1.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-64"></use></svg><span>finished</span></a>
31
+ <a href="../functions/_internal_.internal.getDefaultHighWaterMark.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-64"></use></svg><span>get<wbr/>Default<wbr/>High<wbr/>Water<wbr/>Mark</span></a>
32
+ <a href="../functions/_internal_.internal.isErrored.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-64"></use></svg><span>is<wbr/>Errored</span></a>
33
+ <a href="../functions/_internal_.internal.isReadable.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-64"></use></svg><span>is<wbr/>Readable</span></a>
34
+ <a href="../functions/_internal_.internal.pipeline-1.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-64"></use></svg><span>pipeline</span></a>
35
+ <a href="../functions/_internal_.internal.setDefaultHighWaterMark.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-64"></use></svg><span>set<wbr/>Default<wbr/>High<wbr/>Water<wbr/>Mark</span></a>
36
+ </div></section></div></details></section></section><section class="tsd-panel-group tsd-member-group"><h2>References</h2><section class="tsd-panel tsd-member tsd-is-external"><a id="Duplex" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>Duplex</span><a href="#Duplex" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>Re-exports <a href="../classes/_internal_.Duplex.html">Duplex</a></section><section class="tsd-panel tsd-member tsd-is-external"><a id="DuplexOptions" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>Duplex<wbr/>Options</span><a href="#DuplexOptions" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>Re-exports <a href="../interfaces/_internal_.DuplexOptions.html">DuplexOptions</a></section><section class="tsd-panel tsd-member tsd-is-external"><a id="Readable" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>Readable</span><a href="#Readable" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>Re-exports <a href="../classes/_internal_.Readable.html">Readable</a></section><section class="tsd-panel tsd-member tsd-is-external"><a id="ReadableOptions" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>Readable<wbr/>Options</span><a href="#ReadableOptions" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>Re-exports <a href="../interfaces/_internal_.ReadableOptions.html">ReadableOptions</a></section><section class="tsd-panel tsd-member tsd-is-external"><a id="Stream" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>Stream</span><a href="#Stream" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>Re-exports <a href="../classes/_internal_.Stream.html">Stream</a></section><section class="tsd-panel tsd-member tsd-is-external"><a id="StreamOptions" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>Stream<wbr/>Options</span><a href="#StreamOptions" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>Re-exports <a href="../interfaces/_internal_.StreamOptions.html">StreamOptions</a></section><section class="tsd-panel tsd-member tsd-is-external"><a id="Writable" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>Writable</span><a href="#Writable" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>Re-exports <a href="../classes/_internal_.Writable.html">Writable</a></section><section class="tsd-panel tsd-member tsd-is-external"><a id="WritableOptions" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>Writable<wbr/>Options</span><a href="#WritableOptions" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>Re-exports <a href="../interfaces/_internal_.WritableOptions.html">WritableOptions</a></section></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#Duplex" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Duplex</span></a><a href="#DuplexOptions" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Duplex<wbr/>Options</span></a><a href="#Readable" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Readable</span></a><a href="#ReadableOptions" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Readable<wbr/>Options</span></a><a href="#Stream" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Stream</span></a><a href="#StreamOptions" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Stream<wbr/>Options</span></a><a href="#Writable" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Writable</span></a><a href="#WritableOptions" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-4194304"></use></svg><span>Writable<wbr/>Options</span></a></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@codebolt/codeboltjs</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -0,0 +1,2 @@
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>pipeline | @codebolt/codeboltjs</title><meta name="description" content="Documentation for @codebolt/codeboltjs"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@codebolt/codeboltjs</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@codebolt/codeboltjs</a></li><li><a href="_internal_.html">&lt;internal&gt;</a></li><li><a href="_internal_.internal.html">internal</a></li><li><a href="_internal_.internal.pipeline.html">pipeline</a></li></ul><h1>Namespace pipeline</h1></div><aside class="tsd-sources"><ul><li>Defined in node_modules/@types/node/stream.d.ts:1545</li><li>Defined in node_modules/@types/node/stream.d.ts:1550</li><li>Defined in node_modules/@types/node/stream.d.ts:1560</li><li>Defined in node_modules/@types/node/stream.d.ts:1572</li><li>Defined in node_modules/@types/node/stream.d.ts:1586</li><li>Defined in node_modules/@types/node/stream.d.ts:1602</li><li>Defined in node_modules/@types/node/stream.d.ts:1606</li><li>Defined in node_modules/@types/node/stream.d.ts:1613</li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><h3 class="tsd-index-heading uppercase">Index</h3><section class="tsd-index-section"><h3 class="tsd-index-heading">Functions</h3><div class="tsd-index-list"><a href="../functions/_internal_.internal.pipeline.__promisify__.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-64"></use></svg><span>__promisify__</span></a>
2
+ </div></section></section></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@codebolt/codeboltjs</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
package/index.d.ts ADDED
@@ -0,0 +1,254 @@
1
+ /// <reference types="node" />
2
+ import WebSocket from 'ws';
3
+ import { EventEmitter } from 'events';
4
+ /**
5
+ * @class Codebolt
6
+ * @description This class provides a unified interface to interact with various modules.
7
+ */
8
+ declare class Codebolt {
9
+ /**
10
+ * @constructor
11
+ * @description Initializes the websocket connection.
12
+ */
13
+ constructor();
14
+ /**
15
+ * @method waitForConnection
16
+ * @description Waits for the WebSocket connection to open.
17
+ * @returns {Promise<void>} A promise that resolves when the WebSocket connection is open.
18
+ */
19
+ waitForConnection(): Promise<void>;
20
+ websocket: WebSocket | null;
21
+ fs: {
22
+ createFile: (fileName: string, source: string, filePath: string) => Promise<import("@codebolt/types").CreateFileResponse>; /**
23
+ * @method waitForConnection
24
+ * @description Waits for the WebSocket connection to open.
25
+ * @returns {Promise<void>} A promise that resolves when the WebSocket connection is open.
26
+ */
27
+ createFolder: (folderName: string, folderPath: string) => Promise<import("@codebolt/types").CreateFolderResponse>;
28
+ readFile: (filePath: string) => Promise<import("@codebolt/types").ReadFileResponse>;
29
+ updateFile: (filename: string, filePath: string, newContent: string) => Promise<import("@codebolt/types").UpdateFileResponse>;
30
+ deleteFile: (filename: string, filePath: string) => Promise<import("@codebolt/types").DeleteFileResponse>;
31
+ deleteFolder: (foldername: string, folderpath: string) => Promise<import("@codebolt/types").DeleteFolderResponse>;
32
+ listFile: (folderPath: string, isRecursive?: boolean) => Promise<unknown>;
33
+ listCodeDefinitionNames: (path: string) => Promise<{
34
+ success: boolean;
35
+ result: any;
36
+ }>;
37
+ searchFiles: (path: string, regex: string, filePattern: string) => Promise<{
38
+ success: boolean;
39
+ result: any;
40
+ }>;
41
+ writeToFile: (relPath: string, newContent: string) => Promise<unknown>;
42
+ };
43
+ git: {
44
+ init: (path: string) => Promise<any>;
45
+ clone: (url: string, path: string) => Promise<any>;
46
+ pull: (path: string) => Promise<any>;
47
+ push: (path: string) => Promise<any>;
48
+ status: (path: string) => Promise<any>;
49
+ add: (path: string) => Promise<any>;
50
+ commit: (message: string) => Promise<any>;
51
+ checkout: (path: string, branch: string) => Promise<any>;
52
+ branch: (path: string, branch: string) => Promise<any>;
53
+ logs: (path: string) => Promise<any>;
54
+ diff: (commitHash: string, path: string) => Promise<any>;
55
+ };
56
+ llm: {
57
+ inference: (message: string, llmrole: string) => Promise<import("@codebolt/types").LLMResponse>;
58
+ };
59
+ browser: {
60
+ newPage: () => Promise<unknown>;
61
+ getUrl: () => Promise<import("@codebolt/types").UrlResponse>;
62
+ goToPage: (url: string) => Promise<import("@codebolt/types").GoToPageResponse>;
63
+ screenshot: () => Promise<unknown>;
64
+ getHTML: () => Promise<import("@codebolt/types").HtmlReceived>;
65
+ getMarkdown: () => Promise<import("@codebolt/types").GetMarkdownResponse>;
66
+ getPDF: () => void;
67
+ pdfToText: () => void;
68
+ getContent: () => Promise<import("@codebolt/types").GetContentResponse>;
69
+ getSnapShot: () => Promise<any>;
70
+ getBrowserInfo: () => Promise<any>;
71
+ extractText: () => Promise<import("@codebolt/types").ExtractTextResponse>;
72
+ close: () => void;
73
+ scroll: (direction: string, pixels: string) => Promise<unknown>;
74
+ type: (elementid: string, text: string) => Promise<unknown>;
75
+ click: (elementid: string) => Promise<unknown>;
76
+ enter: () => Promise<unknown>;
77
+ search: (elementid: string, query: string) => Promise<unknown>;
78
+ };
79
+ chat: {
80
+ getChatHistory: () => Promise<import("@codebolt/types").ChatMessage[]>;
81
+ onActionMessage: () => {
82
+ [EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
83
+ addListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): any;
84
+ on<K_2>(eventName: string | symbol, listener: (...args: any[]) => void): any;
85
+ once<K_3>(eventName: string | symbol, listener: (...args: any[]) => void): any;
86
+ removeListener<K_4>(eventName: string | symbol, listener: (...args: any[]) => void): any;
87
+ off<K_5>(eventName: string | symbol, listener: (...args: any[]) => void): any;
88
+ removeAllListeners(eventName?: string | symbol | undefined): any;
89
+ setMaxListeners(n: number): any;
90
+ getMaxListeners(): number;
91
+ listeners<K_6>(eventName: string | symbol): Function[];
92
+ rawListeners<K_7>(eventName: string | symbol): Function[];
93
+ emit<K_8>(eventName: string | symbol, ...args: any[]): boolean;
94
+ listenerCount<K_9>(eventName: string | symbol, listener?: Function | undefined): number;
95
+ prependListener<K_10>(eventName: string | symbol, listener: (...args: any[]) => void): any;
96
+ prependOnceListener<K_11>(eventName: string | symbol, listener: (...args: any[]) => void): any;
97
+ eventNames(): (string | symbol)[];
98
+ } | undefined;
99
+ sendMessage: (message: string, payload: any) => void;
100
+ waitforReply: (message: string) => Promise<import("@codebolt/types").UserMessage>;
101
+ processStarted: () => {
102
+ event: {
103
+ [EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
104
+ addListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): any;
105
+ on<K_2>(eventName: string | symbol, listener: (...args: any[]) => void): any;
106
+ once<K_3>(eventName: string | symbol, listener: (...args: any[]) => void): any;
107
+ removeListener<K_4>(eventName: string | symbol, listener: (...args: any[]) => void): any;
108
+ off<K_5>(eventName: string | symbol, listener: (...args: any[]) => void): any;
109
+ removeAllListeners(eventName?: string | symbol | undefined): any;
110
+ setMaxListeners(n: number): any;
111
+ getMaxListeners(): number;
112
+ listeners<K_6>(eventName: string | symbol): Function[];
113
+ rawListeners<K_7>(eventName: string | symbol): Function[];
114
+ emit<K_8>(eventName: string | symbol, ...args: any[]): boolean;
115
+ listenerCount<K_9>(eventName: string | symbol, listener?: Function | undefined): number;
116
+ prependListener<K_10>(eventName: string | symbol, listener: (...args: any[]) => void): any;
117
+ prependOnceListener<K_11>(eventName: string | symbol, listener: (...args: any[]) => void): any;
118
+ eventNames(): (string | symbol)[];
119
+ };
120
+ stopProcess: () => void;
121
+ };
122
+ stopProcess: () => void;
123
+ processFinished: () => void;
124
+ sendConfirmationRequest: (confirmationMessage: string, buttons?: string[], withFeedback?: boolean) => Promise<string>;
125
+ askQuestion: (question: string, buttons?: string[], withFeedback?: boolean) => Promise<string>;
126
+ sendNotificationEvent: (notificationMessage: string, type: "debug" | "git" | "planner" | "browser" | "editor" | "terminal" | "preview") => void;
127
+ };
128
+ terminal: {
129
+ eventEmitter: {
130
+ [EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
131
+ addListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): any;
132
+ on<K_2>(eventName: string | symbol, listener: (...args: any[]) => void): any;
133
+ once<K_3>(eventName: string | symbol, listener: (...args: any[]) => void): any;
134
+ removeListener<K_4>(eventName: string | symbol, listener: (...args: any[]) => void): any;
135
+ off<K_5>(eventName: string | symbol, listener: (...args: any[]) => void): any;
136
+ removeAllListeners(eventName?: string | symbol | undefined): any;
137
+ setMaxListeners(n: number): any;
138
+ getMaxListeners(): number;
139
+ listeners<K_6>(eventName: string | symbol): Function[];
140
+ rawListeners<K_7>(eventName: string | symbol): Function[];
141
+ emit<K_8>(eventName: string | symbol, ...args: any[]): boolean;
142
+ listenerCount<K_9>(eventName: string | symbol, listener?: Function | undefined): number;
143
+ prependListener<K_10>(eventName: string | symbol, listener: (...args: any[]) => void): any;
144
+ prependOnceListener<K_11>(eventName: string | symbol, listener: (...args: any[]) => void): any;
145
+ eventNames(): (string | symbol)[];
146
+ };
147
+ executeCommand: (command: string, returnEmptyStringOnSuccess?: boolean) => Promise<unknown>;
148
+ executeCommandRunUntilError: (command: string, executeInMain?: boolean) => Promise<import("@codebolt/types").CommandError>;
149
+ sendManualInterrupt(): Promise<import("@codebolt/types").TerminalInterruptResponse>;
150
+ executeCommandWithStream(command: string, executeInMain?: boolean): EventEmitter<[never]>;
151
+ };
152
+ codeutils: {
153
+ getJsTree: (filePath?: string | undefined) => void;
154
+ getAllFilesAsMarkDown: () => Promise<string>;
155
+ performMatch: (matcherDefinition: object, problemPatterns: any[], problems: any[]) => Promise<import("@codebolt/types").MatchProblemResponse>;
156
+ getMatcherList: () => Promise<import("@codebolt/types").GetMatcherListTreeResponse>;
157
+ matchDetail: (matcher: string) => Promise<import("@codebolt/types").getMatchDetail>;
158
+ };
159
+ docutils: {
160
+ pdf_to_text: (pdf_path: any) => Promise<string>;
161
+ };
162
+ crawler: {
163
+ start: () => void;
164
+ screenshot: () => void;
165
+ goToPage: (url: string) => void;
166
+ scroll: (direction: string) => void;
167
+ click: (id: string) => Promise<unknown>;
168
+ type: (id: string, text: string) => Promise<unknown>;
169
+ enter: () => void;
170
+ crawl: (query: string) => Promise<unknown>;
171
+ };
172
+ search: {
173
+ init: (engine?: string) => void;
174
+ search: (query: string) => Promise<string>;
175
+ get_first_link: (query: string) => Promise<string>;
176
+ };
177
+ knowledge: {};
178
+ rag: {
179
+ init: () => void;
180
+ add_file: (filename: string, file_path: string) => void;
181
+ retrieve_related_knowledge: (query: string, filename: string) => void;
182
+ };
183
+ codeparsers: {
184
+ getClassesInFile: (file: any) => void;
185
+ getFunctionsinClass: (file: any, className: any) => void;
186
+ getAstTreeInFile: (file: any, className: any) => void;
187
+ };
188
+ outputparsers: {
189
+ init: (output: any) => void;
190
+ parseErrors: (output: any) => string[];
191
+ parseWarnings: (output: any) => string[];
192
+ };
193
+ project: {
194
+ getProjectSettings: (output: any) => void;
195
+ getProjectPath: () => Promise<import("@codebolt/types").GetProjectPathResponse>;
196
+ /**
197
+ * @constructor
198
+ * @description Initializes the websocket connection.
199
+ */
200
+ getRepoMap: (message: any) => Promise<import("@codebolt/types").GetProjectPathResponse>;
201
+ runProject: () => void;
202
+ getEditorFileStatus: () => Promise<unknown>;
203
+ };
204
+ dbmemory: {
205
+ addKnowledge: (key: string, value: any) => Promise<import("@codebolt/types").MemorySetResponse>;
206
+ getKnowledge: (key: string) => Promise<import("@codebolt/types").MemoryGetResponse>;
207
+ };
208
+ cbstate: {
209
+ getApplicationState: () => Promise<import("@codebolt/types").ApplicationState>;
210
+ addToAgentState: (key: string, value: string) => Promise<import("@codebolt/types").AddToAgentStateResponse>;
211
+ getAgentState: () => Promise<import("@codebolt/types").GetAgentStateResponse>;
212
+ };
213
+ taskplaner: {
214
+ addTask: (task: string) => Promise<any>;
215
+ getTasks: () => Promise<any>;
216
+ updateTask: (task: string) => Promise<any>;
217
+ };
218
+ vectordb: {
219
+ getVector: (key: string) => Promise<import("@codebolt/types").GetVectorResponse>;
220
+ addVectorItem: (item: any) => Promise<import("@codebolt/types").AddVectorItemResponse>;
221
+ queryVectorItem: (key: string) => Promise<import("@codebolt/types").QueryVectorItemResponse>;
222
+ queryVectorItems: (items: [], dbPath: string) => Promise<import("@codebolt/types").QueryVectorItemResponse>;
223
+ };
224
+ debug: {
225
+ debug: (log: string, type: import("./modules/debug").logType) => Promise<import("@codebolt/types").DebugAddLogResponse>;
226
+ openDebugBrowser: (url: string, port: number) => Promise<import("@codebolt/types").OpenDebugBrowserResponse>;
227
+ };
228
+ tokenizer: {
229
+ addToken: (key: string) => Promise<import("@codebolt/types").AddTokenResponse>;
230
+ getToken: (key: string) => Promise<import("@codebolt/types").GetTokenResponse>;
231
+ };
232
+ chatSummary: {
233
+ summarizeAll: () => Promise<{
234
+ role: string;
235
+ content: string;
236
+ }[]>;
237
+ summarize: (messages: {
238
+ role: string;
239
+ content: string;
240
+ }[], depth: number) => Promise<{
241
+ role: string;
242
+ content: string;
243
+ }[]>;
244
+ };
245
+ MCP: {
246
+ executeTool: (toolName: string, params: any, mcpServer?: string | undefined) => Promise<any>;
247
+ getMcpTools: (tools: string[]) => Promise<any>;
248
+ getAllMCPTools: (mpcName: string) => Promise<any>;
249
+ getMCPTool: (name: string) => Promise<any>;
250
+ getEnabledMCPS: () => Promise<any>;
251
+ };
252
+ }
253
+ declare const _default: Codebolt;
254
+ export default _default;
@@ -0,0 +1,108 @@
1
+ import { GoToPageResponse, UrlResponse, GetMarkdownResponse, HtmlReceived, ExtractTextResponse, GetContentResponse } from '@codebolt/types';
2
+ /**
3
+ * A module for interacting with a browser through WebSockets.
4
+ */
5
+ declare const cbbrowser: {
6
+ /**
7
+ * Opens a new page in the browser.
8
+ */
9
+ newPage: () => Promise<unknown>;
10
+ /**
11
+ * Retrieves the current URL of the browser's active page.
12
+ * @returns {Promise<UrlResponse>} A promise that resolves with the URL.
13
+ */
14
+ getUrl: () => Promise<UrlResponse>;
15
+ /**
16
+ * Navigates to a specified URL.
17
+ * @param {string} url - The URL to navigate to.
18
+ * @returns {Promise<GoToPageResponse>} A promise that resolves when navigation is complete.
19
+ */
20
+ goToPage: (url: string) => Promise<GoToPageResponse>;
21
+ /**
22
+ * Takes a screenshot of the current page.
23
+ */
24
+ screenshot: () => Promise<unknown>;
25
+ /**
26
+ * Retrieves the HTML content of the current page.
27
+ * @returns {Promise<HtmlReceived>} A promise that resolves with the HTML content.
28
+ */
29
+ getHTML: () => Promise<HtmlReceived>;
30
+ /**
31
+ * Retrieves the Markdown content of the current page.
32
+ * @returns {Promise<GetMarkdownResponse>} A promise that resolves with the Markdown content.
33
+ */
34
+ getMarkdown: () => Promise<GetMarkdownResponse>;
35
+ /**
36
+ * Retrieves the PDF content of the current page.
37
+ *
38
+ */
39
+ getPDF: () => void;
40
+ /**
41
+ * Converts the PDF content of the current page to text.
42
+ */
43
+ pdfToText: () => void;
44
+ /**
45
+ * Retrieves the content of the current page.
46
+ * @returns {Promise<GetContentResponse>} A promise that resolves with the content.
47
+ */
48
+ getContent: () => Promise<GetContentResponse>;
49
+ /**
50
+ * Retrieves the snapshot of the current page.
51
+ * @returns {Promise<GetContentResponse>} A promise that resolves with the content.
52
+ */
53
+ getSnapShot: () => Promise<any>;
54
+ /**
55
+ * Retrieves browser info like height width scrollx scrolly of the current page.
56
+ * @returns {Promise<GetContentResponse>} A promise that resolves with the content.
57
+ */
58
+ getBrowserInfo: () => Promise<any>;
59
+ /**
60
+ * Extracts text from the current page.
61
+ * @returns {Promise<ExtractTextResponse>} A promise that resolves with the extracted text.
62
+ *
63
+ */
64
+ extractText: () => Promise<ExtractTextResponse>;
65
+ /**
66
+ * Closes the current page.
67
+ */
68
+ close: () => void;
69
+ /**
70
+ * Scrolls the current page in a specified direction by a specified number of pixels.
71
+ * @param {string} direction - The direction to scroll.
72
+ * @param {string} pixels - The number of pixels to scroll.
73
+ * @returns {Promise<any>} A promise that resolves when the scroll action is complete.
74
+ */
75
+ scroll: (direction: string, pixels: string) => Promise<unknown>;
76
+ /**
77
+ * Types text into a specified element on the page.
78
+ * @param {string} elementid - The ID of the element to type into.
79
+ * @param {string} text - The text to type.
80
+ * @returns {Promise<any>} A promise that resolves when the typing action is complete.
81
+ */
82
+ type: (elementid: string, text: string) => Promise<unknown>;
83
+ /**
84
+ * Clicks on a specified element on the page.
85
+ * @param {string} elementid - The ID of the element to click.
86
+ * @returns {Promise<any>} A promise that resolves when the click action is complete.
87
+ */
88
+ click: (elementid: string) => Promise<unknown>;
89
+ /**
90
+ * Simulates the Enter key press on the current page.
91
+ * @returns {Promise<any>} A promise that resolves when the Enter action is complete.
92
+ */
93
+ enter: () => Promise<unknown>;
94
+ /**
95
+ * Performs a search on the current page using a specified query.
96
+ * @param {string} elementid - The ID of the element to perform the search in.
97
+ * @param {string} query - The search query.
98
+ * @returns {Promise<any>} A promise that resolves with the search results.
99
+ */
100
+ search: (elementid: string, query: string) => Promise<unknown>;
101
+ };
102
+ export default cbbrowser;
103
+ /***
104
+
105
+ start_browser(objective: string, url: string, previous_command: string, browser_content: string) {
106
+ cbbrowser.newPage();
107
+ }
108
+ */