Repository navigation
Commit 2fd1b55
moc
fix(win): field-report round — extensionless shim, releases layout, pwsh first
From a full field debugging report on a real Windows deployment (anonymized):
- executablePath probed the empty PATHEXT extension first for bare names,
resolving mcode to the extensionless POSIX shim shipped beside mcode.cmd —
spawn then fails with ENOENT. Bare names now match PATHEXT variants only;
commands that already carry an extension (pwsh.exe) still probe directly.
- the candidate pool for the node entry now includes the staged-installer
layout releases/<version>/node_modules/@minimax-ai/code/cli.js — the same
entry .mcode-launcher.cmd targets. A stale flat node_modules (0.2.x) beside
a current releases/<v> now loses the version comparison instead of winning
by proximity.
- the last-resort PowerShell hop prefers pwsh.exe (PS7): PS 5.1 binds
flag-shaped argv as its own named parameters under -File and does not
forward piped stdin through the nested invocation (field-verified pair)1 parent 6dd3f62 commit 2fd1b55
3 files changed
Lines changed: 73 additions & 10 deletions
File tree
- plugins/hetaoBackend/mcode-dynamic-workflows
- checks
- dist
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13939 | 13939 | | |
13940 | 13940 | | |
13941 | 13941 | | |
13942 | | - | |
| 13942 | + | |
13943 | 13943 | | |
13944 | 13944 | | |
13945 | 13945 | | |
| |||
13958 | 13958 | | |
13959 | 13959 | | |
13960 | 13960 | | |
13961 | | - | |
| 13961 | + | |
| 13962 | + | |
13962 | 13963 | | |
13963 | 13964 | | |
13964 | 13965 | | |
| |||
13974 | 13975 | | |
13975 | 13976 | | |
13976 | 13977 | | |
| 13978 | + | |
13977 | 13979 | | |
13978 | 13980 | | |
13979 | | - | |
13980 | | - | |
| 13981 | + | |
| 13982 | + | |
13981 | 13983 | | |
| 13984 | + | |
| 13985 | + | |
| 13986 | + | |
| 13987 | + | |
| 13988 | + | |
13982 | 13989 | | |
13983 | 13990 | | |
13984 | 13991 | | |
| |||
14000 | 14007 | | |
14001 | 14008 | | |
14002 | 14009 | | |
14003 | | - | |
| 14010 | + | |
14004 | 14011 | | |
14005 | 14012 | | |
14006 | 14013 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
17 | 25 | | |
18 | 26 | | |
19 | 27 | | |
| |||
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
| 47 | + | |
39 | 48 | | |
40 | 49 | | |
41 | | - | |
42 | | - | |
| 50 | + | |
| 51 | + | |
43 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
44 | 61 | | |
45 | 62 | | |
46 | 63 | | |
| |||
55 | 72 | | |
56 | 73 | | |
57 | 74 | | |
58 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
59 | 78 | | |
60 | 79 | | |
61 | 80 | | |
| |||
0 commit comments