@tryarcanist/cli 0.1.101 → 0.1.102
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/dist/index.js +0 -36
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -212,9 +212,6 @@ function getRuntimeOptions(command, options = {}) {
|
|
|
212
212
|
function isJson(command, options = {}) {
|
|
213
213
|
return getRuntimeOptions(command, options).json === true;
|
|
214
214
|
}
|
|
215
|
-
function isQuiet(command, options = {}) {
|
|
216
|
-
return getRuntimeOptions(command, options).quiet === true;
|
|
217
|
-
}
|
|
218
215
|
function writeJson(value) {
|
|
219
216
|
process.stdout.write(`${JSON.stringify(value)}
|
|
220
217
|
`);
|
|
@@ -318,11 +315,6 @@ async function readHiddenPrompt(prompt) {
|
|
|
318
315
|
stdin.on("error", onError);
|
|
319
316
|
});
|
|
320
317
|
}
|
|
321
|
-
function printDeprecatedAlias(alias, replacement, command, options = {}) {
|
|
322
|
-
if (isQuiet(command, options)) return;
|
|
323
|
-
process.stderr.write(`Warning: \`arcanist ${alias}\` is deprecated; use \`arcanist ${replacement}\`.
|
|
324
|
-
`);
|
|
325
|
-
}
|
|
326
318
|
function applyColorEnvironment(options) {
|
|
327
319
|
if (options.noColor === true || !process.stdout.isTTY) {
|
|
328
320
|
process.env.NO_COLOR = "1";
|
|
@@ -3038,34 +3030,6 @@ Examples:
|
|
|
3038
3030
|
`
|
|
3039
3031
|
).action((repo, name, options, command) => setTestCredentialCommand(repo, name, options, command));
|
|
3040
3032
|
testCreds.command("delete").description("Delete a test credential").argument("<repo>", "Repository in 'owner/name' form").argument("<name>", "Credential name").requiredOption("--business <id>", "Business ID that owns the repo").option("--yes", "Confirm deletion without prompting").action((repo, name, options, command) => deleteTestCredentialCommand(repo, name, options, command));
|
|
3041
|
-
program.command("login").description("Authenticate with a personal access token").option("--token-stdin", "Read token from stdin instead of interactive prompt").option("--api-url <url>", "Set custom API URL").action((options, command) => {
|
|
3042
|
-
printDeprecatedAlias("login", "auth login", command);
|
|
3043
|
-
return loginCommand(options, command);
|
|
3044
|
-
});
|
|
3045
|
-
addCreateOptions(program.command("create").description("Create a session and send a prompt")).action(
|
|
3046
|
-
(repoUrl, prompt, options, command) => {
|
|
3047
|
-
printDeprecatedAlias("create", "sessions create", command);
|
|
3048
|
-
return createCommand(repoUrl, prompt, options, command);
|
|
3049
|
-
}
|
|
3050
|
-
);
|
|
3051
|
-
addSendOptions(program.command("message").description("Send a message to an existing session")).action(
|
|
3052
|
-
(sessionId, prompt, options, command) => {
|
|
3053
|
-
printDeprecatedAlias("message", "sessions send", command);
|
|
3054
|
-
return messageCommand(sessionId, prompt, options, command);
|
|
3055
|
-
}
|
|
3056
|
-
);
|
|
3057
|
-
program.command("stop").description("Stop the active run for a session").argument("<session-id>", "Session ID").action((sessionId, options, command) => {
|
|
3058
|
-
printDeprecatedAlias("stop", "sessions stop", command);
|
|
3059
|
-
return stopCommand(sessionId, options, command);
|
|
3060
|
-
});
|
|
3061
|
-
program.command("transcript").description("Render a session transcript").argument("<session-id>", "Session ID").action((sessionId, options, command) => {
|
|
3062
|
-
printDeprecatedAlias("transcript", "sessions transcript", command);
|
|
3063
|
-
return transcriptCommand(sessionId, options, command);
|
|
3064
|
-
});
|
|
3065
|
-
program.command("watch").description("Watch session activity until it becomes idle").argument("<session-id>", "Session ID").option("--poll-interval <ms>", "Polling interval in milliseconds", String(DEFAULT_WATCH_POLL_INTERVAL_MS)).action((sessionId, options, command) => {
|
|
3066
|
-
printDeprecatedAlias("watch", "sessions events --follow", command);
|
|
3067
|
-
return watchCommand(sessionId, options, command);
|
|
3068
|
-
});
|
|
3069
3033
|
async function main() {
|
|
3070
3034
|
try {
|
|
3071
3035
|
await program.parseAsync(process.argv);
|