polydev-ai 1.9.10 → 1.9.11

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/cliManager.js CHANGED
@@ -29,12 +29,15 @@ class CLIManager {
29
29
  this.statusCache = new Map();
30
30
  this.CACHE_TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes
31
31
 
32
- // Initialize status reporter if available
32
+ // StatusReporter is opt-IN only (must explicitly pass enableStatusReporting: true)
33
+ // It's redundant for normal operation since updateCliStatusInDatabase() handles DB updates
34
+ // via /api/cli-status-update. StatusReporter sends to /api/mcp which uses different auth
35
+ // and causes 401 errors. Only enable if explicitly requested via enable_status_reporting tool.
33
36
  this.statusReporter = null;
34
- if (StatusReporter && options.enableStatusReporting !== false) {
37
+ if (StatusReporter && options.enableStatusReporting === true) {
35
38
  this.statusReporter = new StatusReporter({
36
39
  userToken: options.userToken || process.env.POLYDEV_USER_TOKEN,
37
- reportingEnabled: options.reportingEnabled !== false,
40
+ reportingEnabled: true,
38
41
  heartbeatIntervalMs: options.heartbeatIntervalMs,
39
42
  debug: options.debug || process.env.POLYDEV_CLI_DEBUG === 'true'
40
43
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.9.10",
3
+ "version": "1.9.11",
4
4
  "engines": {
5
5
  "node": ">=20.x <=22.x"
6
6
  },