cline 1.0.0-nightly.19 → 1.0.0-nightly.20
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.
- package/bin/cline +0 -0
- package/bin/cline-darwin-amd64 +0 -0
- package/bin/cline-darwin-arm64 +0 -0
- package/bin/cline-host +0 -0
- package/bin/cline-host-darwin-amd64 +0 -0
- package/bin/cline-host-darwin-arm64 +0 -0
- package/bin/cline-host-linux-amd64 +0 -0
- package/bin/cline-host-linux-arm64 +0 -0
- package/bin/cline-linux-amd64 +0 -0
- package/bin/cline-linux-arm64 +0 -0
- package/cline-core.js +24841 -16621
- package/extension/package.json +12 -4
- package/node_modules/b4a/LICENSE +201 -0
- package/node_modules/b4a/README.md +153 -0
- package/node_modules/b4a/browser.js +563 -0
- package/node_modules/b4a/index.js +188 -0
- package/node_modules/b4a/lib/ascii.js +31 -0
- package/node_modules/b4a/lib/base64.js +65 -0
- package/node_modules/b4a/lib/hex.js +51 -0
- package/node_modules/b4a/lib/utf16le.js +40 -0
- package/node_modules/b4a/lib/utf8.js +141 -0
- package/node_modules/b4a/package.json +49 -0
- package/node_modules/b4a/react-native.js +5 -0
- package/node_modules/bare-events/LICENSE +201 -0
- package/node_modules/bare-events/README.md +25 -0
- package/node_modules/bare-events/global.d.ts +15 -0
- package/node_modules/bare-events/global.js +5 -0
- package/node_modules/bare-events/index.d.ts +94 -0
- package/node_modules/bare-events/index.js +355 -0
- package/node_modules/bare-events/lib/errors.js +32 -0
- package/node_modules/bare-events/package.json +61 -0
- package/node_modules/bare-events/web.d.ts +79 -0
- package/node_modules/bare-events/web.js +347 -0
- package/node_modules/bare-fs/CMakeLists.txt +13 -0
- package/node_modules/bare-fs/LICENSE +201 -0
- package/node_modules/bare-fs/README.md +29 -0
- package/node_modules/bare-fs/binding.c +2238 -0
- package/node_modules/bare-fs/binding.js +1 -0
- package/node_modules/bare-fs/index.d.ts +1115 -0
- package/node_modules/bare-fs/index.js +2330 -0
- package/node_modules/bare-fs/lib/constants.d.ts +49 -0
- package/node_modules/bare-fs/lib/constants.js +49 -0
- package/node_modules/bare-fs/lib/errors.d.ts +11 -0
- package/node_modules/bare-fs/lib/errors.js +55 -0
- package/node_modules/bare-fs/package.json +71 -0
- package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/promises.d.ts +282 -0
- package/node_modules/bare-fs/promises.js +90 -0
- package/node_modules/bare-os/CMakeLists.txt +13 -0
- package/node_modules/bare-os/LICENSE +201 -0
- package/node_modules/bare-os/README.md +11 -0
- package/node_modules/bare-os/binding.c +1119 -0
- package/node_modules/bare-os/binding.js +1 -0
- package/node_modules/bare-os/index.d.ts +109 -0
- package/node_modules/bare-os/index.js +99 -0
- package/node_modules/bare-os/lib/constants.js +6 -0
- package/node_modules/bare-os/lib/errors.js +22 -0
- package/node_modules/bare-os/package.json +46 -0
- package/node_modules/bare-os/prebuilds/android-arm/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/android-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/android-ia32/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/android-x64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/darwin-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/darwin-x64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/ios-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/ios-arm64-simulator/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/ios-x64-simulator/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/linux-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/linux-x64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/win32-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/win32-x64/bare-os.bare +0 -0
- package/node_modules/bare-path/LICENSE +201 -0
- package/node_modules/bare-path/NOTICE +28 -0
- package/node_modules/bare-path/README.md +19 -0
- package/node_modules/bare-path/index.js +11 -0
- package/node_modules/bare-path/lib/constants.js +11 -0
- package/node_modules/bare-path/lib/posix.js +242 -0
- package/node_modules/bare-path/lib/shared.js +67 -0
- package/node_modules/bare-path/lib/win32.js +513 -0
- package/node_modules/bare-path/package.json +36 -0
- package/node_modules/bare-stream/LICENSE +201 -0
- package/node_modules/bare-stream/README.md +15 -0
- package/node_modules/bare-stream/global.js +8 -0
- package/node_modules/bare-stream/index.d.ts +237 -0
- package/node_modules/bare-stream/index.js +355 -0
- package/node_modules/bare-stream/package.json +61 -0
- package/node_modules/bare-stream/promises.js +3 -0
- package/node_modules/bare-stream/web.d.ts +73 -0
- package/node_modules/bare-stream/web.js +229 -0
- package/node_modules/bare-url/CMakeLists.txt +27 -0
- package/node_modules/bare-url/LICENSE +201 -0
- package/node_modules/bare-url/README.md +19 -0
- package/node_modules/bare-url/binding.c +188 -0
- package/node_modules/bare-url/binding.js +1 -0
- package/node_modules/bare-url/global.d.ts +12 -0
- package/node_modules/bare-url/global.js +2 -0
- package/node_modules/bare-url/index.d.ts +39 -0
- package/node_modules/bare-url/index.js +450 -0
- package/node_modules/bare-url/lib/errors.d.ts +8 -0
- package/node_modules/bare-url/lib/errors.js +38 -0
- package/node_modules/bare-url/lib/url-search-params.d.ts +21 -0
- package/node_modules/bare-url/lib/url-search-params.js +176 -0
- package/node_modules/bare-url/package.json +51 -0
- package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
- package/node_modules/better-sqlite3/deps/download.sh +1 -1
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +122 -81
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +45 -45
- package/node_modules/better-sqlite3/lib/database.js +1 -1
- package/node_modules/better-sqlite3/package.json +4 -7
- package/node_modules/better-sqlite3/src/addon.cpp +47 -0
- package/node_modules/better-sqlite3/src/better_sqlite3.cpp +44 -2164
- package/node_modules/better-sqlite3/src/objects/backup.cpp +120 -0
- package/node_modules/better-sqlite3/src/objects/backup.hpp +36 -0
- package/node_modules/better-sqlite3/src/objects/database.cpp +417 -0
- package/node_modules/better-sqlite3/src/objects/database.hpp +103 -0
- package/node_modules/better-sqlite3/src/objects/statement-iterator.cpp +113 -0
- package/node_modules/better-sqlite3/src/objects/statement-iterator.hpp +50 -0
- package/node_modules/better-sqlite3/src/objects/statement.cpp +383 -0
- package/node_modules/better-sqlite3/src/objects/statement.hpp +58 -0
- package/node_modules/better-sqlite3/src/util/bind-map.cpp +73 -0
- package/node_modules/better-sqlite3/src/util/binder.cpp +193 -0
- package/node_modules/better-sqlite3/src/util/constants.cpp +172 -0
- package/node_modules/better-sqlite3/src/util/custom-aggregate.cpp +121 -0
- package/node_modules/better-sqlite3/src/util/custom-function.cpp +59 -0
- package/node_modules/better-sqlite3/src/util/custom-table.cpp +409 -0
- package/node_modules/better-sqlite3/src/util/data-converter.cpp +17 -0
- package/node_modules/better-sqlite3/src/util/data.cpp +194 -0
- package/node_modules/better-sqlite3/src/util/helpers.cpp +109 -0
- package/node_modules/better-sqlite3/src/util/macros.cpp +63 -0
- package/node_modules/better-sqlite3/src/util/query-macros.cpp +71 -0
- package/node_modules/better-sqlite3/src/util/row-builder.cpp +49 -0
- package/node_modules/events-universal/LICENSE +201 -0
- package/node_modules/events-universal/README.md +17 -0
- package/node_modules/events-universal/bare.js +1 -0
- package/node_modules/events-universal/default.js +1 -0
- package/node_modules/events-universal/index.js +1 -0
- package/node_modules/events-universal/package.json +39 -0
- package/node_modules/events-universal/react-native.js +1 -0
- package/node_modules/{fs-constants → fast-fifo}/LICENSE +1 -1
- package/node_modules/fast-fifo/README.md +78 -0
- package/node_modules/fast-fifo/fixed-size.js +39 -0
- package/node_modules/fast-fifo/index.js +48 -0
- package/node_modules/fast-fifo/package.json +28 -0
- package/node_modules/{base64-js → streamx}/LICENSE +1 -1
- package/node_modules/streamx/README.md +489 -0
- package/node_modules/streamx/index.js +1184 -0
- package/node_modules/streamx/package.json +34 -0
- package/node_modules/tar-fs/README.md +23 -34
- package/node_modules/tar-fs/index.js +211 -184
- package/node_modules/tar-fs/package.json +27 -7
- package/node_modules/tar-stream/README.md +34 -19
- package/node_modules/tar-stream/constants.js +14 -0
- package/node_modules/tar-stream/extract.js +341 -192
- package/node_modules/tar-stream/headers.js +201 -175
- package/node_modules/tar-stream/pack.js +226 -194
- package/node_modules/tar-stream/package.json +23 -46
- package/node_modules/text-decoder/LICENSE +201 -0
- package/node_modules/text-decoder/README.md +36 -0
- package/node_modules/text-decoder/index.js +64 -0
- package/node_modules/text-decoder/lib/browser-decoder.js +17 -0
- package/node_modules/text-decoder/lib/pass-through-decoder.js +19 -0
- package/node_modules/text-decoder/lib/utf8-decoder.js +104 -0
- package/node_modules/text-decoder/package.json +38 -0
- package/package.json +2 -2
- package/proto/cline/account.proto +10 -8
- package/proto/cline/browser.proto +3 -1
- package/proto/cline/checkpoints.proto +5 -3
- package/proto/cline/commands.proto +4 -2
- package/proto/cline/common.proto +5 -7
- package/proto/cline/dictation.proto +3 -1
- package/proto/cline/file.proto +36 -34
- package/proto/cline/hooks.proto +3 -2
- package/proto/cline/mcp.proto +6 -4
- package/proto/cline/models.proto +189 -19
- package/proto/cline/oca_account.proto +6 -7
- package/proto/cline/slash.proto +3 -1
- package/proto/cline/state.proto +147 -292
- package/proto/cline/task.proto +4 -2
- package/proto/cline/ui.proto +25 -24
- package/proto/cline/web.proto +3 -1
- package/proto/descriptor_set.pb +0 -0
- package/proto/host/diff.proto +5 -4
- package/proto/host/env.proto +8 -7
- package/proto/host/testing.proto +3 -3
- package/proto/host/window.proto +2 -2
- package/proto/host/workspace.proto +24 -11
- package/node_modules/base64-js/README.md +0 -34
- package/node_modules/base64-js/base64js.min.js +0 -1
- package/node_modules/base64-js/index.d.ts +0 -3
- package/node_modules/base64-js/index.js +0 -150
- package/node_modules/base64-js/package.json +0 -47
- package/node_modules/better-sqlite3/src/better_sqlite3.hpp +0 -1036
- package/node_modules/bl/.travis.yml +0 -17
- package/node_modules/bl/BufferList.js +0 -396
- package/node_modules/bl/LICENSE.md +0 -13
- package/node_modules/bl/README.md +0 -247
- package/node_modules/bl/bl.js +0 -84
- package/node_modules/bl/package.json +0 -37
- package/node_modules/bl/test/convert.js +0 -21
- package/node_modules/bl/test/indexOf.js +0 -492
- package/node_modules/bl/test/isBufferList.js +0 -32
- package/node_modules/bl/test/test.js +0 -869
- package/node_modules/buffer/AUTHORS.md +0 -70
- package/node_modules/buffer/LICENSE +0 -21
- package/node_modules/buffer/README.md +0 -410
- package/node_modules/buffer/index.d.ts +0 -186
- package/node_modules/buffer/index.js +0 -1817
- package/node_modules/buffer/package.json +0 -96
- package/node_modules/chownr/LICENSE +0 -15
- package/node_modules/chownr/README.md +0 -3
- package/node_modules/chownr/chownr.js +0 -167
- package/node_modules/chownr/package.json +0 -29
- package/node_modules/fs-constants/README.md +0 -26
- package/node_modules/fs-constants/browser.js +0 -1
- package/node_modules/fs-constants/index.js +0 -1
- package/node_modules/fs-constants/package.json +0 -19
- package/node_modules/ieee754/LICENSE +0 -11
- package/node_modules/ieee754/README.md +0 -51
- package/node_modules/ieee754/index.d.ts +0 -10
- package/node_modules/ieee754/index.js +0 -85
- package/node_modules/ieee754/package.json +0 -52
- package/node_modules/inherits/LICENSE +0 -16
- package/node_modules/inherits/README.md +0 -42
- package/node_modules/inherits/inherits.js +0 -9
- package/node_modules/inherits/inherits_browser.js +0 -27
- package/node_modules/inherits/package.json +0 -29
- package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/readable-stream/README.md +0 -106
- package/node_modules/readable-stream/errors-browser.js +0 -127
- package/node_modules/readable-stream/errors.js +0 -116
- package/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
- package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
- package/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
- package/node_modules/readable-stream/lib/_stream_transform.js +0 -190
- package/node_modules/readable-stream/lib/_stream_writable.js +0 -641
- package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
- package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
- package/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
- package/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/readable-stream/package.json +0 -68
- package/node_modules/readable-stream/readable-browser.js +0 -9
- package/node_modules/readable-stream/readable.js +0 -16
- package/node_modules/string_decoder/LICENSE +0 -48
- package/node_modules/string_decoder/README.md +0 -47
- package/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/node_modules/string_decoder/package.json +0 -34
- package/node_modules/tar-fs/.travis.yml +0 -6
- package/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
- package/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
- package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- package/node_modules/tar-fs/test/fixtures/e/file +0 -0
- package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- package/node_modules/tar-fs/test/index.js +0 -346
- package/node_modules/tar-stream/sandbox.js +0 -11
- package/node_modules/util-deprecate/History.md +0 -16
- package/node_modules/util-deprecate/LICENSE +0 -24
- package/node_modules/util-deprecate/README.md +0 -53
- package/node_modules/util-deprecate/browser.js +0 -67
- package/node_modules/util-deprecate/node.js +0 -6
- package/node_modules/util-deprecate/package.json +0 -27
- package/test-startup.sh +0 -14
package/proto/cline/file.proto
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
|
|
3
3
|
package cline;
|
|
4
|
+
|
|
4
5
|
import "cline/common.proto";
|
|
6
|
+
|
|
5
7
|
option go_package = "github.com/cline/grpc-go/cline";
|
|
6
|
-
option java_package = "bot.cline.proto";
|
|
7
8
|
option java_multiple_files = true;
|
|
9
|
+
option java_package = "bot.cline.proto";
|
|
8
10
|
|
|
9
11
|
// Service for file-related operations
|
|
10
12
|
service FileService {
|
|
@@ -13,10 +15,10 @@ service FileService {
|
|
|
13
15
|
|
|
14
16
|
// Opens a file in the editor
|
|
15
17
|
rpc openFile(StringRequest) returns (Empty);
|
|
16
|
-
|
|
18
|
+
|
|
17
19
|
// Opens an image in the system viewer
|
|
18
20
|
rpc openImage(StringRequest) returns (Empty);
|
|
19
|
-
|
|
21
|
+
|
|
20
22
|
// Opens a mention (file, path, git commit, problem, terminal, or URL)
|
|
21
23
|
rpc openMention(StringRequest) returns (Empty);
|
|
22
24
|
|
|
@@ -25,34 +27,34 @@ service FileService {
|
|
|
25
27
|
|
|
26
28
|
// Creates a rule file from either global or workspace rules directory
|
|
27
29
|
rpc createRuleFile(RuleFileRequest) returns (RuleFile);
|
|
28
|
-
|
|
30
|
+
|
|
29
31
|
// Search git commits in the workspace
|
|
30
32
|
rpc searchCommits(StringRequest) returns (GitCommits);
|
|
31
33
|
|
|
32
34
|
// Select images and other files from the file system and returns as data URLs & paths respectively
|
|
33
35
|
rpc selectFiles(BooleanRequest) returns (StringArrays);
|
|
34
|
-
|
|
36
|
+
|
|
35
37
|
// Convert URIs to workspace-relative paths
|
|
36
38
|
rpc getRelativePaths(RelativePathsRequest) returns (RelativePaths);
|
|
37
39
|
|
|
38
40
|
// Search for files in the workspace with fuzzy matching
|
|
39
41
|
rpc searchFiles(FileSearchRequest) returns (FileSearchResults);
|
|
40
|
-
|
|
42
|
+
|
|
41
43
|
// Toggle a Cline rule (enable or disable)
|
|
42
44
|
rpc toggleClineRule(ToggleClineRuleRequest) returns (ToggleClineRules);
|
|
43
45
|
|
|
44
46
|
// Toggle a Cursor rule (enable or disable)
|
|
45
47
|
rpc toggleCursorRule(ToggleCursorRuleRequest) returns (ClineRulesToggles);
|
|
46
|
-
|
|
48
|
+
|
|
47
49
|
// Toggle a Windsurf rule (enable or disable)
|
|
48
50
|
rpc toggleWindsurfRule(ToggleWindsurfRuleRequest) returns (ClineRulesToggles);
|
|
49
|
-
|
|
51
|
+
|
|
50
52
|
// Refreshes all rule toggles (Cline, External, and Workflows)
|
|
51
53
|
rpc refreshRules(EmptyRequest) returns (RefreshedRules);
|
|
52
54
|
|
|
53
55
|
// Opens a task's conversation history file on disk
|
|
54
56
|
rpc openDiskConversationHistory(StringRequest) returns (Empty);
|
|
55
|
-
|
|
57
|
+
|
|
56
58
|
// Toggles a workflow on or off
|
|
57
59
|
rpc toggleWorkflow(ToggleWorkflowRequest) returns (ClineRulesToggles);
|
|
58
60
|
|
|
@@ -61,7 +63,7 @@ service FileService {
|
|
|
61
63
|
|
|
62
64
|
// Open a file in editor by a relative path
|
|
63
65
|
rpc openFileRelativePath(StringRequest) returns (Empty);
|
|
64
|
-
|
|
66
|
+
|
|
65
67
|
// Opens or creates a focus chain checklist markdown file for editing
|
|
66
68
|
rpc openFocusChainFile(StringRequest) returns (Empty);
|
|
67
69
|
}
|
|
@@ -79,8 +81,8 @@ message RefreshedRules {
|
|
|
79
81
|
// Request to toggle a Windsurf rule
|
|
80
82
|
message ToggleWindsurfRuleRequest {
|
|
81
83
|
Metadata metadata = 1;
|
|
82
|
-
string rule_path = 2;
|
|
83
|
-
bool enabled = 3;
|
|
84
|
+
string rule_path = 2; // Path to the rule file
|
|
85
|
+
bool enabled = 3; // Whether to enable or disable the rule
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
// Request to convert a list of URIs to relative paths
|
|
@@ -103,25 +105,25 @@ enum FileSearchType {
|
|
|
103
105
|
// Request for file search operations
|
|
104
106
|
message FileSearchRequest {
|
|
105
107
|
Metadata metadata = 1;
|
|
106
|
-
string query = 2;
|
|
107
|
-
optional string mentions_request_id = 3;
|
|
108
|
-
optional int32 limit = 4;
|
|
109
|
-
optional FileSearchType selected_type = 5;
|
|
110
|
-
optional string workspace_hint = 6;
|
|
108
|
+
string query = 2; // Search query string
|
|
109
|
+
optional string mentions_request_id = 3; // Optional request ID for tracking requests
|
|
110
|
+
optional int32 limit = 4; // Optional limit for results (default: 20)
|
|
111
|
+
optional FileSearchType selected_type = 5; // Optional selected type filter
|
|
112
|
+
optional string workspace_hint = 6; // Optional workspace name to search in
|
|
111
113
|
}
|
|
112
114
|
|
|
113
115
|
// Result for file search operations
|
|
114
116
|
message FileSearchResults {
|
|
115
|
-
repeated FileInfo results = 1;
|
|
116
|
-
optional string mentions_request_id = 2;
|
|
117
|
+
repeated FileInfo results = 1; // Array of file/folder results
|
|
118
|
+
optional string mentions_request_id = 2; // Echo of the request ID for tracking
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
// File information structure for search results
|
|
120
122
|
message FileInfo {
|
|
121
|
-
string path = 1;
|
|
122
|
-
string type = 2;
|
|
123
|
-
optional string label = 3;
|
|
124
|
-
optional string workspace_name = 4;
|
|
123
|
+
string path = 1; // Relative path from workspace root
|
|
124
|
+
string type = 2; // "file" or "folder"
|
|
125
|
+
optional string label = 3; // Display name (usually basename)
|
|
126
|
+
optional string workspace_name = 4; // Workspace this result came from
|
|
125
127
|
}
|
|
126
128
|
|
|
127
129
|
// Response for searchCommits
|
|
@@ -141,25 +143,25 @@ message GitCommit {
|
|
|
141
143
|
// Unified request for all rule file operations
|
|
142
144
|
message RuleFileRequest {
|
|
143
145
|
Metadata metadata = 1;
|
|
144
|
-
bool is_global = 2;
|
|
146
|
+
bool is_global = 2; // Common field for all operations
|
|
145
147
|
optional string rule_path = 3; // Path field for deleteRuleFile (optional)
|
|
146
|
-
optional string filename = 4;
|
|
147
|
-
optional string type = 5;
|
|
148
|
+
optional string filename = 4; // Filename field for createRuleFile (optional)
|
|
149
|
+
optional string type = 5; // Type of the file to create (optional)
|
|
148
150
|
}
|
|
149
151
|
|
|
150
152
|
// Result for rule file operations with meaningful data only
|
|
151
153
|
message RuleFile {
|
|
152
|
-
string file_path = 1;
|
|
153
|
-
string display_name = 2;
|
|
154
|
-
bool already_exists = 3;
|
|
154
|
+
string file_path = 1; // Path to the rule file
|
|
155
|
+
string display_name = 2; // Filename for display purposes
|
|
156
|
+
bool already_exists = 3; // For createRuleFile, indicates if file already existed
|
|
155
157
|
}
|
|
156
158
|
|
|
157
159
|
// Request to toggle a Cline rule
|
|
158
160
|
message ToggleClineRuleRequest {
|
|
159
161
|
Metadata metadata = 1;
|
|
160
|
-
bool is_global = 2;
|
|
161
|
-
string rule_path = 3;
|
|
162
|
-
bool enabled = 4;
|
|
162
|
+
bool is_global = 2; // Whether this is a global rule or workspace rule
|
|
163
|
+
string rule_path = 3; // Path to the rule file
|
|
164
|
+
bool enabled = 4; // Whether to enable or disable the rule
|
|
163
165
|
}
|
|
164
166
|
|
|
165
167
|
// Maps from filepath to enabled/disabled status, matching app's ClineRulesToggles type
|
|
@@ -176,8 +178,8 @@ message ToggleClineRules {
|
|
|
176
178
|
// Request to toggle a Cursor rule
|
|
177
179
|
message ToggleCursorRuleRequest {
|
|
178
180
|
Metadata metadata = 1;
|
|
179
|
-
string rule_path = 2;
|
|
180
|
-
bool enabled = 3;
|
|
181
|
+
string rule_path = 2; // Path to the rule file
|
|
182
|
+
bool enabled = 3; // Whether to enable or disable the rule
|
|
181
183
|
}
|
|
182
184
|
|
|
183
185
|
// Request to toggle a workflow on or off
|
package/proto/cline/hooks.proto
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
|
|
3
3
|
package cline;
|
|
4
|
+
|
|
4
5
|
option go_package = "github.com/cline/grpc-go/cline";
|
|
5
|
-
option java_package = "bot.cline.proto";
|
|
6
6
|
option java_multiple_files = true;
|
|
7
|
+
option java_package = "bot.cline.proto";
|
|
7
8
|
|
|
8
9
|
// Input message for all hooks
|
|
9
10
|
message HookInput {
|
|
@@ -28,7 +29,7 @@ message HookInput {
|
|
|
28
29
|
// Output message for all hooks
|
|
29
30
|
message HookOutput {
|
|
30
31
|
string context_modification = 1;
|
|
31
|
-
bool
|
|
32
|
+
bool cancel = 2;
|
|
32
33
|
string error_message = 3;
|
|
33
34
|
}
|
|
34
35
|
|
package/proto/cline/mcp.proto
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
|
|
3
3
|
package cline;
|
|
4
|
+
|
|
4
5
|
import "cline/common.proto";
|
|
6
|
+
|
|
5
7
|
option go_package = "github.com/cline/grpc-go/cline";
|
|
6
|
-
option java_package = "bot.cline.proto";
|
|
7
8
|
option java_multiple_files = true;
|
|
9
|
+
option java_package = "bot.cline.proto";
|
|
8
10
|
|
|
9
11
|
service McpService {
|
|
10
12
|
rpc toggleMcpServer(ToggleMcpServerRequest) returns (McpServers);
|
|
@@ -16,11 +18,11 @@ service McpService {
|
|
|
16
18
|
rpc toggleToolAutoApprove(ToggleToolAutoApproveRequest) returns (McpServers);
|
|
17
19
|
rpc refreshMcpMarketplace(EmptyRequest) returns (McpMarketplaceCatalog);
|
|
18
20
|
rpc openMcpSettings(EmptyRequest) returns (Empty);
|
|
19
|
-
|
|
21
|
+
|
|
20
22
|
// Subscribe to MCP marketplace catalog updates
|
|
21
23
|
rpc subscribeToMcpMarketplaceCatalog(EmptyRequest) returns (stream McpMarketplaceCatalog);
|
|
22
24
|
rpc getLatestMcpServers(Empty) returns (McpServers);
|
|
23
|
-
|
|
25
|
+
|
|
24
26
|
// Subscribe to MCP server updates
|
|
25
27
|
rpc subscribeToMcpServers(EmptyRequest) returns (stream McpServers);
|
|
26
28
|
}
|
|
@@ -72,7 +74,7 @@ message McpResourceTemplate {
|
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
enum McpServerStatus {
|
|
75
|
-
// Protobuf enums (in proto3) must have a zero value defined, which serves as the default if the field isn't explicitly set.
|
|
77
|
+
// Protobuf enums (in proto3) must have a zero value defined, which serves as the default if the field isn't explicitly set.
|
|
76
78
|
// To align with the required nature of the TypeScript type and avoid an unnecessary UNSPECIFIED state, we map one of the existing statuses to this zero value.
|
|
77
79
|
MCP_SERVER_STATUS_DISCONNECTED = 0; // default
|
|
78
80
|
MCP_SERVER_STATUS_CONNECTED = 1;
|
package/proto/cline/models.proto
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
|
|
3
3
|
package cline;
|
|
4
|
+
|
|
4
5
|
import "cline/common.proto";
|
|
5
6
|
import "google/protobuf/field_mask.proto";
|
|
7
|
+
|
|
6
8
|
option go_package = "github.com/cline/grpc-go/cline";
|
|
7
|
-
option java_package = "bot.cline.proto";
|
|
8
9
|
option java_multiple_files = true;
|
|
10
|
+
option java_package = "bot.cline.proto";
|
|
9
11
|
|
|
10
12
|
// Service for model-related operations
|
|
11
13
|
service ModelsService {
|
|
@@ -16,25 +18,27 @@ service ModelsService {
|
|
|
16
18
|
// Fetches available models from VS Code LM API
|
|
17
19
|
rpc getVsCodeLmModels(EmptyRequest) returns (VsCodeLmModelsArray);
|
|
18
20
|
// Refreshes and returns OpenRouter models
|
|
19
|
-
rpc
|
|
21
|
+
rpc refreshOpenRouterModelsRpc(EmptyRequest) returns (OpenRouterCompatibleModelInfo);
|
|
20
22
|
// Refreshes and returns Hugging Face models
|
|
21
23
|
rpc refreshHuggingFaceModels(EmptyRequest) returns (OpenRouterCompatibleModelInfo);
|
|
22
24
|
// Refreshes and returns OpenAI models
|
|
23
25
|
rpc refreshOpenAiModels(OpenAiModelsRequest) returns (StringArray);
|
|
24
26
|
// Refreshes and returns Vercel AI Gateway models
|
|
25
|
-
rpc
|
|
27
|
+
rpc refreshVercelAiGatewayModelsRpc(EmptyRequest) returns (OpenRouterCompatibleModelInfo);
|
|
26
28
|
// Refreshes and returns Requesty models
|
|
27
29
|
rpc refreshRequestyModels(EmptyRequest) returns (OpenRouterCompatibleModelInfo);
|
|
28
30
|
// Subscribe to OpenRouter models updates
|
|
29
31
|
rpc subscribeToOpenRouterModels(EmptyRequest) returns (stream OpenRouterCompatibleModelInfo);
|
|
30
|
-
// Updates API configuration
|
|
32
|
+
// Updates API configuration (legacy - uses combined configuration)
|
|
31
33
|
rpc updateApiConfigurationProto(UpdateApiConfigurationRequest) returns (Empty);
|
|
34
|
+
// Updates API configuration (new - uses separate options and secrets)
|
|
35
|
+
rpc updateApiConfiguration(UpdateApiConfigurationRequestNew) returns (Empty);
|
|
32
36
|
// Updates API configuration with partial values (only updates fields that are explicitly set)
|
|
33
37
|
rpc updateApiConfigurationPartial(UpdateApiConfigurationPartialRequest) returns (Empty);
|
|
34
38
|
// Refreshes and returns Groq models
|
|
35
|
-
rpc
|
|
39
|
+
rpc refreshGroqModelsRpc(EmptyRequest) returns (OpenRouterCompatibleModelInfo);
|
|
36
40
|
// Refreshes and returns Baseten models
|
|
37
|
-
rpc
|
|
41
|
+
rpc refreshBasetenModelsRpc(EmptyRequest) returns (OpenRouterCompatibleModelInfo);
|
|
38
42
|
// Fetches available models from SAP AI Core
|
|
39
43
|
rpc getSapAiCoreModels(SapAiCoreModelsRequest) returns (SapAiCoreModelsResponse);
|
|
40
44
|
// Fetches available models from OCA
|
|
@@ -56,15 +60,15 @@ message LanguageModelChatSelector {
|
|
|
56
60
|
|
|
57
61
|
// Price tier for tiered pricing models
|
|
58
62
|
message PriceTier {
|
|
59
|
-
int64 token_limit = 1;
|
|
60
|
-
double price = 2;
|
|
63
|
+
int64 token_limit = 1; // Upper limit (inclusive) of input tokens for this price
|
|
64
|
+
double price = 2; // Price per million tokens for this tier
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
// Thinking configuration for models that support thinking/reasoning
|
|
64
68
|
message ThinkingConfig {
|
|
65
|
-
optional int64 max_budget = 1;
|
|
66
|
-
optional double output_price = 2;
|
|
67
|
-
repeated PriceTier output_price_tiers = 3;
|
|
69
|
+
optional int64 max_budget = 1; // Max allowed thinking budget tokens
|
|
70
|
+
optional double output_price = 2; // Output price per million tokens when budget > 0
|
|
71
|
+
repeated PriceTier output_price_tiers = 3; // Optional: Tiered output price when budget > 0
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
// Model tier for tiered pricing structures
|
|
@@ -120,35 +124,199 @@ message SapAiCoreModelDeployment {
|
|
|
120
124
|
string deployment_id = 2;
|
|
121
125
|
}
|
|
122
126
|
|
|
123
|
-
|
|
124
127
|
// Response for SAP AI Core models with orchestration availability
|
|
125
128
|
message SapAiCoreModelsResponse {
|
|
126
129
|
repeated SapAiCoreModelDeployment deployments = 1;
|
|
127
130
|
bool orchestration_available = 2;
|
|
128
131
|
}
|
|
129
132
|
|
|
130
|
-
//
|
|
133
|
+
// API secrets (credentials, API keys)
|
|
134
|
+
message ModelsApiSecrets {
|
|
135
|
+
optional string api_key = 1;
|
|
136
|
+
optional string cline_api_key = 2;
|
|
137
|
+
optional string lite_llm_api_key = 3;
|
|
138
|
+
optional string open_router_api_key = 4;
|
|
139
|
+
optional string aws_access_key = 5;
|
|
140
|
+
optional string aws_secret_key = 6;
|
|
141
|
+
optional string aws_session_token = 7;
|
|
142
|
+
optional string aws_bedrock_api_key = 8;
|
|
143
|
+
optional string open_ai_api_key = 9;
|
|
144
|
+
optional string ollama_api_key = 10;
|
|
145
|
+
optional string gemini_api_key = 11;
|
|
146
|
+
optional string open_ai_native_api_key = 12;
|
|
147
|
+
optional string deep_seek_api_key = 13;
|
|
148
|
+
optional string requesty_api_key = 14;
|
|
149
|
+
optional string together_api_key = 15;
|
|
150
|
+
optional string fireworks_api_key = 16;
|
|
151
|
+
optional string qwen_api_key = 17;
|
|
152
|
+
optional string doubao_api_key = 18;
|
|
153
|
+
optional string mistral_api_key = 19;
|
|
154
|
+
optional string nebius_api_key = 20;
|
|
155
|
+
optional string asksage_api_key = 21;
|
|
156
|
+
optional string xai_api_key = 22;
|
|
157
|
+
optional string sambanova_api_key = 23;
|
|
158
|
+
optional string cerebras_api_key = 24;
|
|
159
|
+
optional string sap_ai_core_client_id = 25;
|
|
160
|
+
optional string sap_ai_core_client_secret = 26;
|
|
161
|
+
optional string moonshot_api_key = 27;
|
|
162
|
+
optional string cline_account_id = 28;
|
|
163
|
+
optional string groq_api_key = 29;
|
|
164
|
+
optional string hugging_face_api_key = 30;
|
|
165
|
+
optional string huawei_cloud_maas_api_key = 31;
|
|
166
|
+
optional string baseten_api_key = 32;
|
|
167
|
+
optional string zai_api_key = 33;
|
|
168
|
+
optional string vercel_ai_gateway_api_key = 34;
|
|
169
|
+
optional string dify_api_key = 35;
|
|
170
|
+
optional string oca_api_key = 36;
|
|
171
|
+
optional string oca_refresh_token = 37;
|
|
172
|
+
optional string minimax_api_key = 38;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// API configuration options (non-secret settings)
|
|
176
|
+
message ModelsApiOptions {
|
|
177
|
+
// Global configuration fields (not mode-specific)
|
|
178
|
+
optional string ulid = 1;
|
|
179
|
+
optional string lite_llm_base_url = 2;
|
|
180
|
+
optional bool lite_llm_use_prompt_cache = 3;
|
|
181
|
+
map<string, string> open_ai_headers = 4;
|
|
182
|
+
optional string anthropic_base_url = 5;
|
|
183
|
+
optional string open_router_provider_sorting = 6;
|
|
184
|
+
optional string aws_region = 7;
|
|
185
|
+
optional bool aws_use_cross_region_inference = 8;
|
|
186
|
+
optional bool aws_bedrock_use_prompt_cache = 9;
|
|
187
|
+
optional bool aws_use_profile = 10;
|
|
188
|
+
optional string aws_profile = 11;
|
|
189
|
+
optional string aws_bedrock_endpoint = 12;
|
|
190
|
+
optional string claude_code_path = 13;
|
|
191
|
+
optional string vertex_project_id = 14;
|
|
192
|
+
optional string vertex_region = 15;
|
|
193
|
+
optional string open_ai_base_url = 16;
|
|
194
|
+
optional string ollama_base_url = 17;
|
|
195
|
+
optional string ollama_api_options_ctx_num = 18;
|
|
196
|
+
optional string lm_studio_base_url = 19;
|
|
197
|
+
optional string gemini_base_url = 20;
|
|
198
|
+
optional string requesty_base_url = 21;
|
|
199
|
+
optional int64 fireworks_model_max_completion_tokens = 22;
|
|
200
|
+
optional int64 fireworks_model_max_tokens = 23;
|
|
201
|
+
optional string azure_api_version = 24;
|
|
202
|
+
optional string qwen_api_line = 25;
|
|
203
|
+
optional string asksage_api_url = 26;
|
|
204
|
+
optional int64 request_timeout_ms = 27;
|
|
205
|
+
optional string sap_ai_resource_group = 28;
|
|
206
|
+
optional string sap_ai_core_token_url = 29;
|
|
207
|
+
optional string sap_ai_core_base_url = 30;
|
|
208
|
+
optional bool sap_ai_core_use_orchestration_mode = 31;
|
|
209
|
+
optional string moonshot_api_line = 32;
|
|
210
|
+
optional string aws_authentication = 33;
|
|
211
|
+
optional string zai_api_line = 34;
|
|
212
|
+
optional string lm_studio_max_tokens = 35;
|
|
213
|
+
optional string qwen_code_oauth_path = 36;
|
|
214
|
+
optional string dify_base_url = 37;
|
|
215
|
+
optional string oca_base_url = 38;
|
|
216
|
+
optional string oca_mode = 39;
|
|
217
|
+
optional bool aws_use_global_inference = 40;
|
|
218
|
+
optional string minimax_api_line = 41;
|
|
219
|
+
|
|
220
|
+
// Plan mode configurations
|
|
221
|
+
optional ApiProvider plan_mode_api_provider = 100;
|
|
222
|
+
optional string plan_mode_api_model_id = 101;
|
|
223
|
+
optional int64 plan_mode_thinking_budget_tokens = 102;
|
|
224
|
+
optional string plan_mode_reasoning_effort = 103;
|
|
225
|
+
optional LanguageModelChatSelector plan_mode_vs_code_lm_model_selector = 104;
|
|
226
|
+
optional bool plan_mode_aws_bedrock_custom_selected = 105;
|
|
227
|
+
optional string plan_mode_aws_bedrock_custom_model_base_id = 106;
|
|
228
|
+
optional string plan_mode_open_router_model_id = 107;
|
|
229
|
+
optional OpenRouterModelInfo plan_mode_open_router_model_info = 108;
|
|
230
|
+
optional string plan_mode_open_ai_model_id = 109;
|
|
231
|
+
optional OpenAiCompatibleModelInfo plan_mode_open_ai_model_info = 110;
|
|
232
|
+
optional string plan_mode_ollama_model_id = 111;
|
|
233
|
+
optional string plan_mode_lm_studio_model_id = 112;
|
|
234
|
+
optional string plan_mode_lite_llm_model_id = 113;
|
|
235
|
+
optional LiteLLMModelInfo plan_mode_lite_llm_model_info = 114;
|
|
236
|
+
optional string plan_mode_requesty_model_id = 115;
|
|
237
|
+
optional OpenRouterModelInfo plan_mode_requesty_model_info = 116;
|
|
238
|
+
optional string plan_mode_together_model_id = 117;
|
|
239
|
+
optional string plan_mode_fireworks_model_id = 118;
|
|
240
|
+
optional string plan_mode_sap_ai_core_model_id = 119;
|
|
241
|
+
optional string plan_mode_sap_ai_core_deployment_id = 120;
|
|
242
|
+
optional string plan_mode_groq_model_id = 121;
|
|
243
|
+
optional OpenRouterModelInfo plan_mode_groq_model_info = 122;
|
|
244
|
+
optional string plan_mode_hugging_face_model_id = 123;
|
|
245
|
+
optional OpenRouterModelInfo plan_mode_hugging_face_model_info = 124;
|
|
246
|
+
optional string plan_mode_huawei_cloud_maas_model_id = 125;
|
|
247
|
+
optional OpenRouterModelInfo plan_mode_huawei_cloud_maas_model_info = 126;
|
|
248
|
+
optional string plan_mode_baseten_model_id = 127;
|
|
249
|
+
optional OpenRouterModelInfo plan_mode_baseten_model_info = 128;
|
|
250
|
+
optional string plan_mode_vercel_ai_gateway_model_id = 129;
|
|
251
|
+
optional OpenRouterModelInfo plan_mode_vercel_ai_gateway_model_info = 130;
|
|
252
|
+
optional string plan_mode_oca_model_id = 131;
|
|
253
|
+
optional OcaModelInfo plan_mode_oca_model_info = 132;
|
|
254
|
+
|
|
255
|
+
// Act mode configurations
|
|
256
|
+
optional ApiProvider act_mode_api_provider = 200;
|
|
257
|
+
optional string act_mode_api_model_id = 201;
|
|
258
|
+
optional int64 act_mode_thinking_budget_tokens = 202;
|
|
259
|
+
optional string act_mode_reasoning_effort = 203;
|
|
260
|
+
optional LanguageModelChatSelector act_mode_vs_code_lm_model_selector = 204;
|
|
261
|
+
optional bool act_mode_aws_bedrock_custom_selected = 205;
|
|
262
|
+
optional string act_mode_aws_bedrock_custom_model_base_id = 206;
|
|
263
|
+
optional string act_mode_open_router_model_id = 207;
|
|
264
|
+
optional OpenRouterModelInfo act_mode_open_router_model_info = 208;
|
|
265
|
+
optional string act_mode_open_ai_model_id = 209;
|
|
266
|
+
optional OpenAiCompatibleModelInfo act_mode_open_ai_model_info = 210;
|
|
267
|
+
optional string act_mode_ollama_model_id = 211;
|
|
268
|
+
optional string act_mode_lm_studio_model_id = 212;
|
|
269
|
+
optional string act_mode_lite_llm_model_id = 213;
|
|
270
|
+
optional LiteLLMModelInfo act_mode_lite_llm_model_info = 214;
|
|
271
|
+
optional string act_mode_requesty_model_id = 215;
|
|
272
|
+
optional OpenRouterModelInfo act_mode_requesty_model_info = 216;
|
|
273
|
+
optional string act_mode_together_model_id = 217;
|
|
274
|
+
optional string act_mode_fireworks_model_id = 218;
|
|
275
|
+
optional string act_mode_sap_ai_core_model_id = 219;
|
|
276
|
+
optional string act_mode_sap_ai_core_deployment_id = 220;
|
|
277
|
+
optional string act_mode_groq_model_id = 221;
|
|
278
|
+
optional OpenRouterModelInfo act_mode_groq_model_info = 222;
|
|
279
|
+
optional string act_mode_hugging_face_model_id = 223;
|
|
280
|
+
optional OpenRouterModelInfo act_mode_hugging_face_model_info = 224;
|
|
281
|
+
optional string act_mode_huawei_cloud_maas_model_id = 225;
|
|
282
|
+
optional OpenRouterModelInfo act_mode_huawei_cloud_maas_model_info = 226;
|
|
283
|
+
optional string act_mode_baseten_model_id = 227;
|
|
284
|
+
optional OpenRouterModelInfo act_mode_baseten_model_info = 228;
|
|
285
|
+
optional string act_mode_vercel_ai_gateway_model_id = 229;
|
|
286
|
+
optional OpenRouterModelInfo act_mode_vercel_ai_gateway_model_info = 230;
|
|
287
|
+
optional string act_mode_oca_model_id = 231;
|
|
288
|
+
optional OcaModelInfo act_mode_oca_model_info = 232;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
// Request for updating API configuration (legacy - uses combined configuration)
|
|
131
292
|
message UpdateApiConfigurationRequest {
|
|
132
293
|
Metadata metadata = 1;
|
|
133
294
|
ModelsApiConfiguration api_configuration = 2;
|
|
134
295
|
}
|
|
135
296
|
|
|
297
|
+
// Request for updating API configuration (new - uses separate options and secrets)
|
|
298
|
+
message UpdateApiConfigurationRequestNew {
|
|
299
|
+
Metadata metadata = 1;
|
|
300
|
+
ModelsApiOptions options = 2;
|
|
301
|
+
ModelsApiSecrets secrets = 3;
|
|
302
|
+
}
|
|
303
|
+
|
|
136
304
|
// Request for partially updating API configuration using FieldMask
|
|
137
305
|
// Only fields specified in update_mask will be updated from api_configuration
|
|
138
306
|
message UpdateApiConfigurationPartialRequest {
|
|
139
307
|
Metadata metadata = 1;
|
|
140
|
-
|
|
308
|
+
|
|
141
309
|
// The API configuration with values to update.
|
|
142
310
|
// Only fields listed in update_mask will be applied from this configuration.
|
|
143
311
|
ModelsApiConfiguration api_configuration = 2;
|
|
144
|
-
|
|
312
|
+
|
|
145
313
|
// Mask specifying which top-level fields from api_configuration to update.
|
|
146
314
|
// Field names should use camelCase (e.g., "apiKey", "planModeApiProvider").
|
|
147
315
|
// If a field is in the mask but not set in api_configuration, it will be cleared (set to undefined).
|
|
148
316
|
google.protobuf.FieldMask update_mask = 3;
|
|
149
317
|
}
|
|
150
318
|
|
|
151
|
-
|
|
319
|
+
// Model info for OCA (OpenAI-compatible) models exposed by the OCA provider
|
|
152
320
|
message OcaModelInfo {
|
|
153
321
|
// Maximum completion tokens per request supported by this model
|
|
154
322
|
optional int64 max_tokens = 1;
|
|
@@ -182,7 +350,7 @@ message OcaModelInfo {
|
|
|
182
350
|
string model_name = 17;
|
|
183
351
|
}
|
|
184
352
|
|
|
185
|
-
|
|
353
|
+
// Aggregated OCA model catalog keyed by model identifier
|
|
186
354
|
message OcaCompatibleModelInfo {
|
|
187
355
|
// key: canonical model id as reported by OCA (e.g., "openai/gpt-4o-mini")
|
|
188
356
|
// value: OcaModelInfo describing that model
|
|
@@ -228,6 +396,7 @@ enum ApiProvider {
|
|
|
228
396
|
QWEN_CODE = 33;
|
|
229
397
|
DIFY = 34;
|
|
230
398
|
OCA = 35;
|
|
399
|
+
MINIMAX = 36;
|
|
231
400
|
}
|
|
232
401
|
|
|
233
402
|
// Model info for OpenAI-compatible models
|
|
@@ -345,6 +514,8 @@ message ModelsApiConfiguration {
|
|
|
345
514
|
optional string oca_refresh_token = 75;
|
|
346
515
|
optional string oca_mode = 76;
|
|
347
516
|
optional bool aws_use_global_inference = 77;
|
|
517
|
+
optional string minimax_api_key = 78;
|
|
518
|
+
optional string minimax_api_line = 79;
|
|
348
519
|
|
|
349
520
|
// Plan mode configurations
|
|
350
521
|
optional ApiProvider plan_mode_api_provider = 100;
|
|
@@ -373,7 +544,7 @@ message ModelsApiConfiguration {
|
|
|
373
544
|
optional string plan_mode_hugging_face_model_id = 123;
|
|
374
545
|
optional OpenRouterModelInfo plan_mode_hugging_face_model_info = 124;
|
|
375
546
|
optional string plan_mode_huawei_cloud_maas_model_id = 125;
|
|
376
|
-
optional OpenRouterModelInfo plan_mode_huawei_cloud_maas_model_info = 126;
|
|
547
|
+
optional OpenRouterModelInfo plan_mode_huawei_cloud_maas_model_info = 126;
|
|
377
548
|
optional string plan_mode_baseten_model_id = 127;
|
|
378
549
|
optional OpenRouterModelInfo plan_mode_baseten_model_info = 128;
|
|
379
550
|
optional string plan_mode_vercel_ai_gateway_model_id = 129;
|
|
@@ -381,7 +552,6 @@ message ModelsApiConfiguration {
|
|
|
381
552
|
optional string plan_mode_oca_model_id = 131;
|
|
382
553
|
optional OcaModelInfo plan_mode_oca_model_info = 132;
|
|
383
554
|
|
|
384
|
-
|
|
385
555
|
// Act mode configurations
|
|
386
556
|
optional ApiProvider act_mode_api_provider = 200;
|
|
387
557
|
optional string act_mode_api_model_id = 201;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
|
|
3
3
|
package cline;
|
|
4
|
+
|
|
4
5
|
import "cline/common.proto";
|
|
6
|
+
|
|
5
7
|
option go_package = "github.com/cline/grpc-go/cline";
|
|
6
|
-
option java_package = "bot.cline.proto";
|
|
7
8
|
option java_multiple_files = true;
|
|
9
|
+
option java_package = "bot.cline.proto";
|
|
8
10
|
|
|
9
11
|
// Service for account-related operations
|
|
10
12
|
service OcaAccountService {
|
|
@@ -12,18 +14,15 @@ service OcaAccountService {
|
|
|
12
14
|
// Generates a secure nonce for state validation, stores it in secrets,
|
|
13
15
|
// and opens the authentication URL in the external browser.
|
|
14
16
|
rpc ocaAccountLoginClicked(EmptyRequest) returns (String);
|
|
15
|
-
|
|
17
|
+
|
|
16
18
|
// Handles the user clicking the logout button in the UI.
|
|
17
19
|
// Clears API keys and user state.
|
|
18
20
|
rpc ocaAccountLogoutClicked(EmptyRequest) returns (Empty);
|
|
19
21
|
|
|
20
22
|
// Subscribe to auth status update events (when authentication state changes)
|
|
21
|
-
rpc ocaSubscribeToAuthStatusUpdate(EmptyRequest)
|
|
22
|
-
returns (stream OcaAuthState);
|
|
23
|
-
|
|
23
|
+
rpc ocaSubscribeToAuthStatusUpdate(EmptyRequest) returns (stream OcaAuthState);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
message OcaAuthState {
|
|
28
27
|
optional OcaUserInfo user = 1;
|
|
29
28
|
optional string api_key = 2;
|
|
@@ -34,4 +33,4 @@ message OcaUserInfo {
|
|
|
34
33
|
string uid = 1;
|
|
35
34
|
optional string display_name = 2;
|
|
36
35
|
optional string email = 3;
|
|
37
|
-
}
|
|
36
|
+
}
|
package/proto/cline/slash.proto
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
|
|
3
3
|
package cline;
|
|
4
|
+
|
|
4
5
|
import "cline/common.proto";
|
|
6
|
+
|
|
5
7
|
option go_package = "github.com/cline/grpc-go/cline";
|
|
6
|
-
option java_package = "bot.cline.proto";
|
|
7
8
|
option java_multiple_files = true;
|
|
9
|
+
option java_package = "bot.cline.proto";
|
|
8
10
|
|
|
9
11
|
// SlashService provides methods for managing slash
|
|
10
12
|
service SlashService {
|