@forinda/kickjs 5.1.0 → 5.2.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.
Files changed (90) hide show
  1. package/dist/{adapter-DOQCv8Sq.d.mts → adapter-C1w_xt08.d.mts} +2 -2
  2. package/dist/{adapter-DOQCv8Sq.d.mts.map → adapter-C1w_xt08.d.mts.map} +1 -1
  3. package/dist/{app-module-Caxqht0i.d.mts → app-module-D6zL_V5S.d.mts} +2 -2
  4. package/dist/{app-module-Caxqht0i.d.mts.map → app-module-D6zL_V5S.d.mts.map} +1 -1
  5. package/dist/{application-BCW1WujM.d.mts → application-BTRI4aBd.d.mts} +5 -5
  6. package/dist/{application-BCW1WujM.d.mts.map → application-BTRI4aBd.d.mts.map} +1 -1
  7. package/dist/{application-C23HpKl_.mjs → application-Bw87drVl.mjs} +7 -7
  8. package/dist/application-Bw87drVl.mjs.map +1 -0
  9. package/dist/{bootstrap-DCqeCxbi.d.mts → bootstrap-B4YrBipl.d.mts} +2 -2
  10. package/dist/{bootstrap-DCqeCxbi.d.mts.map → bootstrap-B4YrBipl.d.mts.map} +1 -1
  11. package/dist/{bootstrap-C3-hsRJe.mjs → bootstrap-CsQ7LE-W.mjs} +6 -6
  12. package/dist/{bootstrap-C3-hsRJe.mjs.map → bootstrap-CsQ7LE-W.mjs.map} +1 -1
  13. package/dist/config/index.mjs +3 -3
  14. package/dist/{config-Bz2cC69o.mjs → config-DKRN5fqC.mjs} +3 -3
  15. package/dist/{config-Bz2cC69o.mjs.map → config-DKRN5fqC.mjs.map} +1 -1
  16. package/dist/{container-CNp-BGbb.mjs → container-C0FlgLNH.mjs} +76 -15
  17. package/dist/container-C0FlgLNH.mjs.map +1 -0
  18. package/dist/{context-l7VEO8V8.mjs → context-CDFiXWcV.mjs} +3 -3
  19. package/dist/{context-l7VEO8V8.mjs.map → context-CDFiXWcV.mjs.map} +1 -1
  20. package/dist/{context-decorator-uq5oeiax.d.mts → context-decorator-Bca_BoRK.d.mts} +139 -14
  21. package/dist/context-decorator-Bca_BoRK.d.mts.map +1 -0
  22. package/dist/core/adapter.d.mts +1 -1
  23. package/dist/core/adapter.mjs +1 -1
  24. package/dist/core/app-module.d.mts +1 -1
  25. package/dist/core/app-module.mjs +1 -1
  26. package/dist/core/cache.mjs +1 -1
  27. package/dist/core/container.mjs +2 -2
  28. package/dist/core/cron.mjs +2 -2
  29. package/dist/core/decorators.mjs +3 -3
  30. package/dist/core/decorators.mjs.map +1 -1
  31. package/dist/core/errors.mjs +1 -1
  32. package/dist/core/interfaces.mjs +1 -1
  33. package/dist/core/logger.mjs +5 -3
  34. package/dist/core/logger.mjs.map +1 -1
  35. package/dist/core/path.mjs +1 -1
  36. package/dist/core/plugin.d.mts +1 -1
  37. package/dist/core/plugin.mjs +1 -1
  38. package/dist/core/reactivity.mjs +1 -1
  39. package/dist/{core-DC2EFUnO.mjs → core-K0J8AH_4.mjs} +110 -22
  40. package/dist/core-K0J8AH_4.mjs.map +1 -0
  41. package/dist/decorators-CRmHuzxz.d.mts.map +1 -1
  42. package/dist/{env-9ANTPRLP.mjs → env-CDMCT10_.mjs} +3 -3
  43. package/dist/{env-9ANTPRLP.mjs.map → env-CDMCT10_.mjs.map} +1 -1
  44. package/dist/http/application.d.mts +1 -1
  45. package/dist/http/application.mjs +2 -2
  46. package/dist/http/bootstrap.d.mts +1 -1
  47. package/dist/http/bootstrap.mjs +2 -2
  48. package/dist/http/context.mjs +2 -2
  49. package/dist/http/middleware/cors.mjs +1 -1
  50. package/dist/http/middleware/csrf.mjs +1 -1
  51. package/dist/http/middleware/error-handler.mjs +2 -2
  52. package/dist/http/middleware/helmet.mjs +1 -1
  53. package/dist/http/middleware/rate-limit.mjs +1 -1
  54. package/dist/http/middleware/request-id.mjs +1 -1
  55. package/dist/http/middleware/request-logger.mjs +2 -2
  56. package/dist/http/middleware/session.mjs +1 -1
  57. package/dist/http/middleware/spa.d.mts +1 -1
  58. package/dist/http/middleware/spa.mjs +3 -3
  59. package/dist/http/middleware/upload.mjs +1 -1
  60. package/dist/http/middleware/validate.mjs +2 -2
  61. package/dist/http/middleware/views.d.mts +1 -1
  62. package/dist/http/middleware/views.mjs +2 -2
  63. package/dist/http/query/index.mjs +2 -2
  64. package/dist/http/router-builder.d.mts +1 -1
  65. package/dist/http/router-builder.mjs +5 -5
  66. package/dist/{index-ukXMopUO.d.mts → index-DvZfBNIf.d.mts} +58 -7
  67. package/dist/index-DvZfBNIf.d.mts.map +1 -0
  68. package/dist/index.d.mts +11 -11
  69. package/dist/index.mjs +30 -13
  70. package/dist/index.mjs.map +1 -1
  71. package/dist/logger-CLVRZf2N.d.mts.map +1 -1
  72. package/dist/{metadata-DyFSoTPD.mjs → metadata-DPLdmj1w.mjs} +2 -2
  73. package/dist/{metadata-DyFSoTPD.mjs.map → metadata-DPLdmj1w.mjs.map} +1 -1
  74. package/dist/{plugin-DTKuhBp2.d.mts → plugin-DF8Xfv9Z.d.mts} +4 -4
  75. package/dist/{plugin-DTKuhBp2.d.mts.map → plugin-DF8Xfv9Z.d.mts.map} +1 -1
  76. package/dist/{query-CaS4hGJ1.mjs → query-CD0AMqxx.mjs} +2 -2
  77. package/dist/{query-CaS4hGJ1.mjs.map → query-CD0AMqxx.mjs.map} +1 -1
  78. package/dist/{router-builder-CoALtdvm.d.mts → router-builder-C7sXk_FG.d.mts} +2 -2
  79. package/dist/{router-builder-CoALtdvm.d.mts.map → router-builder-C7sXk_FG.d.mts.map} +1 -1
  80. package/dist/{spa-BE7T3Wpt.d.mts → spa-e4FIS2RB.d.mts} +2 -2
  81. package/dist/{spa-BE7T3Wpt.d.mts.map → spa-e4FIS2RB.d.mts.map} +1 -1
  82. package/dist/{views-zmtIPd6N.d.mts → views-DkNp9JJs.d.mts} +4 -4
  83. package/dist/views-DkNp9JJs.d.mts.map +1 -0
  84. package/package.json +1 -1
  85. package/dist/application-C23HpKl_.mjs.map +0 -1
  86. package/dist/container-CNp-BGbb.mjs.map +0 -1
  87. package/dist/context-decorator-uq5oeiax.d.mts.map +0 -1
  88. package/dist/core-DC2EFUnO.mjs.map +0 -1
  89. package/dist/index-ukXMopUO.d.mts.map +0 -1
  90. package/dist/views-zmtIPd6N.d.mts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"decorators-CRmHuzxz.d.mts","names":[],"sources":["../src/core/assets.ts","../src/core/decorators.ts"],"mappings":";;;;cA4Ba,sBAAA;;;;;;;;UAmBI,UAAA;;;;AAuCjB;;;cA/Ba,MAAA,EAAQ,cAAA,CAAe,UAAA;AAAA,cAEvB,iBAAA,SAA0B,KAAA;EAAA,SAC5B,SAAA;EAAA,SACA,GAAA;cACG,SAAA,UAAmB,GAAA;AAAA;AAAA,iBAajB,YAAA,CAAa,SAAA,UAAmB,GAAA;AAgThD;AAAA,iBAnSgB,eAAA,CAAA;;;;;;;ACRhB;;;;cDyRa,MAAA,EAAQ,UAAA;;;;;ACjRrB;;;;;;;;;AAQA;;;iBD2RgB,SAAA,CAAA,GAAa,UAAA;;;;iBC3Sb,UAAA,CAAW,OAAA,GAAU,cAAA,GAAiB,cAAA;ADlDtD;AAAA,iBC0DgB,OAAA,CAAQ,OAAA,GAAU,cAAA,GAAiB,cAAA;;iBAQnC,SAAA,CAAU,OAAA,GAAU,cAAA,GAAiB,cAAA;;iBAQrC,UAAA,CAAW,OAAA,GAAU,cAAA,GAAiB,cAAA;;;;;AD/CtD;;;;;iBC+DgB,UAAA,CAAA,GAAc,cAAA;;iBAUd,aAAA,CAAA,GAAiB,eAAA;;iBASjB,SAAA,CAAU,KAAA,SAAc,iBAAA;;;;;;;;ADhExC;;;;;AAaA;;;;;AAiRA;;;;;AAkBA;;;;;;;iBC7MgB,MAAA,iBAAuB,cAAA,UAAA,CAAyB,KAAA,EAAO,CAAA,GAAI,kBAAA;AAAA,iBAC3D,MAAA,CAAO,KAAA,YAAiB,kBAAA;;;;;;;;;AAvFxC;;;QAyGQ,MAAA;EAAA,UAEI,OAAA;AAAA;;KAIA,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;;;;;;;;;;;;;AAlHH;;;;;AAAgD;;iBAmJhC,cAAA,CACd,MAAA,EAAQ,oBAAA,GAAuB,0BAAA,GAC9B,eAAA;;;;;;;;;;;;;;AA1GH;;KAkIY,iBAAA,gBAAiC,GAAA,EAAK,IAAA,EAAM,IAAA,wBAA4B,OAAA;;iBAGpE,UAAA,CAAA,GAAc,QAAA,EAAU,iBAAA,KAAsB,cAAA,GAAiB,eAAA;;;;;KAqBnE,cAAA,gBAA8B,QAAA,UAAkB,QAAA;;;;;UAM3C,iBAAA;EAxJA;EA0Jf,OAAA;;;;;;EAMA,YAAA,GAAe,cAAA;EA1Jb;EA4JF,aAAA,GAAgB,MAAA;AAAA;AAAA,UAGD,gBAAA,SAAyB,iBAAA;EACxC,IAAA;EA1JM;EA4JN,SAAA;EA3I4C;EA6I5C,QAAA;AAAA;;iBAIc,UAAA,CAAW,MAAA,EAAQ,gBAAA,GAAmB,eAAA;;iBAStC,OAAA,CAAQ,MAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
