@tryarcanist/cli 0.1.201 → 0.1.202

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
@@ -15,6 +15,7 @@ Requires Node.js 22 or newer.
15
15
  ```bash
16
16
  arcanist auth login # paste a token from Settings > CLI Tokens
17
17
  arcanist sessions create https://github.com/your-org/your-repo "fix the login bug"
18
+ arcanist sessions create https://github.com/your-org/your-repo "fix ARC-1635" --linear-issue https://linear.app/team/issue/ARC-1635/fix-login
18
19
  ```
19
20
 
20
21
  ```bash
@@ -208,6 +209,9 @@ Use `--start-branch <branch>` to resume an existing branch with its history inst
208
209
 
209
210
  Use `--continue-pr <url>` to continue an open same-repo pull request. The control plane checks out the PR head branch before the prompt runs. `--continue-mode update-pr` updates the referenced PR; `--continue-mode new-pr` starts from that PR head but leaves publish free to open a fresh PR. `auto` is the default and currently resolves to same-PR update for supported open same-repo PRs.
210
211
 
212
+ Use `--linear-issue <id|url>` to attach a Linear issue reference to the created session.
213
+ The CLI echoes the request value as `linearIssue` in JSON output; pickup writeback occurs after the first prompt is durably enqueued.
214
+
211
215
  Repeatable `--uploaded-file <path>` flags attach local UTF-8 text files to the prompt. Uploaded file names come from the local basename; directory components are not sent.
212
216
 
213
217
  `--cold` is a deprecated no-op retained for backward compatibility. Sessions always start from a fresh sandbox (the warm sandbox pool was removed), so the flag has no effect.
package/dist/index.js CHANGED
@@ -3456,6 +3456,11 @@ async function createCommand(repoUrl, promptArg, options, command) {
3456
3456
  if (promptPreview) body.prompt = promptPreview;
3457
3457
  if (baseBranch) body.baseBranch = baseBranch;
3458
3458
  if (startBranch) body.startBranch = startBranch;
3459
+ const linearIssue = options.linearIssue?.trim();
3460
+ if (options.linearIssue !== void 0 && !linearIssue) {
3461
+ throw new CliError("user", "--linear-issue must not be empty.");
3462
+ }
3463
+ if (linearIssue) body.linearIssue = linearIssue;
3459
3464
  if (continuePr) body.continuePrUrl = continuePr;
3460
3465
  if (continueMode) body.continueMode = continueMode;
3461
3466
  if (options.cold) body.cold = true;
@@ -3527,6 +3532,7 @@ async function createCommand(repoUrl, promptArg, options, command) {
3527
3532
  if (options.autoVerify) output.autoVerify = true;
3528
3533
  if (baseBranch) output.baseBranch = baseBranch;
3529
3534
  if (startBranch) output.startBranch = startBranch;
3535
+ if (linearIssue) output.linearIssue = linearIssue;
3530
3536
  if (continuePr) output.continuePrUrl = continuePr;
3531
3537
  if (continueMode) output.continueMode = continueMode;
3532
3538
  if (options.onboarding) output.onboarding = true;
@@ -5517,7 +5523,7 @@ function addCreateOptions(cmd) {
5517
5523
  return cmd.argument("<repo-url>", "Repository URL").argument("[prompt]", "Prompt to send, or '-' to read stdin").option("--model <model>", "Model to use").option("--backend <backend>", "Agent runtime backend: codex (default), claude_code, or opencode").option("--reasoning-effort <effort>", "Reasoning effort to use for models that support it").option("--auto-verify", "Opt this session into automatic QA verification after PR creation").option("--base-branch <branch>", "Base branch to create the session against (defaults to the repo default branch)").option(
5518
5524
  "--start-branch <branch>",
5519
5525
  "Resume an existing branch with its history instead of forking a new one off base"
5520
- ).option("--continue-pr <url>", "Continue from an existing same-repo pull request").option("--continue-mode <mode>", "Continuation mode: auto (default), update-pr, or new-pr").option("--prompt-stdin", "Read prompt from stdin").option(
5526
+ ).option("--linear-issue <id|url>", "Associate the session with a Linear issue for pickup writeback").option("--continue-pr <url>", "Continue from an existing same-repo pull request").option("--continue-mode <mode>", "Continuation mode: auto (default), update-pr, or new-pr").option("--prompt-stdin", "Read prompt from stdin").option(
5521
5527
  "--uploaded-file <path>",
5522
5528
  "Attach a local text file to the prompt as uploadedFiles; repeat for multiple files",
5523
5529
  collectUploadedFileOption
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryarcanist/cli",
3
- "version": "0.1.201",
3
+ "version": "0.1.202",
4
4
  "description": "CLI for Arcanist — create and manage coding agent sessions",
5
5
  "type": "module",
6
6
  "bin": {