@netlify/agent-runner-cli 1.139.0-prod-901.1 → 1.139.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/agent-runner-cli",
3
3
  "type": "module",
4
- "version": "1.139.0-prod-901.1",
4
+ "version": "1.139.0",
5
5
  "description": "CLI tool for running Netlify agents",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -302,18 +302,10 @@ const main = async () => {
302
302
  )
303
303
  }
304
304
 
305
- main().catch(async (err) => {
305
+ main().catch((err) => {
306
306
  // Include argv on error so argument-passing bugs (e.g. shells dropping a
307
307
  // quoted value) are visible without dumping argv on every successful run.
308
308
  process.stderr.write(`[deploy] error: ${err.message ?? err}\n`)
309
309
  process.stderr.write(`[deploy] argv: ${JSON.stringify(rawArgv)}\n`)
310
- // Also surface the failure in the axis report: stderr only reaches the
311
- // runner console, so without this a failed deploy leaves no trace where
312
- // people actually look for the preview link.
313
- try {
314
- await writeAxisOutput(`## Netlify deploy — FAILED\n\n\`\`\`\n${err.message ?? err}\n\`\`\`\n`)
315
- } catch {
316
- // best-effort — never mask the original error
317
- }
318
310
  process.exit(1)
319
311
  })
@@ -1,59 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
-
4
- ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
5
- cd "$ROOT_DIR"
6
-
7
- SCENARIOS="${1:-budget-compare-*}"
8
- AGENTS="${2:-claude-budget|*,codex|gpt-5.5}"
9
- CONCURRENCY="${AXIS_CONCURRENCY:-3}"
10
-
11
- if [[ -f .env.axis.local ]]; then
12
- set -a
13
- # shellcheck disable=SC1091
14
- source .env.axis.local
15
- set +a
16
- fi
17
-
18
- requires_agent() {
19
- local pattern="$1"
20
- [[ ",$AGENTS," == *",$pattern,"* || "$AGENTS" == *"$pattern"* ]]
21
- }
22
-
23
- prompt_secret() {
24
- local name="$1"
25
- local required_message="$2"
26
-
27
- if [[ -n "${!name:-}" ]]; then
28
- return
29
- fi
30
-
31
- if [[ ! -t 0 ]]; then
32
- echo "$required_message" >&2
33
- exit 1
34
- fi
35
-
36
- read -rsp "$name: " "$name"
37
- echo
38
- export "$name"
39
- }
40
-
41
- if requires_agent "claude-budget" || requires_agent "claude-code"; then
42
- prompt_secret "ANTHROPIC_API_KEY" "ANTHROPIC_API_KEY is not set and stdin is not interactive."
43
- fi
44
-
45
- if requires_agent "codex"; then
46
- prompt_secret "CODEX_API_KEY" "CODEX_API_KEY is not set and stdin is not interactive."
47
- fi
48
-
49
- prompt_secret "NETLIFY_AUTH_TOKEN" "NETLIFY_AUTH_TOKEN is not set and stdin is not interactive."
50
-
51
- mkdir -p .axis/reports
52
-
53
- exec node_modules/.bin/axis run \
54
- --config axis.config.ts \
55
- --scenario "$SCENARIOS" \
56
- --agent "$AGENTS" \
57
- --concurrency "$CONCURRENCY" \
58
- --output-dir .axis/reports \
59
- --verbose
@@ -1,46 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
-
4
- ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
5
- cd "$ROOT_DIR"
6
-
7
- SCENARIOS="${1:-budget-compare-*}"
8
- AGENTS="${2:-claude-budget|*}"
9
- CONCURRENCY="${AXIS_CONCURRENCY:-3}"
10
-
11
- if [[ -f .env.axis.local ]]; then
12
- set -a
13
- # shellcheck disable=SC1091
14
- source .env.axis.local
15
- set +a
16
- fi
17
-
18
- if [[ -z "${ANTHROPIC_API_KEY:-}" ]]; then
19
- if [[ ! -t 0 ]]; then
20
- echo "ANTHROPIC_API_KEY is not set and stdin is not interactive." >&2
21
- exit 1
22
- fi
23
- read -rsp "ANTHROPIC_API_KEY: " ANTHROPIC_API_KEY
24
- echo
25
- export ANTHROPIC_API_KEY
26
- fi
27
-
28
- if [[ -z "${NETLIFY_AUTH_TOKEN:-}" ]]; then
29
- if [[ ! -t 0 ]]; then
30
- echo "NETLIFY_AUTH_TOKEN is not set and stdin is not interactive." >&2
31
- exit 1
32
- fi
33
- read -rsp "NETLIFY_AUTH_TOKEN: " NETLIFY_AUTH_TOKEN
34
- echo
35
- export NETLIFY_AUTH_TOKEN
36
- fi
37
-
38
- mkdir -p .axis/reports
39
-
40
- exec node_modules/.bin/axis run \
41
- --config axis.config.ts \
42
- --scenario "$SCENARIOS" \
43
- --agent "$AGENTS" \
44
- --concurrency "$CONCURRENCY" \
45
- --output-dir .axis/reports \
46
- --verbose