@ouro.bot/cli 0.1.0-alpha.1722 → 0.1.0-alpha.1724
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 +18 -1
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +1 -1
- package/dist/heart/daemon/agent-config-check.js +1 -0
- package/dist/heart/daemon/container-healthcheck.js +3 -0
- package/dist/heart/daemon/daemon-entry.js +17 -3
- package/dist/heart/daemon/vault-outage.js +5 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/changelog.json
CHANGED
|
@@ -1,16 +1,33 @@
|
|
|
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.1724",
|
|
6
|
+
"changes": [
|
|
7
|
+
"A release no longer fails because npm is slow to move the `latest` tag onto the version it just published. The release still waits for that exact version to be readable on npm, and still never moves `latest` back to an older version."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"version": "0.1.0-alpha.1723",
|
|
12
|
+
"changes": [
|
|
13
|
+
"When the provider (for example an out-of-quota Anthropic workspace) fails after a vault outage, the daemon now shows the provider's own repair line instead of \"the agent's vault is unreachable\", and the container healthcheck no longer reports healthy while that provider check is failing."
|
|
14
|
+
]
|
|
15
|
+
},
|
|
4
16
|
{
|
|
5
17
|
"version": "0.1.0-alpha.1722",
|
|
6
18
|
"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
19
|
"The Butler's product registration now says which tool calls its Telegram turns must make before they answer. Telegram used to build these itself:",
|
|
9
20
|
"The owner's questions about storage, stale Docker care, full visibility, install state and version.",
|
|
10
21
|
"The household's media questions.",
|
|
11
22
|
"On the Butler's image, the same contracts apply in the same order. An agent with no product never gets them."
|
|
12
23
|
]
|
|
13
24
|
},
|
|
25
|
+
{
|
|
26
|
+
"version": "0.1.0-alpha.1721",
|
|
27
|
+
"changes": [
|
|
28
|
+
"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."
|
|
29
|
+
]
|
|
30
|
+
},
|
|
14
31
|
{
|
|
15
32
|
"version": "0.1.0-alpha.1720",
|
|
16
33
|
"changes": [
|
|
@@ -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.
|
|
4
|
+
<Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1724</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -303,6 +303,7 @@ function failedPingResult(agentName, lane, provider, model, result) {
|
|
|
303
303
|
return {
|
|
304
304
|
ok: false,
|
|
305
305
|
error: `${lane} provider ${provider} model ${model} failed live check: ${result.message}`,
|
|
306
|
+
providerFailure: true,
|
|
306
307
|
fix: (0, readiness_repair_1.providerLiveCheckFix)({
|
|
307
308
|
agentName,
|
|
308
309
|
lane,
|
|
@@ -89,6 +89,9 @@ function runContainerHealthcheck(options = {}) {
|
|
|
89
89
|
fail("daemon is not PID 1");
|
|
90
90
|
if (health.status !== "healthy" && health.status !== "partial")
|
|
91
91
|
fail("daemon status is not ready");
|
|
92
|
+
const degraded = Array.isArray(health.degraded) ? health.degraded : [];
|
|
93
|
+
if (degraded.some((entry) => typeof entry.component === "string" && entry.component.startsWith("provider:")))
|
|
94
|
+
fail("provider failed its live check");
|
|
92
95
|
const agents = health.agents;
|
|
93
96
|
const managed = agents?.[agent];
|
|
94
97
|
if (!managed || managed.status !== "running" || typeof managed.pid !== "number" || managed.pid <= 0)
|
|
@@ -726,10 +726,23 @@ function setVaultDegraded(agent, reason) {
|
|
|
726
726
|
else
|
|
727
727
|
degradedComponents.push({ component, reason: fullReason, since: new Date().toISOString() });
|
|
728
728
|
}
|
|
729
|
+
// The vault answered, so the vault component is cleared and the provider's own failure and repair line are shown instead.
|
|
730
|
+
function setProviderFailed(agent, reason, fix) {
|
|
731
|
+
clearVaultDegraded(agent);
|
|
732
|
+
const component = `provider:${agent}`;
|
|
733
|
+
const fullReason = `${reason}. Fix: ${fix ?? "run 'ouro doctor'; the daemon stays up and retries."}`;
|
|
734
|
+
const existing = degradedComponents.find((entry) => entry.component === component);
|
|
735
|
+
if (existing)
|
|
736
|
+
existing.reason = fullReason;
|
|
737
|
+
else
|
|
738
|
+
degradedComponents.push({ component, reason: fullReason, since: new Date().toISOString() });
|
|
739
|
+
}
|
|
729
740
|
function clearVaultDegraded(agent) {
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
741
|
+
for (const component of [`vault:${agent}`, `provider:${agent}`]) {
|
|
742
|
+
const index = degradedComponents.findIndex((entry) => entry.component === component);
|
|
743
|
+
if (index >= 0)
|
|
744
|
+
degradedComponents.splice(index, 1);
|
|
745
|
+
}
|
|
733
746
|
}
|
|
734
747
|
/* v8 ignore stop */
|
|
735
748
|
async function checkProviderRuntime(agent) {
|
|
@@ -757,6 +770,7 @@ async function prepareProviderRuntime() {
|
|
|
757
770
|
check: checkProviderRuntime,
|
|
758
771
|
onDegraded: setVaultDegraded,
|
|
759
772
|
onRecovered: clearVaultDegraded,
|
|
773
|
+
onProviderFailed: setProviderFailed,
|
|
760
774
|
});
|
|
761
775
|
if (failures.length > 0) {
|
|
762
776
|
throw (0, daemon_bootstrap_startup_1.createProviderReadinessPreparationFailure)(failures);
|
|
@@ -57,6 +57,11 @@ function beginVaultOutageRecovery(agent, reason, deps) {
|
|
|
57
57
|
});
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
|
+
if (result.providerFailure) {
|
|
61
|
+
deps.onProviderFailed(agent, result.error ?? reason, result.fix);
|
|
62
|
+
scheduleNext();
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
60
65
|
// A rejection (not just silence) needs a human; it stays degraded and visible while we keep retrying slowly.
|
|
61
66
|
deps.onDegraded(agent, result.error ?? reason);
|
|
62
67
|
scheduleNext();
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ouro.bot/cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.1724",
|
|
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.
|
|
9
|
+
"version": "0.1.0-alpha.1724",
|
|
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.
|
|
3
|
+
"version": "0.1.0-alpha.1724",
|
|
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": {
|