Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Commit 4074128

Browse files
mcp-tool-shopclaude
andcommitted
Fix tokenizer: split hyphens into separate tokens
claude-memories was tokenized as one word, missing keyword matches for entries with separate "claude" and "memories" keywords. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3ad0998 commit 4074128

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.4.1 — 2026-03-06
4+
5+
- **Fix tokenizer**: hyphens now split into separate tokens (`claude-memories``claude` + `memories`), fixing keyword matching for hyphenated task descriptions
6+
- Dogfooded end-to-end: install → index → resolve → planLoad against a real 32-entry workspace
7+
38
## 1.4.0 — 2026-03-06
49

510
- **Agent runtime contract**: `planLoad()`, `recordLoad()`, `manualLookup()` — the canonical agent integration API

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mcptoolshop/ai-loadout",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "Context-aware knowledge router for AI agents. Dispatch table, matcher, hierarchical resolver, agent runtime contract, CLI.",
55
"type": "module",
66
"bin": {

src/match.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function tokenize(text: string): Set<string> {
2121
return new Set(
2222
text
2323
.toLowerCase()
24-
.replace(/[^a-z0-9\s-]/g, " ")
24+
.replace(/[^a-z0-9\s]/g, " ")
2525
.split(/\s+/)
2626
.filter((w) => w.length > 1),
2727
);

0 commit comments

Comments
 (0)