gent-link 0.2.12

Connect Codex and Claude Code chats across machines with the Gent CLI and desktop companion.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(() => {
  const file = '__GENT_SHELL_FILE__';
  if (window !== window.top || location.protocol !== 'tauri:' ||
      location.host !== 'localhost' || location.search ||
      !(location.pathname === '/' + file || (file === 'index.html' && location.pathname === '/'))) return;
  const key = '__GENT_SHELL_KEY__';
  const call = (action, value = null) =>
    window.__TAURI_INTERNALS__.invoke('gent_bridge', {key, action, value});
  Object.defineProperty(window, 'gent', { value: Object.freeze({
    closeTray: () => call('close_tray'),
    ready: () => call('ready'),
    hourCycle: () => call('hour_cycle'),
    send: value => call('send', value),
    open: url => call('open', url),
    board: (html, interactive = false) => window.__TAURI_INTERNALS__.invoke('gent_board', {key, value: {html, interactive}}),
    releaseBoard: url => call('release_board', url)
  }) });
})();