kcl-lib 0.8.6__tar.gz → 0.9.0a1__tar.gz

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.

Potentially problematic release.


This version of kcl-lib might be problematic. Click here for more details.

Files changed (89) hide show
  1. kcl_lib-0.9.0a1/.devcontainer/Dockerfile +24 -0
  2. kcl_lib-0.9.0a1/.devcontainer/devcontainer.json +8 -0
  3. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/.github/workflows/java-test.yaml +51 -88
  4. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/.github/workflows/nodejs-test.yaml +7 -3
  5. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/Cargo.toml +2 -2
  6. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/PKG-INFO +18 -1
  7. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/README.md +44 -1
  8. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/install.go +1 -1
  9. kcl_lib-0.9.0a1/kcl_lib/api/spec_pb2.py +206 -0
  10. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/darwin-amd64/libkclvm_cli_cdylib.dylib +0 -0
  11. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/darwin-arm64/libkclvm_cli_cdylib.dylib +0 -0
  12. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/windows-amd64/kclvm_cli_cdylib.dll +0 -0
  13. kcl_lib-0.9.0a1/lib/windows-amd64/kclvm_cli_cdylib.lib +0 -0
  14. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/windows-arm64/kclvm_cli_cdylib.dll +0 -0
  15. kcl_lib-0.9.0a1/lib/windows-arm64/kclvm_cli_cdylib.lib +0 -0
  16. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/python/Cargo.lock +158 -147
  17. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/python/Cargo.toml +1 -1
  18. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/python/README.md +17 -0
  19. kcl_lib-0.9.0a1/python/kcl_lib/api/spec_pb2.py +206 -0
  20. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/spec/gpyrpc/spec.proto +3 -0
  21. kcl_lib-0.9.0a1/util.go +41 -0
  22. kcl_lib-0.8.6/kcl_lib/api/spec_pb2.py +0 -215
  23. kcl_lib-0.8.6/lib/windows-amd64/kclvm_cli_cdylib.lib +0 -0
  24. kcl_lib-0.8.6/lib/windows-arm64/kclvm_cli_cdylib.lib +0 -0
  25. kcl_lib-0.8.6/python/kcl_lib/api/spec_pb2.py +0 -215
  26. kcl_lib-0.8.6/util.go +0 -29
  27. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/.github/workflows/cla.yml +0 -0
  28. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/.github/workflows/go-test.yaml +0 -0
  29. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/.github/workflows/python-test.yaml +0 -0
  30. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/.github/workflows/rust-test.yaml +0 -0
  31. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/.gitignore +0 -0
  32. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/go.mod +0 -0
  33. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/install_lib_unix.go +0 -0
  34. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/install_lib_windows.go +0 -0
  35. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/kcl_lib/__init__.py +0 -0
  36. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/kcl_lib/api/__init__.py +0 -0
  37. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/kcl_lib/api/service.py +0 -0
  38. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/kclvm_cli_shared_lib_darwin_amd64.go +0 -0
  39. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/kclvm_cli_shared_lib_darwin_arm64.go +0 -0
  40. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/kclvm_cli_shared_lib_linux_amd64.go +0 -0
  41. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/kclvm_cli_shared_lib_linux_arm64.go +0 -0
  42. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/kclvm_cli_shared_lib_windows_amd64.go +0 -0
  43. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/kclvm_cli_shared_lib_windows_arm64.go +0 -0
  44. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/darwin-amd64/dummy.go +0 -0
  45. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/darwin-amd64/kclvm_cli +0 -0
  46. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/darwin-arm64/dummy.go +0 -0
  47. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/darwin-arm64/kclvm_cli +0 -0
  48. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/dummy.go +0 -0
  49. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/linux-amd64/dummy.go +0 -0
  50. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/linux-amd64/kclvm_cli +0 -0
  51. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/linux-arm64/dummy.go +0 -0
  52. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/linux-arm64/kclvm_cli +0 -0
  53. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/windows-amd64/dummy.go +0 -0
  54. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/windows-amd64/kclvm_cli.exe +0 -0
  55. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/windows-arm64/dummy.go +0 -0
  56. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/lib/windows-arm64/kclvm_cli.exe +0 -0
  57. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/pyproject.toml +0 -0
  58. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/python/.gitignore +0 -0
  59. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/python/Makefile +0 -0
  60. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/python/kcl_lib/__init__.py +0 -0
  61. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/python/kcl_lib/api/__init__.py +0 -0
  62. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/python/kcl_lib/api/service.py +0 -0
  63. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/python/src/lib.rs +0 -0
  64. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/python/tests/exec_test.py +0 -0
  65. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/python/tests/test_data/schema.k +0 -0
  66. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/spec/gpyrpc/Makefile +0 -0
  67. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/src/README.md +0 -0
  68. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/src/lib.rs +0 -0
  69. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/compile_recursive/kcl1/main.k +0 -0
  70. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/compile_recursive/kcl2/main.k +0 -0
  71. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/compile_recursive/main.k +0 -0
  72. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/get_schema_ty/aaa/kcl.mod +0 -0
  73. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/get_schema_ty/aaa/main.k +0 -0
  74. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/get_schema_ty/bbb/kcl.mod +0 -0
  75. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/get_schema_ty/bbb/main.k +0 -0
  76. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/get_schema_ty/ccc/kcl.mod +0 -0
  77. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/get_schema_ty/ccc/main.k +0 -0
  78. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/hello.k +0 -0
  79. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/hello_import.k +0 -0
  80. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/hello_with_print.k +0 -0
  81. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/rename/main.bak +0 -0
  82. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/rename_doc/main.bak +0 -0
  83. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/settings/kcl.yaml +0 -0
  84. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/test-lint-import.k +0 -0
  85. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/test-lint.k +0 -0
  86. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/test.k +0 -0
  87. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/testing/module/kcl.mod +0 -0
  88. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/testing/module/pkg/func.k +0 -0
  89. {kcl_lib-0.8.6 → kcl_lib-0.9.0a1}/testdata/testing/module/pkg/func_test.k +0 -0
@@ -0,0 +1,24 @@
1
+ FROM centos:7
2
+
3
+ RUN yum -y update && \
4
+ yum install gcc gcc-c++ glibc-static -y
5
+
6
+ RUN yum -y install wget
7
+
8
+ RUN yum -y install git
9
+
10
+ RUN yum -y install python3
11
+
12
+ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
13
+
14
+ ENV PATH="/root/.cargo/bin:${PATH}"
15
+
16
+ RUN yum -y install java-1.8.0-openjdk-devel
17
+
18
+ RUN wget https://repo.huaweicloud.com/apache/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz && \
19
+ tar -xzf apache-maven-*.tar.gz && \
20
+ mkdir -p /opt/maven && \
21
+ mv apache-maven-* /opt/maven && \
22
+ ln -s /opt/maven/apache-maven-3.9.6/bin/mvn /usr/bin/mvn
23
+
24
+ CMD ["tail", "-f", "/dev/null"]
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "kcl",
3
+ "dockerFile": "./Dockerfile",
4
+ "forwardPorts": [3000, 5000],
5
+ "settings": {
6
+ "terminal.integrated.shell.linux": "/bin/bash"
7
+ },
8
+ }
@@ -15,7 +15,7 @@ on:
15
15
  workflow_dispatch:
