cueloop 0.1.0-alpha.86 → 0.1.0-alpha.88

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.
Files changed (2) hide show
  1. package/package.json +6 -6
  2. package/src/pr.ts +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cueloop",
3
- "version": "0.1.0-alpha.86",
3
+ "version": "0.1.0-alpha.88",
4
4
  "description": "Terminal review surface for coding agents: annotate plans and diffs, return a message, send structured feedback back",
5
5
  "homepage": "https://github.com/mmurakaru/cueloop#readme",
6
6
  "bugs": {
@@ -30,13 +30,13 @@
30
30
  "build:binary": "bun build --compile --minify --external cpu-features ./src/main.ts --outfile dist/cueloop"
31
31
  },
32
32
  "dependencies": {
33
- "@cueloop/adapters": "0.1.0-alpha.86",
34
- "@cueloop/client": "0.1.0-alpha.86",
35
- "@cueloop/daemon": "0.1.0-alpha.86",
36
- "@cueloop/schema": "0.1.0-alpha.86",
33
+ "@cueloop/adapters": "0.1.0-alpha.88",
34
+ "@cueloop/client": "0.1.0-alpha.88",
35
+ "@cueloop/daemon": "0.1.0-alpha.88",
36
+ "@cueloop/schema": "0.1.0-alpha.88",
37
37
  "@modelcontextprotocol/server": "2.0.0",
38
38
  "@valibot/to-json-schema": "1.4.0",
39
- "valibot": "^1.4.2"
39
+ "valibot": "^1.5.0"
40
40
  },
41
41
  "engines": {
42
42
  "bun": ">=1.3.0"
package/src/pr.ts CHANGED
@@ -71,8 +71,8 @@ function reviewEvent(value: string): GitHubReviewEvent | undefined {
71
71
  return undefined;
72
72
  }
73
73
 
74
- function reviewSummary(event: GitHubReviewEvent, summary: string): string | undefined {
75
- const trimmed = summary.trim();
74
+ function reviewSummary(event: GitHubReviewEvent, body?: string): string | undefined {
75
+ const trimmed = body?.trim();
76
76
 
77
77
  if (trimmed) return trimmed;
78
78
  if (event === "APPROVE") return undefined;
@@ -412,7 +412,7 @@ export async function reviewPostCommand(argv: string[]): Promise<number> {
412
412
 
413
413
  if (!sessionId) {
414
414
  console.error(
415
- "usage: cueloop review-post <session-id> [--comments C1,C2] [--event comment|approve|request-changes]",
415
+ "usage: cueloop review-post <session-id> [--comments C1,C2] [--event comment|approve|request-changes] [--body <text>|--body-file <path>]",
416
416
  );
417
417
 
418
418
  return 2;
@@ -461,8 +461,8 @@ export async function reviewPostCommand(argv: string[]): Promise<number> {
461
461
 
462
462
  return 2;
463
463
  }
464
-
465
464
  try {
465
+ const body = reviewSummary(event, textFlag(flags, "body", "body-file"));
466
466
  const forgePort = forge();
467
467
  const remote = await forgePort.readPullRequest(
468
468
  session.artifact.meta.prUrl,
@@ -492,7 +492,7 @@ export async function reviewPostCommand(argv: string[]): Promise<number> {
492
492
  },
493
493
  comments,
494
494
  event,
495
- body: reviewSummary(event, session.message.summary),
495
+ body,
496
496
  cwd: session.artifact.meta.cwd,
497
497
  });
498
498