@basou/core 0.24.0 → 0.25.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.
package/dist/index.js CHANGED
@@ -101,7 +101,11 @@ function countUncapturedDecisionPoints(records) {
101
101
 
102
102
  // src/adapters/claude-code/stop-hook.ts
103
103
  var DEFAULT_STOP_HOOK_MIN_EDITS = 2;
104
- var CAPTURE_COMMAND_PATTERN = /(?:^|[\n;&|(])\s*basou\s+(?:decision\s+(?:capture|record)|note)\b/;
104
+ var CAPTURE_INVOCATION = /(?:basou|(?:\S*\/)?node\s+\S*cli\/dist\/index\.js)/;
105
+ var CAPTURE_VERB = /(?:decision\s+(?:capture|record)|note)\b/;
106
+ var CAPTURE_COMMAND_PATTERN = new RegExp(
107
+ `(?:^|[\\n;&|(])\\s*${CAPTURE_INVOCATION.source}\\s+${CAPTURE_VERB.source}`
108
+ );
105
109
  var FILE_EDIT_TOOLS = /* @__PURE__ */ new Set(["Edit", "Write", "NotebookEdit"]);
106
110
  function evaluateStopHook(input) {
107
111
  const minEdits = input.minEdits ?? DEFAULT_STOP_HOOK_MIN_EDITS;