@volter/supercode-teams 0.2.121 → 0.2.123

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.
package/bin/teams.mjs CHANGED
@@ -47,7 +47,7 @@ import { NODE_PROTOCOL } from '@volter/teams/channel';
47
47
 
48
48
  const MACHINE_VERBS = new Set(['machine', 'describe', 'panes', 'input', 'suspend', 'resume', 'files', 'ports', 'port', 'browser', 'stream', 'jobs', 'workspace', 'title', 'attention', 'watch', 'rpc', 'launches', 'log', 'mail']);
49
49
  // Every flag a machine verb reads; any other is refused rather than silently ignored.
50
- const KNOWN_FLAGS = new Set(['home', 'machine', 'context', 'floor', 'supercode', 'tmux-socket', 'verbose', 'lines', 'input', 'name', 'for', 'urgency', 'reason', 'interrupt', 'query', 'out', 'in', 'interval', 'no-enter', 'when-composer-empty', 'key', 'listen', 'list', 'from', 'to', 'path', 'to-path']);
50
+ const KNOWN_FLAGS = new Set(['home', 'machine', 'context', 'floor', 'supercode', 'tmux-socket', 'verbose', 'lines', 'input', 'name', 'for', 'urgency', 'reason', 'interrupt', 'query', 'out', 'in', 'interval', 'no-enter', 'when-composer-empty', 'key', 'listen', 'list', 'from', 'to', 'path', 'to-path', 'repo', 'branch', 'solo', 'card', 'create', 'presence-only', 'clear-draft']);
51
51
 
52
52
  const argv = process.argv.slice(2);
53
53
  const flags = {};
package/machine.mjs CHANGED
@@ -1294,7 +1294,7 @@ export class TeamsMachine extends MachineCore {
1294
1294
  if (!whole && !observesPanes(admitted)) need('view', '*');
1295
1295
  const sessions = (await this.host.listSessions()).filter(s => s.contextKey && (whole || holds(admitted, 'observe', `pane:${s.contextKey}`)));
1296
1296
  return Promise.all(sessions.map(async session => {
1297
- const screen = await this.host.capture(session.id, { lines: 100, preserveEscapes: true }).catch(() => null);
1297
+ const screen = await Promise.resolve().then(() => this.host.capture(session.id, { lines: 100, preserveEscapes: true })).catch(() => null);
1298
1298
  const kind = this.#paneKind(session.contextKey, session);
1299
1299
  const composer = screen && terminal.composerText?.(kind, screen);
1300
1300
  return { pane: session.contextKey, idleComposer: composer != null && !/\besc to (?:interrupt|cancel)\b/iu.test(screen) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-teams",
3
- "version": "0.2.121",
3
+ "version": "0.2.123",
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",