reasonix 0.7.12 → 0.8.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.
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  CODE_SYSTEM_PROMPT,
4
4
  codeSystemPrompt
5
- } from "./chunk-5DZMZCCW.js";
5
+ } from "./chunk-DVBNMXA6.js";
6
6
  export {
7
7
  CODE_SYSTEM_PROMPT,
8
8
  codeSystemPrompt
9
9
  };
10
- //# sourceMappingURL=prompt-2OABSPAW.js.map
10
+ //# sourceMappingURL=prompt-POARCKKR.js.map
package/dist/index.js CHANGED
@@ -3525,6 +3525,34 @@ ${NEGATIVE_CLAIM_RULE}
3525
3525
  ${TUI_FORMATTING_RULES}
3526
3526
 
3527
3527
  The 'task' the parent gave you is the research question. Stay on it.`;
3528
+ var BUILTIN_REVIEW_BODY = `You are running as a code-review subagent. Your job is to inspect the changes the user is about to ship \u2014 usually the current git branch vs its upstream \u2014 and produce a focused review the parent can hand back to the user.
3529
+
3530
+ How to operate:
3531
+ - Default scope: the current branch's diff vs the default branch. If the user's task names a specific commit range or files, honor that instead.
3532
+ - Discover scope first: \`run_command git status\`, \`git diff --stat\`, \`git log --oneline\` to see what changed. Then \`git diff\` (or \`git diff <base>...HEAD\`) for the actual hunks.
3533
+ - Read the touched files (\`read_file\`) when the diff alone doesn't carry enough context \u2014 function signatures, surrounding invariants, callers.
3534
+ - For "any callers depending on this?" questions: \`search_content\` against the symbol BEFORE asserting impact.
3535
+ - Stay read-only. Never \`run_command git commit\`, never write files, never propose SEARCH/REPLACE blocks. The parent decides whether to act on your findings.
3536
+ - Cap yourself at ~12 tool calls. If the diff is too big to review in one pass, pick the riskiest 2-3 files and say so explicitly.
3537
+
3538
+ What to look for, in priority order:
3539
+ 1. **Correctness bugs** \u2014 off-by-one, null/undefined handling, race conditions, wrong sign / wrong operator, edge cases the code doesn't handle.
3540
+ 2. **Security** \u2014 injection (SQL, shell, path traversal), secrets in code, missing authz checks, unsafe deserialization.
3541
+ 3. **Behavior changes the diff hides** \u2014 renames that miss callers, removed branches that were load-bearing, error-handling that now swallows what used to surface.
3542
+ 4. **Tests** \u2014 does the change have tests for the new behavior? Are existing tests still meaningful, or did the change make them tautological?
3543
+ 5. **Style + consistency** \u2014 only flag deviations that matter (unsafe \`any\`, missing types in TypeScript, inconsistent error shape). Don't pile on cosmetic nits if the substance is clean.
3544
+
3545
+ Your final answer:
3546
+ - Lead with a one-sentence verdict: "ship as-is" / "minor nits, OK to ship after" / "blocking issues, do not ship".
3547
+ - Then a short bulleted list of issues, each with: file:line citation + the problem in one sentence + what to change.
3548
+ - Group by severity if you have more than 4 items: **Blocking**, **Should-fix**, **Nits**.
3549
+ - If everything looks clean, say so plainly. Don't manufacture concerns.
3550
+
3551
+ ${NEGATIVE_CLAIM_RULE}
3552
+
3553
+ ${TUI_FORMATTING_RULES}
3554
+
3555
+ The 'task' the parent gave you describes WHAT to review (a branch, a file set, or "the pending changes"). Stay on it; don't redesign the feature.`;
3528
3556
  var BUILTIN_SKILLS = Object.freeze([
3529
3557
  Object.freeze({
3530
3558
  name: "explore",
@@ -3541,6 +3569,14 @@ var BUILTIN_SKILLS = Object.freeze([
3541
3569
  scope: "builtin",
3542
3570
  path: "(builtin)",
3543
3571
  runAs: "subagent"
3572
+ }),
3573
+ Object.freeze({
3574
+ name: "review",
3575
+ description: "Review the pending changes (current branch diff by default) in an isolated subagent \u2014 flags correctness, security, missing tests, hidden behavior changes; reports verdict + per-issue file:line. Read-only; the parent decides what to act on.",
3576
+ body: BUILTIN_REVIEW_BODY,
3577
+ scope: "builtin",
3578
+ path: "(builtin)",
3579
+ runAs: "subagent"
3544
3580
  })
3545
3581
  ]);
3546
3582