@tryarcanist/cli 0.1.102 → 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 +13 -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
|
@@ -1709,6 +1709,7 @@ function resolveAuthoritativePromptEventsWithDiagnostics(raw) {
|
|
|
1709
1709
|
// ../../shared/types/error-codes.ts
|
|
1710
1710
|
var ERROR_CODES = [
|
|
1711
1711
|
"auth",
|
|
1712
|
+
"policy_block",
|
|
1712
1713
|
"handled_automatically",
|
|
1713
1714
|
"output_length",
|
|
1714
1715
|
"context_overflow",
|
|
@@ -1730,6 +1731,8 @@ var ERROR_CODES = [
|
|
|
1730
1731
|
"spawn_preconnect",
|
|
1731
1732
|
"sandbox_terminated",
|
|
1732
1733
|
"sandbox_disconnected",
|
|
1734
|
+
"sandbox_disconnected_exhausted",
|
|
1735
|
+
"sandbox_never_started",
|
|
1733
1736
|
"session_archived",
|
|
1734
1737
|
"sandbox_callback",
|
|
1735
1738
|
"codex_startup_timeout",
|
|
@@ -1739,11 +1742,14 @@ var ERROR_CODES = [
|
|
|
1739
1742
|
"codex_not_ready",
|
|
1740
1743
|
"codex_transport_closed",
|
|
1741
1744
|
"codex_unrecoverable",
|
|
1745
|
+
"question_delivery_failed",
|
|
1746
|
+
"malformed_search_command",
|
|
1742
1747
|
"unknown"
|
|
1743
1748
|
];
|
|
1744
1749
|
var ERROR_CODE_SET = new Set(ERROR_CODES);
|
|
1745
1750
|
var ERROR_CODE_LABELS = {
|
|
1746
1751
|
auth: "Authentication failed",
|
|
1752
|
+
policy_block: "Policy block",
|
|
1747
1753
|
handled_automatically: "Handled automatically",
|
|
1748
1754
|
output_length: "Output was too long",
|
|
1749
1755
|
context_overflow: "Context window exceeded",
|
|
@@ -1765,6 +1771,8 @@ var ERROR_CODE_LABELS = {
|
|
|
1765
1771
|
spawn_preconnect: "Sandbox failed before connecting",
|
|
1766
1772
|
sandbox_terminated: "Sandbox terminated",
|
|
1767
1773
|
sandbox_disconnected: "Sandbox disconnected",
|
|
1774
|
+
sandbox_disconnected_exhausted: "Sandbox kept disconnecting",
|
|
1775
|
+
sandbox_never_started: "Sandbox never started the prompt",
|
|
1768
1776
|
session_archived: "Session archived while processing",
|
|
1769
1777
|
sandbox_callback: "Sandbox callback failed",
|
|
1770
1778
|
codex_startup_timeout: "Codex startup timed out",
|
|
@@ -1774,6 +1782,8 @@ var ERROR_CODE_LABELS = {
|
|
|
1774
1782
|
codex_not_ready: "Codex did not become ready",
|
|
1775
1783
|
codex_transport_closed: "Codex transport closed",
|
|
1776
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",
|
|
1777
1787
|
unknown: "Unknown failure"
|
|
1778
1788
|
};
|
|
1779
1789
|
function isErrorCode(value) {
|
|
@@ -2407,6 +2417,7 @@ async function createCommand(repoUrl, promptArg, options, command) {
|
|
|
2407
2417
|
if (options.backend) body.agentRuntimeBackend = agentRuntimeBackend;
|
|
2408
2418
|
if (options.reasoningEffort) body.reasoningEffort = options.reasoningEffort;
|
|
2409
2419
|
if (options.cold) body.cold = true;
|
|
2420
|
+
if (options.onboarding) body.onboarding = true;
|
|
2410
2421
|
const sessionData = await apiFetch(config, "/api/sessions", {
|
|
2411
2422
|
method: "POST",
|
|
2412
2423
|
headers: { "Idempotency-Key": sessionIdempotencyKey },
|
|
@@ -2450,6 +2461,7 @@ async function createCommand(repoUrl, promptArg, options, command) {
|
|
|
2450
2461
|
if (options.model) output.model = options.model;
|
|
2451
2462
|
if (options.backend) output.agentRuntimeBackend = agentRuntimeBackend;
|
|
2452
2463
|
if (options.reasoningEffort) output.reasoningEffort = options.reasoningEffort;
|
|
2464
|
+
if (options.onboarding) output.onboarding = true;
|
|
2453
2465
|
if (promptId) output.promptId = promptId;
|
|
2454
2466
|
writeJson(output);
|
|
2455
2467
|
return;
|
|
@@ -2882,7 +2894,7 @@ function addCreateOptions(cmd) {
|
|
|
2882
2894
|
"--poll-interval <ms>",
|
|
2883
2895
|
"Polling interval in milliseconds while waiting",
|
|
2884
2896
|
String(DEFAULT_WATCH_POLL_INTERVAL_MS)
|
|
2885
|
-
).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(
|
|
2886
2898
|
"after",
|
|
2887
2899
|
`
|
|
2888
2900
|
Examples:
|