codehere 0.3.0-rc.7 → 0.3.0-rc.8

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.
@@ -84,9 +84,14 @@ function tokenize(prompt) {
84
84
  .toLowerCase()
85
85
  .split(/[^a-z0-9]+/)
86
86
  .filter(Boolean));
87
- // Normalized form for multi-word phrase matching: hyphens/underscores → space,
88
- // collapse runs of whitespace. Leaves alphanumerics intact.
89
- const normalized = ' ' + prompt.toLowerCase().replace(/[-_]+/g, ' ').replace(/\s+/g, ' ').trim() + ' ';
87
+ // Normalized form for multi-word phrase matching: ANY non-alphanumeric char
88
+ // (hyphens, underscores, slashes, dots, colons, commas, etc.) becomes a space,
89
+ // then collapse runs of whitespace. This matches the tokenizer's split rule
90
+ // exactly, so multi-word triggers like "add tests" catch all of:
91
+ // "add tests" "add-tests" "add_tests" "add/tests" "add:tests" "add.tests"
92
+ // Note: must NOT collapse the leading/trailing spaces — they're load-bearing
93
+ // for the boundary check below (`.includes(' ' + t + ' ')`).
94
+ const normalized = ' ' + prompt.toLowerCase().replace(/[^a-z0-9]+/g, ' ').trim() + ' ';
90
95
  return { tokens, normalized };
91
96
  }
92
97
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codehere",
3
- "version": "0.3.0-rc.7",
3
+ "version": "0.3.0-rc.8",
4
4
  "description": "A PM for your AI coding agents. Delegate, orchestrate, and audit Claude Code, Codex, Aider, and OpenCode from one local web UI — every AI action traced, every file scored.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",