@ouro.bot/cli 0.1.0-alpha.118 → 0.1.0-alpha.119

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/changelog.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.119",
6
+ "changes": [
7
+ "Anthropic ping now uses haiku (widest token access) with minimal beta headers, fixing 400 errors from thinking beta requirements and model access restrictions on setup tokens."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.118",
6
12
  "changes": [
@@ -71,12 +71,13 @@ async function pingProvider(provider, config) {
71
71
  const timeout = setTimeout(() => controller.abort(), PING_TIMEOUT_MS);
72
72
  try {
73
73
  // Minimal API call — no thinking, no reasoning, no tools.
74
- // We use the runtime's client directly to avoid provider-specific
75
- // streamTurn params (adaptive thinking, reasoning effort, phase
76
- // annotations) that can cause 400 errors unrelated to auth/quota.
77
74
  if (provider === "anthropic") {
75
+ // Use haiku for the ping — setup tokens may not have access to newer
76
+ // models, but if haiku works, the credentials are valid.
77
+ // Override the beta header to exclude thinking (which requires a
78
+ // thinking param in the request body).
78
79
  const client = runtime.client;
79
- await client.messages.create({ model: runtime.model, max_tokens: 1, messages: [{ role: "user", content: "ping" }] }, { signal: controller.signal });
80
+ await client.messages.create({ model: "claude-haiku-4-5-20251001", max_tokens: 1, messages: [{ role: "user", content: "ping" }] }, { signal: controller.signal, headers: { "anthropic-beta": "claude-code-20250219,oauth-2025-04-20" } });
80
81
  }
81
82
  else {
82
83
  // OpenAI-compatible providers (azure, codex, minimax, github-copilot)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.118",
3
+ "version": "0.1.0-alpha.119",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",