@boon4681/giri 0.0.2-alpha-7 → 0.0.2-alpha-8

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { M as Middleware, C as Context, H as HandlerResponse, V as ValidatedInput, S as Services, c as CookieJarFactory, d as StatusCode, R as ResponseFormat, T as TypedResponse, e as MiddlewareOptions, B as BodyContentType, a as GiriBodySchema, b as GiriInputSchema, i as inputSchemaBrand, f as RouteInput, g as HttpMethod, h as GiriConfig, j as GiriPaths, k as SecurityRequirement } from './types-NVvedshc.js';
2
- export { l as CookieJar, m as CookieOptions, n as CookieSink, G as GiriAdapter, o as GiriFetchHandler, p as GiriRequest, q as GiriRouteRegistration, r as GiriServeOptions, s as GiriServer, t as GiriServerInfo, u as Handle, I as Infer, v as InferStackVars, w as InputValidationResult, J as JsonSchema, x as MergeStack, y as MiddlewareOpenApi, z as MiddlewareVarsOf, N as Next, A as RouteInputOf, D as RouteOpenApi, E as RouteOpenApiConfig, F as ValidBody, K as ValidQuery, L as VarsOf } from './types-NVvedshc.js';
1
+ import { M as Middleware, C as Context, H as HandlerResponse, V as ValidatedInput, S as Services, c as CookieJarFactory, d as StatusCode, R as ResponseFormat, T as TypedResponse, e as MiddlewareOptions, B as BodyContentType, a as GiriBodySchema, b as GiriInputSchema, i as inputSchemaBrand, f as RouteInput, g as HttpMethod, h as GiriConfig, j as GiriPaths, k as SecurityRequirement } from './types-BvRph0mx.js';
2
+ export { l as CookieJar, m as CookieOptions, n as CookieSink, G as GiriAdapter, o as GiriFetchHandler, p as GiriRequest, q as GiriRouteRegistration, r as GiriServeOptions, s as GiriServer, t as GiriServerInfo, u as Handle, I as Infer, v as InferStackVars, w as InputValidationResult, J as JsonSchema, x as MergeStack, y as MiddlewareOpenApi, z as MiddlewareVarsOf, N as Next, A as RouteInputOf, D as RouteOpenApi, E as RouteOpenApiConfig, F as ValidBody, K as ValidQuery, L as VarsOf } from './types-BvRph0mx.js';
3
3
 
4
4
  interface CreateContextOptions<Params extends Record<string, string> = Record<string, string>, Input extends ValidatedInput = ValidatedInput> {
5
5
  request: Request;
@@ -80,6 +80,8 @@ declare function scanRoutes(routesDir: string): Promise<ScannedRoute[]>;
80
80
  interface BuildGiriAppOptions {
81
81
  cwd?: string;
82
82
  services?: Services;
83
+ /** Files that changed since last build — only these are purged from require.cache before loading. */
84
+ dirty?: Set<string>;
83
85
  }
84
86
  interface BuiltGiriApp<App> {
85
87
  app: App;
@@ -129,6 +131,14 @@ interface RouteSecurity {
129
131
  /** Scheme definitions to merge into `components.securitySchemes`. */
130
132
  securitySchemes: Record<string, unknown>;
131
133
  }
134
+ /** Resolved OpenAPI operation metadata (everything on `openapi` except `hidden`). */
135
+ interface RouteOpenApiMeta {
136
+ tags?: string[];
137
+ summary?: string;
138
+ description?: string;
139
+ deprecated?: boolean;
140
+ operationId?: string;
141
+ }
132
142
 
133
143
  /** The per-route metadata maps feeding `manifest.json` / `openapi.json`. */
134
144
  interface SyncData {
@@ -136,6 +146,7 @@ interface SyncData {
136
146
  inputsByFile: Map<string, RouteInputSchemas>;
137
147
  securityByFile: Map<string, RouteSecurity>;
138
148
  hiddenFiles: Set<string>;
149
+ openapiByFile: Map<string, RouteOpenApiMeta>;
139
150
  }
140
151
  interface SyncResult {
141
152
  paths: GiriPaths;