@aiyiran/myclaw 1.1.60 → 1.1.61

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.
@@ -2340,7 +2340,7 @@
2340
2340
  if (deploy.agent && deploy.session) {
2341
2341
  var sessionParam = 'agent:' + deploy.agent + ':' + deploy.session;
2342
2342
  setTimeout(function () {
2343
- window.open('/chat?session=' + encodeURIComponent(sessionParam), '_blank');
2343
+ window.location.href = '/chat?session=' + encodeURIComponent(sessionParam);
2344
2344
  }, 10000);
2345
2345
  }
2346
2346
  } else if (res.code === 'not_ready') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.1.60",
3
+ "version": "1.1.61",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -143,7 +143,18 @@ def choose_entry_file(target_dir: Path):
143
143
 
144
144
 
145
145
  def build_instance_name(source_dir: Path, remix_dir: Path):
146
- base = f"{datetime.now().strftime('%m%d')}_{source_dir.name}_{datetime.now().strftime('%H%M')}"
146
+ import re
147
+ # source_dir 可能是版本子目录(如 v1/),拆出业务名和版本号
148
+ if re.match(r'^v\d+$', source_dir.name):
149
+ folder_name = source_dir.parent.name
150
+ version_str = source_dir.name
151
+ else:
152
+ folder_name = source_dir.name
153
+ version_str = ''
154
+ now = datetime.now()
155
+ base = f"{now.strftime('%m%d')}_{folder_name}_{now.strftime('%H%M')}"
156
+ if version_str:
157
+ base = f"{base}_{version_str}"
147
158
  candidate = base
148
159
  suffix = 2
149
160
  while (remix_dir / candidate).exists():