@volter/supercode-teams 0.2.67 → 0.2.69
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/machine.mjs +6 -2
- package/package.json +1 -1
package/machine.mjs
CHANGED
|
@@ -155,7 +155,7 @@ export class TeamsMachine extends MachineCore {
|
|
|
155
155
|
// Windows has no tmux: its panes live in the machine's pane server, a process of their own that outlives this
|
|
156
156
|
// daemon (a restart or an upgrade never ends a pane), as tmux panes live in tmux's server.
|
|
157
157
|
if (process.platform === 'win32' && !terminal.PaneServerHost) throw new Error('panes on Windows need a newer @volter/supercode-terminal (one with PaneServerHost)');
|
|
158
|
-
this.host = process.platform === 'win32' ? new terminal.PaneServerHost({ pipe: `\\\\.\\pipe\\supercode-panes-${fingerprint(this.identity.publicKeyPem)}
|
|
158
|
+
this.host = process.platform === 'win32' ? new terminal.PaneServerHost({ pipe: `\\\\.\\pipe\\supercode-panes-${fingerprint(this.identity.publicKeyPem)}`, runtimeDir: join(this.home, 'pane-server') }) : new TmuxTerminalHost({
|
|
159
159
|
// Stable owner id so panes this daemon launched stay "owned" across restarts.
|
|
160
160
|
ownerId: `supercode-teams-${fingerprint(this.identity.publicKeyPem)}`,
|
|
161
161
|
...(tmuxSocket ? { socket: tmuxSocket } : {}),
|
|
@@ -813,7 +813,11 @@ export class TeamsMachine extends MachineCore {
|
|
|
813
813
|
if (!terminal) return;
|
|
814
814
|
const attach = process.platform === 'win32'
|
|
815
815
|
? [process.execPath, fileURLToPath(new URL('./bin/fleet.mjs', import.meta.url)), 'attach', contextKey, '--mode', 'control']
|
|
816
|
-
|
|
816
|
+
// Presented as `supercode open`'s own client is (crates/cli/src/open.rs `attach`): the terminal sets its own
|
|
817
|
+
// TERM (WezTerm's is xterm-256color), and only a screen-256color client gets the pane server's no-alternate-
|
|
818
|
+
// screen override, so the window's own scrollback, wheel and selection work instead of the wheel arriving
|
|
819
|
+
// in the pane as up/down arrows.
|
|
820
|
+
: ['/usr/bin/env', 'TERM=screen-256color', spawnSync('which', ['tmux'], { encoding: 'utf8' }).stdout.trim() || 'tmux', ...(this.tmuxSocket ? ['-L', this.tmuxSocket] : []), '-T', 'RGB', 'attach-session', '-t', session.label ?? contextKey];
|
|
817
821
|
openPopup(terminal, attach, { ...this.env, TMUX: '' });
|
|
818
822
|
}
|
|
819
823
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-teams",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.69",
|
|
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",
|