fix(install): use v0.9.11 and soften token hints #4
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/install-v0.9.11"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
basepeak-ai/gptscript is public now and v0.9.11 is released, so the postinstall download works without a token.
scripts/install-binary.js. The package version also moves tov0.9.11(package.json,package-lock.json), matching the convention that the SDK version tracks the gptscript version.GPTSCRIPT_RELEASE_TOKENis still sent as a ForgejoAuthorizationheader when set. The comment no longer says the repo is private or that a token is required.GPTSCRIPT_RELEASE_TOKEN, even for network errors or timeouts. Now the token is suggested only when the host answers HTTP 401/403/404. Every other error is reported as is. TheNODE_GPTSCRIPT_SKIP_INSTALL_BINARYhint is always printed.npm ciruns withoutGPTSCRIPT_RELEASE_TOKEN, so CI tests the anonymous install path that users take.Verification
node scripts/install-binary.jsdownloads v0.9.11 andbin/gptscript --versionprintsv0.9.11+7299ab79.The release host answered HTTP 404. If it requires authentication, set GPTSCRIPT_RELEASE_TOKEN ...and exits 1.npm_config_userconfig=/dev/null,npm install git+https://git.basepeak.dev/basepeak-ai/node-gptscript.git#fix/install-v0.9.11installs the package, andnode_modules/.bin/gptscript --versionprintsv0.9.11+7299ab79.npm ciwithout a token, and the binary check printedgptscript version v0.9.11+7299ab79.download did not finish within 300sand, as intended, did not suggest a token.