@aiyiran/myclaw 1.1.183 → 1.1.185

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": "@aiyiran/myclaw",
3
- "version": "1.1.183",
3
+ "version": "1.1.185",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -470,8 +470,9 @@ def main():
470
470
 
471
471
  # --scan mode
472
472
  if scan_mode:
473
- if not positional:
474
- print("ERROR: --scan requires <workspace> argument")
473
+ if len(positional) != 1:
474
+ print("ERROR: --scan takes exactly 1 argument: <workspace>")
475
+ print(" --scan auto-scans all agents, no scan path needed")
475
476
  sys.exit(1)
476
477
  workspace = positional[0]
477
478
  output_dir = os.path.join(workspace, REPORT_SUBDIR)
@@ -479,8 +480,8 @@ def main():
479
480
  return
480
481
 
481
482
  # Normal mode: first arg = urls, second arg = workspace
482
- if len(positional) < 2:
483
- print("ERROR: missing <workspace> argument")
483
+ if len(positional) != 2:
484
+ print("ERROR: expected exactly 2 arguments: <urls> <workspace>")
484
485
  sys.exit(1)
485
486
  arg1 = positional[0]
486
487
  workspace = positional[1]