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.
@@ -3276,6 +3276,7 @@ __export(github_auth_exports, {
3276
3276
  decrypt: () => decrypt2,
3277
3277
  deleteGitHubToken: () => deleteGitHubToken,
3278
3278
  encrypt: () => encrypt2,
3279
+ githubTokenDisplayPath: () => githubTokenDisplayPath,
3279
3280
  hasGitHubToken: () => hasGitHubToken,
3280
3281
  loadKey: () => loadKey,
3281
3282
  readGitHubToken: () => readGitHubToken,
@@ -3286,8 +3287,12 @@ __export(github_auth_exports, {
3286
3287
  });
3287
3288
  import { createCipheriv as createCipheriv2, createDecipheriv as createDecipheriv2, randomBytes as randomBytes4 } from "crypto";
3288
3289
  import { readFileSync as readFileSync7, writeFileSync as writeFileSync6, existsSync as existsSync6, rmSync as rmSync3, renameSync as renameSync3 } from "fs";
3289
- import { join as join10 } from "path";
3290
+ import { join as join10, sep } from "path";
3290
3291
  import { homedir as homedir7 } from "os";
3292
+ function githubTokenDisplayPath() {
3293
+ const home = homedir7();
3294
+ return TOKEN_FILE.startsWith(home + sep) ? `~${TOKEN_FILE.slice(home.length)}` : TOKEN_FILE;
3295
+ }
3291
3296
  async function loadKey() {
3292
3297
  return loadOrCreateSharedKey();
3293
3298
  }