@xevy/cli 0.1.21 → 0.1.22
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/bin/dev-session.mjs +7 -7
- package/bin/xevy.mjs +4 -4
- package/package.json +1 -1
package/bin/dev-session.mjs
CHANGED
|
@@ -634,7 +634,7 @@ function sessionSummary(context, session, base, writeLine) {
|
|
|
634
634
|
writeLine(` Branch ${session.branch || session.config?.branch || "unknown"}`);
|
|
635
635
|
writeLine(` Status ${session.status}`);
|
|
636
636
|
writeLine(` Expires ${session.expiresAt || "server-managed"}`);
|
|
637
|
-
writeLine("\
|
|
637
|
+
writeLine("\nXevy terminal · press Ctrl+] to detach and leave it running\n");
|
|
638
638
|
}
|
|
639
639
|
|
|
640
640
|
async function attachNativeTerminal({
|
|
@@ -705,7 +705,7 @@ async function attachNativeTerminal({
|
|
|
705
705
|
if (detachAt > 0 && socket.readyState === WebSocketImpl.OPEN) {
|
|
706
706
|
socket.send(value.subarray(0, detachAt), { binary: true });
|
|
707
707
|
}
|
|
708
|
-
output.write("\r\nDetached.
|
|
708
|
+
output.write("\r\nDetached. Xevy and the Dev Session are still running.\r\n");
|
|
709
709
|
if (reattachHint) output.write(`${reattachHint}\r\n`);
|
|
710
710
|
socket.close(1000, "client_detach");
|
|
711
711
|
finish(null, { reason: "detached", code: 1000, durationMs: Date.now() - connectedAt });
|
|
@@ -785,7 +785,7 @@ async function attachNativeTerminalOnce({
|
|
|
785
785
|
let attempts = 0;
|
|
786
786
|
try {
|
|
787
787
|
while (!signal?.aborted) {
|
|
788
|
-
status.update(attempts === 0 ? "Starting remote
|
|
788
|
+
status.update(attempts === 0 ? "Starting remote Xevy terminal…" : "Terminal is not ready yet · retrying…");
|
|
789
789
|
try {
|
|
790
790
|
const result = await attachNativeTerminal({
|
|
791
791
|
api,
|
|
@@ -795,7 +795,7 @@ async function attachNativeTerminalOnce({
|
|
|
795
795
|
output,
|
|
796
796
|
signal,
|
|
797
797
|
reattachHint,
|
|
798
|
-
onReady: () => status.succeed("
|
|
798
|
+
onReady: () => status.succeed("Xevy terminal ready"),
|
|
799
799
|
WebSocketImpl,
|
|
800
800
|
});
|
|
801
801
|
if (result?.reason === "detached") return;
|
|
@@ -803,7 +803,7 @@ async function attachNativeTerminalOnce({
|
|
|
803
803
|
// The attachment ended on its own; say why and leave the session up.
|
|
804
804
|
writeLine(result?.reason === "transport-lost"
|
|
805
805
|
? "\nConnection to the Dev Session terminal was lost. The Dev Session is still running."
|
|
806
|
-
: "\
|
|
806
|
+
: "\nXevy exited. The Dev Session is still running.");
|
|
807
807
|
if (reattachHint) writeLine(reattachHint);
|
|
808
808
|
return;
|
|
809
809
|
} catch (error) {
|
|
@@ -811,7 +811,7 @@ async function attachNativeTerminalOnce({
|
|
|
811
811
|
if (error instanceof DevSessionApiError && ![409, 502, 503, 504].includes(error.status)) throw error;
|
|
812
812
|
attempts += 1;
|
|
813
813
|
if (attempts >= TERMINAL_START_ATTEMPT_LIMIT) {
|
|
814
|
-
throw new Error("The remote
|
|
814
|
+
throw new Error("The remote Xevy terminal never became ready. The Dev Session remains active; check its logs and rerun `xevy dev` after correcting the startup error.");
|
|
815
815
|
}
|
|
816
816
|
status.update("Terminal is not ready yet · retrying…");
|
|
817
817
|
await sleep(Math.min(500 * 2 ** (attempts - 1), TERMINAL_START_MAX_DELAY_MS), signal);
|
|
@@ -1106,7 +1106,7 @@ export async function runDevSession(options) {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
|
|
1108
1108
|
if (context.kind === "personal") {
|
|
1109
|
-
writeLine("Attached successfully. Rerun in an interactive terminal to open
|
|
1109
|
+
writeLine("Attached successfully. Rerun in an interactive terminal to open Xevy.");
|
|
1110
1110
|
return { task: null, project: context.project, session, detached: true };
|
|
1111
1111
|
}
|
|
1112
1112
|
|
package/bin/xevy.mjs
CHANGED
|
@@ -136,10 +136,10 @@ function devUsage() {
|
|
|
136
136
|
|
|
137
137
|
Connects this terminal to a remote Dev Session. The reserved task/ prefix
|
|
138
138
|
selects task work; a workspace/project target starts or resumes your personal
|
|
139
|
-
project session.
|
|
139
|
+
project session. Xevy runs inside the isolated remote workspace.
|
|
140
140
|
|
|
141
141
|
Terminal control:
|
|
142
|
-
Ctrl+] Detach without stopping
|
|
142
|
+
Ctrl+] Detach without stopping Xevy or the Dev Session
|
|
143
143
|
|
|
144
144
|
Credentials:
|
|
145
145
|
XEVY_API_KEY takes precedence over ~/.config/xevy/credentials.
|
|
@@ -437,7 +437,7 @@ async function resolveSetupComponents(opts) {
|
|
|
437
437
|
|
|
438
438
|
console.log("What would you like to set up?");
|
|
439
439
|
console.log(" 1. Credentials Store or replace your Xevy API key");
|
|
440
|
-
console.log(" 2.
|
|
440
|
+
console.log(" 2. Agent Install the Xevy coding agent and its extensions");
|
|
441
441
|
console.log(" 3. Skills Install Xevy skills for coding agents");
|
|
442
442
|
console.log(" 4. MCP Configure Xevy MCP for coding agents");
|
|
443
443
|
const answer = await promptLine(
|
|
@@ -508,7 +508,7 @@ async function setup(opts) {
|
|
|
508
508
|
) {
|
|
509
509
|
components.unshift("credentials");
|
|
510
510
|
console.log(
|
|
511
|
-
"→ Added credentials because
|
|
511
|
+
"→ Added credentials because the Xevy agent and the Codex MCP bridge require a Xevy API key.",
|
|
512
512
|
);
|
|
513
513
|
}
|
|
514
514
|
|
package/package.json
CHANGED