@openhoo/hoopilot 2.1.8 → 2.1.9
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/README.md +17 -3
- package/dist/{chunk-2GLKVNAA.js → chunk-FH6WSFOC.js} +29 -1
- package/dist/chunk-FH6WSFOC.js.map +1 -0
- package/dist/cli.js +254 -101
- package/dist/cli.js.map +1 -1
- package/dist/codexx.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +261 -100
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2GLKVNAA.js.map +0 -1
package/dist/codexx.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ type LogFields = Record<string, unknown>;
|
|
|
50
50
|
type LogFormat = "json" | "pretty";
|
|
51
51
|
type LogLevel = "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "silent";
|
|
52
52
|
type StreamingProxyMode = "auto" | "buffer" | "live";
|
|
53
|
+
type UsageAccountingMode = "basic" | "full" | "off";
|
|
53
54
|
interface LogMethod {
|
|
54
55
|
(message: string): void;
|
|
55
56
|
(fields: LogFields, message: string): void;
|
|
@@ -89,6 +90,7 @@ interface CopilotAccess {
|
|
|
89
90
|
token: string;
|
|
90
91
|
}
|
|
91
92
|
interface HoopilotServerOptions extends CopilotAuthOptions {
|
|
93
|
+
accessLog?: boolean;
|
|
92
94
|
allowUnauthenticated?: boolean;
|
|
93
95
|
apiKey?: string;
|
|
94
96
|
host?: string;
|
|
@@ -98,6 +100,7 @@ interface HoopilotServerOptions extends CopilotAuthOptions {
|
|
|
98
100
|
metrics?: MetricsRegistry;
|
|
99
101
|
port?: number;
|
|
100
102
|
streamingProxyMode?: StreamingProxyMode | (string & {});
|
|
103
|
+
usageAccountingMode?: UsageAccountingMode | (string & {});
|
|
101
104
|
}
|
|
102
105
|
interface StartedHoopilotServer {
|
|
103
106
|
server: Bun.Server<undefined>;
|