@tryarcanist/cli 0.1.103 → 0.1.104
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 +2 -0
- package/dist/index.js +9 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -138,6 +138,8 @@ Repeatable `--uploaded-file <path>` flags attach local UTF-8 text files to the p
|
|
|
138
138
|
|
|
139
139
|
`--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.
|
|
140
140
|
|
|
141
|
+
`--onboarding` creates an onboarding session: the agent authors the repo's `.arcanist.json`, `.arcanist/` runtime files, and `ARCANIST.md`, proves what it can inside its sandbox, and publishes the setup PR as a draft. Team use; not part of the external API surface.
|
|
142
|
+
|
|
141
143
|
JSON mode returns `{sessionId, sessionUrl?, repoUrl, model?, agentRuntimeBackend?, reasoningEffort?, promptId?}`. `sessionUrl` is emitted only when the server returns it; `agentRuntimeBackend` only when `--backend` is passed.
|
|
142
144
|
|
|
143
145
|
### `arcanist sessions send <session-id> [prompt]`
|
package/dist/index.js
CHANGED
|
@@ -1732,6 +1732,7 @@ var ERROR_CODES = [
|
|
|
1732
1732
|
"sandbox_terminated",
|
|
1733
1733
|
"sandbox_disconnected",
|
|
1734
1734
|
"sandbox_disconnected_exhausted",
|
|
1735
|
+
"sandbox_never_started",
|
|
1735
1736
|
"session_archived",
|
|
1736
1737
|
"sandbox_callback",
|
|
1737
1738
|
"codex_startup_timeout",
|
|
@@ -1741,6 +1742,8 @@ var ERROR_CODES = [
|
|
|
1741
1742
|
"codex_not_ready",
|
|
1742
1743
|
"codex_transport_closed",
|
|
1743
1744
|
"codex_unrecoverable",
|
|
1745
|
+
"question_delivery_failed",
|
|
1746
|
+
"malformed_search_command",
|
|
1744
1747
|
"unknown"
|
|
1745
1748
|
];
|
|
1746
1749
|
var ERROR_CODE_SET = new Set(ERROR_CODES);
|
|
@@ -1769,6 +1772,7 @@ var ERROR_CODE_LABELS = {
|
|
|
1769
1772
|
sandbox_terminated: "Sandbox terminated",
|
|
1770
1773
|
sandbox_disconnected: "Sandbox disconnected",
|
|
1771
1774
|
sandbox_disconnected_exhausted: "Sandbox kept disconnecting",
|
|
1775
|
+
sandbox_never_started: "Sandbox never started the prompt",
|
|
1772
1776
|
session_archived: "Session archived while processing",
|
|
1773
1777
|
sandbox_callback: "Sandbox callback failed",
|
|
1774
1778
|
codex_startup_timeout: "Codex startup timed out",
|
|
@@ -1778,6 +1782,8 @@ var ERROR_CODE_LABELS = {
|
|
|
1778
1782
|
codex_not_ready: "Codex did not become ready",
|
|
1779
1783
|
codex_transport_closed: "Codex transport closed",
|
|
1780
1784
|
codex_unrecoverable: "Codex unrecoverable failure",
|
|
1785
|
+
question_delivery_failed: "Answer could not be delivered to the agent",
|
|
1786
|
+
malformed_search_command: "Malformed search command blocked",
|
|
1781
1787
|
unknown: "Unknown failure"
|
|
1782
1788
|
};
|
|
1783
1789
|
function isErrorCode(value) {
|
|
@@ -2411,6 +2417,7 @@ async function createCommand(repoUrl, promptArg, options, command) {
|
|
|
2411
2417
|
if (options.backend) body.agentRuntimeBackend = agentRuntimeBackend;
|
|
2412
2418
|
if (options.reasoningEffort) body.reasoningEffort = options.reasoningEffort;
|
|
2413
2419
|
if (options.cold) body.cold = true;
|
|
2420
|
+
if (options.onboarding) body.onboarding = true;
|
|
2414
2421
|
const sessionData = await apiFetch(config, "/api/sessions", {
|
|
2415
2422
|
method: "POST",
|
|
2416
2423
|
headers: { "Idempotency-Key": sessionIdempotencyKey },
|
|
@@ -2454,6 +2461,7 @@ async function createCommand(repoUrl, promptArg, options, command) {
|
|
|
2454
2461
|
if (options.model) output.model = options.model;
|
|
2455
2462
|
if (options.backend) output.agentRuntimeBackend = agentRuntimeBackend;
|
|
2456
2463
|
if (options.reasoningEffort) output.reasoningEffort = options.reasoningEffort;
|
|
2464
|
+
if (options.onboarding) output.onboarding = true;
|
|
2457
2465
|
if (promptId) output.promptId = promptId;
|
|
2458
2466
|
writeJson(output);
|
|
2459
2467
|
return;
|
|
@@ -2886,7 +2894,7 @@ function addCreateOptions(cmd) {
|
|
|
2886
2894
|
"--poll-interval <ms>",
|
|
2887
2895
|
"Polling interval in milliseconds while waiting",
|
|
2888
2896
|
String(DEFAULT_WATCH_POLL_INTERVAL_MS)
|
|
2889
|
-
).option("--idempotency-key <uuid>", "Request idempotency key for safe manual retries").option("--cold", "Force a fresh sandbox; skip the warm pool").addHelpText(
|
|
2897
|
+
).option("--idempotency-key <uuid>", "Request idempotency key for safe manual retries").option("--cold", "Force a fresh sandbox; skip the warm pool").option("--onboarding", "Create an onboarding session that authors the repo's Arcanist configuration").addHelpText(
|
|
2890
2898
|
"after",
|
|
2891
2899
|
`
|
|
2892
2900
|
Examples:
|