@stupify/cli 0.0.4 → 0.0.5

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,4 +1,4 @@
1
- export declare const VERSION = "0.0.4";
1
+ export declare const VERSION = "0.0.5";
2
2
  import type { ModelConfig, ModelId } from "./types.ts";
3
3
  export declare const DEFAULT_MODEL_ID: ModelId;
4
4
  export declare const MODEL_REGISTRY: Record<ModelId, ModelConfig>;
package/dist/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- export const VERSION = "0.0.4";
1
+ export const VERSION = "0.0.5";
2
2
  export const DEFAULT_MODEL_ID = "gemma-4-e2b";
3
3
  export const MODEL_REGISTRY = {
4
4
  "gemma-4-e2b": {
package/dist/stupify.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import { realpathSync } from "node:fs";
2
3
  import { fileURLToPath } from "node:url";
3
4
  import { countPromptTokens, runSearch, searchRequest } from "./analysis.js";
4
5
  import { searchChecks } from "./checks.js";
@@ -232,6 +233,6 @@ function pathKind(filePath) {
232
233
  const ext = filePath.split(".").pop();
233
234
  return ext && ext !== filePath ? ext : "unknown";
234
235
  }
235
- if (process.argv[1] === fileURLToPath(import.meta.url)) {
236
+ if (process.argv[1] && realpathSync(process.argv[1]) === fileURLToPath(import.meta.url)) {
236
237
  process.exitCode = await main();
237
238
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stupify/cli",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Local-only diagnostic CLI for checking whether AI is making you dumber.",
5
5
  "private": false,
6
6
  "type": "module",
package/src/constants.ts CHANGED
@@ -1,4 +1,4 @@
1
- export const VERSION = "0.0.4";
1
+ export const VERSION = "0.0.5";
2
2
  import type { ModelConfig, ModelId } from "./types.ts";
3
3
 
4
4
  export const DEFAULT_MODEL_ID: ModelId = "gemma-4-e2b";
package/src/stupify.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ import { realpathSync } from "node:fs";
3
4
  import { fileURLToPath } from "node:url";
4
5
  import { countPromptTokens, runSearch, searchRequest } from "./analysis.ts";
5
6
  import { searchChecks } from "./checks.ts";
@@ -280,6 +281,6 @@ function pathKind(filePath: string): string {
280
281
  return ext && ext !== filePath ? ext : "unknown";
281
282
  }
282
283
 
283
- if (process.argv[1] === fileURLToPath(import.meta.url)) {
284
+ if (process.argv[1] && realpathSync(process.argv[1]) === fileURLToPath(import.meta.url)) {
284
285
  process.exitCode = await main();
285
286
  }