cline 1.0.0 → 1.0.2

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 (299) hide show
  1. package/bin/cline +0 -0
  2. package/bin/cline-darwin-amd64 +0 -0
  3. package/bin/cline-darwin-arm64 +0 -0
  4. package/bin/cline-host +0 -0
  5. package/bin/cline-host-darwin-amd64 +0 -0
  6. package/bin/cline-host-darwin-arm64 +0 -0
  7. package/bin/cline-host-linux-amd64 +0 -0
  8. package/bin/cline-host-linux-arm64 +0 -0
  9. package/bin/cline-linux-amd64 +0 -0
  10. package/bin/cline-linux-arm64 +0 -0
  11. package/cline-core.js +24841 -16621
  12. package/extension/package.json +12 -4
  13. package/node_modules/b4a/LICENSE +201 -0
  14. package/node_modules/b4a/README.md +153 -0
  15. package/node_modules/b4a/browser.js +563 -0
  16. package/node_modules/b4a/index.js +188 -0
  17. package/node_modules/b4a/lib/ascii.js +31 -0
  18. package/node_modules/b4a/lib/base64.js +65 -0
  19. package/node_modules/b4a/lib/hex.js +51 -0
  20. package/node_modules/b4a/lib/utf16le.js +40 -0
  21. package/node_modules/b4a/lib/utf8.js +141 -0
  22. package/node_modules/b4a/package.json +49 -0
  23. package/node_modules/b4a/react-native.js +5 -0
  24. package/node_modules/bare-events/LICENSE +201 -0
  25. package/node_modules/bare-events/README.md +25 -0
  26. package/node_modules/bare-events/global.d.ts +15 -0
  27. package/node_modules/bare-events/global.js +5 -0
  28. package/node_modules/bare-events/index.d.ts +94 -0
  29. package/node_modules/bare-events/index.js +355 -0
  30. package/node_modules/bare-events/lib/errors.js +32 -0
  31. package/node_modules/bare-events/package.json +61 -0
  32. package/node_modules/bare-events/web.d.ts +79 -0
  33. package/node_modules/bare-events/web.js +347 -0
  34. package/node_modules/bare-fs/CMakeLists.txt +13 -0
  35. package/node_modules/bare-fs/LICENSE +201 -0
  36. package/node_modules/bare-fs/README.md +29 -0
  37. package/node_modules/bare-fs/binding.c +2238 -0
  38. package/node_modules/bare-fs/binding.js +1 -0
  39. package/node_modules/bare-fs/index.d.ts +1115 -0
  40. package/node_modules/bare-fs/index.js +2330 -0
  41. package/node_modules/bare-fs/lib/constants.d.ts +49 -0
  42. package/node_modules/bare-fs/lib/constants.js +49 -0
  43. package/node_modules/bare-fs/lib/errors.d.ts +11 -0
  44. package/node_modules/bare-fs/lib/errors.js +55 -0
  45. package/node_modules/bare-fs/package.json +71 -0
  46. package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
  47. package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
  48. package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
  49. package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
  50. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  51. package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
  52. package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
  53. package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
  54. package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
  55. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  56. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  57. package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
  58. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  59. package/node_modules/bare-fs/promises.d.ts +282 -0
  60. package/node_modules/bare-fs/promises.js +90 -0
  61. package/node_modules/bare-os/CMakeLists.txt +13 -0
  62. package/node_modules/bare-os/LICENSE +201 -0
  63. package/node_modules/bare-os/README.md +11 -0
  64. package/node_modules/bare-os/binding.c +1119 -0
  65. package/node_modules/bare-os/binding.js +1 -0
  66. package/node_modules/bare-os/index.d.ts +109 -0
  67. package/node_modules/bare-os/index.js +99 -0
  68. package/node_modules/bare-os/lib/constants.js +6 -0
  69. package/node_modules/bare-os/lib/errors.js +22 -0
  70. package/node_modules/bare-os/package.json +46 -0
  71. package/node_modules/bare-os/prebuilds/android-arm/bare-os.bare +0 -0
  72. package/node_modules/bare-os/prebuilds/android-arm64/bare-os.bare +0 -0
  73. package/node_modules/bare-os/prebuilds/android-ia32/bare-os.bare +0 -0
  74. package/node_modules/bare-os/prebuilds/android-x64/bare-os.bare +0 -0
  75. package/node_modules/bare-os/prebuilds/darwin-arm64/bare-os.bare +0 -0
  76. package/node_modules/bare-os/prebuilds/darwin-x64/bare-os.bare +0 -0
  77. package/node_modules/bare-os/prebuilds/ios-arm64/bare-os.bare +0 -0
  78. package/node_modules/bare-os/prebuilds/ios-arm64-simulator/bare-os.bare +0 -0
  79. package/node_modules/bare-os/prebuilds/ios-x64-simulator/bare-os.bare +0 -0
  80. package/node_modules/bare-os/prebuilds/linux-arm64/bare-os.bare +0 -0
  81. package/node_modules/bare-os/prebuilds/linux-x64/bare-os.bare +0 -0
  82. package/node_modules/bare-os/prebuilds/win32-arm64/bare-os.bare +0 -0
  83. package/node_modules/bare-os/prebuilds/win32-x64/bare-os.bare +0 -0
  84. package/node_modules/bare-path/LICENSE +201 -0
  85. package/node_modules/bare-path/NOTICE +28 -0
  86. package/node_modules/bare-path/README.md +19 -0
  87. package/node_modules/bare-path/index.js +11 -0
  88. package/node_modules/bare-path/lib/constants.js +11 -0
  89. package/node_modules/bare-path/lib/posix.js +242 -0
  90. package/node_modules/bare-path/lib/shared.js +67 -0
  91. package/node_modules/bare-path/lib/win32.js +513 -0
  92. package/node_modules/bare-path/package.json +36 -0
  93. package/node_modules/bare-stream/LICENSE +201 -0
  94. package/node_modules/bare-stream/README.md +15 -0
  95. package/node_modules/bare-stream/global.js +8 -0
  96. package/node_modules/bare-stream/index.d.ts +237 -0
  97. package/node_modules/bare-stream/index.js +355 -0
  98. package/node_modules/bare-stream/package.json +61 -0
  99. package/node_modules/bare-stream/promises.js +3 -0
  100. package/node_modules/bare-stream/web.d.ts +73 -0
  101. package/node_modules/bare-stream/web.js +229 -0
  102. package/node_modules/bare-url/CMakeLists.txt +27 -0
  103. package/node_modules/bare-url/LICENSE +201 -0
  104. package/node_modules/bare-url/README.md +19 -0
  105. package/node_modules/bare-url/binding.c +188 -0
  106. package/node_modules/bare-url/binding.js +1 -0
  107. package/node_modules/bare-url/global.d.ts +12 -0
  108. package/node_modules/bare-url/global.js +2 -0
  109. package/node_modules/bare-url/index.d.ts +39 -0
  110. package/node_modules/bare-url/index.js +450 -0
  111. package/node_modules/bare-url/lib/errors.d.ts +8 -0
  112. package/node_modules/bare-url/lib/errors.js +38 -0
  113. package/node_modules/bare-url/lib/url-search-params.d.ts +21 -0
  114. package/node_modules/bare-url/lib/url-search-params.js +176 -0
  115. package/node_modules/bare-url/package.json +51 -0
  116. package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
  117. package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
  118. package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
  119. package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
  120. package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
  121. package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
  122. package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
  123. package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
  124. package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
  125. package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
  126. package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
  127. package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
  128. package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
  129. package/node_modules/better-sqlite3/deps/download.sh +1 -1
  130. package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +122 -81
  131. package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +45 -45
  132. package/node_modules/better-sqlite3/lib/database.js +1 -1
  133. package/node_modules/better-sqlite3/package.json +4 -7
  134. package/node_modules/better-sqlite3/src/addon.cpp +47 -0
  135. package/node_modules/better-sqlite3/src/better_sqlite3.cpp +44 -2164
  136. package/node_modules/better-sqlite3/src/objects/backup.cpp +120 -0
  137. package/node_modules/better-sqlite3/src/objects/backup.hpp +36 -0
  138. package/node_modules/better-sqlite3/src/objects/database.cpp +417 -0
  139. package/node_modules/better-sqlite3/src/objects/database.hpp +103 -0
  140. package/node_modules/better-sqlite3/src/objects/statement-iterator.cpp +113 -0
  141. package/node_modules/better-sqlite3/src/objects/statement-iterator.hpp +50 -0
  142. package/node_modules/better-sqlite3/src/objects/statement.cpp +383 -0
  143. package/node_modules/better-sqlite3/src/objects/statement.hpp +58 -0
  144. package/node_modules/better-sqlite3/src/util/bind-map.cpp +73 -0
  145. package/node_modules/better-sqlite3/src/util/binder.cpp +193 -0
  146. package/node_modules/better-sqlite3/src/util/constants.cpp +172 -0
  147. package/node_modules/better-sqlite3/src/util/custom-aggregate.cpp +121 -0
  148. package/node_modules/better-sqlite3/src/util/custom-function.cpp +59 -0
  149. package/node_modules/better-sqlite3/src/util/custom-table.cpp +409 -0
  150. package/node_modules/better-sqlite3/src/util/data-converter.cpp +17 -0
  151. package/node_modules/better-sqlite3/src/util/data.cpp +194 -0
  152. package/node_modules/better-sqlite3/src/util/helpers.cpp +109 -0
  153. package/node_modules/better-sqlite3/src/util/macros.cpp +63 -0
  154. package/node_modules/better-sqlite3/src/util/query-macros.cpp +71 -0
  155. package/node_modules/better-sqlite3/src/util/row-builder.cpp +49 -0
  156. package/node_modules/events-universal/LICENSE +201 -0
  157. package/node_modules/events-universal/README.md +17 -0
  158. package/node_modules/events-universal/bare.js +1 -0
  159. package/node_modules/events-universal/default.js +1 -0
  160. package/node_modules/events-universal/index.js +1 -0
  161. package/node_modules/events-universal/package.json +39 -0
  162. package/node_modules/events-universal/react-native.js +1 -0
  163. package/node_modules/{fs-constants → fast-fifo}/LICENSE +1 -1
  164. package/node_modules/fast-fifo/README.md +78 -0
  165. package/node_modules/fast-fifo/fixed-size.js +39 -0
  166. package/node_modules/fast-fifo/index.js +48 -0
  167. package/node_modules/fast-fifo/package.json +28 -0
  168. package/node_modules/{base64-js → streamx}/LICENSE +1 -1
  169. package/node_modules/streamx/README.md +489 -0
  170. package/node_modules/streamx/index.js +1184 -0
  171. package/node_modules/streamx/package.json +34 -0
  172. package/node_modules/tar-fs/README.md +23 -34
  173. package/node_modules/tar-fs/index.js +211 -184
  174. package/node_modules/tar-fs/package.json +27 -7
  175. package/node_modules/tar-stream/README.md +34 -19
  176. package/node_modules/tar-stream/constants.js +14 -0
  177. package/node_modules/tar-stream/extract.js +341 -192
  178. package/node_modules/tar-stream/headers.js +201 -175
  179. package/node_modules/tar-stream/pack.js +226 -194
  180. package/node_modules/tar-stream/package.json +23 -46
  181. package/node_modules/text-decoder/LICENSE +201 -0
  182. package/node_modules/text-decoder/README.md +36 -0
  183. package/node_modules/text-decoder/index.js +64 -0
  184. package/node_modules/text-decoder/lib/browser-decoder.js +17 -0
  185. package/node_modules/text-decoder/lib/pass-through-decoder.js +19 -0
  186. package/node_modules/text-decoder/lib/utf8-decoder.js +104 -0
  187. package/node_modules/text-decoder/package.json +38 -0
  188. package/package.json +2 -2
  189. package/proto/cline/account.proto +10 -8
  190. package/proto/cline/browser.proto +3 -1
  191. package/proto/cline/checkpoints.proto +5 -3
  192. package/proto/cline/commands.proto +4 -2
  193. package/proto/cline/common.proto +5 -7
  194. package/proto/cline/dictation.proto +3 -1
  195. package/proto/cline/file.proto +36 -34
  196. package/proto/cline/hooks.proto +3 -2
  197. package/proto/cline/mcp.proto +6 -4
  198. package/proto/cline/models.proto +189 -19
  199. package/proto/cline/oca_account.proto +6 -7
  200. package/proto/cline/slash.proto +3 -1
  201. package/proto/cline/state.proto +147 -292
  202. package/proto/cline/task.proto +4 -2
  203. package/proto/cline/ui.proto +25 -24
  204. package/proto/cline/web.proto +3 -1
  205. package/proto/descriptor_set.pb +0 -0
  206. package/proto/host/diff.proto +5 -4
  207. package/proto/host/env.proto +8 -7
  208. package/proto/host/testing.proto +3 -3
  209. package/proto/host/window.proto +2 -2
  210. package/proto/host/workspace.proto +24 -11
  211. package/node_modules/base64-js/README.md +0 -34
  212. package/node_modules/base64-js/base64js.min.js +0 -1
  213. package/node_modules/base64-js/index.d.ts +0 -3
  214. package/node_modules/base64-js/index.js +0 -150
  215. package/node_modules/base64-js/package.json +0 -47
  216. package/node_modules/better-sqlite3/src/better_sqlite3.hpp +0 -1036
  217. package/node_modules/bl/.travis.yml +0 -17
  218. package/node_modules/bl/BufferList.js +0 -396
  219. package/node_modules/bl/LICENSE.md +0 -13
  220. package/node_modules/bl/README.md +0 -247
  221. package/node_modules/bl/bl.js +0 -84
  222. package/node_modules/bl/package.json +0 -37
  223. package/node_modules/bl/test/convert.js +0 -21
  224. package/node_modules/bl/test/indexOf.js +0 -492
  225. package/node_modules/bl/test/isBufferList.js +0 -32
  226. package/node_modules/bl/test/test.js +0 -869
  227. package/node_modules/buffer/AUTHORS.md +0 -70
  228. package/node_modules/buffer/LICENSE +0 -21
  229. package/node_modules/buffer/README.md +0 -410
  230. package/node_modules/buffer/index.d.ts +0 -186
  231. package/node_modules/buffer/index.js +0 -1817
  232. package/node_modules/buffer/package.json +0 -96
  233. package/node_modules/chownr/LICENSE +0 -15
  234. package/node_modules/chownr/README.md +0 -3
  235. package/node_modules/chownr/chownr.js +0 -167
  236. package/node_modules/chownr/package.json +0 -29
  237. package/node_modules/fs-constants/README.md +0 -26
  238. package/node_modules/fs-constants/browser.js +0 -1
  239. package/node_modules/fs-constants/index.js +0 -1
  240. package/node_modules/fs-constants/package.json +0 -19
  241. package/node_modules/ieee754/LICENSE +0 -11
  242. package/node_modules/ieee754/README.md +0 -51
  243. package/node_modules/ieee754/index.d.ts +0 -10
  244. package/node_modules/ieee754/index.js +0 -85
  245. package/node_modules/ieee754/package.json +0 -52
  246. package/node_modules/inherits/LICENSE +0 -16
  247. package/node_modules/inherits/README.md +0 -42
  248. package/node_modules/inherits/inherits.js +0 -9
  249. package/node_modules/inherits/inherits_browser.js +0 -27
  250. package/node_modules/inherits/package.json +0 -29
  251. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  252. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  253. package/node_modules/readable-stream/LICENSE +0 -47
  254. package/node_modules/readable-stream/README.md +0 -106
  255. package/node_modules/readable-stream/errors-browser.js +0 -127
  256. package/node_modules/readable-stream/errors.js +0 -116
  257. package/node_modules/readable-stream/experimentalWarning.js +0 -17
  258. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
  259. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
  260. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
  261. package/node_modules/readable-stream/lib/_stream_transform.js +0 -190
  262. package/node_modules/readable-stream/lib/_stream_writable.js +0 -641
  263. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
  264. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
  265. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
  266. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
  267. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
  268. package/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
  269. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
  270. package/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
  271. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  272. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  273. package/node_modules/readable-stream/package.json +0 -68
  274. package/node_modules/readable-stream/readable-browser.js +0 -9
  275. package/node_modules/readable-stream/readable.js +0 -16
  276. package/node_modules/string_decoder/LICENSE +0 -48
  277. package/node_modules/string_decoder/README.md +0 -47
  278. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  279. package/node_modules/string_decoder/package.json +0 -34
  280. package/node_modules/tar-fs/.travis.yml +0 -6
  281. package/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
  282. package/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
  283. package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  284. package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  285. package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  286. package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  287. package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  288. package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  289. package/node_modules/tar-fs/test/fixtures/e/file +0 -0
  290. package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  291. package/node_modules/tar-fs/test/index.js +0 -346
  292. package/node_modules/tar-stream/sandbox.js +0 -11
  293. package/node_modules/util-deprecate/History.md +0 -16
  294. package/node_modules/util-deprecate/LICENSE +0 -24
  295. package/node_modules/util-deprecate/README.md +0 -53
  296. package/node_modules/util-deprecate/browser.js +0 -67
  297. package/node_modules/util-deprecate/node.js +0 -6
  298. package/node_modules/util-deprecate/package.json +0 -27
  299. package/test-startup.sh +0 -14
