@ouro.bot/cli 0.1.0-alpha.1594 → 0.1.0-alpha.1598
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,20 @@
|
|
|
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.1598",
|
|
6
|
+
"changes": [
|
|
7
|
+
"Update the Ouro UI files to Ouro UI v1.3.574.",
|
|
8
|
+
"`ouro status` no longer shows the context-loss check as a warning just because the agent wrote its own records since the last bundle sync. On daemon-health checks, uncommitted bundle changes less than 60 minutes old count as waiting for the next sync and pass, with their count in the summary. A change that sits unsynced for 60 minutes or more, or one with no file or folder left to date it, still warns. Manual `ouro` checks stay strict. Before this, Slugger's check was clean in only 3 of 488 runs on 2026-11-25, so a real problem looked the same as normal churn.",
|
|
9
|
+
"Update the Ouro UI files to Ouro UI v1.3.575."
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"version": "0.1.0-alpha.1595",
|
|
14
|
+
"changes": [
|
|
15
|
+
"Update the Ouro UI files to Ouro UI v1.3.573."
|
|
16
|
+
]
|
|
17
|
+
},
|
|
4
18
|
{
|
|
5
19
|
"version": "0.1.0-alpha.1594",
|
|
6
20
|
"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.1598</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -51,6 +51,10 @@ const provider_visibility_1 = require("./provider-visibility");
|
|
|
51
51
|
const atomic_file_1 = require("./atomic-file");
|
|
52
52
|
const CONTEXT_LOSS_SENTINEL_RECEIPT_FILE_LIMIT = 512;
|
|
53
53
|
const CONTEXT_LOSS_SENTINEL_GIT_STATUS_TIMEOUT_MS = 5_000;
|
|
54
|
+
// The agent writes flight-recorder events, habit receipts and diary entries between bundle syncs,
|
|
55
|
+
// so a daemon-health refresh almost always sees a few fresh uncommitted files. Only changes that
|
|
56
|
+
// have sat unsynced past this window put context at risk.
|
|
57
|
+
const CONTEXT_LOSS_SENTINEL_BUNDLE_DIRTY_GRACE_MS = 60 * 60 * 1000;
|
|
54
58
|
const REQUIRED_LANES = ["outward", "inner"];
|
|
55
59
|
function logicalLocator(...parts) {
|
|
56
60
|
return path.posix.join(...parts);
|
|
@@ -780,6 +784,33 @@ function isContextLossSentinelOwnedGitStatusEntry(entry, options) {
|
|
|
780
784
|
return isSentinelGitStatusEntry(entry)
|
|
781
785
|
|| isContextLossSentinelFlightRecorderGitStatusEntry(options.agentRoot, entry);
|
|
782
786
|
}
|
|
787
|
+
function pathMtimeMs(filePath) {
|
|
788
|
+
try {
|
|
789
|
+
return fs.lstatSync(filePath).mtimeMs;
|
|
790
|
+
}
|
|
791
|
+
catch {
|
|
792
|
+
return null;
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
/** Newest-change time for a git status entry: each path's own mtime, or its parent directory's
|
|
796
|
+
* when the path is gone (a deletion). Null when nothing on disk dates the change. */
|
|
797
|
+
function gitStatusEntryChangedAtMs(agentRoot, entry) {
|
|
798
|
+
let oldest = null;
|
|
799
|
+
for (const entryPath of gitStatusPaths(entry)) {
|
|
800
|
+
const absolute = path.join(agentRoot, entryPath.replace(/\/$/, ""));
|
|
801
|
+
const changedAt = pathMtimeMs(absolute) ?? pathMtimeMs(path.dirname(absolute));
|
|
802
|
+
if (changedAt === null)
|
|
803
|
+
return null;
|
|
804
|
+
oldest = oldest === null ? changedAt : Math.min(oldest, changedAt);
|
|
805
|
+
}
|
|
806
|
+
return oldest;
|
|
807
|
+
}
|
|
808
|
+
function isInFlightGitStatusEntry(agentRoot, entry, nowMs, graceMs) {
|
|
809
|
+
if (graceMs <= 0)
|
|
810
|
+
return false;
|
|
811
|
+
const changedAt = gitStatusEntryChangedAtMs(agentRoot, entry);
|
|
812
|
+
return changedAt !== null && nowMs - changedAt < graceMs;
|
|
813
|
+
}
|
|
783
814
|
function bundleSignal(status, options) {
|
|
784
815
|
const gitStatusCommand = "git status --porcelain=v1 -uall";
|
|
785
816
|
if (!status.ok) {
|
|
@@ -796,17 +827,34 @@ function bundleSignal(status, options) {
|
|
|
796
827
|
}
|
|
797
828
|
const dirtyEntries = gitStatusEntries(status.porcelain)
|
|
798
829
|
.filter((entry) => !(options.ignoreSentinelDirtyEntries && isContextLossSentinelOwnedGitStatusEntry(entry, options)));
|
|
799
|
-
|
|
830
|
+
const grace = options.inFlightGrace;
|
|
831
|
+
const inFlightEntries = grace
|
|
832
|
+
? dirtyEntries.filter((entry) => isInFlightGitStatusEntry(options.agentRoot, entry, grace.nowMs, grace.graceMs))
|
|
833
|
+
: [];
|
|
834
|
+
const staleEntries = dirtyEntries.filter((entry) => !inFlightEntries.includes(entry));
|
|
835
|
+
if (staleEntries.length > 0) {
|
|
800
836
|
return {
|
|
801
837
|
id: "bundle:git",
|
|
802
838
|
kind: "bundle",
|
|
803
839
|
status: "warn",
|
|
804
840
|
severity: "warn",
|
|
805
841
|
verdictImpact: "watch",
|
|
806
|
-
summary: `bundle has ${
|
|
842
|
+
summary: `bundle has ${staleEntries.length} uncommitted git status entr${staleEntries.length === 1 ? "y" : "ies"}`,
|
|
807
843
|
source: { kind: "git", locator: gitStatusCommand },
|
|
808
844
|
repair: repair("agent-runnable", "bundle-cleanup", "Resolve or intentionally preserve local bundle changes before handoff.", gitStatusCommand),
|
|
809
|
-
meta: { dirtyEntries },
|
|
845
|
+
meta: inFlightEntries.length > 0 ? { dirtyEntries: staleEntries, inFlightEntries: inFlightEntries.length } : { dirtyEntries: staleEntries },
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
if (inFlightEntries.length > 0) {
|
|
849
|
+
return {
|
|
850
|
+
id: "bundle:git",
|
|
851
|
+
kind: "bundle",
|
|
852
|
+
status: "pass",
|
|
853
|
+
severity: "info",
|
|
854
|
+
verdictImpact: "none",
|
|
855
|
+
summary: `bundle has ${inFlightEntries.length} fresh uncommitted change${inFlightEntries.length === 1 ? "" : "s"} waiting for the next sync`,
|
|
856
|
+
source: { kind: "git", locator: gitStatusCommand },
|
|
857
|
+
meta: { inFlightEntries: inFlightEntries.length },
|
|
810
858
|
};
|
|
811
859
|
}
|
|
812
860
|
return {
|
|
@@ -936,6 +984,12 @@ function makeReceipt(agentName, agentRoot, options, generatedAt) {
|
|
|
936
984
|
bundleSignal((options.gitStatus ?? (() => defaultGitStatus(agentRoot)))(), {
|
|
937
985
|
ignoreSentinelDirtyEntries: options.trigger === "daemon_health",
|
|
938
986
|
agentRoot,
|
|
987
|
+
inFlightGrace: options.trigger === "daemon_health"
|
|
988
|
+
? {
|
|
989
|
+
nowMs: (options.now ?? (() => new Date()))().getTime(),
|
|
990
|
+
graceMs: options.bundleDirtyGraceMs ?? CONTEXT_LOSS_SENTINEL_BUNDLE_DIRTY_GRACE_MS,
|
|
991
|
+
}
|
|
992
|
+
: undefined,
|
|
939
993
|
}),
|
|
940
994
|
];
|
|
941
995
|
const verdict = sentinelVerdict(signals);
|
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.1598",
|
|
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.1598",
|
|
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.1598",
|
|
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": {
|