perplexity-user-mcp 0.8.42 → 0.8.44

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.
Files changed (132) hide show
  1. package/dist/attachments.d.ts +10 -20
  2. package/dist/browser-window.d.ts +1 -0
  3. package/dist/cf-warmup.d.ts +32 -0
  4. package/dist/checks/browser.d.ts +12 -100
  5. package/dist/checks/config.d.ts +25 -91
  6. package/dist/checks/ide.d.ts +31 -89
  7. package/dist/checks/mcp.d.ts +12 -61
  8. package/dist/checks/native-deps.d.ts +46 -131
  9. package/dist/checks/network.d.ts +13 -71
  10. package/dist/checks/probe.d.ts +20 -92
  11. package/dist/checks/profiles.d.ts +13 -99
  12. package/dist/checks/profiles.mjs +35 -0
  13. package/dist/checks/runtime.d.ts +24 -89
  14. package/dist/checks/vault.d.ts +13 -142
  15. package/dist/checks/vault.mjs +6 -11
  16. package/dist/{chunk-T6ARJK2P.mjs → chunk-2B5OQUXR.mjs} +6 -6
  17. package/dist/{chunk-2FPGJKCA.mjs → chunk-2EE7MNP2.mjs} +2 -2
  18. package/dist/{chunk-Z4OLYVB2.mjs → chunk-2OVLCZHU.mjs} +1 -1
  19. package/dist/{chunk-WDIW33DA.mjs → chunk-3LUO5ATM.mjs} +1 -1
  20. package/dist/{chunk-B65IJQZJ.mjs → chunk-6E6XTHTG.mjs} +1 -1
  21. package/dist/{chunk-S677V2JU.mjs → chunk-C5I7KXHK.mjs} +32 -2
  22. package/dist/{chunk-TDXETAQT.mjs → chunk-DKEJZ4FI.mjs} +1 -1
  23. package/dist/{chunk-U7QPUNRH.mjs → chunk-DXR6EEZH.mjs} +26 -7
  24. package/dist/{chunk-HJIXH6CL.mjs → chunk-E3GRJXXJ.mjs} +2 -0
  25. package/dist/{chunk-RK4EBZJ3.mjs → chunk-E75J42W5.mjs} +11 -8
  26. package/dist/{chunk-452DK6OS.mjs → chunk-FNHYUE22.mjs} +2 -2
  27. package/dist/{chunk-D254EFYB.mjs → chunk-GBI2U336.mjs} +1 -1
  28. package/dist/chunk-GPUGKWXH.mjs +17 -0
  29. package/dist/{chunk-HNSPNCFH.mjs → chunk-KSNV3ZVY.mjs} +1 -1
  30. package/dist/{chunk-XTRJSV72.mjs → chunk-LGH5BSUY.mjs} +1 -1
  31. package/dist/{chunk-KJFX2ZXR.mjs → chunk-NMKNEEZB.mjs} +1 -1
  32. package/dist/{chunk-FKQ3HP4Q.mjs → chunk-TIWHN4IW.mjs} +1 -1
  33. package/dist/{chunk-V4U3JM4R.mjs → chunk-TSLRTZYR.mjs} +1 -1
  34. package/dist/{chunk-DQQISMYN.mjs → chunk-V4LHDNWJ.mjs} +2 -2
  35. package/dist/{chunk-C3HPFFTD.mjs → chunk-WHVJ724K.mjs} +84 -44
  36. package/dist/cli.d.ts +14 -1317
  37. package/dist/cli.mjs +14 -21
  38. package/dist/client.d.ts +27 -24
  39. package/dist/client.mjs +6 -6
  40. package/dist/cloud-sync.d.ts +65 -42
  41. package/dist/cloud-sync.mjs +8 -8
  42. package/dist/config.d.ts +35 -39
  43. package/dist/config.mjs +3 -3
  44. package/dist/cookie-jar.d.ts +77 -0
  45. package/dist/daemon/attach.d.ts +5 -12
  46. package/dist/daemon/attach.mjs +17 -17
  47. package/dist/daemon/audit.d.ts +5 -7
  48. package/dist/daemon/audit.mjs +2 -2
  49. package/dist/daemon/client-http.d.ts +10 -16
  50. package/dist/daemon/client-http.mjs +17 -17
  51. package/dist/daemon/index.d.ts +17 -14
  52. package/dist/daemon/index.mjs +18 -18
  53. package/dist/daemon/install-tunnel.d.ts +8 -34
  54. package/dist/daemon/install-tunnel.mjs +2 -2
  55. package/dist/daemon/launcher.d.ts +24 -29
  56. package/dist/daemon/launcher.mjs +16 -16
  57. package/dist/daemon/local-tokens.d.ts +23 -0
  58. package/dist/daemon/lockfile.d.ts +10 -12
  59. package/dist/daemon/lockfile.mjs +2 -2
  60. package/dist/daemon/oauth-consent-cache.d.ts +86 -0
  61. package/dist/daemon/oauth-provider.d.ts +132 -0
  62. package/dist/daemon/public-pages.d.ts +9 -0
  63. package/dist/daemon/security.d.ts +52 -0
  64. package/dist/daemon/server.d.ts +12 -83
  65. package/dist/daemon/server.mjs +11 -11
  66. package/dist/daemon/token.d.ts +7 -9
  67. package/dist/daemon/token.mjs +2 -2
  68. package/dist/daemon/tunnel-providers/cloudflared-named-setup.d.ts +140 -0
  69. package/dist/daemon/tunnel-providers/cloudflared-named.d.ts +45 -0
  70. package/dist/daemon/tunnel-providers/cloudflared-quick.d.ts +8 -0
  71. package/dist/daemon/tunnel-providers/index.d.ts +16 -327
  72. package/dist/daemon/tunnel-providers/index.mjs +3 -3
  73. package/dist/daemon/tunnel-providers/ngrok-config.d.ts +18 -0
  74. package/dist/daemon/tunnel-providers/ngrok.d.ts +68 -0
  75. package/dist/daemon/tunnel-providers/types.d.ts +56 -0
  76. package/dist/daemon/tunnel.d.ts +5 -7
  77. package/dist/debug-tracer.d.ts +2 -0
  78. package/dist/doctor-report.d.ts +17 -22
  79. package/dist/doctor.d.ts +12 -44
  80. package/dist/doctor.mjs +2 -2
  81. package/dist/export.d.ts +11 -18
  82. package/dist/export.mjs +4 -4
  83. package/dist/format.d.ts +52 -0
  84. package/dist/fs-utils.d.ts +8 -0
  85. package/dist/health-check.d.ts +1 -108
  86. package/dist/health-check.mjs +3 -3
  87. package/dist/history-store.d.ts +29 -65
  88. package/dist/history-store.mjs +2 -2
  89. package/dist/impit-login-runner.d.ts +1 -469
  90. package/dist/impit-login-runner.mjs +4 -4
  91. package/dist/index.d.ts +25 -149
  92. package/dist/index.mjs +22 -20
  93. package/dist/is-main-module.d.ts +9 -0
  94. package/dist/login-runner.d.ts +1 -333
  95. package/dist/login-runner.mjs +13 -13
  96. package/dist/login.d.ts +5 -0
  97. package/dist/logout.d.ts +2 -28
  98. package/dist/logout.mjs +3 -2
  99. package/dist/manual-login-runner.d.ts +1 -150
  100. package/dist/manual-login-runner.mjs +11 -11
  101. package/dist/{native-deps-IE4B55EL.mjs → native-deps-FCSYDL4W.mjs} +4 -4
  102. package/dist/native-deps.d.ts +36 -0
  103. package/dist/package-version.d.ts +1 -0
  104. package/dist/profiles.d.ts +41 -41
  105. package/dist/profiles.mjs +1 -1
  106. package/dist/prompts.d.ts +2 -0
  107. package/dist/redact.d.ts +14 -142
  108. package/dist/refresh.d.ts +11 -16
  109. package/dist/refresh.mjs +4 -4
  110. package/dist/reinit-watcher.d.ts +15 -24
  111. package/dist/reinit-watcher.mjs +2 -2
  112. package/dist/resources.d.ts +5 -0
  113. package/dist/safe-write.d.ts +16 -0
  114. package/dist/session-metadata.d.ts +45 -0
  115. package/dist/tool-config.d.ts +10 -0
  116. package/dist/tools.d.ts +23 -0
  117. package/dist/tty-prompt.d.ts +18 -34
  118. package/dist/vault.d.ts +114 -34
  119. package/dist/vault.mjs +6 -4
  120. package/dist/viewer-detect.d.ts +2 -4
  121. package/dist/viewers.d.ts +13 -18
  122. package/dist/viewers.mjs +1 -1
  123. package/package.json +2 -2
  124. package/dist/cloud-sync.d-Cqt6y18U.d.ts +0 -42
  125. package/dist/doctor.d-CXmUqOXX.d.ts +0 -43
  126. package/dist/history-store.d-BzjBF2m3.d.ts +0 -65
  127. package/dist/native-deps-BNThFHxa.d.ts +0 -175
  128. package/dist/profiles.d-DqS1oZWr.d.ts +0 -41
  129. package/dist/session-metadata-B9aV_n5g.d.ts +0 -148
  130. package/dist/vault.d-BSJWDLhp.d.ts +0 -37
  131. package/dist/viewer-detect.d-HWGnyFAA.d.ts +0 -4
  132. package/dist/viewers.d-BGCK6sw6.d.ts +0 -10
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  DaemonAttachError,
3
3
  attachToDaemon