@@ -1,12 +1,13 @@
1
1
  syntax = "proto3";
2
2
 
3
3
  package host;
4
- option go_package = "github.com/cline/grpc-go/host";
5
- option java_package = "bot.cline.host.proto";
6
- option java_multiple_files = true;
7
4
 
8
5
  import "cline/common.proto";
9
6
 
7
+ option go_package = "github.com/cline/grpc-go/host";
8
+ option java_multiple_files = true;
9
+ option java_package = "bot.cline.host.proto";
10
+
10
11
  // Provides methods for diff views.
11
12
  service DiffService {
12
13
  // Open the diff view/editor.
@@ -54,7 +55,7 @@ message GetDocumentTextRequest {
54
55
  }
55
56
 
56
57
  message GetDocumentTextResponse {
57
- optional string content = 1;
58
+ optional string content = 1;
58
59
  }
59
60
 
60
61
  message ReplaceTextRequest {
@@ -1,12 +1,13 @@
1
1
  syntax = "proto3";
2
2
 
3
3
  package host;
4
- option go_package = "github.com/cline/grpc-go/host";
5
- option java_package = "bot.cline.host.proto";
6
- option java_multiple_files = true;
7
4
 
8
5
  import "cline/common.proto";
9
6
 
7
+ option go_package = "github.com/cline/grpc-go/host";
8
+ option java_multiple_files = true;
9
+ option java_package = "bot.cline.host.proto";
10
+
10
11
  // Provides methods for working with the user's environment.
11
12
  service EnvService {
12
13
  // Writes text to the system clipboard.
@@ -19,7 +20,7 @@ service EnvService {
19
20
  rpc getHostVersion(cline.EmptyRequest) returns (GetHostVersionResponse);
20
21
 
21
22
  // Returns a URI that will redirect to the host environment.
22
- // e.g. vscode://saoudrizwan.claude-dev, idea://, pycharm://, etc.
23
+ // e.g. vscode://saoudrizwan.claude-dev, idea://, pycharm://, etc.
23
24
  // If the host does not support URIs it should return empty.
24
25
  rpc getIdeRedirectUri(cline.EmptyRequest) returns (cline.String);
25
26
 
@@ -36,14 +37,14 @@ service EnvService {
36
37
 
37
38
  message GetHostVersionResponse {
38
39
  // The name of the host platform, e.g VSCode, IntelliJ Ultimate Edition, etc.
39
- optional string platform = 1;
40
+ optional string platform = 1;
40
41
  // The version of the host platform, e.g. 1.103.0 for VSCode, or 2025.1.1.1 for JetBrains IDEs.
41
42
  optional string version = 2;
42
43
  // The type of the cline host environment, e.g. 'VSCode Extension', 'Cline for JetBrains', 'CLI'
43
44
  // This is different from the platform because there are many JetBrains IDEs, but they all use the same
44
45
  // plugin.
45
46
  optional string cline_type = 3;
46
- // The version of the cline host environment, e.g. 33.2.10 for extension, or 1.0.6 for JetBrains.
47
+ // The version of the cline host environment, e.g. 33.2.10 for extension, or 1.0.6 for JetBrains.
47
48
  optional string cline_version = 4;
48
49
  }
49
50
 
@@ -57,5 +58,5 @@ message GetTelemetrySettingsResponse {
57
58
  }
58
59
 
59
60
  message TelemetrySettingsEvent {
60
- Setting is_enabled = 1;
61
+ Setting is_enabled = 1;
61
62
  }
@@ -1,17 +1,17 @@
1
1
  syntax = "proto3";
2
2
 
3
3
  package host;
4
+
4
5
  option go_package = "github.com/cline/grpc-go/host";
5
- option java_package = "bot.cline.host.proto";
6
6
  option java_multiple_files = true;
7
+ option java_package = "bot.cline.host.proto";
7
8
 
8
9
  // This is for use in integration tests to get the contents of the webview.
9
10
  service TestingService {
10
11
  rpc getWebviewHtml(GetWebviewHtmlRequest) returns (GetWebviewHtmlResponse);
11
12
  }
12
13
 
13
- message GetWebviewHtmlRequest {
14
- }
14
+ message GetWebviewHtmlRequest {}
15
15
 
16
16
  message GetWebviewHtmlResponse {
17
17
  optional string html = 1;
@@ -1,9 +1,10 @@
1
1
  syntax = "proto3";
2
2
 
3
3
  package host;
4
+
4
5
  option go_package = "github.com/cline/grpc-go/host";
5
- option java_package = "bot.cline.host.proto";
6
6
  option java_multiple_files = true;
7
+ option java_package = "bot.cline.host.proto";
7
8
 
8
9
  // Provides methods for working with IDE windows and editors.
9
10
  service WindowService {
@@ -86,7 +87,6 @@ message ShowMessageRequestOptions {
86
87
  repeated string items = 1;
87
88
  optional bool modal = 2;
88
89
  optional string detail = 3;
89
-
90
90
  }
91
91
 
92
92
  message SelectedResponse {
@@ -1,18 +1,19 @@
1
1
  syntax = "proto3";
2
2
 
3
3
  package host;
4
- option go_package = "github.com/cline/grpc-go/host";
5
- option java_package = "bot.cline.host.proto";
6
- option java_multiple_files = true;
7
4
 
8
5
  import "cline/common.proto";
9
6
 
7
+ option go_package = "github.com/cline/grpc-go/host";
8
+ option java_multiple_files = true;
9
+ option java_package = "bot.cline.host.proto";
10
+
10
11
  // Provides methods for working with workspaces/projects.
11
12
  service WorkspaceService {
12
13
  // Returns a list of the top level directories of the workspace.
13
14
  rpc getWorkspacePaths(GetWorkspacePathsRequest) returns (GetWorkspacePathsResponse);
14
15
 
15
- // Saves an open document if it's open in the editor and has unsaved changes.
16
+ // Saves an open document if it's open in the editor and has unsaved changes.
16
17
  // Returns true if the document was saved, returns false if the document was not found, or did not
17
18
  // need to be saved.
18
19
  rpc saveOpenDocumentIfDirty(SaveOpenDocumentIfDirtyRequest) returns (SaveOpenDocumentIfDirtyResponse);
@@ -24,13 +25,16 @@ service WorkspaceService {
24
25
  rpc openProblemsPanel(OpenProblemsPanelRequest) returns (OpenProblemsPanelResponse);
25
26
 
26
27
  // Opens the IDE file explorer panel and selects a file or directory.
27
- rpc openInFileExplorerPanel(OpenInFileExplorerPanelRequest) returns (OpenInFileExplorerPanelResponse);
28
+ rpc openInFileExplorerPanel(OpenInFileExplorerPanelRequest) returns (OpenInFileExplorerPanelResponse);
28
29
 
29
30
  // Opens and focuses the Cline sidebar panel in the host IDE.
30
31
  rpc openClineSidebarPanel(OpenClineSidebarPanelRequest) returns (OpenClineSidebarPanelResponse);
31
32
 
32
33
  // Opens and focuses the terminal panel.
33
34
  rpc openTerminalPanel(OpenTerminalRequest) returns (OpenTerminalResponse);
35
+
36
+ // Executes a command in a new terminal
37
+ rpc executeCommandInTerminal(ExecuteCommandInTerminalRequest) returns (ExecuteCommandInTerminalResponse);
34
38
  }
35
39
 
36
40
  message GetWorkspacePathsRequest {
@@ -50,7 +54,7 @@ message SaveOpenDocumentIfDirtyRequest {
50
54
  optional string file_path = 2;
51
55
  }
52
56
  message SaveOpenDocumentIfDirtyResponse {
53
- // Returns true if the document was saved.
57
+ // Returns true if the document was saved.
54
58
  optional bool was_saved = 1;
55
59
  }
56
60
 
@@ -64,8 +68,8 @@ message GetDiagnosticsResponse {
64
68
 
65
69
  // Request for host-side workspace search (files/folders) used by mentions autocomplete
66
70
  message SearchWorkspaceItemsRequest {
67
- string query = 1; // Search query string
68
- optional int32 limit = 2; // Optional limit for results (default decided by host)
71
+ string query = 1; // Search query string
72
+ optional int32 limit = 2; // Optional limit for results (default decided by host)
69
73
  // Optional selected type filter
70
74
  enum SearchItemType {
71
75
  FILE = 0;
@@ -77,9 +81,9 @@ message SearchWorkspaceItemsRequest {
77
81
  // Response for host-side workspace search
78
82
  message SearchWorkspaceItemsResponse {
79
83
  message SearchItem {
80
- string path = 1; // Workspace-relative path using platform separators
84
+ string path = 1; // Workspace-relative path using platform separators
81
85
  SearchWorkspaceItemsRequest.SearchItemType type = 2;
82
- optional string label = 3; // Optional display label (e.g., basename)
86
+ optional string label = 3; // Optional display label (e.g., basename)
83
87
  }
84
88
  repeated SearchItem items = 1;
85
89
  }
@@ -93,4 +97,13 @@ message OpenInFileExplorerPanelResponse {}
93
97
  message OpenClineSidebarPanelRequest {}
94
98
  message OpenClineSidebarPanelResponse {}
95
99
  message OpenTerminalRequest {}
96
- message OpenTerminalResponse {}
100
+ message OpenTerminalResponse {}
101
+
102
+ // Execute a command in the terminal
103
+ message ExecuteCommandInTerminalRequest {
104
+ string command = 1; // The command to execute
105
+ }
106
+
107
+ message ExecuteCommandInTerminalResponse {
108
+ bool success = 1; // Whether the command was successfully sent to the terminal
109
+ }
@@ -1,34 +0,0 @@
1
- base64-js
2
- =========
3
-
4
- `base64-js` does basic base64 encoding/decoding in pure JS.
5
-
6
- [![build status](https://secure.travis-ci.org/beatgammit/base64-js.png)](http://travis-ci.org/beatgammit/base64-js)
7
-
8
- Many browsers already have base64 encoding/decoding functionality, but it is for text data, not all-purpose binary data.
9
-
10
- Sometimes encoding/decoding binary data in the browser is useful, and that is what this module does.
11
-
12
- ## install
13
-
14
- With [npm](https://npmjs.org) do:
15
-
16
- `npm install base64-js` and `var base64js = require('base64-js')`
17
-
18
- For use in web browsers do:
19
-
20
- `<script src="base64js.min.js"></script>`
21
-
22
- [Get supported base64-js with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-base64-js?utm_source=npm-base64-js&utm_medium=referral&utm_campaign=readme)
23
-
24
- ## methods
25
-
26
- `base64js` has three exposed functions, `byteLength`, `toByteArray` and `fromByteArray`, which both take a single argument.
27
-
28
- * `byteLength` - Takes a base64 string and returns length of byte array
29
- * `toByteArray` - Takes a base64 string and returns a byte array
30
- * `fromByteArray` - Takes a byte array and returns a base64 string
31
-
32
- ## license
33
-
34
- MIT
@@ -1 +0,0 @@
1
- (function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?this:self:global:window,b.base64js=a()}})(function(){return function(){function b(d,e,g){function a(j,i){if(!e[j]){if(!d[j]){var f="function"==typeof require&&require;if(!i&&f)return f(j,!0);if(h)return h(j,!0);var c=new Error("Cannot find module '"+j+"'");throw c.code="MODULE_NOT_FOUND",c}var k=e[j]={exports:{}};d[j][0].call(k.exports,function(b){var c=d[j][1][b];return a(c||b)},k,k.exports,b,d,e,g)}return e[j].exports}for(var h="function"==typeof require&&require,c=0;c<g.length;c++)a(g[c]);return a}return b}()({"/":[function(a,b,c){'use strict';function d(a){var b=a.length;if(0<b%4)throw new Error("Invalid string. Length must be a multiple of 4");var c=a.indexOf("=");-1===c&&(c=b);var d=c===b?0:4-c%4;return[c,d]}function e(a,b,c){return 3*(b+c)/4-c}function f(a){var b,c,f=d(a),g=f[0],h=f[1],j=new m(e(a,g,h)),k=0,n=0<h?g-4:g;for(c=0;c<n;c+=4)b=l[a.charCodeAt(c)]<<18|l[a.charCodeAt(c+1)]<<12|l[a.charCodeAt(c+2)]<<6|l[a.charCodeAt(c+3)],j[k++]=255&b>>16,j[k++]=255&b>>8,j[k++]=255&b;return 2===h&&(b=l[a.charCodeAt(c)]<<2|l[a.charCodeAt(c+1)]>>4,j[k++]=255&b),1===h&&(b=l[a.charCodeAt(c)]<<10|l[a.charCodeAt(c+1)]<<4|l[a.charCodeAt(c+2)]>>2,j[k++]=255&b>>8,j[k++]=255&b),j}function g(a){return k[63&a>>18]+k[63&a>>12]+k[63&a>>6]+k[63&a]}function h(a,b,c){for(var d,e=[],f=b;f<c;f+=3)d=(16711680&a[f]<<16)+(65280&a[f+1]<<8)+(255&a[f+2]),e.push(g(d));return e.join("")}function j(a){for(var b,c=a.length,d=c%3,e=[],f=16383,g=0,j=c-d;g<j;g+=f)e.push(h(a,g,g+f>j?j:g+f));return 1===d?(b=a[c-1],e.push(k[b>>2]+k[63&b<<4]+"==")):2===d&&(b=(a[c-2]<<8)+a[c-1],e.push(k[b>>10]+k[63&b>>4]+k[63&b<<2]+"=")),e.join("")}c.byteLength=function(a){var b=d(a),c=b[0],e=b[1];return 3*(c+e)/4-e},c.toByteArray=f,c.fromByteArray=j;for(var k=[],l=[],m="undefined"==typeof Uint8Array?Array:Uint8Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,p=n.length;o<p;++o)k[o]=n[o],l[n.charCodeAt(o)]=o;l[45]=62,l[95]=63},{}]},{},[])("/")});
@@ -1,3 +0,0 @@
1
- export function byteLength(b64: string): number;
2
- export function toByteArray(b64: string): Uint8Array;
3
- export function fromByteArray(uint8: Uint8Array): string;
@@ -1,150 +0,0 @@
1
- 'use strict'
2
-
3
- exports.byteLength = byteLength
4
- exports.toByteArray = toByteArray
5
- exports.fromByteArray = fromByteArray
6
-
7
- var lookup = []
8
- var revLookup = []
9
- var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
10
-
11
- var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
12
- for (var i = 0, len = code.length; i < len; ++i) {
13
- lookup[i] = code[i]
14
- revLookup[code.charCodeAt(i)] = i
15
- }
16
-
17
- // Support decoding URL-safe base64 strings, as Node.js does.
18
- // See: https://en.wikipedia.org/wiki/Base64#URL_applications
19
- revLookup['-'.charCodeAt(0)] = 62
20
- revLookup['_'.charCodeAt(0)] = 63
21
-
22
- function getLens (b64) {
23
- var len = b64.length
24
-
25
- if (len % 4 > 0) {
26
- throw new Error('Invalid string. Length must be a multiple of 4')
27
- }
28
-
29
- // Trim off extra bytes after placeholder bytes are found
30
- // See: https://github.com/beatgammit/base64-js/issues/42
31
- var validLen = b64.indexOf('=')
32
- if (validLen === -1) validLen = len
33
-
34
- var placeHoldersLen = validLen === len
35
- ? 0
36
- : 4 - (validLen % 4)
37
-
38
- return [validLen, placeHoldersLen]
39
- }
40
-
41
- // base64 is 4/3 + up to two characters of the original data
42
- function byteLength (b64) {
43
- var lens = getLens(b64)
44
- var validLen = lens[0]
45
- var placeHoldersLen = lens[1]
46
- return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
47
- }
48
-
49
- function _byteLength (b64, validLen, placeHoldersLen) {
50
- return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
51
- }
52
-
53
- function toByteArray (b64) {
54
- var tmp
55
- var lens = getLens(b64)
56
- var validLen = lens[0]
57
- var placeHoldersLen = lens[1]
58
-
59
- var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
60
-
61
- var curByte = 0
62
-
63
- // if there are placeholders, only get up to the last complete 4 chars
64
- var len = placeHoldersLen > 0
65
- ? validLen - 4
66
- : validLen
67
-
68
- var i
69
- for (i = 0; i < len; i += 4) {
70
- tmp =
71
- (revLookup[b64.charCodeAt(i)] << 18) |
72
- (revLookup[b64.charCodeAt(i + 1)] << 12) |
73
- (revLookup[b64.charCodeAt(i + 2)] << 6) |
74
- revLookup[b64.charCodeAt(i + 3)]
75
- arr[curByte++] = (tmp >> 16) & 0xFF
76
- arr[curByte++] = (tmp >> 8) & 0xFF
77
- arr[curByte++] = tmp & 0xFF
78
- }
79
-
80
- if (placeHoldersLen === 2) {
81
- tmp =
82
- (revLookup[b64.charCodeAt(i)] << 2) |
83
- (revLookup[b64.charCodeAt(i + 1)] >> 4)
84
- arr[curByte++] = tmp & 0xFF
85
- }
86
-
87
- if (placeHoldersLen === 1) {
88
- tmp =
89
- (revLookup[b64.charCodeAt(i)] << 10) |
90
- (revLookup[b64.charCodeAt(i + 1)] << 4) |
91
- (revLookup[b64.charCodeAt(i + 2)] >> 2)
92
- arr[curByte++] = (tmp >> 8) & 0xFF
93
- arr[curByte++] = tmp & 0xFF
94
- }
95
-
96
- return arr
97
- }
98
-
99
- function tripletToBase64 (num) {
100
- return lookup[num >> 18 & 0x3F] +
101
- lookup[num >> 12 & 0x3F] +
102
- lookup[num >> 6 & 0x3F] +
103
- lookup[num & 0x3F]
104
- }
105
-
106
- function encodeChunk (uint8, start, end) {
107
- var tmp
108
- var output = []
109
- for (var i = start; i < end; i += 3) {
110
- tmp =
111
- ((uint8[i] << 16) & 0xFF0000) +
112
- ((uint8[i + 1] << 8) & 0xFF00) +
113
- (uint8[i + 2] & 0xFF)
114
- output.push(tripletToBase64(tmp))
115
- }
116
- return output.join('')
117
- }
118
-
119
- function fromByteArray (uint8) {
120
- var tmp
121
- var len = uint8.length
122
- var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
123
- var parts = []
124
- var maxChunkLength = 16383 // must be multiple of 3
125
-
126
- // go through the array every three bytes, we'll deal with trailing stuff later
127
- for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
128
- parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
129
- }
130
-
131
- // pad the end with zeros, but make sure to not forget the extra bytes
132
- if (extraBytes === 1) {
133
- tmp = uint8[len - 1]
134
- parts.push(
135
- lookup[tmp >> 2] +
136
- lookup[(tmp << 4) & 0x3F] +
137
- '=='
138
- )
139
- } else if (extraBytes === 2) {
140
- tmp = (uint8[len - 2] << 8) + uint8[len - 1]
141
- parts.push(
142
- lookup[tmp >> 10] +
143
- lookup[(tmp >> 4) & 0x3F] +
144
- lookup[(tmp << 2) & 0x3F] +
145
- '='
146
- )
147
- }
148
-
149
- return parts.join('')
150
- }
@@ -1,47 +0,0 @@
1
- {
2
- "name": "base64-js",
3
- "description": "Base64 encoding/decoding in pure JS",
4
- "version": "1.5.1",
5
- "author": "T. Jameson Little <t.jameson.little@gmail.com>",
6
- "typings": "index.d.ts",
7
- "bugs": {
8
- "url": "https://github.com/beatgammit/base64-js/issues"
9
- },
10
- "devDependencies": {
11
- "babel-minify": "^0.5.1",
12
- "benchmark": "^2.1.4",
13
- "browserify": "^16.3.0",
14
- "standard": "*",
15
- "tape": "4.x"
16
- },
17
- "homepage": "https://github.com/beatgammit/base64-js",
18
- "keywords": [
19
- "base64"
20
- ],
21
- "license": "MIT",
22
- "main": "index.js",
23
- "repository": {
24
- "type": "git",
25
- "url": "git://github.com/beatgammit/base64-js.git"
26
- },
27
- "scripts": {
28
- "build": "browserify -s base64js -r ./ | minify > base64js.min.js",
29
- "lint": "standard",
30
- "test": "npm run lint && npm run unit",
31
- "unit": "tape test/*.js"
32
- },
33
- "funding": [
34
- {
35
- "type": "github",
36
- "url": "https://github.com/sponsors/feross"
37
- },
38
- {
39
- "type": "patreon",
40
- "url": "https://www.patreon.com/feross"
41
- },
42
- {
43
- "type": "consulting",
44
- "url": "https://feross.org/support"
45
- }
46
- ]
47
- }