@opensip-cli/clone-detection 0.1.12

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 ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Tool-neutral input + finding types for the clone-detection substrate.
3
+ *
4
+ * `CloneCandidate` is a deliberate STRUCTURAL SUBSET of graph's runtime
5
+ * `FunctionOccurrence` (ISP — the algorithms accept only the fields the math needs;
6
+ * graph passes its occurrences directly by structural assignability, yagni builds the
7
+ * same shape from `lang-typescript`). This is the DIP/ISP boundary that keeps the
8
+ * substrate free of either tool's types — NOT a future-proofing hook. The cross-tool
9
+ * parity test (Phase 2) is the seam that proves both producers agree on these fields;
10
+ * the dep-cruiser leaf rule is the compile-time invariant.
11
+ */
12
+ export {};
13
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@opensip-cli/clone-detection",
3
+ "version": "0.1.12",
4
+ "license": "Apache-2.0",
5
+ "description": "Shared function-body clone-detection substrate for OpenSIP CLI — hash/MinHash primitives + duplicate/near-duplicate algorithms over a tool-neutral candidate type",
6
+ "keywords": [
7
+ "opensip-cli",
8
+ "static-analysis",
9
+ "code-quality"
10
+ ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/opensip-ai/opensip-cli.git",
14
+ "directory": "packages/clone-detection"
15
+ },
16
+ "homepage": "https://github.com/opensip-ai/opensip-cli",
17
+ "bugs": {
18
+ "url": "https://github.com/opensip-ai/opensip-cli/issues"
19
+ },
20
+ "type": "module",
21
+ "main": "./dist/index.js",
22
+ "types": "./dist/index.d.ts",
23
+ "exports": {
24
+ ".": "./dist/index.js"
25
+ },
26
+ "files": [
27
+ "dist",
28
+ "LICENSE",
29
+ "NOTICE"
30
+ ],
31
+ "devDependencies": {
32
+ "@types/node": "^24.13.2",
33
+ "typescript": "~6.0.3",
34
+ "vitest": "^4.1.8"
35
+ },
36
+ "scripts": {
37
+ "build": "tsc",
38
+ "test": "vitest run",
39
+ "typecheck": "tsc --noEmit",
40
+ "clean": "rm -rf dist"
41
+ }
42
+ }