@volter/supercode-teams 0.3.104 → 0.3.105

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.
@@ -2,9 +2,9 @@
2
2
  // Supercode hosts neither the agent nor its run loop; it can attach to native
3
3
  // question requests while the stock TUI remains the session's UI.
4
4
  import { spawn } from 'node:child_process';
5
- import { readFileSync, writeFileSync, renameSync, mkdtempSync, existsSync, rmSync, appendFileSync } from 'node:fs';
5
+ import { readFileSync, writeFileSync, renameSync, mkdtempSync, existsSync, rmSync, appendFileSync, mkdirSync } from 'node:fs';
6
6
  import { tmpdir } from 'node:os';
7
- import { join } from 'node:path';
7
+ import { basename, dirname, join } from 'node:path';
8
8
 
9
9
  const path = process.argv[2];
10
10
  const seed = JSON.parse(readFileSync(path, 'utf8'));
@@ -45,9 +45,11 @@ if(writableRoots.length)config.push('-c',`sandbox_workspace_write.writable_roots
45
45
  // The app-server's stderr is never the pane's: the pane is the TUI's screen, and a record the server writes there lands
46
46
  // on the TUI's composer row, which the mail wake then reads as a person's draft and never types over (yuerans,
47
47
  // 2026-10-06: `ERROR codex_models_manager::manager: failed to refresh available models` held every wake of the box
48
- // maintainer off for three hours). It is kept beside the pane's binding instead, at most LOG_BYTES of it.
48
+ // maintainer off for three hours). It is kept in a folder beside the bindings' (never among them: the carrier reads
49
+ // every file there on each poll, mail_question.rs `poll`), at most LOG_BYTES of it.
49
50
  const LOG_BYTES = 8 * 1024 * 1024;
50
- const serverLog = `${path.replace(/\.json$/, '')}.app-server.log`;
51
+ const serverLog = join(dirname(path), '..', 'native-launch-logs', `${basename(path).replace(/\.json$/, '')}.app-server.log`);
52
+ try { mkdirSync(dirname(serverLog), { recursive: true, mode: 0o700 }); } catch { /* its log is best kept */ }
51
53
  let logged = 0;
52
54
  const server = spawn(seed.program, [...config, 'app-server', '--listen', endpoint], { stdio: ['ignore', 'ignore', 'pipe'] });
53
55
  server.stderr.on('data', (chunk) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-teams",
3
- "version": "0.3.104",
3
+ "version": "0.3.105",
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",