cline 1.0.0-nightly.5 → 1.0.0-nightly.7
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-host +0 -0
- package/node_modules/base64-js/LICENSE +21 -0
- package/node_modules/base64-js/README.md +34 -0
- package/node_modules/base64-js/base64js.min.js +1 -0
- package/node_modules/base64-js/index.d.ts +3 -0
- package/node_modules/base64-js/index.js +150 -0
- package/node_modules/base64-js/package.json +47 -0
- package/node_modules/better-sqlite3/LICENSE +21 -0
- package/node_modules/better-sqlite3/README.md +99 -0
- package/node_modules/better-sqlite3/binding.gyp +38 -0
- package/node_modules/better-sqlite3/deps/common.gypi +68 -0
- package/node_modules/better-sqlite3/deps/copy.js +31 -0
- package/node_modules/better-sqlite3/deps/defines.gypi +41 -0
- package/node_modules/better-sqlite3/deps/download.sh +122 -0
- package/node_modules/better-sqlite3/deps/patches/1208.patch +15 -0
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +262875 -0
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +13775 -0
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3ext.h +723 -0
- package/node_modules/better-sqlite3/deps/sqlite3.gyp +80 -0
- package/node_modules/better-sqlite3/deps/test_extension.c +21 -0
- package/node_modules/better-sqlite3/lib/database.js +90 -0
- package/node_modules/better-sqlite3/lib/index.js +3 -0
- package/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
- package/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
- package/node_modules/better-sqlite3/lib/methods/function.js +31 -0
- package/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
- package/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
- package/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
- package/node_modules/better-sqlite3/lib/methods/table.js +189 -0
- package/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
- package/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
- package/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
- package/node_modules/better-sqlite3/lib/util.js +12 -0
- package/node_modules/better-sqlite3/package.json +62 -0
- package/node_modules/better-sqlite3/src/better_sqlite3.cpp +2189 -0
- package/node_modules/better-sqlite3/src/better_sqlite3.hpp +1036 -0
- package/node_modules/bindings/LICENSE.md +22 -0
- package/node_modules/bindings/README.md +98 -0
- package/node_modules/bindings/bindings.js +221 -0
- package/node_modules/bindings/package.json +28 -0
- package/node_modules/bl/.travis.yml +17 -0
- package/node_modules/bl/BufferList.js +396 -0
- package/node_modules/bl/LICENSE.md +13 -0
- package/node_modules/bl/README.md +247 -0
- package/node_modules/bl/bl.js +84 -0
- package/node_modules/bl/package.json +37 -0
- package/node_modules/bl/test/convert.js +21 -0
- package/node_modules/bl/test/indexOf.js +492 -0
- package/node_modules/bl/test/isBufferList.js +32 -0
- package/node_modules/bl/test/test.js +869 -0
- package/node_modules/buffer/AUTHORS.md +70 -0
- package/node_modules/buffer/LICENSE +21 -0
- package/node_modules/buffer/README.md +410 -0
- package/node_modules/buffer/index.d.ts +186 -0
- package/node_modules/buffer/index.js +1817 -0
- package/node_modules/buffer/package.json +96 -0
- package/node_modules/chownr/LICENSE +15 -0
- package/node_modules/chownr/README.md +3 -0
- package/node_modules/chownr/chownr.js +167 -0
- package/node_modules/chownr/package.json +29 -0
- package/node_modules/decompress-response/index.d.ts +22 -0
- package/node_modules/decompress-response/index.js +58 -0
- package/node_modules/decompress-response/license +9 -0
- package/node_modules/decompress-response/package.json +56 -0
- package/node_modules/decompress-response/readme.md +48 -0
- package/node_modules/deep-extend/LICENSE +20 -0
- package/node_modules/deep-extend/README.md +91 -0
- package/node_modules/deep-extend/index.js +1 -0
- package/node_modules/deep-extend/lib/deep-extend.js +150 -0
- package/node_modules/deep-extend/package.json +62 -0
- package/node_modules/detect-libc/LICENSE +201 -0
- package/node_modules/detect-libc/README.md +163 -0
- package/node_modules/detect-libc/index.d.ts +14 -0
- package/node_modules/detect-libc/lib/detect-libc.js +267 -0
- package/node_modules/detect-libc/lib/filesystem.js +41 -0
- package/node_modules/detect-libc/lib/process.js +24 -0
- package/node_modules/detect-libc/package.json +41 -0
- package/node_modules/end-of-stream/LICENSE +21 -0
- package/node_modules/end-of-stream/README.md +54 -0
- package/node_modules/end-of-stream/index.js +96 -0
- package/node_modules/end-of-stream/package.json +37 -0
- package/node_modules/expand-template/.travis.yml +6 -0
- package/node_modules/expand-template/LICENSE +21 -0
- package/node_modules/expand-template/README.md +43 -0
- package/node_modules/expand-template/index.js +26 -0
- package/node_modules/expand-template/package.json +29 -0
- package/node_modules/expand-template/test.js +67 -0
- package/node_modules/file-uri-to-path/.npmignore +1 -0
- package/node_modules/file-uri-to-path/.travis.yml +30 -0
- package/node_modules/file-uri-to-path/History.md +21 -0
- package/node_modules/file-uri-to-path/LICENSE +20 -0
- package/node_modules/file-uri-to-path/README.md +74 -0
- package/node_modules/file-uri-to-path/index.d.ts +2 -0
- package/node_modules/file-uri-to-path/index.js +66 -0
- package/node_modules/file-uri-to-path/package.json +32 -0
- package/node_modules/file-uri-to-path/test/test.js +24 -0
- package/node_modules/file-uri-to-path/test/tests.json +13 -0
- package/node_modules/fs-constants/LICENSE +21 -0
- package/node_modules/fs-constants/README.md +26 -0
- package/node_modules/fs-constants/browser.js +1 -0
- package/node_modules/fs-constants/index.js +1 -0
- package/node_modules/fs-constants/package.json +19 -0
- package/node_modules/github-from-package/.travis.yml +4 -0
- package/node_modules/github-from-package/LICENSE +18 -0
- package/node_modules/github-from-package/example/package.json +8 -0
- package/node_modules/github-from-package/example/url.js +3 -0
- package/node_modules/github-from-package/index.js +17 -0
- package/node_modules/github-from-package/package.json +30 -0
- package/node_modules/github-from-package/readme.markdown +53 -0
- package/node_modules/github-from-package/test/a.json +8 -0
- package/node_modules/github-from-package/test/b.json +5 -0
- package/node_modules/github-from-package/test/c.json +5 -0
- package/node_modules/github-from-package/test/d.json +7 -0
- package/node_modules/github-from-package/test/e.json +5 -0
- package/node_modules/github-from-package/test/url.js +19 -0
- package/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/ieee754/README.md +51 -0
- package/node_modules/ieee754/index.d.ts +10 -0
- package/node_modules/ieee754/index.js +85 -0
- package/node_modules/ieee754/package.json +52 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/ini/LICENSE +15 -0
- package/node_modules/ini/README.md +102 -0
- package/node_modules/ini/ini.js +206 -0
- package/node_modules/ini/package.json +33 -0
- package/node_modules/mimic-response/index.d.ts +17 -0
- package/node_modules/mimic-response/index.js +77 -0
- package/node_modules/mimic-response/license +9 -0
- package/node_modules/mimic-response/package.json +42 -0
- package/node_modules/mimic-response/readme.md +78 -0
- package/node_modules/minimist/.eslintrc +29 -0
- package/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/node_modules/minimist/.nycrc +14 -0
- package/node_modules/minimist/CHANGELOG.md +298 -0
- package/node_modules/minimist/LICENSE +18 -0
- package/node_modules/minimist/README.md +121 -0
- package/node_modules/minimist/example/parse.js +4 -0
- package/node_modules/minimist/index.js +263 -0
- package/node_modules/minimist/package.json +75 -0
- package/node_modules/minimist/test/all_bool.js +34 -0
- package/node_modules/minimist/test/bool.js +177 -0
- package/node_modules/minimist/test/dash.js +43 -0
- package/node_modules/minimist/test/default_bool.js +37 -0
- package/node_modules/minimist/test/dotted.js +24 -0
- package/node_modules/minimist/test/kv_short.js +32 -0
- package/node_modules/minimist/test/long.js +33 -0
- package/node_modules/minimist/test/num.js +38 -0
- package/node_modules/minimist/test/parse.js +209 -0
- package/node_modules/minimist/test/parse_modified.js +11 -0
- package/node_modules/minimist/test/proto.js +64 -0
- package/node_modules/minimist/test/short.js +69 -0
- package/node_modules/minimist/test/stop_early.js +17 -0
- package/node_modules/minimist/test/unknown.js +104 -0
- package/node_modules/minimist/test/whitespace.js +10 -0
- package/node_modules/mkdirp-classic/LICENSE +21 -0
- package/node_modules/mkdirp-classic/README.md +18 -0
- package/node_modules/mkdirp-classic/index.js +98 -0
- package/node_modules/mkdirp-classic/package.json +18 -0
- package/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +31 -0
- package/node_modules/napi-build-utils/LICENSE +21 -0
- package/node_modules/napi-build-utils/README.md +52 -0
- package/node_modules/napi-build-utils/index.js +214 -0
- package/node_modules/napi-build-utils/index.md +0 -0
- package/node_modules/napi-build-utils/package.json +42 -0
- package/node_modules/node-abi/LICENSE +21 -0
- package/node_modules/node-abi/README.md +54 -0
- package/node_modules/node-abi/abi_registry.json +408 -0
- package/node_modules/node-abi/index.js +179 -0
- package/node_modules/node-abi/package.json +45 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/prebuild-install/CHANGELOG.md +131 -0
- package/node_modules/prebuild-install/CONTRIBUTING.md +6 -0
- package/node_modules/prebuild-install/LICENSE +21 -0
- package/node_modules/prebuild-install/README.md +163 -0
- package/node_modules/prebuild-install/asset.js +44 -0
- package/node_modules/prebuild-install/bin.js +78 -0
- package/node_modules/prebuild-install/download.js +142 -0
- package/node_modules/prebuild-install/error.js +14 -0
- package/node_modules/prebuild-install/help.txt +16 -0
- package/node_modules/prebuild-install/index.js +1 -0
- package/node_modules/prebuild-install/log.js +33 -0
- package/node_modules/prebuild-install/package.json +67 -0
- package/node_modules/prebuild-install/proxy.js +35 -0
- package/node_modules/prebuild-install/rc.js +64 -0
- package/node_modules/prebuild-install/util.js +143 -0
- package/node_modules/pump/.github/FUNDING.yml +2 -0
- package/node_modules/pump/.travis.yml +5 -0
- package/node_modules/pump/LICENSE +21 -0
- package/node_modules/pump/README.md +74 -0
- package/node_modules/pump/SECURITY.md +5 -0
- package/node_modules/pump/index.js +86 -0
- package/node_modules/pump/package.json +24 -0
- package/node_modules/pump/test-browser.js +66 -0
- package/node_modules/pump/test-node.js +53 -0
- package/node_modules/rc/LICENSE.APACHE2 +15 -0
- package/node_modules/rc/LICENSE.BSD +26 -0
- package/node_modules/rc/LICENSE.MIT +24 -0
- package/node_modules/rc/README.md +227 -0
- package/node_modules/rc/browser.js +7 -0
- package/node_modules/rc/cli.js +4 -0
- package/node_modules/rc/index.js +53 -0
- package/node_modules/rc/lib/utils.js +104 -0
- package/node_modules/rc/package.json +29 -0
- package/node_modules/rc/test/ini.js +16 -0
- package/node_modules/rc/test/nested-env-vars.js +50 -0
- package/node_modules/rc/test/test.js +59 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +106 -0
- package/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +190 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +641 -0
- package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +68 -0
- package/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/safe-buffer/package.json +51 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +664 -0
- package/node_modules/semver/bin/semver.js +191 -0
- package/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/semver/classes/index.js +7 -0
- package/node_modules/semver/classes/range.js +556 -0
- package/node_modules/semver/classes/semver.js +319 -0
- package/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/semver/functions/major.js +5 -0
- package/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/semver/index.js +91 -0
- package/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/semver/internal/identifiers.js +25 -0
- package/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/semver/internal/re.js +223 -0
- package/node_modules/semver/package.json +78 -0
- package/node_modules/semver/preload.js +4 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/simple-concat/.travis.yml +3 -0
- package/node_modules/simple-concat/LICENSE +20 -0
- package/node_modules/simple-concat/README.md +44 -0
- package/node_modules/simple-concat/index.js +15 -0
- package/node_modules/simple-concat/package.json +47 -0
- package/node_modules/simple-concat/test/basic.js +41 -0
- package/node_modules/simple-get/.github/dependabot.yml +15 -0
- package/node_modules/simple-get/.github/workflows/ci.yml +23 -0
- package/node_modules/simple-get/LICENSE +20 -0
- package/node_modules/simple-get/README.md +333 -0
- package/node_modules/simple-get/index.js +108 -0
- package/node_modules/simple-get/package.json +67 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +34 -0
- package/node_modules/strip-json-comments/index.js +70 -0
- package/node_modules/strip-json-comments/license +21 -0
- package/node_modules/strip-json-comments/package.json +42 -0
- package/node_modules/strip-json-comments/readme.md +64 -0
- package/node_modules/tar-fs/.travis.yml +6 -0
- package/node_modules/tar-fs/LICENSE +21 -0
- package/node_modules/tar-fs/README.md +165 -0
- package/node_modules/tar-fs/index.js +358 -0
- package/node_modules/tar-fs/package.json +41 -0
- package/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
- package/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
- 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 +346 -0
- package/node_modules/tar-stream/LICENSE +21 -0
- package/node_modules/tar-stream/README.md +168 -0
- package/node_modules/tar-stream/extract.js +257 -0
- package/node_modules/tar-stream/headers.js +295 -0
- package/node_modules/tar-stream/index.js +2 -0
- package/node_modules/tar-stream/pack.js +255 -0
- package/node_modules/tar-stream/package.json +58 -0
- package/node_modules/tar-stream/sandbox.js +11 -0
- package/node_modules/tunnel-agent/LICENSE +55 -0
- package/node_modules/tunnel-agent/README.md +4 -0
- package/node_modules/tunnel-agent/index.js +244 -0
- package/node_modules/tunnel-agent/package.json +22 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/package.json +1 -1
- package/proto/cline/account.proto +136 -0
- package/proto/cline/browser.proto +56 -0
- package/proto/cline/checkpoints.proto +45 -0
- package/proto/cline/commands.proto +30 -0
- package/proto/cline/common.proto +99 -0
- package/proto/cline/dictation.proto +42 -0
- package/proto/cline/file.proto +189 -0
- package/proto/cline/hooks.proto +49 -0
- package/proto/cline/mcp.proto +133 -0
- package/proto/cline/models.proto +419 -0
- package/proto/cline/oca_account.proto +37 -0
- package/proto/cline/slash.proto +14 -0
- package/proto/cline/state.proto +505 -0
- package/proto/cline/task.proto +119 -0
- package/proto/cline/ui.proto +262 -0
- package/proto/cline/web.proto +27 -0
- package/proto/descriptor_set.pb +0 -0
- package/proto/host/diff.proto +108 -0
- package/proto/host/env.proto +61 -0
- package/proto/host/testing.proto +18 -0
- package/proto/host/window.proto +164 -0
- package/proto/host/workspace.proto +96 -0
- package/cline-1.0.0-nightly.5.tgz +0 -0
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package cline;
|
|
4
|
+
import "cline/common.proto";
|
|
5
|
+
import "google/protobuf/field_mask.proto";
|
|
6
|
+
option go_package = "github.com/cline/grpc-go/cline";
|
|
7
|
+
option java_package = "bot.cline.proto";
|
|
8
|
+
option java_multiple_files = true;
|
|
9
|
+
|
|
10
|
+
// Service for model-related operations
|
|
11
|
+
service ModelsService {
|
|
12
|
+
// Fetches available models from Ollama
|
|
13
|
+
rpc getOllamaModels(StringRequest) returns (StringArray);
|
|
14
|
+
// Fetches available models from LM Studio
|
|
15
|
+
rpc getLmStudioModels(StringRequest) returns (StringArray);
|
|
16
|
+
// Fetches available models from VS Code LM API
|
|
17
|
+
rpc getVsCodeLmModels(EmptyRequest) returns (VsCodeLmModelsArray);
|
|
18
|
+
// Refreshes and returns OpenRouter models
|
|
19
|
+
rpc refreshOpenRouterModels(EmptyRequest) returns (OpenRouterCompatibleModelInfo);
|
|
20
|
+
// Refreshes and returns Hugging Face models
|
|
21
|
+
rpc refreshHuggingFaceModels(EmptyRequest) returns (OpenRouterCompatibleModelInfo);
|
|
22
|
+
// Refreshes and returns OpenAI models
|
|
23
|
+
rpc refreshOpenAiModels(OpenAiModelsRequest) returns (StringArray);
|
|
24
|
+
// Refreshes and returns Vercel AI Gateway models
|
|
25
|
+
rpc refreshVercelAiGatewayModels(EmptyRequest) returns (OpenRouterCompatibleModelInfo);
|
|
26
|
+
// Refreshes and returns Requesty models
|
|
27
|
+
rpc refreshRequestyModels(EmptyRequest) returns (OpenRouterCompatibleModelInfo);
|
|
28
|
+
// Subscribe to OpenRouter models updates
|
|
29
|
+
rpc subscribeToOpenRouterModels(EmptyRequest) returns (stream OpenRouterCompatibleModelInfo);
|
|
30
|
+
// Updates API configuration
|
|
31
|
+
rpc updateApiConfigurationProto(UpdateApiConfigurationRequest) returns (Empty);
|
|
32
|
+
// Updates API configuration with partial values (only updates fields that are explicitly set)
|
|
33
|
+
rpc updateApiConfigurationPartial(UpdateApiConfigurationPartialRequest) returns (Empty);
|
|
34
|
+
// Refreshes and returns Groq models
|
|
35
|
+
rpc refreshGroqModels(EmptyRequest) returns (OpenRouterCompatibleModelInfo);
|
|
36
|
+
// Refreshes and returns Baseten models
|
|
37
|
+
rpc refreshBasetenModels(EmptyRequest) returns (OpenRouterCompatibleModelInfo);
|
|
38
|
+
// Fetches available models from SAP AI Core
|
|
39
|
+
rpc getSapAiCoreModels(SapAiCoreModelsRequest) returns (SapAiCoreModelsResponse);
|
|
40
|
+
// Fetches available models from OCA
|
|
41
|
+
rpc refreshOcaModels(StringRequest) returns (OcaCompatibleModelInfo);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// List of VS Code LM models
|
|
45
|
+
message VsCodeLmModelsArray {
|
|
46
|
+
repeated LanguageModelChatSelector models = 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Structure representing a language model chat selector
|
|
50
|
+
message LanguageModelChatSelector {
|
|
51
|
+
optional string vendor = 1;
|
|
52
|
+
optional string family = 2;
|
|
53
|
+
optional string version = 3;
|
|
54
|
+
optional string id = 4;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Price tier for tiered pricing models
|
|
58
|
+
message PriceTier {
|
|
59
|
+
int64 token_limit = 1; // Upper limit (inclusive) of input tokens for this price
|
|
60
|
+
double price = 2; // Price per million tokens for this tier
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Thinking configuration for models that support thinking/reasoning
|
|
64
|
+
message ThinkingConfig {
|
|
65
|
+
optional int64 max_budget = 1; // Max allowed thinking budget tokens
|
|
66
|
+
optional double output_price = 2; // Output price per million tokens when budget > 0
|
|
67
|
+
repeated PriceTier output_price_tiers = 3; // Optional: Tiered output price when budget > 0
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Model tier for tiered pricing structures
|
|
71
|
+
message ModelTier {
|
|
72
|
+
int64 context_window = 1;
|
|
73
|
+
optional double input_price = 2;
|
|
74
|
+
optional double output_price = 3;
|
|
75
|
+
optional double cache_writes_price = 4;
|
|
76
|
+
optional double cache_reads_price = 5;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// For OpenRouterCompatibleModelInfo structure in OpenRouterModels
|
|
80
|
+
message OpenRouterModelInfo {
|
|
81
|
+
optional int64 max_tokens = 1;
|
|
82
|
+
optional int64 context_window = 2;
|
|
83
|
+
optional bool supports_images = 3;
|
|
84
|
+
bool supports_prompt_cache = 4;
|
|
85
|
+
optional double input_price = 5;
|
|
86
|
+
optional double output_price = 6;
|
|
87
|
+
optional double cache_writes_price = 7;
|
|
88
|
+
optional double cache_reads_price = 8;
|
|
89
|
+
optional string description = 9;
|
|
90
|
+
optional ThinkingConfig thinking_config = 10;
|
|
91
|
+
optional bool supports_global_endpoint = 11;
|
|
92
|
+
repeated ModelTier tiers = 12;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Shared response message for model information
|
|
96
|
+
message OpenRouterCompatibleModelInfo {
|
|
97
|
+
map<string, OpenRouterModelInfo> models = 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Request for fetching OpenAI models
|
|
101
|
+
message OpenAiModelsRequest {
|
|
102
|
+
Metadata metadata = 1;
|
|
103
|
+
string base_url = 2;
|
|
104
|
+
string api_key = 3;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Request for fetching SAP AI Core models
|
|
108
|
+
message SapAiCoreModelsRequest {
|
|
109
|
+
Metadata metadata = 1;
|
|
110
|
+
string client_id = 2;
|
|
111
|
+
string client_secret = 3;
|
|
112
|
+
string base_url = 4;
|
|
113
|
+
string token_url = 5;
|
|
114
|
+
string resource_group = 6;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// SAP AI Core model with deployment information
|
|
118
|
+
message SapAiCoreModelDeployment {
|
|
119
|
+
string model_name = 1;
|
|
120
|
+
string deployment_id = 2;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
// Response for SAP AI Core models with orchestration availability
|
|
125
|
+
message SapAiCoreModelsResponse {
|
|
126
|
+
repeated SapAiCoreModelDeployment deployments = 1;
|
|
127
|
+
bool orchestration_available = 2;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Request for updating API configuration
|
|
131
|
+
message UpdateApiConfigurationRequest {
|
|
132
|
+
Metadata metadata = 1;
|
|
133
|
+
ModelsApiConfiguration api_configuration = 2;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Request for partially updating API configuration using FieldMask
|
|
137
|
+
// Only fields specified in update_mask will be updated from api_configuration
|
|
138
|
+
message UpdateApiConfigurationPartialRequest {
|
|
139
|
+
Metadata metadata = 1;
|
|
140
|
+
|
|
141
|
+
// The API configuration with values to update.
|
|
142
|
+
// Only fields listed in update_mask will be applied from this configuration.
|
|
143
|
+
ModelsApiConfiguration api_configuration = 2;
|
|
144
|
+
|
|
145
|
+
// Mask specifying which top-level fields from api_configuration to update.
|
|
146
|
+
// Field names should use camelCase (e.g., "apiKey", "planModeApiProvider").
|
|
147
|
+
// If a field is in the mask but not set in api_configuration, it will be cleared (set to undefined).
|
|
148
|
+
google.protobuf.FieldMask update_mask = 3;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// Model info for OCA (OpenAI-compatible) models exposed by the OCA provider
|
|
152
|
+
message OcaModelInfo {
|
|
153
|
+
// Maximum completion tokens per request supported by this model
|
|
154
|
+
optional int64 max_tokens = 1;
|
|
155
|
+
// Total context window in tokens (input + output)
|
|
156
|
+
optional int64 context_window = 2;
|
|
157
|
+
// Whether the model supports image inputs
|
|
158
|
+
optional bool supports_images = 3;
|
|
159
|
+
// Whether prompt caching is supported for this model
|
|
160
|
+
bool supports_prompt_cache = 4;
|
|
161
|
+
// Price per million input tokens (USD unless otherwise specified by provider)
|
|
162
|
+
optional double input_price = 5;
|
|
163
|
+
// Price per million output tokens (USD unless otherwise specified by provider)
|
|
164
|
+
optional double output_price = 6;
|
|
165
|
+
// Thinking/reasoning configuration if the model supports it
|
|
166
|
+
optional ThinkingConfig thinking_config = 7;
|
|
167
|
+
// Price per million tokens for prompt cache writes
|
|
168
|
+
optional double cache_writes_price = 9;
|
|
169
|
+
// Price per million tokens for prompt cache reads
|
|
170
|
+
optional double cache_reads_price = 10;
|
|
171
|
+
// Human-readable model description
|
|
172
|
+
optional string description = 11;
|
|
173
|
+
// Recommended default temperature for this model
|
|
174
|
+
optional double temperature = 13;
|
|
175
|
+
// Optional survey content to display in the UI
|
|
176
|
+
optional string survey_content = 14;
|
|
177
|
+
// Identifier for the survey associated with this model
|
|
178
|
+
optional string survey_id = 15;
|
|
179
|
+
// Optional banner content (e.g., deprecation or promotion notes)
|
|
180
|
+
optional string banner = 16;
|
|
181
|
+
// Canonical model identifier as reported by OCA
|
|
182
|
+
string model_name = 17;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Aggregated OCA model catalog keyed by model identifier
|
|
186
|
+
message OcaCompatibleModelInfo {
|
|
187
|
+
// key: canonical model id as reported by OCA (e.g., "openai/gpt-4o-mini")
|
|
188
|
+
// value: OcaModelInfo describing that model
|
|
189
|
+
map<string, OcaModelInfo> models = 1;
|
|
190
|
+
optional string error = 2;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// API Provider enumeration
|
|
194
|
+
enum ApiProvider {
|
|
195
|
+
ANTHROPIC = 0;
|
|
196
|
+
OPENROUTER = 1;
|
|
197
|
+
BEDROCK = 2;
|
|
198
|
+
VERTEX = 3;
|
|
199
|
+
OPENAI = 4;
|
|
200
|
+
OLLAMA = 5;
|
|
201
|
+
LMSTUDIO = 6;
|
|
202
|
+
GEMINI = 7;
|
|
203
|
+
OPENAI_NATIVE = 8;
|
|
204
|
+
REQUESTY = 9;
|
|
205
|
+
TOGETHER = 10;
|
|
206
|
+
DEEPSEEK = 11;
|
|
207
|
+
QWEN = 12;
|
|
208
|
+
DOUBAO = 13;
|
|
209
|
+
MISTRAL = 14;
|
|
210
|
+
VSCODE_LM = 15;
|
|
211
|
+
CLINE = 16;
|
|
212
|
+
LITELLM = 17;
|
|
213
|
+
NEBIUS = 18;
|
|
214
|
+
FIREWORKS = 19;
|
|
215
|
+
ASKSAGE = 20;
|
|
216
|
+
XAI = 21;
|
|
217
|
+
SAMBANOVA = 22;
|
|
218
|
+
CEREBRAS = 23;
|
|
219
|
+
GROQ = 24;
|
|
220
|
+
SAPAICORE = 25;
|
|
221
|
+
CLAUDE_CODE = 26;
|
|
222
|
+
MOONSHOT = 27;
|
|
223
|
+
HUGGINGFACE = 28;
|
|
224
|
+
HUAWEI_CLOUD_MAAS = 29;
|
|
225
|
+
BASETEN = 30;
|
|
226
|
+
ZAI = 31;
|
|
227
|
+
VERCEL_AI_GATEWAY = 32;
|
|
228
|
+
QWEN_CODE = 33;
|
|
229
|
+
DIFY = 34;
|
|
230
|
+
OCA = 35;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// Model info for OpenAI-compatible models
|
|
234
|
+
message OpenAiCompatibleModelInfo {
|
|
235
|
+
optional int64 max_tokens = 1;
|
|
236
|
+
optional int64 context_window = 2;
|
|
237
|
+
optional bool supports_images = 3;
|
|
238
|
+
bool supports_prompt_cache = 4;
|
|
239
|
+
optional double input_price = 5;
|
|
240
|
+
optional double output_price = 6;
|
|
241
|
+
optional ThinkingConfig thinking_config = 7;
|
|
242
|
+
optional bool supports_global_endpoint = 8;
|
|
243
|
+
optional double cache_writes_price = 9;
|
|
244
|
+
optional double cache_reads_price = 10;
|
|
245
|
+
optional string description = 11;
|
|
246
|
+
repeated ModelTier tiers = 12;
|
|
247
|
+
optional double temperature = 13;
|
|
248
|
+
optional bool is_r1_format_required = 14;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// Model info for LiteLLM models
|
|
252
|
+
message LiteLLMModelInfo {
|
|
253
|
+
optional int64 max_tokens = 1;
|
|
254
|
+
optional int64 context_window = 2;
|
|
255
|
+
optional bool supports_images = 3;
|
|
256
|
+
bool supports_prompt_cache = 4;
|
|
257
|
+
optional double input_price = 5;
|
|
258
|
+
optional double output_price = 6;
|
|
259
|
+
optional ThinkingConfig thinking_config = 7;
|
|
260
|
+
optional bool supports_global_endpoint = 8;
|
|
261
|
+
optional double cache_writes_price = 9;
|
|
262
|
+
optional double cache_reads_price = 10;
|
|
263
|
+
optional string description = 11;
|
|
264
|
+
repeated ModelTier tiers = 12;
|
|
265
|
+
optional double temperature = 13;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
// Main ApiConfiguration message
|
|
269
|
+
message ModelsApiConfiguration {
|
|
270
|
+
// Global configuration fields (not mode-specific)
|
|
271
|
+
optional string api_key = 1;
|
|
272
|
+
optional string cline_api_key = 2;
|
|
273
|
+
optional string ulid = 3;
|
|
274
|
+
optional string lite_llm_base_url = 4;
|
|
275
|
+
optional string lite_llm_api_key = 5;
|
|
276
|
+
optional bool lite_llm_use_prompt_cache = 6;
|
|
277
|
+
map<string, string> open_ai_headers = 7;
|
|
278
|
+
optional string anthropic_base_url = 8;
|
|
279
|
+
optional string open_router_api_key = 9;
|
|
280
|
+
optional string open_router_provider_sorting = 10;
|
|
281
|
+
optional string aws_access_key = 11;
|
|
282
|
+
optional string aws_secret_key = 12;
|
|
283
|
+
optional string aws_session_token = 13;
|
|
284
|
+
optional string aws_region = 14;
|
|
285
|
+
optional bool aws_use_cross_region_inference = 15;
|
|
286
|
+
optional bool aws_bedrock_use_prompt_cache = 16;
|
|
287
|
+
optional bool aws_use_profile = 17;
|
|
288
|
+
optional string aws_profile = 18;
|
|
289
|
+
optional string aws_bedrock_endpoint = 19;
|
|
290
|
+
optional string claude_code_path = 20;
|
|
291
|
+
optional string vertex_project_id = 21;
|
|
292
|
+
optional string vertex_region = 22;
|
|
293
|
+
optional string open_ai_base_url = 23;
|
|
294
|
+
optional string open_ai_api_key = 24;
|
|
295
|
+
optional string ollama_base_url = 25;
|
|
296
|
+
optional string ollama_api_options_ctx_num = 26;
|
|
297
|
+
optional string lm_studio_base_url = 27;
|
|
298
|
+
optional string gemini_api_key = 28;
|
|
299
|
+
optional string gemini_base_url = 29;
|
|
300
|
+
optional string open_ai_native_api_key = 30;
|
|
301
|
+
optional string deep_seek_api_key = 31;
|
|
302
|
+
optional string requesty_api_key = 32;
|
|
303
|
+
optional string requesty_base_url = 33;
|
|
304
|
+
optional string together_api_key = 34;
|
|
305
|
+
optional string fireworks_api_key = 35;
|
|
306
|
+
optional int64 fireworks_model_max_completion_tokens = 36;
|
|
307
|
+
optional int64 fireworks_model_max_tokens = 37;
|
|
308
|
+
optional string qwen_api_key = 38;
|
|
309
|
+
optional string doubao_api_key = 39;
|
|
310
|
+
optional string mistral_api_key = 40;
|
|
311
|
+
optional string azure_api_version = 41;
|
|
312
|
+
optional string qwen_api_line = 42;
|
|
313
|
+
optional string nebius_api_key = 43;
|
|
314
|
+
optional string asksage_api_url = 44;
|
|
315
|
+
optional string asksage_api_key = 45;
|
|
316
|
+
optional string xai_api_key = 46;
|
|
317
|
+
optional string sambanova_api_key = 47;
|
|
318
|
+
optional string cerebras_api_key = 48;
|
|
319
|
+
optional int64 request_timeout_ms = 49;
|
|
320
|
+
optional string sap_ai_core_client_id = 50;
|
|
321
|
+
optional string sap_ai_core_client_secret = 51;
|
|
322
|
+
optional string sap_ai_resource_group = 52;
|
|
323
|
+
optional string sap_ai_core_token_url = 53;
|
|
324
|
+
optional string sap_ai_core_base_url = 54;
|
|
325
|
+
optional bool sap_ai_core_use_orchestration_mode = 55;
|
|
326
|
+
optional string moonshot_api_key = 56;
|
|
327
|
+
optional string moonshot_api_line = 57;
|
|
328
|
+
optional string aws_authentication = 58;
|
|
329
|
+
optional string aws_bedrock_api_key = 59;
|
|
330
|
+
optional string cline_account_id = 60;
|
|
331
|
+
optional string groq_api_key = 61;
|
|
332
|
+
optional string hugging_face_api_key = 62;
|
|
333
|
+
optional string huawei_cloud_maas_api_key = 63;
|
|
334
|
+
optional string baseten_api_key = 64;
|
|
335
|
+
optional string ollama_api_key = 65;
|
|
336
|
+
optional string zai_api_key = 66;
|
|
337
|
+
optional string zai_api_line = 67;
|
|
338
|
+
optional string lm_studio_max_tokens = 68;
|
|
339
|
+
optional string vercel_ai_gateway_api_key = 69;
|
|
340
|
+
optional string qwen_code_oauth_path = 70;
|
|
341
|
+
optional string dify_api_key = 71;
|
|
342
|
+
optional string dify_base_url = 72;
|
|
343
|
+
optional string oca_base_url = 73;
|
|
344
|
+
optional string oca_api_key = 74;
|
|
345
|
+
optional string oca_refresh_token = 75;
|
|
346
|
+
optional string oca_mode = 76;
|
|
347
|
+
optional bool aws_use_global_inference = 77;
|
|
348
|
+
|
|
349
|
+
// Plan mode configurations
|
|
350
|
+
optional ApiProvider plan_mode_api_provider = 100;
|
|
351
|
+
optional string plan_mode_api_model_id = 101;
|
|
352
|
+
optional int64 plan_mode_thinking_budget_tokens = 102;
|
|
353
|
+
optional string plan_mode_reasoning_effort = 103;
|
|
354
|
+
optional LanguageModelChatSelector plan_mode_vs_code_lm_model_selector = 104;
|
|
355
|
+
optional bool plan_mode_aws_bedrock_custom_selected = 105;
|
|
356
|
+
optional string plan_mode_aws_bedrock_custom_model_base_id = 106;
|
|
357
|
+
optional string plan_mode_open_router_model_id = 107;
|
|
358
|
+
optional OpenRouterModelInfo plan_mode_open_router_model_info = 108;
|
|
359
|
+
optional string plan_mode_open_ai_model_id = 109;
|
|
360
|
+
optional OpenAiCompatibleModelInfo plan_mode_open_ai_model_info = 110;
|
|
361
|
+
optional string plan_mode_ollama_model_id = 111;
|
|
362
|
+
optional string plan_mode_lm_studio_model_id = 112;
|
|
363
|
+
optional string plan_mode_lite_llm_model_id = 113;
|
|
364
|
+
optional LiteLLMModelInfo plan_mode_lite_llm_model_info = 114;
|
|
365
|
+
optional string plan_mode_requesty_model_id = 115;
|
|
366
|
+
optional OpenRouterModelInfo plan_mode_requesty_model_info = 116;
|
|
367
|
+
optional string plan_mode_together_model_id = 117;
|
|
368
|
+
optional string plan_mode_fireworks_model_id = 118;
|
|
369
|
+
optional string plan_mode_sap_ai_core_model_id = 119;
|
|
370
|
+
optional string plan_mode_sap_ai_core_deployment_id = 120;
|
|
371
|
+
optional string plan_mode_groq_model_id = 121;
|
|
372
|
+
optional OpenRouterModelInfo plan_mode_groq_model_info = 122;
|
|
373
|
+
optional string plan_mode_hugging_face_model_id = 123;
|
|
374
|
+
optional OpenRouterModelInfo plan_mode_hugging_face_model_info = 124;
|
|
375
|
+
optional string plan_mode_huawei_cloud_maas_model_id = 125;
|
|
376
|
+
optional OpenRouterModelInfo plan_mode_huawei_cloud_maas_model_info = 126;
|
|
377
|
+
optional string plan_mode_baseten_model_id = 127;
|
|
378
|
+
optional OpenRouterModelInfo plan_mode_baseten_model_info = 128;
|
|
379
|
+
optional string plan_mode_vercel_ai_gateway_model_id = 129;
|
|
380
|
+
optional OpenRouterModelInfo plan_mode_vercel_ai_gateway_model_info = 130;
|
|
381
|
+
optional string plan_mode_oca_model_id = 131;
|
|
382
|
+
optional OcaModelInfo plan_mode_oca_model_info = 132;
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
// Act mode configurations
|
|
386
|
+
optional ApiProvider act_mode_api_provider = 200;
|
|
387
|
+
optional string act_mode_api_model_id = 201;
|
|
388
|
+
optional int64 act_mode_thinking_budget_tokens = 202;
|
|
389
|
+
optional string act_mode_reasoning_effort = 203;
|
|
390
|
+
optional LanguageModelChatSelector act_mode_vs_code_lm_model_selector = 204;
|
|
391
|
+
optional bool act_mode_aws_bedrock_custom_selected = 205;
|
|
392
|
+
optional string act_mode_aws_bedrock_custom_model_base_id = 206;
|
|
393
|
+
optional string act_mode_open_router_model_id = 207;
|
|
394
|
+
optional OpenRouterModelInfo act_mode_open_router_model_info = 208;
|
|
395
|
+
optional string act_mode_open_ai_model_id = 209;
|
|
396
|
+
optional OpenAiCompatibleModelInfo act_mode_open_ai_model_info = 210;
|
|
397
|
+
optional string act_mode_ollama_model_id = 211;
|
|
398
|
+
optional string act_mode_lm_studio_model_id = 212;
|
|
399
|
+
optional string act_mode_lite_llm_model_id = 213;
|
|
400
|
+
optional LiteLLMModelInfo act_mode_lite_llm_model_info = 214;
|
|
401
|
+
optional string act_mode_requesty_model_id = 215;
|
|
402
|
+
optional OpenRouterModelInfo act_mode_requesty_model_info = 216;
|
|
403
|
+
optional string act_mode_together_model_id = 217;
|
|
404
|
+
optional string act_mode_fireworks_model_id = 218;
|
|
405
|
+
optional string act_mode_sap_ai_core_model_id = 219;
|
|
406
|
+
optional string act_mode_sap_ai_core_deployment_id = 220;
|
|
407
|
+
optional string act_mode_groq_model_id = 221;
|
|
408
|
+
optional OpenRouterModelInfo act_mode_groq_model_info = 222;
|
|
409
|
+
optional string act_mode_hugging_face_model_id = 223;
|
|
410
|
+
optional OpenRouterModelInfo act_mode_hugging_face_model_info = 224;
|
|
411
|
+
optional string act_mode_huawei_cloud_maas_model_id = 225;
|
|
412
|
+
optional OpenRouterModelInfo act_mode_huawei_cloud_maas_model_info = 226;
|
|
413
|
+
optional string act_mode_baseten_model_id = 227;
|
|
414
|
+
optional OpenRouterModelInfo act_mode_baseten_model_info = 228;
|
|
415
|
+
optional string act_mode_vercel_ai_gateway_model_id = 229;
|
|
416
|
+
optional OpenRouterModelInfo act_mode_vercel_ai_gateway_model_info = 230;
|
|
417
|
+
optional string act_mode_oca_model_id = 231;
|
|
418
|
+
optional OcaModelInfo act_mode_oca_model_info = 232;
|
|
419
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package cline;
|
|
4
|
+
import "cline/common.proto";
|
|
5
|
+
option go_package = "github.com/cline/grpc-go/cline";
|
|
6
|
+
option java_package = "bot.cline.proto";
|
|
7
|
+
option java_multiple_files = true;
|
|
8
|
+
|
|
9
|
+
// Service for account-related operations
|
|
10
|
+
service OcaAccountService {
|
|
11
|
+
// Handles the user clicking the login link in the UI.
|
|
12
|
+
// Generates a secure nonce for state validation, stores it in secrets,
|
|
13
|
+
// and opens the authentication URL in the external browser.
|
|
14
|
+
rpc ocaAccountLoginClicked(EmptyRequest) returns (String);
|
|
15
|
+
|
|
16
|
+
// Handles the user clicking the logout button in the UI.
|
|
17
|
+
// Clears API keys and user state.
|
|
18
|
+
rpc ocaAccountLogoutClicked(EmptyRequest) returns (Empty);
|
|
19
|
+
|
|
20
|
+
// Subscribe to auth status update events (when authentication state changes)
|
|
21
|
+
rpc ocaSubscribeToAuthStatusUpdate(EmptyRequest)
|
|
22
|
+
returns (stream OcaAuthState);
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
message OcaAuthState {
|
|
28
|
+
optional OcaUserInfo user = 1;
|
|
29
|
+
optional string api_key = 2;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// User's information
|
|
33
|
+
message OcaUserInfo {
|
|
34
|
+
string uid = 1;
|
|
35
|
+
optional string display_name = 2;
|
|
36
|
+
optional string email = 3;
|
|
37
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package cline;
|
|
4
|
+
import "cline/common.proto";
|
|
5
|
+
option go_package = "github.com/cline/grpc-go/cline";
|
|
6
|
+
option java_package = "bot.cline.proto";
|
|
7
|
+
option java_multiple_files = true;
|
|
8
|
+
|
|
9
|
+
// SlashService provides methods for managing slash
|
|
10
|
+
service SlashService {
|
|
11
|
+
// Sends button click message
|
|
12
|
+
rpc reportBug(StringRequest) returns (Empty);
|
|
13
|
+
rpc condense(StringRequest) returns (Empty);
|
|
14
|
+
}
|