@solongate/proxy 0.59.5 → 0.61.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/dist/api-client/agents.d.ts +10 -0
- package/dist/api-client/audit.d.ts +22 -0
- package/dist/api-client/client.d.ts +39 -0
- package/dist/api-client/index.d.ts +18 -0
- package/dist/api-client/policies.d.ts +82 -0
- package/dist/api-client/settings.d.ts +22 -0
- package/dist/api-client/stats.d.ts +9 -0
- package/dist/api-client/types.d.ts +224 -0
- package/dist/commands/agents.d.ts +4 -0
- package/dist/commands/args.d.ts +15 -0
- package/dist/commands/audit.d.ts +1 -0
- package/dist/commands/dlp.d.ts +1 -0
- package/dist/commands/format.d.ts +22 -0
- package/dist/commands/index.d.ts +7 -0
- package/dist/commands/index.js +938 -0
- package/dist/commands/policy.d.ts +1 -0
- package/dist/commands/ratelimit.d.ts +1 -0
- package/dist/commands/stats.d.ts +1 -0
- package/dist/index.js +2156 -284
- package/dist/tui/App.d.ts +1 -0
- package/dist/tui/components.d.ts +40 -0
- package/dist/tui/hooks.d.ts +13 -0
- package/dist/tui/index.d.ts +1 -0
- package/dist/tui/index.js +999 -0
- package/dist/tui/panels/Agents.d.ts +3 -0
- package/dist/tui/panels/Audit.d.ts +4 -0
- package/dist/tui/panels/Dlp.d.ts +4 -0
- package/dist/tui/panels/Policies.d.ts +4 -0
- package/dist/tui/panels/RateLimit.d.ts +4 -0
- package/dist/tui/panels/Stats.d.ts +3 -0
- package/dist/tui/theme.d.ts +16 -0
- package/package.json +7 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function App(): JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export declare function Panel({ title, subtitle, children }: {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}): JSX.Element;
|
|
7
|
+
/** Wraps panel content with loading / error / empty handling. */
|
|
8
|
+
export declare function DataView({ loading, error, empty, emptyText, children, }: {
|
|
9
|
+
loading: boolean;
|
|
10
|
+
error: string | null;
|
|
11
|
+
empty?: boolean;
|
|
12
|
+
emptyText?: string;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}): JSX.Element;
|
|
15
|
+
export interface Column {
|
|
16
|
+
header: string;
|
|
17
|
+
width: number;
|
|
18
|
+
}
|
|
19
|
+
export interface Cell {
|
|
20
|
+
value: string;
|
|
21
|
+
color?: string;
|
|
22
|
+
dim?: boolean;
|
|
23
|
+
bold?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** Fixed-width aligned table. Cells are padded/truncated to their column width. */
|
|
26
|
+
export declare function Table({ columns, rows }: {
|
|
27
|
+
columns: Column[];
|
|
28
|
+
rows: Cell[][];
|
|
29
|
+
}): JSX.Element;
|
|
30
|
+
/** A labeled horizontal bar (unicode blocks) scaled to `max`. */
|
|
31
|
+
export declare function Bar({ label, value, max, width, color }: {
|
|
32
|
+
label: string;
|
|
33
|
+
value: number;
|
|
34
|
+
max: number;
|
|
35
|
+
width?: number;
|
|
36
|
+
color?: string;
|
|
37
|
+
}): JSX.Element;
|
|
38
|
+
export declare function KeyHints({ hints }: {
|
|
39
|
+
hints: [string, string][];
|
|
40
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface LoaderState<T> {
|
|
2
|
+
data: T | null;
|
|
3
|
+
error: string | null;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
reload: () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Load async data once (and on demand via reload()). Safe against unmount —
|
|
9
|
+
* a resolve after the component is gone is ignored.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useLoader<T>(fn: () => Promise<T>, deps?: unknown[]): LoaderState<T>;
|
|
12
|
+
/** Fire `reload` on a fixed interval (ms). Cleans up on unmount. */
|
|
13
|
+
export declare function usePoll(reload: () => void, intervalMs: number, enabled?: boolean): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function launchTui(): Promise<void>;
|