@polycode-projects/the-mechanical-code-talker 0.9.4 → 0.9.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polycode-projects/the-mechanical-code-talker",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "The Mechanical Code Talker (tmct) — a tolerant, offline, $0 chat surface that guides you toward precision queries about a software repository. ELIZA/PARRY-style but domain-obsessed with code. No model calls; no codebase index of its own.",
package/src/ask-vocab.mjs CHANGED
@@ -380,6 +380,7 @@ export const FILLER_WORDS = Object.freeze([
380
380
  "um", "uh", "erm", "so", "like", "yo", "hey", "bru", "bro", "fam", "mate",
381
381
  "please", "could you", "can you", "would you", "tell me", "i wonder",
382
382
  "just wondering", "quickly", "real quick", "kinda", "sorta",
383
+ "btw", "by the way",
383
384
  ]);
384
385
 
385
386
  /** Deictic/pronoun terms that refer to a context entity rather than naming one
package/src/chat.mjs CHANGED
@@ -2062,9 +2062,12 @@ function relationTermOf(query, envelope) {
2062
2062
  * (normalize.mjs). Deliberately used only as a LAST-RESORT lane (see its call
2063
2063
  * site below) — "tell me about X" is ALSO the relation/concept force's own
2064
2064
  * trigger phrase for enumerable concepts ("tell me about inheritance"), so
2065
- * this must never run before those have had their chance. */
2065
+ * this must never run before those have had their chance. Trails an optional
2066
+ * "please" as well as "for me" (playtest sprint round 3): this lane reads the
2067
+ * RAW turn text, not normalize.mjs's FILLER_WORDS-stripped one, so "could you
2068
+ * tell me more about Router please" needs its own trailing-politeness strip. */
2066
2069
  const DESCRIBE_WRAPPER_RE =
2067
- /^(?:(?:can|could|would)\s+you\s+(?:please\s+)?|please\s+)?(?:tell\s+me\s+(?:more\s+)?about|describe)\s+(.+?)(?:\s+for\s+me)?\s*\??$/i;
2070
+ /^(?:(?:can|could|would)\s+you\s+(?:please\s+)?|please\s+)?(?:tell\s+me\s+(?:more\s+)?about|describe)\s+(.+?)(?:\s+for\s+me)?(?:\s+please)?\s*\??$/i;
2068
2071
 
2069
2072
  async function describeWrapperAnswer(query, { config, source }) {
2070
2073
  const m = DESCRIBE_WRAPPER_RE.exec(String(query || "").trim());