hypha-debugger 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.
@@ -0,0 +1,42 @@
1
+ export interface DebuggerConfig {
2
+ /** Hypha server URL. Required. */
3
+ server_url: string;
4
+ /** Workspace name. Auto-assigned if omitted. */
5
+ workspace?: string;
6
+ /** Authentication token. */
7
+ token?: string;
8
+ /** Service ID to register as. Default: "web-debugger" */
9
+ service_id?: string;
10
+ /** Service name. Default: "Web Debugger" */
11
+ service_name?: string;
12
+ /** Show floating debug UI overlay. Default: true */
13
+ show_ui?: boolean;
14
+ /** Service visibility. Default: "public" */
15
+ visibility?: "public" | "protected" | "unlisted";
16
+ }
17
+ export interface DebugSession {
18
+ /** Full service ID as registered with Hypha. */
19
+ service_id: string;
20
+ /** Workspace the debugger is connected to. */
21
+ workspace: string;
22
+ /** The Hypha server connection object. */
23
+ server: any;
24
+ /** HTTP base URL for calling service functions remotely. */
25
+ service_url: string;
26
+ /** JWT token for authenticating remote HTTP calls. */
27
+ token: string;
28
+ /** Disconnect and clean up. */
29
+ destroy: () => Promise<void>;
30
+ }
31
+ export declare class HyphaDebugger {
32
+ private config;
33
+ private overlay;
34
+ private server;
35
+ private serviceInfo;
36
+ constructor(config: DebuggerConfig);
37
+ start(): Promise<DebugSession>;
38
+ destroy(): Promise<void>;
39
+ private buildServiceUrl;
40
+ private getConnectToServer;
41
+ private summarizeArgs;
42
+ }