@ouro.bot/cli 0.1.0-alpha.913 → 0.1.0-alpha.914
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.914",
|
|
6
|
+
"changes": [
|
|
7
|
+
"Shepherd still answers a waiting prompt when only a timer or counter ticked on the screen while it was judging; before, any changed digit made it send nothing."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.913",
|
|
6
12
|
"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.914</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -66,6 +66,14 @@ const returns_1 = require("./returns");
|
|
|
66
66
|
exports.SHEPHERD_WAKE_TRIGGER = "shepherd";
|
|
67
67
|
exports.READ_LINES = 200;
|
|
68
68
|
exports.SCREEN_LINES = 80;
|
|
69
|
+
/**
|
|
70
|
+
* A screen with its numbers blanked: a ticking timer or token counter at a waiting prompt is not
|
|
71
|
+
* the screen moving on. A timer can grow a unit (`59s` to `1m 0s`) and shift the padding beside
|
|
72
|
+
* it, so a run of numbers with time units counts as one, and runs of spaces as one space.
|
|
73
|
+
*/
|
|
74
|
+
function withoutNumbers(screen) {
|
|
75
|
+
return screen.replace(/(\d+[hms]?[ \t]*)+/g, "0 ").replace(/[ \t]+/g, " ");
|
|
76
|
+
}
|
|
69
77
|
exports.JUDGE_TIMEOUT_MS = 20_000;
|
|
70
78
|
/** Automatic answers in a row with no human focus in between, and per session per hour. */
|
|
71
79
|
exports.STREAK_MAX = 3;
|
|
@@ -232,7 +240,7 @@ async function startShepherdSenseApp(options) {
|
|
|
232
240
|
// Never type into the session the human is in, or one they just left.
|
|
233
241
|
record.reason = `${human} is in this session or just left it, so it is theirs: ${verdict.reason}`;
|
|
234
242
|
}
|
|
235
|
-
else if (tail((0, redact_1.redactSecrets)(await host.read(event.sessionId, exports.READ_LINES)), exports.SCREEN_LINES) !== screen) {
|
|
243
|
+
else if (withoutNumbers(tail((0, redact_1.redactSecrets)(await host.read(event.sessionId, exports.READ_LINES)), exports.SCREEN_LINES)) !== withoutNumbers(screen)) {
|
|
236
244
|
record.reason = `the screen changed while judging, so nothing was sent: ${verdict.reason}`;
|
|
237
245
|
}
|
|
238
246
|
else {
|
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.914",
|
|
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.914",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
12
12
|
"@azure/identity": "^4.13.0",
|