pinsay-cli 0.6.4 → 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.
package/README.md CHANGED
@@ -10,7 +10,8 @@ npx pinsay-cli init
10
10
 
11
11
  `init` walks you through everything: server, project, AI tool, and the widget/script snippet to paste into your app. It takes about a minute.
12
12
 
13
- Prefer a global install? `npm i -g pinsay-cli` — the command is `pinsay` either way.
13
+ - `npx pinsay-cli <command>` runs it without installing — but you type the full name every time.
14
+ - `npm i -g pinsay-cli` installs a real `pinsay` command on your PATH (recommended).
14
15
 
15
16
  ## Commands
16
17
 
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.4" : "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.4",
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",