@sf-agentscript/types
v0.2.1
Published
Shared foundational types for the AgentScript toolchain
Readme
@agentscript/types
Shared foundational types for the AgentScript toolchain. This package defines the core interfaces used across all other packages.
Overview
Zero-dependency package that provides the type contracts between parsers, the language engine, linting, and editor integrations.
Installation
pnpm add @agentscript/typesKey Types
| Type | Description |
|------|-------------|
| SyntaxNode | AST node interface produced by parsers and consumed by analysis |
| Position | Line/character position in source text |
| Range | Start/end position pair |
| Diagnostic | Error, warning, or hint with location and message |
| DiagnosticSeverity | Error, Warning, Information, Hint |
| DiagnosticTag | Unnecessary, Deprecated |
| Comment | Comment attachment metadata |
| CstMeta | Concrete Syntax Tree metadata |
Usage
import type { SyntaxNode, Diagnostic, Range } from '@agentscript/types';
import { DiagnosticSeverity } from '@agentscript/types';Scripts
pnpm build # Compile TypeScriptLicense
MIT
