pinsay-cli 0.6.5 → 0.6.6

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.
Files changed (2) hide show
  1. package/dist/cli.js +9 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -15,7 +15,7 @@ var init_build_constants = __esm({
15
15
  "src/build-constants.ts"() {
16
16
  "use strict";
17
17
  BUILD_DEFAULT_SERVER = true ? "https://api.pinsay.dev" : "https://api.pinsay.dev";
18
- BUILD_CLI_VERSION = true ? "0.6.5" : "0.0.0-dev";
18
+ BUILD_CLI_VERSION = true ? "0.6.6" : "0.0.0-dev";
19
19
  }
20
20
  });
21
21
 
@@ -2519,6 +2519,14 @@ async function widgetCheck(cwd2, config = {}, prefix = "") {
2519
2519
  }
2520
2520
  const detection = await detectStack(cwd2).catch(() => null);
2521
2521
  const candidates = [config.htmlPath, detection?.htmlPath, "index.html", "public/index.html", "src/index.html"].filter(Boolean);
2522
+ try {
2523
+ for (const entry of await fs11.readdir(cwd2, { withFileTypes: true })) {
2524
+ if (entry.isDirectory() && !entry.name.startsWith(".")) {
2525
+ candidates.push(join11(entry.name, "index.html"));
2526
+ }
2527
+ }
2528
+ } catch {
2529
+ }
2522
2530
  for (const rel of candidates) {
2523
2531
  try {
2524
2532
  const html = await fs11.readFile(join11(cwd2, rel), "utf8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinsay-cli",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
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",