cline 1.0.1 → 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.
- 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 +24143 -16610
- 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 +1 -1
- 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 +144 -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 +13 -12
- 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
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# text-decoder
|
|
2
|
+
|
|
3
|
+
Streaming text decoder that preserves multibyte Unicode characters.
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
npm i text-decoder
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
``` js
|
|
12
|
+
const TextDecoder = require('text-decoder')
|
|
13
|
+
|
|
14
|
+
const td = new TextDecoder()
|
|
15
|
+
|
|
16
|
+
td.push(Buffer.of(0xf0, 0x9f, 0x92)) // returns ''
|
|
17
|
+
td.push(Buffer.of(0xa9)) // returns '💩'
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## API
|
|
21
|
+
|
|
22
|
+
#### `const td = new TextDecoder([encoding])`
|
|
23
|
+
|
|
24
|
+
Create a text decoder. `encoding` defaults to `utf8`.
|
|
25
|
+
|
|
26
|
+
#### `const string = td.push(data)`
|
|
27
|
+
|
|
28
|
+
Push either a `Buffer` or a `string` to the text decoder. Returns the decoded string, buffering any partial data.
|
|
29
|
+
|
|
30
|
+
#### `const string = td.end([data])`
|
|
31
|
+
|
|
32
|
+
End the decoder, optionally pushing a final piece of data. Returns the decoded string.
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
Apache-2.0
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const PassThroughDecoder = require('./lib/pass-through-decoder')
|
|
2
|
+
const UTF8Decoder = require('./lib/utf8-decoder')
|
|
3
|
+
|
|
4
|
+
module.exports = class TextDecoder {
|
|
5
|
+
constructor (encoding = 'utf8') {
|
|
6
|
+
this.encoding = normalizeEncoding(encoding)
|
|
7
|
+
|
|
8
|
+
switch (this.encoding) {
|
|
9
|
+
case 'utf8':
|
|
10
|
+
this.decoder = new UTF8Decoder()
|
|
11
|
+
break
|
|
12
|
+
case 'utf16le':
|
|
13
|
+
case 'base64':
|
|
14
|
+
throw new Error('Unsupported encoding: ' + this.encoding)
|
|
15
|
+
default:
|
|
16
|
+
this.decoder = new PassThroughDecoder(this.encoding)
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
get remaining () {
|
|
21
|
+
return this.decoder.remaining
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
push (data) {
|
|
25
|
+
if (typeof data === 'string') return data
|
|
26
|
+
return this.decoder.decode(data)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// For Node.js compatibility
|
|
30
|
+
write (data) {
|
|
31
|
+
return this.push(data)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
end (data) {
|
|
35
|
+
let result = ''
|
|
36
|
+
if (data) result = this.push(data)
|
|
37
|
+
result += this.decoder.flush()
|
|
38
|
+
return result
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function normalizeEncoding (encoding) {
|
|
43
|
+
encoding = encoding.toLowerCase()
|
|
44
|
+
|
|
45
|
+
switch (encoding) {
|
|
46
|
+
case 'utf8':
|
|
47
|
+
case 'utf-8':
|
|
48
|
+
return 'utf8'
|
|
49
|
+
case 'ucs2':
|
|
50
|
+
case 'ucs-2':
|
|
51
|
+
case 'utf16le':
|
|
52
|
+
case 'utf-16le':
|
|
53
|
+
return 'utf16le'
|
|
54
|
+
case 'latin1':
|
|
55
|
+
case 'binary':
|
|
56
|
+
return 'latin1'
|
|
57
|
+
case 'base64':
|
|
58
|
+
case 'ascii':
|
|
59
|
+
case 'hex':
|
|
60
|
+
return encoding
|
|
61
|
+
default:
|
|
62
|
+
throw new Error('Unknown encoding: ' + encoding)
|
|
63
|
+
}
|
|
64
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module.exports = class BrowserDecoder {
|
|
2
|
+
constructor (encoding) {
|
|
3
|
+
this.decoder = new TextDecoder(encoding === 'utf16le' ? 'utf16-le' : encoding)
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
get remaining () {
|
|
7
|
+
return -1
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
decode (data) {
|
|
11
|
+
return this.decoder.decode(data, { stream: true })
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
flush () {
|
|
15
|
+
return this.decoder.decode(new Uint8Array(0))
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const b4a = require('b4a')
|
|
2
|
+
|
|
3
|
+
module.exports = class PassThroughDecoder {
|
|
4
|
+
constructor (encoding) {
|
|
5
|
+
this.encoding = encoding
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
get remaining () {
|
|
9
|
+
return 0
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
decode (tail) {
|
|
13
|
+
return b4a.toString(tail, this.encoding)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
flush () {
|
|
17
|
+
return ''
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
const b4a = require('b4a')
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* https://encoding.spec.whatwg.org/#utf-8-decoder
|
|
5
|
+
*/
|
|
6
|
+
module.exports = class UTF8Decoder {
|
|
7
|
+
constructor () {
|
|
8
|
+
this.codePoint = 0
|
|
9
|
+
this.bytesSeen = 0
|
|
10
|
+
this.bytesNeeded = 0
|
|
11
|
+
this.lowerBoundary = 0x80
|
|
12
|
+
this.upperBoundary = 0xbf
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get remaining () {
|
|
16
|
+
return this.bytesSeen
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
decode (data) {
|
|
20
|
+
// If we have a fast path, just sniff if the last part is a boundary
|
|
21
|
+
if (this.bytesNeeded === 0) {
|
|
22
|
+
let isBoundary = true
|
|
23
|
+
|
|
24
|
+
for (let i = Math.max(0, data.byteLength - 4), n = data.byteLength; i < n && isBoundary; i++) {
|
|
25
|
+
isBoundary = data[i] <= 0x7f
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (isBoundary) return b4a.toString(data, 'utf8')
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
let result = ''
|
|
32
|
+
|
|
33
|
+
for (let i = 0, n = data.byteLength; i < n; i++) {
|
|
34
|
+
const byte = data[i]
|
|
35
|
+
|
|
36
|
+
if (this.bytesNeeded === 0) {
|
|
37
|
+
if (byte <= 0x7f) {
|
|
38
|
+
result += String.fromCharCode(byte)
|
|
39
|
+
} else {
|
|
40
|
+
this.bytesSeen = 1
|
|
41
|
+
|
|
42
|
+
if (byte >= 0xc2 && byte <= 0xdf) {
|
|
43
|
+
this.bytesNeeded = 2
|
|
44
|
+
this.codePoint = byte & 0x1f
|
|
45
|
+
} else if (byte >= 0xe0 && byte <= 0xef) {
|
|
46
|
+
if (byte === 0xe0) this.lowerBoundary = 0xa0
|
|
47
|
+
else if (byte === 0xed) this.upperBoundary = 0x9f
|
|
48
|
+
this.bytesNeeded = 3
|
|
49
|
+
this.codePoint = byte & 0xf
|
|
50
|
+
} else if (byte >= 0xf0 && byte <= 0xf4) {
|
|
51
|
+
if (byte === 0xf0) this.lowerBoundary = 0x90
|
|
52
|
+
if (byte === 0xf4) this.upperBoundary = 0x8f
|
|
53
|
+
this.bytesNeeded = 4
|
|
54
|
+
this.codePoint = byte & 0x7
|
|
55
|
+
} else {
|
|
56
|
+
result += '\ufffd'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
continue
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (byte < this.lowerBoundary || byte > this.upperBoundary) {
|
|
64
|
+
this.codePoint = 0
|
|
65
|
+
this.bytesNeeded = 0
|
|
66
|
+
this.bytesSeen = 0
|
|
67
|
+
this.lowerBoundary = 0x80
|
|
68
|
+
this.upperBoundary = 0xbf
|
|
69
|
+
|
|
70
|
+
result += '\ufffd'
|
|
71
|
+
|
|
72
|
+
continue
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
this.lowerBoundary = 0x80
|
|
76
|
+
this.upperBoundary = 0xbf
|
|
77
|
+
|
|
78
|
+
this.codePoint = (this.codePoint << 6) | (byte & 0x3f)
|
|
79
|
+
this.bytesSeen++
|
|
80
|
+
|
|
81
|
+
if (this.bytesSeen !== this.bytesNeeded) continue
|
|
82
|
+
|
|
83
|
+
result += String.fromCodePoint(this.codePoint)
|
|
84
|
+
|
|
85
|
+
this.codePoint = 0
|
|
86
|
+
this.bytesNeeded = 0
|
|
87
|
+
this.bytesSeen = 0
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return result
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
flush () {
|
|
94
|
+
const result = this.bytesNeeded > 0 ? '\ufffd' : ''
|
|
95
|
+
|
|
96
|
+
this.codePoint = 0
|
|
97
|
+
this.bytesNeeded = 0
|
|
98
|
+
this.bytesSeen = 0
|
|
99
|
+
this.lowerBoundary = 0x80
|
|
100
|
+
this.upperBoundary = 0xbf
|
|
101
|
+
|
|
102
|
+
return result
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "text-decoder",
|
|
3
|
+
"version": "1.2.3",
|
|
4
|
+
"description": "Streaming text decoder that preserves multibyte Unicode characters",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"index.js",
|
|
8
|
+
"lib"
|
|
9
|
+
],
|
|
10
|
+
"browser": {
|
|
11
|
+
"./lib/pass-through-decoder.js": "./lib/browser-decoder.js",
|
|
12
|
+
"./lib/utf8-decoder.js": "./lib/browser-decoder.js"
|
|
13
|
+
},
|
|
14
|
+
"react-native": {
|
|
15
|
+
"./lib/pass-through-decoder.js": "./lib/pass-through-decoder.js",
|
|
16
|
+
"./lib/utf8-decoder.js": "./lib/utf8-decoder.js"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"test": "standard && brittle test.js"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/holepunchto/text-decoder.git"
|
|
24
|
+
},
|
|
25
|
+
"author": "Holepunch",
|
|
26
|
+
"license": "Apache-2.0",
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/holepunchto/text-decoder/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://github.com/holepunchto/text-decoder#readme",
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"b4a": "^1.6.4"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"brittle": "^3.3.2",
|
|
36
|
+
"standard": "^17.0.0"
|
|
37
|
+
}
|
|
38
|
+
}
|
package/package.json
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 account-related operations
|
|
10
12
|
service AccountService {
|
|
@@ -12,20 +14,18 @@ service AccountService {
|
|
|
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 accountLoginClicked(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 accountLogoutClicked(EmptyRequest) returns (Empty);
|
|
19
21
|
|
|
20
22
|
// Subscribe to auth status update events (when authentication state changes)
|
|
21
|
-
rpc subscribeToAuthStatusUpdate(EmptyRequest)
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
rpc subscribeToAuthStatusUpdate(EmptyRequest) returns (stream AuthState);
|
|
24
|
+
|
|
24
25
|
// Handles authentication state changes from the Firebase context.
|
|
25
26
|
// Updates the user info in global state and returns the updated value.
|
|
26
|
-
rpc authStateChanged(AuthStateChangedRequest)
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
rpc authStateChanged(AuthStateChangedRequest) returns (AuthState);
|
|
28
|
+
|
|
29
29
|
// Fetches all user credits data
|
|
30
30
|
// (balance, usage transactions, payment transactions)
|
|
31
31
|
rpc getUserCredits(EmptyRequest) returns (UserCreditsData);
|
|
@@ -40,6 +40,8 @@ service AccountService {
|
|
|
40
40
|
|
|
41
41
|
rpc openrouterAuthClicked(EmptyRequest) returns (Empty);
|
|
42
42
|
|
|
43
|
+
rpc requestyAuthClicked(StringRequest) returns (Empty);
|
|
44
|
+
|
|
43
45
|
// Returns a link the webview can use to redirect back to the user's IDE.
|
|
44
46
|
rpc getRedirectUrl(EmptyRequest) returns (String);
|
|
45
47
|
}
|
|
@@ -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 BrowserService {
|
|
10
12
|
rpc getBrowserConnectionInfo(EmptyRequest) returns (BrowserConnectionInfo);
|
|
@@ -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/timestamp.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 CheckpointsService {
|
|
11
13
|
rpc checkpointDiff(Int64Request) returns (Empty);
|
|
@@ -31,13 +33,13 @@ message CheckpointEvent {
|
|
|
31
33
|
CHECKPOINT_COMMIT = 1;
|
|
32
34
|
CHECKPOINT_RESTORE = 2;
|
|
33
35
|
}
|
|
34
|
-
|
|
36
|
+
|
|
35
37
|
OperationType operation = 1;
|
|
36
38
|
string cwd_hash = 2;
|
|
37
39
|
bool is_active = 3;
|
|
38
40
|
google.protobuf.Timestamp timestamp = 4;
|
|
39
41
|
optional string task_id = 5;
|
|
40
|
-
optional string commit_hash = 6;
|
|
42
|
+
optional string commit_hash = 6;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
message PathHashMap {
|
|
@@ -1,12 +1,14 @@
|
|
|
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
|
-
// Service for running IDE commands, for example context menu actions,
|
|
11
|
+
// Service for running IDE commands, for example context menu actions,
|
|
10
12
|
// commands, etc.
|
|
11
13
|
// In contrast to the rest of the ProtoBus services, these are
|
|
12
14
|
// intended to be called by the IDE directly instead of through the webview,
|
package/proto/cline/common.proto
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
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
|
-
message Metadata {
|
|
9
|
-
}
|
|
9
|
+
message Metadata {}
|
|
10
10
|
|
|
11
|
-
message EmptyRequest {
|
|
12
|
-
}
|
|
11
|
+
message EmptyRequest {}
|
|
13
12
|
|
|
14
|
-
message Empty {
|
|
15
|
-
}
|
|
13
|
+
message Empty {}
|
|
16
14
|
|
|
17
15
|
message StringRequest {
|
|
18
16
|
string value = 2;
|
|
@@ -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 DictationService {
|
|
10
12
|
rpc startRecording(EmptyRequest) returns (RecordingResult);
|