hypha-debugger 0.1.1 → 0.1.3

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.
@@ -11,8 +11,19 @@ export interface DebuggerConfig {
11
11
  service_name?: string;
12
12
  /** Show floating debug UI overlay. Default: true */
13
13
  show_ui?: boolean;
14
- /** Service visibility. Default: "public" */
14
+ /** Service visibility. Overridden by require_token when not set explicitly. */
15
15
  visibility?: "public" | "protected" | "unlisted";
16
+ /**
17
+ * Whether remote callers must supply a JWT token. Default: true.
18
+ *
19
+ * true → visibility "protected", a 24-hour token is generated and shown
20
+ * in the instruction block. The URL alone is not enough.
21
+ *
22
+ * false → visibility "unlisted", a random 16-char hex suffix is appended
23
+ * to the service ID so the URL itself is unguessable. No token is
24
+ * needed — just keep the URL secret.
25
+ */
26
+ require_token?: boolean;
16
27
  }
17
28
  export interface DebugSession {
18
29
  /** Full service ID as registered with Hypha. */
@@ -31,6 +42,7 @@ export interface DebugSession {
31
42
  export declare class HyphaDebugger {
32
43
  private config;
33
44
  private overlay;
45
+ private cursor;
34
46
  private server;
35
47
  private serviceInfo;
36
48
  constructor(config: DebuggerConfig);
@@ -53,7 +65,15 @@ export declare class HyphaDebugger {
53
65
  private createGetSkillMd;
54
66
  /** Build the instruction block for the overlay panel. */
55
67
  private buildInstructionBlock;
56
- /** Wrap a service function with logging and kwargs-to-positional-args support. */
68
+ /**
69
+ * Wrap a service function with logging and correct parameter names.
70
+ *
71
+ * Uses new Function() to create a wrapper whose parameter names match
72
+ * the __schema__ property names. This is critical for production builds
73
+ * where Babel/Terser minifies parameter names — hypha-rpc's
74
+ * getParamNames() parses Function.toString() to map kwargs to positional
75
+ * args, so the wrapper must have the real (unminified) parameter names.
76
+ */
57
77
  private wrapFn;
58
78
  private summarizeArgs;
59
79
  }