16
16
 
17
17
  jobs:
18
- test:
18
+ test-and-build:
19
19
  permissions:
20
20
  actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows
21
21
  contents: read # for actions/checkout to fetch code
@@ -87,91 +87,19 @@ jobs:
87
87
  name: kcl-lib-${{ matrix.classifier }}
88
88
  path: |
89
89
  java/target/classes/native
90
-
91
- build-on-centos:
92
- name: Build on CentOS 7
90
+
91
+ add-centos7-jni:
93
92
  runs-on: ubuntu-latest
94
93
  container:
95
- image: "centos:7"
96
-
97
- steps:
98
- - name: Checkout
99
- uses: actions/checkout@v3
100
-
101
- - name: Prepare build environment
102
- run: |
103
- yum makecache
104
- yum install -y wget
105
- yum install -y make
106
- yum install -y epel-release
107
- yum install -y llvm clang llvm-devel
108
- yum install gcc gcc-c++ glibc-static -y
109
- cat /etc/os-release
110
-
111
- - name: Install Python 3
112
- run: |
113
- yum install -y python3 python3-devel python3-pip
114
-
115
- - name: Install Rust
116
- run: |
117
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
118
- mv $HOME/.cargo/bin/* /usr/bin/
119
- rustc --version
120
- cargo --version
121
-
122
- - name: Install Java and Maven
123
- run: |
124
- yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel
125
- wget https://repo.huaweicloud.com/apache/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz
126
- tar -xzf apache-maven-*.tar.gz
127
- mkdir p /opt/maven
128
- mv apache-maven-* /opt/maven
129
- ln -s /opt/maven/apache-maven-3.9.6/bin/mvn /usr/bin/mvn
130
- mvn --version
131
-
132
- - name: Verify installed versions
133
- run: |
134
- gcc --version
135
- llvm-config --version
136
- python3 --version
137
- rustc --version
138
- mvn --version
139
- cat /etc/os-release
140
-
141
- - name: 'Test'
142
- shell: bash
143
- working-directory: java
144
- run: make test
145
-
146
- - name: 'Build and Deploy'
147
- shell: bash
148
- working-directory: java
149
- run: mvn clean package -DskipTests=true -Djni.classifier=linux-x86_64 -Dcargo-build.profile=release
150
-
151
- - name: 'Upload artifact'
152
- uses: actions/upload-artifact@v3
153
- with:
154
- name: kcl-lib-linux-x86_64
155
- path: java/target/classes/native
156
-
157
-
158
- deploy:
159
- runs-on: ubuntu-latest
94
+ image: "kcllang/kcl-java-builder-centos7:0.1.0"
95
+
160
96
  permissions:
161
97
  contents: read
162
98
  packages: write
163
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
164
- needs: [ test, build-on-centos ]
99
+ needs: [ test-and-build ]
165
100
  steps:
166
- - uses: actions/checkout@v4
167
-
168
- - name: Set up JDK 8
169
- uses: actions/setup-java@v4
170
- with:
171
- distribution: 'temurin'
172
- java-version: '8'
173
- server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
174
- settings-path: ${{ github.workspace }} # location for the settings.xml file
101
+ - name: Checkout
102
+ uses: actions/checkout@v3
175
103
 
176
104
  - name: Download windows x86_64 lib
177
105
  uses: actions/download-artifact@v3
@@ -179,12 +107,6 @@ jobs:
179
107
  name: kcl-lib-windows-x86_64
180
108
  path: java/native
181
109
 
182
- - name: Download linux x86_64 lib
183
- uses: actions/download-artifact@v3
184
- with:
185
- name: kcl-lib-linux-x86_64
186
- path: java/native
187
-
188
110
  - name: Download linux aarch_64 lib
189
111
  uses: actions/download-artifact@v3
190
112
  with:
@@ -206,7 +128,7 @@ jobs:
206
128
  - name: Package Java artifact
207
129
  working-directory: java
208
130
  run: |
209
- mvn clean package -DskipTests=true
131
+ rustup default stable && mvn package -DskipTests=true
210
132
 
211
133
  - name: Upload artifact
212
134
  uses: actions/upload-artifact@v3
@@ -214,11 +136,52 @@ jobs:
214
136
  name: kcl-lib
215
137
  path: java/target/*.jar
216
138
 
139
+ deploy:
140
+ runs-on: ubuntu-latest
141
+
142
+ permissions:
143
+ contents: read
144
+ packages: write
145
+ if: "startsWith(github.ref, 'refs/tags/')"
146
+ needs: [ add-centos7-jni ]
147
+ steps:
148
+ - name: Checkout
149
+ uses: actions/checkout@v3
150
+
151
+ - name: Set up JDK 8
152
+ uses: actions/setup-java@v4
153
+ with:
154
+ distribution: 'temurin'
155
+ java-version: '8'
156
+ server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
157
+ settings-path: ${{ github.workspace }} # location for the settings.xml file
158
+
159
+ - name: Download Artifact
160
+ uses: actions/download-artifact@v3
161
+ with:
162
+ name: kcl-lib
163
+ path: java/target/
164
+
217
165
  - name: Deploy to Github Packages
166
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
167
+ working-directory: java
168
+ run: |
169
+ mvn package deploy \
170
+ -DskipTests=true \
171
+ -DskipCompile=true \
172
+ -Dcargo-build.profile=release \
173
+ -DserverId=github \
174
+ -s $GITHUB_WORKSPACE/settings.xml
175
+ env:
176
+ GITHUB_TOKEN: ${{ github.token }}
177
+
178
+ - name: Release to Github Packages
179
+ if: "startsWith(github.ref, 'refs/tags/')"
218
180
  working-directory: java
219
181
  run: |
220
- mvn clean package deploy \
182
+ mvn package deploy \
221
183
  -DskipTests=true \
184
+ -DskipCompile=true \
222
185
  -Dcargo-build.profile=release \
223
186
  -DserverId=github \
224
187
  -s $GITHUB_WORKSPACE/settings.xml
@@ -66,7 +66,6 @@ jobs:
66
66
 
67
67
  linux:
68
68
  runs-on: ubuntu-latest
69
- if: "startsWith(github.ref, 'refs/tags/')"
70
69
  strategy:
71
70
  matrix:
72
71
  settings:
@@ -129,7 +128,6 @@ jobs:
129
128
 
130
129
  windows:
131
130
  runs-on: windows-latest
132
- if: "startsWith(github.ref, 'refs/tags/')"
133
131
  strategy:
134
132
  matrix:
135
133
  settings:
@@ -172,7 +170,6 @@ jobs:
172
170
 
173
171
  macos:
174
172
  runs-on: macos-latest
175
- if: "startsWith(github.ref, 'refs/tags/')"
176
173
  strategy:
177
174
  matrix:
178
175
  settings:
@@ -262,6 +259,13 @@ jobs:
262
259
  run: ls -R ./npm
263
260
  shell: bash
264
261
 
262
+ - name: Publish Dry Run
263
+ if: "startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-')"
264
+ # Since this command will not exit with non-zero code when file missing,
265
+ # we need to check the output manually.
266
+ run: |
267
+ npm publish --access public --provenance --dry-run
268
+
265
269
  - name: Publish
266
270
  if: "startsWith(github.ref, 'refs/tags/')"
267
271
  run: |
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "kcl-lang"
3
- version = "0.8.6"
3
+ version = "0.9.0-alpha.1"
4
4
  edition = "2021"
5
5
  readme = "README.md"
6
6
  documentation = "kcl-lang.io"
@@ -11,4 +11,4 @@ license = "Apache-2.0"
11
11
 
12
12
  [dependencies]
13
13
  anyhow = "1"
14
- kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.8.6" }
14
+ kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.9.0-alpha.1" }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kcl_lib
3
- Version: 0.8.6
3
+ Version: 0.9.0a1
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -21,6 +21,23 @@ Project-URL: Repository, https://github.com/kcl-lang/kcl
21
21
 
22
22
  # KCL Artifact Library for Python
23
23
 
24
+ ## Installation
25
+
26
+ ```shell
27
+ python3 -m pip install kcl-lib
28
+ ```
29
+
30
+ ## Quick Start
31
+
32
+ ```python
33
+ import kcl_lib.api as api
34
+
35
+ args = api.ExecProgram_Args(k_filename_list=["./tests/test_data/schema.k"])
36
+ api = api.API()
37
+ result = api.exec_program(args)
38
+ print(result.yaml_result)
39
+ ```
40
+
24
41
  ## Developing
25
42
 
26
43
  Setup virtualenv:
@@ -52,7 +52,50 @@ func main() {
52
52
 
53
53
  ### Java
54
54
 
55
- See [here](https://github.com/kcl-lang/kcl-java) for more information.
55
+ Refer to [this](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#authenticating-to-github-packages) to configure your Maven; set up your GitHub account and Token in the `settings.xml`.
56
+
57
+ #### Maven
58
+
59
+ In your project's pom.xml, configure our repository as follows:
60
+
61
+ ```xml
62
+ <repositories>
63
+ <repository>
64
+ <id>github</id>
65
+ <url>https://maven.pkg.github.com/kcl-lang/*</url>
66
+ <snapshots>
67
+ <enabled>true</enabled>
68
+ </snapshots>
69
+ </repository>
70
+ </repositories>
71
+ ```
72
+
73
+ This way you'll be able to import the above dependency to use the SDK.
74
+
75
+ ```xml
76
+ <dependency>
77
+ <groupId>com.kcl</groupId>
78
+ <artifactId>kcl-lib</artifactId>
79
+ <version>0.9.0-alpha.1</version>
80
+ </dependency>
81
+ ```
82
+
83
+ Write the code
84
+
85
+ ```java
86
+ import com.kcl.api.API;
87
+ import com.kcl.api.Spec.ExecProgram_Args;
88
+ import com.kcl.api.Spec.ExecProgram_Result;
89
+
90
+ public class ExecProgramTest {
91
+ public static void main(String[] args) throws Exception {
92
+ API api = new API();
93
+ ExecProgram_Result result = api
94
+ .execProgram(ExecProgram_Args.newBuilder().addKFilenameList("path/to/kcl.k").build());
95
+ System.out.println(result.getYamlResult());
96
+ }
97
+ }
98
+ ```
56
99
 
57
100
  ### Python
58
101
 
@@ -8,7 +8,7 @@ import (
8
8
  "runtime"
9
9
  )
10
10
 
11
- const KCLVM_VERSION = "v0.8.6"
11
+ const KCLVM_VERSION = "v0.9.0-alpha.1"
12
12
 
13
13
  func findPath(name string) string {
14
14
  if path, err := exec.LookPath(name); err == nil {
@@ -0,0 +1,206 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: spec.proto
4
+ # Protobuf Python Version: 4.25.3
5
+ """Generated protocol buffer code."""
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+
16
+
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nspec.proto\x12\x0b\x63om.kcl.api\"8\n\x12\x43mdExternalPkgSpec\x12\x10\n\x08pkg_name\x18\x01 \x01(\t\x12\x10\n\x08pkg_path\x18\x02 \x01(\t\")\n\nCmdArgSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"[\n\x0f\x43mdOverrideSpec\x12\x0f\n\x07pkgpath\x18\x01 \x01(\t\x12\x12\n\nfield_path\x18\x02 \x01(\t\x12\x13\n\x0b\x66ield_value\x18\x03 \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\x04 \x01(\t\"L\n\x05\x45rror\x12\r\n\x05level\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t\x12&\n\x08messages\x18\x03 \x03(\x0b\x32\x14.com.kcl.api.Message\":\n\x07Message\x12\x0b\n\x03msg\x18\x01 \x01(\t\x12\"\n\x03pos\x18\x02 \x01(\x0b\x32\x15.com.kcl.api.Position\"\x1a\n\tPing_Args\x12\r\n\x05value\x18\x01 \x01(\t\"\x1c\n\x0bPing_Result\x12\r\n\x05value\x18\x01 \x01(\t\"\x11\n\x0fListMethod_Args\"-\n\x11ListMethod_Result\x12\x18\n\x10method_name_list\x18\x01 \x03(\t\"f\n\x0eParseFile_Args\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x36\n\rexternal_pkgs\x18\x03 \x03(\x0b\x32\x1f.com.kcl.api.CmdExternalPkgSpec\"V\n\x10ParseFile_Result\x12\x10\n\x08\x61st_json\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x65ps\x18\x02 \x03(\t\x12\"\n\x06\x65rrors\x18\x03 \x03(\x0b\x32\x12.com.kcl.api.Error\"k\n\x11ParseProgram_Args\x12\r\n\x05paths\x18\x01 \x03(\t\x12\x0f\n\x07sources\x18\x02 \x03(\t\x12\x36\n\rexternal_pkgs\x18\x03 \x03(\x0b\x32\x1f.com.kcl.api.CmdExternalPkgSpec\"Z\n\x13ParseProgram_Result\x12\x10\n\x08\x61st_json\x18\x01 \x01(\t\x12\r\n\x05paths\x18\x02 \x03(\t\x12\"\n\x06\x65rrors\x18\x03 \x03(\x0b\x32\x12.com.kcl.api.Error\"\x89\x01\n\x10LoadPackage_Args\x12\x32\n\nparse_args\x18\x01 \x01(\x0b\x32\x1e.com.kcl.api.ParseProgram_Args\x12\x13\n\x0bresolve_ast\x18\x02 \x01(\x08\x12\x14\n\x0cload_builtin\x18\x03 \x01(\x08\x12\x16\n\x0ewith_ast_index\x18\x04 \x01(\x08\"\xf7\x07\n\x12LoadPackage_Result\x12\x0f\n\x07program\x18\x01 \x01(\t\x12\r\n\x05paths\x18\x02 \x03(\t\x12(\n\x0cparse_errors\x18\x03 \x03(\x0b\x32\x12.com.kcl.api.Error\x12\'\n\x0btype_errors\x18\x04 \x03(\x0b\x32\x12.com.kcl.api.Error\x12;\n\x06scopes\x18\x05 \x03(\x0b\x32+.com.kcl.api.LoadPackage_Result.ScopesEntry\x12=\n\x07symbols\x18\x06 \x03(\x0b\x32,.com.kcl.api.LoadPackage_Result.SymbolsEntry\x12K\n\x0fnode_symbol_map\x18\x07 \x03(\x0b\x32\x32.com.kcl.api.LoadPackage_Result.NodeSymbolMapEntry\x12K\n\x0fsymbol_node_map\x18\x08 \x03(\x0b\x32\x32.com.kcl.api.LoadPackage_Result.SymbolNodeMapEntry\x12\\\n\x18\x66ully_qualified_name_map\x18\t \x03(\x0b\x32:.com.kcl.api.LoadPackage_Result.FullyQualifiedNameMapEntry\x12G\n\rpkg_scope_map\x18\n \x03(\x0b\x32\x30.com.kcl.api.LoadPackage_Result.PkgScopeMapEntry\x1a\x41\n\x0bScopesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.com.kcl.api.Scope:\x02\x38\x01\x1a\x43\n\x0cSymbolsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\"\n\x05value\x18\x02 \x01(\x0b\x32\x13.com.kcl.api.Symbol:\x02\x38\x01\x1aN\n\x12NodeSymbolMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.com.kcl.api.SymbolIndex:\x02\x38\x01\x1a\x34\n\x12SymbolNodeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aV\n\x1a\x46ullyQualifiedNameMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.com.kcl.api.SymbolIndex:\x02\x38\x01\x1aK\n\x10PkgScopeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.com.kcl.api.ScopeIndex:\x02\x38\x01\">\n\x12ListOptions_Result\x12(\n\x07options\x18\x02 \x03(\x0b\x32\x17.com.kcl.api.OptionHelp\"_\n\nOptionHelp\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x10\n\x08required\x18\x03 \x01(\x08\x12\x15\n\rdefault_value\x18\x04 \x01(\t\x12\x0c\n\x04help\x18\x05 \x01(\t\"\xc4\x01\n\x06Symbol\x12 \n\x02ty\x18\x01 \x01(\x0b\x32\x14.com.kcl.api.KclType\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\'\n\x05owner\x18\x03 \x01(\x0b\x32\x18.com.kcl.api.SymbolIndex\x12%\n\x03\x64\x65\x66\x18\x04 \x01(\x0b\x32\x18.com.kcl.api.SymbolIndex\x12\'\n\x05\x61ttrs\x18\x05 \x03(\x0b\x32\x18.com.kcl.api.SymbolIndex\x12\x11\n\tis_global\x18\x06 \x01(\x08\"\xba\x01\n\x05Scope\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\'\n\x06parent\x18\x02 \x01(\x0b\x32\x17.com.kcl.api.ScopeIndex\x12\'\n\x05owner\x18\x03 \x01(\x0b\x32\x18.com.kcl.api.SymbolIndex\x12)\n\x08\x63hildren\x18\x04 \x03(\x0b\x32\x17.com.kcl.api.ScopeIndex\x12&\n\x04\x64\x65\x66s\x18\x05 \x03(\x0b\x32\x18.com.kcl.api.SymbolIndex\"1\n\x0bSymbolIndex\x12\t\n\x01i\x18\x01 \x01(\x04\x12\t\n\x01g\x18\x02 \x01(\x04\x12\x0c\n\x04kind\x18\x03 \x01(\t\"0\n\nScopeIndex\x12\t\n\x01i\x18\x01 \x01(\x04\x12\t\n\x01g\x18\x02 \x01(\x04\x12\x0c\n\x04kind\x18\x03 \x01(\t\"\xf7\x03\n\x10\x45xecProgram_Args\x12\x10\n\x08work_dir\x18\x01 \x01(\t\x12\x17\n\x0fk_filename_list\x18\x02 \x03(\t\x12\x13\n\x0bk_code_list\x18\x03 \x03(\t\x12%\n\x04\x61rgs\x18\x04 \x03(\x0b\x32\x17.com.kcl.api.CmdArgSpec\x12/\n\toverrides\x18\x05 \x03(\x0b\x32\x1c.com.kcl.api.CmdOverrideSpec\x12\x1b\n\x13\x64isable_yaml_result\x18\x06 \x01(\x08\x12\x1a\n\x12print_override_ast\x18\x07 \x01(\x08\x12\x1a\n\x12strict_range_check\x18\x08 \x01(\x08\x12\x14\n\x0c\x64isable_none\x18\t \x01(\x08\x12\x0f\n\x07verbose\x18\n \x01(\x05\x12\r\n\x05\x64\x65\x62ug\x18\x0b \x01(\x05\x12\x11\n\tsort_keys\x18\x0c \x01(\x08\x12\x36\n\rexternal_pkgs\x18\r \x03(\x0b\x32\x1f.com.kcl.api.CmdExternalPkgSpec\x12 \n\x18include_schema_type_path\x18\x0e \x01(\x08\x12\x14\n\x0c\x63ompile_only\x18\x0f \x01(\x08\x12\x13\n\x0bshow_hidden\x18\x10 \x01(\x08\x12\x15\n\rpath_selector\x18\x11 \x03(\t\x12\x11\n\tfast_eval\x18\x12 \x01(\x08\"h\n\x12\x45xecProgram_Result\x12\x13\n\x0bjson_result\x18\x01 \x01(\t\x12\x13\n\x0byaml_result\x18\x02 \x01(\t\x12\x13\n\x0blog_message\x18\x03 \x01(\t\x12\x13\n\x0b\x65rr_message\x18\x04 \x01(\t\"U\n\x11\x42uildProgram_Args\x12\x30\n\texec_args\x18\x01 \x01(\x0b\x32\x1d.com.kcl.api.ExecProgram_Args\x12\x0e\n\x06output\x18\x02 \x01(\t\"#\n\x13\x42uildProgram_Result\x12\x0c\n\x04path\x18\x01 \x01(\t\"S\n\x11\x45xecArtifact_Args\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x30\n\texec_args\x18\x02 \x01(\x0b\x32\x1d.com.kcl.api.ExecProgram_Args\"\'\n\x10ResetPlugin_Args\x12\x13\n\x0bplugin_root\x18\x01 \x01(\t\"\x14\n\x12ResetPlugin_Result\"!\n\x0f\x46ormatCode_Args\x12\x0e\n\x06source\x18\x01 \x01(\t\"&\n\x11\x46ormatCode_Result\x12\x11\n\tformatted\x18\x01 \x01(\x0c\"\x1f\n\x0f\x46ormatPath_Args\x12\x0c\n\x04path\x18\x01 \x01(\t\"*\n\x11\x46ormatPath_Result\x12\x15\n\rchanged_paths\x18\x01 \x03(\t\"\x1e\n\rLintPath_Args\x12\r\n\x05paths\x18\x01 \x03(\t\"\"\n\x0fLintPath_Result\x12\x0f\n\x07results\x18\x01 \x03(\t\"F\n\x11OverrideFile_Args\x12\x0c\n\x04\x66ile\x18\x01 \x01(\t\x12\r\n\x05specs\x18\x02 \x03(\t\x12\x14\n\x0cimport_paths\x18\x03 \x03(\t\"%\n\x13OverrideFile_Result\x12\x0e\n\x06result\x18\x01 \x01(\x08\"1\n\x12ListVariables_Args\x12\x0c\n\x04\x66ile\x18\x01 \x01(\t\x12\r\n\x05specs\x18\x02 \x03(\t\"\xbf\x01\n\x14ListVariables_Result\x12\x43\n\tvariables\x18\x01 \x03(\x0b\x32\x30.com.kcl.api.ListVariables_Result.VariablesEntry\x12\x19\n\x11unsupported_codes\x18\x02 \x03(\t\x1aG\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12$\n\x05value\x18\x02 \x01(\x0b\x32\x15.com.kcl.api.Variable:\x02\x38\x01\"<\n\x08Variable\x12\r\n\x05value\x18\x01 \x01(\t\x12\x11\n\ttype_name\x18\x02 \x01(\t\x12\x0e\n\x06op_sym\x18\x03 \x01(\t\"_\n\x16GetFullSchemaType_Args\x12\x30\n\texec_args\x18\x01 \x01(\x0b\x32\x1d.com.kcl.api.ExecProgram_Args\x12\x13\n\x0bschema_name\x18\x02 \x01(\t\"E\n\x12GetSchemaType_Args\x12\x0c\n\x04\x66ile\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t\x12\x13\n\x0bschema_name\x18\x03 \x01(\t\"F\n\x14GetSchemaType_Result\x12.\n\x10schema_type_list\x18\x01 \x03(\x0b\x32\x14.com.kcl.api.KclType\"L\n\x19GetSchemaTypeMapping_Args\x12\x0c\n\x04\x66ile\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t\x12\x13\n\x0bschema_name\x18\x03 \x01(\t\"\xcb\x01\n\x1bGetSchemaTypeMapping_Result\x12\\\n\x13schema_type_mapping\x18\x01 \x03(\x0b\x32?.com.kcl.api.GetSchemaTypeMapping_Result.SchemaTypeMappingEntry\x1aN\n\x16SchemaTypeMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.com.kcl.api.KclType:\x02\x38\x01\"\x87\x01\n\x11ValidateCode_Args\x12\x10\n\x08\x64\x61tafile\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\x12\x0c\n\x04\x66ile\x18\x03 \x01(\t\x12\x0c\n\x04\x63ode\x18\x04 \x01(\t\x12\x0e\n\x06schema\x18\x05 \x01(\t\x12\x16\n\x0e\x61ttribute_name\x18\x06 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x07 \x01(\t\";\n\x13ValidateCode_Result\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x13\n\x0b\x65rr_message\x18\x02 \x01(\t\":\n\x08Position\x12\x0c\n\x04line\x18\x01 \x01(\x03\x12\x0e\n\x06\x63olumn\x18\x02 \x01(\x03\x12\x10\n\x08\x66ilename\x18\x03 \x01(\t\"i\n\x11ListDepFiles_Args\x12\x10\n\x08work_dir\x18\x01 \x01(\t\x12\x14\n\x0cuse_abs_path\x18\x02 \x01(\x08\x12\x13\n\x0binclude_all\x18\x03 \x01(\x08\x12\x17\n\x0fuse_fast_parser\x18\x04 \x01(\x08\"F\n\x13ListDepFiles_Result\x12\x0f\n\x07pkgroot\x18\x01 \x01(\t\x12\x0f\n\x07pkgpath\x18\x02 \x01(\t\x12\r\n\x05\x66iles\x18\x03 \x03(\t\"9\n\x16LoadSettingsFiles_Args\x12\x10\n\x08work_dir\x18\x01 \x01(\t\x12\r\n\x05\x66iles\x18\x02 \x03(\t\"{\n\x18LoadSettingsFiles_Result\x12/\n\x0fkcl_cli_configs\x18\x01 \x01(\x0b\x32\x16.com.kcl.api.CliConfig\x12.\n\x0bkcl_options\x18\x02 \x03(\x0b\x32\x19.com.kcl.api.KeyValuePair\"\x83\x02\n\tCliConfig\x12\r\n\x05\x66iles\x18\x01 \x03(\t\x12\x0e\n\x06output\x18\x02 \x01(\t\x12\x11\n\toverrides\x18\x03 \x03(\t\x12\x15\n\rpath_selector\x18\x04 \x03(\t\x12\x1a\n\x12strict_range_check\x18\x05 \x01(\x08\x12\x14\n\x0c\x64isable_none\x18\x06 \x01(\x08\x12\x0f\n\x07verbose\x18\x07 \x01(\x03\x12\r\n\x05\x64\x65\x62ug\x18\x08 \x01(\x08\x12\x11\n\tsort_keys\x18\t \x01(\x08\x12\x13\n\x0bshow_hidden\x18\n \x01(\x08\x12 \n\x18include_schema_type_path\x18\x0b \x01(\x08\x12\x11\n\tfast_eval\x18\x0c \x01(\x08\"*\n\x0cKeyValuePair\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"^\n\x0bRename_Args\x12\x14\n\x0cpackage_root\x18\x01 \x01(\t\x12\x13\n\x0bsymbol_path\x18\x02 \x01(\t\x12\x12\n\nfile_paths\x18\x03 \x03(\t\x12\x10\n\x08new_name\x18\x04 \x01(\t\"&\n\rRename_Result\x12\x15\n\rchanged_files\x18\x01 \x03(\t\"\xc7\x01\n\x0fRenameCode_Args\x12\x14\n\x0cpackage_root\x18\x01 \x01(\t\x12\x13\n\x0bsymbol_path\x18\x02 \x01(\t\x12\x43\n\x0csource_codes\x18\x03 \x03(\x0b\x32-.com.kcl.api.RenameCode_Args.SourceCodesEntry\x12\x10\n\x08new_name\x18\x04 \x01(\t\x1a\x32\n\x10SourceCodesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x91\x01\n\x11RenameCode_Result\x12G\n\rchanged_codes\x18\x01 \x03(\x0b\x32\x30.com.kcl.api.RenameCode_Result.ChangedCodesEntry\x1a\x33\n\x11\x43hangedCodesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"v\n\tTest_Args\x12\x30\n\texec_args\x18\x01 \x01(\x0b\x32\x1d.com.kcl.api.ExecProgram_Args\x12\x10\n\x08pkg_list\x18\x02 \x03(\t\x12\x12\n\nrun_regexp\x18\x03 \x01(\t\x12\x11\n\tfail_fast\x18\x04 \x01(\x08\"6\n\x0bTest_Result\x12\'\n\x04info\x18\x02 \x03(\x0b\x32\x19.com.kcl.api.TestCaseInfo\"R\n\x0cTestCaseInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\x10\n\x08\x64uration\x18\x03 \x01(\x04\x12\x13\n\x0blog_message\x18\x04 \x01(\t\"\xf3\x04\n\x07KclType\x12\x0c\n\x04type\x18\x01 \x01(\t\x12)\n\x0bunion_types\x18\x02 \x03(\x0b\x32\x14.com.kcl.api.KclType\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x03 \x01(\t\x12\x13\n\x0bschema_name\x18\x04 \x01(\t\x12\x12\n\nschema_doc\x18\x05 \x01(\t\x12\x38\n\nproperties\x18\x06 \x03(\x0b\x32$.com.kcl.api.KclType.PropertiesEntry\x12\x10\n\x08required\x18\x07 \x03(\t\x12!\n\x03key\x18\x08 \x01(\x0b\x32\x14.com.kcl.api.KclType\x12\"\n\x04item\x18\t \x01(\x0b\x32\x14.com.kcl.api.KclType\x12\x0c\n\x04line\x18\n \x01(\x05\x12*\n\ndecorators\x18\x0b \x03(\x0b\x32\x16.com.kcl.api.Decorator\x12\x10\n\x08\x66ilename\x18\x0c \x01(\t\x12\x10\n\x08pkg_path\x18\r \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x0e \x01(\t\x12\x34\n\x08\x65xamples\x18\x0f \x03(\x0b\x32\".com.kcl.api.KclType.ExamplesEntry\x12)\n\x0b\x62\x61se_schema\x18\x10 \x01(\x0b\x32\x14.com.kcl.api.KclType\x1aG\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.com.kcl.api.KclType:\x02\x38\x01\x1a\x45\n\rExamplesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.com.kcl.api.Example:\x02\x38\x01\"\x95\x01\n\tDecorator\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\targuments\x18\x02 \x03(\t\x12\x36\n\x08keywords\x18\x03 \x03(\x0b\x32$.com.kcl.api.Decorator.KeywordsEntry\x1a/\n\rKeywordsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\">\n\x07\x45xample\x12\x0f\n\x07summary\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\t2\x96\x01\n\x0e\x42uiltinService\x12\x38\n\x04Ping\x12\x16.com.kcl.api.Ping_Args\x1a\x18.com.kcl.api.Ping_Result\x12J\n\nListMethod\x12\x1c.com.kcl.api.ListMethod_Args\x1a\x1e.com.kcl.api.ListMethod_Result2\xe0\r\n\x0cKclvmService\x12\x38\n\x04Ping\x12\x16.com.kcl.api.Ping_Args\x1a\x18.com.kcl.api.Ping_Result\x12M\n\x0b\x45xecProgram\x12\x1d.com.kcl.api.ExecProgram_Args\x1a\x1f.com.kcl.api.ExecProgram_Result\x12P\n\x0c\x42uildProgram\x12\x1e.com.kcl.api.BuildProgram_Args\x1a .com.kcl.api.BuildProgram_Result\x12O\n\x0c\x45xecArtifact\x12\x1e.com.kcl.api.ExecArtifact_Args\x1a\x1f.com.kcl.api.ExecProgram_Result\x12G\n\tParseFile\x12\x1b.com.kcl.api.ParseFile_Args\x1a\x1d.com.kcl.api.ParseFile_Result\x12P\n\x0cParseProgram\x12\x1e.com.kcl.api.ParseProgram_Args\x1a .com.kcl.api.ParseProgram_Result\x12M\n\x0bLoadPackage\x12\x1d.com.kcl.api.LoadPackage_Args\x1a\x1f.com.kcl.api.LoadPackage_Result\x12N\n\x0bListOptions\x12\x1e.com.kcl.api.ParseProgram_Args\x1a\x1f.com.kcl.api.ListOptions_Result\x12S\n\rListVariables\x12\x1f.com.kcl.api.ListVariables_Args\x1a!.com.kcl.api.ListVariables_Result\x12J\n\nFormatCode\x12\x1c.com.kcl.api.FormatCode_Args\x1a\x1e.com.kcl.api.FormatCode_Result\x12J\n\nFormatPath\x12\x1c.com.kcl.api.FormatPath_Args\x1a\x1e.com.kcl.api.FormatPath_Result\x12\x44\n\x08LintPath\x12\x1a.com.kcl.api.LintPath_Args\x1a\x1c.com.kcl.api.LintPath_Result\x12P\n\x0cOverrideFile\x12\x1e.com.kcl.api.OverrideFile_Args\x1a .com.kcl.api.OverrideFile_Result\x12S\n\rGetSchemaType\x12\x1f.com.kcl.api.GetSchemaType_Args\x1a!.com.kcl.api.GetSchemaType_Result\x12[\n\x11GetFullSchemaType\x12#.com.kcl.api.GetFullSchemaType_Args\x1a!.com.kcl.api.GetSchemaType_Result\x12h\n\x14GetSchemaTypeMapping\x12&.com.kcl.api.GetSchemaTypeMapping_Args\x1a(.com.kcl.api.GetSchemaTypeMapping_Result\x12P\n\x0cValidateCode\x12\x1e.com.kcl.api.ValidateCode_Args\x1a .com.kcl.api.ValidateCode_Result\x12P\n\x0cListDepFiles\x12\x1e.com.kcl.api.ListDepFiles_Args\x1a .com.kcl.api.ListDepFiles_Result\x12_\n\x11LoadSettingsFiles\x12#.com.kcl.api.LoadSettingsFiles_Args\x1a%.com.kcl.api.LoadSettingsFiles_Result\x12>\n\x06Rename\x12\x18.com.kcl.api.Rename_Args\x1a\x1a.com.kcl.api.Rename_Result\x12J\n\nRenameCode\x12\x1c.com.kcl.api.RenameCode_Args\x1a\x1e.com.kcl.api.RenameCode_Result\x12\x38\n\x04Test\x12\x16.com.kcl.api.Test_Args\x1a\x18.com.kcl.api.Test_Resultb\x06proto3')
18
+
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'spec_pb2', _globals)
22
+ if _descriptor._USE_C_DESCRIPTORS == False:
23
+ DESCRIPTOR._options = None
24
+ _globals['_LOADPACKAGE_RESULT_SCOPESENTRY']._options = None
25
+ _globals['_LOADPACKAGE_RESULT_SCOPESENTRY']._serialized_options = b'8\001'
26
+ _globals['_LOADPACKAGE_RESULT_SYMBOLSENTRY']._options = None
27
+ _globals['_LOADPACKAGE_RESULT_SYMBOLSENTRY']._serialized_options = b'8\001'
28
+ _globals['_LOADPACKAGE_RESULT_NODESYMBOLMAPENTRY']._options = None
29
+ _globals['_LOADPACKAGE_RESULT_NODESYMBOLMAPENTRY']._serialized_options = b'8\001'
30
+ _globals['_LOADPACKAGE_RESULT_SYMBOLNODEMAPENTRY']._options = None
31
+ _globals['_LOADPACKAGE_RESULT_SYMBOLNODEMAPENTRY']._serialized_options = b'8\001'
32
+ _globals['_LOADPACKAGE_RESULT_FULLYQUALIFIEDNAMEMAPENTRY']._options = None
33
+ _globals['_LOADPACKAGE_RESULT_FULLYQUALIFIEDNAMEMAPENTRY']._serialized_options = b'8\001'
34
+ _globals['_LOADPACKAGE_RESULT_PKGSCOPEMAPENTRY']._options = None
35
+ _globals['_LOADPACKAGE_RESULT_PKGSCOPEMAPENTRY']._serialized_options = b'8\001'
36
+ _globals['_LISTVARIABLES_RESULT_VARIABLESENTRY']._options = None
37
+ _globals['_LISTVARIABLES_RESULT_VARIABLESENTRY']._serialized_options = b'8\001'
38
+ _globals['_GETSCHEMATYPEMAPPING_RESULT_SCHEMATYPEMAPPINGENTRY']._options = None
39
+ _globals['_GETSCHEMATYPEMAPPING_RESULT_SCHEMATYPEMAPPINGENTRY']._serialized_options = b'8\001'
40
+ _globals['_RENAMECODE_ARGS_SOURCECODESENTRY']._options = None
41
+ _globals['_RENAMECODE_ARGS_SOURCECODESENTRY']._serialized_options = b'8\001'
42
+ _globals['_RENAMECODE_RESULT_CHANGEDCODESENTRY']._options = None
43
+ _globals['_RENAMECODE_RESULT_CHANGEDCODESENTRY']._serialized_options = b'8\001'
44
+ _globals['_KCLTYPE_PROPERTIESENTRY']._options = None
45
+ _globals['_KCLTYPE_PROPERTIESENTRY']._serialized_options = b'8\001'
46
+ _globals['_KCLTYPE_EXAMPLESENTRY']._options = None
47
+ _globals['_KCLTYPE_EXAMPLESENTRY']._serialized_options = b'8\001'
48
+ _globals['_DECORATOR_KEYWORDSENTRY']._options = None
49
+ _globals['_DECORATOR_KEYWORDSENTRY']._serialized_options = b'8\001'
50
+ _globals['_CMDEXTERNALPKGSPEC']._serialized_start=27
51
+ _globals['_CMDEXTERNALPKGSPEC']._serialized_end=83
52
+ _globals['_CMDARGSPEC']._serialized_start=85
53
+ _globals['_CMDARGSPEC']._serialized_end=126
54
+ _globals['_CMDOVERRIDESPEC']._serialized_start=128
55
+ _globals['_CMDOVERRIDESPEC']._serialized_end=219
56
+ _globals['_ERROR']._serialized_start=221
57
+ _globals['_ERROR']._serialized_end=297
58
+ _globals['_MESSAGE']._serialized_start=299
59
+ _globals['_MESSAGE']._serialized_end=357
60
+ _globals['_PING_ARGS']._serialized_start=359
61
+ _globals['_PING_ARGS']._serialized_end=385
62
+ _globals['_PING_RESULT']._serialized_start=387
63
+ _globals['_PING_RESULT']._serialized_end=415
64
+ _globals['_LISTMETHOD_ARGS']._serialized_start=417
65
+ _globals['_LISTMETHOD_ARGS']._serialized_end=434
66
+ _globals['_LISTMETHOD_RESULT']._serialized_start=436
67
+ _globals['_LISTMETHOD_RESULT']._serialized_end=481
68
+ _globals['_PARSEFILE_ARGS']._serialized_start=483
69
+ _globals['_PARSEFILE_ARGS']._serialized_end=585
70
+ _globals['_PARSEFILE_RESULT']._serialized_start=587
71
+ _globals['_PARSEFILE_RESULT']._serialized_end=673
72
+ _globals['_PARSEPROGRAM_ARGS']._serialized_start=675
73
+ _globals['_PARSEPROGRAM_ARGS']._serialized_end=782
74
+ _globals['_PARSEPROGRAM_RESULT']._serialized_start=784
75
+ _globals['_PARSEPROGRAM_RESULT']._serialized_end=874
76
+ _globals['_LOADPACKAGE_ARGS']._serialized_start=877
77
+ _globals['_LOADPACKAGE_ARGS']._serialized_end=1014
78
+ _globals['_LOADPACKAGE_RESULT']._serialized_start=1017
79
+ _globals['_LOADPACKAGE_RESULT']._serialized_end=2032
80
+ _globals['_LOADPACKAGE_RESULT_SCOPESENTRY']._serialized_start=1599
81
+ _globals['_LOADPACKAGE_RESULT_SCOPESENTRY']._serialized_end=1664
82
+ _globals['_LOADPACKAGE_RESULT_SYMBOLSENTRY']._serialized_start=1666
83
+ _globals['_LOADPACKAGE_RESULT_SYMBOLSENTRY']._serialized_end=1733
84
+ _globals['_LOADPACKAGE_RESULT_NODESYMBOLMAPENTRY']._serialized_start=1735
85
+ _globals['_LOADPACKAGE_RESULT_NODESYMBOLMAPENTRY']._serialized_end=1813
86
+ _globals['_LOADPACKAGE_RESULT_SYMBOLNODEMAPENTRY']._serialized_start=1815
87
+ _globals['_LOADPACKAGE_RESULT_SYMBOLNODEMAPENTRY']._serialized_end=1867
88
+ _globals['_LOADPACKAGE_RESULT_FULLYQUALIFIEDNAMEMAPENTRY']._serialized_start=1869
89
+ _globals['_LOADPACKAGE_RESULT_FULLYQUALIFIEDNAMEMAPENTRY']._serialized_end=1955
90
+ _globals['_LOADPACKAGE_RESULT_PKGSCOPEMAPENTRY']._serialized_start=1957
91
+ _globals['_LOADPACKAGE_RESULT_PKGSCOPEMAPENTRY']._serialized_end=2032
92
+ _globals['_LISTOPTIONS_RESULT']._serialized_start=2034
93
+ _globals['_LISTOPTIONS_RESULT']._serialized_end=2096
94
+ _globals['_OPTIONHELP']._serialized_start=2098
95
+ _globals['_OPTIONHELP']._serialized_end=2193
96
+ _globals['_SYMBOL']._serialized_start=2196
97
+ _globals['_SYMBOL']._serialized_end=2392
98
+ _globals['_SCOPE']._serialized_start=2395
99
+ _globals['_SCOPE']._serialized_end=2581
100
+ _globals['_SYMBOLINDEX']._serialized_start=2583
101
+ _globals['_SYMBOLINDEX']._serialized_end=2632
102
+ _globals['_SCOPEINDEX']._serialized_start=2634
103
+ _globals['_SCOPEINDEX']._serialized_end=2682
104
+ _globals['_EXECPROGRAM_ARGS']._serialized_start=2685
105
+ _globals['_EXECPROGRAM_ARGS']._serialized_end=3188
106
+ _globals['_EXECPROGRAM_RESULT']._serialized_start=3190
107
+ _globals['_EXECPROGRAM_RESULT']._serialized_end=3294
108
+ _globals['_BUILDPROGRAM_ARGS']._serialized_start=3296
109
+ _globals['_BUILDPROGRAM_ARGS']._serialized_end=3381
110
+ _globals['_BUILDPROGRAM_RESULT']._serialized_start=3383
111
+ _globals['_BUILDPROGRAM_RESULT']._serialized_end=3418
112
+ _globals['_EXECARTIFACT_ARGS']._serialized_start=3420
113
+ _globals['_EXECARTIFACT_ARGS']._serialized_end=3503
114
+ _globals['_RESETPLUGIN_ARGS']._serialized_start=3505
115
+ _globals['_RESETPLUGIN_ARGS']._serialized_end=3544
116
+ _globals['_RESETPLUGIN_RESULT']._serialized_start=3546
117
+ _globals['_RESETPLUGIN_RESULT']._serialized_end=3566
118
+ _globals['_FORMATCODE_ARGS']._serialized_start=3568
119
+ _globals['_FORMATCODE_ARGS']._serialized_end=3601
120
+ _globals['_FORMATCODE_RESULT']._serialized_start=3603
121
+ _globals['_FORMATCODE_RESULT']._serialized_end=3641
122
+ _globals['_FORMATPATH_ARGS']._serialized_start=3643
123
+ _globals['_FORMATPATH_ARGS']._serialized_end=3674
124
+ _globals['_FORMATPATH_RESULT']._serialized_start=3676
125
+ _globals['_FORMATPATH_RESULT']._serialized_end=3718
126
+ _globals['_LINTPATH_ARGS']._serialized_start=3720
127
+ _globals['_LINTPATH_ARGS']._serialized_end=3750
128
+ _globals['_LINTPATH_RESULT']._serialized_start=3752
129
+ _globals['_LINTPATH_RESULT']._serialized_end=3786
130
+ _globals['_OVERRIDEFILE_ARGS']._serialized_start=3788
131
+ _globals['_OVERRIDEFILE_ARGS']._serialized_end=3858
132
+ _globals['_OVERRIDEFILE_RESULT']._serialized_start=3860
133
+ _globals['_OVERRIDEFILE_RESULT']._serialized_end=3897
134
+ _globals['_LISTVARIABLES_ARGS']._serialized_start=3899
135
+ _globals['_LISTVARIABLES_ARGS']._serialized_end=3948
136
+ _globals['_LISTVARIABLES_RESULT']._serialized_start=3951
137
+ _globals['_LISTVARIABLES_RESULT']._serialized_end=4142
138
+ _globals['_LISTVARIABLES_RESULT_VARIABLESENTRY']._serialized_start=4071
139
+ _globals['_LISTVARIABLES_RESULT_VARIABLESENTRY']._serialized_end=4142
140
+ _globals['_VARIABLE']._serialized_start=4144
141
+ _globals['_VARIABLE']._serialized_end=4204
142
+ _globals['_GETFULLSCHEMATYPE_ARGS']._serialized_start=4206
143
+ _globals['_GETFULLSCHEMATYPE_ARGS']._serialized_end=4301
144
+ _globals['_GETSCHEMATYPE_ARGS']._serialized_start=4303
145
+ _globals['_GETSCHEMATYPE_ARGS']._serialized_end=4372
146
+ _globals['_GETSCHEMATYPE_RESULT']._serialized_start=4374
147
+ _globals['_GETSCHEMATYPE_RESULT']._serialized_end=4444
148
+ _globals['_GETSCHEMATYPEMAPPING_ARGS']._serialized_start=4446
149
+ _globals['_GETSCHEMATYPEMAPPING_ARGS']._serialized_end=4522
150
+ _globals['_GETSCHEMATYPEMAPPING_RESULT']._serialized_start=4525
151
+ _globals['_GETSCHEMATYPEMAPPING_RESULT']._serialized_end=4728
152
+ _globals['_GETSCHEMATYPEMAPPING_RESULT_SCHEMATYPEMAPPINGENTRY']._serialized_start=4650
153
+ _globals['_GETSCHEMATYPEMAPPING_RESULT_SCHEMATYPEMAPPINGENTRY']._serialized_end=4728
154
+ _globals['_VALIDATECODE_ARGS']._serialized_start=4731
155
+ _globals['_VALIDATECODE_ARGS']._serialized_end=4866
156
+ _globals['_VALIDATECODE_RESULT']._serialized_start=4868
157
+ _globals['_VALIDATECODE_RESULT']._serialized_end=4927
158
+ _globals['_POSITION']._serialized_start=4929
159
+ _globals['_POSITION']._serialized_end=4987
160
+ _globals['_LISTDEPFILES_ARGS']._serialized_start=4989
161
+ _globals['_LISTDEPFILES_ARGS']._serialized_end=5094
162
+ _globals['_LISTDEPFILES_RESULT']._serialized_start=5096
163
+ _globals['_LISTDEPFILES_RESULT']._serialized_end=5166
164
+ _globals['_LOADSETTINGSFILES_ARGS']._serialized_start=5168
165
+ _globals['_LOADSETTINGSFILES_ARGS']._serialized_end=5225
166
+ _globals['_LOADSETTINGSFILES_RESULT']._serialized_start=5227
167
+ _globals['_LOADSETTINGSFILES_RESULT']._serialized_end=5350
168
+ _globals['_CLICONFIG']._serialized_start=5353
169
+ _globals['_CLICONFIG']._serialized_end=5612
170
+ _globals['_KEYVALUEPAIR']._serialized_start=5614
171
+ _globals['_KEYVALUEPAIR']._serialized_end=5656
172
+ _globals['_RENAME_ARGS']._serialized_start=5658
173
+ _globals['_RENAME_ARGS']._serialized_end=5752
174
+ _globals['_RENAME_RESULT']._serialized_start=5754
175
+ _globals['_RENAME_RESULT']._serialized_end=5792
176
+ _globals['_RENAMECODE_ARGS']._serialized_start=5795
177
+ _globals['_RENAMECODE_ARGS']._serialized_end=5994
178
+ _globals['_RENAMECODE_ARGS_SOURCECODESENTRY']._serialized_start=5944
179
+ _globals['_RENAMECODE_ARGS_SOURCECODESENTRY']._serialized_end=5994
180
+ _globals['_RENAMECODE_RESULT']._serialized_start=5997
181
+ _globals['_RENAMECODE_RESULT']._serialized_end=6142
182
+ _globals['_RENAMECODE_RESULT_CHANGEDCODESENTRY']._serialized_start=6091
183
+ _globals['_RENAMECODE_RESULT_CHANGEDCODESENTRY']._serialized_end=6142
184
+ _globals['_TEST_ARGS']._serialized_start=6144
185
+ _globals['_TEST_ARGS']._serialized_end=6262
186
+ _globals['_TEST_RESULT']._serialized_start=6264
187
+ _globals['_TEST_RESULT']._serialized_end=6318
188
+ _globals['_TESTCASEINFO']._serialized_start=6320
189
+ _globals['_TESTCASEINFO']._serialized_end=6402
190
+ _globals['_KCLTYPE']._serialized_start=6405
191
+ _globals['_KCLTYPE']._serialized_end=7032
192
+ _globals['_KCLTYPE_PROPERTIESENTRY']._serialized_start=6890
193
+ _globals['_KCLTYPE_PROPERTIESENTRY']._serialized_end=6961
194
+ _globals['_KCLTYPE_EXAMPLESENTRY']._serialized_start=6963
195
+ _globals['_KCLTYPE_EXAMPLESENTRY']._serialized_end=7032
196
+ _globals['_DECORATOR']._serialized_start=7035
197
+ _globals['_DECORATOR']._serialized_end=7184
198
+ _globals['_DECORATOR_KEYWORDSENTRY']._serialized_start=7137
199
+ _globals['_DECORATOR_KEYWORDSENTRY']._serialized_end=7184
200
+ _globals['_EXAMPLE']._serialized_start=7186
201
+ _globals['_EXAMPLE']._serialized_end=7248
202
+ _globals['_BUILTINSERVICE']._serialized_start=7251
203
+ _globals['_BUILTINSERVICE']._serialized_end=7401
204
+ _globals['_KCLVMSERVICE']._serialized_start=7404
205
+ _globals['_KCLVMSERVICE']._serialized_end=9164
206
+ # @@protoc_insertion_point(module_scope)