alchemylab 1.0.13 → 1.0.14
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 +8 -8
- package/dist/http-server.js +8 -8
- package/dist/index.js +8 -8
- package/dist/mcp-direct.js +8 -8
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -920,15 +920,15 @@ e&&(this.pollingStatus=n.AUTHENTICATED,this.tokenResult=e,this.stopPolling(),s&&
|
|
|
920
920
|
function s(){const e=process.env.ALCHEMY_OPENCODE_DIR
|
|
921
921
|
if(e)return e
|
|
922
922
|
try{const e=("undefined"!=typeof require?require:t(4245)).resolve("alchemylab-opencode/package.json")
|
|
923
|
-
return(0,
|
|
924
|
-
if(parseInt(e.replace("v","").split(".")[0],10)
|
|
925
|
-
if((0,
|
|
923
|
+
return(0,n.dirname)(e)}catch{}}function r(e){return 22===e||e>=24}function o(e,t){return{command:function(){try{const e=(0,a.execFileSync)("node",["--version"],{encoding:"utf8"}).trim()
|
|
924
|
+
if(r(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")
|
|
925
|
+
if((0,i.existsSync)(t))try{const e=(0,i.readdirSync)(t).filter((e=>r(parseInt(e.replace("v","").split(".")[0],10)))).sort(((e,t)=>{const s=parseInt(e.replace("v","").split(".")[0],10)
|
|
926
926
|
return parseInt(t.replace("v","").split(".")[0],10)-s}))
|
|
927
|
-
if(e.length>0){const s=(0,
|
|
928
|
-
if((0,
|
|
929
|
-
return e?
|
|
930
|
-
return e?
|
|
931
|
-
const
|
|
927
|
+
if(e.length>0){const s=(0,n.join)(t,e[0],"bin","node")
|
|
928
|
+
if((0,i.existsSync)(s))return s}}catch{}throw Error(`AlchemyLab requires Node.js 22 or 24+ to run the OpenCode server (Node 23 is not supported).\nYour current version: ${process.version}\nInstall a compatible version: nvm install 22 (or download from https://nodejs.org)`)}(),prependArgs:["--no-warnings",(0,n.join)(e,t)]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveServeCommand=function(){const e=s()
|
|
929
|
+
return e?o((0,n.join)(e,"dist"),"serve.js"):{command:"opencode",prependArgs:["serve"]}},exports.resolveRunCommand=function(){const e=s()
|
|
930
|
+
return e?o((0,n.join)(e,"dist"),"run.js"):{command:"opencode",prependArgs:[]}}
|
|
931
|
+
const n=t(6928),i=t(9896),a=t(5317)},9266(e,exports,t){"use strict"
|
|
932
932
|
var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}}
|
|
933
933
|
Object.defineProperty(exports,"__esModule",{value:!0}),exports.handleOpenCodeProxyAction=async function(e,t){const{method:s,path:i,body:a,headers:c}=e
|
|
934
934
|
if(!s||!i)return{success:!1,message:"method and path are required in proxy payload"}
|
package/dist/http-server.js
CHANGED
|
@@ -5262,15 +5262,15 @@ e&&(this.pollingStatus=s.AUTHENTICATED,this.tokenResult=e,this.stopPolling(),r&&
|
|
|
5262
5262
|
function r(){const e=process.env.ALCHEMY_OPENCODE_DIR
|
|
5263
5263
|
if(e)return e
|
|
5264
5264
|
try{const e=("undefined"!=typeof require?require:t(4245)).resolve("alchemylab-opencode/package.json")
|
|
5265
|
-
return(0,
|
|
5266
|
-
if(parseInt(e.replace("v","").split(".")[0],10)
|
|
5267
|
-
if((0,
|
|
5265
|
+
return(0,s.dirname)(e)}catch{}}function n(e){return 22===e||e>=24}function o(e,t){return{command:function(){try{const e=(0,a.execFileSync)("node",["--version"],{encoding:"utf8"}).trim()
|
|
5266
|
+
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")
|
|
5267
|
+
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)
|
|
5268
5268
|
return parseInt(t.replace("v","").split(".")[0],10)-r}))
|
|
5269
|
-
if(e.length>0){const r=(0,
|
|
5270
|
-
if((0,
|
|
5271
|
-
return e?
|
|
5272
|
-
return e?
|
|
5273
|
-
const
|
|
5269
|
+
if(e.length>0){const r=(0,s.join)(t,e[0],"bin","node")
|
|
5270
|
+
if((0,i.existsSync)(r))return r}}catch{}throw Error(`AlchemyLab requires Node.js 22 or 24+ to run the OpenCode server (Node 23 is not supported).\nYour current version: ${process.version}\nInstall a compatible version: nvm install 22 (or download from https://nodejs.org)`)}(),prependArgs:["--no-warnings",(0,s.join)(e,t)]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveServeCommand=function(){const e=r()
|
|
5271
|
+
return e?o((0,s.join)(e,"dist"),"serve.js"):{command:"opencode",prependArgs:["serve"]}},exports.resolveRunCommand=function(){const e=r()
|
|
5272
|
+
return e?o((0,s.join)(e,"dist"),"run.js"):{command:"opencode",prependArgs:[]}}
|
|
5273
|
+
const s=t(6928),i=t(9896),a=t(5317)},9072(e,exports,t){"use strict"
|
|
5274
5274
|
async function r(e,t,r,n){try{const o=await(0,u.getServerUrl)(r,n)
|
|
5275
5275
|
if(!o)return n.warn("Could not get server URL for notification",{sessionId:e}),!1
|
|
5276
5276
|
let s,i
|
package/dist/index.js
CHANGED
|
@@ -5332,15 +5332,15 @@ e&&(this.pollingStatus=s.AUTHENTICATED,this.tokenResult=e,this.stopPolling(),r&&
|
|
|
5332
5332
|
function r(){const e=process.env.ALCHEMY_OPENCODE_DIR
|
|
5333
5333
|
if(e)return e
|
|
5334
5334
|
try{const e=("undefined"!=typeof require?require:t(4245)).resolve("alchemylab-opencode/package.json")
|
|
5335
|
-
return(0,
|
|
5336
|
-
if(parseInt(e.replace("v","").split(".")[0],10)
|
|
5337
|
-
if((0,
|
|
5335
|
+
return(0,s.dirname)(e)}catch{}}function n(e){return 22===e||e>=24}function o(e,t){return{command:function(){try{const e=(0,a.execFileSync)("node",["--version"],{encoding:"utf8"}).trim()
|
|
5336
|
+
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")
|
|
5337
|
+
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)
|
|
5338
5338
|
return parseInt(t.replace("v","").split(".")[0],10)-r}))
|
|
5339
|
-
if(e.length>0){const r=(0,
|
|
5340
|
-
if((0,
|
|
5341
|
-
return e?
|
|
5342
|
-
return e?
|
|
5343
|
-
const
|
|
5339
|
+
if(e.length>0){const r=(0,s.join)(t,e[0],"bin","node")
|
|
5340
|
+
if((0,i.existsSync)(r))return r}}catch{}throw Error(`AlchemyLab requires Node.js 22 or 24+ to run the OpenCode server (Node 23 is not supported).\nYour current version: ${process.version}\nInstall a compatible version: nvm install 22 (or download from https://nodejs.org)`)}(),prependArgs:["--no-warnings",(0,s.join)(e,t)]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveServeCommand=function(){const e=r()
|
|
5341
|
+
return e?o((0,s.join)(e,"dist"),"serve.js"):{command:"opencode",prependArgs:["serve"]}},exports.resolveRunCommand=function(){const e=r()
|
|
5342
|
+
return e?o((0,s.join)(e,"dist"),"run.js"):{command:"opencode",prependArgs:[]}}
|
|
5343
|
+
const s=t(6928),i=t(9896),a=t(5317)},9072(e,exports,t){"use strict"
|
|
5344
5344
|
async function r(e,t,r,n){try{const o=await(0,u.getServerUrl)(r,n)
|
|
5345
5345
|
if(!o)return n.warn("Could not get server URL for notification",{sessionId:e}),!1
|
|
5346
5346
|
let s,i
|
package/dist/mcp-direct.js
CHANGED
|
@@ -5028,15 +5028,15 @@ e&&(this.pollingStatus=s.AUTHENTICATED,this.tokenResult=e,this.stopPolling(),r&&
|
|
|
5028
5028
|
function r(){const e=process.env.ALCHEMY_OPENCODE_DIR
|
|
5029
5029
|
if(e)return e
|
|
5030
5030
|
try{const e=("undefined"!=typeof require?require:t(4245)).resolve("alchemylab-opencode/package.json")
|
|
5031
|
-
return(0,
|
|
5032
|
-
if(parseInt(e.replace("v","").split(".")[0],10)
|
|
5033
|
-
if((0,
|
|
5031
|
+
return(0,s.dirname)(e)}catch{}}function n(e){return 22===e||e>=24}function o(e,t){return{command:function(){try{const e=(0,a.execFileSync)("node",["--version"],{encoding:"utf8"}).trim()
|
|
5032
|
+
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")
|
|
5033
|
+
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)
|
|
5034
5034
|
return parseInt(t.replace("v","").split(".")[0],10)-r}))
|
|
5035
|
-
if(e.length>0){const r=(0,
|
|
5036
|
-
if((0,
|
|
5037
|
-
return e?
|
|
5038
|
-
return e?
|
|
5039
|
-
const
|
|
5035
|
+
if(e.length>0){const r=(0,s.join)(t,e[0],"bin","node")
|
|
5036
|
+
if((0,i.existsSync)(r))return r}}catch{}throw Error(`AlchemyLab requires Node.js 22 or 24+ to run the OpenCode server (Node 23 is not supported).\nYour current version: ${process.version}\nInstall a compatible version: nvm install 22 (or download from https://nodejs.org)`)}(),prependArgs:["--no-warnings",(0,s.join)(e,t)]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveServeCommand=function(){const e=r()
|
|
5037
|
+
return e?o((0,s.join)(e,"dist"),"serve.js"):{command:"opencode",prependArgs:["serve"]}},exports.resolveRunCommand=function(){const e=r()
|
|
5038
|
+
return e?o((0,s.join)(e,"dist"),"run.js"):{command:"opencode",prependArgs:[]}}
|
|
5039
|
+
const s=t(6928),i=t(9896),a=t(5317)},9072(e,exports,t){"use strict"
|
|
5040
5040
|
async function r(e,t,r,n){try{const o=await(0,u.getServerUrl)(r,n)
|
|
5041
5041
|
if(!o)return n.warn("Could not get server URL for notification",{sessionId:e}),!1
|
|
5042
5042
|
let s,i
|