4
- } from "../chunk-Z4OLYVB2.mjs";
5
- import "../chunk-RK4EBZJ3.mjs";
6
- import "../chunk-XTRJSV72.mjs";
4
+ } from "../chunk-2OVLCZHU.mjs";
5
+ import "../chunk-E75J42W5.mjs";
6
+ import "../chunk-LGH5BSUY.mjs";
7
7
  import "../chunk-6YMQVLFX.mjs";
8
- import "../chunk-FKQ3HP4Q.mjs";
9
- import "../chunk-KJFX2ZXR.mjs";
10
- import "../chunk-T6ARJK2P.mjs";
11
- import "../chunk-V4U3JM4R.mjs";
12
- import "../chunk-TDXETAQT.mjs";
13
- import "../chunk-WDIW33DA.mjs";
14
- import "../chunk-2FPGJKCA.mjs";
15
- import "../chunk-C3HPFFTD.mjs";
16
- import "../chunk-DQQISMYN.mjs";
17
- import "../chunk-B65IJQZJ.mjs";
18
- import "../chunk-D254EFYB.mjs";
19
- import "../chunk-U7QPUNRH.mjs";
20
- import "../chunk-S677V2JU.mjs";
8
+ import "../chunk-TIWHN4IW.mjs";
9
+ import "../chunk-NMKNEEZB.mjs";
10
+ import "../chunk-2B5OQUXR.mjs";
11
+ import "../chunk-TSLRTZYR.mjs";
12
+ import "../chunk-DKEJZ4FI.mjs";
13
+ import "../chunk-3LUO5ATM.mjs";
14
+ import "../chunk-2EE7MNP2.mjs";
15
+ import "../chunk-WHVJ724K.mjs";
16
+ import "../chunk-V4LHDNWJ.mjs";
17
+ import "../chunk-6E6XTHTG.mjs";
18
+ import "../chunk-GBI2U336.mjs";
19
+ import "../chunk-DXR6EEZH.mjs";
20
+ import "../chunk-C5I7KXHK.mjs";
21
21
  import "../chunk-MTDFKNXX.mjs";
