alchemylab 1.0.12 → 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 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,o.dirname)(e)}catch{}}function r(e,t){return{command:function(){try{const e=(0,i.execFileSync)("node",["--version"],{encoding:"utf8"}).trim()
924
- if(parseInt(e.replace("v","").split(".")[0],10)>=a)return"node"}catch{}const e=process.env.NVM_DIR||(0,o.join)(process.env.HOME||"",".nvm"),t=(0,o.join)(e,"versions","node")
925
- if((0,n.existsSync)(t))try{const e=(0,n.readdirSync)(t).filter((e=>parseInt(e.replace("v","").split(".")[0],10)>=a)).sort(((e,t)=>{const s=parseInt(e.replace("v","").split(".")[0],10)
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,o.join)(t,e[0],"bin","node")
928
- if((0,n.existsSync)(s))return s}}catch{}throw Error(`AlchemyLab requires Node.js >= ${a} to run the OpenCode server.\nYour current version: ${process.version}\nInstall Node ${a}+: nvm install ${a} (or download from https://nodejs.org)`)}(),prependArgs:["--experimental-strip-types","--experimental-transform-types","--no-warnings","--import",(0,o.join)(e,"node-preload.mjs"),(0,o.join)(e,t)]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveServeCommand=function(){const e=s()
929
- return e?r((0,o.join)(e,"packages","opencode","src"),"serve.ts"):{command:"opencode",prependArgs:["serve"]}},exports.resolveRunCommand=function(){const e=s()
930
- return e?r((0,o.join)(e,"packages","opencode","src"),"run.ts"):{command:"opencode",prependArgs:[]}}
931
- const o=t(6928),n=t(9896),i=t(5317),a=24},9266(e,exports,t){"use strict"
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"}
@@ -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,o.dirname)(e)}catch{}}function n(e,t){return{command:function(){try{const e=(0,i.execFileSync)("node",["--version"],{encoding:"utf8"}).trim()
5266
- if(parseInt(e.replace("v","").split(".")[0],10)>=a)return"node"}catch{}const e=process.env.NVM_DIR||(0,o.join)(process.env.HOME||"",".nvm"),t=(0,o.join)(e,"versions","node")
5267
- if((0,s.existsSync)(t))try{const e=(0,s.readdirSync)(t).filter((e=>parseInt(e.replace("v","").split(".")[0],10)>=a)).sort(((e,t)=>{const r=parseInt(e.replace("v","").split(".")[0],10)
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,o.join)(t,e[0],"bin","node")
5270
- if((0,s.existsSync)(r))return r}}catch{}throw Error(`AlchemyLab requires Node.js >= ${a} to run the OpenCode server.\nYour current version: ${process.version}\nInstall Node ${a}+: nvm install ${a} (or download from https://nodejs.org)`)}(),prependArgs:["--experimental-strip-types","--experimental-transform-types","--no-warnings","--import",(0,o.join)(e,"node-preload.mjs"),(0,o.join)(e,t)]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveServeCommand=function(){const e=r()
5271
- return e?n((0,o.join)(e,"packages","opencode","src"),"serve.ts"):{command:"opencode",prependArgs:["serve"]}},exports.resolveRunCommand=function(){const e=r()
5272
- return e?n((0,o.join)(e,"packages","opencode","src"),"run.ts"):{command:"opencode",prependArgs:[]}}
5273
- const o=t(6928),s=t(9896),i=t(5317),a=24},9072(e,exports,t){"use strict"
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,o.dirname)(e)}catch{}}function n(e,t){return{command:function(){try{const e=(0,i.execFileSync)("node",["--version"],{encoding:"utf8"}).trim()
5336
- if(parseInt(e.replace("v","").split(".")[0],10)>=a)return"node"}catch{}const e=process.env.NVM_DIR||(0,o.join)(process.env.HOME||"",".nvm"),t=(0,o.join)(e,"versions","node")
5337
- if((0,s.existsSync)(t))try{const e=(0,s.readdirSync)(t).filter((e=>parseInt(e.replace("v","").split(".")[0],10)>=a)).sort(((e,t)=>{const r=parseInt(e.replace("v","").split(".")[0],10)
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,o.join)(t,e[0],"bin","node")
5340
- if((0,s.existsSync)(r))return r}}catch{}throw Error(`AlchemyLab requires Node.js >= ${a} to run the OpenCode server.\nYour current version: ${process.version}\nInstall Node ${a}+: nvm install ${a} (or download from https://nodejs.org)`)}(),prependArgs:["--experimental-strip-types","--experimental-transform-types","--no-warnings","--import",(0,o.join)(e,"node-preload.mjs"),(0,o.join)(e,t)]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveServeCommand=function(){const e=r()
5341
- return e?n((0,o.join)(e,"packages","opencode","src"),"serve.ts"):{command:"opencode",prependArgs:["serve"]}},exports.resolveRunCommand=function(){const e=r()
5342
- return e?n((0,o.join)(e,"packages","opencode","src"),"run.ts"):{command:"opencode",prependArgs:[]}}
5343
- const o=t(6928),s=t(9896),i=t(5317),a=24},9072(e,exports,t){"use strict"
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
@@ -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,o.dirname)(e)}catch{}}function n(e,t){return{command:function(){try{const e=(0,i.execFileSync)("node",["--version"],{encoding:"utf8"}).trim()
5032
- if(parseInt(e.replace("v","").split(".")[0],10)>=a)return"node"}catch{}const e=process.env.NVM_DIR||(0,o.join)(process.env.HOME||"",".nvm"),t=(0,o.join)(e,"versions","node")
5033
- if((0,s.existsSync)(t))try{const e=(0,s.readdirSync)(t).filter((e=>parseInt(e.replace("v","").split(".")[0],10)>=a)).sort(((e,t)=>{const r=parseInt(e.replace("v","").split(".")[0],10)
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,o.join)(t,e[0],"bin","node")
5036
- if((0,s.existsSync)(r))return r}}catch{}throw Error(`AlchemyLab requires Node.js >= ${a} to run the OpenCode server.\nYour current version: ${process.version}\nInstall Node ${a}+: nvm install ${a} (or download from https://nodejs.org)`)}(),prependArgs:["--experimental-strip-types","--experimental-transform-types","--no-warnings","--import",(0,o.join)(e,"node-preload.mjs"),(0,o.join)(e,t)]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveServeCommand=function(){const e=r()
5037
- return e?n((0,o.join)(e,"packages","opencode","src"),"serve.ts"):{command:"opencode",prependArgs:["serve"]}},exports.resolveRunCommand=function(){const e=r()
5038
- return e?n((0,o.join)(e,"packages","opencode","src"),"run.ts"):{command:"opencode",prependArgs:[]}}
5039
- const o=t(6928),s=t(9896),i=t(5317),a=24},9072(e,exports,t){"use strict"
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alchemylab",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "private": false,
5
5
  "description": "AlchemyLab - agentic coding IDEm",
6
6
  "author": "Testfire Software",