- import { p as __require, t as Container } from "./container-CNp-BGbb.mjs";
11
+ import { h as __require, t as Container } from "./container-C0FlgLNH.mjs";
12
12
  import { z } from "zod";
13
13
  //#region src/config/env.ts
14
14
  /**
@@ -134,4 +134,4 @@ function resetEnvCache() {
134
134
  //#endregion
135
135
  export { reloadEnv as a, loadEnv as i, defineEnv as n, resetEnvCache as o, getEnv as r, baseEnvSchema as t };
136
136
 
137
- //# sourceMappingURL=env-9ANTPRLP.mjs.map
137
+ //# sourceMappingURL=env-CDMCT10_.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"env-9ANTPRLP.mjs","names":[],"sources":["../src/config/env.ts"],"sourcesContent":["import { z } from 'zod'\nimport { Container } from '../core/container'\nimport type { EnvKey } from '../core/decorators'\n\n/**\n * Lazily load `.env` via dotenv if it is installed in the consumer app.\n * `dotenv` is an **optional peer dependency** of `@forinda/kickjs` —\n * apps that want `.env` file support install it themselves (the CLI\n * generators add it to every scaffolded `package.json`). Apps that\n * inject env via the shell, Docker, or a secret manager can skip it\n * entirely and `process.env` is read as-is.\n *\n * We call `dotenv.config()` directly rather than `require('dotenv/config')`\n * so that a re-evaluation of this module (e.g. Vite SSR full-reload after\n * editing `.env`) can re-read the file. `dotenv/config` is a side-effect\n * shim that CJS caches aggressively, so the second `require` is a no-op\n * and new keys never reach `process.env` — the root cause of the\n * \"DATABASE_URL undefined until restart\" bug on Windows dev.\n */\nfunction tryLoadDotenv(): void {\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const dotenv = require('dotenv')\n // `quiet: true` suppresses dotenv 17's tip banner that goes to stdout.\n // Required for CLI tools whose stdout is parsed by callers (`kick explain\n // --json`, etc) — the banner would otherwise corrupt the JSON output.\n dotenv.config({ override: false, quiet: true })\n } catch {\n // dotenv not installed — fall through, env vars must come from\n // the environment directly. This is a valid deployment style.\n }\n}\ntryLoadDotenv()\n\n/**\n * Base environment schema with common server variables.\n * Users extend this with their own application-specific vars.\n */\nexport const baseEnvSchema = z.object({\n // Server\n PORT: z.coerce.number().default(3000),\n NODE_ENV: z.enum(['development', 'production', 'test']).default('development'),\n LOG_LEVEL: z.string().default('info'),\n})\n\n/** Cached env config to avoid re-parsing — keyed by schema reference */\nlet cachedEnv: any = null\nlet cachedSchema: any = null\n\n/**\n * Define a custom env schema. The base schema (`PORT`, `NODE_ENV`,\n * `LOG_LEVEL`) is always merged in, so users never need to remember to\n * extend it themselves — both styles below produce the same result and\n * both surface the base keys in `KickEnv`.\n *\n * Returns a Zod schema that validates `process.env`.\n *\n * @example\n * ```ts\n * // Style A — return a fresh object; base fields are merged automatically\n * export default defineEnv(() =>\n * z.object({\n * DATABASE_URL: z.string().url(),\n * JWT_SECRET: z.string().min(32),\n * })\n * )\n *\n * // Style B — explicitly extend `base` (still works, identical result)\n * export default defineEnv((base) =>\n * base.extend({\n * DATABASE_URL: z.string().url(),\n * })\n * )\n * ```\n *\n * User-defined keys override base keys when they collide, so a project\n * can re-type `PORT` or tighten `NODE_ENV` without losing the rest of\n * the base shape.\n */\nexport function defineEnv<T extends z.ZodRawShape>(\n extend: (base: typeof baseEnvSchema) => z.ZodObject<T>,\n): z.ZodObject<typeof baseEnvSchema.shape & T> {\n const userSchema = extend(baseEnvSchema)\n // Always merge the base in. `extend` lets the user's shape override\n // any colliding base keys, which preserves the escape hatch for\n // projects that want to re-type `PORT` etc.\n return baseEnvSchema.extend(userSchema.shape) as z.ZodObject<typeof baseEnvSchema.shape & T>\n}\n\n/**\n * Parse and validate `process.env` against a Zod schema. Caches result per schema.\n *\n * **No-arg behaviour is sticky.** The first time `loadEnv(schema)` is called\n * with an extended schema, the cache holds that schema. Subsequent\n * `loadEnv()` calls (no arg) will reuse the cached extended schema rather\n * than falling back to `baseEnvSchema`.\n *\n * Stickiness matters because `ConfigService` and the `@Value()` decorator\n * both read through the no-arg form internally. Without it, resolving\n * either of them after a `loadEnv(extendedSchema)` call would silently\n * downgrade the env to the base shape and drop every user-defined key.\n *\n * To force a re-parse with a different schema, pass the new schema explicitly.\n * To start fresh, call `resetEnvCache()` (full reset) or `reloadEnv()`\n * (re-parse against the same schema after a `.env` file change).\n *\n * **Typing:**\n * - With an explicit schema → returns `z.infer<typeof schema>`.\n * - With no schema and `KickEnv` populated by typegen → returns\n * `KickEnv` (the project-wide typed env shape).\n * - With no schema and `KickEnv` empty → returns the base `Env`.\n */\nexport function loadEnv<T extends z.ZodObject<any>>(schema: T): z.infer<T>\nexport function loadEnv(): [EnvKey] extends [never] ? Env : KickEnv\nexport function loadEnv<T extends z.ZodObject<any>>(schema?: T): any {\n // Sticky: when called with no arg, prefer the most recently cached\n // schema over re-parsing with the base schema.\n const s = schema ?? cachedSchema ?? baseEnvSchema\n // Re-parse if schema changed or no cache yet\n if (cachedEnv && cachedSchema === s) return cachedEnv\n cachedSchema = s\n cachedEnv = s.parse(process.env)\n\n // Register env resolver so @Value() reads validated values\n Container._envResolver = (key: string) => cachedEnv?.[key]\n\n return cachedEnv\n}\n\n/**\n * Get a single typed environment variable value.\n *\n * Three forms:\n * - **No-arg, KickEnv populated** (`kick typegen` has run) → key is\n * constrained to known `KickEnv` keys; return type inferred from\n * the schema.\n * - **With explicit schema** → key constrained to that schema's keys;\n * return type is `z.infer<typeof schema>[K]`.\n * - **No-arg, KickEnv empty** → loose `string` key, `any` return.\n *\n * @example\n * ```ts\n * // After `kick typegen` (KickEnv populated):\n * const port = getEnv('PORT') // typed as number\n * const url = getEnv('DATABASE_URL') // typed as string\n *\n * // With an inline schema (legacy / one-off):\n * const dbUrl = getEnv('DATABASE_URL', envSchema)\n * ```\n */\nexport function getEnv<K extends EnvKey>(key: K): KickEnv[K]\nexport function getEnv<T extends z.ZodObject<any>, K extends string & keyof z.infer<T>>(\n key: K,\n schema: T,\n): z.infer<T>[K]\nexport function getEnv(key: string, schema?: z.ZodObject<any>): any {\n const env = schema ? loadEnv(schema) : (loadEnv() as Record<string, any>)\n return env[key]\n}\n\n/**\n * Reload env from `process.env`. Re-reads `.env` via dotenv (if\n * installed), then re-parses the result against the **same** schema\n * the project registered at startup. Called during HMR rebuild and by\n * `envWatchPlugin` to pick up `.env` file changes mid-session.\n *\n * Crucially, this preserves the registered schema. Wiping it would\n * silently downgrade `ConfigService` and `@Value()` back to the base\n * schema on the next read, so every user-defined key would start\n * resolving as `undefined` after the first `.env` save — which was the\n * original \"config disappears in dev\" bug.\n *\n * If you need to fully forget the schema (e.g. tests that swap schemas\n * between cases), call {@link resetEnvCache} instead.\n */\nexport function reloadEnv(): void {\n // Re-read .env file into process.env if dotenv is installed.\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n require('dotenv').config({ override: true, quiet: true })\n } catch {\n // dotenv not installed — nothing to reload, env comes from the\n // environment directly.\n }\n\n // Drop the parsed snapshot but keep the schema. Re-parse eagerly so\n // existing consumers (including ConfigService getters and @Value\n // resolvers that may already hold references to the env state) see\n // the new values on their very next read instead of having to\n // re-trigger any cache-population step.\n cachedEnv = null\n if (cachedSchema) {\n loadEnv(cachedSchema)\n }\n}\n\n/**\n * Fully reset the env cache, including the registered schema. Use this\n * in tests that need to swap schemas between cases — `reloadEnv()`\n * deliberately preserves the schema to avoid the \"user keys vanish on\n * `.env` reload\" footgun.\n */\nexport function resetEnvCache(): void {\n cachedEnv = null\n cachedSchema = null\n}\n\nexport type Env = z.infer<typeof baseEnvSchema>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,SAAS,gBAAsB;AAC7B,KAAI;AAMF,YAJuB,SAAS,CAIzB,OAAO;GAAE,UAAU;GAAO,OAAO;GAAM,CAAC;SACzC;;AAKV,eAAe;;;;;AAMf,MAAa,gBAAgB,EAAE,OAAO;CAEpC,MAAM,EAAE,OAAO,QAAQ,CAAC,QAAQ,IAAK;CACrC,UAAU,EAAE,KAAK;EAAC;EAAe;EAAc;EAAO,CAAC,CAAC,QAAQ,cAAc;CAC9E,WAAW,EAAE,QAAQ,CAAC,QAAQ,OAAO;CACtC,CAAC;;AAGF,IAAI,YAAiB;AACrB,IAAI,eAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCxB,SAAgB,UACd,QAC6C;CAC7C,MAAM,aAAa,OAAO,cAAc;AAIxC,QAAO,cAAc,OAAO,WAAW,MAAM;;AA4B/C,SAAgB,QAAoC,QAAiB;CAGnE,MAAM,IAAI,UAAU,gBAAgB;AAEpC,KAAI,aAAa,iBAAiB,EAAG,QAAO;AAC5C,gBAAe;AACf,aAAY,EAAE,MAAM,QAAQ,IAAI;AAGhC,WAAU,gBAAgB,QAAgB,YAAY;AAEtD,QAAO;;AA6BT,SAAgB,OAAO,KAAa,QAAgC;AAElE,SADY,SAAS,QAAQ,OAAO,GAAI,SAAS,EACtC;;;;;;;;;;;;;;;;;AAkBb,SAAgB,YAAkB;AAEhC,KAAI;AAEF,YAAQ,SAAS,CAAC,OAAO;GAAE,UAAU;GAAM,OAAO;GAAM,CAAC;SACnD;AAUR,aAAY;AACZ,KAAI,aACF,SAAQ,aAAa;;;;;;;;AAUzB,SAAgB,gBAAsB;AACpC,aAAY;AACZ,gBAAe"}
1
+ {"version":3,"file":"env-CDMCT10_.mjs","names":[],"sources":["../src/config/env.ts"],"sourcesContent":["import { z } from 'zod'\nimport { Container } from '../core/container'\nimport type { EnvKey } from '../core/decorators'\n\n/**\n * Lazily load `.env` via dotenv if it is installed in the consumer app.\n * `dotenv` is an **optional peer dependency** of `@forinda/kickjs` —\n * apps that want `.env` file support install it themselves (the CLI\n * generators add it to every scaffolded `package.json`). Apps that\n * inject env via the shell, Docker, or a secret manager can skip it\n * entirely and `process.env` is read as-is.\n *\n * We call `dotenv.config()` directly rather than `require('dotenv/config')`\n * so that a re-evaluation of this module (e.g. Vite SSR full-reload after\n * editing `.env`) can re-read the file. `dotenv/config` is a side-effect\n * shim that CJS caches aggressively, so the second `require` is a no-op\n * and new keys never reach `process.env` — the root cause of the\n * \"DATABASE_URL undefined until restart\" bug on Windows dev.\n */\nfunction tryLoadDotenv(): void {\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const dotenv = require('dotenv')\n // `quiet: true` suppresses dotenv 17's tip banner that goes to stdout.\n // Required for CLI tools whose stdout is parsed by callers (`kick explain\n // --json`, etc) — the banner would otherwise corrupt the JSON output.\n dotenv.config({ override: false, quiet: true })\n } catch {\n // dotenv not installed — fall through, env vars must come from\n // the environment directly. This is a valid deployment style.\n }\n}\ntryLoadDotenv()\n\n/**\n * Base environment schema with common server variables.\n * Users extend this with their own application-specific vars.\n */\nexport const baseEnvSchema = z.object({\n // Server\n PORT: z.coerce.number().default(3000),\n NODE_ENV: z.enum(['development', 'production', 'test']).default('development'),\n LOG_LEVEL: z.string().default('info'),\n})\n\n/** Cached env config to avoid re-parsing — keyed by schema reference */\nlet cachedEnv: any = null\nlet cachedSchema: any = null\n\n/**\n * Define a custom env schema. The base schema (`PORT`, `NODE_ENV`,\n * `LOG_LEVEL`) is always merged in, so users never need to remember to\n * extend it themselves — both styles below produce the same result and\n * both surface the base keys in `KickEnv`.\n *\n * Returns a Zod schema that validates `process.env`.\n *\n * @example\n * ```ts\n * // Style A — return a fresh object; base fields are merged automatically\n * export default defineEnv(() =>\n * z.object({\n * DATABASE_URL: z.string().url(),\n * JWT_SECRET: z.string().min(32),\n * })\n * )\n *\n * // Style B — explicitly extend `base` (still works, identical result)\n * export default defineEnv((base) =>\n * base.extend({\n * DATABASE_URL: z.string().url(),\n * })\n * )\n * ```\n *\n * User-defined keys override base keys when they collide, so a project\n * can re-type `PORT` or tighten `NODE_ENV` without losing the rest of\n * the base shape.\n */\nexport function defineEnv<T extends z.ZodRawShape>(\n extend: (base: typeof baseEnvSchema) => z.ZodObject<T>,\n): z.ZodObject<typeof baseEnvSchema.shape & T> {\n const userSchema = extend(baseEnvSchema)\n // Always merge the base in. `extend` lets the user's shape override\n // any colliding base keys, which preserves the escape hatch for\n // projects that want to re-type `PORT` etc.\n return baseEnvSchema.extend(userSchema.shape) as z.ZodObject<typeof baseEnvSchema.shape & T>\n}\n\n/**\n * Parse and validate `process.env` against a Zod schema. Caches result per schema.\n *\n * **No-arg behaviour is sticky.** The first time `loadEnv(schema)` is called\n * with an extended schema, the cache holds that schema. Subsequent\n * `loadEnv()` calls (no arg) will reuse the cached extended schema rather\n * than falling back to `baseEnvSchema`.\n *\n * Stickiness matters because `ConfigService` and the `@Value()` decorator\n * both read through the no-arg form internally. Without it, resolving\n * either of them after a `loadEnv(extendedSchema)` call would silently\n * downgrade the env to the base shape and drop every user-defined key.\n *\n * To force a re-parse with a different schema, pass the new schema explicitly.\n * To start fresh, call `resetEnvCache()` (full reset) or `reloadEnv()`\n * (re-parse against the same schema after a `.env` file change).\n *\n * **Typing:**\n * - With an explicit schema → returns `z.infer<typeof schema>`.\n * - With no schema and `KickEnv` populated by typegen → returns\n * `KickEnv` (the project-wide typed env shape).\n * - With no schema and `KickEnv` empty → returns the base `Env`.\n */\nexport function loadEnv<T extends z.ZodObject<any>>(schema: T): z.infer<T>\nexport function loadEnv(): [EnvKey] extends [never] ? Env : KickEnv\nexport function loadEnv<T extends z.ZodObject<any>>(schema?: T): any {\n // Sticky: when called with no arg, prefer the most recently cached\n // schema over re-parsing with the base schema.\n const s = schema ?? cachedSchema ?? baseEnvSchema\n // Re-parse if schema changed or no cache yet\n if (cachedEnv && cachedSchema === s) return cachedEnv\n cachedSchema = s\n cachedEnv = s.parse(process.env)\n\n // Register env resolver so @Value() reads validated values\n Container._envResolver = (key: string) => cachedEnv?.[key]\n\n return cachedEnv\n}\n\n/**\n * Get a single typed environment variable value.\n *\n * Three forms:\n * - **No-arg, KickEnv populated** (`kick typegen` has run) → key is\n * constrained to known `KickEnv` keys; return type inferred from\n * the schema.\n * - **With explicit schema** → key constrained to that schema's keys;\n * return type is `z.infer<typeof schema>[K]`.\n * - **No-arg, KickEnv empty** → loose `string` key, `any` return.\n *\n * @example\n * ```ts\n * // After `kick typegen` (KickEnv populated):\n * const port = getEnv('PORT') // typed as number\n * const url = getEnv('DATABASE_URL') // typed as string\n *\n * // With an inline schema (legacy / one-off):\n * const dbUrl = getEnv('DATABASE_URL', envSchema)\n * ```\n */\nexport function getEnv<K extends EnvKey>(key: K): KickEnv[K]\nexport function getEnv<T extends z.ZodObject<any>, K extends string & keyof z.infer<T>>(\n key: K,\n schema: T,\n): z.infer<T>[K]\nexport function getEnv(key: string, schema?: z.ZodObject<any>): any {\n const env = schema ? loadEnv(schema) : (loadEnv() as Record<string, any>)\n return env[key]\n}\n\n/**\n * Reload env from `process.env`. Re-reads `.env` via dotenv (if\n * installed), then re-parses the result against the **same** schema\n * the project registered at startup. Called during HMR rebuild and by\n * `envWatchPlugin` to pick up `.env` file changes mid-session.\n *\n * Crucially, this preserves the registered schema. Wiping it would\n * silently downgrade `ConfigService` and `@Value()` back to the base\n * schema on the next read, so every user-defined key would start\n * resolving as `undefined` after the first `.env` save — which was the\n * original \"config disappears in dev\" bug.\n *\n * If you need to fully forget the schema (e.g. tests that swap schemas\n * between cases), call {@link resetEnvCache} instead.\n */\nexport function reloadEnv(): void {\n // Re-read .env file into process.env if dotenv is installed.\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n require('dotenv').config({ override: true, quiet: true })\n } catch {\n // dotenv not installed — nothing to reload, env comes from the\n // environment directly.\n }\n\n // Drop the parsed snapshot but keep the schema. Re-parse eagerly so\n // existing consumers (including ConfigService getters and @Value\n // resolvers that may already hold references to the env state) see\n // the new values on their very next read instead of having to\n // re-trigger any cache-population step.\n cachedEnv = null\n if (cachedSchema) {\n loadEnv(cachedSchema)\n }\n}\n\n/**\n * Fully reset the env cache, including the registered schema. Use this\n * in tests that need to swap schemas between cases — `reloadEnv()`\n * deliberately preserves the schema to avoid the \"user keys vanish on\n * `.env` reload\" footgun.\n */\nexport function resetEnvCache(): void {\n cachedEnv = null\n cachedSchema = null\n}\n\nexport type Env = z.infer<typeof baseEnvSchema>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,SAAS,gBAAsB;AAC7B,KAAI;AAMF,YAJuB,SAAS,CAIzB,OAAO;GAAE,UAAU;GAAO,OAAO;GAAM,CAAC;SACzC;;AAKV,eAAe;;;;;AAMf,MAAa,gBAAgB,EAAE,OAAO;CAEpC,MAAM,EAAE,OAAO,QAAQ,CAAC,QAAQ,IAAK;CACrC,UAAU,EAAE,KAAK;EAAC;EAAe;EAAc;EAAO,CAAC,CAAC,QAAQ,cAAc;CAC9E,WAAW,EAAE,QAAQ,CAAC,QAAQ,OAAO;CACtC,CAAC;;AAGF,IAAI,YAAiB;AACrB,IAAI,eAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCxB,SAAgB,UACd,QAC6C;CAC7C,MAAM,aAAa,OAAO,cAAc;AAIxC,QAAO,cAAc,OAAO,WAAW,MAAM;;AA4B/C,SAAgB,QAAoC,QAAiB;CAGnE,MAAM,IAAI,UAAU,gBAAgB;AAEpC,KAAI,aAAa,iBAAiB,EAAG,QAAO;AAC5C,gBAAe;AACf,aAAY,EAAE,MAAM,QAAQ,IAAI;AAGhC,WAAU,gBAAgB,QAAgB,YAAY;AAEtD,QAAO;;AA6BT,SAAgB,OAAO,KAAa,QAAgC;AAElE,SADY,SAAS,QAAQ,OAAO,GAAI,SAAS,EACtC;;;;;;;;;;;;;;;;;AAkBb,SAAgB,YAAkB;AAEhC,KAAI;AAEF,YAAQ,SAAS,CAAC,OAAO;GAAE,UAAU;GAAM,OAAO;GAAM,CAAC;SACnD;AAUR,aAAY;AACZ,KAAI,aACF,SAAQ,aAAa;;;;;;;;AAUzB,SAAgB,gBAAsB;AACpC,aAAY;AACZ,gBAAe"}
@@ -1,3 +1,3 @@
1
1
 
2
- import { n as ApplicationOptions, r as MiddlewareEntry, t as Application } from "../application-BCW1WujM.mjs";
2
+ import { n as ApplicationOptions, r as MiddlewareEntry, t as Application } from "../application-BTRI4aBd.mjs";
3
3
  export { Application, ApplicationOptions, MiddlewareEntry };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -8,5 +8,5 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
- import { t as Application } from "../application-C23HpKl_.mjs";
11
+ import { t as Application } from "../application-Bw87drVl.mjs";
12
12
  export { Application };
@@ -1,3 +1,3 @@
1
1
 
2
- import { t as bootstrap } from "../bootstrap-DCqeCxbi.mjs";
2
+ import { t as bootstrap } from "../bootstrap-B4YrBipl.mjs";
3
3
  export { bootstrap };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -8,5 +8,5 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
- import { t as bootstrap } from "../bootstrap-C3-hsRJe.mjs";
11
+ import { t as bootstrap } from "../bootstrap-CsQ7LE-W.mjs";
12
12
  export { bootstrap };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -8,5 +8,5 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
- import { t as RequestContext } from "../context-l7VEO8V8.mjs";
11
+ import { t as RequestContext } from "../context-CDFiXWcV.mjs";
12
12
  export { RequestContext };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import { createLogger } from "../../core/logger.mjs";
12
12
  import { HttpException } from "../../core/errors.mjs";
13
- import "../../core-DC2EFUnO.mjs";
13
+ import "../../core-K0J8AH_4.mjs";
14
14
  //#region src/http/middleware/error-handler.ts
15
15
  const log = createLogger("ErrorHandler");
16
16
  /** Catch-all for unmatched routes */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -9,7 +9,7 @@
9
9
  * @license MIT
10
10
  */
11
11
  import { createLogger } from "../../core/logger.mjs";
12
- import "../../core-DC2EFUnO.mjs";
12
+ import "../../core-K0J8AH_4.mjs";
13
13
  //#region src/http/middleware/request-logger.ts
14
14
  /**
15
15
  * Middleware that logs every request with method, URL, status, duration, and request ID.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -1,3 +1,3 @@
1
1
 
2
- import { n as SpaAdapterOptions, t as SpaAdapter } from "../../spa-BE7T3Wpt.mjs";
2
+ import { n as SpaAdapterOptions, t as SpaAdapter } from "../../spa-e4FIS2RB.mjs";
3
3
  export { SpaAdapter, SpaAdapterOptions };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -8,9 +8,9 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
- import { p as __require } from "../../container-CNp-BGbb.mjs";
11
+ import { h as __require } from "../../container-C0FlgLNH.mjs";
12
12
  import { Logger } from "../../core/logger.mjs";
13
- import "../../core-DC2EFUnO.mjs";
13
+ import "../../core-K0J8AH_4.mjs";
14
14
  import { existsSync, readFileSync } from "node:fs";
15
15
  import { join, resolve } from "node:path";
16
16
  //#region src/http/middleware/spa.ts
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -9,7 +9,7 @@
9
9
  * @license MIT
10
10
  */
11
11
  import { HttpException, HttpStatus } from "../../core/errors.mjs";
12
- import "../../core-DC2EFUnO.mjs";
12
+ import "../../core-K0J8AH_4.mjs";
13
13
  //#region src/http/middleware/validate.ts
14
14
  function toValidationException(error, message, useFirstIssueMessage) {
15
15
  const issues = error.issues || [];
@@ -1,3 +1,3 @@
1
1
 
2
- import { n as ViewAdapterOptions, t as ViewAdapter } from "../../views-zmtIPd6N.mjs";
2
+ import { n as ViewAdapterOptions, t as ViewAdapter } from "../../views-DkNp9JJs.mjs";
3
3
  export { ViewAdapter, ViewAdapterOptions };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -9,7 +9,7 @@
9
9
  * @license MIT
10
10
  */
11
11
  import { Logger } from "../../core/logger.mjs";
12
- import { n as defineAdapter } from "../../core-DC2EFUnO.mjs";
12
+ import { n as defineAdapter } from "../../core-K0J8AH_4.mjs";
13
13
  import { resolve } from "node:path";
14
14
  //#region src/http/middleware/views.ts
15
15
  const log = Logger.for("ViewEngine");
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -8,5 +8,5 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
- import { a as parseSearchQuery, i as parseQuery, n as parseFilters, o as parseSort, r as parsePagination, s as FILTER_OPERATORS, t as buildQueryParams } from "../../query-CaS4hGJ1.mjs";
11
+ import { a as parseSearchQuery, i as parseQuery, n as parseFilters, o as parseSort, r as parsePagination, s as FILTER_OPERATORS, t as buildQueryParams } from "../../query-CD0AMqxx.mjs";
12
12
  export { FILTER_OPERATORS, buildQueryParams, parseFilters, parsePagination, parseQuery, parseSearchQuery, parseSort };
@@ -1,3 +1,3 @@
1
1
 
2
- import { n as _setExternalContributorSources, r as buildRoutes, t as BuildRoutesOptions } from "../router-builder-CoALtdvm.mjs";
2
+ import { n as _setExternalContributorSources, r as buildRoutes, t as BuildRoutesOptions } from "../router-builder-C7sXk_FG.mjs";
3
3
  export { BuildRoutesOptions, _setExternalContributorSources, buildRoutes };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs v5.1.0
2
+ * @forinda/kickjs v5.2.0
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -8,11 +8,11 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
- import { t as Container } from "../container-CNp-BGbb.mjs";
11
+ import { t as Container } from "../container-C0FlgLNH.mjs";
12
12
  import { METADATA } from "../core/interfaces.mjs";
13
- import { a as getMethodMeta, o as getMethodMetaOrUndefined, t as getClassMeta } from "../metadata-DyFSoTPD.mjs";
14
- import { c as runContributors, l as buildPipeline } from "../core-DC2EFUnO.mjs";
15
- import { t as RequestContext } from "../context-l7VEO8V8.mjs";
13
+ import { a as getMethodMeta, o as getMethodMetaOrUndefined, t as getClassMeta } from "../metadata-DPLdmj1w.mjs";
14
+ import { c as runContributors, l as buildPipeline } from "../core-K0J8AH_4.mjs";
15
+ import { t as RequestContext } from "../context-CDFiXWcV.mjs";
16
16
  import { validate } from "./middleware/validate.mjs";
17
17
  import { buildUploadMiddleware } from "./middleware/upload.mjs";
18
18
  import { Router } from "express";
@@ -1,9 +1,9 @@
1
1
 
2
2
  import { s as InjectionToken, t as Container } from "./container-BZKeHc5X.mjs";
3
3
  import { n as ExecutionContext } from "./execution-context-DKnt61pY.mjs";
4
- import { a as ContributorRegistration } from "./context-decorator-uq5oeiax.mjs";
5
- import { r as AppAdapter } from "./adapter-DOQCv8Sq.mjs";
6
- import { t as KickPlugin } from "./plugin-DTKuhBp2.mjs";
4
+ import { t as AnyContributorRegistration } from "./context-decorator-Bca_BoRK.mjs";
5
+ import { r as AppAdapter } from "./adapter-C1w_xt08.mjs";
6
+ import { t as KickPlugin } from "./plugin-DF8Xfv9Z.mjs";
7
7
  //#region src/core/metadata.d.ts
8
8
  /**
9
9
  * Typed utilities for reflect-metadata operations.
@@ -193,9 +193,17 @@ type ContributorSource = 'method' | 'class' | 'module' | 'adapter' | 'global';
193
193
  * Input row to {@link buildPipeline}. Pairs a registration with its origin
194
194
  * so dedup can apply the precedence rule and diagnostic errors can name
195
195
  * the offending site.
196
+ *
197
+ * `registration` is the type-erased {@link AnyContributorRegistration}
198
+ * — the runner doesn't care about each registration's narrow `D` /
199
+ * `Ctx` shape, and adopters frequently mix HTTP / transport-agnostic
200
+ * contributors in the same `externalSources` / `contributors()`
201
+ * array. The narrow generics from `defineContextDecorator` survive
202
+ * at the *definition* site (where `resolve` is typed); they're erased
203
+ * here so collections compose without `as any` casts.
196
204
  */
197
205
  interface SourcedRegistration {
198
- registration: ContributorRegistration;
206
+ registration: AnyContributorRegistration;
199
207
  source: ContributorSource;
200
208
  /** Human label surfaced in DuplicateContributorError messages. */
201
209
  label?: string;
@@ -209,7 +217,7 @@ interface SourcedRegistration {
209
217
  * builder uses it for missing-dep validation.
210
218
  */
211
219
  interface ContributorPipeline {
212
- readonly contributors: readonly ContributorRegistration[];
220
+ readonly contributors: readonly AnyContributorRegistration[];
213
221
  readonly keys: ReadonlySet<string>;
214
222
  }
215
223
  interface BuildPipelineOptions {
@@ -507,5 +515,48 @@ interface AdapterFactory<TConfig, TExtra = unknown> {
507
515
  */
508
516
  declare function defineAdapter<TConfig = Record<string, unknown>, TExtra = unknown>(options: DefineAdapterOptions<TConfig, TExtra>): AdapterFactory<TConfig, TExtra>;
509
517
  //#endregion
510
- export { CircuitOpenError as A, setClassMeta as B, ContributorCycleError as C, CircuitBreakerOptions as D, CircuitBreaker as E, getMethodMeta as F, setInMetaRecord as H, getMethodMetaOrUndefined as I, hasClassMeta as L, getClassMetaOrUndefined as M, getMetaMap as N, CircuitBreakerState as O, getMetaRecord as P, pushClassMeta as R, buildPipeline as S, MissingContributorError as T, setMethodMeta as U, setInMetaMap as V, runContributors as _, BuildContext as a, ContributorSource as b, PluginFactory as c, MissingMountDepError as d, MountCycleError as f, RunContributorsOptions as g, mountSort as h, defineAdapter as i, getClassMeta as j, CircuitBreakerStats as k, definePlugin as l, MountSortItem as m, AdapterFactory as n, DefinePluginOptions as o, MountKind as p, DefineAdapterOptions as r, PluginAsyncOptions as s, AdapterAsyncOptions as t, DuplicateMountNameError as u, BuildPipelineOptions as v, DuplicateContributorError as w, SourcedRegistration as x, ContributorPipeline as y, pushMethodMeta as z };
511
- //# sourceMappingURL=index-ukXMopUO.d.mts.map
518
+ //#region src/core/asset-keys.d.ts
519
+ type AssetKeyStrategy = 'auto' | 'strip' | 'with-extension';
520
+ interface AssetKeyPair {
521
+ /** Source-relative path the file was discovered at. */
522
+ rel: string;
523
+ /** Final logical key for the manifest, including the namespace prefix. */
524
+ key: string;
525
+ }
526
+ interface GroupAssetKeysOptions {
527
+ /**
528
+ * Strategy applied to this namespace. Default `'auto'`.
529
+ *
530
+ * Adopters override per-namespace via `assetMap.<ns>.keys` in
531
+ * kick.config.ts when they want uniform behaviour (e.g. always
532
+ * include the extension regardless of collisions).
533
+ */
534
+ strategy?: AssetKeyStrategy;
535
+ }
536
+ interface GroupAssetKeysResult {
537
+ pairs: AssetKeyPair[];
538
+ /**
539
+ * Number of collision groups resolved by keeping extensions.
540
+ * Surfaces as an informational log ("auto-resolved N collisions")
541
+ * so adopters know whether they're relying on auto-mode or not.
542
+ * Always 0 for `'strip'` (overwrites) and `'with-extension'`
543
+ * (extensions always preserved, no collision possible).
544
+ */
545
+ collisionGroupsResolved: number;
546
+ }
547
+ /**
548
+ * Compute final manifest keys for a namespace's discovered paths,
549
+ * given the chosen strategy. Pure function — no fs / config / globals
550
+ * involved.
551
+ *
552
+ * @param namespace assetMap key — e.g. `'mails'`, `'pages'`.
553
+ * @param paths source-relative file paths (POSIX separators) discovered
554
+ * under the namespace's `src` directory.
555
+ * @param opts grouping options.
556
+ */
557
+ declare function groupAssetKeys(namespace: string, paths: readonly string[], opts?: GroupAssetKeysOptions): GroupAssetKeysResult;
558
+ /** Strip the final extension from a path. `'mails/welcome.ejs'` → `'mails/welcome'`. */
559
+ declare function stripExt(path: string): string;
560
+ //#endregion
561
+ export { DuplicateContributorError as A, getMetaRecord as B, runContributors as C, SourcedRegistration as D, ContributorSource as E, CircuitBreakerStats as F, pushMethodMeta as G, getMethodMetaOrUndefined as H, CircuitOpenError as I, setInMetaRecord as J, setClassMeta as K, getClassMeta as L, CircuitBreaker as M, CircuitBreakerOptions as N, buildPipeline as O, CircuitBreakerState as P, getClassMetaOrUndefined as R, RunContributorsOptions as S, ContributorPipeline as T, hasClassMeta as U, getMethodMeta as V, pushClassMeta as W, setMethodMeta as Y, MissingMountDepError as _, groupAssetKeys as a, MountSortItem as b, AdapterFactory as c, BuildContext as d, DefinePluginOptions as f, DuplicateMountNameError as g, definePlugin as h, GroupAssetKeysResult as i, MissingContributorError as j, ContributorCycleError as k, DefineAdapterOptions as l, PluginFactory as m, AssetKeyStrategy as n, stripExt as o, PluginAsyncOptions as p, setInMetaMap as q, GroupAssetKeysOptions as r, AdapterAsyncOptions as s, AssetKeyPair as t, defineAdapter as u, MountCycleError as v, BuildPipelineOptions as w, mountSort as x, MountKind as y, getMetaMap as z };
562
+ //# sourceMappingURL=index-DvZfBNIf.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DvZfBNIf.d.mts","names":[],"sources":["../src/core/metadata.ts","../src/core/circuit-breaker.ts","../src/core/context-errors.ts","../src/core/contributor-pipeline.ts","../src/core/contributor-runner.ts","../src/core/mount-sort.ts","../src/core/define-plugin.ts","../src/core/define-adapter.ts","../src/core/asset-keys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UAAmB,MAAA,GAAS,OAAA,CAAQ,OAAA,IAAW,UAAA,GAAa,MAAA;EACnE,KAAA,CAAM,IAAA,EAAM,mBAAA,CAAoB,OAAA,IAAW,UAAA;EAAA,SAClC,UAAA,EAAY,QAAA,CAAS,oBAAA,CAAqB,OAAA,EAAS,MAAA;AAAA;;;;;;;;;;APb9D;;;;;;;;;;;;;;;;iBOgDgB,aAAA,WAAwB,MAAA,oCAAA,CACtC,OAAA,EAAS,oBAAA,CAAqB,OAAA,EAAS,MAAA,IACtC,cAAA,CAAe,OAAA,EAAS,MAAA;;;KChEf,gBAAA;AAAA,UAEK,YAAA;;EAEf,GAAA;;EAEA,GAAA;AAAA;AAAA,UAGe,qBAAA;;;;;;AR/B4B;;EQuC3C,QAAA,GAAW,gBAAA;AAAA;AAAA,UAGI,oBAAA;EACf,KAAA,EAAO,YAAA;ERxBmB;;;;;;;EQgC1B,uBAAA;AAAA;;;AR3BF;;;;;;;;iBQwCgB,cAAA,CACd,SAAA,UACA,KAAA,qBACA,IAAA,GAAM,qBAAA,GACL,oBAAA;;iBA2Da,QAAA,CAAS,IAAA"}
package/dist/index.d.mts CHANGED
@@ -4,19 +4,19 @@ import { a as tokenName, c as createToken, i as KickJsRegistry, l as isInjection
4
4
  import { A as normalizeApiQueryParamsConfig, C as Post, D as RouteDefinition, E as Repository, F as assets, I as clearAssetCache, L as resolveAsset, M as ASSET_MANIFEST_VERSION, N as KickAssets, O as Service, P as UnknownAssetError, R as useAssets, S as Patch, T as Put, _ as Get, a as Autowired, b as Middleware, c as ColumnApiQueryParamsConfig, d as Delete, f as Env, g as FileUploadConfig, h as FileUpload, i as AssetKey, j as ASSETS, k as Value, l as Component, m as FileTypeFilter, n as ApiQueryParamsConfig, o as BaseUploadOptions, p as EnvKey, r as Asset, s as Builder, t as ApiQueryParams, u as Controller, v as Inject, w as PostConstruct, x as MiddlewareHandler, y as Injectable } from "./decorators-CRmHuzxz.mjs";
5
5
  import { a as baseEnvSchema, c as loadEnv, l as reloadEnv, n as TypedConfigService, o as defineEnv, r as createConfigService, s as getEnv, t as ConfigService, u as resetEnvCache } from "./index-DhNglXyS.mjs";
6
6
  import { n as ExecutionContext, r as MetaValue, t as ContextMeta } from "./execution-context-DKnt61pY.mjs";
7
- import { a as ContributorRegistration, c as ResolvedDeps, i as ContextMetaKey, l as defineContextDecorator, n as ContextDecorator, o as ContributorRegistrations, r as ContextDecoratorSpec, s as DepValue, t as AnyContributorRegistration } from "./context-decorator-uq5oeiax.mjs";
8
- import { a as MiddlewarePhase, c as KickJsPluginRegistry, i as AppAdapterClass, l as defineAugmentation, n as AdapterMiddleware, o as AugmentationMeta, r as AppAdapter, s as KickJsPluginName, t as AdapterContext } from "./adapter-DOQCv8Sq.mjs";
9
- import { n as AppModuleClass, r as ModuleRoutes, t as AppModule } from "./app-module-Caxqht0i.mjs";
7
+ import { a as ContributorRegistration, c as ResolvedDeps, i as ContextMetaKey, l as defineContextDecorator, n as ContextDecorator, o as ContributorRegistrations, r as ContextDecoratorSpec, s as DepValue, t as AnyContributorRegistration } from "./context-decorator-Bca_BoRK.mjs";
8
+ import { a as MiddlewarePhase, c as KickJsPluginRegistry, i as AppAdapterClass, l as defineAugmentation, n as AdapterMiddleware, o as AugmentationMeta, r as AppAdapter, s as KickJsPluginName, t as AdapterContext } from "./adapter-C1w_xt08.mjs";
9
+ import { n as AppModuleClass, r as ModuleRoutes, t as AppModule } from "./app-module-D6zL_V5S.mjs";
10
10
  import { a as Cacheable, c as setCacheProvider, i as CacheProvider, n as CacheEvict, o as MemoryCacheProvider, r as CacheOptions, s as getCacheProvider } from "./cache-XrNWj1KQ.mjs";
11
11
  import { i as getCronJobs, n as Cron, r as CronJobMeta, t as CRON_META } from "./cron-GNoYydfg.mjs";
12
12
  import { i as ValidationError, n as HttpStatus, r as HttpStatusCode, t as HttpException } from "./errors-uaHCeXRz.mjs";
13
13
  import { a as rootLogger, i as createLogger, n as Logger, r as LoggerProvider, t as ConsoleLoggerProvider } from "./logger-CLVRZf2N.mjs";
14
14
  import { n as normalizePath, t as joinPaths } from "./path-Diviu6hv.mjs";
15
- import { t as KickPlugin } from "./plugin-DTKuhBp2.mjs";
15
+ import { t as KickPlugin } from "./plugin-DF8Xfv9Z.mjs";
16
16
  import { a as isRef, c as toRefs, i as computed, l as unref, n as Ref, o as reactive, r as WatchOptions, s as ref, t as ComputedRef, u as watch } from "./reactivity-CfJceo4H.mjs";
17
- import { A as CircuitOpenError, B as setClassMeta, C as ContributorCycleError, D as CircuitBreakerOptions, E as CircuitBreaker, F as getMethodMeta, H as setInMetaRecord, I as getMethodMetaOrUndefined, L as hasClassMeta, M as getClassMetaOrUndefined, N as getMetaMap, O as CircuitBreakerState, P as getMetaRecord, R as pushClassMeta, S as buildPipeline, T as MissingContributorError, U as setMethodMeta, V as setInMetaMap, _ as runContributors, a as BuildContext, b as ContributorSource, c as PluginFactory, d as MissingMountDepError, f as MountCycleError, g as RunContributorsOptions, h as mountSort, i as defineAdapter, j as getClassMeta, k as CircuitBreakerStats, l as definePlugin, m as MountSortItem, n as AdapterFactory, o as DefinePluginOptions, p as MountKind, r as DefineAdapterOptions, s as PluginAsyncOptions, t as AdapterAsyncOptions, u as DuplicateMountNameError, v as BuildPipelineOptions, w as DuplicateContributorError, x as SourcedRegistration, y as ContributorPipeline, z as pushMethodMeta } from "./index-ukXMopUO.mjs";
18
- import { n as ApplicationOptions, r as MiddlewareEntry, t as Application } from "./application-BCW1WujM.mjs";
19
- import { t as bootstrap } from "./bootstrap-DCqeCxbi.mjs";
17
+ import { A as DuplicateContributorError, B as getMetaRecord, C as runContributors, D as SourcedRegistration, E as ContributorSource, F as CircuitBreakerStats, G as pushMethodMeta, H as getMethodMetaOrUndefined, I as CircuitOpenError, J as setInMetaRecord, K as setClassMeta, L as getClassMeta, M as CircuitBreaker, N as CircuitBreakerOptions, O as buildPipeline, P as CircuitBreakerState, R as getClassMetaOrUndefined, S as RunContributorsOptions, T as ContributorPipeline, U as hasClassMeta, V as getMethodMeta, W as pushClassMeta, Y as setMethodMeta, _ as MissingMountDepError, a as groupAssetKeys, b as MountSortItem, c as AdapterFactory, d as BuildContext, f as DefinePluginOptions, g as DuplicateMountNameError, h as definePlugin, i as GroupAssetKeysResult, j as MissingContributorError, k as ContributorCycleError, l as DefineAdapterOptions, m as PluginFactory, n as AssetKeyStrategy, o as stripExt, p as PluginAsyncOptions, q as setInMetaMap, r as GroupAssetKeysOptions, s as AdapterAsyncOptions, t as AssetKeyPair, u as defineAdapter, v as MountCycleError, w as BuildPipelineOptions, x as mountSort, y as MountKind, z as getMetaMap } from "./index-DvZfBNIf.mjs";
18
+ import { n as ApplicationOptions, r as MiddlewareEntry, t as Application } from "./application-BTRI4aBd.mjs";
19
+ import { t as bootstrap } from "./bootstrap-B4YrBipl.mjs";
20
20
  import { _ as SortItem, a as parseSearchQuery, c as FILTER_OPERATORS, d as FilterOperator, f as PaginatedResponse, g as QueryFieldConfig, h as QueryBuilderAdapter, i as parseQuery, l as FieldsOf, m as ParsedQuery, n as parseFilters, o as parseSort, p as PaginationParams, r as parsePagination, t as buildQueryParams, u as FilterItem, y as TypedParsedQuery } from "./index-B9cyOQAe.mjs";
21
21
  import { n as RequestContext, r as RouteShape, t as Ctx } from "./context-Ymvv-85x.mjs";
22
22
  import { n as cors, t as CorsOptions } from "./cors-BfgqfLPd.mjs";
@@ -27,9 +27,9 @@ import { n as RateLimitStore, r as rateLimit, t as RateLimitOptions } from "./ra
27
27
  import { n as requestId, t as REQUEST_ID_HEADER } from "./request-id-BgglvZHN.mjs";
28
28
  import { n as requestLogger, t as RequestLoggerOptions } from "./request-logger-CWHbAzTE.mjs";
29
29
  import { a as session, i as SessionStore, n as SessionData, r as SessionOptions, t as Session } from "./session-N0hActOO.mjs";
30
- import { n as SpaAdapterOptions, t as SpaAdapter } from "./spa-BE7T3Wpt.mjs";
30
+ import { n as SpaAdapterOptions, t as SpaAdapter } from "./spa-e4FIS2RB.mjs";
31
31
  import { a as upload, i as resolveMimeTypes, n as buildUploadMiddleware, r as cleanupFiles, t as UploadOptions } from "./upload-BM9uyR6Y.mjs";
32
32
  import { n as validate } from "./validate-HwAyWTwH.mjs";
33
- import { a as TraceContextOptions, c as requestScopeMiddleware, d as getRequestValue, f as requestStore, h as isClusterPrimary, i as TraceContext, l as RequestStore, m as ClusterOptions, n as ViewAdapterOptions, o as parseTraceparent, p as defineHttpContextDecorator, r as TRACEPARENT_HEADER, s as traceContext, t as ViewAdapter, u as getRequestStore } from "./views-zmtIPd6N.mjs";
34
- import { r as buildRoutes } from "./router-builder-CoALtdvm.mjs";
35
- export { ASSETS, ASSET_MANIFEST_VERSION, AdapterAsyncOptions, AdapterContext, AdapterFactory, AdapterMiddleware, AnyContributorRegistration, ApiQueryParams, ApiQueryParamsConfig, ApiQueryParamsConfig as QueryParamsConfig, AppAdapter, AppAdapterClass, AppModule, AppModuleClass, Application, ApplicationOptions, Asset, AssetKey, AugmentationMeta, Autowired, BaseUploadOptions, BuildContext, BuildPipelineOptions, Buildable, Builder, BuilderOf, CRON_META, CacheEvict, CacheOptions, CacheProvider, Cacheable, CircuitBreaker, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStats, CircuitOpenError, ClassKind, ClusterOptions, ColumnApiQueryParamsConfig, Component, ComputedRef, ConfigService, ConsoleLoggerProvider, Constructor, Container, ContainerChangeEvent, ContainerChangeListener, ContextDecorator, ContextDecoratorSpec, ContextMeta, ContextMetaKey, ContributorCycleError, ContributorPipeline, ContributorRegistration, ContributorRegistrations, ContributorSource, Controller, CorsOptions, Cron, CronJobMeta, CsrfOptions, Ctx, DefineAdapterOptions, DefinePluginOptions, Delete, DepValue, DuplicateContributorError, DuplicateMountNameError, Env, EnvKey, ExecutionContext, FILTER_OPERATORS, FieldsOf, FileTypeFilter, FileUpload, FileUploadConfig, FilterItem, FilterOperator, Get, HelmetOptions, HttpException, HttpStatus, HttpStatusCode, INJECTION_TOKEN, Inject, Injectable, InjectionToken, KickAssets, KickJsPluginName, KickJsPluginRegistry, KickJsRegistry, KickPlugin, Logger, LoggerProvider, METADATA, MaybePromise, MemoryCacheProvider, MetaValue, Middleware, MiddlewareEntry, MiddlewareHandler, MiddlewarePhase, MissingContributorError, MissingMountDepError, ModuleRoutes, MountCycleError, MountKind, MountSortItem, PaginatedResponse, PaginationParams, ParsedQuery, Patch, PluginAsyncOptions, PluginFactory, Post, PostConstruct, PostConstructStatus, Put, QueryBuilderAdapter, QueryFieldConfig, REQUEST_ID_HEADER, RateLimitOptions, RateLimitStore, Ref, Repository, RequestContext, RequestLoggerOptions, RequestStore, ResolvedDeps, RouteDefinition, RouteShape, RunContributorsOptions, Scope, Service, ServiceOptions, Session, SessionData, SessionOptions, SessionStore, SortItem, SourcedRegistration, SpaAdapter, SpaAdapterOptions, TRACEPARENT_HEADER, TraceContext, TraceContextOptions, TypedConfigService, TypedParsedQuery, UnknownAssetError, UploadOptions, ValidationError, Value, ViewAdapter, ViewAdapterOptions, WatchOptions, assets, baseEnvSchema, bootstrap, buildPipeline, buildQueryParams, buildRoutes, buildUploadMiddleware, cleanupFiles, clearAssetCache, computed, cors, createConfigService, createLogger, createToken, csrf, defineAdapter, defineAugmentation, defineContextDecorator, defineEnv, defineHttpContextDecorator, definePlugin, errorHandler, getCacheProvider, getClassMeta, getClassMetaOrUndefined, getCronJobs, getEnv, getMetaMap, getMetaRecord, getMethodMeta, getMethodMetaOrUndefined, getRequestStore, getRequestValue, hasClassMeta, helmet, isClusterPrimary, isInjectionToken, isRef, joinPaths, loadEnv, mountSort, normalizeApiQueryParamsConfig, normalizePath, notFoundHandler, parseFilters, parsePagination, parseQuery, parseSearchQuery, parseSort, parseTraceparent, pushClassMeta, pushMethodMeta, rateLimit, reactive, ref, reloadEnv, requestId, requestLogger, requestScopeMiddleware, requestStore, resetEnvCache, resolveAsset, resolveMimeTypes, rootLogger, runContributors, session, setCacheProvider, setClassMeta, setInMetaMap, setInMetaRecord, setMethodMeta, toRefs, tokenName, traceContext, unref, upload, useAssets, validate, watch };
33
+ import { a as TraceContextOptions, c as requestScopeMiddleware, d as getRequestValue, f as requestStore, h as isClusterPrimary, i as TraceContext, l as RequestStore, m as ClusterOptions, n as ViewAdapterOptions, o as parseTraceparent, p as defineHttpContextDecorator, r as TRACEPARENT_HEADER, s as traceContext, t as ViewAdapter, u as getRequestStore } from "./views-DkNp9JJs.mjs";
34
+ import { r as buildRoutes } from "./router-builder-C7sXk_FG.mjs";
35
+ export { ASSETS, ASSET_MANIFEST_VERSION, AdapterAsyncOptions, AdapterContext, AdapterFactory, AdapterMiddleware, AnyContributorRegistration, ApiQueryParams, ApiQueryParamsConfig, ApiQueryParamsConfig as QueryParamsConfig, AppAdapter, AppAdapterClass, AppModule, AppModuleClass, Application, ApplicationOptions, Asset, AssetKey, AssetKeyPair, AssetKeyStrategy, AugmentationMeta, Autowired, BaseUploadOptions, BuildContext, BuildPipelineOptions, Buildable, Builder, BuilderOf, CRON_META, CacheEvict, CacheOptions, CacheProvider, Cacheable, CircuitBreaker, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStats, CircuitOpenError, ClassKind, ClusterOptions, ColumnApiQueryParamsConfig, Component, ComputedRef, ConfigService, ConsoleLoggerProvider, Constructor, Container, ContainerChangeEvent, ContainerChangeListener, ContextDecorator, ContextDecoratorSpec, ContextMeta, ContextMetaKey, ContributorCycleError, ContributorPipeline, ContributorRegistration, ContributorRegistrations, ContributorSource, Controller, CorsOptions, Cron, CronJobMeta, CsrfOptions, Ctx, DefineAdapterOptions, DefinePluginOptions, Delete, DepValue, DuplicateContributorError, DuplicateMountNameError, Env, EnvKey, ExecutionContext, FILTER_OPERATORS, FieldsOf, FileTypeFilter, FileUpload, FileUploadConfig, FilterItem, FilterOperator, Get, GroupAssetKeysOptions, GroupAssetKeysResult, HelmetOptions, HttpException, HttpStatus, HttpStatusCode, INJECTION_TOKEN, Inject, Injectable, InjectionToken, KickAssets, KickJsPluginName, KickJsPluginRegistry, KickJsRegistry, KickPlugin, Logger, LoggerProvider, METADATA, MaybePromise, MemoryCacheProvider, MetaValue, Middleware, MiddlewareEntry, MiddlewareHandler, MiddlewarePhase, MissingContributorError, MissingMountDepError, ModuleRoutes, MountCycleError, MountKind, MountSortItem, PaginatedResponse, PaginationParams, ParsedQuery, Patch, PluginAsyncOptions, PluginFactory, Post, PostConstruct, PostConstructStatus, Put, QueryBuilderAdapter, QueryFieldConfig, REQUEST_ID_HEADER, RateLimitOptions, RateLimitStore, Ref, Repository, RequestContext, RequestLoggerOptions, RequestStore, ResolvedDeps, RouteDefinition, RouteShape, RunContributorsOptions, Scope, Service, ServiceOptions, Session, SessionData, SessionOptions, SessionStore, SortItem, SourcedRegistration, SpaAdapter, SpaAdapterOptions, TRACEPARENT_HEADER, TraceContext, TraceContextOptions, TypedConfigService, TypedParsedQuery, UnknownAssetError, UploadOptions, ValidationError, Value, ViewAdapter, ViewAdapterOptions, WatchOptions, assets, baseEnvSchema, bootstrap, buildPipeline, buildQueryParams, buildRoutes, buildUploadMiddleware, cleanupFiles, clearAssetCache, computed, cors, createConfigService, createLogger, createToken, csrf, defineAdapter, defineAugmentation, defineContextDecorator, defineEnv, defineHttpContextDecorator, definePlugin, errorHandler, getCacheProvider, getClassMeta, getClassMetaOrUndefined, getCronJobs, getEnv, getMetaMap, getMetaRecord, getMethodMeta, getMethodMetaOrUndefined, getRequestStore, getRequestValue, groupAssetKeys, hasClassMeta, helmet, isClusterPrimary, isInjectionToken, isRef, joinPaths, loadEnv, mountSort, normalizeApiQueryParamsConfig, normalizePath, notFoundHandler, parseFilters, parsePagination, parseQuery, parseSearchQuery, parseSort, parseTraceparent, pushClassMeta, pushMethodMeta, rateLimit, reactive, ref, reloadEnv, requestId, requestLogger, requestScopeMiddleware, requestStore, resetEnvCache, resolveAsset, resolveMimeTypes, rootLogger, runContributors, session, setCacheProvider, setClassMeta, setInMetaMap, setInMetaRecord, setMethodMeta, stripExt, toRefs, tokenName, traceContext, unref, upload, useAssets, validate, watch };