trackly-cli 0.22.2 → 0.22.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.
- package/README.md +9 -12
- package/docs/trackly-tools.md +1 -1
- package/lib/client.js +25 -136
- package/mcp/analytics.js +3 -38
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
- package/server.json +3 -3
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
The only job tracking CLI built for AI agents.
|
|
9
9
|
|
|
10
|
-
Search
|
|
10
|
+
Search Thousands of jobs across Thousands of companies and 40+ ATS types. Track applications, get AI-powered recommendations, and manage your job search -- from the terminal or through Claude, ChatGPT, Cursor, and other MCP-compatible AI agents.
|
|
11
11
|
|
|
12
12
|
## Two ways to connect
|
|
13
13
|
|
|
@@ -35,7 +35,7 @@ trackly jobs --function product
|
|
|
35
35
|
|
|
36
36
|
## At a Glance
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
Thousands of companies | Thousands of jobs | 40+ ATS types | CLI + MCP | 58 local + 55 hosted MCP tools
|
|
39
39
|
|
|
40
40
|
## CLI Commands
|
|
41
41
|
|
|
@@ -351,15 +351,12 @@ job-search and application set plus `get_more_tools`, which lets agents report
|
|
|
351
351
|
a missing capability. Run `trackly mcp` or use
|
|
352
352
|
`trackly agent setup --client claude`.
|
|
353
353
|
|
|
354
|
-
MCP usage analytics are
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
uses a fixed family label;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
disable local MCP instrumentation with `TRACKLY_MCP_ANALYTICS_DISABLED=1` (or
|
|
361
|
-
`TRACKLY_MCP_ANALYTICS_ENABLED=0`); the account setting remains authoritative
|
|
362
|
-
for authenticated backend capture.
|
|
354
|
+
MCP usage analytics are part of the free Trackly service and relay through
|
|
355
|
+
Trackly so it can be debugged and improved; there is no account-level opt-out.
|
|
356
|
+
They exclude résumé text, profile answers, demographic or work-authorization
|
|
357
|
+
answers, and application notes. Client attribution uses a fixed family label;
|
|
358
|
+
errors use categories, and search text is retained only as length. Raw queries
|
|
359
|
+
and conversation text are excluded.
|
|
363
360
|
|
|
364
361
|
**How do I use Claude Code for job hunting?**
|
|
365
362
|
|
|
@@ -367,7 +364,7 @@ Add trackly as an MCP server in Claude Code. Then ask questions naturally: "Find
|
|
|
367
364
|
|
|
368
365
|
**What are the best CLI tools for job search?**
|
|
369
366
|
|
|
370
|
-
trackly-cli is the first dedicated job tracking CLI. It provides direct terminal access to
|
|
367
|
+
trackly-cli is the first dedicated job tracking CLI. It provides direct terminal access to Thousands of jobs across Thousands of companies, with filters for job function, location, and work modality. It also integrates with AI agents via the Model Context Protocol (MCP).
|
|
371
368
|
|
|
372
369
|
## Security
|
|
373
370
|
|
package/docs/trackly-tools.md
CHANGED
|
@@ -72,7 +72,7 @@ API-key creation attempts.
|
|
|
72
72
|
|
|
73
73
|
### Available Tools
|
|
74
74
|
|
|
75
|
-
- **get_more_tools** — Report what the agent wanted to do when no Trackly tool fit, so Trackly can improve its MCP surface. The tool is always available; report delivery is best-effort
|
|
75
|
+
- **get_more_tools** — Report what the agent wanted to do when no Trackly tool fit, so Trackly can improve its MCP surface. The tool is always available; report delivery is best-effort.
|
|
76
76
|
- **trackly_search_jobs** — Search/filter jobs. A successful page may have `total: null`, `pagination.total: null` and `countStatus: "unavailable"` when its total cannot be computed. The returned jobs remain valid: explain `countGuidance`, use `hasMore` and pagination to continue, and avoid retrying just to obtain a total. Zero is a known count; null is unknown. Genuine page failures remain tool errors.
|
|
77
77
|
- `function` (one value) or `jobFunctions` (nonempty array, OR; use one spelling only). The 14 values are: `product`, `engineering`, `design`, `data`, `marketing`, `sales`, `partnerships`, `finance`, `strategy`, `operations`, `people`, `legal`, `support`, `other`
|
|
78
78
|
- `region`: nonempty array of `us`, `europe`, `latam`, `middle_east`, `asia`, `africa`, `canada`, `oceania`, `remote`, `unknown`, combined with OR. Use instead of `locationFilter`; unlike its legacy list form, this supports US plus other regions.
|
package/lib/client.js
CHANGED
|
@@ -11,7 +11,11 @@ const APPLY_CONTRACT = require('../contracts/trackly-apply-tools.json');
|
|
|
11
11
|
const DEFAULT_CONFIG_DIR = path.join(os.homedir(), '.trackly');
|
|
12
12
|
const DEFAULT_BASE_URL = 'https://closeai.mba';
|
|
13
13
|
const DEFAULT_HTTP_TIMEOUT_MS = 30000;
|
|
14
|
-
|
|
14
|
+
// Retired local analytics opt-out marker. Usage analytics are part of the free
|
|
15
|
+
// product and cannot be turned off from the account, so older installs that
|
|
16
|
+
// persisted this key must resume capture: it is ignored on load and dropped on
|
|
17
|
+
// every save.
|
|
18
|
+
const RETIRED_ANALYTICS_OPT_OUT_KEY = 'mcpAnalyticsOptOut';
|
|
15
19
|
const LOCAL_HOSTNAMES = new Set(['localhost', '127.0.0.1', '::1']);
|
|
16
20
|
const MAINTENANCE_CODE = 'maintenance_mode';
|
|
17
21
|
const LEGACY_MAINTENANCE_CODE = 'planned_maintenance';
|
|
@@ -68,14 +72,23 @@ function loadConfig() {
|
|
|
68
72
|
}
|
|
69
73
|
throw error;
|
|
70
74
|
}
|
|
75
|
+
let parsed;
|
|
71
76
|
try {
|
|
72
|
-
|
|
77
|
+
parsed = JSON.parse(raw);
|
|
73
78
|
} catch (error) {
|
|
74
79
|
if (error instanceof SyntaxError) {
|
|
75
80
|
throw new TracklyConfigError(`Trackly config is invalid JSON. Fix or delete ${file}.`);
|
|
76
81
|
}
|
|
77
82
|
throw error;
|
|
78
83
|
}
|
|
84
|
+
return withoutRetiredKeys(parsed);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function withoutRetiredKeys(config) {
|
|
88
|
+
if (!isRecord(config) || !Object.hasOwn(config, RETIRED_ANALYTICS_OPT_OUT_KEY)) return config;
|
|
89
|
+
const next = { ...config };
|
|
90
|
+
delete next[RETIRED_ANALYTICS_OPT_OUT_KEY];
|
|
91
|
+
return next;
|
|
79
92
|
}
|
|
80
93
|
|
|
81
94
|
function ensureConfigDir() {
|
|
@@ -95,7 +108,7 @@ function saveConfig(config) {
|
|
|
95
108
|
// a zero-byte or partial config.json, and the next CLI invocation silently loses all auth.
|
|
96
109
|
// Temp file is created mode 0600 so tokens are never world-readable, even briefly.
|
|
97
110
|
const tmp = `${file}.tmp.${process.pid}`;
|
|
98
|
-
fs.writeFileSync(tmp, JSON.stringify(config, null, 2), { mode: 0o600 });
|
|
111
|
+
fs.writeFileSync(tmp, JSON.stringify(withoutRetiredKeys(config), null, 2), { mode: 0o600 });
|
|
99
112
|
try { fs.chmodSync(tmp, 0o600); } catch (e) {}
|
|
100
113
|
try {
|
|
101
114
|
fs.renameSync(tmp, file);
|
|
@@ -108,25 +121,6 @@ function saveConfig(config) {
|
|
|
108
121
|
}
|
|
109
122
|
|
|
110
123
|
function clearConfig() {
|
|
111
|
-
let config = {};
|
|
112
|
-
try {
|
|
113
|
-
const loaded = loadConfig();
|
|
114
|
-
if (loaded && typeof loaded === 'object' && !Array.isArray(loaded)) config = loaded;
|
|
115
|
-
} catch {
|
|
116
|
-
// Logout must still remove an invalid or unreadable credential file. The
|
|
117
|
-
// opt-out can be preserved only when the existing config is recoverable.
|
|
118
|
-
}
|
|
119
|
-
// A logout clears credentials and endpoint overrides, but the content-free
|
|
120
|
-
// analytics opt-out must continue suppressing anonymous MCP lifecycle events.
|
|
121
|
-
if (config.mcpAnalyticsOptOut === true) {
|
|
122
|
-
try {
|
|
123
|
-
saveConfig({ mcpAnalyticsOptOut: true });
|
|
124
|
-
return;
|
|
125
|
-
} catch {
|
|
126
|
-
// Preserving the marker is best-effort. A disk/write failure must never
|
|
127
|
-
// leave credentials behind, so fall through to unlinking the old file.
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
124
|
const { file } = getConfigPaths();
|
|
131
125
|
try { fs.unlinkSync(file); } catch (e) {}
|
|
132
126
|
}
|
|
@@ -135,13 +129,6 @@ function isRecord(value) {
|
|
|
135
129
|
return Boolean(value && typeof value === 'object' && !Array.isArray(value));
|
|
136
130
|
}
|
|
137
131
|
|
|
138
|
-
function hasAuthenticationInConfig(config) {
|
|
139
|
-
return Boolean(
|
|
140
|
-
(process.env.TRACKLY_API_KEY || '').trim()
|
|
141
|
-
|| (isRecord(config) && (config.apiKey || config.token || config.refreshToken))
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
132
|
function configAfterCredentialRemoval(config, scope) {
|
|
146
133
|
const next = isRecord(config) ? { ...config } : {};
|
|
147
134
|
if (scope === 'all' || scope === 'apiKey') delete next.apiKey;
|
|
@@ -152,81 +139,14 @@ function configAfterCredentialRemoval(config, scope) {
|
|
|
152
139
|
return next;
|
|
153
140
|
}
|
|
154
141
|
|
|
155
|
-
async function
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
let timeout;
|
|
161
|
-
try {
|
|
162
|
-
const preference = await Promise.race([
|
|
163
|
-
Promise.resolve().then(() => request(
|
|
164
|
-
'GET',
|
|
165
|
-
'/api/jobscout/analytics-preference',
|
|
166
|
-
null,
|
|
167
|
-
false,
|
|
168
|
-
true,
|
|
169
|
-
null,
|
|
170
|
-
null,
|
|
171
|
-
{ signal: controller.signal, timeoutMs }
|
|
172
|
-
)),
|
|
173
|
-
new Promise((_, reject) => {
|
|
174
|
-
timeout = setTimeout(() => {
|
|
175
|
-
controller.abort();
|
|
176
|
-
reject(new Error('analytics_preference_sync_timeout'));
|
|
177
|
-
}, timeoutMs);
|
|
178
|
-
}),
|
|
179
|
-
]);
|
|
180
|
-
if (typeof preference?.shareUsageAnalytics !== 'boolean') {
|
|
181
|
-
throw new Error('analytics_preference_invalid');
|
|
182
|
-
}
|
|
183
|
-
return preference.shareUsageAnalytics === false;
|
|
184
|
-
} catch {
|
|
185
|
-
// Fail closed: if the authoritative preference cannot be read before the
|
|
186
|
-
// final credential disappears, suppress future anonymous MCP capture.
|
|
187
|
-
return true;
|
|
188
|
-
} finally {
|
|
189
|
-
clearTimeout(timeout);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
async function synchronizeAnalyticsPreferenceBeforeLogout(
|
|
194
|
-
request = apiRequest,
|
|
195
|
-
options = {}
|
|
196
|
-
) {
|
|
197
|
-
const timeoutMs = options.timeoutMs ?? ANALYTICS_PREFERENCE_SYNC_TIMEOUT_MS;
|
|
198
|
-
try {
|
|
199
|
-
if (!hasAuth()) return;
|
|
200
|
-
} catch {
|
|
201
|
-
// A corrupt or unreadable config must never prevent logout. clearConfig()
|
|
202
|
-
// owns the best-effort removal path and will run immediately afterward.
|
|
142
|
+
async function removeCredentials({ scope = 'all' } = {}) {
|
|
143
|
+
if (scope === 'all') {
|
|
144
|
+
// Logout clears credentials, endpoint overrides and every other config key.
|
|
145
|
+
const { file } = getConfigPaths();
|
|
146
|
+
try { fs.unlinkSync(file); } catch (_) {}
|
|
203
147
|
return;
|
|
204
148
|
}
|
|
205
|
-
const optedOut = await resolveAnalyticsOptOutBeforeCredentialLoss(request, timeoutMs);
|
|
206
|
-
let config = {};
|
|
207
|
-
try {
|
|
208
|
-
const loaded = loadConfig();
|
|
209
|
-
if (loaded && typeof loaded === 'object' && !Array.isArray(loaded)) config = loaded;
|
|
210
|
-
} catch {
|
|
211
|
-
// Environment-provided authentication can still make the preference
|
|
212
|
-
// request valid when the on-disk config is corrupt. Replace only the
|
|
213
|
-
// recoverable analytics marker and let clearConfig() remove credentials.
|
|
214
|
-
}
|
|
215
|
-
if (optedOut) config.mcpAnalyticsOptOut = true;
|
|
216
|
-
else delete config.mcpAnalyticsOptOut;
|
|
217
|
-
try {
|
|
218
|
-
saveConfig(config);
|
|
219
|
-
} catch {
|
|
220
|
-
// Analytics synchronization is best-effort and must never block logout.
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
149
|
|
|
224
|
-
async function removeCredentials({
|
|
225
|
-
scope = 'all',
|
|
226
|
-
request = apiRequest,
|
|
227
|
-
timeoutMs = ANALYTICS_PREFERENCE_SYNC_TIMEOUT_MS,
|
|
228
|
-
preferenceUnavailable = false,
|
|
229
|
-
} = {}) {
|
|
230
150
|
let config = {};
|
|
231
151
|
try {
|
|
232
152
|
const loaded = loadConfig();
|
|
@@ -236,36 +156,7 @@ async function removeCredentials({
|
|
|
236
156
|
// path below. There is no safe credential state to preserve from it.
|
|
237
157
|
}
|
|
238
158
|
|
|
239
|
-
|
|
240
|
-
const removesEphemeralCredential = scope === 'all'
|
|
241
|
-
&& Boolean((process.env.TRACKLY_API_KEY || '').trim());
|
|
242
|
-
const removesFinalCredential = removesEphemeralCredential
|
|
243
|
-
|| (hasAuthenticationInConfig(config) && !hasAuthenticationInConfig(next));
|
|
244
|
-
|
|
245
|
-
if (removesFinalCredential) {
|
|
246
|
-
const optedOut = preferenceUnavailable
|
|
247
|
-
? true
|
|
248
|
-
: await resolveAnalyticsOptOutBeforeCredentialLoss(request, timeoutMs);
|
|
249
|
-
if (optedOut) next.mcpAnalyticsOptOut = true;
|
|
250
|
-
else delete next.mcpAnalyticsOptOut;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
if (scope === 'all') {
|
|
254
|
-
// Preserve logout's historical behavior of clearing endpoint overrides and
|
|
255
|
-
// all future config keys, with only the anonymous opt-out allowed through.
|
|
256
|
-
if (next.mcpAnalyticsOptOut === true) {
|
|
257
|
-
try {
|
|
258
|
-
saveConfig({ mcpAnalyticsOptOut: true });
|
|
259
|
-
return;
|
|
260
|
-
} catch {
|
|
261
|
-
// Credential removal wins over marker preservation on write failure.
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
const { file } = getConfigPaths();
|
|
265
|
-
try { fs.unlinkSync(file); } catch (_) {}
|
|
266
|
-
return;
|
|
267
|
-
}
|
|
268
|
-
|
|
159
|
+
const next = configAfterCredentialRemoval(config, scope);
|
|
269
160
|
if (Object.keys(next).length === 0) {
|
|
270
161
|
const { file } = getConfigPaths();
|
|
271
162
|
try { fs.unlinkSync(file); } catch (_) {}
|
|
@@ -661,9 +552,8 @@ async function _doRefresh() {
|
|
|
661
552
|
// every subsequent 401. Without this, a backend that signals failure via JSON instead of
|
|
662
553
|
// a 4xx status would leave the user stuck in a doomed-refresh loop forever.
|
|
663
554
|
// Use the centralized OAuth-only removal — NOT clearConfig() — so the user's
|
|
664
|
-
// baseUrl, apiKey, and other persisted settings survive a token expiry
|
|
665
|
-
|
|
666
|
-
try { await removeCredentials({ scope: 'oauth', preferenceUnavailable: true }); } catch (_) {}
|
|
555
|
+
// baseUrl, apiKey, and other persisted settings survive a token expiry.
|
|
556
|
+
try { await removeCredentials({ scope: 'oauth' }); } catch (_) {}
|
|
667
557
|
} catch (e) {
|
|
668
558
|
if (isMaintenanceError(e)) {
|
|
669
559
|
throw e;
|
|
@@ -675,7 +565,7 @@ async function _doRefresh() {
|
|
|
675
565
|
// purge the token. Surgical OAuth-only clear preserves baseUrl + apiKey + timeout overrides.
|
|
676
566
|
const status = e && typeof e.status === 'number' ? e.status : null;
|
|
677
567
|
if (status === 400 || status === 401 || status === 403) {
|
|
678
|
-
try { await removeCredentials({ scope: 'oauth'
|
|
568
|
+
try { await removeCredentials({ scope: 'oauth' }); } catch (_) {}
|
|
679
569
|
}
|
|
680
570
|
}
|
|
681
571
|
return null;
|
|
@@ -1024,7 +914,6 @@ module.exports = {
|
|
|
1024
914
|
refreshAccessToken,
|
|
1025
915
|
removeCredentials,
|
|
1026
916
|
saveConfig,
|
|
1027
|
-
synchronizeAnalyticsPreferenceBeforeLogout,
|
|
1028
917
|
CONFIG_DIR: DEFAULT_CONFIG_DIR,
|
|
1029
918
|
CONFIG_FILE: path.join(DEFAULT_CONFIG_DIR, 'config.json'),
|
|
1030
919
|
};
|
package/mcp/analytics.js
CHANGED
|
@@ -7,9 +7,7 @@ const {
|
|
|
7
7
|
ensureSecureUrl,
|
|
8
8
|
getRequestHeaders,
|
|
9
9
|
hasAuth,
|
|
10
|
-
loadConfig,
|
|
11
10
|
normalizeEndpoint,
|
|
12
|
-
saveConfig,
|
|
13
11
|
} = require('../lib/client');
|
|
14
12
|
|
|
15
13
|
const DEFAULT_SHUTDOWN_TIMEOUT_MS = 2_000;
|
|
@@ -23,7 +21,6 @@ const MAX_SANITIZE_STRING_LENGTH = 4_096;
|
|
|
23
21
|
const AUTHENTICATED_RELAY_PATH = '/api/jobscout/mcp-analytics';
|
|
24
22
|
const ANONYMOUS_RELAY_PATH = '/api/jobscout/mcp-analytics/anonymous';
|
|
25
23
|
const ANALYTICS_PREFERENCE_PATH = '/api/jobscout/analytics-preference';
|
|
26
|
-
const ANALYTICS_OPT_OUT_CONFIG_KEY = 'mcpAnalyticsOptOut';
|
|
27
24
|
const MCP_ANALYTICS_USER_AGENT = `trackly-mcp-analytics/${PACKAGE_VERSION}`;
|
|
28
25
|
const REDACTED = '[redacted]';
|
|
29
26
|
const TRUE_VALUES = new Set(['1', 'true', 'yes', 'on', 'enabled']);
|
|
@@ -217,6 +214,9 @@ function truthy(value) {
|
|
|
217
214
|
return TRUE_VALUES.has(String(value || '').trim().toLowerCase());
|
|
218
215
|
}
|
|
219
216
|
|
|
217
|
+
// Internal test/CI isolation only (keeps the repo's own smoke and package
|
|
218
|
+
// tests from sending real analytics). Not a user setting: usage analytics are
|
|
219
|
+
// part of the free product and there is no user opt-out.
|
|
220
220
|
function isMcpAnalyticsEnabled(env = process.env) {
|
|
221
221
|
if (truthy(env.TRACKLY_MCP_ANALYTICS_DISABLED)) return false;
|
|
222
222
|
if (env.TRACKLY_MCP_ANALYTICS_ENABLED !== undefined
|
|
@@ -713,41 +713,13 @@ function runtimeEventProperties(env = process.env) {
|
|
|
713
713
|
|
|
714
714
|
function createBackendRelay(options = {}) {
|
|
715
715
|
const fetchImpl = options.fetch || globalThis.fetch;
|
|
716
|
-
const loadConfigImpl = options.loadConfig || loadConfig;
|
|
717
|
-
const saveConfigImpl = options.saveConfig || saveConfig;
|
|
718
716
|
const pending = new Set();
|
|
719
717
|
const maxPendingDeliveries = Number.isSafeInteger(options.maxPendingDeliveries)
|
|
720
718
|
&& options.maxPendingDeliveries > 0
|
|
721
719
|
? options.maxPendingDeliveries
|
|
722
720
|
: DEFAULT_MAX_PENDING_DELIVERIES;
|
|
723
|
-
let cachedOptOut = readCachedAnalyticsOptOut();
|
|
724
721
|
let preferenceLookup = null;
|
|
725
722
|
|
|
726
|
-
function readCachedAnalyticsOptOut() {
|
|
727
|
-
try {
|
|
728
|
-
return loadConfigImpl()[ANALYTICS_OPT_OUT_CONFIG_KEY] === true;
|
|
729
|
-
} catch {
|
|
730
|
-
return true;
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
function persistCachedAnalyticsOptOut(optedOut) {
|
|
735
|
-
cachedOptOut = optedOut;
|
|
736
|
-
try {
|
|
737
|
-
const config = loadConfigImpl();
|
|
738
|
-
if (optedOut && config[ANALYTICS_OPT_OUT_CONFIG_KEY] === true) return;
|
|
739
|
-
if (optedOut) config[ANALYTICS_OPT_OUT_CONFIG_KEY] = true;
|
|
740
|
-
else if (Object.hasOwn(config, ANALYTICS_OPT_OUT_CONFIG_KEY)) {
|
|
741
|
-
delete config[ANALYTICS_OPT_OUT_CONFIG_KEY];
|
|
742
|
-
} else {
|
|
743
|
-
return;
|
|
744
|
-
}
|
|
745
|
-
saveConfigImpl(config);
|
|
746
|
-
} catch {
|
|
747
|
-
// The in-memory privacy gate remains authoritative for this process.
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
|
|
751
723
|
function authenticatedRequestContext() {
|
|
752
724
|
const headers = getRequestHeaders(false, MCP_ANALYTICS_USER_AGENT);
|
|
753
725
|
const authorization = headers.Authorization;
|
|
@@ -789,7 +761,6 @@ function createBackendRelay(options = {}) {
|
|
|
789
761
|
throw new Error('analytics_preference_invalid');
|
|
790
762
|
}
|
|
791
763
|
if (!isCurrentAuthenticatedContext(authContext.key)) return false;
|
|
792
|
-
persistCachedAnalyticsOptOut(!preference.shareUsageAnalytics);
|
|
793
764
|
return preference.shareUsageAnalytics;
|
|
794
765
|
})().catch(() => false).finally(() => {
|
|
795
766
|
if (preferenceLookup === lookup) preferenceLookup = null;
|
|
@@ -805,12 +776,6 @@ function createBackendRelay(options = {}) {
|
|
|
805
776
|
const authContext = authenticated ? authenticatedRequestContext() : null;
|
|
806
777
|
if (authenticated && !authContext) return;
|
|
807
778
|
if (!authenticated && !ANONYMOUS_RELAY_EVENTS.has(event.event)) return;
|
|
808
|
-
// Another MCP process can persist an opt-out before this process loses
|
|
809
|
-
// authentication. Refresh the anonymous gate from disk before every
|
|
810
|
-
// unauthenticated delivery, while preserving a known in-memory opt-out
|
|
811
|
-
// if its earlier persistence attempt failed.
|
|
812
|
-
if (!authenticated) cachedOptOut ||= readCachedAnalyticsOptOut();
|
|
813
|
-
if (!authenticated && cachedOptOut) return;
|
|
814
779
|
if (pending.size >= maxPendingDeliveries) return;
|
|
815
780
|
|
|
816
781
|
const endpoint = authenticated ? AUTHENTICATED_RELAY_PATH : ANONYMOUS_RELAY_PATH;
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trackly-cli",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "trackly-cli",
|
|
9
|
-
"version": "0.22.
|
|
9
|
+
"version": "0.22.3",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@modelcontextprotocol/sdk": "1.32.1",
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trackly-cli",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.3",
|
|
4
4
|
"mcpName": "io.github.trackly-app/trackly",
|
|
5
|
-
"description": "Search
|
|
5
|
+
"description": "Search Thousands of jobs across Thousands of companies with the Trackly CLI and MCP server for Claude, ChatGPT, Codex and Cursor. Filter by role, location, salary and sponsorship; track jobs and prepare applications.",
|
|
6
6
|
"bin": {
|
|
7
7
|
"trackly": "./bin/trackly"
|
|
8
8
|
},
|
package/server.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
3
|
"name": "io.github.trackly-app/trackly",
|
|
4
4
|
"title": "Trackly CLI",
|
|
5
|
-
"description": "Search
|
|
5
|
+
"description": "Search Thousands of jobs, Thousands of companies. MCP for Claude, ChatGPT, Codex and Cursor.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "https://github.com/trackly-app/trackly-cli",
|
|
8
8
|
"source": "github"
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
]
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
|
-
"version": "0.22.
|
|
20
|
+
"version": "0.22.3",
|
|
21
21
|
"packages": [
|
|
22
22
|
{
|
|
23
23
|
"registryType": "npm",
|
|
24
24
|
"identifier": "trackly-cli",
|
|
25
|
-
"version": "0.22.
|
|
25
|
+
"version": "0.22.3",
|
|
26
26
|
"runtimeHint": "npx",
|
|
27
27
|
"runtimeArguments": [
|
|
28
28
|
{
|