@volter/supercode-teams 0.2.92 → 0.2.93

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.
Files changed (2) hide show
  1. package/bin/teams.mjs +3 -1
  2. package/package.json +1 -1
package/bin/teams.mjs CHANGED
@@ -271,7 +271,9 @@ async function main() {
271
271
  try { request = JSON.parse(Buffer.concat(chunks).toString('utf8')); } catch { die('mail reads one JSON request on stdin'); }
272
272
  const channel = await machineChannel();
273
273
  let stream;
274
- try { stream = await channel.open('mail', { request }); } catch (error) { die(error.message, 1); }
274
+ // A typed line waits as long as the server retries it on a loaded machine (2 minutes), and a little longer.
275
+ const timeoutMs = request?.op === 'turn' ? 150_000 : undefined;
276
+ try { stream = await channel.open('mail', { request }, { timeoutMs }); } catch (error) { die(error.message, 1); }
275
277
  let answered = false;
276
278
  stream.on('data', (chunk) => { answered = true; process.stdout.write(`${chunk}\n`); });
277
279
  stream.on('close', (reason) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-teams",
3
- "version": "0.2.92",
3
+ "version": "0.2.93",
4
4
  "type": "module",
5
5
  "description": "A machine daemon serving this machine's doors, and a local or remote Teams server for shared session discovery, OpenTelemetry ingestion and access to enrolled machines.",
6
6
  "license": "MIT",