effect-analyzer 0.1.0 → 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/dist/cli.js +2 -2
- package/dist/effect-workflow.cjs +1 -1
- package/dist/effect-workflow.cjs.map +1 -1
- package/dist/effect-workflow.js +1 -1
- package/dist/effect-workflow.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lsp/server.js +1 -1
- package/package.json +37 -18
package/dist/lsp/server.js
CHANGED
|
@@ -2534,7 +2534,7 @@ var findEffectPrograms = (sourceFile, _opts) => {
|
|
|
2534
2534
|
continue;
|
|
2535
2535
|
}
|
|
2536
2536
|
}
|
|
2537
|
-
if ((exprText === "gen" || exprText.
|
|
2537
|
+
if ((exprText === "gen" || exprText.endsWith(".gen") && isEffectLikeCallExpression(call, sourceFile, effectImportNames, _opts.knownEffectInternalsRoot)) && !seenCallStarts.has(callStart)) {
|
|
2538
2538
|
const name = extractProgramName(call) ?? extractEnclosingEffectFnName(call) ?? `program-${programs.length + 1}`;
|
|
2539
2539
|
programs.push({
|
|
2540
2540
|
name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "effect-analyzer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Static analysis for Effect-TS code. Analyze Effect code to extract structure, calculate complexity, and generate visualizations.",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -27,31 +27,38 @@
|
|
|
27
27
|
"scripts",
|
|
28
28
|
"README.md"
|
|
29
29
|
],
|
|
30
|
-
"scripts": {
|
|
31
|
-
"build": "tsup",
|
|
32
|
-
"lsp": "node dist/lsp/server.js",
|
|
33
|
-
"type-check": "tsc --noEmit",
|
|
34
|
-
"test": "vitest run",
|
|
35
|
-
"test:watch": "vitest watch",
|
|
36
|
-
"lint": "eslint src",
|
|
37
|
-
"lint:fix": "eslint src --fix",
|
|
38
|
-
"clean": "rm -rf dist",
|
|
39
|
-
"quality": "pnpm type-check && pnpm test && pnpm lint",
|
|
40
|
-
"effect:fetch": "tsx scripts/fetch-effect-repo.ts"
|
|
41
|
-
},
|
|
42
30
|
"keywords": [
|
|
43
|
-
"effect",
|
|
44
|
-
"
|
|
31
|
+
"effect",
|
|
32
|
+
"effect-ts",
|
|
33
|
+
"static-analysis",
|
|
34
|
+
"ts-morph",
|
|
35
|
+
"typescript",
|
|
36
|
+
"visualization",
|
|
37
|
+
"mermaid",
|
|
38
|
+
"functional-programming"
|
|
45
39
|
],
|
|
46
40
|
"author": "Jag Reehal <jag@jagreehal.com>",
|
|
47
41
|
"license": "MIT",
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "git+https://github.com/jagreehal/effect-analyzer.git",
|
|
45
|
+
"directory": "packages/effect-analyzer"
|
|
46
|
+
},
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/jagreehal/effect-analyzer/issues"
|
|
49
|
+
},
|
|
50
|
+
"homepage": "https://github.com/jagreehal/effect-analyzer/tree/main/packages/effect-analyzer#readme",
|
|
48
51
|
"peerDependencies": {
|
|
49
52
|
"effect": ">=3.0.0",
|
|
50
53
|
"@effect/platform": ">=0.70.0"
|
|
51
54
|
},
|
|
52
55
|
"peerDependenciesMeta": {
|
|
53
|
-
"effect": {
|
|
54
|
-
|
|
56
|
+
"effect": {
|
|
57
|
+
"optional": false
|
|
58
|
+
},
|
|
59
|
+
"@effect/platform": {
|
|
60
|
+
"optional": true
|
|
61
|
+
}
|
|
55
62
|
},
|
|
56
63
|
"dependencies": {
|
|
57
64
|
"effect": "^3.21.0",
|
|
@@ -72,5 +79,17 @@
|
|
|
72
79
|
"typescript": "^5.9.3",
|
|
73
80
|
"typescript-eslint": "^8.57.1",
|
|
74
81
|
"vitest": "^4.1.0"
|
|
82
|
+
},
|
|
83
|
+
"scripts": {
|
|
84
|
+
"build": "tsup",
|
|
85
|
+
"lsp": "node dist/lsp/server.js",
|
|
86
|
+
"type-check": "tsc --noEmit",
|
|
87
|
+
"test": "vitest run",
|
|
88
|
+
"test:watch": "vitest watch",
|
|
89
|
+
"lint": "eslint src",
|
|
90
|
+
"lint:fix": "eslint src --fix",
|
|
91
|
+
"clean": "rm -rf dist",
|
|
92
|
+
"quality": "pnpm type-check && pnpm test && pnpm lint",
|
|
93
|
+
"effect:fetch": "tsx scripts/fetch-effect-repo.ts"
|
|
75
94
|
}
|
|
76
|
-
}
|
|
95
|
+
}
|