@tiagojct/subsub 0.24.0 → 0.24.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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Sub-Sub follows the version numbers of npm: a change in the second number (0.13) adds features or changes how you use it; a change in the third (0.13.1) only fixes.
4
4
 
5
+ ## 0.24.1 (2026-11-01)
6
+
7
+ - In the terminal, the tool line of a library search with several queries (your words and their synonyms, 0.24.0) shows the words it searched. It showed nothing after the tool name.
8
+
5
9
  ## 0.24.0 (2026-11-01)
6
10
 
7
11
  With the Zotero server 0.7.0.
package/dist/chrome.js CHANGED
@@ -92,7 +92,7 @@ export function toolDetail(args, max = 40) {
92
92
  if (!args || typeof args !== "object")
93
93
  return "";
94
94
  const a = args;
95
- for (const k of ["query", "q", "title", "citekey", "key", "keys", "doi", "identifier", "path", "name", "text"]) {
95
+ for (const k of ["query", "queries", "q", "title", "citekey", "key", "keys", "doi", "identifier", "path", "name", "text"]) {
96
96
  const v = a[k];
97
97
  if (v === undefined || v === null || v === "")
98
98
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiagojct/subsub",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
4
4
  "description": "Sub-Sub: a research assistant that works from your own Zotero library, in the browser or the terminal, built on pi",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/chrome.ts CHANGED
@@ -116,7 +116,7 @@ export function toolLine(opts: { state: ToolState; word: string; detail?: string
116
116
  export function toolDetail(args: unknown, max = 40): string {
117
117
  if (!args || typeof args !== "object") return "";
118
118
  const a = args as Record<string, unknown>;
119
- for (const k of ["query", "q", "title", "citekey", "key", "keys", "doi", "identifier", "path", "name", "text"]) {
119
+ for (const k of ["query", "queries", "q", "title", "citekey", "key", "keys", "doi", "identifier", "path", "name", "text"]) {
120
120
  const v = a[k];
121
121
  if (v === undefined || v === null || v === "") continue;
122
122
  const s = Array.isArray(v) ? v.filter((x) => typeof x !== "object").join(", ") : String(v);