@ouro.bot/cli 0.1.0-alpha.1720 → 0.1.0-alpha.1721

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": "Each pull request writes its own change note under changes/; the release job on main gives each landed change its version and adds the notes here (scripts/release-version.cjs). On main this file stops at the last version set by hand; the published package has every release. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.1721",
6
+ "changes": [
7
+ "An Anthropic workspace that has hit its spend limit (\"workspace API usage limits\") is now treated as out of quota instead of an unknown failure, so the repair line says to restore quota or pick another provider rather than send you to `ouro auth`. The startup provider ping now logs why it failed."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1720",
6
12
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1720",
2
+ "runtimeVersion": "0.1.0-alpha.1721",
3
3
  "bundleSchemaVersion": 3,
4
4
  "lastUpdated": "2026-09-03T00:00:00.000Z"
5
5
  }
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0"?>
2
2
  <Container version="2">
3
3
  <Name>ouro-butler</Name>
4
- <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1720</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1721</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -89,7 +89,7 @@ async function pingProviderInChild(provider, config, options = {}, deps = {}) {
89
89
  const outcome = await (deps.runChild ?? runProviderPingChild)(JSON.stringify(request));
90
90
  const result = parsePingResult(outcome.stdout);
91
91
  if (result) {
92
- (0, runtime_1.emitNervesEvent)({ component: "engine", event: "engine.provider_ping_child_done", message: "provider ping ran in a child process", meta: { provider, ok: result.ok } });
92
+ (0, runtime_1.emitNervesEvent)({ component: "engine", event: "engine.provider_ping_child_done", message: "provider ping ran in a child process", meta: result.ok ? { provider, ok: true } : { provider, ok: false, classification: result.classification, reason: result.message } });
93
93
  return result;
94
94
  }
95
95
  failure = `exit ${outcome.code} without a result`;
@@ -304,12 +304,13 @@ function mergeAnthropicToolArguments(current, partial) {
304
304
  }
305
305
  return current + partial;
306
306
  }
307
- // An org whose prepaid API credits are used up gets HTTP 400 (or 402) with this phrase. That is a
308
- // usage limit, not a malformed request, so failover tells the human the right thing.
309
- const ANTHROPIC_CREDIT_LOW_PHRASE = "credit balance is too low";
307
+ // An org whose prepaid API credits are used up, or whose workspace hit its spend limit ("You have reached your
308
+ // specified workspace API usage limits. You will regain access on <date>"), gets HTTP 400 (or 402) with one of
309
+ // these phrases. That is a usage limit, not a malformed request, so failover tells the human the right thing.
310
+ const ANTHROPIC_USAGE_LIMIT_PHRASES = ["credit balance is too low", "workspace api usage limits"];
310
311
  function isAnthropicCreditExhausted(error) {
311
312
  const status = error.status;
312
- return (status === 400 || status === 402) && error.message.toLowerCase().includes(ANTHROPIC_CREDIT_LOW_PHRASE);
313
+ return (status === 400 || status === 402) && ANTHROPIC_USAGE_LIMIT_PHRASES.some((phrase) => error.message.toLowerCase().includes(phrase));
313
314
  }
314
315
  function classifyAnthropicError(error) {
315
316
  if (isAnthropicCreditExhausted(error))
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1720",
3
+ "version": "0.1.0-alpha.1721",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@ouro.bot/cli",
9
- "version": "0.1.0-alpha.1720",
9
+ "version": "0.1.0-alpha.1721",
10
10
  "bundleDependencies": [
11
11
  "@ouro.bot/friends"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1720",
3
+ "version": "0.1.0-alpha.1721",
4
4
  "description": "Ouroboros, the agent harness: agents with durable memory that live where you talk (terminal, Teams, iMessage, mail, voice) and use real tools. Start with npx ouro.bot@latest.",
5
5
  "homepage": "https://ouroboros.bot/",
6
6
  "engines": {