@ouro.bot/cli 0.1.0-alpha.645 → 0.1.0-alpha.646
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 +6 -0
- package/dist/heart/daemon/daemon.js +23 -3
- package/package.json +1 -1
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.646",
|
|
6
|
+
"changes": [
|
|
7
|
+
"Provider refresh runtime-apply hardening: daemon agent.restart commands now acknowledge once restart work is accepted instead of holding the command socket open through slow provider/vault startup checks, so `ouro provider refresh` can poll daemon status without timing out or leaving the CLI process stuck."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.645",
|
|
6
12
|
"changes": [
|
|
@@ -1168,9 +1168,29 @@ class OuroDaemon {
|
|
|
1168
1168
|
case "agent.stop":
|
|
1169
1169
|
await this.processManager.stopAgent?.(command.agent);
|
|
1170
1170
|
return { ok: true, message: `stopped ${command.agent}` };
|
|
1171
|
-
case "agent.restart":
|
|
1172
|
-
|
|
1173
|
-
|
|
1171
|
+
case "agent.restart": {
|
|
1172
|
+
if (!this.processManager.restartAgent) {
|
|
1173
|
+
return { ok: false, error: "Managed agent restart is not available." };
|
|
1174
|
+
}
|
|
1175
|
+
const managed = this.processManager.listAgentSnapshots()
|
|
1176
|
+
.some((snapshot) => snapshot.name === command.agent);
|
|
1177
|
+
if (!managed) {
|
|
1178
|
+
return { ok: false, error: `Unknown managed agent '${command.agent}'.` };
|
|
1179
|
+
}
|
|
1180
|
+
void this.processManager.restartAgent(command.agent).catch((error) => {
|
|
1181
|
+
(0, runtime_1.emitNervesEvent)({
|
|
1182
|
+
level: "error",
|
|
1183
|
+
component: "daemon",
|
|
1184
|
+
event: "daemon.agent_restart_request_error",
|
|
1185
|
+
message: "managed agent restart failed after request acknowledgement",
|
|
1186
|
+
meta: {
|
|
1187
|
+
agent: command.agent,
|
|
1188
|
+
error: error instanceof Error ? error.message : String(error),
|
|
1189
|
+
},
|
|
1190
|
+
});
|
|
1191
|
+
});
|
|
1192
|
+
return { ok: true, message: `restart requested for ${command.agent}` };
|
|
1193
|
+
}
|
|
1174
1194
|
case "agent.ask":
|
|
1175
1195
|
return handleAgentAskTurn(command, { socketPath: this.socketPath });
|
|
1176
1196
|
case "agent.status":
|