@soulbatical/tetra-dev-toolkit 1.3.2 โ†’ 1.3.3

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.
@@ -283,5 +283,28 @@ else
283
283
  echo " 1. Review /docs/_moved/ and /docs/_cleanup/ per project"
284
284
  echo " 2. Delete what you don't need, keep what's useful"
285
285
  echo " 3. git add + commit per project"
286
+
287
+ # --- Telegram notification ---
288
+ RALPH_URL="${RALPH_BACKEND_URL:-http://localhost:3005}"
289
+ if [ "$TOTAL_MOVED" -gt 0 ] || [ "$TOTAL_DELETED" -gt 0 ] || [ "$TOTAL_GITIGNORED" -gt 0 ]; then
290
+ TELEGRAM_MSG="๐Ÿงน *Weekly Repo Cleanup*
291
+
292
+ Moved: $TOTAL_MOVED files
293
+ Deleted: $TOTAL_DELETED files
294
+ Gitignored: $TOTAL_GITIGNORED entries
295
+
296
+ _Run \`tetra-audit hygiene\` to verify._"
297
+ else
298
+ TELEGRAM_MSG="๐Ÿงน *Weekly Repo Cleanup*
299
+
300
+ โœ… All repos clean โ€” nothing to do."
301
+ fi
302
+
303
+ # Send via Ralph Telegram Gateway (non-blocking, ignore errors)
304
+ curl -s -X POST "$RALPH_URL/api/internal/telegram/send" \
305
+ -H "Content-Type: application/json" \
306
+ -d "{\"text\": $(echo "$TELEGRAM_MSG" | python3 -c 'import sys,json; print(json.dumps(sys.stdin.read()))'), \"sender\": \"cron\", \"agent_name\": \"cleanup-repos\"}" \
307
+ > /dev/null 2>&1 || true
308
+
286
309
  fi
287
310
  echo "================================================================"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soulbatical/tetra-dev-toolkit",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "publishConfig": {
5
5
  "access": "restricted"
6
6
  },