pinsay-cli 0.9.0 → 0.9.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.
package/README.md CHANGED
@@ -62,6 +62,10 @@ Full guides: https://pinsay.dev/docs/ · Issues: https://github.com/moamen-ui/pi
62
62
 
63
63
  ## Changelog
64
64
 
65
+ ### 0.9.1
66
+
67
+ - `remove` works when the repo sits behind a linked or shortened path (Windows junctions / short paths).
68
+
65
69
  ### 0.9.0
66
70
 
67
71
  - No more `.pinsay/pinsay.sh` (old copies keep working; `remove` deletes them).
package/dist/cli.js CHANGED
@@ -392,7 +392,7 @@ var init_build_constants = __esm({
392
392
  "src/build-constants.ts"() {
393
393
  "use strict";
394
394
  BUILD_DEFAULT_SERVER = true ? "https://app.pinsay.dev" : "https://app.pinsay.dev";
395
- BUILD_CLI_VERSION = true ? "0.9.0" : "0.0.0-dev";
395
+ BUILD_CLI_VERSION = true ? "0.9.1" : "0.0.0-dev";
396
396
  }
397
397
  });
398
398
 
@@ -3461,7 +3461,8 @@ var init_open = __esm({
3461
3461
  var remove_exports = {};
3462
3462
  __export(remove_exports, {
3463
3463
  collectRemovals: () => collectRemovals,
3464
- removeCommand: () => removeCommand
3464
+ removeCommand: () => removeCommand,
3465
+ writableInsideRoot: () => writableInsideRoot
3465
3466
  });
3466
3467
  import { promises as fs25 } from "node:fs";
3467
3468
  import { dirname as dirname10, isAbsolute as isAbsolute5, join as join28, relative as relative10, resolve as resolve10 } from "node:path";
@@ -3489,7 +3490,8 @@ async function readIfExists(p) {
3489
3490
  }
3490
3491
  async function writableInsideRoot(root, abs) {
3491
3492
  try {
3492
- const back = relative10(resolve10(root), await fs25.realpath(abs));
3493
+ const realRoot = await fs25.realpath(resolve10(root));
3494
+ const back = relative10(realRoot, await fs25.realpath(abs));
3493
3495
  return back !== "" && !back.startsWith("..") && !isAbsolute5(back);
3494
3496
  } catch {
3495
3497
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinsay-cli",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Click-to-comment feedback for your web app: install the widget, then turn pending comments into AI apply prompts.",
5
5
  "type": "module",
6
6
  "license": "MIT",