wdyt 0.1.3 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wdyt",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "Code review context builder for LLMs - what do you think?",
6
6
  "license": "MIT",
@@ -319,9 +319,15 @@ export async function chatSendCommand(
319
319
  await Bun.write(chatPath, xmlContent);
320
320
 
321
321
  // Check if this is a review request - if so, run Claude CLI to do the review
322
- const isReviewMode = payload.mode === "review";
322
+ // Triggers: mode="review", WDYT_REVIEW=1 env var, or --review in message
323
+ const isReviewMode = payload.mode === "review" ||
324
+ payload.mode === "impl-review" ||
325
+ process.env.WDYT_REVIEW === "1" ||
326
+ prompt.includes("[REVIEW]");
323
327
 
324
328
  if (isReviewMode) {
329
+ console.error(`[wdyt] Review mode triggered (mode=${payload.mode}, env=${process.env.WDYT_REVIEW || "unset"})`);
330
+
325
331
  // Check if claude CLI is available
326
332
  if (!(await claudeCliAvailable())) {
327
333
  return {
@@ -331,7 +337,7 @@ export async function chatSendCommand(
331
337
  }
332
338
 
333
339
  // Run the review using Claude CLI
334
- console.error("Running review with Claude CLI...");
340
+ console.error("[wdyt] Running review with Claude CLI...");
335
341
  const reviewOutput = await runClaudeReview(chatPath, prompt);
336
342
 
337
343
  return {