@misterhuydo/sentinel 1.4.10 → 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.
package/lib/generate.js CHANGED
@@ -55,7 +55,7 @@ WORKSPACE="$(dirname "$DIR")"
55
55
  _claude_pro=true
56
56
  for _conf in "$WORKSPACE/sentinel.properties" "$DIR/config/sentinel.properties"; do
57
57
  if [[ -f "$_conf" ]]; then
58
- _val=$(grep -iE "^CLAUDE_PRO_FOR_TASKS[[:space:]]*=" "$_conf" 2>/dev/null | tail -1 | cut -d= -f2- | tr -d ' ' | tr '[:upper:]' '[:lower:]')
58
+ _val=$(grep -iE "^CLAUDE_PRO_FOR_TASKS[[:space:]]*=" "$_conf" 2>/dev/null | tail -1 | cut -d= -f2- | tr -d ' ' | tr '[:upper:]' '[:lower:]' || true)
59
59
  [[ -n "$_val" ]] && _claude_pro="$_val"
60
60
  fi
61
61
  done
@@ -195,7 +195,7 @@ WORKSPACE="$(dirname "$DIR")"
195
195
  _claude_pro=true
196
196
  for _conf in "$WORKSPACE/sentinel.properties" "$DIR/config/sentinel.properties"; do
197
197
  if [[ -f "$_conf" ]]; then
198
- _val=$(grep -iE "^CLAUDE_PRO_FOR_TASKS[[:space:]]*=" "$_conf" 2>/dev/null | tail -1 | cut -d= -f2- | tr -d ' ' | tr '[:upper:]' '[:lower:]')
198
+ _val=$(grep -iE "^CLAUDE_PRO_FOR_TASKS[[:space:]]*=" "$_conf" 2>/dev/null | tail -1 | cut -d= -f2- | tr -d ' ' | tr '[:upper:]' '[:lower:]' || true)
199
199
  [[ -n "$_val" ]] && _claude_pro="$_val"
200
200
  fi
201
201
  done
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.10",
3
+ "version": "1.4.12",
4
4
  "description": "Sentinel — Autonomous DevOps Agent installer and manager",
5
5
  "bin": {
6
6
  "sentinel": "./bin/sentinel.js"