@tryarcanist/cli 0.1.103 → 0.1.105
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 +12 -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
|
@@ -652,6 +652,9 @@ var TERMINAL_PHASES = new Set(TERMINAL_PHASES_ARRAY);
|
|
|
652
652
|
var TERMINAL_FOR_FALLBACK_POLLING_PHASES = new Set(
|
|
653
653
|
TERMINAL_PHASES_ARRAY.filter((phase) => phase !== "completed")
|
|
654
654
|
);
|
|
655
|
+
var CHILD_SLOT_RELEASE_PHASES = new Set(
|
|
656
|
+
TERMINAL_PHASES_ARRAY.filter((phase) => phase !== "stopped")
|
|
657
|
+
);
|
|
655
658
|
function isTerminalPhase(phase, sessionKind) {
|
|
656
659
|
if (TERMINAL_PHASES.has(phase)) return true;
|
|
657
660
|
return phase === "idle" && !isRepoSession(sessionKind);
|
|
@@ -1732,6 +1735,7 @@ var ERROR_CODES = [
|
|
|
1732
1735
|
"sandbox_terminated",
|
|
1733
1736
|
"sandbox_disconnected",
|
|
1734
1737
|
"sandbox_disconnected_exhausted",
|
|
1738
|
+
"sandbox_never_started",
|
|
1735
1739
|
"session_archived",
|
|
1736
1740
|
"sandbox_callback",
|
|
1737
1741
|
"codex_startup_timeout",
|
|
@@ -1741,6 +1745,8 @@ var ERROR_CODES = [
|
|
|
1741
1745
|
"codex_not_ready",
|
|
1742
1746
|
"codex_transport_closed",
|
|
1743
1747
|
"codex_unrecoverable",
|
|
1748
|
+
"question_delivery_failed",
|
|
1749
|
+
"malformed_search_command",
|
|
1744
1750
|
"unknown"
|
|
1745
1751
|
];
|
|
1746
1752
|
var ERROR_CODE_SET = new Set(ERROR_CODES);
|
|
@@ -1769,6 +1775,7 @@ var ERROR_CODE_LABELS = {
|
|
|
1769
1775
|
sandbox_terminated: "Sandbox terminated",
|
|
1770
1776
|
sandbox_disconnected: "Sandbox disconnected",
|
|
1771
1777
|
sandbox_disconnected_exhausted: "Sandbox kept disconnecting",
|
|
1778
|
+
sandbox_never_started: "Sandbox never started the prompt",
|
|
1772
1779
|
session_archived: "Session archived while processing",
|
|
1773
1780
|
sandbox_callback: "Sandbox callback failed",
|
|
1774
1781
|
codex_startup_timeout: "Codex startup timed out",
|
|
@@ -1778,6 +1785,8 @@ var ERROR_CODE_LABELS = {
|
|
|
1778
1785
|
codex_not_ready: "Codex did not become ready",
|
|
1779
1786
|
codex_transport_closed: "Codex transport closed",
|
|
1780
1787
|
codex_unrecoverable: "Codex unrecoverable failure",
|
|
1788
|
+
question_delivery_failed: "Answer could not be delivered to the agent",
|
|
1789
|
+
malformed_search_command: "Malformed search command blocked",
|
|
1781
1790
|
unknown: "Unknown failure"
|
|
1782
1791
|
};
|
|
1783
1792
|
function isErrorCode(value) {
|
|
@@ -2411,6 +2420,7 @@ async function createCommand(repoUrl, promptArg, options, command) {
|
|
|
2411
2420
|
if (options.backend) body.agentRuntimeBackend = agentRuntimeBackend;
|
|
2412
2421
|
if (options.reasoningEffort) body.reasoningEffort = options.reasoningEffort;
|
|
2413
2422
|
if (options.cold) body.cold = true;
|
|
2423
|
+
if (options.onboarding) body.onboarding = true;
|
|
2414
2424
|
const sessionData = await apiFetch(config, "/api/sessions", {
|
|
2415
2425
|
method: "POST",
|
|
2416
2426
|
headers: { "Idempotency-Key": sessionIdempotencyKey },
|
|
@@ -2454,6 +2464,7 @@ async function createCommand(repoUrl, promptArg, options, command) {
|
|
|
2454
2464
|
if (options.model) output.model = options.model;
|
|
2455
2465
|
if (options.backend) output.agentRuntimeBackend = agentRuntimeBackend;
|
|
2456
2466
|
if (options.reasoningEffort) output.reasoningEffort = options.reasoningEffort;
|
|
2467
|
+
if (options.onboarding) output.onboarding = true;
|
|
2457
2468
|
if (promptId) output.promptId = promptId;
|
|
2458
2469
|
writeJson(output);
|
|
2459
2470
|
return;
|
|
@@ -2886,7 +2897,7 @@ function addCreateOptions(cmd) {
|
|
|
2886
2897
|
"--poll-interval <ms>",
|
|
2887
2898
|
"Polling interval in milliseconds while waiting",
|
|
2888
2899
|
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(
|
|
2900
|
+
).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
2901
|
"after",
|
|
2891
2902
|
`
|
|
2892
2903
|
Examples:
|