@tryarcanist/cli 0.1.201 → 0.1.203
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 +6 -0
- package/dist/index.js +13 -1
- package/package.json +1 -1
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,11 @@ 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
|
+
Use `--jira-issue <key|url>` to attach a Jira issue reference to the created session.
|
|
215
|
+
The CLI echoes the request value as `jiraIssue` in JSON output; pickup writeback occurs after the first prompt is durably enqueued.
|
|
216
|
+
|
|
211
217
|
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
218
|
|
|
213
219
|
`--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,16 @@ 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;
|
|
3464
|
+
const jiraIssue = options.jiraIssue?.trim();
|
|
3465
|
+
if (options.jiraIssue !== void 0 && !jiraIssue) {
|
|
3466
|
+
throw new CliError("user", "--jira-issue must not be empty.");
|
|
3467
|
+
}
|
|
3468
|
+
if (jiraIssue) body.jiraIssue = jiraIssue;
|
|
3459
3469
|
if (continuePr) body.continuePrUrl = continuePr;
|
|
3460
3470
|
if (continueMode) body.continueMode = continueMode;
|
|
3461
3471
|
if (options.cold) body.cold = true;
|
|
@@ -3527,6 +3537,8 @@ async function createCommand(repoUrl, promptArg, options, command) {
|
|
|
3527
3537
|
if (options.autoVerify) output.autoVerify = true;
|
|
3528
3538
|
if (baseBranch) output.baseBranch = baseBranch;
|
|
3529
3539
|
if (startBranch) output.startBranch = startBranch;
|
|
3540
|
+
if (linearIssue) output.linearIssue = linearIssue;
|
|
3541
|
+
if (jiraIssue) output.jiraIssue = jiraIssue;
|
|
3530
3542
|
if (continuePr) output.continuePrUrl = continuePr;
|
|
3531
3543
|
if (continueMode) output.continueMode = continueMode;
|
|
3532
3544
|
if (options.onboarding) output.onboarding = true;
|
|
@@ -5517,7 +5529,7 @@ function addCreateOptions(cmd) {
|
|
|
5517
5529
|
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
5530
|
"--start-branch <branch>",
|
|
5519
5531
|
"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(
|
|
5532
|
+
).option("--linear-issue <id|url>", "Associate the session with a Linear issue for pickup writeback").option("--jira-issue <key|url>", "Associate the session with a Jira 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
5533
|
"--uploaded-file <path>",
|
|
5522
5534
|
"Attach a local text file to the prompt as uploadedFiles; repeat for multiple files",
|
|
5523
5535
|
collectUploadedFileOption
|