@tryarcanist/cli 0.1.139 → 0.1.141

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 CHANGED
@@ -144,7 +144,7 @@ Repeatable `--uploaded-file <path>` flags attach local UTF-8 text files to the p
144
144
 
145
145
  `--idempotency-key <uuid>` is for manually retrying a create request that may have reached the server. The CLI derives separate session and prompt idempotency keys from the provided value.
146
146
 
147
- `--onboarding` creates an onboarding session: the agent authors the repo's `.arcanist.json`, `.arcanist/` runtime files, `ARCANIST.md`, and conditionally `.arcanist/sandbox.yaml` + `.arcanist/sandbox.layer.Dockerfile` (when the base sandbox lacks a needed toolchain), proves what it can inside its sandbox, and opens the setup PR ready for review. Team use; not part of the external API surface.
147
+ `--onboarding` creates an onboarding session: the agent authors the repo's `.arcanist.json`, `.arcanist/` runtime files, `ARCANIST.md`, and conditionally `.arcanist/sandbox.yaml` + `.arcanist/sandbox.layer.Dockerfile` (when the base sandbox lacks a needed toolchain), proves what it can inside its sandbox, and opens the setup PR ready for review. The onboarding behavior is driven by the bridge's canonical onboarding playbook, not the prompt, so `--onboarding` needs no prompt: `arcanist sessions create <repo> --onboarding --wait`. Any prompt supplied alongside `--onboarding` is ignored. Team use; not part of the external API surface.
148
148
 
149
149
  JSON mode returns `{sessionId, sessionUrl?, repoUrl, model?, agentRuntimeBackend?, reasoningEffort?, baseBranch?, promptId?}`. `sessionUrl` is emitted only when the server returns it; `agentRuntimeBackend` only when `--backend` is passed.
150
150
 
package/dist/index.js CHANGED
@@ -2501,6 +2501,7 @@ function validateRepoUrl(url) {
2501
2501
  return `Invalid repo URL: "${url}". Expected a GitHub URL (https://github.com/owner/repo) or owner/repo shorthand.`;
2502
2502
  }
2503
2503
  var PROMPT_TERMINAL_STATUSES = /* @__PURE__ */ new Set(["completed", "failed"]);
2504
+ var ONBOARDING_PROMPT = "Onboard this repository onto Arcanist.";
2504
2505
  function selectCreatedPrompt(prompts, promptId) {
2505
2506
  if (prompts.length === 0) return null;
2506
2507
  if (promptId) {
@@ -2582,7 +2583,7 @@ async function createCommand(repoUrl, promptArg, options, command) {
2582
2583
  );
2583
2584
  }
2584
2585
  }
2585
- const prompt = await resolvePromptInput(promptArg, options);
2586
+ const prompt = options.onboarding ? ONBOARDING_PROMPT : await resolvePromptInput(promptArg, options);
2586
2587
  const waitPollIntervalMs = options.wait ? parsePollInterval(options.pollInterval) : null;
2587
2588
  const repoError = validateRepoUrl(repoUrl);
2588
2589
  if (repoError) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryarcanist/cli",
3
- "version": "0.1.139",
3
+ "version": "0.1.141",
4
4
  "description": "CLI for Arcanist — create and manage coding agent sessions",
5
5
  "type": "module",
6
6
  "bin": {