@polycode-projects/the-mechanical-code-talker 2.9.6 → 2.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polycode-projects/the-mechanical-code-talker",
3
- "version": "2.9.6",
3
+ "version": "2.10.0",
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.",
@@ -515,10 +515,15 @@ export function renderLedgerHtml({ rows, terms, edges, focus, contradictions, wo
515
515
  // the query-only wording even when the live bundle is offered — the dock's
516
516
  // own script swaps it for a teach-aware placeholder the moment it confirms
517
517
  // tmctLedger actually loaded (never claimed ahead of that confirmation).
518
+ // The example term skips anything under 3 characters — the SAME floor the
519
+ // dock's own miss-tips apply below — so a graph whose highest-degree term
520
+ // is a short stopword-shaped fragment (init:large corpora carry plenty:
521
+ // "os", "ip", "s3") never becomes the one example a visitor sees.
518
522
  const termSet = new Set((terms || []).map((t) => t.term));
523
+ const exampleTerm = (terms || []).find((t) => t && t.term && t.term.length >= 3);
519
524
  const placeholder = termSet.has("ishmael")
520
525
  ? "who is the grandfather of ishmael"
521
- : (terms && terms.length ? `ask the graph… e.g. what is ${terms[0].term}` : "ask the graph…");
526
+ : (exampleTerm ? `ask the graph… e.g. what is ${exampleTerm.term}` : "ask the graph…");
522
527
  const dockHtml = hasMemChat
523
528
  ? `<div class="chat">
524
529
  <div class="chatlog" id="chatlog" aria-live="polite"></div>