@misterhuydo/sentinel 1.0.75 → 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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "message": "Auto-checkpoint at 2026-03-22T17:26:47.544Z",
3
- "checkpoint_at": "2026-03-22T17:26:47.545Z",
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": {}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misterhuydo/sentinel",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "description": "Sentinel — Autonomous DevOps Agent installer and manager",
5
5
  "bin": {
6
6
  "sentinel": "./bin/sentinel.js"