polydev-ai 1.9.9 → 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 +6 -3
- package/mcp/server.js +1 -1
- package/package.json +1 -1
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
|
-
//
|
|
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
|
|
37
|
+
if (StatusReporter && options.enableStatusReporting === true) {
|
|
35
38
|
this.statusReporter = new StatusReporter({
|
|
36
39
|
userToken: options.userToken || process.env.POLYDEV_USER_TOKEN,
|
|
37
|
-
reportingEnabled:
|
|
40
|
+
reportingEnabled: true,
|
|
38
41
|
heartbeatIntervalMs: options.heartbeatIntervalMs,
|
|
39
42
|
debug: options.debug || process.env.POLYDEV_CLI_DEBUG === 'true'
|
|
40
43
|
});
|
package/mcp/server.js
CHANGED