Add tokens and faceclaw-input script, which allows using a CLI utility as an input device for the glasses

This commit is contained in:
James Babcock committed 2026-09-20 00:34:58 -07:00
1 parent 313ba85708
commit ccb320c66f
32 files changed
+1785 -12

No files matched your search

+2 -1
View File
@@ -362,7 +362,8 @@ global.onmessage = (event: { data: WorkerAppMessage }) => {
// Enter ("\r") after a wrapper-side pause so paste-detecting apps
// (e.g. Claude Code) submit instead of inserting a newline.
if (window && window.kind === "view") {
window.client.submitInput(message.text);
if (message.submit === false) window.client.sendInput(message.text);
else window.client.submitInput(message.text);
} else if (window && window.kind === "hub" && window.mode === "add") {
terminalNewConnectionSetting.set(message.text);
scheduleRender(window);