@kenhkl/agent-gate 0.7.6 → 0.8.1
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/dashboard.html +11 -2
- package/dist/shared/storage/db.d.ts +6 -1
- package/dist/shared/storage/db.js +104 -17
- package/dist/v1/cli.js +879 -49
- package/dist/v1/server.d.ts +8 -2
- package/dist/v1/server.js +735 -40
- package/dist/v3/cli.js +983 -96
- package/package.json +1 -1
package/dist/v1/server.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/** 中间件算出的调用主体,供路由做身份绑定。 */
|
|
4
|
+
type AppEnv = {
|
|
5
|
+
Variables: {
|
|
6
|
+
principal: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare function createApp(): Hono<AppEnv>;
|
|
4
10
|
|
|
5
|
-
export { createApp };
|
|
11
|
+
export { type AppEnv, createApp };
|