openclaw-weiyuan-init 1.0.110 → 1.0.111

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.
Files changed (2) hide show
  1. package/lib/commands.js +4 -0
  2. package/package.json +1 -1
package/lib/commands.js CHANGED
@@ -674,6 +674,10 @@ async function runInit(options) {
674
674
  let spinner = ora('检测到已接入微元系统,直接加入项目...').start();
675
675
  try {
676
676
  await runAcrossServerCandidates(serverCandidates, 'join_existing_workspace', async (candidate) => {
677
+ const refreshed = await createIdentityFile(identityPath, candidate, workspacePath);
678
+ if (!refreshed || !refreshed.created) {
679
+ throw new Error(refreshed && refreshed.error ? refreshed.error : 'identity_refresh_failed');
680
+ }
677
681
  const identity = await fs.readJson(identityPath);
678
682
  identity.serverBaseUrl = normalizeBusinessServerUrl(candidate);
679
683
  await fs.writeJson(identityPath, identity, { spaces: 2 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-weiyuan-init",
3
- "version": "1.0.110",
3
+ "version": "1.0.111",
4
4
  "description": "OpenClaw Weiyuan Skill 一键初始化工具",
5
5
  "main": "bin/cli.js",
6
6
  "bin": {