import{c as e}from"./errors-pXKbCKbL.js";import{a as t,c as n,i as r,r as i}from"./fsStore-BzLA1cBc.js";var a=class{async list(t){if(!this.validateScope(t))throw new e(t);let n=this.resolvePath(t);return{type:`entries`,entries:this.readConfig(n),filePath:n}}async switchProfile(e,t,n){throw Error(`Tool ${this.toolId} does not support profile switching`)}async inspect(t){if(!this.validateScope(t))throw new e(t);let n=this.resolvePath(t);if(!i(n))return{path:n,exists:!1};let a=r(n),o=this.readConfig(n);return{path:n,exists:!0,content:JSON.stringify(o,null,2),size:a?.size,lastModified:a?.lastModified}}async edit(e,t){throw Error(`Tool ${this.toolId} does not support edit for ${e}`)}readConfig(e){return t(e)}writeConfig(e,t,r=!0){n(e,t,r)}};export{a as t};