@hupan56/wlkj 3.3.16 → 3.3.17

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hupan56/wlkj",
3
- "version": "3.3.16",
3
+ "version": "3.3.17",
4
4
  "description": "AI Product R&D Workflow - PRD/Prototype/Search/Task/Report",
5
5
  "bin": {
6
6
  "wlkj": "bin/cli.js"
@@ -396,6 +396,9 @@ def find_python_with_core_deps():
396
396
  def rewrite_mcp_json_for_launcher():
397
397
  """把 mcp.json 里所有 python MCP (kg/mysql/lanhu) 改成 launcher 模式。
398
398
 
399
+ ★ kg 走云平台 SSE url(共识),不走 launcher——在 for srv 循环已配 SSE,
400
+ 这里跳过 kg(不改 launcher),保住 SSE 配置。
401
+
399
402
  旧 (写死路径): {"command": "E:\\...\\python.exe", "args": ["E:\\...\\server.py"]}
400
403
  新 (launcher): {"command": "<py cmd>", "args": ["<home>/.qoderwork/mcp_launcher.py", "<name>"]}
401
404
 
@@ -112,9 +112,22 @@ def main():
112
112
  parser.add_argument("--list", action="store_true", help="只列出项目,不写配置")
113
113
  args = parser.parse_args()
114
114
 
115
- # 1. 收集邮箱密码
116
- email = args.email or os.environ.get("WLKJ_EMAIL") or input("平台邮箱: ").strip()
117
- password = args.password or os.environ.get("WLKJ_PASSWORD") or input("平台密码: ").strip()
115
+ # 1. 收集邮箱密码(非交互环境优雅跳过,不崩 EOFError)
116
+ def _safe_input(prompt):
117
+ """交互环境 input,非交互返回空(不崩 EOFError)。"""
118
+ if not sys.stdin.isatty():
119
+ print(f" [跳过] 非交互环境,{prompt.strip()} 需手动配置")
120
+ print(f" 手动连平台: python .qoder/scripts/domain/kg/switch_project.py --email <邮箱> --password <密码>")
121
+ return ""
122
+ return input(prompt).strip()
123
+
124
+ email = args.email or os.environ.get("WLKJ_EMAIL") or _safe_input("平台邮箱: ")
125
+ password = args.password or os.environ.get("WLKJ_PASSWORD") or _safe_input("平台密码: ")
126
+ if not email or not password:
127
+ print(" [提示] 未配置平台凭据,跳过云平台绑定。")
128
+ print(" 绑定后 kg MCP 走云平台(81241实体+43工具),不绑定则走本地 kg.duckdb(空)。")
129
+ print(" 绑定方式: 设环境变量 WLKJ_EMAIL/WLKJ_PASSWORD 或手动跑 switch_project.py")
130
+ sys.exit(0)
118
131
 
119
132
  # 2. 拉项目列表
120
133
  print(f"连接平台 {args.base_url} ...")