trackly-cli 0.1.9 → 0.1.10

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/bin/trackly CHANGED
@@ -611,8 +611,12 @@ async function cmdConfig(args) {
611
611
 
612
612
  if (args['api-key'] !== undefined) {
613
613
  const keyValue = String(args['api-key']).trim();
614
- if (!keyValue.startsWith('trk_') || keyValue.length < 10) {
615
- console.log(color('yellow', 'Warning: API key does not look like a Trackly key (expected trk_... prefix). Saving anyway.'));
614
+ if (keyValue.startsWith('trk_') && keyValue.length < 14) {
615
+ failNow('Invalid API key: trk_ keys must be at least 14 characters (trk_ + 10). Run "trackly api-key create" to generate a valid key.');
616
+ } else if (!keyValue.startsWith('trk_') && keyValue.length < 20) {
617
+ failNow('Invalid API key: key does not start with trk_ and is too short (must be 20+ characters). Run "trackly api-key create" to generate a valid key.');
618
+ } else if (!keyValue.startsWith('trk_')) {
619
+ console.log(color('yellow', 'Warning: API key does not start with trk_ prefix. Saving as legacy/JWT key.'));
616
620
  }
617
621
  const hadToken = Boolean(config.token);
618
622
  config.apiKey = keyValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trackly-cli",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "mcpName": "io.github.kevinastuhuaman/trackly",
5
5
  "description": "CLI + MCP server for job tracking — search, apply, and manage applications from terminal or AI agents",
6
6
  "bin": {
package/server.json CHANGED
@@ -15,12 +15,12 @@
15
15
  "sizes": ["512x512"]
16
16
  }
17
17
  ],
18
- "version": "0.1.9",
18
+ "version": "0.1.10",
19
19
  "packages": [
20
20
  {
21
21
  "registryType": "npm",
22
22
  "identifier": "trackly-cli",
23
- "version": "0.1.9",
23
+ "version": "0.1.10",
24
24
  "runtimeHint": "npx",
25
25
  "runtimeArguments": [
26
26
  {