kcl-lib 0.9.0b1__cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl → 0.9.1__cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

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.

kcl_lib/api/service.py CHANGED
@@ -1,4 +1,5 @@
1
1
  import kcl_lib
2
+ import kcl_lib.plugin as plugin
2
3
  from .spec_pb2 import *
3
4
  from google.protobuf import message as _message
4
5
 
@@ -19,7 +20,7 @@ class API:
19
20
  ```
20
21
  """
21
22
 
22
- def __init__(self, plugin_agent: int = 0):
23
+ def __init__(self, plugin_agent: int = plugin.plugin_agent_addr):
23
24
  self.plugin_agent = plugin_agent
24
25
 
25
26
  def ping(self, args: Ping_Args) -> Ping_Result:
@@ -97,11 +98,13 @@ class API:
97
98
  args_serialized = args.SerializeToString()
98
99
 
99
100
  # Call the service function and get the result
100
- result = bytes(kcl_lib.call_with_plugin_agent(
101
- name.encode("utf-8"), args_serialized, self.plugin_agent
102
- ))
103
- if result.startswith(b"ERROR"):
104
- raise Exception(str(result))
101
+ result = bytes(
102
+ kcl_lib.call_with_plugin_agent(
103
+ name.encode("utf-8"), args_serialized, self.plugin_agent
104
+ )
105
+ )
106
+ if result.startswith(b"ERROR:"):
107
+ raise Exception(result.decode(encoding="utf-8").removeprefix("ERROR:"))
105
108
  msg = self.create_method_resp_message(name)
106
109
  msg.ParseFromString(result)
107
110
  return msg
kcl_lib/api/spec_pb2.py CHANGED
@@ -1,204 +1,224 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
3
4
  # source: spec.proto
4
- # Protobuf Python Version: 4.25.3
5
+ # Protobuf Python Version: 5.27.0
5
6
  """Generated protocol buffer code."""
6
7
  from google.protobuf import descriptor as _descriptor
7
8
  from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
8
10
  from google.protobuf import symbol_database as _symbol_database
9
11
  from google.protobuf.internal import builder as _builder
12
+
13
+ _runtime_version.ValidateProtobufRuntimeVersion(
14
+ _runtime_version.Domain.PUBLIC, 5, 27, 0, "", "spec.proto"
15
+ )
10
16
  # @@protoc_insertion_point(imports)
11
17
 
12
18
  _sym_db = _symbol_database.Default()
13
19
 
14
20
 
15
-
16
-
17
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nspec.proto\x12\x0b\x63om.kcl.api\"1\n\x0b\x45xternalPkg\x12\x10\n\x08pkg_name\x18\x01 \x01(\t\x12\x10\n\x08pkg_path\x18\x02 \x01(\t\"\'\n\x08\x41rgument\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \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\"_\n\x0eParseFile_Args\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12/\n\rexternal_pkgs\x18\x03 \x03(\x0b\x32\x18.com.kcl.api.ExternalPkg\"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\"d\n\x11ParseProgram_Args\x12\r\n\x05paths\x18\x01 \x03(\t\x12\x0f\n\x07sources\x18\x02 \x03(\t\x12/\n\rexternal_pkgs\x18\x03 \x03(\x0b\x32\x18.com.kcl.api.ExternalPkg\"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\"\xd0\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\x15.com.kcl.api.Argument\x12\x11\n\toverrides\x18\x05 \x03(\t\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/\n\rexternal_pkgs\x18\r \x03(\x0b\x32\x18.com.kcl.api.ExternalPkg\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\"O\n\x13OverrideFile_Result\x12\x0e\n\x06result\x18\x01 \x01(\x08\x12(\n\x0cparse_errors\x18\x02 \x03(\x0b\x32\x12.com.kcl.api.Error\"1\n\x12ListVariables_Args\x12\x0c\n\x04\x66ile\x18\x01 \x01(\t\x12\r\n\x05specs\x18\x02 \x03(\t\"\xe9\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\x12(\n\x0cparse_errors\x18\x03 \x03(\x0b\x32\x12.com.kcl.api.Error\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\"\x94\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\x12)\n\nlist_items\x18\x04 \x03(\x0b\x32\x15.com.kcl.api.Variable\x12+\n\x0c\x64ict_entries\x18\x05 \x03(\x0b\x32\x15.com.kcl.api.MapEntry\"=\n\x08MapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12$\n\x05value\x18\x02 \x01(\x0b\x32\x15.com.kcl.api.Variable\"b\n\x19GetSchemaTypeMapping_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\"\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\"@\n\x17UpdateDependencies_Args\x12\x15\n\rmanifest_path\x18\x01 \x01(\t\x12\x0e\n\x06vendor\x18\x02 \x01(\x08\"L\n\x19UpdateDependencies_Result\x12/\n\rexternal_pkgs\x18\x03 \x03(\x0b\x32\x18.com.kcl.api.ExternalPkg\"\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\x92\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\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_Result\x12\x62\n\x12UpdateDependencies\x12$.com.kcl.api.UpdateDependencies_Args\x1a&.com.kcl.api.UpdateDependencies_Resultb\x06proto3')
21
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
22
+ b'\n\nspec.proto\x12\x0b\x63om.kcl.api"1\n\x0b\x45xternalPkg\x12\x10\n\x08pkg_name\x18\x01 \x01(\t\x12\x10\n\x08pkg_path\x18\x02 \x01(\t"\'\n\x08\x41rgument\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \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"_\n\x0eParseFile_Args\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12/\n\rexternal_pkgs\x18\x03 \x03(\x0b\x32\x18.com.kcl.api.ExternalPkg"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"d\n\x11ParseProgram_Args\x12\r\n\x05paths\x18\x01 \x03(\t\x12\x0f\n\x07sources\x18\x02 \x03(\t\x12/\n\rexternal_pkgs\x18\x03 \x03(\x0b\x32\x18.com.kcl.api.ExternalPkg"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"\xd0\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\x15.com.kcl.api.Argument\x12\x11\n\toverrides\x18\x05 \x03(\t\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/\n\rexternal_pkgs\x18\r \x03(\x0b\x32\x18.com.kcl.api.ExternalPkg\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"O\n\x13OverrideFile_Result\x12\x0e\n\x06result\x18\x01 \x01(\x08\x12(\n\x0cparse_errors\x18\x02 \x03(\x0b\x32\x12.com.kcl.api.Error".\n\x15ListVariables_Options\x12\x15\n\rmerge_program\x18\x01 \x01(\x08"8\n\x0cVariableList\x12(\n\tvariables\x18\x01 \x03(\x0b\x32\x15.com.kcl.api.Variable"g\n\x12ListVariables_Args\x12\r\n\x05\x66iles\x18\x01 \x03(\t\x12\r\n\x05specs\x18\x02 \x03(\t\x12\x33\n\x07options\x18\x03 \x01(\x0b\x32".com.kcl.api.ListVariables_Options"\xed\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\x12(\n\x0cparse_errors\x18\x03 \x03(\x0b\x32\x12.com.kcl.api.Error\x1aK\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.com.kcl.api.VariableList:\x02\x38\x01"\x94\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\x12)\n\nlist_items\x18\x04 \x03(\x0b\x32\x15.com.kcl.api.Variable\x12+\n\x0c\x64ict_entries\x18\x05 \x03(\x0b\x32\x15.com.kcl.api.MapEntry"=\n\x08MapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12$\n\x05value\x18\x02 \x01(\x0b\x32\x15.com.kcl.api.Variable"b\n\x19GetSchemaTypeMapping_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"\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"@\n\x17UpdateDependencies_Args\x12\x15\n\rmanifest_path\x18\x01 \x01(\t\x12\x0e\n\x06vendor\x18\x02 \x01(\x08"L\n\x19UpdateDependencies_Result\x12/\n\rexternal_pkgs\x18\x03 \x03(\x0b\x32\x18.com.kcl.api.ExternalPkg"\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\x92\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\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_Result\x12\x62\n\x12UpdateDependencies\x12$.com.kcl.api.UpdateDependencies_Args\x1a&.com.kcl.api.UpdateDependencies_Resultb\x06proto3'
23
+ )
18
24
 
19
25
  _globals = globals()
20
26
  _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['_EXTERNALPKG']._serialized_start=27
51
- _globals['_EXTERNALPKG']._serialized_end=76
52
- _globals['_ARGUMENT']._serialized_start=78
53
- _globals['_ARGUMENT']._serialized_end=117
54
- _globals['_ERROR']._serialized_start=119
55
- _globals['_ERROR']._serialized_end=195
56
- _globals['_MESSAGE']._serialized_start=197
57
- _globals['_MESSAGE']._serialized_end=255
58
- _globals['_PING_ARGS']._serialized_start=257
59
- _globals['_PING_ARGS']._serialized_end=283
60
- _globals['_PING_RESULT']._serialized_start=285
61
- _globals['_PING_RESULT']._serialized_end=313
62
- _globals['_LISTMETHOD_ARGS']._serialized_start=315
63
- _globals['_LISTMETHOD_ARGS']._serialized_end=332
64
- _globals['_LISTMETHOD_RESULT']._serialized_start=334
65
- _globals['_LISTMETHOD_RESULT']._serialized_end=379
66
- _globals['_PARSEFILE_ARGS']._serialized_start=381
67
- _globals['_PARSEFILE_ARGS']._serialized_end=476
68
- _globals['_PARSEFILE_RESULT']._serialized_start=478
69
- _globals['_PARSEFILE_RESULT']._serialized_end=564
70
- _globals['_PARSEPROGRAM_ARGS']._serialized_start=566
71
- _globals['_PARSEPROGRAM_ARGS']._serialized_end=666
72
- _globals['_PARSEPROGRAM_RESULT']._serialized_start=668
73
- _globals['_PARSEPROGRAM_RESULT']._serialized_end=758
74
- _globals['_LOADPACKAGE_ARGS']._serialized_start=761
75
- _globals['_LOADPACKAGE_ARGS']._serialized_end=898
76
- _globals['_LOADPACKAGE_RESULT']._serialized_start=901
77
- _globals['_LOADPACKAGE_RESULT']._serialized_end=1916
78
- _globals['_LOADPACKAGE_RESULT_SCOPESENTRY']._serialized_start=1483
79
- _globals['_LOADPACKAGE_RESULT_SCOPESENTRY']._serialized_end=1548
80
- _globals['_LOADPACKAGE_RESULT_SYMBOLSENTRY']._serialized_start=1550
81
- _globals['_LOADPACKAGE_RESULT_SYMBOLSENTRY']._serialized_end=1617
82
- _globals['_LOADPACKAGE_RESULT_NODESYMBOLMAPENTRY']._serialized_start=1619
83
- _globals['_LOADPACKAGE_RESULT_NODESYMBOLMAPENTRY']._serialized_end=1697
84
- _globals['_LOADPACKAGE_RESULT_SYMBOLNODEMAPENTRY']._serialized_start=1699
85
- _globals['_LOADPACKAGE_RESULT_SYMBOLNODEMAPENTRY']._serialized_end=1751
86
- _globals['_LOADPACKAGE_RESULT_FULLYQUALIFIEDNAMEMAPENTRY']._serialized_start=1753
87
- _globals['_LOADPACKAGE_RESULT_FULLYQUALIFIEDNAMEMAPENTRY']._serialized_end=1839
88
- _globals['_LOADPACKAGE_RESULT_PKGSCOPEMAPENTRY']._serialized_start=1841
89
- _globals['_LOADPACKAGE_RESULT_PKGSCOPEMAPENTRY']._serialized_end=1916
90
- _globals['_LISTOPTIONS_RESULT']._serialized_start=1918
91
- _globals['_LISTOPTIONS_RESULT']._serialized_end=1980
92
- _globals['_OPTIONHELP']._serialized_start=1982
93
- _globals['_OPTIONHELP']._serialized_end=2077
94
- _globals['_SYMBOL']._serialized_start=2080
95
- _globals['_SYMBOL']._serialized_end=2276
96
- _globals['_SCOPE']._serialized_start=2279
97
- _globals['_SCOPE']._serialized_end=2465
98
- _globals['_SYMBOLINDEX']._serialized_start=2467
99
- _globals['_SYMBOLINDEX']._serialized_end=2516
100
- _globals['_SCOPEINDEX']._serialized_start=2518
101
- _globals['_SCOPEINDEX']._serialized_end=2566
102
- _globals['_EXECPROGRAM_ARGS']._serialized_start=2569
103
- _globals['_EXECPROGRAM_ARGS']._serialized_end=3033
104
- _globals['_EXECPROGRAM_RESULT']._serialized_start=3035
105
- _globals['_EXECPROGRAM_RESULT']._serialized_end=3139
106
- _globals['_BUILDPROGRAM_ARGS']._serialized_start=3141
107
- _globals['_BUILDPROGRAM_ARGS']._serialized_end=3226
108
- _globals['_BUILDPROGRAM_RESULT']._serialized_start=3228
109
- _globals['_BUILDPROGRAM_RESULT']._serialized_end=3263
110
- _globals['_EXECARTIFACT_ARGS']._serialized_start=3265
111
- _globals['_EXECARTIFACT_ARGS']._serialized_end=3348
112
- _globals['_RESETPLUGIN_ARGS']._serialized_start=3350
113
- _globals['_RESETPLUGIN_ARGS']._serialized_end=3389
114
- _globals['_RESETPLUGIN_RESULT']._serialized_start=3391
115
- _globals['_RESETPLUGIN_RESULT']._serialized_end=3411
116
- _globals['_FORMATCODE_ARGS']._serialized_start=3413
117
- _globals['_FORMATCODE_ARGS']._serialized_end=3446
118
- _globals['_FORMATCODE_RESULT']._serialized_start=3448
119
- _globals['_FORMATCODE_RESULT']._serialized_end=3486
120
- _globals['_FORMATPATH_ARGS']._serialized_start=3488
121
- _globals['_FORMATPATH_ARGS']._serialized_end=3519
122
- _globals['_FORMATPATH_RESULT']._serialized_start=3521
123
- _globals['_FORMATPATH_RESULT']._serialized_end=3563
124
- _globals['_LINTPATH_ARGS']._serialized_start=3565
125
- _globals['_LINTPATH_ARGS']._serialized_end=3595
126
- _globals['_LINTPATH_RESULT']._serialized_start=3597
127
- _globals['_LINTPATH_RESULT']._serialized_end=3631
128
- _globals['_OVERRIDEFILE_ARGS']._serialized_start=3633
129
- _globals['_OVERRIDEFILE_ARGS']._serialized_end=3703
130
- _globals['_OVERRIDEFILE_RESULT']._serialized_start=3705
131
- _globals['_OVERRIDEFILE_RESULT']._serialized_end=3784
132
- _globals['_LISTVARIABLES_ARGS']._serialized_start=3786
133
- _globals['_LISTVARIABLES_ARGS']._serialized_end=3835
134
- _globals['_LISTVARIABLES_RESULT']._serialized_start=3838
135
- _globals['_LISTVARIABLES_RESULT']._serialized_end=4071
136
- _globals['_LISTVARIABLES_RESULT_VARIABLESENTRY']._serialized_start=4000
137
- _globals['_LISTVARIABLES_RESULT_VARIABLESENTRY']._serialized_end=4071
138
- _globals['_VARIABLE']._serialized_start=4074
139
- _globals['_VARIABLE']._serialized_end=4222
140
- _globals['_MAPENTRY']._serialized_start=4224
141
- _globals['_MAPENTRY']._serialized_end=4285
142
- _globals['_GETSCHEMATYPEMAPPING_ARGS']._serialized_start=4287
143
- _globals['_GETSCHEMATYPEMAPPING_ARGS']._serialized_end=4385
144
- _globals['_GETSCHEMATYPEMAPPING_RESULT']._serialized_start=4388
145
- _globals['_GETSCHEMATYPEMAPPING_RESULT']._serialized_end=4591
146
- _globals['_GETSCHEMATYPEMAPPING_RESULT_SCHEMATYPEMAPPINGENTRY']._serialized_start=4513
147
- _globals['_GETSCHEMATYPEMAPPING_RESULT_SCHEMATYPEMAPPINGENTRY']._serialized_end=4591
148
- _globals['_VALIDATECODE_ARGS']._serialized_start=4594
149
- _globals['_VALIDATECODE_ARGS']._serialized_end=4729
150
- _globals['_VALIDATECODE_RESULT']._serialized_start=4731
151
- _globals['_VALIDATECODE_RESULT']._serialized_end=4790
152
- _globals['_POSITION']._serialized_start=4792
153
- _globals['_POSITION']._serialized_end=4850
154
- _globals['_LISTDEPFILES_ARGS']._serialized_start=4852
155
- _globals['_LISTDEPFILES_ARGS']._serialized_end=4957
156
- _globals['_LISTDEPFILES_RESULT']._serialized_start=4959
157
- _globals['_LISTDEPFILES_RESULT']._serialized_end=5029
158
- _globals['_LOADSETTINGSFILES_ARGS']._serialized_start=5031
159
- _globals['_LOADSETTINGSFILES_ARGS']._serialized_end=5088
160
- _globals['_LOADSETTINGSFILES_RESULT']._serialized_start=5090
161
- _globals['_LOADSETTINGSFILES_RESULT']._serialized_end=5213
162
- _globals['_CLICONFIG']._serialized_start=5216
163
- _globals['_CLICONFIG']._serialized_end=5475
164
- _globals['_KEYVALUEPAIR']._serialized_start=5477
165
- _globals['_KEYVALUEPAIR']._serialized_end=5519
166
- _globals['_RENAME_ARGS']._serialized_start=5521
167
- _globals['_RENAME_ARGS']._serialized_end=5615
168
- _globals['_RENAME_RESULT']._serialized_start=5617
169
- _globals['_RENAME_RESULT']._serialized_end=5655
170
- _globals['_RENAMECODE_ARGS']._serialized_start=5658
171
- _globals['_RENAMECODE_ARGS']._serialized_end=5857
172
- _globals['_RENAMECODE_ARGS_SOURCECODESENTRY']._serialized_start=5807
173
- _globals['_RENAMECODE_ARGS_SOURCECODESENTRY']._serialized_end=5857
174
- _globals['_RENAMECODE_RESULT']._serialized_start=5860
175
- _globals['_RENAMECODE_RESULT']._serialized_end=6005
176
- _globals['_RENAMECODE_RESULT_CHANGEDCODESENTRY']._serialized_start=5954
177
- _globals['_RENAMECODE_RESULT_CHANGEDCODESENTRY']._serialized_end=6005
178
- _globals['_TEST_ARGS']._serialized_start=6007
179
- _globals['_TEST_ARGS']._serialized_end=6125
180
- _globals['_TEST_RESULT']._serialized_start=6127
181
- _globals['_TEST_RESULT']._serialized_end=6181
182
- _globals['_TESTCASEINFO']._serialized_start=6183
183
- _globals['_TESTCASEINFO']._serialized_end=6265
184
- _globals['_UPDATEDEPENDENCIES_ARGS']._serialized_start=6267
185
- _globals['_UPDATEDEPENDENCIES_ARGS']._serialized_end=6331
186
- _globals['_UPDATEDEPENDENCIES_RESULT']._serialized_start=6333
187
- _globals['_UPDATEDEPENDENCIES_RESULT']._serialized_end=6409
188
- _globals['_KCLTYPE']._serialized_start=6412
189
- _globals['_KCLTYPE']._serialized_end=7039
190
- _globals['_KCLTYPE_PROPERTIESENTRY']._serialized_start=6897
191
- _globals['_KCLTYPE_PROPERTIESENTRY']._serialized_end=6968
192
- _globals['_KCLTYPE_EXAMPLESENTRY']._serialized_start=6970
193
- _globals['_KCLTYPE_EXAMPLESENTRY']._serialized_end=7039
194
- _globals['_DECORATOR']._serialized_start=7042
195
- _globals['_DECORATOR']._serialized_end=7191
196
- _globals['_DECORATOR_KEYWORDSENTRY']._serialized_start=7144
197
- _globals['_DECORATOR_KEYWORDSENTRY']._serialized_end=7191
198
- _globals['_EXAMPLE']._serialized_start=7193
199
- _globals['_EXAMPLE']._serialized_end=7255
200
- _globals['_BUILTINSERVICE']._serialized_start=7258
201
- _globals['_BUILTINSERVICE']._serialized_end=7408
202
- _globals['_KCLVMSERVICE']._serialized_start=7411
203
- _globals['_KCLVMSERVICE']._serialized_end=9093
27
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "spec_pb2", _globals)
28
+ if not _descriptor._USE_C_DESCRIPTORS:
29
+ DESCRIPTOR._loaded_options = None
30
+ _globals["_LOADPACKAGE_RESULT_SCOPESENTRY"]._loaded_options = None
31
+ _globals["_LOADPACKAGE_RESULT_SCOPESENTRY"]._serialized_options = b"8\001"
32
+ _globals["_LOADPACKAGE_RESULT_SYMBOLSENTRY"]._loaded_options = None
33
+ _globals["_LOADPACKAGE_RESULT_SYMBOLSENTRY"]._serialized_options = b"8\001"
34
+ _globals["_LOADPACKAGE_RESULT_NODESYMBOLMAPENTRY"]._loaded_options = None
35
+ _globals["_LOADPACKAGE_RESULT_NODESYMBOLMAPENTRY"]._serialized_options = b"8\001"
36
+ _globals["_LOADPACKAGE_RESULT_SYMBOLNODEMAPENTRY"]._loaded_options = None
37
+ _globals["_LOADPACKAGE_RESULT_SYMBOLNODEMAPENTRY"]._serialized_options = b"8\001"
38
+ _globals["_LOADPACKAGE_RESULT_FULLYQUALIFIEDNAMEMAPENTRY"]._loaded_options = None
39
+ _globals["_LOADPACKAGE_RESULT_FULLYQUALIFIEDNAMEMAPENTRY"]._serialized_options = (
40
+ b"8\001"
41
+ )
42
+ _globals["_LOADPACKAGE_RESULT_PKGSCOPEMAPENTRY"]._loaded_options = None
43
+ _globals["_LOADPACKAGE_RESULT_PKGSCOPEMAPENTRY"]._serialized_options = b"8\001"
44
+ _globals["_LISTVARIABLES_RESULT_VARIABLESENTRY"]._loaded_options = None
45
+ _globals["_LISTVARIABLES_RESULT_VARIABLESENTRY"]._serialized_options = b"8\001"
46
+ _globals["_GETSCHEMATYPEMAPPING_RESULT_SCHEMATYPEMAPPINGENTRY"]._loaded_options = (
47
+ None
48
+ )
49
+ _globals[
50
+ "_GETSCHEMATYPEMAPPING_RESULT_SCHEMATYPEMAPPINGENTRY"
51
+ ]._serialized_options = b"8\001"
52
+ _globals["_RENAMECODE_ARGS_SOURCECODESENTRY"]._loaded_options = None
53
+ _globals["_RENAMECODE_ARGS_SOURCECODESENTRY"]._serialized_options = b"8\001"
54
+ _globals["_RENAMECODE_RESULT_CHANGEDCODESENTRY"]._loaded_options = None
55
+ _globals["_RENAMECODE_RESULT_CHANGEDCODESENTRY"]._serialized_options = b"8\001"
56
+ _globals["_KCLTYPE_PROPERTIESENTRY"]._loaded_options = None
57
+ _globals["_KCLTYPE_PROPERTIESENTRY"]._serialized_options = b"8\001"
58
+ _globals["_KCLTYPE_EXAMPLESENTRY"]._loaded_options = None
59
+ _globals["_KCLTYPE_EXAMPLESENTRY"]._serialized_options = b"8\001"
60
+ _globals["_DECORATOR_KEYWORDSENTRY"]._loaded_options = None
61
+ _globals["_DECORATOR_KEYWORDSENTRY"]._serialized_options = b"8\001"
62
+ _globals["_EXTERNALPKG"]._serialized_start = 27
63
+ _globals["_EXTERNALPKG"]._serialized_end = 76
64
+ _globals["_ARGUMENT"]._serialized_start = 78
65
+ _globals["_ARGUMENT"]._serialized_end = 117
66
+ _globals["_ERROR"]._serialized_start = 119
67
+ _globals["_ERROR"]._serialized_end = 195
68
+ _globals["_MESSAGE"]._serialized_start = 197
69
+ _globals["_MESSAGE"]._serialized_end = 255
70
+ _globals["_PING_ARGS"]._serialized_start = 257
71
+ _globals["_PING_ARGS"]._serialized_end = 283
72
+ _globals["_PING_RESULT"]._serialized_start = 285
73
+ _globals["_PING_RESULT"]._serialized_end = 313
74
+ _globals["_LISTMETHOD_ARGS"]._serialized_start = 315
75
+ _globals["_LISTMETHOD_ARGS"]._serialized_end = 332
76
+ _globals["_LISTMETHOD_RESULT"]._serialized_start = 334
77
+ _globals["_LISTMETHOD_RESULT"]._serialized_end = 379
78
+ _globals["_PARSEFILE_ARGS"]._serialized_start = 381
79
+ _globals["_PARSEFILE_ARGS"]._serialized_end = 476
80
+ _globals["_PARSEFILE_RESULT"]._serialized_start = 478
81
+ _globals["_PARSEFILE_RESULT"]._serialized_end = 564
82
+ _globals["_PARSEPROGRAM_ARGS"]._serialized_start = 566
83
+ _globals["_PARSEPROGRAM_ARGS"]._serialized_end = 666
84
+ _globals["_PARSEPROGRAM_RESULT"]._serialized_start = 668
85
+ _globals["_PARSEPROGRAM_RESULT"]._serialized_end = 758
86
+ _globals["_LOADPACKAGE_ARGS"]._serialized_start = 761
87
+ _globals["_LOADPACKAGE_ARGS"]._serialized_end = 898
88
+ _globals["_LOADPACKAGE_RESULT"]._serialized_start = 901
89
+ _globals["_LOADPACKAGE_RESULT"]._serialized_end = 1916
90
+ _globals["_LOADPACKAGE_RESULT_SCOPESENTRY"]._serialized_start = 1483
91
+ _globals["_LOADPACKAGE_RESULT_SCOPESENTRY"]._serialized_end = 1548
92
+ _globals["_LOADPACKAGE_RESULT_SYMBOLSENTRY"]._serialized_start = 1550
93
+ _globals["_LOADPACKAGE_RESULT_SYMBOLSENTRY"]._serialized_end = 1617
94
+ _globals["_LOADPACKAGE_RESULT_NODESYMBOLMAPENTRY"]._serialized_start = 1619
95
+ _globals["_LOADPACKAGE_RESULT_NODESYMBOLMAPENTRY"]._serialized_end = 1697
96
+ _globals["_LOADPACKAGE_RESULT_SYMBOLNODEMAPENTRY"]._serialized_start = 1699
97
+ _globals["_LOADPACKAGE_RESULT_SYMBOLNODEMAPENTRY"]._serialized_end = 1751
98
+ _globals["_LOADPACKAGE_RESULT_FULLYQUALIFIEDNAMEMAPENTRY"]._serialized_start = 1753
99
+ _globals["_LOADPACKAGE_RESULT_FULLYQUALIFIEDNAMEMAPENTRY"]._serialized_end = 1839
100
+ _globals["_LOADPACKAGE_RESULT_PKGSCOPEMAPENTRY"]._serialized_start = 1841
101
+ _globals["_LOADPACKAGE_RESULT_PKGSCOPEMAPENTRY"]._serialized_end = 1916
102
+ _globals["_LISTOPTIONS_RESULT"]._serialized_start = 1918
103
+ _globals["_LISTOPTIONS_RESULT"]._serialized_end = 1980
104
+ _globals["_OPTIONHELP"]._serialized_start = 1982
105
+ _globals["_OPTIONHELP"]._serialized_end = 2077
106
+ _globals["_SYMBOL"]._serialized_start = 2080
107
+ _globals["_SYMBOL"]._serialized_end = 2276
108
+ _globals["_SCOPE"]._serialized_start = 2279
109
+ _globals["_SCOPE"]._serialized_end = 2465
110
+ _globals["_SYMBOLINDEX"]._serialized_start = 2467
111
+ _globals["_SYMBOLINDEX"]._serialized_end = 2516
112
+ _globals["_SCOPEINDEX"]._serialized_start = 2518
113
+ _globals["_SCOPEINDEX"]._serialized_end = 2566
114
+ _globals["_EXECPROGRAM_ARGS"]._serialized_start = 2569
115
+ _globals["_EXECPROGRAM_ARGS"]._serialized_end = 3033
116
+ _globals["_EXECPROGRAM_RESULT"]._serialized_start = 3035
117
+ _globals["_EXECPROGRAM_RESULT"]._serialized_end = 3139
118
+ _globals["_BUILDPROGRAM_ARGS"]._serialized_start = 3141
119
+ _globals["_BUILDPROGRAM_ARGS"]._serialized_end = 3226
120
+ _globals["_BUILDPROGRAM_RESULT"]._serialized_start = 3228
121
+ _globals["_BUILDPROGRAM_RESULT"]._serialized_end = 3263
122
+ _globals["_EXECARTIFACT_ARGS"]._serialized_start = 3265
123
+ _globals["_EXECARTIFACT_ARGS"]._serialized_end = 3348
124
+ _globals["_RESETPLUGIN_ARGS"]._serialized_start = 3350
125
+ _globals["_RESETPLUGIN_ARGS"]._serialized_end = 3389
126
+ _globals["_RESETPLUGIN_RESULT"]._serialized_start = 3391
127
+ _globals["_RESETPLUGIN_RESULT"]._serialized_end = 3411
128
+ _globals["_FORMATCODE_ARGS"]._serialized_start = 3413
129
+ _globals["_FORMATCODE_ARGS"]._serialized_end = 3446
130
+ _globals["_FORMATCODE_RESULT"]._serialized_start = 3448
131
+ _globals["_FORMATCODE_RESULT"]._serialized_end = 3486
132
+ _globals["_FORMATPATH_ARGS"]._serialized_start = 3488
133
+ _globals["_FORMATPATH_ARGS"]._serialized_end = 3519
134
+ _globals["_FORMATPATH_RESULT"]._serialized_start = 3521
135
+ _globals["_FORMATPATH_RESULT"]._serialized_end = 3563
136
+ _globals["_LINTPATH_ARGS"]._serialized_start = 3565
137
+ _globals["_LINTPATH_ARGS"]._serialized_end = 3595
138
+ _globals["_LINTPATH_RESULT"]._serialized_start = 3597
139
+ _globals["_LINTPATH_RESULT"]._serialized_end = 3631
140
+ _globals["_OVERRIDEFILE_ARGS"]._serialized_start = 3633
141
+ _globals["_OVERRIDEFILE_ARGS"]._serialized_end = 3703
142
+ _globals["_OVERRIDEFILE_RESULT"]._serialized_start = 3705
143
+ _globals["_OVERRIDEFILE_RESULT"]._serialized_end = 3784
144
+ _globals["_LISTVARIABLES_OPTIONS"]._serialized_start = 3786
145
+ _globals["_LISTVARIABLES_OPTIONS"]._serialized_end = 3832
146
+ _globals["_VARIABLELIST"]._serialized_start = 3834
147
+ _globals["_VARIABLELIST"]._serialized_end = 3890
148
+ _globals["_LISTVARIABLES_ARGS"]._serialized_start = 3892
149
+ _globals["_LISTVARIABLES_ARGS"]._serialized_end = 3995
150
+ _globals["_LISTVARIABLES_RESULT"]._serialized_start = 3998
151
+ _globals["_LISTVARIABLES_RESULT"]._serialized_end = 4235
152
+ _globals["_LISTVARIABLES_RESULT_VARIABLESENTRY"]._serialized_start = 4160
153
+ _globals["_LISTVARIABLES_RESULT_VARIABLESENTRY"]._serialized_end = 4235
154
+ _globals["_VARIABLE"]._serialized_start = 4238
155
+ _globals["_VARIABLE"]._serialized_end = 4386
156
+ _globals["_MAPENTRY"]._serialized_start = 4388
157
+ _globals["_MAPENTRY"]._serialized_end = 4449
158
+ _globals["_GETSCHEMATYPEMAPPING_ARGS"]._serialized_start = 4451
159
+ _globals["_GETSCHEMATYPEMAPPING_ARGS"]._serialized_end = 4549
160
+ _globals["_GETSCHEMATYPEMAPPING_RESULT"]._serialized_start = 4552
161
+ _globals["_GETSCHEMATYPEMAPPING_RESULT"]._serialized_end = 4755
162
+ _globals[
163
+ "_GETSCHEMATYPEMAPPING_RESULT_SCHEMATYPEMAPPINGENTRY"
164
+ ]._serialized_start = 4677
165
+ _globals["_GETSCHEMATYPEMAPPING_RESULT_SCHEMATYPEMAPPINGENTRY"]._serialized_end = (
166
+ 4755
167
+ )
168
+ _globals["_VALIDATECODE_ARGS"]._serialized_start = 4758
169
+ _globals["_VALIDATECODE_ARGS"]._serialized_end = 4893
170
+ _globals["_VALIDATECODE_RESULT"]._serialized_start = 4895
171
+ _globals["_VALIDATECODE_RESULT"]._serialized_end = 4954
172
+ _globals["_POSITION"]._serialized_start = 4956
173
+ _globals["_POSITION"]._serialized_end = 5014
174
+ _globals["_LISTDEPFILES_ARGS"]._serialized_start = 5016
175
+ _globals["_LISTDEPFILES_ARGS"]._serialized_end = 5121
176
+ _globals["_LISTDEPFILES_RESULT"]._serialized_start = 5123
177
+ _globals["_LISTDEPFILES_RESULT"]._serialized_end = 5193
178
+ _globals["_LOADSETTINGSFILES_ARGS"]._serialized_start = 5195
179
+ _globals["_LOADSETTINGSFILES_ARGS"]._serialized_end = 5252
180
+ _globals["_LOADSETTINGSFILES_RESULT"]._serialized_start = 5254
181
+ _globals["_LOADSETTINGSFILES_RESULT"]._serialized_end = 5377
182
+ _globals["_CLICONFIG"]._serialized_start = 5380
183
+ _globals["_CLICONFIG"]._serialized_end = 5639
184
+ _globals["_KEYVALUEPAIR"]._serialized_start = 5641
185
+ _globals["_KEYVALUEPAIR"]._serialized_end = 5683
186
+ _globals["_RENAME_ARGS"]._serialized_start = 5685
187
+ _globals["_RENAME_ARGS"]._serialized_end = 5779
188
+ _globals["_RENAME_RESULT"]._serialized_start = 5781
189
+ _globals["_RENAME_RESULT"]._serialized_end = 5819
190
+ _globals["_RENAMECODE_ARGS"]._serialized_start = 5822
191
+ _globals["_RENAMECODE_ARGS"]._serialized_end = 6021
192
+ _globals["_RENAMECODE_ARGS_SOURCECODESENTRY"]._serialized_start = 5971
193
+ _globals["_RENAMECODE_ARGS_SOURCECODESENTRY"]._serialized_end = 6021
194
+ _globals["_RENAMECODE_RESULT"]._serialized_start = 6024
195
+ _globals["_RENAMECODE_RESULT"]._serialized_end = 6169
196
+ _globals["_RENAMECODE_RESULT_CHANGEDCODESENTRY"]._serialized_start = 6118
197
+ _globals["_RENAMECODE_RESULT_CHANGEDCODESENTRY"]._serialized_end = 6169
198
+ _globals["_TEST_ARGS"]._serialized_start = 6171
199
+ _globals["_TEST_ARGS"]._serialized_end = 6289
200
+ _globals["_TEST_RESULT"]._serialized_start = 6291
201
+ _globals["_TEST_RESULT"]._serialized_end = 6345
202
+ _globals["_TESTCASEINFO"]._serialized_start = 6347
203
+ _globals["_TESTCASEINFO"]._serialized_end = 6429
204
+ _globals["_UPDATEDEPENDENCIES_ARGS"]._serialized_start = 6431
205
+ _globals["_UPDATEDEPENDENCIES_ARGS"]._serialized_end = 6495
206
+ _globals["_UPDATEDEPENDENCIES_RESULT"]._serialized_start = 6497
207
+ _globals["_UPDATEDEPENDENCIES_RESULT"]._serialized_end = 6573
208
+ _globals["_KCLTYPE"]._serialized_start = 6576
209
+ _globals["_KCLTYPE"]._serialized_end = 7203
210
+ _globals["_KCLTYPE_PROPERTIESENTRY"]._serialized_start = 7061
211
+ _globals["_KCLTYPE_PROPERTIESENTRY"]._serialized_end = 7132
212
+ _globals["_KCLTYPE_EXAMPLESENTRY"]._serialized_start = 7134
213
+ _globals["_KCLTYPE_EXAMPLESENTRY"]._serialized_end = 7203
214
+ _globals["_DECORATOR"]._serialized_start = 7206
215
+ _globals["_DECORATOR"]._serialized_end = 7355
216
+ _globals["_DECORATOR_KEYWORDSENTRY"]._serialized_start = 7308
217
+ _globals["_DECORATOR_KEYWORDSENTRY"]._serialized_end = 7355
218
+ _globals["_EXAMPLE"]._serialized_start = 7357
219
+ _globals["_EXAMPLE"]._serialized_end = 7419
220
+ _globals["_BUILTINSERVICE"]._serialized_start = 7422
221
+ _globals["_BUILTINSERVICE"]._serialized_end = 7572
222
+ _globals["_KCLVMSERVICE"]._serialized_start = 7575
223
+ _globals["_KCLVMSERVICE"]._serialized_end = 9257
204
224
  # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,3 @@
1
+ from .plugin import Plugin, register_plugin, plugin_agent_addr
2
+
3
+ __all__ = ["Plugin", "register_plugin", "plugin_agent_addr"]
@@ -0,0 +1,82 @@
1
+ import json
2
+ import typing
3
+ from ctypes import *
4
+ from dataclasses import dataclass
5
+
6
+
7
+ @dataclass
8
+ class Plugin:
9
+ name: str
10
+ method_map: typing.Dict[str, typing.Callable]
11
+
12
+
13
+ class PluginContext:
14
+ def __init__(self):
15
+ self._plugin_dict: typing.Dict[str, Plugin] = {}
16
+
17
+ def call_method(self, name: str, args_json: str, kwargs_json: str) -> str:
18
+ return self._call_py_method(name, args_json, kwargs_json)
19
+
20
+ def _call_py_method(self, name: str, args_json: str, kwargs_json: str) -> str:
21
+ try:
22
+ return self._call_py_method_unsafe(name, args_json, kwargs_json)
23
+ except Exception as e:
24
+ return json.dumps({"__kcl_PanicInfo__": f"{e}"})
25
+
26
+ def _call_py_method_unsafe(
27
+ self, name: str, args_json: str, kwargs_json: str
28
+ ) -> str:
29
+ dotIdx = name.rfind(".")
30
+ if dotIdx < 0:
31
+ return ""
32
+
33
+ # kcl_plugin.<module_path>.<method_name>
34
+ module_path = name[:dotIdx]
35
+ method_name = name[dotIdx + 1 :]
36
+ plugin_name = module_path[module_path.rfind(".") + 1 :]
37
+
38
+ method_func = self._plugin_dict.get(
39
+ plugin_name, Plugin(name="", method_map={})
40
+ ).method_map.get(method_name, None)
41
+
42
+ args = []
43
+ kwargs = {}
44
+
45
+ if args_json:
46
+ args = json.loads(args_json)
47
+ if not isinstance(args, list):
48
+ return ""
49
+
50
+ if kwargs_json:
51
+ kwargs = json.loads(kwargs_json)
52
+ if not isinstance(kwargs, dict):
53
+ return ""
54
+
55
+ result = method_func(*args, **kwargs) if method_func else None
56
+ return json.dumps(result)
57
+
58
+
59
+ __plugin_context__ = PluginContext()
60
+ __plugin_method_agent_buffer__ = create_string_buffer(1024)
61
+
62
+
63
+ def register_plugin(
64
+ name: str, method_map: typing.Dict[str, typing.Callable]
65
+ ) -> c_char_p:
66
+ __plugin_context__._plugin_dict[name] = Plugin(name, method_map)
67
+
68
+
69
+ @CFUNCTYPE(c_char_p, c_char_p, c_char_p, c_char_p)
70
+ def plugin_method_agent(method: str, args_json: str, kwargs_json: str) -> c_char_p:
71
+ method = str(method, encoding="utf-8")
72
+ args_json = str(args_json, encoding="utf-8")
73
+ kwargs_json = str(kwargs_json, encoding="utf-8")
74
+
75
+ json_result = __plugin_context__.call_method(method, args_json, kwargs_json)
76
+
77
+ global __plugin_method_agent_buffer__
78
+ __plugin_method_agent_buffer__ = create_string_buffer(json_result.encode("utf-8"))
79
+ return addressof(__plugin_method_agent_buffer__)
80
+
81
+
82
+ plugin_agent_addr = cast(plugin_method_agent, c_void_p).value
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kcl_lib
3
- Version: 0.9.0b1
3
+ Version: 0.9.1
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -13,7 +13,7 @@ Provides-Extra: lint
13
13
  Provides-Extra: test
14
14
  Summary: KCL Programming Language Python Lib
15
15
  License: Apache-2.0
16
- Requires-Python: >=3.8
16
+ Requires-Python: >=3.7
17
17
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
18
18
  Project-URL: Documentation, https://kcl-lang.io
19
19
  Project-URL: Homepage, https://kcl-lang.io
@@ -0,0 +1,10 @@
1
+ kcl_lib-0.9.1.dist-info/METADATA,sha256=_M-zdPhS90DlMxay1JmzbmncaOjOZ2qnG95sh2g_p8Q,1318
2
+ kcl_lib-0.9.1.dist-info/WHEEL,sha256=Edw8OoNb2CnPTRhScFicr6K0_wgwP9F4x8j5Q1d0UwU,131
3
+ kcl_lib/__init__.py,sha256=3EKn2Bb6NvoajnhLym-yQiobUBgdnj46bhe5u_GYo5A,24
4
+ kcl_lib/api/__init__.py,sha256=NN2OSdewCABzsU9t28BWT7e3nMWxmtVyn-FHWnUODVY,68
5
+ kcl_lib/api/spec_pb2.py,sha256=3wGCtwaoe795go7wQCkkgOlrAhGM2npsl8Iznv5Qrss,27815
6
+ kcl_lib/api/service.py,sha256=JMO_qTgQsZ9AbojW3tG15c1SzKxKO2yh4kY2fDgIwIk,8741
7
+ kcl_lib/plugin/__init__.py,sha256=8n67HzfKI8I2E-OWZmE68ZRh88Jzq-Pc61qAmCdMUj8,125
8
+ kcl_lib/plugin/plugin.py,sha256=shHQS4atDxfctMOinoSUOO6Z568P9xB7BoT_aNn-xOw,2505
9
+ kcl_lib/_kcl_lib.cpython-311-aarch64-linux-gnu.so,sha256=1w1Rt42P7mpeJv7hO0hvkxDksuuyiBFJCfbwkDEoASs,22390408
10
+ kcl_lib-0.9.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: maturin (1.5.1)
2
+ Generator: maturin (1.7.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64
@@ -1,8 +0,0 @@
1
- kcl_lib-0.9.0b1.dist-info/METADATA,sha256=loRiHuWUGLdRmIrP547sB0f8a3LaGjPha5IplPV0Pao,1320
2
- kcl_lib-0.9.0b1.dist-info/WHEEL,sha256=rJezEO0Z6B0QBj60bTuiXzpiVI01fMNi1FiYZLZjFxw,131
3
- kcl_lib/api/service.py,sha256=jrIbz39QuaReF1RdviorEoRFEQs7NqueVIZ-kRFsKYY,8612
4
- kcl_lib/api/__init__.py,sha256=NN2OSdewCABzsU9t28BWT7e3nMWxmtVyn-FHWnUODVY,68
5
- kcl_lib/api/spec_pb2.py,sha256=eXnVDKG7Me3mnQhtLQzFtoGfBgRauiu-479rCBiIT54,26357
6
- kcl_lib/__init__.py,sha256=3EKn2Bb6NvoajnhLym-yQiobUBgdnj46bhe5u_GYo5A,24
7
- kcl_lib/_kcl_lib.cpython-311-aarch64-linux-gnu.so,sha256=IBMy0A_smnIg4VQ1bz2FUX0KVYYP5ILUw6Ctjyr7Wrs,26506048
8
- kcl_lib-0.9.0b1.dist-info/RECORD,,