@misterhuydo/sentinel 1.4.19 → 1.4.21
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/lib/.cairn/.cairn-project +0 -0
- package/lib/.cairn/.hint-lock +1 -0
- package/lib/.cairn/session.json +7 -0
- package/lib/add.js +0 -10
- package/package.json +1 -1
- package/python/sentinel/main.py +3 -2
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2026-03-25T02:39:49.089Z
|
package/lib/add.js
CHANGED
|
@@ -489,16 +489,6 @@ async function addFromGit(gitUrl, workspace) {
|
|
|
489
489
|
if (discovered.length > 0) {
|
|
490
490
|
// Config already exists in the cloned repo — just generate scripts
|
|
491
491
|
generateProjectScripts(projectDir, codeDir, pythonBin);
|
|
492
|
-
// Write SSH_KEY_FILE for primary repo itself (no LOCAL_PATH — derived automatically)
|
|
493
|
-
const primaryProps = path.join(projectDir, 'config', 'repo-configs', `${repoSlug}.properties`);
|
|
494
|
-
if (!fs.existsSync(primaryProps)) {
|
|
495
|
-
writePropertiesFile(primaryProps, {
|
|
496
|
-
REPO_NAME: repoSlug,
|
|
497
|
-
REPO_URL: gitUrl,
|
|
498
|
-
BRANCH: 'main',
|
|
499
|
-
AUTO_PUBLISH: autoPublish ? 'true' : 'false',
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
492
|
ok(`Project "${name}" ready at ${projectDir}`);
|
|
503
493
|
printNextSteps(projectDir, autoPublish);
|
|
504
494
|
await offerToStart(projectDir);
|
package/package.json
CHANGED
package/python/sentinel/main.py
CHANGED
|
@@ -4,7 +4,7 @@ main.py — Sentinel entry point and watch loop.
|
|
|
4
4
|
Usage:
|
|
5
5
|
python -m sentinel.main # run watch loop
|
|
6
6
|
python -m sentinel.main --init # first-time setup
|
|
7
|
-
"""
|
|
7
|
+
"""
|
|
8
8
|
from __future__ import annotations
|
|
9
9
|
|
|
10
10
|
import argparse
|
|
@@ -22,7 +22,7 @@ from pathlib import Path
|
|
|
22
22
|
from .cairn_client import ensure_installed as cairn_installed, index_repo
|
|
23
23
|
from .config_loader import ConfigLoader, SentinelConfig
|
|
24
24
|
from .fix_engine import generate_fix
|
|
25
|
-
from .git_manager import apply_and_commit, publish
|
|
25
|
+
from .git_manager import apply_and_commit, publish, _git_env
|
|
26
26
|
from .cicd_trigger import trigger as cicd_trigger
|
|
27
27
|
from .log_fetcher import fetch_all
|
|
28
28
|
from .log_parser import parse_all, scan_all_for_markers, ErrorEvent
|
|
@@ -395,6 +395,7 @@ async def _startup_checks(cfg_loader: ConfigLoader) -> dict:
|
|
|
395
395
|
r = subprocess.run(
|
|
396
396
|
["git", "clone", repo.repo_url, str(local)],
|
|
397
397
|
capture_output=True, text=True,
|
|
398
|
+
env=_git_env(repo),
|
|
398
399
|
)
|
|
399
400
|
if r.returncode != 0:
|
|
400
401
|
msg = r.stderr.strip()
|