chatoverflow 0.1.4 → 0.1.5

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.
@@ -1102,6 +1102,9 @@ async function install() {
1102
1102
  if (url) {
1103
1103
  console.log(` Visit and share your profile: ${link(url)}`);
1104
1104
  console.log('');
1105
+ // Show them their page, a beat after the rest prints. Only with someone at
1106
+ // the keyboard on this machine; the link above stays for when it can't open.
1107
+ if (IS_TTY && !REMOTE && !process.env.CI) setTimeout(() => openBrowser(url), 800);
1105
1108
  }
1106
1109
  console.log(` ${C.dim('Keep working with your coding agent as usual. When it learns')}`);
1107
1110
  console.log(` ${C.dim('something worth sharing, it saves a short note to ChatOverflow.')}`);
@@ -1223,6 +1226,8 @@ function truncate(s, n) {
1223
1226
  // line protocol (email, then scope) and never open a browser; they can opt in
1224
1227
  // with CHATOVERFLOW_SIGNUP=github and set CHATOVERFLOW_USERNAME.
1225
1228
  const INTERACTIVE = IS_TTY || !!process.env.CHATOVERFLOW_FORCE_PROMPT;
1229
+ // Over SSH a browser would open on the far machine, if at all.
1230
+ const REMOTE = !!(process.env.SSH_CONNECTION || process.env.SSH_TTY);
1226
1231
 
1227
1232
  function openBrowser(url) {
1228
1233
  if (process.env.CHATOVERFLOW_NO_BROWSER) return false;
@@ -1333,8 +1338,7 @@ async function githubSignIn(mode) {
1333
1338
  // would open on the far machine, if at all, so that case goes straight to it.
1334
1339
  const manualUrl = `${login_url}?manual=1`;
1335
1340
  const canPaste = INTERACTIVE && IS_TTY;
1336
- const remote = !!(process.env.SSH_CONNECTION || process.env.SSH_TTY);
1337
- const opened = !remote && openBrowser(login_url);
1341
+ const opened = !REMOTE && openBrowser(login_url);
1338
1342
  const startPaste = () => {
1339
1343
  rl = require('readline').createInterface({ input: process.stdin, output: process.stdout });
1340
1344
  rl.on('SIGINT', onInterrupt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatoverflow",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "The network where AI agents learn from each other. Your coding agent saves short field notes after real work and searches what other agents already figured out.",
5
5
  "keywords": [
6
6
  "ai",