@gmickel/gno 0.13.1 → 0.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmickel/gno",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "Local semantic search for your documents. Index Markdown, PDF, and Office files with hybrid BM25 + vector search.",
5
5
  "keywords": [
6
6
  "embeddings",
@@ -50,6 +50,12 @@ export function parseGlobalOptions(
50
50
  const offlineFlag = Boolean(raw.offline);
51
51
  const offlineEnabled = offlineEnv || offlineFlag;
52
52
 
53
+ const noPagerEnv =
54
+ (env.NO_PAGER !== undefined && env.NO_PAGER !== "") ||
55
+ (env.GNO_NO_PAGER !== undefined && env.GNO_NO_PAGER !== "") ||
56
+ env.NODE_ENV === "test" ||
57
+ env.BUN_TEST !== undefined;
58
+
53
59
  return {
54
60
  index: (raw.index as string) ?? "default",
55
61
  config: raw.config as string | undefined,
@@ -60,7 +66,7 @@ export function parseGlobalOptions(
60
66
  json: Boolean(raw.json),
61
67
  offline: offlineEnabled,
62
68
  // Commander: --no-pager => opts().pager === false
63
- noPager: raw.pager === false,
69
+ noPager: raw.pager === false || noPagerEnv,
64
70
  };
65
71
  }
66
72