@xevy/cli 0.1.12 → 0.1.13
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/README.md +3 -3
- package/bin/dev-session.mjs +6 -6
- package/bin/xevy.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -150,8 +150,8 @@ xevy dev VI22-07 --base https://xevy.example.com
|
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
The CLI resolves an exact task ID or task code, attaches to its existing Dev
|
|
153
|
-
Session, or starts one from
|
|
154
|
-
|
|
153
|
+
Session, or starts one from a linked repository. When several accessible tasks
|
|
154
|
+
share a code, or a project has several linked repositories, it presents
|
|
155
155
|
a numbered selector. It restores the recent conversation for the session branch
|
|
156
156
|
and attaches to an already-running agent turn instead of submitting a duplicate.
|
|
157
157
|
|
|
@@ -166,7 +166,7 @@ Available commands while attached:
|
|
|
166
166
|
/status Refresh the lifecycle status and URL
|
|
167
167
|
/logs Show the latest session logs
|
|
168
168
|
/open Request a fresh one-use browser link and open it when supported
|
|
169
|
-
/finish Merge into the task branch
|
|
169
|
+
/finish Merge into the task branch and stop
|
|
170
170
|
/stop Stop without merging (the pushed session branch remains preserved)
|
|
171
171
|
/detach Disconnect this terminal without stopping anything
|
|
172
172
|
/help Show the command list
|
package/bin/dev-session.mjs
CHANGED
|
@@ -565,7 +565,7 @@ function commandHelp(writeLine) {
|
|
|
565
565
|
writeLine(" /status Refresh session status");
|
|
566
566
|
writeLine(" /logs Show the latest Dev Session logs");
|
|
567
567
|
writeLine(" /open Open a fresh one-use Dev Session URL");
|
|
568
|
-
writeLine(" /finish Merge into the task branch
|
|
568
|
+
writeLine(" /finish Merge into the task branch and stop");
|
|
569
569
|
writeLine(" /stop Stop the Dev Session without finishing");
|
|
570
570
|
writeLine(" /detach Leave it running and exit this CLI");
|
|
571
571
|
writeLine(" /help Show these commands");
|
|
@@ -573,7 +573,7 @@ function commandHelp(writeLine) {
|
|
|
573
573
|
|
|
574
574
|
async function confirmAction({ interactive, ask, action }) {
|
|
575
575
|
if (!interactive) throw new Error(`/${action} requires an interactive confirmation.`);
|
|
576
|
-
const answer = (await ask(`${action === "finish" ? "Finish, merge
|
|
576
|
+
const answer = (await ask(`${action === "finish" ? "Finish, merge into the task branch, and stop" : "Stop this Dev Session"}? [y/N]: `)).toLowerCase();
|
|
577
577
|
return answer === "y" || answer === "yes";
|
|
578
578
|
}
|
|
579
579
|
|
|
@@ -705,14 +705,14 @@ export async function runDevSession(options) {
|
|
|
705
705
|
session = current?.session || null;
|
|
706
706
|
if (!session) {
|
|
707
707
|
const repositoryResult = await api.request(`${sessionPath}/repositories`, { signal: detachController.signal });
|
|
708
|
-
const repositories =
|
|
708
|
+
const repositories = repositoryResult?.repos || [];
|
|
709
709
|
if (repositories.length === 0) {
|
|
710
|
-
throw new Error("No linked repository
|
|
710
|
+
throw new Error("No linked repository is configured for this project.");
|
|
711
711
|
}
|
|
712
712
|
const repository = await selectOne({
|
|
713
713
|
items: repositories,
|
|
714
714
|
label: "repositories",
|
|
715
|
-
describe: (item) => `${item.displayName || item.role}${item.
|
|
715
|
+
describe: (item) => `${item.displayName || item.role}${item.defaultBranch ? ` · ${item.defaultBranch}` : ""}`,
|
|
716
716
|
interactive,
|
|
717
717
|
ask,
|
|
718
718
|
writeLine,
|
|
@@ -853,7 +853,7 @@ export async function runDevSession(options) {
|
|
|
853
853
|
if (completed.status !== "succeeded") {
|
|
854
854
|
throw new Error(completed.errorMessage || `Finish ${completed.status}.`);
|
|
855
855
|
}
|
|
856
|
-
writeLine("Finished: the Dev Session branch was merged into the task branch and
|
|
856
|
+
writeLine("Finished: the Dev Session branch was merged into the task branch and the workspace was stopped.");
|
|
857
857
|
detached = true;
|
|
858
858
|
break;
|
|
859
859
|
}
|
package/bin/xevy.mjs
CHANGED
|
@@ -133,7 +133,7 @@ function devUsage() {
|
|
|
133
133
|
xevy dev <task-id-or-code> [--base <url>]
|
|
134
134
|
|
|
135
135
|
Connects this terminal to the task's remote Dev Session. The command attaches
|
|
136
|
-
to an existing session or starts one from
|
|
136
|
+
to an existing session or starts one from a linked repository. It
|
|
137
137
|
does not run a local coding agent, shell, Docker container, or repository clone.
|
|
138
138
|
|
|
139
139
|
Inside the session:
|
package/package.json
CHANGED