Commit graph

12 commits

Author SHA1 Message Date
robopipi[bot]
911fbab32f
fix: unset all supported provider env vars in pi-test.sh --no-env (#11395)
`./pi-test.sh --no-env` is supposed to run pi without any API keys, but
its hard-coded `unset` list had fallen behind
`packages/ai/src/env-api-keys.ts`. Credentials such as
`DEEPSEEK_API_KEY`, `MOONSHOT_API_KEY` and `ANTHROPIC_AUTH_TOKEN` were
still picked up from the environment.

This change adds the 26 missing variables to the list:
- the Anthropic auth token and federation variables
- the API keys for Ant Ling, Baseten, Cloudflare, DeepSeek, Fireworks,
Google Cloud, Kimi, Meta, Moonshot, Nvidia, Qwen token plan, Radius,
Together, Typesafe, Xiaomi (all plans) and ZAI coding CN

The list now covers every variable name in `env-api-keys.ts`.

Testing:
- No automated test covers this shell script, so none was added.
- A loop over every variable name in `env-api-keys.ts` confirmed each
now has an `unset` in `pi-test.sh`.
- Before the change, `PI_CODING_AGENT_DIR=$(mktemp -d)
DEEPSEEK_API_KEY=x ./pi-test.sh --no-env --offline -ne --list-models
deepseek` listed DeepSeek models.
- After the change, the same command with both `DEEPSEEK_API_KEY` and
`MOONSHOT_API_KEY` set prints "No models available."
- `bash -n pi-test.sh` and `npm run check` pass.

Fixes #11359

Requested by @badlogic

Co-authored-by: triagent <triagent@localhost>
2026-10-25 08:43:53 +01:00
David Brailovsky
39badde840 fix: point pi-test.sh at packages/coding-agent/src/cli.ts 2026-10-12 16:05:49 +02:00
Armin Ronacher
ca7460d16b feat: build with TypeScript 7 and run sources with plain node
Replace the tsgo native preview with typescript@7.0.2 and port the check scripts to the TS 7 API. Target ES2024, drop useDefineForClassFields: false and unused decorator options, and enable verbatimModuleSyntax. Replace tsx with node plus the source resolver hook, passed to --import as a file URL.

closes #9965
2026-09-25 13:14:33 +02:00
Armin Ronacher
1382777ed8 fix(coding-agent): keep remote harness dependencies development-only
Separate stable and development entrypoints, exclude remote harness code from distributions, and verify isolated consumer installs before release. Fixes #9132.
2026-09-05 12:45:04 +02:00
Mario Zechner
aa4adac766 chore: run pi-test through tsx 2026-05-20 15:55:31 +02:00
Mario Zechner
04e93af5c4 chore: run pi test script with node
Some checks are pending
CI / build-check-test (push) Waiting to run
2026-05-20 02:26:10 +02:00
Julien Chaumond
46885536dd
chore: unset HF_TOKEN in pi-test.sh --no-env (#4161)
Co-authored-by: julien-agent <Agents+cyolo@huggingface.co>
2026-05-04 15:23:08 +02:00
Mario Zechner
56e27fef1d chore: make pi-test.sh runnable from any directory 2026-03-26 15:43:42 +01:00
Mario Zechner
9c0c09e1c5 fix: handle empty args array in pi-test.sh 2026-01-25 23:47:35 +01:00
Mario Zechner
579a77493a feat: add --no-env flag to pi-test.sh to clear API keys 2026-01-25 23:45:28 +01:00
Michael Renner
3dd95094f5
fix: allow pi-test.sh to run from any directory (#905) 2026-01-22 18:24:05 +01:00
Mario Zechner
d2f3b42deb fix: OAuth token refresh failure returns undefined instead of throwing
When OAuth refresh fails during model discovery, getApiKey() now returns
undefined instead of throwing. This allows the app to start and fall back
to other providers, so the user can /login to re-authenticate.

fixes #498
2026-01-06 20:57:42 +01:00