sycommon-python-lib 0.2.12a11__py3-none-any.whl → 0.2.12a13__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.
@@ -134,6 +134,7 @@ class TeamConfig(BaseModel):
134
134
  model_tier: str = "external" # "external"|"internal";internal 时跳过敏感检测
135
135
  sensitive_guard: bool = True # 是否启用敏感信息检测守卫
136
136
  internal_model_name: Optional[str] = None # 敏感降级目标内部模型名(应用层透传)
137
+ sensitive_detector_model_name: Optional[str] = None # 敏感检测分类器专用模型名(与降级目标解耦;None 回退 internal_model_name)
137
138
  sensitive_detect_prompt: Optional[str] = None # 敏感检测提示词(应用层覆盖)
138
139
  sensitive_action: str = "allow" # "allow"=不检测放行;"downgrade"=降级继续;"block"=阻断(整段上下文);"block_user_input"=阻断(仅检测用户输入)
139
140
 
@@ -77,7 +77,10 @@ class DevchatConfig:
77
77
  restartSelf: Optional[Callable[[], Any]] = None
78
78
  corsOrigins: List[str] = field(default_factory=list)
79
79
  maxHistory: int = 500
80
- commandTimeoutSec: float = 1800.0
80
+ # 单次 claude 任务最长运行时间(秒)。默认 1 小时:30 分钟对真实开发
81
+ # 任务太短,到点硬杀致任务白跑(Go 侧 #589000 同因;与 Go
82
+ # devchat.options.commandTimeout 默认值保持一致)。
83
+ commandTimeoutSec: float = 3600.0
81
84
  loginSessionTTL: int = 0 # 登录会话 TTL 秒;0 = 默认 7 天
82
85
 
83
86
  @classmethod
@@ -102,7 +105,7 @@ class DevchatConfig:
102
105
  with contextlib.suppress(Exception):
103
106
  cfg.maxHistory = int(raw.get("maxHistory") or 500)
104
107
  with contextlib.suppress(Exception):
105
- cfg.commandTimeoutSec = float(raw.get("commandTimeoutSec") or 1800.0)
108
+ cfg.commandTimeoutSec = float(raw.get("commandTimeoutSec") or 3600.0)
106
109
  with contextlib.suppress(Exception):
107
110
  cfg.loginSessionTTL = int(raw.get("loginSessionTTL") or raw.get("login_session_ttl") or 0)
108
111
  return cfg
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sycommon-python-lib
3
- Version: 0.2.12a11
3
+ Version: 0.2.12a13
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -138,7 +138,7 @@ sycommon/agent/__init__.py,sha256=mxceAeUifQ-DKvWp7ZEJIFlmOCb5wpYHPGQw3rwEN8I,43
138
138
  sycommon/agent/agent_manager.py,sha256=6GpQHk2PBX4UvvyosGKXtGkuEc5Jh0gi1iZqbyXjg04,18833
139
139
  sycommon/agent/chat_events.py,sha256=t7qWa6OrIWLfqtd1AnqaVP67QWkn1JxpCBTZYQpoLuM,14226
140
140
  sycommon/agent/deep_agent.py,sha256=5RWhVQ4f6gO7rHmFS3uKDN7e-Oog66_ePjjdCN5NT94,93905
141
- sycommon/agent/multi_agent_team.py,sha256=TxcQRSXHWnPnAsQfzcaHRXcaLZy1mtIHpXvK6QGtJcA,35110
141
+ sycommon/agent/multi_agent_team.py,sha256=4mXOvWiS9Vk9mqLrs2BcXwdOgBnJFUWR-JNvFE55SYg,35267
142
142
  sycommon/agent/reasoning_content_patch.py,sha256=HZ_If0qVDHlz_b1mDT3tuTqbExhzRVhP4VgsoDt0JLc,3945
143
143
  sycommon/agent/resume_compactor.py,sha256=CJp3AUqeStr8U2JeWP31DyulomXZdrkLL4kVtLxnwn8,20849
