vibego 0.2.48__py3-none-any.whl → 0.2.49__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.
Potentially problematic release.
This version of vibego might be problematic. Click here for more details.
- bot.py +23 -3
- {vibego-0.2.48.dist-info → vibego-0.2.49.dist-info}/METADATA +1 -1
- {vibego-0.2.48.dist-info → vibego-0.2.49.dist-info}/RECORD +7 -7
- vibego_cli/__init__.py +1 -1
- {vibego-0.2.48.dist-info → vibego-0.2.49.dist-info}/WHEEL +0 -0
- {vibego-0.2.48.dist-info → vibego-0.2.49.dist-info}/entry_points.txt +0 -0
- {vibego-0.2.48.dist-info → vibego-0.2.49.dist-info}/top_level.txt +0 -0
bot.py
CHANGED
|
@@ -4799,12 +4799,18 @@ def _read_session_meta_cwd(path: Path) -> Optional[str]:
|
|
|
4799
4799
|
|
|
4800
4800
|
|
|
4801
4801
|
def _find_latest_claudecode_rollout(pointer: Path) -> Optional[Path]:
|
|
4802
|
-
"""ClaudeCode 专用:在缺少 cwd 元数据时按更新时间选择最新会话文件。
|
|
4802
|
+
"""ClaudeCode 专用:在缺少 cwd 元数据时按更新时间选择最新会话文件。
|
|
4803
|
+
|
|
4804
|
+
注意:会排除 agent-*.jsonl 文件,因为这些是 agent 的 sidechain 会话,
|
|
4805
|
+
所有消息都标记为 isSidechain=true,会被忽略不处理。
|
|
4806
|
+
"""
|
|
4803
4807
|
|
|
4804
4808
|
pointer_target = _read_pointer_path(pointer)
|
|
4805
4809
|
candidates: List[Path] = []
|
|
4806
4810
|
if pointer_target is not None:
|
|
4807
|
-
|
|
4811
|
+
# 如果 pointer 指向 agent 文件,跳过
|
|
4812
|
+
if not pointer_target.name.startswith("agent-"):
|
|
4813
|
+
candidates.append(pointer_target)
|
|
4808
4814
|
|
|
4809
4815
|
search_roots: List[Path] = []
|
|
4810
4816
|
if MODEL_SESSION_ROOT:
|
|
@@ -4829,7 +4835,9 @@ def _find_latest_claudecode_rollout(pointer: Path) -> Optional[Path]:
|
|
|
4829
4835
|
continue
|
|
4830
4836
|
for rollout in real_root.glob(pattern):
|
|
4831
4837
|
if rollout.is_file():
|
|
4832
|
-
|
|
4838
|
+
# 排除 agent-*.jsonl 文件
|
|
4839
|
+
if not rollout.name.startswith("agent-"):
|
|
4840
|
+
candidates.append(rollout)
|
|
4833
4841
|
|
|
4834
4842
|
latest_path: Optional[Path] = None
|
|
4835
4843
|
latest_mtime = -1.0
|
|
@@ -4851,6 +4859,18 @@ def _find_latest_claudecode_rollout(pointer: Path) -> Optional[Path]:
|
|
|
4851
4859
|
latest_mtime = mtime
|
|
4852
4860
|
latest_path = Path(real_rollout)
|
|
4853
4861
|
|
|
4862
|
+
# 记录找到的会话文件
|
|
4863
|
+
if latest_path:
|
|
4864
|
+
worker_log.info(
|
|
4865
|
+
"ClaudeCode 找到最新会话文件(已排除 agent-* 文件)",
|
|
4866
|
+
extra={"session_file": str(latest_path), "mtime": latest_mtime}
|
|
4867
|
+
)
|
|
4868
|
+
else:
|
|
4869
|
+
worker_log.warning(
|
|
4870
|
+
"ClaudeCode 未找到有效的会话文件(已排除 agent-* 文件)",
|
|
4871
|
+
extra={"search_roots": [str(r) for r in search_roots]}
|
|
4872
|
+
)
|
|
4873
|
+
|
|
4854
4874
|
return latest_path
|
|
4855
4875
|
|
|
4856
4876
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bot.py,sha256=
|
|
1
|
+
bot.py,sha256=EEU9Z-X1QcsIN70nKNDA19zYGoJLt7BKWyQpDNTPtEU,274675
|
|
2
2
|
logging_setup.py,sha256=gvxHi8mUwK3IhXJrsGNTDo-DR6ngkyav1X-tvlBF_IE,4613
|
|
3
3
|
master.py,sha256=Jwxf6I94jOADzb9Xio1wb-tWy5wgQ9PlmdpKW4mhQMg,117114
|
|
4
4
|
project_repository.py,sha256=UcthtSGOJK0cTE5bQCneo3xkomRG-kyc1N1QVqxeHIs,17577
|
|
@@ -426,14 +426,14 @@ tasks/constants.py,sha256=tS1kZxBIUm3JJUMHm25XI-KHNUZl5NhbbuzjzL_rF-c,299
|
|
|
426
426
|
tasks/fsm.py,sha256=rKXXLEieQQU4r2z_CZUvn1_70FXiZXBBugF40gpe_tQ,1476
|
|
427
427
|
tasks/models.py,sha256=N_qqRBo9xMSV0vbn4k6bLBXT8C_dp_oTFUxvdx16ZQM,2459
|
|
428
428
|
tasks/service.py,sha256=w_S_aWiVqRXzXEpimLDsuCCCX2lB5uDkff9aKThBw9c,41916
|
|
429
|
-
vibego_cli/__init__.py,sha256=
|
|
429
|
+
vibego_cli/__init__.py,sha256=7Np_Z91NsqtK85HTKtupzofb9YVJgXJieZKkTPmVaEo,311
|
|
430
430
|
vibego_cli/__main__.py,sha256=qqTrYmRRLe4361fMzbI3-CqpZ7AhTofIHmfp4ykrrBY,158
|
|
431
431
|
vibego_cli/config.py,sha256=VxkPJMq01tA3h3cOkH-z_tiP7pMgfSGGicRvUnCWkhI,3054
|
|
432
432
|
vibego_cli/deps.py,sha256=1nRXI7Dd-S1hYE8DligzK5fIluQWETRUj4_OKL0DikQ,1419
|
|
433
433
|
vibego_cli/main.py,sha256=X__NXwZnIDIFbdKSTbNyZgZHKcPlN0DQz9sqTI1aQ9E,12158
|
|
434
434
|
vibego_cli/data/worker_requirements.txt,sha256=QSt30DSSSHtfucTFPpc7twk9kLS5rVLNTcvDiagxrZg,62
|
|
435
|
-
vibego-0.2.
|
|
436
|
-
vibego-0.2.
|
|
437
|
-
vibego-0.2.
|
|
438
|
-
vibego-0.2.
|
|
439
|
-
vibego-0.2.
|
|
435
|
+
vibego-0.2.49.dist-info/METADATA,sha256=5bs92IsoIbJ5khDjuUofeH1IKygMdi0nRmWkRhvqrAw,10519
|
|
436
|
+
vibego-0.2.49.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
437
|
+
vibego-0.2.49.dist-info/entry_points.txt,sha256=Lsy_zm-dlyxt8-9DL9blBReIwU2k22c8-kifr46ND1M,48
|
|
438
|
+
vibego-0.2.49.dist-info/top_level.txt,sha256=R56CT3nW5H5v3ce0l3QDN4-C4qxTrNWzRTwrxnkDX4U,69
|
|
439
|
+
vibego-0.2.49.dist-info/RECORD,,
|
vibego_cli/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|