scai 0.1.87 → 0.1.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.
@@ -17,10 +17,10 @@ export async function handleAgentRun(filepath, modules) {
17
17
  const processedChunks = [];
18
18
  for (const [i, chunk] of chunks.entries()) {
19
19
  const chunkTokens = countTokens(chunk);
20
- // if (i === 0) {
21
- // console.log(chalk.cyan(`🔍 Processing ${chunks.length} chunks of file:`), chalk.white(filepath));
22
- // }
23
- // console.log(chalk.gray(` - Chunk ${i + 1} tokens:`), chalk.yellow(chunkTokens.toString()));
20
+ if (i === 0) {
21
+ console.log(chalk.cyan(`🔍 Processing ${chunks.length} chunks of file:`), chalk.white(filepath));
22
+ }
23
+ console.log(chalk.gray(` - Chunk ${i + 1} tokens:`), chalk.yellow(chunkTokens.toString()));
24
24
  const chunkInput = {
25
25
  originalContent: chunk,
26
26
  content: chunk,
@@ -308,8 +308,8 @@ export async function promptChunkReviewMenu() {
308
308
  console.log(' 2) ✍️ Edit the review before posting');
309
309
  console.log(' 3) ⌨️ Write a custom comment');
310
310
  console.log(' 4) ❌ Mark this chunk as needing changes');
311
- console.log(' 5) ⏭️ Skip this chunk without commenting');
312
- console.log(chalk.gray(' (Press [space] to skip chunk, [q] to quit review, or any other key to show menu)\n'));
311
+ console.log(' 5) ⏭️ Approve this chunk without commenting');
312
+ console.log(chalk.gray(' (Press [space] to skip and approve chunk, [q] to quit review, or any other key to show menu)\n'));
313
313
  // Fallback to menu input if key was not space/q
314
314
  function askWithReadline() {
315
315
  const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
@@ -434,8 +434,8 @@ export async function reviewPullRequestCmd(branch = 'main', showAll = false) {
434
434
  // We always submit comments first if any
435
435
  const initialReviewState = shouldApprove ? 'APPROVE' : 'REQUEST_CHANGES';
436
436
  const initialReviewBody = shouldApprove
437
- ? 'Reviewed all chunks.'
438
- : 'Requested changes based on chunk reviews.';
437
+ ? 'Reviewed.'
438
+ : 'Requested changes based on review.';
439
439
  console.log(shouldApprove && !hasInlineComments
440
440
  ? chalk.green('✔️ All chunks approved. Submitting final PR approval.')
441
441
  : !shouldApprove
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scai",
3
- "version": "0.1.87",
3
+ "version": "0.1.88",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "scai": "./dist/index.js"