fix: resolve typing hang, intent detector reversed .test() bugs, and 'now' false positive

- Add missing clearInterval(typingInterval) in intent bypass early return path
- Fix intent-detector category detection: pattern.test(regex) → regex.test(trimmed)
- Fix short-answer patterns: same reversed .test() bug
- Prevent 'now' being matched as 'no' by adding \b word boundary to greeting regex
- Also tighten other greeting patterns with $ anchor where appropriate
This commit is contained in:
Kilo
2026-05-06 17:38:24 +00:00
Unverified
parent 994c5481bf
commit 20d5cc08fc
3 changed files with 30 additions and 22 deletions

13
package-lock.json generated
View File

@@ -1,12 +1,13 @@
{
"name": "zcode-cli-x",
"version": "1.0.0",
"version": "2.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "zcode-cli-x",
"version": "1.0.0",
"version": "2.0.0",
"license": "MIT",
"dependencies": {
"@anthropic-ai/sdk": "^0.81.0",
"@grammyjs/auto-retry": "^2.0.2",
@@ -31,8 +32,14 @@
"bin": {
"zcode": "bin/zcode.js"
},
"devDependencies": {},
"engines": {
"node": ">=20.0.0"
"node": ">=20.0.0",
"npm": ">=9.0.0"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/uroma2"
}
},
"node_modules/@anthropic-ai/sdk": {