@misterhuydo/sentinel 1.0.74 → 1.0.76
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 +1 -1
- package/.cairn/session.json +2 -2
- package/.cairn/views/62a614_bundle.js +17 -0
- package/lib/upgrade.js +4 -0
- package/package.json +1 -1
- package/python/sentinel/__pycache__/config_loader.cpython-313.pyc +0 -0
- package/python/sentinel/__pycache__/fix_engine.cpython-313.pyc +0 -0
- package/python/sentinel/__pycache__/issue_watcher.cpython-313.pyc +0 -0
- package/python/sentinel/__pycache__/main.cpython-313.pyc +0 -0
- package/python/sentinel/__pycache__/reporter.cpython-313.pyc +0 -0
package/.cairn/.hint-lock
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-03-
|
|
1
|
+
2026-03-22T17:26:44.035Z
|
package/.cairn/session.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"message": "Auto-checkpoint at 2026-03-22T17:
|
|
3
|
-
"checkpoint_at": "2026-03-22T17:
|
|
2
|
+
"message": "Auto-checkpoint at 2026-03-22T17:30:49.082Z",
|
|
3
|
+
"checkpoint_at": "2026-03-22T17:30:49.083Z",
|
|
4
4
|
"active_files": [],
|
|
5
5
|
"notes": [],
|
|
6
6
|
"mtime_snapshot": {}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
const fs = require('fs-extra');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const ROOT = path.resolve(__dirname, '..', '..');
|
|
6
|
+
const CLI_DIR = path.resolve(__dirname, '..');
|
|
7
|
+
const copies = [
|
|
8
|
+
{ src: path.join(ROOT, 'sentinel'), dst: path.join(CLI_DIR, 'python', 'sentinel') },
|
|
9
|
+
{ src: path.join(ROOT, 'scripts'), dst: path.join(CLI_DIR, 'python', 'scripts') },
|
|
10
|
+
{ src: path.join(ROOT, 'requirements.txt'), dst: path.join(CLI_DIR, 'python', 'requirements.txt') },
|
|
11
|
+
];
|
|
12
|
+
console.log('Bundling Python source into cli/python/...');
|
|
13
|
+
for (const { src, dst } of copies) {
|
|
14
|
+
fs.copySync(src, dst, { overwrite: true });
|
|
15
|
+
console.log(' ' + path.relative(CLI_DIR, src) + ' -> ' + path.relative(CLI_DIR, dst));
|
|
16
|
+
}
|
|
17
|
+
console.log('Done.');
|
package/lib/upgrade.js
CHANGED
|
@@ -54,6 +54,10 @@ module.exports = async function upgrade() {
|
|
|
54
54
|
info('Deploying Python source...');
|
|
55
55
|
fs.copySync(src, codeDir, { overwrite: true });
|
|
56
56
|
|
|
57
|
+
// Remove stale .pyc caches so Python recompiles from the new source
|
|
58
|
+
const { execSync: _exec } = require('child_process');
|
|
59
|
+
try { _exec(`find "${codeDir}" -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true`); } catch (_) {}
|
|
60
|
+
|
|
57
61
|
// Restore executable bit on shell scripts (npm strips it)
|
|
58
62
|
const scriptsDir = path.join(codeDir, 'scripts');
|
|
59
63
|
if (fs.existsSync(scriptsDir)) {
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|