terminalhire 0.42.19 → 0.42.21

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.
@@ -3666,7 +3666,7 @@ function waitForTestRaceBarrier(phase) {
3666
3666
  // src/github-auth.ts
3667
3667
  import { createCipheriv, createDecipheriv, randomBytes as randomBytes4 } from "crypto";
3668
3668
  import { readFileSync as readFileSync3, writeFileSync as writeFileSync2, existsSync as existsSync3, rmSync, renameSync } from "fs";
3669
- import { join as join4 } from "path";
3669
+ import { join as join4, sep } from "path";
3670
3670
  import { homedir as homedir2 } from "os";
3671
3671
 
3672
3672
  // src/state-dir.ts
@@ -2863,7 +2863,7 @@ import { createHash as createHash2 } from "crypto";
2863
2863
  // src/github-auth.ts
2864
2864
  import { createCipheriv, createDecipheriv, randomBytes as randomBytes4 } from "crypto";
2865
2865
  import { readFileSync as readFileSync3, writeFileSync as writeFileSync2, existsSync as existsSync3, rmSync, renameSync } from "fs";
2866
- import { join as join4 } from "path";
2866
+ import { join as join4, sep } from "path";
2867
2867
  import { homedir as homedir2 } from "os";
2868
2868
 
2869
2869
  // src/state-dir.ts
@@ -1,7 +1,7 @@
1
1
  // src/github-auth.ts
2
2
  import { createCipheriv, createDecipheriv, randomBytes as randomBytes2 } from "crypto";
3
3
  import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, existsSync as existsSync3, rmSync, renameSync } from "fs";
4
- import { join as join3 } from "path";
4
+ import { join as join3, sep } from "path";
5
5
  import { homedir as homedir2 } from "os";
6
6
 
7
7
  // src/state-dir.ts
@@ -185,6 +185,10 @@ function __publishKeyBlobForTests(key) {
185
185
  // src/github-auth.ts
186
186
  var TERMINALHIRE_DIR2 = process.env.TERMINALHIRE_DIR || join3(homedir2(), ".terminalhire");
187
187
  var TOKEN_FILE = join3(TERMINALHIRE_DIR2, "github-token.enc");
188
+ function githubTokenDisplayPath() {
189
+ const home = homedir2();
190
+ return TOKEN_FILE.startsWith(home + sep) ? `~${TOKEN_FILE.slice(home.length)}` : TOKEN_FILE;
191
+ }
188
192
  var ALGO = "aes-256-gcm";
189
193
  var IV_BYTES = 12;
190
194
  var GITHUB_SCOPE = "read:user";
@@ -389,6 +393,7 @@ export {
389
393
  decrypt,
390
394
  deleteGitHubToken,
391
395
  encrypt,
396
+ githubTokenDisplayPath,
392
397
  hasGitHubToken,
393
398
  loadKey,
394
399
  readGitHubToken,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terminalhire",
3
- "version": "0.42.19",
3
+ "version": "0.42.21",
4
4
  "description": "Developer jobs and paid bounties, matched in the terminal — ambient matches in the Claude Code spinner. Claim a scoped bounty and get paid when the poster accepts it.",
5
5
  "repository": {
6
6
  "type": "git",