pilot.linkstec 0.0.107__tar.gz → 0.0.108__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.
Files changed (89) hide show
  1. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/PKG-INFO +1 -1
  2. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/pyproject.toml +1 -1
  3. pilot_linkstec-0.0.108/src/pilot/job/base/generate/generateJsonBaseJob.py +38 -0
  4. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/base/generate/generateTextBaseJob.py +11 -11
  5. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot.linkstec.egg-info/PKG-INFO +1 -1
  6. pilot_linkstec-0.0.107/src/pilot/job/base/generate/generateJsonBaseJob.py +0 -42
  7. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/LICENSE +0 -0
  8. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/README.md +0 -0
  9. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/setup.cfg +0 -0
  10. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/__init__.py +0 -0
  11. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/base/__init__.py +0 -0
  12. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/base/ai_call.py +0 -0
  13. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/base/ai_info.py +0 -0
  14. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/base/chage_file_tag_base.py +0 -0
  15. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/base/db_operation_base.py +0 -0
  16. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/base/delete_commnents_base.py +0 -0
  17. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/base/file_operation.py +0 -0
  18. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/base/get_file_encoding.py +0 -0
  19. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/base/make_parsing_java_file_order_base.py +0 -0
  20. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/base/split_file_base.py +0 -0
  21. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/client/__init__.py +0 -0
  22. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/client/ai_client.py +0 -0
  23. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/config/__init__.py +0 -0
  24. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/config/config_reader.py +0 -0
  25. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/control/__init__.py +0 -0
  26. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/control/control_interface.py +0 -0
  27. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/control/impl/__init__.py +0 -0
  28. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/control/impl/base_controller.py +0 -0
  29. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/conver/__init__.py +0 -0
  30. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/conver/commentRemover.py +0 -0
  31. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/conver/converfileEncodding.py +0 -0
  32. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/create_python/__init__.py +0 -0
  33. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/create_python/config/__init__.py +0 -0
  34. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/create_python/config/create_file.py +0 -0
  35. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/create_python/create_python.py +0 -0
  36. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/create_python/sample/__init__.py +0 -0
  37. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/create_python/sample/child_sample/__init__.py +0 -0
  38. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/create_python/sample/child_sample/job/__init__.py +0 -0
  39. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/create_python/sample/config/__init__.py +0 -0
  40. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/create_python/sample/config/properties.py +0 -0
  41. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/db/__init__.py +0 -0
  42. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/db/create_table.py +0 -0
  43. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/db/db_connect.py +0 -0
  44. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/db/db_main.py +0 -0
  45. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/db/db_util.py +0 -0
  46. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/db/ddl/__init__.py +0 -0
  47. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/db/dml/__init__.py +0 -0
  48. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/db/sql_executor.py +0 -0
  49. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/db/sql_loader.py +0 -0
  50. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/db/sql_service.py +0 -0
  51. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/file_tool/__init__.py +0 -0
  52. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/file_tool/create_prompt_file.py +0 -0
  53. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/file_tool/json_file_tool.py +0 -0
  54. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/generater/__init__.py +0 -0
  55. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/generater/ai_base.py +0 -0
  56. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/generater/ai_interface.py +0 -0
  57. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/generater/lmstudioai.py +0 -0
  58. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/generater/vera.py +0 -0
  59. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/generater/vertexai.py +0 -0
  60. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/__init__.py +0 -0
  61. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/base/__init__.py +0 -0
  62. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/base/convert/__init__.py +0 -0
  63. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/base/convert/delimiterSwitcherJob.py +0 -0
  64. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/base/convert/encodingTransformerJob.py +0 -0
  65. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/base/convert/tabReplaceJob.py +0 -0
  66. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/base/generate/__init__.py +0 -0
  67. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/base/program/__init__.py +0 -0
  68. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/base/program/cobol/__init__.py +0 -0
  69. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/base/program/cobol/convert/__init__.py +0 -0
  70. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/base/program/cobol/convert/spitPreDigit.py +0 -0
  71. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/base/program/java/__init__.py +0 -0
  72. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/base/program/java/generateDetailDesignPrompt.py +0 -0
  73. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/impl/__init__.py +0 -0
  74. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/impl/base_job.py +0 -0
  75. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/job/job_interface.py +0 -0
  76. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/logging/__init__.py +0 -0
  77. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/logging/logger.py +0 -0
  78. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/prompt/__init__.py +0 -0
  79. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/splitters/__init__.py +0 -0
  80. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/splitters/cobolsplitter.py +0 -0
  81. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/unit/__init__.py +0 -0
  82. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/unit/impl/__init__.py +0 -0
  83. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/unit/impl/base_unit.py +0 -0
  84. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/unit/unit_interface.py +0 -0
  85. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/util/__init__.py +0 -0
  86. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot/util/files.py +0 -0
  87. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot.linkstec.egg-info/SOURCES.txt +0 -0
  88. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot.linkstec.egg-info/dependency_links.txt +0 -0
  89. {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.108}/src/pilot.linkstec.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pilot.linkstec
3
- Version: 0.0.107
3
+ Version: 0.0.108
4
4
  Summary: pilot of the ship, a tool for managing and deploying Python projects.
