@volter/supercode-teams 0.2.86 → 0.2.88

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.
@@ -270,7 +270,10 @@ export class TeamsConnector {
270
270
  process.stderr.write(`supercode teams: ${harness} session ${nativeSessionId} not synced: ${error.message}\n`);
271
271
  }
272
272
  try { await this.nativeEffects.discover(descriptor, rule.id); } catch (error) { this.lastError = error; }
273
- if (!captured) continue;
273
+ // A large transcript is never followed: its harness process would hold the whole session and compare and copy
274
+ // all of it on every append (gigabytes and a busy core on the Mac mini, for two live 60-90 MB sessions), while
275
+ // its captures are paced by the large lanes anyway and each beat still finds its change.
276
+ if (!captured || this.largeSession(options)) continue;
274
277
  followCandidates.push({key:`${rule.id}:${harness}:${nativeSessionId}`,activity:this.sessionActivity(options),options});
275
278
  }
276
279
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-teams",
3
- "version": "0.2.86",
3
+ "version": "0.2.88",
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",
package/terminal-look.mjs CHANGED
@@ -165,6 +165,18 @@ export function weztermConfig(profile, { fontDirs = existsSync(TERMINAL_FONTS) ?
165
165
  'end',
166
166
  "wezterm.on('window-config-reloaded', fit)",
167
167
  "wezterm.on('window-resized', fit)",
168
+ // Terminal.app's title: the working directory's name, the running process, the size ("yueranyuan — sleep 40 — 81×18").
169
+ "wezterm.on('format-window-title', function(tab, pane)",
170
+ " local ok, title = pcall(function()",
171
+ " local cwd = pane.current_working_dir",
172
+ " cwd = cwd and (type(cwd) == 'userdata' and cwd.file_path or tostring(cwd)) or ''",
173
+ " local folder = cwd:gsub('/+$', ''):match('[^/]+$') or ''",
174
+ " local process = (pane.foreground_process_name or ''):match('[^/]+$') or pane.title",
175
+ " local dims = wezterm.mux.get_pane(pane.pane_id):get_dimensions()",
176
+ " return string.format('%s — %s — %d×%d', folder, process, dims.cols, dims.viewport_rows)",
177
+ " end)",
178
+ " return ok and title or pane.title",
179
+ "end)",
168
180
  `config.font_dirs = { ${fontDirs.map(lua).join(', ')} }`,
169
181
  ...(families.length ? [`config.font = wezterm.font_with_fallback({ ${families.join(', ')} })`] : []),
170
182
  // CoreText draws glyphs unhinted; FreeType's default hinting snaps their outlines to the pixel grid.