[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`)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- node.js, typescript
- Área
- build-system, release
Línea de trabajo
Reproduce el fallo con la instalación limpia de npm install y el import directo mostrados en el issue; después inspecciona dist/index.js:354 junto con package.json para rastrear la dependencia de idioma que no coincide. Lee el pipeline de publicación implicado en el scope-rewrite issue y verifica cómo las versiones de workspace se convierten en pins publicados. Se considera terminado cuando una instalación limpia puede importar el paquete y la prueba smoke del artefacto empaquetado cubre todos los puntos de entrada públicos.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
@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.
Reproduction
mkdir repro && cd repro && npm init -y
npm install @sf-agentscript/agentforce # resolves 2.5.34
node --input-type=module -e "import { parse } from '@sf-agentscript/agentforce';"
Actual
SyntaxError: The requested module '@sf-agentscript/language' does not provide
an export named 'nullLiteralValidationPass'
at .../node_modules/@sf-agentscript/agentforce/dist/index.js:354
Expected
The module imports and parse() is callable.
Root cause
@sf-agentscript/agentforce@2.5.34 → dist/index.js:354:
import { symbolTableAnalyzer, undefinedReferencePass, /* ... */,
nullLiteralValidationPass } from "@sf-agentscript/language";
but its package.json pins the dependency exactly:
"@sf-agentscript/language": "2.5.4"
and that version does not export the symbol:
@sf-agentscript/language |
exports nullLiteralValidationPass |
|---|---|
2.5.4 (the pinned version) |
❌ no |
2.18.0 |
✅ yes |
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.
Suggested fix
- Have the publish pipeline pin the workspace versions the artifacts were actually built against (the same step that got the scope rewrite wrong in #35 / #40), or simply bump the
@sf-agentscript/languagepin. - Add a post-publish smoke test that installs the packed tarball into a clean directory and does a bare
importof every public entry point. Both #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)- resolved
@sf-agentscript/language@2.5.4 - Node.js v24.15.0, npm 11.12.1, Windows 11
Notes
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 267
- Forks
- 54
- Merge medio
- 48 min
- PR fusionados (30 d)
- 1
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de salesforce/agentscript
-
README Quick Start fails on macOS: Node 26 incompatibility and missing tree-sitter CLI prerequisite Abierto
Dificultad 2/5 Medio día Aptitud para principiantes 75/100
salesforce/agentscript#33 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
salesforce/agentscript#73 ·
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
salesforce/agentscript#67 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
salesforce/agentscript#42 · 1 comentario ·
-
[bug]: dist/ JS retains @agentscript/* imports after scope rewrite, breaking installed package Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
salesforce/agentscript#35 · 1 comentario ·
Todos los issues de salesforce/agentscript
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
TanStack/tanstack.com#1293 ·