@kernlang/review 3.1.1 → 3.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/dist/types.js CHANGED
@@ -5,13 +5,9 @@
5
5
  * InferResult gains stable nodeId + promptAlias + sourceSpans.
6
6
  */
7
7
  // ── Helpers ──────────────────────────────────────────────────────────────
8
- /** Create a stable fingerprint for dedup across sources and runs */
8
+ /** Create a stable fingerprint for dedup across sources and runs.
9
+ * Returns the raw composite key — collision-free by construction. */
9
10
  export function createFingerprint(ruleId, startLine, startCol) {
10
- const input = `${ruleId}:${startLine}:${startCol}`;
11
- let hash = 0;
12
- for (let i = 0; i < input.length; i++) {
13
- hash = ((hash << 5) - hash + input.charCodeAt(i)) | 0;
14
- }
15
- return Math.abs(hash).toString(36);
11
+ return `${ruleId}:${startLine}:${startCol}`;
16
12
  }
17
13
  //# sourceMappingURL=types.js.map
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAuPH,4EAA4E;AAE5E,oEAAoE;AACpE,MAAM,UAAU,iBAAiB,CAAC,MAAc,EAAE,SAAiB,EAAE,QAAgB;IACnF,MAAM,KAAK,GAAG,GAAG,MAAM,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC;IACnD,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,IAAI,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACxD,CAAC;IACD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAiQH,4EAA4E;AAE5E;sEACsE;AACtE,MAAM,UAAU,iBAAiB,CAAC,MAAc,EAAE,SAAiB,EAAE,QAAgB;IACnF,OAAO,GAAG,MAAM,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC;AAC9C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kernlang/review",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Kern Review — scan TS, infer .kern IR, roundtrip diff, report",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -17,7 +17,7 @@
17
17
  "license": "AGPL-3.0",
18
18
  "dependencies": {
19
19
  "ts-morph": "^27.0.0",
20
- "@kernlang/core": "3.1.1"
20
+ "@kernlang/core": "3.1.2"
21
21
  },
22
22
  "scripts": {
23
23
  "build": "tsc -b",