144
144
  sycommon/agent/skills_retry_patch.py,sha256=syDXFpnz8dVV4tCbJXc3XxLCUab8uePfbKfvE8Fmo44,4566
@@ -217,7 +217,7 @@ sycommon/database/txnref.py,sha256=sOFp85PlanCA0oryVpHu53JbM0aSHAVkELWgEJKalLI,7
217
217
  sycommon/devchat/__init__.py,sha256=Z2BgzDKrp_mR165d3a1kftP8lf1-WKz_5xuZMFXR-iw,2288
218
218
  sycommon/devchat/_page.html,sha256=CxzEhC867FawFjlEKk6uCChEX3EoRP4jwdn09C_MdaU,29126
219
219
  sycommon/devchat/_page.py,sha256=4y2h9DEJfL07zIKDhdSNEaN1Rpe-yJsKm7H0QnqZC9o,2404
220
- sycommon/devchat/handler.py,sha256=I3zGT0jc0ZqSlB45BcOEnC5lGelD6VUwNLsetnUUMT8,50409
220
+ sycommon/devchat/handler.py,sha256=ZlslyAxDvxYhjzQWqvqLoj7WaPMSSfB6yj27vbVW9bc,50641
221
221
  sycommon/devchat/login.py,sha256=TF57n0iP3jHgiYs4NdDDgAXlGJNtiKcW8haw9Rd9Jjo,7701
222
222
  sycommon/devchat/store.py,sha256=iAxCJs5jrNbRDCVL4i0QnbEAUGLXtJumf8YsBGwfBe0,4047
223
223
  sycommon/devchat/tasks.py,sha256=ijGHe2gyBfEZ11ylqvRihQDtbF2ugchQ6AzdyNCbD_0,19080
@@ -404,8 +404,8 @@ sycommon/tools/usercache.py,sha256=Zu2oiXISUOojleEYCAS9t06ZzgWSNHCIhCjv4yTtkRw,4
404
404
  sycommon/xxljob/__init__.py,sha256=7eoBlQxv-B39IfRSCY2bkqdGYs1QRe1umAWd88VMEEM,86
405
405
  sycommon/xxljob/sharding.py,sha256=LJ0tle7qSUS32S5ntjzri1aOcPzwL5CFde3W4Rf1AUE,2560
406
406
  sycommon/xxljob/xxljob_service.py,sha256=1yifwIBNGsCIxLnQjHKiBlbsigc_zvPH-dMTZcNxe-Q,7649
407
- sycommon_python_lib-0.2.12a11.dist-info/METADATA,sha256=anp2B5t64V7EKLz2vhFlBH5_fO6bm9-jWa3ZdvcXV4c,8029
408
- sycommon_python_lib-0.2.12a11.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
409
- sycommon_python_lib-0.2.12a11.dist-info/entry_points.txt,sha256=gsR4SssKxDWjRU8ggidzNcdMXDPRSKRS7UaGyNP84Qg,92
410
- sycommon_python_lib-0.2.12a11.dist-info/top_level.txt,sha256=RgphKrg7nJyZ7irJqbxFr-5H2LUYTvI7ivoWZH2hcD0,29
411
- sycommon_python_lib-0.2.12a11.dist-info/RECORD,,
407
+ sycommon_python_lib-0.2.12a13.dist-info/METADATA,sha256=sZG1xI-LQjE2gcrul2JEsy4pnDWwCJdDQ5O46ZR6fKE,8029
408
+ sycommon_python_lib-0.2.12a13.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
409
+ sycommon_python_lib-0.2.12a13.dist-info/entry_points.txt,sha256=gsR4SssKxDWjRU8ggidzNcdMXDPRSKRS7UaGyNP84Qg,92
410
+ sycommon_python_lib-0.2.12a13.dist-info/top_level.txt,sha256=RgphKrg7nJyZ7irJqbxFr-5H2LUYTvI7ivoWZH2hcD0,29
411
+ sycommon_python_lib-0.2.12a13.dist-info/RECORD,,