pilot.linkstec 0.0.5__tar.gz → 0.0.7__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 pilot.linkstec might be problematic. Click here for more details.

Files changed (33) hide show
  1. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/PKG-INFO +1 -1
  2. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/pyproject.toml +1 -1
  3. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/generater/vertexai.py +9 -2
  4. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/job/impl/base_job.py +1 -1
  5. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot.linkstec.egg-info/PKG-INFO +1 -1
  6. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/LICENSE +0 -0
  7. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/README.md +0 -0
  8. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/setup.cfg +0 -0
  9. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/__init__.py +0 -0
  10. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/config/__init__.py +0 -0
  11. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/config/config_reader.py +0 -0
  12. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/control/__init__.py +0 -0
  13. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/control/control_interface.py +0 -0
  14. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/control/impl/__init__.py +0 -0
  15. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/control/impl/base_controller.py +0 -0
  16. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/conver/__init__.py +0 -0
  17. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/conver/converfileEncodding.py +0 -0
  18. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/conver/nkf_converter.py +0 -0
  19. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/generater/__init__.py +0 -0
  20. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/job/__init__.py +0 -0
  21. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/job/impl/__init__.py +0 -0
  22. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/job/job_interface.py +0 -0
  23. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/splitters/__init__.py +0 -0
  24. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/splitters/cobolsplitter.py +0 -0
  25. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/unit/__init__.py +0 -0
  26. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/unit/impl/__init__.py +0 -0
  27. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/unit/impl/base_unit.py +0 -0
  28. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/unit/unit_interface.py +0 -0
  29. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/util/__init__.py +0 -0
  30. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot/util/files.py +0 -0
  31. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot.linkstec.egg-info/SOURCES.txt +0 -0
  32. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/src/pilot.linkstec.egg-info/dependency_links.txt +0 -0
  33. {pilot_linkstec-0.0.5 → pilot_linkstec-0.0.7}/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.5
3
+ Version: 0.0.7
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.5"
3
+ version = "0.0.7"
4
4
  authors = [
5
5
  { name="wanglr", email="wanglr1980@gmail.com" },
6
6
  ]
@@ -33,7 +33,7 @@ class VertexAISingleton:
33
33
  response = self.model.generate_content(prompt)
34
34
  return {
35
35
  "prompt": prompt,
36
- "response": response.text,
36
+ "response": self._remove_code_fence(response.text),
37
37
  "success": True,
38
38
  "error": None
39
39
  }
@@ -58,7 +58,14 @@ class VertexAISingleton:
58
58
  print(f"トークン計算失敗: {e}")
59
59
  return 0
60
60
 
61
- @classmethod
61
+ def _remove_code_fence(self, text: str) -> str:
62
+ lines = text.splitlines()
63
+ if lines and lines[0].startswith("```"):
64
+ lines = lines[1:]
65
+ if lines and lines[-1].startswith("```"):
66
+ lines = lines[:-1]
67
+ return "\n".join(lines)
68
+
62
69
  def get_instance(cls, model_name: str = "gemini-2.5-pro") -> 'VertexAISingleton':
63
70
  """インスタンスを取得"""
64
71
  return cls(model_name)
@@ -7,7 +7,7 @@ from pilot.config.config_reader import ConfigReader
7
7
 
8
8
  class BaseJob(JobInterface):
9
9
  def __init__(self):
10
- self.config_dto = ConfigReader().get_dto()
10
+ self.config_dto = None
11
11
  self._current_step = None
12
12
  self._file_path = None
13
13
  self._step_index = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pilot.linkstec
3
- Version: 0.0.5
3
+ Version: 0.0.7
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
File without changes
File without changes
File without changes