22
- import "../chunk-HJIXH6CL.mjs";
22
+ import "../chunk-E3GRJXXJ.mjs";
23
23
  import "../chunk-4UEJOM6W.mjs";
24
24
  export {
25
25
  DaemonAttachError,
@@ -1,4 +1,4 @@
1
- interface AuditEntry {
1
+ export interface AuditEntry {
2
2
  timestamp: string;
3
3
  clientId: string;
4
4
  tool: string;
@@ -12,12 +12,10 @@ interface AuditEntry {
12
12
  httpStatus?: number;
13
13
  auth?: "bearer" | "oauth" | "oauth-cached" | "none";
14
14
  }
15
- interface AuditOptions {
15
+ export interface AuditOptions {
16
16
  auditPath?: string;
17
17
  maxBytes?: number;
18
18
  }
19
- declare function getAuditLogPath(configDir?: string): string;
20
- declare function appendAuditEntry(entry: AuditEntry, options?: AuditOptions): void;
21
- declare function readAuditTail(limit?: number, options?: AuditOptions): AuditEntry[];
22
-
23
- export { type AuditEntry, type AuditOptions, appendAuditEntry, getAuditLogPath, readAuditTail };
19
+ export declare function getAuditLogPath(configDir?: string): string;
20
+ export declare function appendAuditEntry(entry: AuditEntry, options?: AuditOptions): void;
21
+ export declare function readAuditTail(limit?: number, options?: AuditOptions): AuditEntry[];
@@ -2,8 +2,8 @@ import {
2
2
  appendAuditEntry,
3
3
  getAuditLogPath,
4
4
  readAuditTail
5
- } from "../chunk-V4U3JM4R.mjs";
6
- import "../chunk-HJIXH6CL.mjs";
5
+ } from "../chunk-TSLRTZYR.mjs";
6
+ import "../chunk-E3GRJXXJ.mjs";
7
7
  import "../chunk-4UEJOM6W.mjs";
8
8
  export {
9
9
  appendAuditEntry,
@@ -1,20 +1,15 @@
1
- import { EnsureDaemonOptions } from './launcher.js';
2
- import '../client.js';
3
- import '../config.js';
4
- import 'patchright';
5
- import './lockfile.js';
6
-
1
+ import { type EnsureDaemonOptions } from "./launcher.js";
7
2
  type DaemonEnsureOptions = Pick<EnsureDaemonOptions, "configDir" | "host" | "port" | "tunnel" | "startTimeoutMs" | "pollIntervalMs" | "healthTimeoutMs" | "spawnDaemon">;
8
- interface DaemonClientRequestOptions extends DaemonEnsureOptions {
3
+ export interface DaemonClientRequestOptions extends DaemonEnsureOptions {
9
4
  clientId?: string;
10
5
  source?: "loopback" | "tunnel";
11
6
  }
12
- interface DaemonExportResult {
7
+ export interface DaemonExportResult {
13
8
  savedPath: string;
14
9
  bytes: number;
15
10
  contentType: string;
16
11
  }
17
- interface DaemonCloudSyncProgress {
12
+ export interface DaemonCloudSyncProgress {
18
13
  phase: "starting" | "syncing" | "done" | "cancelled" | "error";
19
14
  fetched?: number;
20
15
  total?: number;
@@ -23,20 +18,19 @@ interface DaemonCloudSyncProgress {
23
18
  skipped?: number;
24
19
  error?: string;
25
20
  }
26
- interface DaemonCloudSyncResult {
21
+ export interface DaemonCloudSyncResult {
27
22
  fetched: number;
28
23
  inserted: number;
29
24
  updated: number;
30
25
  skipped: number;
31
26
  }
32
- interface DaemonHydrateResult {
27
+ export interface DaemonHydrateResult {
33
28
  action: "hydrated" | "skipped-local" | "skipped-hydrated";
34
29
  }
35
- declare function exportHistoryViaDaemon(historyId: string, format: "pdf" | "markdown" | "docx", options?: DaemonClientRequestOptions): Promise<DaemonExportResult>;
36
- declare function syncCloudHistoryViaDaemon(options?: DaemonClientRequestOptions & {
30
+ export declare function exportHistoryViaDaemon(historyId: string, format: "pdf" | "markdown" | "docx", options?: DaemonClientRequestOptions): Promise<DaemonExportResult>;
31
+ export declare function syncCloudHistoryViaDaemon(options?: DaemonClientRequestOptions & {
37
32
  pageSize?: number;
38
33
  onProgress?: (progress: DaemonCloudSyncProgress) => void;
39
34
  }): Promise<DaemonCloudSyncResult>;
40
- declare function hydrateCloudHistoryEntryViaDaemon(historyId: string, options?: DaemonClientRequestOptions): Promise<DaemonHydrateResult>;
41
-
42
- export { type DaemonClientRequestOptions, type DaemonCloudSyncProgress, type DaemonCloudSyncResult, type DaemonExportResult, type DaemonHydrateResult, exportHistoryViaDaemon, hydrateCloudHistoryEntryViaDaemon, syncCloudHistoryViaDaemon };
35
+ export declare function hydrateCloudHistoryEntryViaDaemon(historyId: string, options?: DaemonClientRequestOptions): Promise<DaemonHydrateResult>;
36
+ export {};
@@ -2,25 +2,25 @@ import {
2
2
  exportHistoryViaDaemon,
3
3
  hydrateCloudHistoryEntryViaDaemon,
4
4
  syncCloudHistoryViaDaemon
5
- } from "../chunk-452DK6OS.mjs";
6
- import "../chunk-RK4EBZJ3.mjs";
7
- import "../chunk-XTRJSV72.mjs";
5
+ } from "../chunk-FNHYUE22.mjs";
6
+ import "../chunk-E75J42W5.mjs";
7
+ import "../chunk-LGH5BSUY.mjs";
8
8
  import "../chunk-6YMQVLFX.mjs";
9
- import "../chunk-FKQ3HP4Q.mjs";
10
- import "../chunk-KJFX2ZXR.mjs";
11
- import "../chunk-T6ARJK2P.mjs";
12
- import "../chunk-V4U3JM4R.mjs";
13
- import "../chunk-TDXETAQT.mjs";
14
- import "../chunk-WDIW33DA.mjs";
15
- import "../chunk-2FPGJKCA.mjs";
16
- import "../chunk-C3HPFFTD.mjs";
17
- import "../chunk-DQQISMYN.mjs";
18
- import "../chunk-B65IJQZJ.mjs";
19
- import "../chunk-D254EFYB.mjs";
20
- import "../chunk-U7QPUNRH.mjs";
21
- import "../chunk-S677V2JU.mjs";
9
+ import "../chunk-TIWHN4IW.mjs";
10
+ import "../chunk-NMKNEEZB.mjs";
11
+ import "../chunk-2B5OQUXR.mjs";
12
+ import "../chunk-TSLRTZYR.mjs";
13
+ import "../chunk-DKEJZ4FI.mjs";
14
+ import "../chunk-3LUO5ATM.mjs";
15
+ import "../chunk-2EE7MNP2.mjs";
16
+ import "../chunk-WHVJ724K.mjs";
17
+ import "../chunk-V4LHDNWJ.mjs";
18
+ import "../chunk-6E6XTHTG.mjs";
19
+ import "../chunk-GBI2U336.mjs";
20
+ import "../chunk-DXR6EEZH.mjs";
21
+ import "../chunk-C5I7KXHK.mjs";
22
22
  import "../chunk-MTDFKNXX.mjs";
23
- import "../chunk-HJIXH6CL.mjs";
23
+ import "../chunk-E3GRJXXJ.mjs";
24
24
  import "../chunk-4UEJOM6W.mjs";
25
25
  export {
26
26
  exportHistoryViaDaemon,
@@ -1,14 +1,17 @@
1
- export { attachToDaemon } from './attach.js';
2
- export { appendAuditEntry, getAuditLogPath, readAuditTail } from './audit.js';
3
- export { DaemonClientRequestOptions, DaemonCloudSyncProgress, DaemonCloudSyncResult, DaemonExportResult, DaemonHydrateResult, exportHistoryViaDaemon, hydrateCloudHistoryEntryViaDaemon, syncCloudHistoryViaDaemon } from './client-http.js';
4
- export { InstallTunnelResult, getPinnedCloudflaredVersion, getTunnelBinaryPath, installCloudflared, resolvePinnedAssetKey } from './install-tunnel.js';
5
- export { AuthorizedClientSummary, ConsentEntrySummary, DaemonConnectionInfo, DaemonHealthStatus, DaemonStatus, StartedDaemonInstance, disableDaemonTunnel, enableDaemonTunnel, ensureDaemon, getDaemonStatus, listOAuthClients, listOAuthConsents, restartDaemon, revokeAllOAuthClients, revokeAllOAuthConsents, revokeOAuthClient, revokeOAuthConsent, rotateDaemonToken, startDaemon, stopDaemon } from './launcher.js';
6
- export { DaemonLockRecord, acquire, getLockfilePath, isStale, read, release, replace } from './lockfile.js';
7
- export { StartedDaemonServer, startDaemonServer } from './server.js';
8
- export { DaemonTokenRecord, ensureToken, generateBearerToken, getTokenPath, readToken, rotateToken } from './token.js';
9
- export { TunnelState, extractTunnelUrl, startTunnel } from './tunnel.js';
10
- import 'node:stream';
11
- import '../client.js';
12
- import '../config.js';
13
- import 'patchright';
14
- import 'express';
1
+ export { attachToDaemon } from "./attach.js";
2
+ export { appendAuditEntry, getAuditLogPath, readAuditTail } from "./audit.js";
3
+ export { exportHistoryViaDaemon, hydrateCloudHistoryEntryViaDaemon, syncCloudHistoryViaDaemon, } from "./client-http.js";
4
+ export { getPinnedCloudflaredVersion, getTunnelBinaryPath, installCloudflared, resolvePinnedAssetKey } from "./install-tunnel.js";
5
+ export { disableDaemonTunnel, ensureDaemon, enableDaemonTunnel, getDaemonStatus, listOAuthClients, listOAuthConsents, restartDaemon, revokeAllOAuthClients, revokeAllOAuthConsents, revokeOAuthClient, revokeOAuthConsent, rotateDaemonToken, startDaemon, stopDaemon, } from "./launcher.js";
6
+ export type { AuthorizedClientSummary, ConsentEntrySummary } from "./launcher.js";
7
+ export { acquire, getLockfilePath, isStale, read, release, replace } from "./lockfile.js";
8
+ export { startDaemonServer } from "./server.js";
9
+ export { ensureToken, generateBearerToken, getTokenPath, readToken, rotateToken } from "./token.js";
10
+ export { extractTunnelUrl, startTunnel } from "./tunnel.js";
11
+ export type { DaemonHealthStatus, DaemonStatus, DaemonConnectionInfo, StartedDaemonInstance } from "./launcher.js";
12
+ export type { DaemonLockRecord } from "./lockfile.js";
13
+ export type { StartedDaemonServer } from "./server.js";
14
+ export type { DaemonTokenRecord } from "./token.js";
15
+ export type { InstallTunnelResult } from "./install-tunnel.js";
16
+ export type { TunnelState } from "./tunnel.js";
17
+ export type { DaemonClientRequestOptions, DaemonCloudSyncProgress, DaemonCloudSyncResult, DaemonExportResult, DaemonHydrateResult, } from "./client-http.js";
@@ -2,10 +2,10 @@ import {
2
2
  exportHistoryViaDaemon,
3
3
  hydrateCloudHistoryEntryViaDaemon,
4
4
  syncCloudHistoryViaDaemon
5
- } from "../chunk-452DK6OS.mjs";
5
+ } from "../chunk-FNHYUE22.mjs";
6
6
  import {
7
7
  attachToDaemon
8
- } from "../chunk-Z4OLYVB2.mjs";
8
+ } from "../chunk-2OVLCZHU.mjs";
9
9
  import {
10
10
  disableDaemonTunnel,
11
11
  enableDaemonTunnel,
@@ -21,8 +21,8 @@ import {
21
21
  rotateDaemonToken,
22
22
  startDaemon,
23
23
  stopDaemon
24
- } from "../chunk-RK4EBZJ3.mjs";
25
- import "../chunk-XTRJSV72.mjs";
24
+ } from "../chunk-E75J42W5.mjs";
25
+ import "../chunk-LGH5BSUY.mjs";
26
26
  import {
27
27
  extractTunnelUrl,
28
28
  startTunnel
@@ -32,7 +32,7 @@ import {
32
32
  getTunnelBinaryPath,
33
33
  installCloudflared,
34
34
  resolvePinnedAssetKey
35
- } from "../chunk-FKQ3HP4Q.mjs";
35
+ } from "../chunk-TIWHN4IW.mjs";
36
36
  import {
37
37
  acquire,
38
38
  getLockfilePath,
@@ -40,32 +40,32 @@ import {
40
40
  read,
41
41
  release,
42
42
  replace
43
- } from "../chunk-KJFX2ZXR.mjs";
43
+ } from "../chunk-NMKNEEZB.mjs";
44
44
  import {
45
45
  startDaemonServer
46
- } from "../chunk-T6ARJK2P.mjs";
46
+ } from "../chunk-2B5OQUXR.mjs";
47
47
  import {
48
48
  appendAuditEntry,
49
49
  getAuditLogPath,
50
50
  readAuditTail
51
- } from "../chunk-V4U3JM4R.mjs";
51
+ } from "../chunk-TSLRTZYR.mjs";
52
52
  import {
53
53
  ensureToken,
54
54
  generateBearerToken,
55
55
  getTokenPath,
56
56
  readToken,
57
57
  rotateToken
58
- } from "../chunk-TDXETAQT.mjs";
59
- import "../chunk-WDIW33DA.mjs";
60
- import "../chunk-2FPGJKCA.mjs";
61
- import "../chunk-C3HPFFTD.mjs";
62
- import "../chunk-DQQISMYN.mjs";
63
- import "../chunk-B65IJQZJ.mjs";
64
- import "../chunk-D254EFYB.mjs";
65
- import "../chunk-U7QPUNRH.mjs";
66
- import "../chunk-S677V2JU.mjs";
58
+ } from "../chunk-DKEJZ4FI.mjs";
59
+ import "../chunk-3LUO5ATM.mjs";
60
+ import "../chunk-2EE7MNP2.mjs";
61
+ import "../chunk-WHVJ724K.mjs";
62
+ import "../chunk-V4LHDNWJ.mjs";
63
+ import "../chunk-6E6XTHTG.mjs";
64
+ import "../chunk-GBI2U336.mjs";
65
+ import "../chunk-DXR6EEZH.mjs";
66
+ import "../chunk-C5I7KXHK.mjs";
67
67
  import "../chunk-MTDFKNXX.mjs";
68
- import "../chunk-HJIXH6CL.mjs";
68
+ import "../chunk-E3GRJXXJ.mjs";
69
69
  import "../chunk-4UEJOM6W.mjs";
70
70
  export {
71
71
  acquire,
@@ -1,46 +1,20 @@
1
- var assets = {
2
- "darwin-arm64": {
3
- filename: "cloudflared-darwin-arm64.tgz",
4
- sha256: "2aae4f69b0fc1c671b8353b4f594cbd902cd1e360c8eed2b8cad4602cb1546fb"
5
- },
6
- "darwin-x64": {
7
- filename: "cloudflared-darwin-amd64.tgz",
8
- sha256: "0f30140c4a5e213d22f951ef4c964cac5fb6a5f061ba6eba5ea932999f7c0394"
9
- },
10
- "linux-arm64": {
11
- filename: "cloudflared-linux-arm64",
12
- sha256: "0755ba4cbab59980e6148367fcf53a8f3ec85a97deefd63c2420cf7850769bee"
13
- },
14
- "linux-x64": {
15
- filename: "cloudflared-linux-amd64",
16
- sha256: "4a9e50e6d6d798e90fcd01933151a90bf7edd99a0a55c28ad18f2e16263a5c30"
17
- },
18
- "windows-x64": {
19
- filename: "cloudflared-windows-amd64.exe",
20
- sha256: "59b12880b24af581cf5b1013db601c7d843b9b097e9c78aa5957c7f39f741885"
21
- }
22
- };
23
- var pins = {
24
- assets: assets
25
- };
26
-
1
+ import pins from "./cloudflared-pins.json";
27
2
  type SupportedAssetKey = keyof typeof pins.assets;
28
- interface InstallTunnelOptions {
3
+ export interface InstallTunnelOptions {
29
4
  configDir?: string;
30
5
  platform?: NodeJS.Platform;
31
6
  arch?: NodeJS.Architecture;
32
7
  fetchImpl?: typeof fetch;
33
8
  }
34
- interface InstallTunnelResult {
9
+ export interface InstallTunnelResult {
35
10
  binaryPath: string;
36
11
  version: string;
37
12
  assetKey: SupportedAssetKey;
38
13
  filename: string;
39
14
  sha256: string;
40
15
  }
41
- declare function installCloudflared(options?: InstallTunnelOptions): Promise<InstallTunnelResult>;
42
- declare function getPinnedCloudflaredVersion(): string;
43
- declare function getTunnelBinaryPath(configDir?: string, platform?: NodeJS.Platform): string;
44
- declare function resolvePinnedAssetKey(platform: NodeJS.Platform, arch: NodeJS.Architecture): SupportedAssetKey;
45
-
46
- export { type InstallTunnelOptions, type InstallTunnelResult, getPinnedCloudflaredVersion, getTunnelBinaryPath, installCloudflared, resolvePinnedAssetKey };
16
+ export declare function installCloudflared(options?: InstallTunnelOptions): Promise<InstallTunnelResult>;
17
+ export declare function getPinnedCloudflaredVersion(): string;
18
+ export declare function getTunnelBinaryPath(configDir?: string, platform?: NodeJS.Platform): string;
19
+ export declare function resolvePinnedAssetKey(platform: NodeJS.Platform, arch: NodeJS.Architecture): SupportedAssetKey;
20
+ export {};
@@ -3,8 +3,8 @@ import {
3
3
  getTunnelBinaryPath,
4
4
  installCloudflared,
5
5
  resolvePinnedAssetKey
6
- } from "../chunk-FKQ3HP4Q.mjs";
7
- import "../chunk-HJIXH6CL.mjs";
6
+ } from "../chunk-TIWHN4IW.mjs";
7
+ import "../chunk-E3GRJXXJ.mjs";
8
8
  import "../chunk-4UEJOM6W.mjs";
9
9
  export {
10
10
  getPinnedCloudflaredVersion,
@@ -1,9 +1,6 @@
1
- import { PerplexityClient } from '../client.js';
2
- import { DaemonLockRecord } from './lockfile.js';
3
- import '../config.js';
4
- import 'patchright';
5
-
6
- interface DaemonHealthStatus {
1
+ import { PerplexityClient } from "../client.js";
2
+ import { type DaemonLockRecord } from "./lockfile.js";
3
+ export interface DaemonHealthStatus {
7
4
  ok: boolean;
8
5
  pid: number;
9
6
  uuid: string | null;
@@ -19,7 +16,7 @@ interface DaemonHealthStatus {
19
16
  error?: string | null;
20
17
  };
21
18
  }
22
- interface DaemonStatus {
19
+ export interface DaemonStatus {
23
20
  running: boolean;
24
21
  healthy: boolean;
25
22
  stale: boolean;
@@ -29,7 +26,7 @@ interface DaemonStatus {
29
26
  record: DaemonLockRecord | null;
30
27
  health: DaemonHealthStatus | null;
31
28
  }
32
- interface EnsureDaemonOptions {
29
+ export interface EnsureDaemonOptions {
33
30
  configDir?: string;
34
31
  host?: string;
35
32
  port?: number;
@@ -45,7 +42,7 @@ interface EnsureDaemonOptions {
45
42
  }) => void | Promise<void>;
46
43
  treatSelfAsZombie?: boolean;
47
44
  }
48
- interface StartDaemonOptions {
45
+ export interface StartDaemonOptions {
49
46
  configDir?: string;
50
47
  host?: string;
51
48
  port?: number;
@@ -57,7 +54,7 @@ interface StartDaemonOptions {
57
54
  version?: string;
58
55
  createClient?: () => PerplexityClient;
59
56
  }
60
- interface DaemonConnectionInfo {
57
+ export interface DaemonConnectionInfo {
61
58
  pid: number;
62
59
  uuid: string;
63
60
  port: number;
@@ -67,20 +64,20 @@ interface DaemonConnectionInfo {
67
64
  startedAt: string;
68
65
  tunnelUrl?: string | null;
69
66
  }
70
- interface StartedDaemonInstance extends DaemonConnectionInfo {
67
+ export interface StartedDaemonInstance extends DaemonConnectionInfo {
71
68
  attached: boolean;
72
69
  close: () => Promise<void>;
73
70
  closed: Promise<void>;
74
71
  }
75
- declare function getDaemonStatus(options?: {
72
+ export declare function getDaemonStatus(options?: {
76
73
  configDir?: string;
77
74
  reclaimStale?: boolean;
78
75
  healthTimeoutMs?: number;
79
76
  treatSelfAsZombie?: boolean;
80
77
  }): Promise<DaemonStatus>;
81
- declare function ensureDaemon(options?: EnsureDaemonOptions): Promise<DaemonConnectionInfo>;
82
- declare function startDaemon(options?: StartDaemonOptions): Promise<StartedDaemonInstance>;
83
- declare function stopDaemon(options?: {
78
+ export declare function ensureDaemon(options?: EnsureDaemonOptions): Promise<DaemonConnectionInfo>;
79
+ export declare function startDaemon(options?: StartDaemonOptions): Promise<StartedDaemonInstance>;
80
+ export declare function stopDaemon(options?: {
84
81
  configDir?: string;
85
82
  waitTimeoutMs?: number;
86
83
  pollIntervalMs?: number;
@@ -96,7 +93,7 @@ declare function stopDaemon(options?: {
96
93
  forced: boolean;
97
94
  pid?: number | null;
98
95
  }>;
99
- declare function restartDaemon(options?: {
96
+ export declare function restartDaemon(options?: {
100
97
  configDir?: string;
101
98
  waitTimeoutMs?: number;
102
99
  pollIntervalMs?: number;
@@ -109,37 +106,37 @@ declare function restartDaemon(options?: {
109
106
  reSpawned: boolean;
110
107
  connection: DaemonConnectionInfo | null;
111
108
  }>;
112
- declare function rotateDaemonToken(options?: {
109
+ export declare function rotateDaemonToken(options?: {
113
110
  configDir?: string;
114
111
  healthTimeoutMs?: number;
115
112
  }): Promise<DaemonConnectionInfo>;
116
- declare function enableDaemonTunnel(options?: {
113
+ export declare function enableDaemonTunnel(options?: {
117
114
  configDir?: string;
118
115
  healthTimeoutMs?: number;
119
116
  }): Promise<DaemonStatus>;
120
- declare function disableDaemonTunnel(options?: {
117
+ export declare function disableDaemonTunnel(options?: {
121
118
  configDir?: string;
122
119
  healthTimeoutMs?: number;
123
120
  }): Promise<DaemonStatus>;
124
- interface ConsentEntrySummary {
121
+ export interface ConsentEntrySummary {
125
122
  clientId: string;
126
123
  redirectUri: string;
127
124
  approvedAt: string;
128
125
  expiresAt: number;
129
126
  }
130
- declare function listOAuthConsents(options?: {
127
+ export declare function listOAuthConsents(options?: {
131
128
  configDir?: string;
132
129
  healthTimeoutMs?: number;
133
130
  }): Promise<ConsentEntrySummary[]>;
134
- declare function revokeOAuthConsent(clientId: string, redirectUri?: string, options?: {
131
+ export declare function revokeOAuthConsent(clientId: string, redirectUri?: string, options?: {
135
132
  configDir?: string;
136
133
  healthTimeoutMs?: number;
137
134
  }): Promise<number>;
138
- declare function revokeAllOAuthConsents(options?: {
135
+ export declare function revokeAllOAuthConsents(options?: {
139
136
  configDir?: string;
140
137
  healthTimeoutMs?: number;
141
138
  }): Promise<number>;
142
- interface AuthorizedClientSummary {
139
+ export interface AuthorizedClientSummary {
143
140
  clientId: string;
144
141
  clientName?: string;
145
142
  registeredAt: number;
@@ -147,17 +144,15 @@ interface AuthorizedClientSummary {
147
144
  consentLastApprovedAt?: string;
148
145
  activeTokens: number;
149
146
  }
150
- declare function listOAuthClients(options?: {
147
+ export declare function listOAuthClients(options?: {
151
148
  configDir?: string;
152
149
  healthTimeoutMs?: number;
153
150
  }): Promise<AuthorizedClientSummary[]>;
154
- declare function revokeOAuthClient(clientId: string, options?: {
151
+ export declare function revokeOAuthClient(clientId: string, options?: {
155
152
  configDir?: string;
156
153
  healthTimeoutMs?: number;
157
154
  }): Promise<boolean>;
158
- declare function revokeAllOAuthClients(options?: {
155
+ export declare function revokeAllOAuthClients(options?: {
159
156
  configDir?: string;
160
157
  healthTimeoutMs?: number;
161
158
  }): Promise<number>;
162
-
163
- export { type AuthorizedClientSummary, type ConsentEntrySummary, type DaemonConnectionInfo, type DaemonHealthStatus, type DaemonStatus, type EnsureDaemonOptions, type StartDaemonOptions, type StartedDaemonInstance, disableDaemonTunnel, enableDaemonTunnel, ensureDaemon, getDaemonStatus, listOAuthClients, listOAuthConsents, restartDaemon, revokeAllOAuthClients, revokeAllOAuthConsents, revokeOAuthClient, revokeOAuthConsent, rotateDaemonToken, startDaemon, stopDaemon };
@@ -13,24 +13,24 @@ import {
13
13
  rotateDaemonToken,
14
14
  startDaemon,
15
15
  stopDaemon
16
- } from "../chunk-RK4EBZJ3.mjs";
17
- import "../chunk-XTRJSV72.mjs";
16
+ } from "../chunk-E75J42W5.mjs";
17
+ import "../chunk-LGH5BSUY.mjs";
18
18
  import "../chunk-6YMQVLFX.mjs";
19
- import "../chunk-FKQ3HP4Q.mjs";
20
- import "../chunk-KJFX2ZXR.mjs";
21
- import "../chunk-T6ARJK2P.mjs";
22
- import "../chunk-V4U3JM4R.mjs";
23
- import "../chunk-TDXETAQT.mjs";
24
- import "../chunk-WDIW33DA.mjs";
25
- import "../chunk-2FPGJKCA.mjs";
26
- import "../chunk-C3HPFFTD.mjs";
27
- import "../chunk-DQQISMYN.mjs";
28
- import "../chunk-B65IJQZJ.mjs";
29
- import "../chunk-D254EFYB.mjs";
30
- import "../chunk-U7QPUNRH.mjs";
31
- import "../chunk-S677V2JU.mjs";
19
+ import "../chunk-TIWHN4IW.mjs";
20
+ import "../chunk-NMKNEEZB.mjs";
21
+ import "../chunk-2B5OQUXR.mjs";
22
+ import "../chunk-TSLRTZYR.mjs";
23
+ import "../chunk-DKEJZ4FI.mjs";
24
+ import "../chunk-3LUO5ATM.mjs";
25
+ import "../chunk-2EE7MNP2.mjs";
26
+ import "../chunk-WHVJ724K.mjs";
27
+ import "../chunk-V4LHDNWJ.mjs";
28
+ import "../chunk-6E6XTHTG.mjs";
29
+ import "../chunk-GBI2U336.mjs";
30
+ import "../chunk-DXR6EEZH.mjs";
31
+ import "../chunk-C5I7KXHK.mjs";
32
32
  import "../chunk-MTDFKNXX.mjs";
33
- import "../chunk-HJIXH6CL.mjs";
33
+ import "../chunk-E3GRJXXJ.mjs";
34
34
  import "../chunk-4UEJOM6W.mjs";
35
35
  export {
36
36
  disableDaemonTunnel,
@@ -0,0 +1,23 @@
1
+ export interface LocalTokenMetadata {
2
+ id: string;
3
+ ideTag: string;
4
+ label: string;
5
+ createdAt: string;
6
+ lastUsedAt?: string;
7
+ revoked?: boolean;
8
+ }
9
+ export interface LocalTokenOptions {
10
+ tokenPath?: string;
11
+ now?: () => string;
12
+ }
13
+ export declare function getLocalTokensPath(configDir?: string): string;
14
+ export declare function issueLocalToken(input: {
15
+ ideTag: string;
16
+ label: string;
17
+ }, options?: LocalTokenOptions): {
18
+ token: string;
19
+ metadata: LocalTokenMetadata;
20
+ };
21
+ export declare function verifyLocalToken(raw: string, options?: LocalTokenOptions): LocalTokenMetadata | null;
22
+ export declare function revokeLocalToken(id: string, options?: LocalTokenOptions): boolean;
23
+ export declare function listLocalTokens(options?: LocalTokenOptions): LocalTokenMetadata[];
@@ -1,4 +1,4 @@
1
- interface DaemonLockRecord {
1
+ export interface DaemonLockRecord {
2
2
  pid: number;
3
3
  uuid: string;
4
4
  port: number;
@@ -8,22 +8,20 @@ interface DaemonLockRecord {
8
8
  cloudflaredPid?: number | null;
9
9
  tunnelUrl?: string | null;
10
10
  }
11
- interface LockfileOptions {
11
+ export interface LockfileOptions {
12
12
  lockPath?: string;
13
13
  }
14
- interface ReplaceLockfileOptions extends LockfileOptions {
14
+ export interface ReplaceLockfileOptions extends LockfileOptions {
15
15
  expectedUuid?: string;
16
16
  }
17
- interface LockfileStaleOptions {
17
+ export interface LockfileStaleOptions {
18
18
  echoedUuid?: string | null;
19
19
  }
20
- declare function getLockfilePath(configDir?: string): string;
21
- declare function acquire(record: DaemonLockRecord, options?: LockfileOptions): boolean;
22
- declare function read(options?: LockfileOptions): DaemonLockRecord | null;
23
- declare function release(options?: LockfileOptions & {
20
+ export declare function getLockfilePath(configDir?: string): string;
21
+ export declare function acquire(record: DaemonLockRecord, options?: LockfileOptions): boolean;
22
+ export declare function read(options?: LockfileOptions): DaemonLockRecord | null;
23
+ export declare function release(options?: LockfileOptions & {
24
24
  expectedUuid?: string;
25
25
  }): boolean;
26
- declare function replace(record: DaemonLockRecord, options?: ReplaceLockfileOptions): boolean;
27
- declare function isStale(record: DaemonLockRecord | null, options?: LockfileStaleOptions): boolean;
28
-
29
- export { type DaemonLockRecord, type LockfileOptions, type LockfileStaleOptions, type ReplaceLockfileOptions, acquire, getLockfilePath, isStale, read, release, replace };
26
+ export declare function replace(record: DaemonLockRecord, options?: ReplaceLockfileOptions): boolean;
27
+ export declare function isStale(record: DaemonLockRecord | null, options?: LockfileStaleOptions): boolean;
@@ -5,8 +5,8 @@ import {
5
5
  read,
6
6
  release,
7
7
  replace
8
- } from "../chunk-KJFX2ZXR.mjs";
9
- import "../chunk-HJIXH6CL.mjs";
8
+ } from "../chunk-NMKNEEZB.mjs";
9
+ import "../chunk-E3GRJXXJ.mjs";
10
10
  import "../chunk-4UEJOM6W.mjs";
11
11
  export {
12
12
  acquire,