@parall/cli 1.42.0 → 1.43.0

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.
@@ -1,10 +1,10 @@
1
1
  import type { SearchParams } from '@parall/sdk';
2
2
  import { Command } from 'commander';
3
3
  /**
4
- * Normalize a `--types m,t,w` flag into the server's CSV of canonical entity
5
- * names (`message,task,wiki`). Unknown tokens pass through unchanged so the
6
- * server can reject/ignore them. Returns undefined for an empty/absent flag so
7
- * the server applies its default (search all three).
4
+ * Normalize a `--types m,t,w,c` flag into the server's CSV of canonical entity
5
+ * names (`message,task,wiki,comment`). Unknown tokens pass through unchanged so
6
+ * the server can reject/ignore them. Returns undefined for an empty/absent flag
7
+ * so the server applies its default (search all types).
8
8
  */
9
9
  export declare function normalizeSearchTypes(raw?: string): string | undefined;
10
10
  export interface SearchOpts {
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/commands/search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBpC;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CASrE;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,yEAAyE;AACzE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,YAAY,CAY/E;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,QA4BtD"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/commands/search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CASrE;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,yEAAyE;AACzE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,YAAY,CAY/E;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,QA4BtD"}
@@ -10,12 +10,15 @@ const TYPE_ALIASES = {
10
10
  tasks: 'task',
11
11
  w: 'wiki',
12
12
  wiki: 'wiki',
13
+ c: 'comment',
14
+ comment: 'comment',
15
+ comments: 'comment',
13
16
  };
14
17
  /**
15
- * Normalize a `--types m,t,w` flag into the server's CSV of canonical entity
16
- * names (`message,task,wiki`). Unknown tokens pass through unchanged so the
17
- * server can reject/ignore them. Returns undefined for an empty/absent flag so
18
- * the server applies its default (search all three).
18
+ * Normalize a `--types m,t,w,c` flag into the server's CSV of canonical entity
19
+ * names (`message,task,wiki,comment`). Unknown tokens pass through unchanged so
20
+ * the server can reject/ignore them. Returns undefined for an empty/absent flag
21
+ * so the server applies its default (search all types).
19
22
  */
20
23
  export function normalizeSearchTypes(raw) {
21
24
  if (!raw)
@@ -50,9 +53,9 @@ export function buildSearchParams(query, opts) {
50
53
  export function registerSearchCommands(program) {
51
54
  program
52
55
  .command('search')
53
- .description('Unified semantic search across messages, tasks, and wiki (org-scoped)')
56
+ .description('Unified semantic search across messages, tasks, wiki, and comments (org-scoped)')
54
57
  .argument('<query>', 'Search query')
55
- .option('--types <list>', 'Comma-separated entity types: m[essage], t[ask], w[iki] (default: all)')
58
+ .option('--types <list>', 'Comma-separated entity types: m[essage], t[ask], w[iki], c[omment] (default: all)')
56
59
  .option('--channel <chatId>', 'Narrow MESSAGE results to one chat — tasks/wiki unaffected (prll://cht_… or cht_…)')
57
60
  .option('--limit <n>', 'Max results per entity type (server caps at 50)')
58
61
  .option('--wiki-type <type>', 'Narrow wiki results to a frontmatter document type')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/cli",
3
- "version": "1.42.0",
3
+ "version": "1.43.0",
4
4
  "description": "CLI client for Parall — universal agent & human access to Parall API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,14 +36,14 @@
36
36
  "diff": "^8.0.3",
37
37
  "js-yaml": "^4.1.0",
38
38
  "zod": "^4.3.6",
39
- "@parall/agent-core": "1.42.0",
40
- "@parall/sdk": "1.42.0"
39
+ "@parall/agent-core": "1.43.0",
40
+ "@parall/sdk": "1.43.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/js-yaml": "^4.0.9",
44
44
  "@types/node": "^22.0.0",
45
45
  "typescript": "^5.7.0",
46
- "@parall/agent-core": "1.42.0"
46
+ "@parall/agent-core": "1.43.0"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "tsc",