5
5
  Author-email: wanglr <wanglr1980@gmail.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pilot.linkstec"
3
- version = "0.0.107"
3
+ version = "0.0.108"
4
4
  authors = [
5
5
  { name="wanglr", email="wanglr1980@gmail.com" },
6
6
  ]
@@ -0,0 +1,38 @@
1
+ import json
2
+ import os
3
+ import threading
4
+ import time
5
+
6
+ from pilot.job.impl.base_job import BaseJob
7
+
8
+ from pilot.generater.vera import VeraSingleton
9
+
10
+ class GenerateJsonBaseJob(BaseJob):
11
+
12
+ prompt_content: str
13
+ result_content: str
14
+ result_file_path: str
15
+
16
+ def run(self):
17
+ prompt = self.prompt_content
18
+ # トークン数チェック
19
+ vera_ai = VeraSingleton.get_instance()
20
+ #token_count = vertexai.count_tokens(prompt)
21
+ #if token_count == 0:
22
+ # super().run()
23
+ # return
24
+ #if token_count > 900000:
25
+ # print(f"警告: promptのトークン数が900000を超えています ({token_count} tokens)")
26
+ # super().run()
27
+ # return
28
+ # VertexAI で生成
29
+ start = time.time()
30
+ result = vera_ai.generate_content(prompt)
31
+ end = time.time()
32
+ print(f"Ai 処理時間 {self.file_path}: {end - start:.2f}秒")
33
+
34
+ result_content = result.get('response', '')
35
+ data = json.loads(result_content)
36
+ with open(self.result_file_path, 'w', encoding='utf-8') as f:
37
+ json.dump(data, f, ensure_ascii=False, indent=2)
38
+ super().run()
@@ -5,7 +5,7 @@ import time
5
5
 
6
6
  from pilot.job.impl.base_job import BaseJob
7
7
 
8
- from pilot.generater.vertexai import VertexAISingleton
8
+ from pilot.generater.vera import VeraSingleton
9
9
 
10
10
  class GenerateTextBaseJob(BaseJob):
11
11
 
@@ -16,18 +16,18 @@ class GenerateTextBaseJob(BaseJob):
16
16
  def run(self):
17
17
  prompt = self.prompt_content
18
18
  # トークン数チェック
19
- vertexai = VertexAISingleton.get_instance()
20
- token_count = vertexai.count_tokens(prompt)
21
- if token_count == 0:
22
- super().run()
23
- return
24
- if token_count > 900000:
25
- print(f"警告: promptのトークン数が900000を超えています ({token_count} tokens)")
26
- super().run()
27
- return
19
+ vera_ai = VeraSingleton.get_instance()
20
+ #token_count = vertexai.count_tokens(prompt)
21
+ #if token_count == 0:
22
+ # super().run()
23
+ # return
24
+ #if token_count > 900000:
25
+ # print(f"警告: promptのトークン数が900000を超えています ({token_count} tokens)")
26
+ # super().run()
27
+ # return
28
28
  # VertexAI で生成
29
29
  start = time.time()
30
- result = vertexai.generate_content(prompt)
30
+ result = vera_ai.generate_content(prompt)
31
31
  end = time.time()
32
32
  print(f"AI 処理時間 {self.file_path}: {end - start:.2f}秒")
33
33
  result_content = result.get('response', '')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pilot.linkstec
3
- Version: 0.0.107
3
+ Version: 0.0.108
4
4
  Summary: pilot of the ship, a tool for managing and deploying Python projects.
5
5
  Author-email: wanglr <wanglr1980@gmail.com>
6
6
  License-Expression: MIT
@@ -1,42 +0,0 @@
1
- import json
2
- import os
3
- import threading
4
- import time
5
-
6
- from pilot.job.impl.base_job import BaseJob
7
-
8
- from pilot.generater.vertexai import VertexAISingleton
9
-
10
- class GenerateJsonBaseJob(BaseJob):
11
-
12
- prompt_content: str
13
- result_content: str
14
- result_file_path: str
15
-
16
- def run(self):
17
- #with self._begin_file_lock:
18
- # if not self.change_current_trg_to_begin():
19
- # return
20
- #prompt = self.get_file_content()
21
- prompt = self.prompt_content
22
- # トークン数チェック
23
- vertexai = VertexAISingleton.get_instance()
24
- token_count = vertexai.count_tokens(prompt)
25
- if token_count == 0:
26
- super().run()
27
- return
28
- if token_count > 900000:
29
- print(f"警告: promptのトークン数が900000を超えています ({token_count} tokens)")
30
- super().run()
31
- return
32
- # VertexAI で生成
33
- start = time.time()
34
- result = vertexai.generate_content(prompt)
35
- end = time.time()
36
- print(f"Ai 処理時間 {self.file_path}: {end - start:.2f}秒")
37
-
38
- result_content = result.get('response', '')
39
- data = json.loads(result_content)
40
- with open(self.result_file_path, 'w', encoding='utf-8') as f:
41
- json.dump(data, f, ensure_ascii=False, indent=2)
42
- super().run()