@ouro.bot/cli 0.1.0-alpha.384 → 0.1.0-alpha.385

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,14 @@
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.385",
6
+ "changes": [
7
+ "`ouro up` provider-check repair hints for locked agent vaults now mention both normal unlock and lost-secret `ouro vault recover --agent <agent> --from <json>` recovery.",
8
+ "Provider health checks now share the locked-vault unlock-or-recover wording so compact degraded summaries do not send operators back to a secret they never saved.",
9
+ "`@ouro.bot/cli` and the `ouro.bot` wrapper are version-synced for the locked-vault repair-hint release."
10
+ ]
11
+ },
4
12
  {
5
13
  "version": "0.1.0-alpha.384",
6
14
  "changes": [
@@ -33,6 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.vaultUnlockOrRecoverFix = vaultUnlockOrRecoverFix;
36
37
  exports.checkAgentConfig = checkAgentConfig;
37
38
  exports.checkAgentConfigWithProviderHealth = checkAgentConfigWithProviderHealth;
38
39
  const fs = __importStar(require("fs"));
@@ -238,7 +239,7 @@ function invalidPoolResult(agentName, lane, provider, model, pool) {
238
239
  return {
239
240
  ok: false,
240
241
  error: `${lane} provider ${provider} model ${model} cannot read provider credentials because ${agentName}'s credential vault is locked on this machine.`,
241
- fix: `Run 'ouro vault unlock --agent ${agentName}', then run 'ouro up' again.`,
242
+ fix: vaultUnlockOrRecoverFix(agentName),
242
243
  };
243
244
  }
244
245
  if (pool.reason === "invalid") {
@@ -251,13 +252,20 @@ function invalidPoolResult(agentName, lane, provider, model, pool) {
251
252
  return {
252
253
  ok: false,
253
254
  error: `${lane} provider ${provider} model ${model} cannot read provider credentials from ${agentName}'s vault at ${pool.poolPath}: ${pool.error}`,
254
- fix: `Run 'ouro vault unlock --agent ${agentName}', then run 'ouro up' again. If the credential is missing or stale after unlock, run 'ouro auth --agent ${agentName} --provider ${provider}'.`,
255
+ fix: vaultUnlockOrRecoverFix(agentName, `Then run 'ouro up' again. If the credential is missing or stale after unlock or recovery, run 'ouro auth --agent ${agentName} --provider ${provider}'.`),
255
256
  };
256
257
  }
257
258
  function isVaultLockedError(error) {
258
259
  const normalized = error.toLowerCase();
259
260
  return /(?:ouro )?credential vault is locked|vault(?: is)? locked/.test(normalized);
260
261
  }
262
+ function vaultUnlockOrRecoverFix(agentName, nextStep = "Then run 'ouro up' again.") {
263
+ return [
264
+ `Run 'ouro vault unlock --agent ${agentName}' if you have the saved vault unlock secret.`,
265
+ `If nobody saved it, run 'ouro vault recover --agent ${agentName} --from <json>' with a local credential export.`,
266
+ nextStep,
267
+ ].join(" ");
268
+ }
261
269
  function failedPingResult(agentName, lane, provider, model, result) {
262
270
  return {
263
271
  ok: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.384",
3
+ "version": "0.1.0-alpha.385",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",