forkit-connect 0.1.0
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/QUICKSTART.md +55 -0
- package/README.md +96 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.js +4724 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +21 -0
- package/dist/launcher.d.ts +33 -0
- package/dist/launcher.js +9344 -0
- package/dist/ps-list-loader.d.ts +5 -0
- package/dist/ps-list-loader.js +20 -0
- package/dist/v1/agent-observation.d.ts +42 -0
- package/dist/v1/agent-observation.js +499 -0
- package/dist/v1/api.d.ts +276 -0
- package/dist/v1/api.js +390 -0
- package/dist/v1/credential-store.d.ts +92 -0
- package/dist/v1/credential-store.js +797 -0
- package/dist/v1/currency.d.ts +41 -0
- package/dist/v1/currency.js +127 -0
- package/dist/v1/daemon.d.ts +50 -0
- package/dist/v1/daemon.js +265 -0
- package/dist/v1/discovery.d.ts +61 -0
- package/dist/v1/discovery.js +168 -0
- package/dist/v1/filesystem-models.d.ts +11 -0
- package/dist/v1/filesystem-models.js +261 -0
- package/dist/v1/heartbeat.d.ts +45 -0
- package/dist/v1/heartbeat.js +463 -0
- package/dist/v1/lifecycle-monitor.d.ts +78 -0
- package/dist/v1/lifecycle-monitor.js +512 -0
- package/dist/v1/lmstudio.d.ts +11 -0
- package/dist/v1/lmstudio.js +148 -0
- package/dist/v1/ollama.d.ts +19 -0
- package/dist/v1/ollama.js +164 -0
- package/dist/v1/openai-compatible.d.ts +12 -0
- package/dist/v1/openai-compatible.js +124 -0
- package/dist/v1/process-scout.d.ts +50 -0
- package/dist/v1/process-scout.js +715 -0
- package/dist/v1/providers.d.ts +50 -0
- package/dist/v1/providers.js +106 -0
- package/dist/v1/service.d.ts +680 -0
- package/dist/v1/service.js +8286 -0
- package/dist/v1/state.d.ts +87 -0
- package/dist/v1/state.js +1318 -0
- package/dist/v1/test-credential-backend.d.ts +19 -0
- package/dist/v1/test-credential-backend.js +49 -0
- package/dist/v1/types.d.ts +873 -0
- package/dist/v1/types.js +3 -0
- package/dist/v1/update.d.ts +38 -0
- package/dist/v1/update.js +184 -0
- package/dist/v1/vitality-pulse.d.ts +36 -0
- package/dist/v1/vitality-pulse.js +512 -0
- package/package.json +53 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export type SecureCredentialErrorCode = 'secure_storage_unavailable' | 'secure_storage_read_failed' | 'secure_storage_write_failed' | 'secure_storage_delete_failed' | 'legacy_plaintext_migration_failed';
|
|
2
|
+
export interface SecureCredentialBackendStatus {
|
|
3
|
+
backend: string;
|
|
4
|
+
available: boolean;
|
|
5
|
+
detail: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SecureCredentialBackend {
|
|
8
|
+
readonly backend: string;
|
|
9
|
+
read(account: string): string | null;
|
|
10
|
+
write(account: string, value: string): void;
|
|
11
|
+
delete(account: string): void;
|
|
12
|
+
getStatus(): SecureCredentialBackendStatus;
|
|
13
|
+
}
|
|
14
|
+
export declare class ConnectCredentialStoreError extends Error {
|
|
15
|
+
readonly code: SecureCredentialErrorCode;
|
|
16
|
+
constructor(code: SecureCredentialErrorCode, message: string);
|
|
17
|
+
}
|
|
18
|
+
export interface ConnectCredentialStoreStatus {
|
|
19
|
+
backend: string;
|
|
20
|
+
available: boolean;
|
|
21
|
+
detail: string;
|
|
22
|
+
legacyPlaintextFilePresent: boolean;
|
|
23
|
+
}
|
|
24
|
+
type WindowsDpapiOperation = 'status' | 'read' | 'write' | 'delete';
|
|
25
|
+
interface WindowsDpapiCommandOptions {
|
|
26
|
+
credentialPath: string;
|
|
27
|
+
entropy: string;
|
|
28
|
+
input?: string;
|
|
29
|
+
}
|
|
30
|
+
interface WindowsDpapiCommandResult {
|
|
31
|
+
status: number | null;
|
|
32
|
+
stdout: string;
|
|
33
|
+
stderr: string;
|
|
34
|
+
error: NodeJS.ErrnoException | null;
|
|
35
|
+
}
|
|
36
|
+
type WindowsDpapiRunner = (operation: WindowsDpapiOperation, options: WindowsDpapiCommandOptions) => WindowsDpapiCommandResult;
|
|
37
|
+
export declare class WindowsDpapiCredentialBackend implements SecureCredentialBackend {
|
|
38
|
+
private readonly serviceName;
|
|
39
|
+
private readonly stateDir;
|
|
40
|
+
private readonly runner;
|
|
41
|
+
readonly backend = "windows-dpapi";
|
|
42
|
+
constructor(serviceName: string, stateDir: string, runner?: WindowsDpapiRunner);
|
|
43
|
+
private credentialPath;
|
|
44
|
+
private entropy;
|
|
45
|
+
read(account: string): string | null;
|
|
46
|
+
write(account: string, value: string): void;
|
|
47
|
+
delete(account: string): void;
|
|
48
|
+
getStatus(): SecureCredentialBackendStatus;
|
|
49
|
+
}
|
|
50
|
+
export declare class ConnectCredentialStore {
|
|
51
|
+
private readonly stateDir;
|
|
52
|
+
private readonly sessionAccount;
|
|
53
|
+
private readonly credentialFile;
|
|
54
|
+
private readonly backend;
|
|
55
|
+
private readonly legacyBackend;
|
|
56
|
+
private readonly allowPlaintextFallback;
|
|
57
|
+
private readonly cache;
|
|
58
|
+
private lastBackendError;
|
|
59
|
+
constructor(stateDir: string, backend?: SecureCredentialBackend, legacyBackend?: SecureCredentialBackend | null);
|
|
60
|
+
getCredentialFilePath(): string;
|
|
61
|
+
getStatus(): ConnectCredentialStoreStatus;
|
|
62
|
+
migrateLegacyPlaintextFile(): void;
|
|
63
|
+
getSessionRef(): string | null;
|
|
64
|
+
setSessionRef(sessionRef: string | null): {
|
|
65
|
+
credentialRef: string | null;
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
};
|
|
68
|
+
clearSessionRef(): {
|
|
69
|
+
credentialRef: string | null;
|
|
70
|
+
updatedAt: string;
|
|
71
|
+
};
|
|
72
|
+
getRuntimeSignalApiKey(gaid: string | null | undefined): string | null;
|
|
73
|
+
setRuntimeSignalApiKey(gaid: string | null | undefined, apiKey: string | null): {
|
|
74
|
+
credentialRef: string | null;
|
|
75
|
+
updatedAt: string;
|
|
76
|
+
};
|
|
77
|
+
clearRuntimeSignalApiKey(gaid: string | null | undefined): {
|
|
78
|
+
credentialRef: string | null;
|
|
79
|
+
updatedAt: string;
|
|
80
|
+
};
|
|
81
|
+
private runtimeSignalAccount;
|
|
82
|
+
private readAccount;
|
|
83
|
+
private writeAccount;
|
|
84
|
+
private deleteAccount;
|
|
85
|
+
private writeLegacyAccount;
|
|
86
|
+
private readLegacyAccount;
|
|
87
|
+
private deleteLegacyAccount;
|
|
88
|
+
private readLegacyFile;
|
|
89
|
+
private writeLegacyFile;
|
|
90
|
+
}
|
|
91
|
+
export {};
|
|
92
|
+
//# sourceMappingURL=credential-store.d.ts.map
|