@parall/cli 1.89.0 → 1.90.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 +1 @@
1
- {"version":3,"file":"wiki-comments.d.ts","sourceRoot":"","sources":["../../src/commands/wiki-comments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC;;2BAE2B;AAC3B,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,OAAO,QA6HxD"}
1
+ {"version":3,"file":"wiki-comments.d.ts","sourceRoot":"","sources":["../../src/commands/wiki-comments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMzC;;2BAE2B;AAC3B,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,OAAO,QAmIxD"}
@@ -1,6 +1,7 @@
1
1
  import { resolveCredentials } from '../lib/client.js';
2
2
  import { printError, printJson, stripPrllScheme } from '../lib/output.js';
3
3
  import { BODY_FILE_OPTION_DESC, BODY_OPTION_DESC, resolveCommentBody } from '../lib/text-input.js';
4
+ import { buildListTarget } from './comments.js';
4
5
  /** Wiki comment commands (`parall wiki comment …`), extracted from wiki.ts to
5
6
  * respect the file-size ratchet. Registered by registerWikiCommands on the
6
7
  * `wiki` command group. */
@@ -8,7 +9,8 @@ export function registerWikiCommentCommands(wiki) {
8
9
  const comment = wiki.command('comment').description('Manage wiki comments');
9
10
  comment
10
11
  .command('list')
11
- .description('List comments on a wiki target')
12
+ .description('List comments on a wiki target. A page includes its inline comments; each row ' +
13
+ 'carries its own target_uri and target_quote (the commented text)')
12
14
  .argument('[wiki]', 'Wiki ID or slug')
13
15
  .requiredOption('--target-type <type>', 'Target type (changeset or page)')
14
16
  .requiredOption('--target-id <id>', 'Target ID (changeset ID or page path)')
@@ -28,7 +30,10 @@ export function registerWikiCommentCommands(wiki) {
28
30
  ? COMMENT_TARGET.changeset(opts.targetId, w.id)
29
31
  : COMMENT_TARGET.wikiPage(w.id, opts.targetId);
30
32
  const result = await ctx.client.getComments(ctx.orgId, {
31
- target_uri: targetUri,
33
+ // A page lists by the same rule as `comments list`: its inline
34
+ // comments (`…path.md?rev=…#t=…`) come with the page-level ones.
35
+ // A changeset URI keeps exact matching.
36
+ ...buildListTarget(targetUri),
32
37
  limit: Number(opts.limit),
33
38
  cursor: opts.cursor,
34
39
  order: opts.order,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/cli",
3
- "version": "1.89.0",
3
+ "version": "1.90.0",
4
4
  "description": "CLI client for Parall — universal agent & human access to Parall API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -42,8 +42,8 @@
42
42
  "node-diff3": "3.2.1",
43
43
  "tar-stream": "^3.2.1",
44
44
  "zod": "^4.3.6",
45
- "@parall/sdk": "1.89.0",
46
- "@parall/agent-core": "1.89.0"
45
+ "@parall/agent-core": "1.90.0",
46
+ "@parall/sdk": "1.90.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@dnd-kit/core": "6.3.1",
@@ -71,7 +71,7 @@
71
71
  "tw-animate-css": "1.4.0",
72
72
  "typescript": "^5.7.0",
73
73
  "vite": "6.4.1",
74
- "@parall/agent-core": "1.89.0"
74
+ "@parall/agent-core": "1.90.0"
75
75
  },
76
76
  "scripts": {
77
77
  "build": "node scripts/generate-miniapp-sdk.mjs --check && node scripts/generate-local-runner.mjs --check && node scripts/generate-app-templates.mjs --check && tsc",