@misterhuydo/sentinel 1.0.6 → 1.0.10
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/bin/sentinel.js +42 -39
- package/lib/add.js +415 -57
- package/lib/generate.js +14 -23
- package/lib/init.js +21 -7
- package/package.json +1 -1
- package/python/sentinel/__pycache__/issue_watcher.cpython-313.pyc +0 -0
- package/python/sentinel/config_loader.py +15 -3
- package/python/sentinel/fix_engine.py +49 -14
- package/python/sentinel/issue_watcher.py +146 -131
- package/python/sentinel/log_parser.py +175 -149
- package/python/sentinel/main.py +110 -32
- package/python/sentinel/reporter.py +159 -0
- package/python/sentinel/state_store.py +275 -164
- package/templates/sentinel.properties +20 -32
- package/templates/workspace-sentinel.properties +20 -0
|
@@ -1,32 +1,20 @@
|
|
|
1
|
-
# Sentinel
|
|
2
|
-
|
|
3
|
-
#
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
# State DB
|
|
16
|
-
STATE_DB=./sentinel.db
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
# Claude Code binary path
|
|
22
|
-
CLAUDE_CODE_BIN=claude
|
|
23
|
-
|
|
24
|
-
# GitHub token (required for opening PRs when AUTO_PUBLISH=false)
|
|
25
|
-
GITHUB_TOKEN=<github-pat>
|
|
26
|
-
|
|
27
|
-
# Fix confidence threshold (0.0 - 1.0); fixes below this are skipped
|
|
28
|
-
FIX_CONFIDENCE_THRESHOLD=0.7
|
|
29
|
-
|
|
30
|
-
# Rolling log retention window — fetched logs older than this are pruned
|
|
31
|
-
# Claude Code reads the full window for context when generating fixes
|
|
32
|
-
LOG_RETENTION_HOURS=48
|
|
1
|
+
# Sentinel project config — project-specific settings.
|
|
2
|
+
# Shared settings (SMTP, schedule, etc.) live in the workspace-level sentinel.properties
|
|
3
|
+
# one directory above this project. Values here override workspace defaults.
|
|
4
|
+
|
|
5
|
+
# Who receives fix notifications and health reports for this project
|
|
6
|
+
MAILS=you@yourdomain.com
|
|
7
|
+
|
|
8
|
+
# Health digest — disabled by default; per-fix emails are always sent
|
|
9
|
+
SEND_HEALTH=disabled
|
|
10
|
+
REPORT_INTERVAL_HOURS=1
|
|
11
|
+
|
|
12
|
+
# GitHub token for opening PRs (required when AUTO_PUBLISH=false)
|
|
13
|
+
GITHUB_TOKEN=<github-pat>
|
|
14
|
+
|
|
15
|
+
# State DB and workspace paths (relative to this project dir)
|
|
16
|
+
STATE_DB=./sentinel.db
|
|
17
|
+
WORKSPACE_DIR=./workspace
|
|
18
|
+
|
|
19
|
+
# Claude Code auth — set if using API key, leave blank for OAuth
|
|
20
|
+
# ANTHROPIC_API_KEY=sk-ant-...
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Sentinel workspace config — shared across all projects in this workspace.
|
|
2
|
+
# Per-project sentinel.properties can override any of these.
|
|
3
|
+
|
|
4
|
+
# Schedule
|
|
5
|
+
POLL_INTERVAL_SECONDS=120
|
|
6
|
+
|
|
7
|
+
# SMTP — configure once here, all projects share it
|
|
8
|
+
SMTP_HOST=smtp.gmail.com
|
|
9
|
+
SMTP_PORT=587
|
|
10
|
+
SMTP_USER=sentinel@yourdomain.com
|
|
11
|
+
SMTP_PASSWORD=<app-password>
|
|
12
|
+
|
|
13
|
+
# Fix confidence threshold (0.0 - 1.0)
|
|
14
|
+
FIX_CONFIDENCE_THRESHOLD=0.7
|
|
15
|
+
|
|
16
|
+
# Rolling log retention window (hours)
|
|
17
|
+
LOG_RETENTION_HOURS=48
|
|
18
|
+
|
|
19
|
+
# Claude Code binary path
|
|
20
|
+
CLAUDE_CODE_BIN=claude
|