@hupan56/wlkj 3.1.26 → 3.1.27

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.1.26",
3
+ "version": "3.1.27",
4
4
  "description": "AI Product R&D Workflow - PRD/Prototype/Search/Task/Report",
5
5
  "bin": {
6
6
  "wlkj": "bin/cli.js"
@@ -59,6 +59,8 @@ from foundation.core.paths import get_repo_root, get_developer, get_developer_in
59
59
 
60
60
  SCRIPTS_DIR = str(get_repo_root())
61
61
  sys.path.insert(0, SCRIPTS_DIR)
62
+ # ⚠ run_script 需要搜 scripts/ 目录,SCRIPTS_DIR 是仓库根不是 scripts/
63
+ SCRIPTS_SEARCH_DIR = os.path.join(SCRIPTS_DIR, '.qoder', 'scripts')
62
64
 
63
65
  BASE = SCRIPTS_DIR
64
66
  CODE_DIR = os.path.join(BASE, 'data', 'code')
@@ -97,10 +99,10 @@ def run_script(script, *args, timeout=1800):
97
99
  if not script.endswith('.py'):
98
100
  script = script + '.py'
99
101
  # 先试 scripts/根
100
- cand = os.path.join(SCRIPTS_DIR, script)
102
+ cand = os.path.join(SCRIPTS_SEARCH_DIR, script)
101
103
  if not os.path.isfile(cand):
102
104
  # 递归找 scripts/**/<script>
103
- hits = glob.glob(os.path.join(SCRIPTS_DIR, '**', script), recursive=True)
105
+ hits = glob.glob(os.path.join(SCRIPTS_SEARCH_DIR, '**', script), recursive=True)
104
106
  if hits:
105
107
  cand = hits[0]
106
108
  else: