sophhub 0.4.54 → 0.4.55
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,12 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-install",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"types": [
|
|
5
5
|
"store"
|
|
6
6
|
],
|
|
7
7
|
"displayName": "Agent安装",
|
|
8
8
|
"description": "安装或升级 Sophclaw Agent(含占位替换、备份、post_install 脚本与自动安装 skill)。",
|
|
9
9
|
"changelog": [
|
|
10
|
+
{
|
|
11
|
+
"changes": [
|
|
12
|
+
"check_installed.py 名称不一致不再阻断:identity.name 或 name 变化时自动沿用已有名称,不再报 CONFIG_ERROR"
|
|
13
|
+
],
|
|
14
|
+
"date": "2026-07-09",
|
|
15
|
+
"version": "0.1.10"
|
|
16
|
+
},
|
|
10
17
|
{
|
|
11
18
|
"changes": [
|
|
12
19
|
"check_installed.py 支持同源 Agent 多实例安装:指定不同 openclaw_id 和 workspace 时可安装新实例;指定已有实例 openclaw_id 时正确切换到目标实例进行更新"
|
|
@@ -350,55 +350,11 @@ def detect_status(
|
|
|
350
350
|
|
|
351
351
|
current_name, current_identity_name = current_agent_names(current_entry)
|
|
352
352
|
if desired_name and current_identity_name and current_identity_name != desired_name:
|
|
353
|
-
|
|
354
|
-
"agent_id": agent_id,
|
|
355
|
-
"target_version": agent_def["version"],
|
|
356
|
-
"status": "CONFIG_ERROR",
|
|
357
|
-
"installed": True,
|
|
358
|
-
"installed_by_id": installed_by_id,
|
|
359
|
-
"installed_by_workspace": installed_by_workspace,
|
|
360
|
-
"current_openclaw_id": current_openclaw_id,
|
|
361
|
-
"workspace": current_workspace,
|
|
362
|
-
"desired_workspace": desired_workspace,
|
|
363
|
-
"workspace_exists": True,
|
|
364
|
-
"desired_name": desired_name,
|
|
365
|
-
"desired_openclaw_id": desired_openclaw_id,
|
|
366
|
-
"current_name": current_name,
|
|
367
|
-
"current_identity_name": current_identity_name,
|
|
368
|
-
"agent_dir": current_entry.get("agentDir"),
|
|
369
|
-
"dependencies": dependencies,
|
|
370
|
-
"missing_dependencies": missing_dependencies,
|
|
371
|
-
"reason": "identity_name_mismatch",
|
|
372
|
-
"message": "当前 Agent 的 identity.name 与本次确认名称不一致,请先人工检查配置。",
|
|
373
|
-
}
|
|
374
|
-
result["user_prompt"] = build_user_prompt(result)
|
|
375
|
-
return result
|
|
353
|
+
desired_name = current_identity_name
|
|
376
354
|
|
|
377
355
|
desired_top_level_name = normalized_name(desired_entry.get("name"))
|
|
378
356
|
if desired_top_level_name and current_name and current_name != desired_top_level_name:
|
|
379
|
-
|
|
380
|
-
"agent_id": agent_id,
|
|
381
|
-
"target_version": agent_def["version"],
|
|
382
|
-
"status": "CONFIG_ERROR",
|
|
383
|
-
"installed": True,
|
|
384
|
-
"installed_by_id": installed_by_id,
|
|
385
|
-
"installed_by_workspace": installed_by_workspace,
|
|
386
|
-
"current_openclaw_id": current_openclaw_id,
|
|
387
|
-
"workspace": current_workspace,
|
|
388
|
-
"desired_workspace": desired_workspace,
|
|
389
|
-
"workspace_exists": True,
|
|
390
|
-
"desired_name": desired_name,
|
|
391
|
-
"desired_openclaw_id": desired_openclaw_id,
|
|
392
|
-
"current_name": current_name,
|
|
393
|
-
"current_identity_name": current_identity_name,
|
|
394
|
-
"agent_dir": current_entry.get("agentDir"),
|
|
395
|
-
"dependencies": dependencies,
|
|
396
|
-
"missing_dependencies": missing_dependencies,
|
|
397
|
-
"reason": "name_mismatch",
|
|
398
|
-
"message": "当前 Agent 的 name 与本次确认名称不一致,请先人工检查配置。",
|
|
399
|
-
}
|
|
400
|
-
result["user_prompt"] = build_user_prompt(result)
|
|
401
|
-
return result
|
|
357
|
+
desired_name = current_name
|
|
402
358
|
|
|
403
359
|
installed_version, version_source = detect_installed_version(config_path, agent_id, current_entry)
|
|
404
360
|
target_version = agent_def["version"]
|