@iris-code/core 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -35
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
# @iris/core
|
|
2
|
-
|
|
3
|
-
Shared analysis engine package for Iris.
|
|
4
|
-
|
|
5
|
-
## Scope
|
|
6
|
-
|
|
7
|
-
This package is intended to become the single source of truth for:
|
|
8
|
-
|
|
9
|
-
- scoring logic
|
|
10
|
-
- issue normalization
|
|
11
|
-
- shared analysis result types
|
|
12
|
-
- gate evaluation
|
|
13
|
-
- deterministic, density-ranked workspace Quality Signals
|
|
1
|
+
# @iris/core
|
|
2
|
+
|
|
3
|
+
Shared analysis engine package for Iris.
|
|
4
|
+
|
|
5
|
+
## Scope
|
|
6
|
+
|
|
7
|
+
This package is intended to become the single source of truth for:
|
|
8
|
+
|
|
9
|
+
- scoring logic
|
|
10
|
+
- issue normalization
|
|
11
|
+
- shared analysis result types
|
|
12
|
+
- gate evaluation
|
|
13
|
+
- deterministic, density-ranked workspace Quality Signals
|
|
14
14
|
- workspace-wide, path/role-aware, and fallback per-language file naming checks with ordered glob rules, suggestions, and built-in exemptions
|
|
15
15
|
- fixture-backed parity tests used by both the extension and the CLI
|
|
16
16
|
- Vue and Svelte single-file component script extraction with native line preservation
|
|
17
|
-
|
|
18
|
-
## Extraction notes
|
|
19
|
-
|
|
20
|
-
Keep the package pure where possible. Host-specific concerns should stay outside:
|
|
21
|
-
|
|
22
|
-
- VS Code commands, webviews, and SecretStorage stay in `Iris-extension`
|
|
23
|
-
- CLI argument parsing and output formatting can stay in the CLI shell layer
|
|
24
|
-
- `@iris/core` should receive plain source text and config data, then return structured analysis output
|
|
25
|
-
|
|
26
|
-
## Publish-ready surface
|
|
27
|
-
|
|
28
|
-
This package now publishes compiled output from `dist/` rather than exposing raw TypeScript source.
|
|
29
|
-
|
|
30
|
-
- `pnpm run build` compiles the package
|
|
31
|
-
- `pnpm run test` runs the fixture-backed packaged-surface tests
|
|
32
|
-
- `pnpm pack` will build and test first via `prepack`
|
|
33
|
-
|
|
34
|
-
## v1.16 analysis surface
|
|
35
|
-
|
|
36
|
-
`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.
|
|
37
|
-
|
|
38
|
-
`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.
|
|
17
|
+
|
|
18
|
+
## Extraction notes
|
|
19
|
+
|
|
20
|
+
Keep the package pure where possible. Host-specific concerns should stay outside:
|
|
21
|
+
|
|
22
|
+
- VS Code commands, webviews, and SecretStorage stay in `Iris-extension`
|
|
23
|
+
- CLI argument parsing and output formatting can stay in the CLI shell layer
|
|
24
|
+
- `@iris/core` should receive plain source text and config data, then return structured analysis output
|
|
25
|
+
|
|
26
|
+
## Publish-ready surface
|
|
27
|
+
|
|
28
|
+
This package now publishes compiled output from `dist/` rather than exposing raw TypeScript source.
|
|
29
|
+
|
|
30
|
+
- `pnpm run build` compiles the package
|
|
31
|
+
- `pnpm run test` runs the fixture-backed packaged-surface tests
|
|
32
|
+
- `pnpm pack` will build and test first via `prepack`
|
|
33
|
+
|
|
34
|
+
## v1.16 analysis surface
|
|
35
|
+
|
|
36
|
+
`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.
|
|
37
|
+
|
|
38
|
+
`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.
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iris-code/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Shared Iris analysis engine for TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, and C#.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/Daiveedjay/Iris-package.git",
|
|
7
|
+
"url": "git+https://github.com/Daiveedjay/Iris-package.git",
|
|
8
8
|
"directory": "packages/core"
|
|
9
9
|
},
|
|
10
10
|
"main": "./dist/index.js",
|