@ouro.bot/cli 0.1.0-alpha.1340 → 0.1.0-alpha.1342
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": "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.1342",
|
|
6
|
+
"changes": [
|
|
7
|
+
"The Butler's replay gate takes another timed turn when a post-turn commit was skipped because another sync held the lock, instead of failing sync-latency on that one turn."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.1340",
|
|
6
12
|
"changes": [
|
|
@@ -1137,7 +1137,9 @@ export function syncIntervals(events) {
|
|
|
1137
1137
|
const end = sorted.findIndex((event, index) => index > start && ends.includes(event.event))
|
|
1138
1138
|
if (end < 0) return { ms: null, problem: `no end was logged after ${startName}`, next: start + 1 }
|
|
1139
1139
|
const ended = sorted[end].event
|
|
1140
|
-
|
|
1140
|
+
if (ended === ends[0]) return { ms: sorted[end].at - sorted[start].at, next: end + 1 }
|
|
1141
|
+
// A post-turn push_end straight after push_start is the commit skipped for a busy sync lock: nothing was timed.
|
|
1142
|
+
return { ms: null, problem: `it ended with ${ended}`, ...(startName === "heart.sync_push_start" && ended === "heart.sync_push_end" ? { skipped: true } : {}), next: end + 1 }
|
|
1141
1143
|
}
|
|
1142
1144
|
const pull = span("heart.sync_pull_start", PULL_ENDS, 0)
|
|
1143
1145
|
const commit = span("heart.sync_push_start", COMMIT_ENDS, pull.next)
|
|
@@ -1175,12 +1177,16 @@ export async function syncLatencyResult(host) {
|
|
|
1175
1177
|
if (timed.error) return { id: "sync-latency", status: "fail", checks: [check("the read-only turn answered", false, timed.error)] }
|
|
1176
1178
|
turns.push(timed.intervals)
|
|
1177
1179
|
const first = turns[0]
|
|
1178
|
-
if (
|
|
1180
|
+
if (first.complete && fast(first.pull) && fast(first.commit)) break
|
|
1181
|
+
// A turn whose commit was skipped for a busy lock times nothing, so another turn is taken; any other gap fails now.
|
|
1182
|
+
if (!timed.intervals.complete && !timed.intervals.commit.skipped) break
|
|
1179
1183
|
}
|
|
1180
1184
|
const median = (key) => {
|
|
1181
|
-
const
|
|
1185
|
+
const all = turns.map((intervals) => intervals[key])
|
|
1186
|
+
// Skipped commits are left out; when every turn's commit was skipped, that is the result.
|
|
1187
|
+
const spans = all.some((span) => !span.skipped) ? all.filter((span) => !span.skipped) : all
|
|
1182
1188
|
const missing = spans.find((span) => span.ms === null)
|
|
1183
|
-
if (missing) return missing
|
|
1189
|
+
if (missing) return missing.skipped ? { ...missing, problem: `every turn's commit was skipped while another sync held the lock (${missing.problem})` } : missing
|
|
1184
1190
|
const ms = spans.map((span) => span.ms).sort((a, b) => a - b)
|
|
1185
1191
|
return { ms: ms[Math.floor(ms.length / 2)], detail: ms.length > 1 ? `median ${ms[Math.floor(ms.length / 2)]} ms of ${ms.join(", ")} ms` : `${ms[0]} ms` }
|
|
1186
1192
|
}
|
|
@@ -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.1342</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
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.1342",
|
|
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.1342",
|
|
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.1342",
|
|
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": {
|