@allthingsai/swapcheck 0.1.1 → 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.mjs CHANGED
@@ -7430,7 +7430,7 @@ function redactSecrets(text, env = process.env) {
7430
7430
  }
7431
7431
 
7432
7432
  // src/version.ts
7433
- var VERSION = true ? "0.1.1" : "0.0.0-dev";
7433
+ var VERSION = true ? "0.1.2" : "0.0.0-dev";
7434
7434
 
7435
7435
  // src/cli/args.ts
7436
7436
  var FORMATS = ["text", "json", "markdown", "sarif"];
@@ -14745,8 +14745,11 @@ var PROJECT_MARKERS = [
14745
14745
  "models.lock"
14746
14746
  ];
14747
14747
  async function refuseBroadFolder(root, home = homedir2()) {
14748
- const realHome = await realpath3(home).catch(() => path11.resolve(home));
14749
- const isHome = root === realHome;
14748
+ const canonical = async (folder) => {
14749
+ const real = await realpath3(folder).catch(() => path11.resolve(folder));
14750
+ return process.platform === "win32" ? real.toLowerCase() : real;
14751
+ };
14752
+ const isHome = await canonical(root) === await canonical(home);
14750
14753
  const isDiskTop = path11.dirname(root) === root;
14751
14754
  if (!isHome && !isDiskTop) return;
14752
14755
  for (const marker of PROJECT_MARKERS) {
package/dist/index.mjs CHANGED
@@ -12531,7 +12531,7 @@ function resolveProvider(model, route, snapshot, env = process.env, fetchImpl) {
12531
12531
  }
12532
12532
 
12533
12533
  // src/version.ts
12534
- var VERSION = true ? "0.1.1" : "0.0.0-dev";
12534
+ var VERSION = true ? "0.1.2" : "0.0.0-dev";
12535
12535
 
12536
12536
  // src/testing/stats.ts
12537
12537
  var logFactorials = [0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allthingsai/swapcheck",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Know when your LLM model is changing, find what to move to, and prove the move is safe on your own test cases.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",