@misterhuydo/sentinel 1.4.2 → 1.4.4
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/.hint-lock
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-03-
|
|
1
|
+
2026-03-24T14:40:34.199Z
|
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-24T14:40:09.268Z",
|
|
3
|
+
"checkpoint_at": "2026-03-24T14:40:09.269Z",
|
|
4
4
|
"active_files": [],
|
|
5
5
|
"notes": [],
|
|
6
6
|
"mtime_snapshot": {}
|
package/lib/generate.js
CHANGED
|
@@ -63,12 +63,13 @@ if echo "$AUTH_OUT" | grep -Eqi "not logged in|/login"; then
|
|
|
63
63
|
exit 1
|
|
64
64
|
fi
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
WORKSPACE="$(dirname "$DIR")"
|
|
67
|
+
mkdir -p "$WORKSPACE/logs" "$DIR/workspace/fetched" "$DIR/workspace/patches" "$DIR/issues"
|
|
67
68
|
cd "$DIR"
|
|
68
69
|
PYTHONPATH="${codeDir}" "${pythonBin}" -m sentinel.main --config ./config \\
|
|
69
|
-
>> "$
|
|
70
|
+
>> "$WORKSPACE/logs/${name}.log" 2>&1 &
|
|
70
71
|
echo $! > "$PID_FILE"
|
|
71
|
-
echo "[sentinel] ${name} started (PID $!)"
|
|
72
|
+
echo "[sentinel] ${name} started (PID $!) — log: $WORKSPACE/logs/${name}.log"
|
|
72
73
|
`, { mode: 0o755 });
|
|
73
74
|
|
|
74
75
|
// stop.sh
|
|
@@ -184,12 +185,13 @@ if echo "$AUTH_OUT" | grep -Eqi "not logged in|/login"; then
|
|
|
184
185
|
echo "[sentinel] Claude Code is not authenticated. Run: claude then /login"
|
|
185
186
|
exit 1
|
|
186
187
|
fi
|
|
187
|
-
|
|
188
|
+
WORKSPACE="$(dirname "$DIR")"
|
|
189
|
+
mkdir -p "$WORKSPACE/logs" "$DIR/workspace/fetched" "$DIR/workspace/patches" "$DIR/issues"
|
|
188
190
|
cd "$DIR"
|
|
189
191
|
PYTHONPATH="__CODE_DIR__" "__PYTHON_BIN__" -m sentinel.main --config ./config \
|
|
190
|
-
>> "$
|
|
192
|
+
>> "$WORKSPACE/logs/__NAME__.log" 2>&1 &
|
|
191
193
|
echo $! > "$PID_FILE"
|
|
192
|
-
echo "[sentinel] __NAME__ started (PID $!)"
|
|
194
|
+
echo "[sentinel] __NAME__ started (PID $!) — log: $WORKSPACE/logs/__NAME__.log"
|
|
193
195
|
STARTSH
|
|
194
196
|
chmod +x "$project_dir/start.sh"
|
|
195
197
|
echo "[sentinel] Auto-generated start.sh for $name"
|
|
@@ -255,8 +257,12 @@ STOPSH
|
|
|
255
257
|
continue
|
|
256
258
|
fi
|
|
257
259
|
|
|
258
|
-
bash "$project_dir/start.sh"
|
|
259
|
-
|
|
260
|
+
if bash "$project_dir/start.sh"; then
|
|
261
|
+
started=$((started + 1))
|
|
262
|
+
else
|
|
263
|
+
echo "[sentinel] Failed to start $name"
|
|
264
|
+
skipped=$((skipped + 1))
|
|
265
|
+
fi
|
|
260
266
|
done
|
|
261
267
|
echo "[sentinel] $started project(s) started, $skipped skipped"
|
|
262
268
|
`, { mode: 0o755 });
|
package/package.json
CHANGED
|
@@ -29,12 +29,12 @@ AUTO_PUBLISH=false
|
|
|
29
29
|
# Leave blank if this repo has no deploy pipeline (e.g. shared libraries)
|
|
30
30
|
|
|
31
31
|
# jenkins | github_actions | (blank)
|
|
32
|
-
CICD_TYPE=jenkins
|
|
32
|
+
# CICD_TYPE=jenkins
|
|
33
33
|
|
|
34
34
|
# Full URL of the Jenkins job or GitHub Actions workflow
|
|
35
35
|
# Jenkins: https://jenkins.example.com/job/<job-name>
|
|
36
36
|
# GitHub Actions: https://github.com/<org>/<repo> (dispatch event used)
|
|
37
|
-
CICD_JOB_URL=https://jenkins.example.com/job/<job-name>
|
|
37
|
+
# CICD_JOB_URL=https://jenkins.example.com/job/<job-name>
|
|
38
38
|
|
|
39
39
|
# Jenkins API token or GitHub PAT with workflow scope
|
|
40
|
-
CICD_TOKEN=<token>
|
|
40
|
+
# CICD_TOKEN=<token>
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
MAILS=you@yourdomain.com
|
|
11
11
|
|
|
12
12
|
# Health digest — disabled by default; per-fix emails are always sent
|
|
13
|
-
SEND_HEALTH=
|
|
14
|
-
REPORT_INTERVAL_HOURS=
|
|
13
|
+
# SEND_HEALTH=enabled
|
|
14
|
+
# REPORT_INTERVAL_HOURS=6
|
|
15
15
|
|
|
16
16
|
# GitHub token for opening PRs (when AUTO_PUBLISH=false).
|
|
17
17
|
# Usually set once in the workspace sentinel.properties and shared across all projects.
|