fix(harness): gate kickoff/lock entry works in RPC mode (not only interactive)

- Removed event.source === "interactive" guard from entry detection so
  /nuova-domanda and /riprendi-sessione activate lockActive+pendingKickoff
  regardless of source (TUI or RPC prompt).
- Removed event.source !== "interactive" from free-input filter; lock now
  blocks/steers all user input when active, not only interactive keystrokes.
- Added typebox@1.1.38 devDep + fake_pi_runtime.registerCommand (gap from Task 2).
- New test: gate_entry.test.js (2 tests: lock activates on RPC; !-steer passes).
- Full suite: 19/19 pass, zero regressions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-27 19:57:38 +02:00
co-authored by Claude Sonnet 4.6
parent b72183ef2a
commit c55df2ad0f
5 changed files with 59 additions and 6 deletions
+3
View File
@@ -5,5 +5,8 @@
"description": "Pi gate extension for the ThothII NL->SQL harness (widget-descriptor builders + glue)",
"scripts": {
"test": "node --test .pi/extensions/gate/__tests__/*.test.js"
},
"devDependencies": {
"typebox": "1.1.38"
}
}