@@ -67,7 +67,6 @@ afterEach(() => {
6767describe ( "secret provider integration presets" , ( ) => {
6868 it ( "materializes plugin manifest exec providers without provider-specific core code" , ( ) => {
6969 const rootDir = makeTempDir ( ) ;
70- const nodePath = fs . realpathSync ( process . execPath ) ;
7170 fs . writeFileSync ( path . join ( rootDir , "index.ts" ) , "export default {};\n" , "utf8" ) ;
7271 makeSecureDir ( path . join ( rootDir , "bin" ) ) ;
7372 writeSecureFile ( path . join ( rootDir , "bin" , "resolve.mjs" ) , "process.stdin.resume();\n" ) ;
@@ -128,7 +127,7 @@ describe("secret provider integration presets", () => {
128127 ok : true ,
129128 providerConfig : {
130129 source : "exec" ,
131- command : nodePath ,
130+ command : process . execPath ,
132131 args : [ fs . realpathSync ( path . join ( rootDir , "bin" , "resolve.mjs" ) ) , "--profile" , "work" ] ,
133132 timeoutMs : 3000 ,
134133 noOutputTimeoutMs : 3000 ,
@@ -137,16 +136,14 @@ describe("secret provider integration presets", () => {
137136 env : {
138137 ACME_PROFILE : "work" ,
139138 } ,
140- trustedDirs : [ path . dirname ( nodePath ) , rootDir ] ,
141- allowInsecurePath : true ,
139+ trustedDirs : [ path . dirname ( process . execPath ) , rootDir ] ,
142140 jsonOnly : false ,
143141 } ,
144142 } ) ;
145143 } ) ;
146144
147145 it ( "normalizes manifest exec provider options to SecretRef provider schema limits" , ( ) => {
148146 const rootDir = makeTempDir ( ) ;
149- const nodePath = fs . realpathSync ( process . execPath ) ;
150147 fs . writeFileSync ( path . join ( rootDir , "index.ts" ) , "export default {};\n" , "utf8" ) ;
151148 writeSecureFile ( path . join ( rootDir , "resolve.mjs" ) , "process.stdin.resume();\n" ) ;
152149 fs . writeFileSync (
@@ -196,11 +193,10 @@ describe("secret provider integration presets", () => {
196193 ok : true ,
197194 providerConfig : {
198195 source : "exec" ,
199- command : nodePath ,
196+ command : process . execPath ,
200197 args : [ fs . realpathSync ( path . join ( rootDir , "resolve.mjs" ) ) , "ok" ] ,
201- trustedDirs : [ path . dirname ( nodePath ) , rootDir ] ,
198+ trustedDirs : [ path . dirname ( process . execPath ) , rootDir ] ,
202199 passEnv : [ "GOOD_ENV" ] ,
203- allowInsecurePath : true ,
204200 } ,
205201 } ) ;
206202 } ) ;
@@ -569,7 +565,6 @@ describe("secret provider integration presets", () => {
569565 "});" ,
570566 ] . join ( "\n" ) ,
571567 ) ;
572- fs . chmodSync ( resolverPath , 0o600 ) ;
573568 fs . writeFileSync (
574569 path . join ( rootDir , "openclaw.plugin.json" ) ,
575570 JSON . stringify ( {
0 commit comments