@tryarcanist/cli 0.1.101 → 0.1.103

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/dist/index.js +4 -36
  2. 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";
@@ -1717,6 +1709,7 @@ function resolveAuthoritativePromptEventsWithDiagnostics(raw) {
1717
1709
  // ../../shared/types/error-codes.ts
1718
1710
  var ERROR_CODES = [
1719
1711
  "auth",
1712
+ "policy_block",
1720
1713
  "handled_automatically",
1721
1714
  "output_length",
1722
1715
  "context_overflow",
@@ -1738,6 +1731,7 @@ var ERROR_CODES = [
1738
1731
  "spawn_preconnect",
1739
1732
  "sandbox_terminated",
1740
1733
  "sandbox_disconnected",
1734
+ "sandbox_disconnected_exhausted",
1741
1735
  "session_archived",
1742
1736
  "sandbox_callback",
1743
1737
  "codex_startup_timeout",
@@ -1752,6 +1746,7 @@ var ERROR_CODES = [
1752
1746
  var ERROR_CODE_SET = new Set(ERROR_CODES);
1753
1747
  var ERROR_CODE_LABELS = {
1754
1748
  auth: "Authentication failed",
1749
+ policy_block: "Policy block",
1755
1750
  handled_automatically: "Handled automatically",
1756
1751
  output_length: "Output was too long",
1757
1752
  context_overflow: "Context window exceeded",
@@ -1773,6 +1768,7 @@ var ERROR_CODE_LABELS = {
1773
1768
  spawn_preconnect: "Sandbox failed before connecting",
1774
1769
  sandbox_terminated: "Sandbox terminated",
1775
1770
  sandbox_disconnected: "Sandbox disconnected",
1771
+ sandbox_disconnected_exhausted: "Sandbox kept disconnecting",
1776
1772
  session_archived: "Session archived while processing",
1777
1773
  sandbox_callback: "Sandbox callback failed",
1778
1774
  codex_startup_timeout: "Codex startup timed out",
@@ -3038,34 +3034,6 @@ Examples:
3038
3034
  `
3039
3035
  ).action((repo, name, options, command) => setTestCredentialCommand(repo, name, options, command));
3040
3036
  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
3037
  async function main() {
3070
3038
  try {
3071
3039
  await program.parseAsync(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryarcanist/cli",
3
- "version": "0.1.101",
3
+ "version": "0.1.103",
4
4
  "description": "CLI for Arcanist — create and manage coding agent sessions",
5
5
  "type": "module",
6
6
  "bin": {