- Fix
@outputsreference and completion resolution inside nestedrun @actions.Xblocks so they resolve against the nested run target rather than the enclosing reasoning action binding. Addintegerandlongscalar-to-ParameterDataType mappings for action parameters. Fix template literal indentation handling in the JavaScript lexer.
- Fix parsing of block scalar templates (
|): correctly compute indent level of the pipe line, track brace depth inside{!...}expressions so nested braces (e.g. JSON objects) don't prematurely close the expression, allow string tokenization inside template expressions, and treat#as a comment only outside the template content area.
- Lint for connected subagents, improve var linting, disallow LLM inputs in router nodes
- Updated dependencies
- @agentscript/types@0.2.1
- Fix multiline template continuation lines starting with
#being incorrectly tokenized as comments instead of template content. Any text indented beyond|is now correctly treated as part of the template.
- Revert rename (
tool_definitionsback toactions,toolsback toactionsin reasoning blocks). Add support for discriminant-based polymorphic variants via.discriminant()on block factories. Refactorblock.tsinto focused modules (block-factory, named-block-factory, typed-map-factory, collection-block-factory, factory-utils). Fix variant type propagation throughInferFieldTypeand collection factories. Improve comment attachment parity with tree-sitter parser.
- Add wildcard
additional_parameter__*support so arbitrary config fields matching the prefix are accepted without explicit schema entries. Introduce a dedicatedStartAgentBlocktype distinct fromSubagentBlockfor proper type discrimination. Simplify the parser-javascript lexer.
- New features (2026-03-31)
- Updated dependencies
- @agentscript/types@0.2.0
- Replace tree-sitter with a hand-written TypeScript parser (
@agentscript/parser-ts) for parsing AgentScript files. This eliminates the native/WASM dependency on tree-sitter, enabling simpler builds, faster startup, and consistent behavior across Node.js and browser environments. Add@agentscript/typesas a shared foundational types package. Update all downstream packages (language, compiler, dialects, LSP, Monaco, CLI, SDK) to consume the new parser-ts CST format. Add new lint passes for complex data types, config validation, and variable validation in the Agentforce dialect. - Updated dependencies
- @agentscript/types@0.1.1