@volter/supercode-terminal 0.2.65 → 0.2.67
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/index.mjs +2 -0
- package/package.json +1 -1
- package/substrate/tmux.js +1 -1
package/index.mjs
CHANGED
|
@@ -1750,6 +1750,8 @@ const ANSI_SEQUENCE = /\u001b\[[0-?]*[ -\/]*[@-~]|\u001b\][^\u0007\u001b]*(?:\u0
|
|
|
1750
1750
|
export function composerReadyForInput(kind, screen) {
|
|
1751
1751
|
if (!Object.hasOwn(COMPOSER_READY, kind)) return null;
|
|
1752
1752
|
if (kind === 'claude-code' || kind === 'codex') return composerText(kind, screen) === '';
|
|
1753
|
+
// gemini and grok: their composer is drawn, which is all a caret line says. A draft already typed in it is not
|
|
1754
|
+
// read (no composerText for them), so for these two `true` means a composer present, not an empty one.
|
|
1753
1755
|
return COMPOSER_READY[kind](String(screen ?? ''));
|
|
1754
1756
|
}
|
|
1755
1757
|
|
package/package.json
CHANGED
package/substrate/tmux.js
CHANGED
|
@@ -63,7 +63,7 @@ export async function createSession({ command, cwd, env, name, owner, ownerOptio
|
|
|
63
63
|
// it. When an agent's session started the server (or is the launcher), that includes the session's own harness
|
|
64
64
|
// identity, so a new pane would resolve as that session. A pane's identity is only what its own session sets:
|
|
65
65
|
// every identity variable the server or the launcher holds and the session does not set is unset in the pane.
|
|
66
|
-
const identity = /^(CLAUDECODE|CLAUDE_CODE_SESSION_ID|CLAUDE_CODE_ENTRYPOINT|CODEX_THREAD_ID|CODEX_SESSION_ID|SUPERCODE_CALLER|SUPERCODE_CALLER_NAME|SUPERCODE_AGENT_[A-Z_]+)$/;
|
|
66
|
+
const identity = /^(CLAUDECODE|CLAUDE_CODE_SESSION_ID|CLAUDE_CODE_ENTRYPOINT|CODEX_THREAD_ID|CODEX_SESSION_ID|SUPERCODE_CALLER|SUPERCODE_CALLER_NAME|SUPERCODE_LAUNCHED_BY|SUPERCODE_AGENT_[A-Z_]+)$/;
|
|
67
67
|
const serverNames = await runAsync("tmux", tmuxArgs(socket, ["show-environment", "-g"]))
|
|
68
68
|
.then((out) => out.split("\n").map((line) => /^([A-Za-z_][A-Za-z0-9_]*)=/.exec(line)?.[1]).filter((name) => Boolean(name)))
|
|
69
69
|
.catch(() => []); // no server yet: the one this creates starts from this launcher's environment
|