alchemylab 1.4.9 → 1.4.10
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/dist/cli.js +2 -2
- package/dist/http-server.js +2 -2
- package/dist/index.js +2 -2
- package/dist/mcp-direct.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1634,12 +1634,12 @@ e&&(this.pollingStatus=n.AUTHENTICATED,this.tokenResult=e,this.stopPolling(),r&&
|
|
|
1634
1634
|
function r(){const e=process.env.ALCHEMY_OPENCODE_DIR
|
|
1635
1635
|
if(e)return e
|
|
1636
1636
|
try{const e=("undefined"!=typeof require?require:t(4245)).resolve("alchemylab-opencode/package.json")
|
|
1637
|
-
return(0,n.dirname)(e)}catch{}}function s(e){return
|
|
1637
|
+
return(0,n.dirname)(e)}catch{}}function s(e){return e>=24}function o(e,t){return{command:function(){try{const e=(0,a.execFileSync)("node",["--version"],{encoding:"utf8"}).trim()
|
|
1638
1638
|
if(s(parseInt(e.replace("v","").split(".")[0],10)))return"node"}catch{}const e=process.env.NVM_DIR||(0,n.join)(process.env.HOME||"",".nvm"),t=(0,n.join)(e,"versions","node")
|
|
1639
1639
|
if((0,i.existsSync)(t))try{const e=(0,i.readdirSync)(t).filter((e=>s(parseInt(e.replace("v","").split(".")[0],10)))).sort(((e,t)=>{const r=parseInt(e.replace("v","").split(".")[0],10)
|
|
1640
1640
|
return parseInt(t.replace("v","").split(".")[0],10)-r}))
|
|
1641
1641
|
if(e.length>0){const r=(0,n.join)(t,e[0],"bin","node")
|
|
1642
|
-
if((0,i.existsSync)(r))return r}}catch{}throw Error(`AlchemyLab requires Node.js
|
|
1642
|
+
if((0,i.existsSync)(r))return r}}catch{}throw Error(`AlchemyLab requires Node.js 24 or later to run the OpenCode server.\nYour current version: ${process.version}\nInstall a compatible version: nvm install 24 (or download from https://nodejs.org)`)}(),prependArgs:["--no-warnings",(0,n.join)(e,t)]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.findOpencodeDir=r,exports.resolveServeCommand=function(){const e=r()
|
|
1643
1643
|
return e?o((0,n.join)(e,"dist"),"serve.js"):{command:"opencode",prependArgs:["serve"]}},exports.resolveRunCommand=function(){const e=r()
|
|
1644
1644
|
return e?o((0,n.join)(e,"dist"),"run.js"):{command:"opencode",prependArgs:[]}}
|
|
1645
1645
|
const n=t(6928),i=t(9896),a=t(5317)},9266(e,exports,t){"use strict"
|
package/dist/http-server.js
CHANGED
|
@@ -5163,12 +5163,12 @@ e&&(this.pollingStatus=s.AUTHENTICATED,this.tokenResult=e,this.stopPolling(),r&&
|
|
|
5163
5163
|
function r(){const e=process.env.ALCHEMY_OPENCODE_DIR
|
|
5164
5164
|
if(e)return e
|
|
5165
5165
|
try{const e=("undefined"!=typeof require?require:t(4245)).resolve("alchemylab-opencode/package.json")
|
|
5166
|
-
return(0,s.dirname)(e)}catch{}}function n(e){return
|
|
5166
|
+
return(0,s.dirname)(e)}catch{}}function n(e){return e>=24}function o(e,t){return{command:function(){try{const e=(0,a.execFileSync)("node",["--version"],{encoding:"utf8"}).trim()
|
|
5167
5167
|
if(n(parseInt(e.replace("v","").split(".")[0],10)))return"node"}catch{}const e=process.env.NVM_DIR||(0,s.join)(process.env.HOME||"",".nvm"),t=(0,s.join)(e,"versions","node")
|
|
5168
5168
|
if((0,i.existsSync)(t))try{const e=(0,i.readdirSync)(t).filter((e=>n(parseInt(e.replace("v","").split(".")[0],10)))).sort(((e,t)=>{const r=parseInt(e.replace("v","").split(".")[0],10)
|
|
5169
5169
|
return parseInt(t.replace("v","").split(".")[0],10)-r}))
|
|
5170
5170
|
if(e.length>0){const r=(0,s.join)(t,e[0],"bin","node")
|
|
5171
|
-
if((0,i.existsSync)(r))return r}}catch{}throw Error(`AlchemyLab requires Node.js
|
|
5171
|
+
if((0,i.existsSync)(r))return r}}catch{}throw Error(`AlchemyLab requires Node.js 24 or later to run the OpenCode server.\nYour current version: ${process.version}\nInstall a compatible version: nvm install 24 (or download from https://nodejs.org)`)}(),prependArgs:["--no-warnings",(0,s.join)(e,t)]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.findOpencodeDir=r,exports.resolveServeCommand=function(){const e=r()
|
|
5172
5172
|
return e?o((0,s.join)(e,"dist"),"serve.js"):{command:"opencode",prependArgs:["serve"]}},exports.resolveRunCommand=function(){const e=r()
|
|
5173
5173
|
return e?o((0,s.join)(e,"dist"),"run.js"):{command:"opencode",prependArgs:[]}}
|
|
5174
5174
|
const s=t(6928),i=t(9896),a=t(5317)},9072(e,exports,t){"use strict"
|
package/dist/index.js
CHANGED
|
@@ -5251,12 +5251,12 @@ e&&(this.pollingStatus=s.AUTHENTICATED,this.tokenResult=e,this.stopPolling(),r&&
|
|
|
5251
5251
|
function r(){const e=process.env.ALCHEMY_OPENCODE_DIR
|
|
5252
5252
|
if(e)return e
|
|
5253
5253
|
try{const e=("undefined"!=typeof require?require:t(4245)).resolve("alchemylab-opencode/package.json")
|
|
5254
|
-
return(0,s.dirname)(e)}catch{}}function n(e){return
|
|
5254
|
+
return(0,s.dirname)(e)}catch{}}function n(e){return e>=24}function o(e,t){return{command:function(){try{const e=(0,a.execFileSync)("node",["--version"],{encoding:"utf8"}).trim()
|
|
5255
5255
|
if(n(parseInt(e.replace("v","").split(".")[0],10)))return"node"}catch{}const e=process.env.NVM_DIR||(0,s.join)(process.env.HOME||"",".nvm"),t=(0,s.join)(e,"versions","node")
|
|
5256
5256
|
if((0,i.existsSync)(t))try{const e=(0,i.readdirSync)(t).filter((e=>n(parseInt(e.replace("v","").split(".")[0],10)))).sort(((e,t)=>{const r=parseInt(e.replace("v","").split(".")[0],10)
|
|
5257
5257
|
return parseInt(t.replace("v","").split(".")[0],10)-r}))
|
|
5258
5258
|
if(e.length>0){const r=(0,s.join)(t,e[0],"bin","node")
|
|
5259
|
-
if((0,i.existsSync)(r))return r}}catch{}throw Error(`AlchemyLab requires Node.js
|
|
5259
|
+
if((0,i.existsSync)(r))return r}}catch{}throw Error(`AlchemyLab requires Node.js 24 or later to run the OpenCode server.\nYour current version: ${process.version}\nInstall a compatible version: nvm install 24 (or download from https://nodejs.org)`)}(),prependArgs:["--no-warnings",(0,s.join)(e,t)]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.findOpencodeDir=r,exports.resolveServeCommand=function(){const e=r()
|
|
5260
5260
|
return e?o((0,s.join)(e,"dist"),"serve.js"):{command:"opencode",prependArgs:["serve"]}},exports.resolveRunCommand=function(){const e=r()
|
|
5261
5261
|
return e?o((0,s.join)(e,"dist"),"run.js"):{command:"opencode",prependArgs:[]}}
|
|
5262
5262
|
const s=t(6928),i=t(9896),a=t(5317)},9072(e,exports,t){"use strict"
|
package/dist/mcp-direct.js
CHANGED
|
@@ -4947,12 +4947,12 @@ e&&(this.pollingStatus=o.AUTHENTICATED,this.tokenResult=e,this.stopPolling(),r&&
|
|
|
4947
4947
|
function r(){const e=process.env.ALCHEMY_OPENCODE_DIR
|
|
4948
4948
|
if(e)return e
|
|
4949
4949
|
try{const e=("undefined"!=typeof require?require:t(4245)).resolve("alchemylab-opencode/package.json")
|
|
4950
|
-
return(0,o.dirname)(e)}catch{}}function n(e){return
|
|
4950
|
+
return(0,o.dirname)(e)}catch{}}function n(e){return e>=24}function s(e,t){return{command:function(){try{const e=(0,a.execFileSync)("node",["--version"],{encoding:"utf8"}).trim()
|
|
4951
4951
|
if(n(parseInt(e.replace("v","").split(".")[0],10)))return"node"}catch{}const e=process.env.NVM_DIR||(0,o.join)(process.env.HOME||"",".nvm"),t=(0,o.join)(e,"versions","node")
|
|
4952
4952
|
if((0,i.existsSync)(t))try{const e=(0,i.readdirSync)(t).filter((e=>n(parseInt(e.replace("v","").split(".")[0],10)))).sort(((e,t)=>{const r=parseInt(e.replace("v","").split(".")[0],10)
|
|
4953
4953
|
return parseInt(t.replace("v","").split(".")[0],10)-r}))
|
|
4954
4954
|
if(e.length>0){const r=(0,o.join)(t,e[0],"bin","node")
|
|
4955
|
-
if((0,i.existsSync)(r))return r}}catch{}throw Error(`AlchemyLab requires Node.js
|
|
4955
|
+
if((0,i.existsSync)(r))return r}}catch{}throw Error(`AlchemyLab requires Node.js 24 or later to run the OpenCode server.\nYour current version: ${process.version}\nInstall a compatible version: nvm install 24 (or download from https://nodejs.org)`)}(),prependArgs:["--no-warnings",(0,o.join)(e,t)]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.findOpencodeDir=r,exports.resolveServeCommand=function(){const e=r()
|
|
4956
4956
|
return e?s((0,o.join)(e,"dist"),"serve.js"):{command:"opencode",prependArgs:["serve"]}},exports.resolveRunCommand=function(){const e=r()
|
|
4957
4957
|
return e?s((0,o.join)(e,"dist"),"run.js"):{command:"opencode",prependArgs:[]}}
|
|
4958
4958
|
const o=t(6928),i=t(9896),a=t(5317)},9072(e,exports,t){"use strict"
|