@volter/supercode-terminal 0.2.58 → 0.2.59

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.
Files changed (2) hide show
  1. package/index.mjs +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1754,7 +1754,8 @@ export function composerText(kind, screen) {
1754
1754
  if (kind !== 'claude-code' && kind !== 'codex') return null;
1755
1755
  const lines = String(screen ?? '').split('\n').map(styledCells);
1756
1756
  const plain = lines.map((cells) => cells.map((cell) => cell.char).join(''));
1757
- const rule = /^\s*[─━]{4,}\s*$/u;
1757
+ // A session started with `--name` labels the rule above its editor (`──── name ─`); the label does not end the rule.
1758
+ const rule = /^\s*[─━]{4,}(?:[^─━]+[─━]+)?\s*$/u;
1758
1759
  const footer = /^\s*(?:.*\btab to queue (?:a )?message\b.*$|\? for shortcuts\b|⚠\s+\d+\s+warnings?\s+·\s+f2 to view\s*$|[^\n]+ · (?:~(?:[\\/]|(?=\s|$))|[\\/]|[A-Z]:[\\/])[^\n]*$|.*← for agents\s*$|.*\bcontext(?:\s+\d+%)?\s+left\b)/iu;
1759
1760
  const caret = kind === 'codex' ? /^\s*›(?:\s|$)/u : /^\s*[❯>](?:\s|$)/u;
1760
1761
  for (let row = plain.length - 1; row >= 0; row -= 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-terminal",
3
- "version": "0.2.58",
3
+ "version": "0.2.59",
4
4
  "type": "module",
5
5
  "description": "Optional leak-safe terminal and tmux host adapter for Volter Harness frontends",
6
6
  "exports": {