@polycode-projects/the-mechanical-code-talker 2.7.19 → 2.7.20

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.7.19",
3
+ "version": "2.7.20",
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.",
@@ -544,7 +544,15 @@ async function runWorldCommand(cmd, { world, memoryDir, env, graph, cache }) {
544
544
  // the same way "what am I carrying" already reads inventory contents.
545
545
  // talk has no carried exception: NPCs are never portable.
546
546
  const carried = cmd.verb === "examine" && carriedByPlayer(state, object);
547
- if (!carried && visibleRoomOf(object, { rows, state }) !== here) {
547
+ // The room the player is standing in is never the SUBJECT of a placement
548
+ // fact (only ever the OBJECT other things are placed in), so
549
+ // visibleRoomOf(object) can never equal `here` for a room's own name —
550
+ // "examine the study" while standing in the study would otherwise
551
+ // decline "I don't see a study here", which reads as the room not
552
+ // existing rather than the true state (you're in it). Treat naming the
553
+ // current room itself as always present.
554
+ const isCurrentRoom = object === here;
555
+ if (!carried && !isCurrentRoom && visibleRoomOf(object, { rows, state }) !== here) {
548
556
  return answer(
549
557
  `I don't see a ${object} here.`,
550
558
  noteFor(`${cmd.verb} — ${object} isn't visible in the ${here}; declined, hidden things stay hidden`),