You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[bug]: @sf-agentscript/agentforce@2.5.34 (latest) still unusable — dist/ compiled against a newer @sf-agentscript/language than package.json pins (missing export nullLiteralValidationPass) #71
@sf-agentscript/agentforce@2.5.34 (current latest) cannot be imported after a clean npm install. The package's dist/ is compiled against a newer @sf-agentscript/language than the version its own package.json pins, so the import fails immediately.
This looks like a sibling of #35 (and PR #40): the scope-rewrite part appears fixed in 2.5.34 — dist/index.js now correctly imports from @sf-agentscript/language — but the same publish pipeline still emits dependency pins that don't match what dist/ was built against. Net effect is the same: the published package is broken end-to-end, just with a different error.
SyntaxError: The requested module '@sf-agentscript/language' does not provide
an export named 'nullLiteralValidationPass'
at .../node_modules/@sf-agentscript/agentforce/dist/index.js:354
So the compiled output requires a newer language than the manifest allows. Installing @sf-agentscript/language@2.18.0 alongside it makes the import succeed, which confirms the diagnosis.
Workaround for anyone blocked: @sf-agentscript/parser is unaffected and can be used directly if you only need the AST — that is what I ended up doing. I am building a static authority analyzer that reads .agent authoring bundles and resolves each action's apex:// / flow:// target straight from the file.
Happy to send a PR for the smoke test if that approach is acceptable.
Summary
@sf-agentscript/agentforce@2.5.34(currentlatest) cannot be imported after a cleannpm install. The package'sdist/is compiled against a newer@sf-agentscript/languagethan the version its ownpackage.jsonpins, so the import fails immediately.This looks like a sibling of #35 (and PR #40): the scope-rewrite part appears fixed in 2.5.34 —
dist/index.jsnow correctly imports from@sf-agentscript/language— but the same publish pipeline still emits dependency pins that don't match whatdist/was built against. Net effect is the same: the published package is broken end-to-end, just with a different error.Reproduction
Actual
Expected
The module imports and
parse()is callable.Root cause
@sf-agentscript/agentforce@2.5.34→dist/index.js:354:but its
package.jsonpins the dependency exactly:and that version does not export the symbol:
@sf-agentscript/languagenullLiteralValidationPass2.5.4(the pinned version)2.18.0So the compiled output requires a newer
languagethan the manifest allows. Installing@sf-agentscript/language@2.18.0alongside it makes the import succeed, which confirms the diagnosis.Suggested fix
@sf-agentscript/languagepin.importof every public entry point. Both [bug]: dist/ JS retains @agentscript/* imports after scope rewrite, breaking installed package #35 and this issue would have been caught by that single check, and it would keep the published artifact honest going forward.Environment
@sf-agentscript/agentforce@2.5.34(dist-taglatest)@sf-agentscript/language@2.5.4Notes
Workaround for anyone blocked:
@sf-agentscript/parseris unaffected and can be used directly if you only need the AST — that is what I ended up doing. I am building a static authority analyzer that reads.agentauthoring bundles and resolves each action'sapex:///flow://target straight from the file.Happy to send a PR for the smoke test if that approach is acceptable.