shokupan 0.11.0 → 0.13.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/README.md +47 -1815
- package/dist/{analyzer-CnKnQ5KV.js → analyzer-B0fMzeIo.js} +2 -2
- package/dist/{analyzer-CnKnQ5KV.js.map → analyzer-B0fMzeIo.js.map} +1 -1
- package/dist/{analyzer-BAhvpNY_.cjs → analyzer-BOtveWL-.cjs} +2 -2
- package/dist/{analyzer-BAhvpNY_.cjs.map → analyzer-BOtveWL-.cjs.map} +1 -1
- package/dist/{analyzer.impl-CfpMu4-g.cjs → analyzer.impl-CUDO6vpn.cjs} +82 -7
- package/dist/analyzer.impl-CUDO6vpn.cjs.map +1 -0
- package/dist/{analyzer.impl-DCiqlXI5.js → analyzer.impl-DmHe92Oi.js} +82 -7
- package/dist/analyzer.impl-DmHe92Oi.js.map +1 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/context.d.ts +40 -8
- package/dist/index.cjs +2876 -506
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +2911 -541
- package/dist/index.js.map +1 -1
- package/dist/plugins/application/api-explorer/static/theme.css +4 -0
- package/dist/plugins/application/auth.d.ts +5 -0
- package/dist/plugins/application/dashboard/fetch-interceptor.d.ts +12 -0
- package/dist/plugins/application/dashboard/plugin.d.ts +9 -0
- package/dist/plugins/application/dashboard/static/requests.js +537 -251
- package/dist/plugins/application/dashboard/static/tabulator.css +23 -3
- package/dist/plugins/application/dashboard/static/theme.css +4 -0
- package/dist/plugins/application/error-view/index.d.ts +14 -0
- package/dist/plugins/application/error-view/monkeypatch.d.ts +9 -0
- package/dist/plugins/application/error-view/util/source-reader.d.ts +10 -0
- package/dist/plugins/application/error-view/views/error.d.ts +2 -0
- package/dist/plugins/application/error-view/views/status.d.ts +2 -0
- package/dist/plugins/application/htmx/index.d.ts +39 -0
- package/dist/plugins/application/mcp-server/plugin.d.ts +38 -0
- package/dist/plugins/application/openapi/analyzer.impl.d.ts +4 -0
- package/dist/plugins/application/openapi/test-setup.d.ts +1 -0
- package/dist/plugins/application/opentelemetry/index.d.ts +33 -0
- package/dist/plugins/middleware/compression.d.ts +12 -2
- package/dist/plugins/middleware/rate-limit.d.ts +5 -0
- package/dist/plugins/middleware/session.d.ts +4 -4
- package/dist/plugins/resilience/decorators.d.ts +23 -0
- package/dist/plugins/resilience/factory.d.ts +5 -0
- package/dist/plugins/resilience/index.d.ts +2 -0
- package/dist/router.d.ts +25 -9
- package/dist/server.d.ts +22 -0
- package/dist/shokupan.d.ts +24 -1
- package/dist/util/adapter/bun.d.ts +8 -0
- package/dist/util/adapter/index.d.ts +4 -0
- package/dist/util/adapter/interface.d.ts +12 -0
- package/dist/util/adapter/node.d.ts +8 -0
- package/dist/util/adapter/wintercg.d.ts +5 -0
- package/dist/util/body-parser.d.ts +30 -0
- package/dist/util/decorators.d.ts +58 -3
- package/dist/util/di.d.ts +3 -8
- package/dist/util/env-loader.d.ts +99 -0
- package/dist/util/mcp-protocol.d.ts +52 -0
- package/dist/util/metadata.d.ts +18 -0
- package/dist/util/promise.d.ts +16 -0
- package/dist/util/request.d.ts +1 -0
- package/dist/util/symbol.d.ts +5 -0
- package/dist/util/types.d.ts +140 -3
- package/package.json +37 -10
- package/dist/analyzer.impl-CfpMu4-g.cjs.map +0 -1
- package/dist/analyzer.impl-DCiqlXI5.js.map +0 -1
- package/dist/plugins/application/dashboard/static/failures.js +0 -85
- package/dist/plugins/application/http-server.d.ts +0 -13
- package/dist/util/adapter/adapters.d.ts +0 -19
- package/dist/util/instrumentation.d.ts +0 -9
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
--text-primary: #F0F0F0;
|
|
26
26
|
--text-secondary: var(--palette-dark-accent);
|
|
27
|
+
--text-flavor: #ffcc80;
|
|
27
28
|
--text-muted: rgba(214, 211, 209, 0.5);
|
|
28
29
|
|
|
29
30
|
--primary: var(--palette-dark-primary);
|
|
@@ -34,12 +35,15 @@
|
|
|
34
35
|
--card-border: rgba(214, 211, 209, 0.2);
|
|
35
36
|
|
|
36
37
|
--table-header-border-color: rgba(214, 211, 209, 0.2);
|
|
38
|
+
--table-row-hover-color: #382818;
|
|
39
|
+
--table-row-selected-color: #48331e;
|
|
37
40
|
|
|
38
41
|
--link-color: var(--palette-dark-primary);
|
|
39
42
|
--link-hover: #FFCBA0;
|
|
40
43
|
|
|
41
44
|
--button-bg: var(--palette-dark-primary);
|
|
42
45
|
--button-text: #1A1614;
|
|
46
|
+
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
* {
|
|
@@ -79,12 +79,24 @@ export type OutboundRequestCallback = (log: OutboundRequestLog) => void;
|
|
|
79
79
|
* the original `fetch`. Proceed with caution.
|
|
80
80
|
*/
|
|
81
81
|
export declare class FetchInterceptor {
|
|
82
|
+
private static originalFetch;
|
|
83
|
+
private static originalHttpRequest;
|
|
84
|
+
private static originalHttpsRequest;
|
|
82
85
|
private originalFetch;
|
|
83
86
|
private originalHttpRequest;
|
|
84
87
|
private originalHttpsRequest;
|
|
85
88
|
private callbacks;
|
|
86
89
|
private isPatched;
|
|
87
90
|
constructor();
|
|
91
|
+
/**
|
|
92
|
+
* Statically restore the original network methods.
|
|
93
|
+
* Useful for cleaning up in tests.
|
|
94
|
+
*/
|
|
95
|
+
/**
|
|
96
|
+
* Statically restore the original network methods.
|
|
97
|
+
* Useful for cleaning up in tests.
|
|
98
|
+
*/
|
|
99
|
+
static restore(): void;
|
|
88
100
|
/**
|
|
89
101
|
* Patches the global `fetch` function to intercept requests.
|
|
90
102
|
* If already patched, this method does nothing.
|
|
@@ -26,6 +26,10 @@ export interface RequestLog {
|
|
|
26
26
|
export interface DashboardConfig {
|
|
27
27
|
getRequestHeaders?: () => HeadersInit;
|
|
28
28
|
path?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Glob patterns to ignore in the request list
|
|
31
|
+
*/
|
|
32
|
+
ignorePaths?: string[];
|
|
29
33
|
/**
|
|
30
34
|
* Retention time in milliseconds
|
|
31
35
|
*/
|
|
@@ -53,6 +57,11 @@ export interface DashboardConfig {
|
|
|
53
57
|
* @default 10_000
|
|
54
58
|
*/
|
|
55
59
|
updateInterval?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Maximum number of request logs to keep in memory.
|
|
62
|
+
* @default 1000
|
|
63
|
+
*/
|
|
64
|
+
maxLogEntries?: number;
|
|
56
65
|
}
|
|
57
66
|
export declare class Dashboard implements ShokupanPlugin {
|
|
58
67
|
private readonly dashboardConfig;
|