@misterhuydo/sentinel 1.4.4 → 1.4.6
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/.cairn/session.json +2 -2
- package/lib/generate.js +4 -4
- package/package.json +1 -1
- package/python/sentinel/slack_bot.py +5 -0
package/.cairn/session.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"message": "Auto-checkpoint at 2026-03-
|
|
3
|
-
"checkpoint_at": "2026-03-
|
|
2
|
+
"message": "Auto-checkpoint at 2026-03-24T15:07:23.955Z",
|
|
3
|
+
"checkpoint_at": "2026-03-24T15:07:23.956Z",
|
|
4
4
|
"active_files": [],
|
|
5
5
|
"notes": [],
|
|
6
6
|
"mtime_snapshot": {}
|
package/lib/generate.js
CHANGED
|
@@ -67,9 +67,9 @@ WORKSPACE="$(dirname "$DIR")"
|
|
|
67
67
|
mkdir -p "$WORKSPACE/logs" "$DIR/workspace/fetched" "$DIR/workspace/patches" "$DIR/issues"
|
|
68
68
|
cd "$DIR"
|
|
69
69
|
PYTHONPATH="${codeDir}" "${pythonBin}" -m sentinel.main --config ./config \\
|
|
70
|
-
>> "$WORKSPACE/logs
|
|
70
|
+
>> "$WORKSPACE/logs/sentinel.log" 2>&1 &
|
|
71
71
|
echo $! > "$PID_FILE"
|
|
72
|
-
echo "[sentinel] ${name} started (PID $!) — log: $WORKSPACE/logs
|
|
72
|
+
echo "[sentinel] ${name} started (PID $!) — log: $WORKSPACE/logs/sentinel.log"
|
|
73
73
|
`, { mode: 0o755 });
|
|
74
74
|
|
|
75
75
|
// stop.sh
|
|
@@ -189,9 +189,9 @@ WORKSPACE="$(dirname "$DIR")"
|
|
|
189
189
|
mkdir -p "$WORKSPACE/logs" "$DIR/workspace/fetched" "$DIR/workspace/patches" "$DIR/issues"
|
|
190
190
|
cd "$DIR"
|
|
191
191
|
PYTHONPATH="__CODE_DIR__" "__PYTHON_BIN__" -m sentinel.main --config ./config \
|
|
192
|
-
>> "$WORKSPACE/logs/
|
|
192
|
+
>> "$WORKSPACE/logs/sentinel.log" 2>&1 &
|
|
193
193
|
echo $! > "$PID_FILE"
|
|
194
|
-
echo "[sentinel] __NAME__ started (PID $!) — log: $WORKSPACE/logs/
|
|
194
|
+
echo "[sentinel] __NAME__ started (PID $!) — log: $WORKSPACE/logs/sentinel.log"
|
|
195
195
|
STARTSH
|
|
196
196
|
chmod +x "$project_dir/start.sh"
|
|
197
197
|
echo "[sentinel] Auto-generated start.sh for $name"
|
package/package.json
CHANGED
|
@@ -434,6 +434,9 @@ async def _run_turn(session: _Session, message: str, client, cfg_loader, store,
|
|
|
434
434
|
session.busy = True
|
|
435
435
|
thinking_ts = await _post(client, channel, "_thinking..._")
|
|
436
436
|
|
|
437
|
+
attach_note = f" (+{len(attachments)} file(s))" if attachments else ""
|
|
438
|
+
logger.info("Boss [%s] >> %s%s", session.user_name, message[:300], attach_note)
|
|
439
|
+
|
|
437
440
|
reply = ""
|
|
438
441
|
is_done = True
|
|
439
442
|
try:
|
|
@@ -452,6 +455,8 @@ async def _run_turn(session: _Session, message: str, client, cfg_loader, store,
|
|
|
452
455
|
finally:
|
|
453
456
|
session.busy = False
|
|
454
457
|
|
|
458
|
+
logger.info("Boss [%s] << %s", session.user_name, reply[:300])
|
|
459
|
+
|
|
455
460
|
if thinking_ts:
|
|
456
461
|
await _update(client, channel, thinking_ts, reply)
|
|
457
462
|
else:
|