@misterhuydo/sentinel 1.4.11 → 1.4.12

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.
Files changed (2) hide show
  1. package/lib/upgrade.js +3 -0
  2. package/package.json +1 -1
package/lib/upgrade.js CHANGED
@@ -101,11 +101,14 @@ module.exports = async function upgrade() {
101
101
  info('Regenerating project scripts...');
102
102
  const { generateProjectScripts } = require('./generate');
103
103
  const pythonBin = fs.existsSync('/usr/bin/python3') ? '/usr/bin/python3' : 'python3';
104
+ const NON_PROJECT_DIRS = new Set(['logs', 'code', 'repos', 'workspace', 'issues']);
104
105
  let regenerated = 0;
105
106
  try {
106
107
  const entries = fs.readdirSync(defaultWorkspace, { withFileTypes: true });
107
108
  for (const entry of entries) {
108
109
  if (!entry.isDirectory()) continue;
110
+ if (entry.name.startsWith('.')) continue;
111
+ if (NON_PROJECT_DIRS.has(entry.name)) continue;
109
112
  const projectDir = path.join(defaultWorkspace, entry.name);
110
113
  if (!fs.existsSync(path.join(projectDir, 'config', 'sentinel.properties'))) continue;
111
114
  generateProjectScripts(projectDir, codeDir, pythonBin);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misterhuydo/sentinel",
3
- "version": "1.4.11",
3
+ "version": "1.4.12",
4
4
  "description": "Sentinel — Autonomous DevOps Agent installer and manager",
5
5
  "bin": {
6
6
  "sentinel": "./bin/sentinel.js"