@kenkaiiii/gg-boss 4.8.2 → 4.8.3

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.
@@ -75699,7 +75699,7 @@ End your reply with this exact notice so the user doesn't miss it:
75699
75699
  name: "setup-commit",
75700
75700
  aliases: [],
75701
75701
  description: "Generate a /commit command",
75702
- prompt: `Detect the project type and generate a /commit command that enforces quality checks before committing.
75702
+ prompt: `Detect the project type and generate a /commit command that enforces quality checks and an agent code review before committing.
75703
75703
 
75704
75704
  ## Step 1: Detect Project and Extract Commands
75705
75705
 
@@ -75718,7 +75718,7 @@ Create the directory \`.gg/commands/\` if it doesn't exist, then write \`.gg/com
75718
75718
  \`\`\`markdown
75719
75719
  ---
75720
75720
  name: commit
75721
- description: Run checks, commit with AI message, and push
75721
+ description: Run checks, agent code review, commit with AI message, and push
75722
75722
  ---
75723
75723
 
75724
75724
  1. Run quality checks:
@@ -75727,24 +75727,37 @@ description: Run checks, commit with AI message, and push
75727
75727
 
75728
75728
  2. Review changes: run git status and git diff --staged and git diff
75729
75729
 
75730
- 3. Stage relevant files with git add (specific files, not -A)
75730
+ 3. Fast review gate: spawn ONE subagent with the full diff. Instructions: review ONLY
75731
+ the diff for real bugs, regressions, leftover debug code, and unintended changes.
75732
+ Score each issue 0-100 confidence (pre-existing issues and stylistic nitpicks = false
75733
+ positives, score low). Report ONLY issues with confidence >= 80, with file:line and a
75734
+ one-line fix. If none, reply "CLEAR". This is a last check, not a deep audit - be fast.
75731
75735
 
75732
- 4. Generate a commit message:
75736
+ 4. If CLEAR: proceed straight to step 5 and push WITHOUT asking the user anything.
75737
+ If issues >= 80 were reported: STOP, show the issues, and ask exactly:
75738
+ "Want me to fix this first, or commit and push anyway?
75739
+ A) Fix it first, then commit & push
75740
+ B) Commit & push anyway"
75741
+ On A: fix, re-run step 1, then continue (no re-review). On B: continue as-is.
75742
+
75743
+ 5. Stage relevant files with git add (specific files, not -A)
75744
+
75745
+ 6. Generate a commit message:
75733
75746
  - Start with verb (Add/Update/Fix/Remove/Refactor)
75734
75747
  - Be specific and concise, one line preferred
75735
75748
 
75736
- 5. Commit and push:
75749
+ 7. Commit AND push in one go - never pause for confirmation here:
75737
75750
  git commit -m "your generated message"
75738
75751
  git push
75739
75752
  \`\`\`
75740
75753
 
75741
75754
  Replace [PROJECT-SPECIFIC LINT/TYPECHECK COMMANDS] with the actual commands.
75742
75755
 
75743
- Keep the command file under 20 lines.
75756
+ Keep the command file under 30 lines.
75744
75757
 
75745
75758
  ## Step 3: Confirm
75746
75759
 
75747
- Report that /commit is now available with quality checks and AI-generated commit messages, and mention which local scripts/docs verified the commands.`
75760
+ Report that /commit is now available with quality checks, an agent code review gate, and AI-generated commit messages, and mention which local scripts/docs verified the commands.`
75748
75761
  },
75749
75762
  {
75750
75763
  name: "compare",
@@ -107826,7 +107839,10 @@ var Markdown = import_react55.default.memo(function Markdown2({ children, width:
107826
107839
  availableTerminalHeight,
107827
107840
  renderMarkdown
107828
107841
  }), [availableTerminalHeight, isPending, renderMarkdown, terminalWidth, text, theme]);
107829
- const visibleLines = availableTerminalHeight !== void 0 && renderedLines.length > availableTerminalHeight ? renderedLines.slice(-availableTerminalHeight) : renderedLines;
107842
+ let visibleLines = availableTerminalHeight !== void 0 && renderedLines.length > availableTerminalHeight ? renderedLines.slice(-availableTerminalHeight) : renderedLines;
107843
+ while (visibleLines.length > 0 && visibleLines[0] === "") {
107844
+ visibleLines = visibleLines.slice(1);
107845
+ }
107830
107846
  if (!text || visibleLines.length === 0)
107831
107847
  return null;
107832
107848
  return (0, import_jsx_runtime14.jsx)(Box_default, { flexDirection: "column", width: terminalWidth, flexShrink: 1, children: (0, import_jsx_runtime14.jsx)(RenderAnsiLines, { lines: visibleLines }) });
@@ -114727,4 +114743,4 @@ react/cjs/react-jsx-runtime.development.js:
114727
114743
  * LICENSE file in the root directory of this source tree.
114728
114744
  *)
114729
114745
  */
114730
- //# sourceMappingURL=chunk-ROHVABKQ.js.map
114746
+ //# sourceMappingURL=chunk-VN6GZWBW.js.map