perplexity-user-mcp 0.8.42 → 0.8.47
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/dist/attachments.d.ts +10 -20
- package/dist/browser-window.d.ts +11 -0
- package/dist/cf-warmup.d.ts +32 -0
- package/dist/checks/browser.d.ts +12 -100
- package/dist/checks/config.d.ts +25 -91
- package/dist/checks/ide.d.ts +31 -89
- package/dist/checks/mcp.d.ts +12 -61
- package/dist/checks/native-deps.d.ts +46 -131
- package/dist/checks/network.d.ts +13 -71
- package/dist/checks/probe.d.ts +37 -92
- package/dist/checks/probe.mjs +29 -0
- package/dist/checks/profiles.d.ts +13 -99
- package/dist/checks/profiles.mjs +35 -0
- package/dist/checks/runtime.d.ts +24 -89
- package/dist/checks/vault.d.ts +13 -142
- package/dist/checks/vault.mjs +6 -11
- package/dist/{chunk-WDIW33DA.mjs → chunk-3LUO5ATM.mjs} +1 -1
- package/dist/{chunk-HNSPNCFH.mjs → chunk-6CAXNBDD.mjs} +1 -1
- package/dist/{chunk-B65IJQZJ.mjs → chunk-6E6XTHTG.mjs} +1 -1
- package/dist/{chunk-S677V2JU.mjs → chunk-C5I7KXHK.mjs} +32 -2
- package/dist/{chunk-RK4EBZJ3.mjs → chunk-D2ZQGKHM.mjs} +11 -8
- package/dist/{chunk-TDXETAQT.mjs → chunk-DKEJZ4FI.mjs} +1 -1
- package/dist/{chunk-U7QPUNRH.mjs → chunk-DXR6EEZH.mjs} +26 -7
- package/dist/{chunk-HJIXH6CL.mjs → chunk-E3GRJXXJ.mjs} +2 -0
- package/dist/{chunk-C3HPFFTD.mjs → chunk-GBHPJ7I7.mjs} +136 -48
- package/dist/{chunk-D254EFYB.mjs → chunk-GBI2U336.mjs} +1 -1
- package/dist/chunk-GPUGKWXH.mjs +17 -0
- package/dist/chunk-KVV3JBSN.mjs +32 -0
- package/dist/{chunk-XTRJSV72.mjs → chunk-LGH5BSUY.mjs} +1 -1
- package/dist/{chunk-KJFX2ZXR.mjs → chunk-NMKNEEZB.mjs} +1 -1
- package/dist/{chunk-T6ARJK2P.mjs → chunk-P6YOLJ5T.mjs} +6 -6
- package/dist/{chunk-452DK6OS.mjs → chunk-QXYMYCHC.mjs} +2 -2
- package/dist/{chunk-Z4OLYVB2.mjs → chunk-SCZQCV7M.mjs} +1 -1
- package/dist/{chunk-FKQ3HP4Q.mjs → chunk-TIWHN4IW.mjs} +1 -1
- package/dist/{chunk-V4U3JM4R.mjs → chunk-TSLRTZYR.mjs} +1 -1
- package/dist/{chunk-DQQISMYN.mjs → chunk-V4LHDNWJ.mjs} +2 -2
- package/dist/{chunk-2FPGJKCA.mjs → chunk-YD25G5AD.mjs} +2 -2
- package/dist/cli.d.ts +14 -1317
- package/dist/cli.mjs +14 -21
- package/dist/client.d.ts +39 -24
- package/dist/client.mjs +9 -6
- package/dist/cloud-sync.d.ts +65 -42
- package/dist/cloud-sync.mjs +9 -8
- package/dist/config.d.ts +35 -39
- package/dist/config.mjs +3 -3
- package/dist/cookie-jar.d.ts +77 -0
- package/dist/daemon/attach.d.ts +5 -12
- package/dist/daemon/attach.mjs +18 -17
- package/dist/daemon/audit.d.ts +5 -7
- package/dist/daemon/audit.mjs +2 -2
- package/dist/daemon/client-http.d.ts +10 -16
- package/dist/daemon/client-http.mjs +18 -17
- package/dist/daemon/index.d.ts +17 -14
- package/dist/daemon/index.mjs +19 -18
- package/dist/daemon/install-tunnel.d.ts +8 -34
- package/dist/daemon/install-tunnel.mjs +2 -2
- package/dist/daemon/launcher.d.ts +24 -29
- package/dist/daemon/launcher.mjs +17 -16
- package/dist/daemon/local-tokens.d.ts +23 -0
- package/dist/daemon/lockfile.d.ts +10 -12
- package/dist/daemon/lockfile.mjs +2 -2
- package/dist/daemon/oauth-consent-cache.d.ts +86 -0
- package/dist/daemon/oauth-provider.d.ts +132 -0
- package/dist/daemon/public-pages.d.ts +9 -0
- package/dist/daemon/security.d.ts +52 -0
- package/dist/daemon/server.d.ts +12 -83
- package/dist/daemon/server.mjs +12 -11
- package/dist/daemon/token.d.ts +7 -9
- package/dist/daemon/token.mjs +2 -2
- package/dist/daemon/tunnel-providers/cloudflared-named-setup.d.ts +140 -0
- package/dist/daemon/tunnel-providers/cloudflared-named.d.ts +45 -0
- package/dist/daemon/tunnel-providers/cloudflared-quick.d.ts +8 -0
- package/dist/daemon/tunnel-providers/index.d.ts +16 -327
- package/dist/daemon/tunnel-providers/index.mjs +3 -3
- package/dist/daemon/tunnel-providers/ngrok-config.d.ts +18 -0
- package/dist/daemon/tunnel-providers/ngrok.d.ts +68 -0
- package/dist/daemon/tunnel-providers/types.d.ts +56 -0
- package/dist/daemon/tunnel.d.ts +5 -7
- package/dist/debug-tracer.d.ts +2 -0
- package/dist/doctor-report.d.ts +17 -22
- package/dist/doctor.d.ts +12 -44
- package/dist/doctor.mjs +2 -2
- package/dist/export.d.ts +11 -18
- package/dist/export.mjs +4 -4
- package/dist/format.d.ts +52 -0
- package/dist/fs-utils.d.ts +44 -0
- package/dist/health-check.d.ts +1 -108
- package/dist/health-check.mjs +3 -3
- package/dist/history-store.d.ts +29 -65
- package/dist/history-store.mjs +2 -2
- package/dist/impit-login-runner.d.ts +1 -469
- package/dist/impit-login-runner.mjs +4 -4
- package/dist/index.d.ts +25 -149
- package/dist/index.mjs +23 -20
- package/dist/is-main-module.d.ts +9 -0
- package/dist/login-runner.d.ts +1 -333
- package/dist/login-runner.mjs +18 -38
- package/dist/login.d.ts +5 -0
- package/dist/logout.d.ts +2 -28
- package/dist/logout.mjs +3 -2
- package/dist/manual-login-runner.d.ts +1 -150
- package/dist/manual-login-runner.mjs +11 -11
- package/dist/{native-deps-IE4B55EL.mjs → native-deps-FCSYDL4W.mjs} +4 -4
- package/dist/native-deps.d.ts +36 -0
- package/dist/package-version.d.ts +1 -0
- package/dist/profiles.d.ts +41 -41
- package/dist/profiles.mjs +1 -1
- package/dist/prompts.d.ts +2 -0
- package/dist/redact.d.ts +14 -142
- package/dist/refresh.d.ts +11 -16
- package/dist/refresh.mjs +4 -4
- package/dist/reinit-watcher.d.ts +15 -24
- package/dist/reinit-watcher.mjs +2 -2
- package/dist/resources.d.ts +5 -0
- package/dist/safe-write.d.ts +16 -0
- package/dist/session-metadata.d.ts +45 -0
- package/dist/tool-config.d.ts +10 -0
- package/dist/tools.d.ts +23 -0
- package/dist/tty-prompt.d.ts +18 -34
- package/dist/vault.d.ts +114 -34
- package/dist/vault.mjs +6 -4
- package/dist/viewer-detect.d.ts +2 -4
- package/dist/viewers.d.ts +13 -18
- package/dist/viewers.mjs +1 -1
- package/package.json +2 -2
- package/dist/cloud-sync.d-Cqt6y18U.d.ts +0 -42
- package/dist/doctor.d-CXmUqOXX.d.ts +0 -43
- package/dist/history-store.d-BzjBF2m3.d.ts +0 -65
- package/dist/native-deps-BNThFHxa.d.ts +0 -175
- package/dist/profiles.d-DqS1oZWr.d.ts +0 -41
- package/dist/session-metadata-B9aV_n5g.d.ts +0 -148
- package/dist/vault.d-BSJWDLhp.d.ts +0 -37
- package/dist/viewer-detect.d-HWGnyFAA.d.ts +0 -4
- package/dist/viewers.d-BGCK6sw6.d.ts +0 -10
package/dist/daemon/attach.d.ts
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { Readable, Writable } from
|
|
2
|
-
import { ensureDaemon } from
|
|
3
|
-
|
|
4
|
-
import '../config.js';
|
|
5
|
-
import 'patchright';
|
|
6
|
-
import './lockfile.js';
|
|
7
|
-
|
|
8
|
-
declare class DaemonAttachError extends Error {
|
|
1
|
+
import type { Readable, Writable } from "node:stream";
|
|
2
|
+
import { ensureDaemon } from "./launcher.js";
|
|
3
|
+
export declare class DaemonAttachError extends Error {
|
|
9
4
|
readonly code = "DAEMON_UNREACHABLE";
|
|
10
5
|
readonly remediation: readonly string[];
|
|
11
6
|
readonly cause?: unknown;
|
|
12
7
|
constructor(message: string, remediation: readonly string[], cause?: unknown);
|
|
13
8
|
}
|
|
14
|
-
interface AttachToDaemonOptions {
|
|
9
|
+
export interface AttachToDaemonOptions {
|
|
15
10
|
configDir?: string;
|
|
16
11
|
stdin?: Readable;
|
|
17
12
|
stdout?: Writable;
|
|
@@ -37,6 +32,4 @@ interface AttachToDaemonOptions {
|
|
|
37
32
|
runStdioMain?: () => Promise<void>;
|
|
38
33
|
};
|
|
39
34
|
}
|
|
40
|
-
declare function attachToDaemon(options?: AttachToDaemonOptions): Promise<void>;
|
|
41
|
-
|
|
42
|
-
export { type AttachToDaemonOptions, DaemonAttachError, attachToDaemon };
|
|
35
|
+
export declare function attachToDaemon(options?: AttachToDaemonOptions): Promise<void>;
|
package/dist/daemon/attach.mjs
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DaemonAttachError,
|
|
3
3
|
attachToDaemon
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-SCZQCV7M.mjs";
|
|
5
|
+
import "../chunk-D2ZQGKHM.mjs";
|
|
6
|
+
import "../chunk-LGH5BSUY.mjs";
|
|
7
7
|
import "../chunk-6YMQVLFX.mjs";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-TIWHN4IW.mjs";
|
|
9
|
+
import "../chunk-NMKNEEZB.mjs";
|
|
10
|
+
import "../chunk-P6YOLJ5T.mjs";
|
|
11
|
+
import "../chunk-TSLRTZYR.mjs";
|
|
12
|
+
import "../chunk-DKEJZ4FI.mjs";
|
|
13
|
+
import "../chunk-3LUO5ATM.mjs";
|
|
14
|
+
import "../chunk-YD25G5AD.mjs";
|
|
15
|
+
import "../chunk-GBHPJ7I7.mjs";
|
|
16
|
+
import "../chunk-KVV3JBSN.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";
|
|
21
22
|
import "../chunk-MTDFKNXX.mjs";
|
|
22
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-E3GRJXXJ.mjs";
|
|
23
24
|
import "../chunk-4UEJOM6W.mjs";
|
|
24
25
|
export {
|
|
25
26
|
DaemonAttachError,
|
package/dist/daemon/audit.d.ts
CHANGED
|
@@ -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[];
|
package/dist/daemon/audit.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
appendAuditEntry,
|
|
3
3
|
getAuditLogPath,
|
|
4
4
|
readAuditTail
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
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
|
|
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,26 @@ import {
|
|
|
2
2
|
exportHistoryViaDaemon,
|
|
3
3
|
hydrateCloudHistoryEntryViaDaemon,
|
|
4
4
|
syncCloudHistoryViaDaemon
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-QXYMYCHC.mjs";
|
|
6
|
+
import "../chunk-D2ZQGKHM.mjs";
|
|
7
|
+
import "../chunk-LGH5BSUY.mjs";
|
|
8
8
|
import "../chunk-6YMQVLFX.mjs";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-TIWHN4IW.mjs";
|
|
10
|
+
import "../chunk-NMKNEEZB.mjs";
|
|
11
|
+
import "../chunk-P6YOLJ5T.mjs";
|
|
12
|
+
import "../chunk-TSLRTZYR.mjs";
|
|
13
|
+
import "../chunk-DKEJZ4FI.mjs";
|
|
14
|
+
import "../chunk-3LUO5ATM.mjs";
|
|
15
|
+
import "../chunk-YD25G5AD.mjs";
|
|
16
|
+
import "../chunk-GBHPJ7I7.mjs";
|
|
17
|
+
import "../chunk-KVV3JBSN.mjs";
|
|
18
|
+
import "../chunk-V4LHDNWJ.mjs";
|
|
19
|
+
import "../chunk-6E6XTHTG.mjs";
|
|
20
|
+
import "../chunk-GBI2U336.mjs";
|
|
21
|
+
import "../chunk-DXR6EEZH.mjs";
|
|
22
|
+
import "../chunk-C5I7KXHK.mjs";
|
|
22
23
|
import "../chunk-MTDFKNXX.mjs";
|
|
23
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-E3GRJXXJ.mjs";
|
|
24
25
|
import "../chunk-4UEJOM6W.mjs";
|
|
25
26
|
export {
|
|
26
27
|
exportHistoryViaDaemon,
|
package/dist/daemon/index.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
export { attachToDaemon } from
|
|
2
|
-
export { appendAuditEntry, getAuditLogPath, readAuditTail } from
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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";
|
package/dist/daemon/index.mjs
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
exportHistoryViaDaemon,
|
|
3
3
|
hydrateCloudHistoryEntryViaDaemon,
|
|
4
4
|
syncCloudHistoryViaDaemon
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-QXYMYCHC.mjs";
|
|
6
6
|
import {
|
|
7
7
|
attachToDaemon
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-SCZQCV7M.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-
|
|
25
|
-
import "../chunk-
|
|
24
|
+
} from "../chunk-D2ZQGKHM.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-
|
|
35
|
+
} from "../chunk-TIWHN4IW.mjs";
|
|
36
36
|
import {
|
|
37
37
|
acquire,
|
|
38
38
|
getLockfilePath,
|
|
@@ -40,32 +40,33 @@ import {
|
|
|
40
40
|
read,
|
|
41
41
|
release,
|
|
42
42
|
replace
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-NMKNEEZB.mjs";
|
|
44
44
|
import {
|
|
45
45
|
startDaemonServer
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-P6YOLJ5T.mjs";
|
|
47
47
|
import {
|
|
48
48
|
appendAuditEntry,
|
|
49
49
|
getAuditLogPath,
|
|
50
50
|
readAuditTail
|
|
51
|
-
} from "../chunk-
|
|
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-
|
|
59
|
-
import "../chunk-
|
|
60
|
-
import "../chunk-
|
|
61
|
-
import "../chunk-
|
|
62
|
-
import "../chunk-
|
|
63
|
-
import "../chunk-
|
|
64
|
-
import "../chunk-
|
|
65
|
-
import "../chunk-
|
|
66
|
-
import "../chunk-
|
|
58
|
+
} from "../chunk-DKEJZ4FI.mjs";
|
|
59
|
+
import "../chunk-3LUO5ATM.mjs";
|
|
60
|
+
import "../chunk-YD25G5AD.mjs";
|
|
61
|
+
import "../chunk-GBHPJ7I7.mjs";
|
|
62
|
+
import "../chunk-KVV3JBSN.mjs";
|
|
63
|
+
import "../chunk-V4LHDNWJ.mjs";
|
|
64
|
+
import "../chunk-6E6XTHTG.mjs";
|
|
65
|
+
import "../chunk-GBI2U336.mjs";
|
|
66
|
+
import "../chunk-DXR6EEZH.mjs";
|
|
67
|
+
import "../chunk-C5I7KXHK.mjs";
|
|
67
68
|
import "../chunk-MTDFKNXX.mjs";
|
|
68
|
-
import "../chunk-
|
|
69
|
+
import "../chunk-E3GRJXXJ.mjs";
|
|
69
70
|
import "../chunk-4UEJOM6W.mjs";
|
|
70
71
|
export {
|
|
71
72
|
acquire,
|
|
@@ -1,46 +1,20 @@
|
|
|
1
|
-
|
|
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-
|
|
7
|
-
import "../chunk-
|
|
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
|
|
2
|
-
import { DaemonLockRecord } from
|
|
3
|
-
|
|
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 };
|
package/dist/daemon/launcher.mjs
CHANGED
|
@@ -13,24 +13,25 @@ import {
|
|
|
13
13
|
rotateDaemonToken,
|
|
14
14
|
startDaemon,
|
|
15
15
|
stopDaemon
|
|
16
|
-
} from "../chunk-
|
|
17
|
-
import "../chunk-
|
|
16
|
+
} from "../chunk-D2ZQGKHM.mjs";
|
|
17
|
+
import "../chunk-LGH5BSUY.mjs";
|
|
18
18
|
import "../chunk-6YMQVLFX.mjs";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-TIWHN4IW.mjs";
|
|
20
|
+
import "../chunk-NMKNEEZB.mjs";
|
|
21
|
+
import "../chunk-P6YOLJ5T.mjs";
|
|
22
|
+
import "../chunk-TSLRTZYR.mjs";
|
|
23
|
+
import "../chunk-DKEJZ4FI.mjs";
|
|
24
|
+
import "../chunk-3LUO5ATM.mjs";
|
|
25
|
+
import "../chunk-YD25G5AD.mjs";
|
|
26
|
+
import "../chunk-GBHPJ7I7.mjs";
|
|
27
|
+
import "../chunk-KVV3JBSN.mjs";
|
|
28
|
+
import "../chunk-V4LHDNWJ.mjs";
|
|
29
|
+
import "../chunk-6E6XTHTG.mjs";
|
|
30
|
+
import "../chunk-GBI2U336.mjs";
|
|
31
|
+
import "../chunk-DXR6EEZH.mjs";
|
|
32
|
+
import "../chunk-C5I7KXHK.mjs";
|
|
32
33
|
import "../chunk-MTDFKNXX.mjs";
|
|
33
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-E3GRJXXJ.mjs";
|
|
34
35
|
import "../chunk-4UEJOM6W.mjs";
|
|
35
36
|
export {
|
|
36
37
|
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;
|
package/dist/daemon/lockfile.mjs
CHANGED