claude-dependency-test 1.0.0 → 1.0.1
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-dependency-test",
|
|
3
3
|
"displayName": "Claude Dependency Test",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"description": "How addicted to Claude are you? Computes a 0-100 dependency score from your local Claude Code transcripts and generates a shareable card. Offline, aggregates only.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Camille Roux",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-dependency-test",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "How addicted to Claude are you? Scores your Claude Code dependency out of 100 from local usage stats and publishes a shareable patient chart. Your prompts never leave your machine.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/scripts/diagnose.mjs
CHANGED
|
@@ -154,7 +154,9 @@ export async function run(argv, env = process.env, { fetchImpl = globalThis.fetc
|
|
|
154
154
|
return { result, text: lines.join('\n') };
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
// npx and global installs run this file through a symlink (node_modules/.bin), so compare real paths.
|
|
158
|
+
const realpath = (p) => { try { return fs.realpathSync(p); } catch { return path.resolve(p); } };
|
|
159
|
+
const isMain = process.argv[1] && realpath(process.argv[1]) === realpath(fileURLToPath(import.meta.url));
|
|
158
160
|
if (isMain) {
|
|
159
161
|
run(process.argv.slice(2))
|
|
160
162
|
.then(({ result, text }) => {
|