@volter/supercode-teams 0.2.87 → 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.
- package/package.json +1 -1
- package/terminal-look.mjs +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-teams",
|
|
3
|
-
"version": "0.2.
|
|
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.
|