pilot.linkstec 0.0.5__py3-none-any.whl → 0.0.7__py3-none-any.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.
@@ -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
@@ -9,11 +9,11 @@ pilot/conver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  pilot/conver/converfileEncodding.py,sha256=UqjcWO0bzkuTRHLEWrWJkeo3p-P7WuYE7jFKveyPekA,2781
10
10
  pilot/conver/nkf_converter.py,sha256=JqgThmXcdnTGMsLIHUEwe8sc0VGMqDaKCIQTg-UE3WE,1148
11
11
  pilot/generater/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- pilot/generater/vertexai.py,sha256=ZUyrPGHuuUlycMW0efzSCRYvESCfmZb1E-JjUwl8wTM,2279
12
+ pilot/generater/vertexai.py,sha256=1WiecrEE05u7nEpW7G9iZL-CzXJqhyrQgluCk8bPQCo,2573
13
13
  pilot/job/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  pilot/job/job_interface.py,sha256=LL0hfuFfnKnkpQD99jv1hkaAIAFM-JJPrX3PFxN6O_A,120
15
15
  pilot/job/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- pilot/job/impl/base_job.py,sha256=SoBn6XcThAozAGqEMrDReQ4dPlRhFsS3vw3EOQSFH18,13592
16
+ pilot/job/impl/base_job.py,sha256=c8ANXdJZDuO0KEorPhO41uwr0tMTaY1jis0e_Ep3jtg,13572
17
17
  pilot/splitters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  pilot/splitters/cobolsplitter.py,sha256=oPwxKRjA7TyXWaWV3jdy59lJZy1mRn6yxD9ivqFYCuY,5461
19
19
  pilot/unit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -22,8 +22,8 @@ pilot/unit/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  pilot/unit/impl/base_unit.py,sha256=fD9WI5L80m9d1qqr5-I7Bw0jtzK66Ql5Rj2rrQjjZ-Q,1275
23
23
  pilot/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  pilot/util/files.py,sha256=v9uzfzo3Aq4xgnUIASEZeBJoA2nD9Qz_EA3P-FwzGFQ,1896
25
- pilot_linkstec-0.0.5.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
26
- pilot_linkstec-0.0.5.dist-info/METADATA,sha256=uClQOqV2cHnnpDQeaYJYhU7vvbRNI8PVNS0-uh4fIvY,678
27
- pilot_linkstec-0.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
- pilot_linkstec-0.0.5.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
29
- pilot_linkstec-0.0.5.dist-info/RECORD,,
25
+ pilot_linkstec-0.0.7.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
26
+ pilot_linkstec-0.0.7.dist-info/METADATA,sha256=A_N8TQe3dWEYfCDrRwkOyVA7Kx7ba4KhMa0Q4QoQ2iY,678
27
+ pilot_linkstec-0.0.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
+ pilot_linkstec-0.0.7.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
29
+ pilot_linkstec-0.0.7.dist-info/RECORD,,