@iris-code/core
v0.3.0
Published
Shared Iris analysis engine for TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, and C#.
Downloads
764
Readme
@iris/core
Shared analysis engine package for Iris.
Scope
This package is intended to become the single source of truth for:
- scoring logic
- issue normalization
- shared analysis result types
- gate evaluation
- deterministic, density-ranked workspace Quality Signals
- workspace-wide, path/role-aware, and fallback per-language file naming checks with ordered glob rules, suggestions, and built-in exemptions
- fixture-backed parity tests used by both the extension and the CLI
- Vue and Svelte single-file component script extraction with native line preservation
Extraction notes
Keep the package pure where possible. Host-specific concerns should stay outside:
- VS Code commands, webviews, and SecretStorage stay in
Iris-extension - CLI argument parsing and output formatting can stay in the CLI shell layer
@iris/coreshould receive plain source text and config data, then return structured analysis output
Publish-ready surface
This package now publishes compiled output from dist/ rather than exposing raw TypeScript source.
pnpm run buildcompiles the packagepnpm run testruns the fixture-backed packaged-surface testspnpm packwill build and test first viaprepack
v1.16 analysis surface
computeQualitySignals consumes aggregate scan metrics and returns recurring quality signals ranked by density and impact. Each signal preserves its raw count or percentage and carries a simple attention level; it does not create a second workspace score.
checkFileNaming enforces the workspace naming policy, with a matching language policy taking precedence. analyseFile accepts optional relativePath and baselineFiles context so extension and CLI callers share baseline-aware behavior without core reading the filesystem.
