@ouro.bot/cli 0.1.0-alpha.367 → 0.1.0-alpha.368
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.368",
|
|
6
|
+
"changes": [
|
|
7
|
+
"`ouro up` interactive repair prompts now treat `yes`, `YES`, and whitespace-padded affirmative answers as yes for both provider auth and vault unlock repairs.",
|
|
8
|
+
"Interactive repair now uses one shared affirmative-answer parser instead of duplicating raw `y` checks across repair branches.",
|
|
9
|
+
"`@ouro.bot/cli` and the `ouro.bot` wrapper are version-synced for the repair answer parsing release."
|
|
10
|
+
]
|
|
11
|
+
},
|
|
4
12
|
{
|
|
5
13
|
"version": "0.1.0-alpha.367",
|
|
6
14
|
"changes": [
|
|
@@ -53,6 +53,9 @@ function vaultUnlockCommandFor(degraded) {
|
|
|
53
53
|
const command = extractRepairCommand(degraded.fixHint, "ouro vault unlock");
|
|
54
54
|
return command && command.length > 0 ? command : `ouro vault unlock --agent ${degraded.agent}`;
|
|
55
55
|
}
|
|
56
|
+
function isAffirmativeAnswer(answer) {
|
|
57
|
+
return /^(y|yes)$/i.test(answer.trim());
|
|
58
|
+
}
|
|
56
59
|
async function runInteractiveRepair(degraded, deps) {
|
|
57
60
|
(0, runtime_1.emitNervesEvent)({
|
|
58
61
|
level: "info",
|
|
@@ -69,7 +72,7 @@ async function runInteractiveRepair(degraded, deps) {
|
|
|
69
72
|
if (isVaultUnlockIssue(entry)) {
|
|
70
73
|
const unlockCommand = vaultUnlockCommandFor(entry);
|
|
71
74
|
const answer = await deps.promptInput(`run \`${unlockCommand}\` now? [y/n] `);
|
|
72
|
-
if (answer
|
|
75
|
+
if (isAffirmativeAnswer(answer)) {
|
|
73
76
|
try {
|
|
74
77
|
if (!deps.runVaultUnlock) {
|
|
75
78
|
deps.writeStdout(`fix hint for ${entry.agent}: ${entry.fixHint}`);
|
|
@@ -97,7 +100,7 @@ async function runInteractiveRepair(degraded, deps) {
|
|
|
97
100
|
const provider = extractProviderFromFixHint(entry.fixHint);
|
|
98
101
|
const authCommand = authCommandFor(entry);
|
|
99
102
|
const answer = await deps.promptInput(`run \`${authCommand}\` now? [y/n] `);
|
|
100
|
-
if (answer
|
|
103
|
+
if (isAffirmativeAnswer(answer)) {
|
|
101
104
|
try {
|
|
102
105
|
if (provider) {
|
|
103
106
|
await deps.runAuthFlow(entry.agent, provider);
|