@pattern-stack/codegen 0.25.0 → 0.26.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 (56) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/{chunk-CKLM57IE.js → chunk-AC6T2JUX.js} +14 -14
  3. package/dist/{chunk-4MVGAMUA.js → chunk-BK5ICA2F.js} +4 -4
  4. package/dist/{chunk-J7JMVS2B.js → chunk-CZQUOIDY.js} +4 -4
  5. package/dist/{chunk-37PILMIT.js → chunk-EEGVDRZE.js} +4 -4
  6. package/dist/chunk-H6QRQUAF.js +54 -0
  7. package/dist/chunk-H6QRQUAF.js.map +1 -0
  8. package/dist/{chunk-ENAR3F5S.js → chunk-HEOISQ6W.js} +6 -6
  9. package/dist/{chunk-CDLWYZVQ.js → chunk-IN3EWFB4.js} +4 -4
  10. package/dist/{chunk-WZOPWQN2.js → chunk-IXAE6BN6.js} +3 -3
  11. package/dist/{chunk-YULGWXCY.js → chunk-MVKW2BCR.js} +4 -4
  12. package/dist/{chunk-KFXXOFDC.js → chunk-N43D57AP.js} +2 -2
  13. package/dist/{chunk-HN5HT5WL.js → chunk-VI2VNA6Y.js} +4 -4
  14. package/dist/runtime/base-classes/index.js +24 -24
  15. package/dist/runtime/shared/logging/compact-console-logger.d.ts +55 -0
  16. package/dist/runtime/shared/logging/compact-console-logger.js +12 -0
  17. package/dist/runtime/shared/logging/compact-console-logger.js.map +1 -0
  18. package/dist/runtime/shared/logging/index.d.ts +2 -0
  19. package/dist/runtime/shared/logging/index.js +12 -0
  20. package/dist/runtime/shared/logging/index.js.map +1 -0
  21. package/dist/runtime/subsystems/analytics/analytics.module.js +2 -2
  22. package/dist/runtime/subsystems/analytics/index.js +4 -4
  23. package/dist/runtime/subsystems/auth/auth.module.js +1 -1
  24. package/dist/runtime/subsystems/auth/index.js +3 -3
  25. package/dist/runtime/subsystems/bridge/bridge-delivery.drizzle-backend.js +2 -2
  26. package/dist/runtime/subsystems/bridge/bridge-outbox-drain-hook.js +1 -1
  27. package/dist/runtime/subsystems/bridge/bridge.module.js +11 -11
  28. package/dist/runtime/subsystems/bridge/index.js +13 -13
  29. package/dist/runtime/subsystems/index.js +49 -49
  30. package/dist/runtime/subsystems/integration/index.js +12 -12
  31. package/dist/runtime/subsystems/integration/integration-run-recorder.drizzle-backend.js +2 -2
  32. package/dist/runtime/subsystems/integration/integration.module.js +3 -3
  33. package/dist/runtime/subsystems/jobs/index.js +24 -24
  34. package/dist/runtime/subsystems/jobs/job-orchestrator.bullmq-backend.js +4 -4
  35. package/dist/runtime/subsystems/jobs/job-run-service.memory-backend.js +2 -2
  36. package/dist/runtime/subsystems/jobs/job-worker.module.js +8 -8
  37. package/dist/runtime/subsystems/jobs/jobs-domain.module.js +7 -7
  38. package/dist/runtime/subsystems/observability/index.js +2 -2
  39. package/dist/runtime/subsystems/observability/observability.module.js +2 -2
  40. package/dist/runtime/subsystems/storage/index.js +4 -4
  41. package/dist/runtime/subsystems/storage/storage.module.js +2 -2
  42. package/dist/src/cli/index.js +4 -4
  43. package/dist/src/index.js +4 -4
  44. package/package.json +5 -1
  45. package/runtime/shared/logging/compact-console-logger.ts +102 -0
  46. package/runtime/shared/logging/index.ts +10 -0
  47. /package/dist/{chunk-CKLM57IE.js.map → chunk-AC6T2JUX.js.map} +0 -0
  48. /package/dist/{chunk-4MVGAMUA.js.map → chunk-BK5ICA2F.js.map} +0 -0
  49. /package/dist/{chunk-J7JMVS2B.js.map → chunk-CZQUOIDY.js.map} +0 -0
  50. /package/dist/{chunk-37PILMIT.js.map → chunk-EEGVDRZE.js.map} +0 -0
  51. /package/dist/{chunk-ENAR3F5S.js.map → chunk-HEOISQ6W.js.map} +0 -0
  52. /package/dist/{chunk-CDLWYZVQ.js.map → chunk-IN3EWFB4.js.map} +0 -0
  53. /package/dist/{chunk-WZOPWQN2.js.map → chunk-IXAE6BN6.js.map} +0 -0
  54. /package/dist/{chunk-YULGWXCY.js.map → chunk-MVKW2BCR.js.map} +0 -0
  55. /package/dist/{chunk-KFXXOFDC.js.map → chunk-N43D57AP.js.map} +0 -0
  56. /package/dist/{chunk-HN5HT5WL.js.map → chunk-VI2VNA6Y.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.26.0] — 2026-06-07
6
+
7
+ ### Added
8
+
9
+ - **Runtime: compact console logger + `LOG_LEVEL` threshold
10
+ (`runtime/shared/logging`).** A proven swe-brain (second-dogfood) consumer
11
+ pattern lifted into the runtime, importable as
12
+ `@pattern-stack/codegen/runtime/shared/logging`. `CompactConsoleLogger` drops
13
+ Nest's ~55-char `[Nest] <pid> - <full locale date> LEVEL [Context]`
14
+ preamble (which wraps 2–3× in split-pane dev TUIs) — emitting
15
+ `12:48:42 LOG [Context] message` — and `createAppLogger(threshold?)` gives
16
+ consumers the log-level knob the generated entrypoints never wired: a single
17
+ `LOG_LEVEL` env threshold (`verbose < debug < log < warn < error < fatal`,
18
+ default `log`) that enables that level and above, with an explicit-override arg
19
+ that wins over the env (CLI tools pass `'warn'` to stay quiet). Hand it to
20
+ `NestFactory.create(AppModule, { logger: createAppLogger() })`. See
21
+ `docs/CONSUMER-SETUP.md` §Application logger. (The generated worker template
22
+ doesn't auto-wire it yet — follow-up.)
23
+
5
24
  ## [0.25.0] — 2026-06-07
6
25
 
7
26
  ### Fixed
@@ -1,29 +1,29 @@
1
+ import {
2
+ MemoryJobOrchestrator
3
+ } from "./chunk-VQOAATIG.js";
4
+ import {
5
+ MemoryJobStepService
6
+ } from "./chunk-PNZSGAB2.js";
1
7
  import {
2
8
  DrizzleJobRunService
3
9
  } from "./chunk-3VEVGL74.js";
4
10
  import {
5
11
  MemoryJobRunService
6
- } from "./chunk-CDLWYZVQ.js";
12
+ } from "./chunk-IN3EWFB4.js";
13
+ import {
14
+ MemoryJobStore
15
+ } from "./chunk-SNQ3TOWP.js";
7
16
  import {
8
17
  DrizzleJobStepService
9
18
  } from "./chunk-DV4RV2DC.js";
19
+ import {
20
+ DrizzleJobOrchestrator
21
+ } from "./chunk-E6PLM6QG.js";
10
22
  import {
11
23
  BULLMQ_CONNECTION,
12
24
  BULLMQ_RESOLVED_CONFIG,
13
25
  resolveBullMqConfig
14
26
  } from "./chunk-I6MVCB5A.js";
15
- import {
16
- DrizzleJobOrchestrator
17
- } from "./chunk-E6PLM6QG.js";
18
- import {
19
- MemoryJobOrchestrator
20
- } from "./chunk-VQOAATIG.js";
21
- import {
22
- MemoryJobStepService
23
- } from "./chunk-PNZSGAB2.js";
24
- import {
25
- MemoryJobStore
26
- } from "./chunk-SNQ3TOWP.js";
27
27
  import {
28
28
  JOBS_LISTEN_NOTIFY,
29
29
  JOBS_MULTI_TENANT,
@@ -114,4 +114,4 @@ JobsDomainModule = __decorateClass([
114
114
  export {
115
115
  JobsDomainModule
116
116
  };
117
- //# sourceMappingURL=chunk-CKLM57IE.js.map
117
+ //# sourceMappingURL=chunk-AC6T2JUX.js.map
@@ -1,12 +1,12 @@
1
+ import {
2
+ STORAGE
3
+ } from "./chunk-NYBCQZC7.js";
1
4
  import {
2
5
  LocalStorageBackend
3
6
  } from "./chunk-JWNHNUYL.js";
4
7
  import {
5
8
  MemoryStorageBackend
6
9
  } from "./chunk-3SZFUTXE.js";
7
- import {
8
- STORAGE
9
- } from "./chunk-NYBCQZC7.js";
10
10
  import {
11
11
  __decorateClass
12
12
  } from "./chunk-2E224ZSN.js";
@@ -37,4 +37,4 @@ StorageModule = __decorateClass([
37
37
  export {
38
38
  StorageModule
39
39
  };
40
- //# sourceMappingURL=chunk-4MVGAMUA.js.map
40
+ //# sourceMappingURL=chunk-BK5ICA2F.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  CubeAnalyticsBackend
3
3
  } from "./chunk-7B3RYX45.js";
4
- import {
5
- NoopAnalyticsBackend
6
- } from "./chunk-J37YWU7Y.js";
7
4
  import {
8
5
  ANALYTICS_QUERY,
9
6
  CUBE_API_SECRET,
10
7
  CUBE_API_URL
11
8
  } from "./chunk-6I7ULIN6.js";
9
+ import {
10
+ NoopAnalyticsBackend
11
+ } from "./chunk-J37YWU7Y.js";
12
12
  import {
13
13
  __decorateClass
14
14
  } from "./chunk-2E224ZSN.js";
@@ -50,4 +50,4 @@ AnalyticsModule = __decorateClass([
50
50
  export {
51
51
  AnalyticsModule
52
52
  };
53
- //# sourceMappingURL=chunk-J7JMVS2B.js.map
53
+ //# sourceMappingURL=chunk-CZQUOIDY.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BridgeMetricsReporter
3
3
  } from "./chunk-AQFQ4BYM.js";
4
+ import {
5
+ ObservabilityService
6
+ } from "./chunk-PLUJEQLU.js";
4
7
  import {
5
8
  OBSERVABILITY,
6
9
  OBSERVABILITY_MODULE_OPTIONS
7
10
  } from "./chunk-Y7RRSEOC.js";
8
- import {
9
- ObservabilityService
10
- } from "./chunk-PLUJEQLU.js";
11
11
  import {
12
12
  __decorateClass
13
13
  } from "./chunk-2E224ZSN.js";
@@ -45,4 +45,4 @@ ObservabilityModule = __decorateClass([
45
45
  export {
46
46
  ObservabilityModule
47
47
  };
48
- //# sourceMappingURL=chunk-37PILMIT.js.map
48
+ //# sourceMappingURL=chunk-EEGVDRZE.js.map
@@ -0,0 +1,54 @@
1
+ // runtime/shared/logging/compact-console-logger.ts
2
+ import { ConsoleLogger } from "@nestjs/common";
3
+ var LEVELS = ["verbose", "debug", "log", "warn", "error", "fatal"];
4
+ var DEFAULT_THRESHOLD = "log";
5
+ var TIME = new Intl.DateTimeFormat("en-GB", {
6
+ hour: "2-digit",
7
+ minute: "2-digit",
8
+ second: "2-digit",
9
+ hour12: false
10
+ });
11
+ function parseLogLevels(threshold = process.env.LOG_LEVEL) {
12
+ const idx = LEVELS.indexOf(
13
+ (threshold ?? DEFAULT_THRESHOLD).toLowerCase()
14
+ );
15
+ if (idx === -1) {
16
+ console.warn(
17
+ `[logging] unknown LOG_LEVEL '${threshold}' \u2014 defaulting to '${DEFAULT_THRESHOLD}'`
18
+ );
19
+ return LEVELS.slice(LEVELS.indexOf(DEFAULT_THRESHOLD));
20
+ }
21
+ return LEVELS.slice(idx);
22
+ }
23
+ var CompactConsoleLogger = class extends ConsoleLogger {
24
+ /** Drop `[Nest] <pid> - ` — a supervisor pane header already identifies the process. */
25
+ formatPid(_pid) {
26
+ return "";
27
+ }
28
+ /** `12:48:42`, not `06/07/2026, 12:48:42 PM`. */
29
+ getTimestamp() {
30
+ return TIME.format(Date.now());
31
+ }
32
+ formatMessage(logLevel, message, _pidMessage, _formattedLogLevel, contextMessage, timestampDiff) {
33
+ const output = this.stringifyMessage(message, logLevel);
34
+ const level = this.colorize(
35
+ logLevel.toUpperCase().padStart(5, " "),
36
+ logLevel
37
+ );
38
+ return `${this.getTimestamp()} ${level} ${contextMessage}${output}${timestampDiff}
39
+ `;
40
+ }
41
+ };
42
+ function createAppLogger(threshold) {
43
+ return new CompactConsoleLogger("", {
44
+ logLevels: parseLogLevels(threshold ?? process.env.LOG_LEVEL),
45
+ timestamp: true
46
+ });
47
+ }
48
+
49
+ export {
50
+ parseLogLevels,
51
+ CompactConsoleLogger,
52
+ createAppLogger
53
+ };
54
+ //# sourceMappingURL=chunk-H6QRQUAF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../runtime/shared/logging/compact-console-logger.ts"],"sourcesContent":["/**\n * Compact console logger + `LOG_LEVEL` threshold.\n *\n * Nest's default `ConsoleLogger` preamble —\n * `[Nest] <pid> - <full locale date> LEVEL [Context] <message>`\n * — is ~55 chars before the message. In a split-pane dev TUI (process-compose,\n * tmux) every line wraps 2–3×, drowning the actual content. And the generated\n * entrypoints pass no `logger:` option, so consumers have no log-level knob:\n * every subsystem `debug` line (e.g. EventScheduler's per-slot `materialised …`)\n * always prints.\n *\n * This module is the proven swe-brain (second-dogfood) consumer pattern lifted\n * into the runtime so consumers stop rebuilding it by hand:\n *\n * - `CompactConsoleLogger` — drops the `[Nest] <pid> - ` prefix (a supervisor\n * pane header already names the process) and shortens the timestamp to\n * `HH:mm:ss`.\n * - `parseLogLevels` / the `LOG_LEVEL` env convention — a single severity\n * threshold enables that level and everything above it.\n * - `createAppLogger` — the factory the entrypoints hand to `NestFactory`.\n */\nimport { ConsoleLogger, type LogLevel } from '@nestjs/common';\n\n/** Severity-ordered (lowest → highest); a threshold enables its suffix. */\nconst LEVELS: LogLevel[] = ['verbose', 'debug', 'log', 'warn', 'error', 'fatal'];\nconst DEFAULT_THRESHOLD: LogLevel = 'log';\n\nconst TIME = new Intl.DateTimeFormat('en-GB', {\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit',\n hour12: false,\n});\n\n/**\n * Resolve a `LOG_LEVEL` threshold into the enabled-levels array Nest's\n * `logLevels` option expects.\n *\n * `LOG_LEVEL=debug` → `['debug','log','warn','error','fatal']`. Unknown input\n * warns and falls back to the default (`'log'` and above).\n */\nexport function parseLogLevels(threshold = process.env.LOG_LEVEL): LogLevel[] {\n const idx = LEVELS.indexOf(\n (threshold ?? DEFAULT_THRESHOLD).toLowerCase() as LogLevel,\n );\n if (idx === -1) {\n console.warn(\n `[logging] unknown LOG_LEVEL '${threshold}' — defaulting to '${DEFAULT_THRESHOLD}'`,\n );\n return LEVELS.slice(LEVELS.indexOf(DEFAULT_THRESHOLD));\n }\n return LEVELS.slice(idx);\n}\n\n/**\n * A `ConsoleLogger` with a compact one-line format tuned for split-pane TUIs.\n */\nexport class CompactConsoleLogger extends ConsoleLogger {\n /** Drop `[Nest] <pid> - ` — a supervisor pane header already identifies the process. */\n protected override formatPid(_pid: number): string {\n return '';\n }\n\n /** `12:48:42`, not `06/07/2026, 12:48:42 PM`. */\n protected override getTimestamp(): string {\n return TIME.format(Date.now());\n }\n\n protected override formatMessage(\n logLevel: LogLevel,\n message: unknown,\n _pidMessage: string,\n _formattedLogLevel: string,\n contextMessage: string,\n timestampDiff: string,\n ): string {\n const output = this.stringifyMessage(message, logLevel);\n // padStart(5) (vs Nest's 7) aligns LOG/WARN/DEBUG/ERROR; `verbose` may jitter.\n const level = this.colorize(\n logLevel.toUpperCase().padStart(5, ' '),\n logLevel,\n );\n return `${this.getTimestamp()} ${level} ${contextMessage}${output}${timestampDiff}\\n`;\n }\n}\n\n/**\n * Build the app-wide logger that entrypoints hand to `NestFactory`.\n *\n * @param threshold explicit `LOG_LEVEL` override. CLI tools that must stay quiet\n * regardless of the ambient env pass e.g. `'warn'`. When omitted, the\n * `LOG_LEVEL` env var (then the `'log'` default) wins.\n *\n * @example\n * const app = await NestFactory.create(AppModule, { logger: createAppLogger() });\n */\nexport function createAppLogger(threshold?: LogLevel): CompactConsoleLogger {\n return new CompactConsoleLogger('', {\n logLevels: parseLogLevels(threshold ?? process.env.LOG_LEVEL),\n timestamp: true,\n });\n}\n"],"mappings":";AAqBA,SAAS,qBAAoC;AAG7C,IAAM,SAAqB,CAAC,WAAW,SAAS,OAAO,QAAQ,SAAS,OAAO;AAC/E,IAAM,oBAA8B;AAEpC,IAAM,OAAO,IAAI,KAAK,eAAe,SAAS;AAAA,EAC5C,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AACV,CAAC;AASM,SAAS,eAAe,YAAY,QAAQ,IAAI,WAAuB;AAC5E,QAAM,MAAM,OAAO;AAAA,KAChB,aAAa,mBAAmB,YAAY;AAAA,EAC/C;AACA,MAAI,QAAQ,IAAI;AACd,YAAQ;AAAA,MACN,gCAAgC,SAAS,2BAAsB,iBAAiB;AAAA,IAClF;AACA,WAAO,OAAO,MAAM,OAAO,QAAQ,iBAAiB,CAAC;AAAA,EACvD;AACA,SAAO,OAAO,MAAM,GAAG;AACzB;AAKO,IAAM,uBAAN,cAAmC,cAAc;AAAA;AAAA,EAEnC,UAAU,MAAsB;AACjD,WAAO;AAAA,EACT;AAAA;AAAA,EAGmB,eAAuB;AACxC,WAAO,KAAK,OAAO,KAAK,IAAI,CAAC;AAAA,EAC/B;AAAA,EAEmB,cACjB,UACA,SACA,aACA,oBACA,gBACA,eACQ;AACR,UAAM,SAAS,KAAK,iBAAiB,SAAS,QAAQ;AAEtD,UAAM,QAAQ,KAAK;AAAA,MACjB,SAAS,YAAY,EAAE,SAAS,GAAG,GAAG;AAAA,MACtC;AAAA,IACF;AACA,WAAO,GAAG,KAAK,aAAa,CAAC,IAAI,KAAK,IAAI,cAAc,GAAG,MAAM,GAAG,aAAa;AAAA;AAAA,EACnF;AACF;AAYO,SAAS,gBAAgB,WAA4C;AAC1E,SAAO,IAAI,qBAAqB,IAAI;AAAA,IAClC,WAAW,eAAe,aAAa,QAAQ,IAAI,SAAS;AAAA,IAC5D,WAAW;AAAA,EACb,CAAC;AACH;","names":[]}
@@ -3,7 +3,11 @@ import {
3
3
  } from "./chunk-7B7MMDOJ.js";
4
4
  import {
5
5
  JobsDomainModule
6
- } from "./chunk-CKLM57IE.js";
6
+ } from "./chunk-AC6T2JUX.js";
7
+ import {
8
+ BootValidationError,
9
+ ReservedPoolViolationError
10
+ } from "./chunk-T4BIIU5E.js";
7
11
  import {
8
12
  BULLMQ_CONNECTION,
9
13
  BULLMQ_RESOLVED_CONFIG,
@@ -14,10 +18,6 @@ import {
14
18
  allPoolNames,
15
19
  loadPoolConfig
16
20
  } from "./chunk-RHVN6NA7.js";
17
- import {
18
- BootValidationError,
19
- ReservedPoolViolationError
20
- } from "./chunk-T4BIIU5E.js";
21
21
  import {
22
22
  HandlerRegistry
23
23
  } from "./chunk-7P5ODGLA.js";
@@ -295,4 +295,4 @@ export {
295
295
  JobWorkerOrchestrator,
296
296
  JobWorkerModule
297
297
  };
298
- //# sourceMappingURL=chunk-ENAR3F5S.js.map
298
+ //# sourceMappingURL=chunk-HEOISQ6W.js.map
@@ -1,12 +1,12 @@
1
+ import {
2
+ MemoryJobStore
3
+ } from "./chunk-SNQ3TOWP.js";
1
4
  import {
2
5
  clampLimit,
3
6
  decodeKeysetCursor,
4
7
  encodeKeysetCursor,
5
8
  toJobRunSummary
6
9
  } from "./chunk-L3LZWWSX.js";
7
- import {
8
- MemoryJobStore
9
- } from "./chunk-SNQ3TOWP.js";
10
10
  import {
11
11
  MissingTenantIdError
12
12
  } from "./chunk-T4BIIU5E.js";
@@ -209,4 +209,4 @@ function compareBy(a, b, order) {
209
209
  export {
210
210
  MemoryJobRunService
211
211
  };
212
- //# sourceMappingURL=chunk-CDLWYZVQ.js.map
212
+ //# sourceMappingURL=chunk-IN3EWFB4.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-EDKJU5BO.js";
10
10
  import {
11
11
  DrizzleBridgeDeliveryRepo
12
- } from "./chunk-YULGWXCY.js";
12
+ } from "./chunk-MVKW2BCR.js";
13
13
  import {
14
14
  MemoryBridgeDeliveryRepo
15
15
  } from "./chunk-4DOJBQTP.js";
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-NXXDZ6ZF.js";
25
25
  import {
26
26
  JOB_WORKER_MODULE_OPTIONS
27
- } from "./chunk-ENAR3F5S.js";
27
+ } from "./chunk-HEOISQ6W.js";
28
28
  import {
29
29
  BRIDGE_DELIVERY_REPO,
30
30
  BRIDGE_MODULE_OPTIONS,
@@ -119,4 +119,4 @@ BridgeModule = __decorateClass([
119
119
  export {
120
120
  BridgeModule
121
121
  };
122
- //# sourceMappingURL=chunk-WZOPWQN2.js.map
122
+ //# sourceMappingURL=chunk-IXAE6BN6.js.map
@@ -1,9 +1,9 @@
1
- import {
2
- bridgeDelivery
3
- } from "./chunk-BORNCTH3.js";
4
1
  import {
5
2
  assertTenantId
6
3
  } from "./chunk-6DWFJNIK.js";
4
+ import {
5
+ bridgeDelivery
6
+ } from "./chunk-BORNCTH3.js";
7
7
  import {
8
8
  BRIDGE_MULTI_TENANT
9
9
  } from "./chunk-4LH67P4U.js";
@@ -119,4 +119,4 @@ DrizzleBridgeDeliveryRepo = __decorateClass([
119
119
  export {
120
120
  DrizzleBridgeDeliveryRepo
121
121
  };
122
- //# sourceMappingURL=chunk-YULGWXCY.js.map
122
+ //# sourceMappingURL=chunk-MVKW2BCR.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DrizzleIntegrationRunRecorder
3
- } from "./chunk-HN5HT5WL.js";
3
+ } from "./chunk-VI2VNA6Y.js";
4
4
  import {
5
5
  MemoryRunRecorder
6
6
  } from "./chunk-EO2QPOKH.js";
@@ -84,4 +84,4 @@ IntegrationModule = __decorateClass([
84
84
  export {
85
85
  IntegrationModule
86
86
  };
87
- //# sourceMappingURL=chunk-KFXXOFDC.js.map
87
+ //# sourceMappingURL=chunk-N43D57AP.js.map
@@ -1,11 +1,11 @@
1
+ import {
2
+ FieldDiffSchema
3
+ } from "./chunk-SQDOBLBP.js";
1
4
  import {
2
5
  integrationRunItems,
3
6
  integrationRuns,
4
7
  integrationSubscriptions
5
8
  } from "./chunk-HNWZFNKP.js";
6
- import {
7
- FieldDiffSchema
8
- } from "./chunk-SQDOBLBP.js";
9
9
  import {
10
10
  INTEGRATION_MULTI_TENANT
11
11
  } from "./chunk-S5G3HO7N.js";
@@ -127,4 +127,4 @@ DrizzleIntegrationRunRecorder = __decorateClass([
127
127
  export {
128
128
  DrizzleIntegrationRunRecorder
129
129
  };
130
- //# sourceMappingURL=chunk-HN5HT5WL.js.map
130
+ //# sourceMappingURL=chunk-VI2VNA6Y.js.map
@@ -1,15 +1,3 @@
1
- import {
2
- MetadataEntityService
3
- } from "../../chunk-FCPTHS42.js";
4
- import {
5
- WithAnalytics
6
- } from "../../chunk-IBGER4YK.js";
7
- import {
8
- IntegratedEntityRepository
9
- } from "../../chunk-OTDN3OUQ.js";
10
- import {
11
- IntegratedEntityService
12
- } from "../../chunk-5AAA4LTE.js";
13
1
  import {
14
2
  JunctionIntegrationRepository,
15
3
  buildCompositeExternalId,
@@ -25,8 +13,11 @@ import {
25
13
  MetadataEntityRepository
26
14
  } from "../../chunk-7KOW6PU6.js";
27
15
  import {
28
- ActivityEntityRepository
29
- } from "../../chunk-MKWQKKK7.js";
16
+ MetadataEntityService
17
+ } from "../../chunk-FCPTHS42.js";
18
+ import {
19
+ WithAnalytics
20
+ } from "../../chunk-IBGER4YK.js";
30
21
  import {
31
22
  ActivityEntityService
32
23
  } from "../../chunk-SJGEBMJT.js";
@@ -35,17 +26,11 @@ import {
35
26
  BaseListUseCase
36
27
  } from "../../chunk-EXVDJMIY.js";
37
28
  import {
38
- BaseRepository
39
- } from "../../chunk-J6KZS54B.js";
29
+ IntegratedEntityRepository
30
+ } from "../../chunk-OTDN3OUQ.js";
40
31
  import {
41
- requireRequester,
42
- requireRequesterScope,
43
- tryGetRequester,
44
- withOrgScope,
45
- withRequester,
46
- withSuperuserScope,
47
- withUserScope
48
- } from "../../chunk-ZUKFQL6E.js";
32
+ IntegratedEntityService
33
+ } from "../../chunk-5AAA4LTE.js";
49
34
  import {
50
35
  BaseService
51
36
  } from "../../chunk-BPYZCEHS.js";
@@ -56,6 +41,21 @@ import {
56
41
  emitSafely,
57
42
  entitySnapshot
58
43
  } from "../../chunk-DAHWN63L.js";
44
+ import {
45
+ ActivityEntityRepository
46
+ } from "../../chunk-MKWQKKK7.js";
47
+ import {
48
+ BaseRepository
49
+ } from "../../chunk-J6KZS54B.js";
50
+ import {
51
+ requireRequester,
52
+ requireRequesterScope,
53
+ tryGetRequester,
54
+ withOrgScope,
55
+ withRequester,
56
+ withSuperuserScope,
57
+ withUserScope
58
+ } from "../../chunk-ZUKFQL6E.js";
59
59
  import "../../chunk-2E224ZSN.js";
60
60
  export {
61
61
  ActivityEntityRepository,
@@ -0,0 +1,55 @@
1
+ import { ConsoleLogger, LogLevel } from '@nestjs/common';
2
+
3
+ /**
4
+ * Compact console logger + `LOG_LEVEL` threshold.
5
+ *
6
+ * Nest's default `ConsoleLogger` preamble —
7
+ * `[Nest] <pid> - <full locale date> LEVEL [Context] <message>`
8
+ * — is ~55 chars before the message. In a split-pane dev TUI (process-compose,
9
+ * tmux) every line wraps 2–3×, drowning the actual content. And the generated
10
+ * entrypoints pass no `logger:` option, so consumers have no log-level knob:
11
+ * every subsystem `debug` line (e.g. EventScheduler's per-slot `materialised …`)
12
+ * always prints.
13
+ *
14
+ * This module is the proven swe-brain (second-dogfood) consumer pattern lifted
15
+ * into the runtime so consumers stop rebuilding it by hand:
16
+ *
17
+ * - `CompactConsoleLogger` — drops the `[Nest] <pid> - ` prefix (a supervisor
18
+ * pane header already names the process) and shortens the timestamp to
19
+ * `HH:mm:ss`.
20
+ * - `parseLogLevels` / the `LOG_LEVEL` env convention — a single severity
21
+ * threshold enables that level and everything above it.
22
+ * - `createAppLogger` — the factory the entrypoints hand to `NestFactory`.
23
+ */
24
+
25
+ /**
26
+ * Resolve a `LOG_LEVEL` threshold into the enabled-levels array Nest's
27
+ * `logLevels` option expects.
28
+ *
29
+ * `LOG_LEVEL=debug` → `['debug','log','warn','error','fatal']`. Unknown input
30
+ * warns and falls back to the default (`'log'` and above).
31
+ */
32
+ declare function parseLogLevels(threshold?: string | undefined): LogLevel[];
33
+ /**
34
+ * A `ConsoleLogger` with a compact one-line format tuned for split-pane TUIs.
35
+ */
36
+ declare class CompactConsoleLogger extends ConsoleLogger {
37
+ /** Drop `[Nest] <pid> - ` — a supervisor pane header already identifies the process. */
38
+ protected formatPid(_pid: number): string;
39
+ /** `12:48:42`, not `06/07/2026, 12:48:42 PM`. */
40
+ protected getTimestamp(): string;
41
+ protected formatMessage(logLevel: LogLevel, message: unknown, _pidMessage: string, _formattedLogLevel: string, contextMessage: string, timestampDiff: string): string;
42
+ }
43
+ /**
44
+ * Build the app-wide logger that entrypoints hand to `NestFactory`.
45
+ *
46
+ * @param threshold explicit `LOG_LEVEL` override. CLI tools that must stay quiet
47
+ * regardless of the ambient env pass e.g. `'warn'`. When omitted, the
48
+ * `LOG_LEVEL` env var (then the `'log'` default) wins.
49
+ *
50
+ * @example
51
+ * const app = await NestFactory.create(AppModule, { logger: createAppLogger() });
52
+ */
53
+ declare function createAppLogger(threshold?: LogLevel): CompactConsoleLogger;
54
+
55
+ export { CompactConsoleLogger, createAppLogger, parseLogLevels };
@@ -0,0 +1,12 @@
1
+ import {
2
+ CompactConsoleLogger,
3
+ createAppLogger,
4
+ parseLogLevels
5
+ } from "../../../chunk-H6QRQUAF.js";
6
+ import "../../../chunk-2E224ZSN.js";
7
+ export {
8
+ CompactConsoleLogger,
9
+ createAppLogger,
10
+ parseLogLevels
11
+ };
12
+ //# sourceMappingURL=compact-console-logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,2 @@
1
+ export { CompactConsoleLogger, createAppLogger, parseLogLevels } from './compact-console-logger.js';
2
+ import '@nestjs/common';
@@ -0,0 +1,12 @@
1
+ import {
2
+ CompactConsoleLogger,
3
+ createAppLogger,
4
+ parseLogLevels
5
+ } from "../../../chunk-H6QRQUAF.js";
6
+ import "../../../chunk-2E224ZSN.js";
7
+ export {
8
+ CompactConsoleLogger,
9
+ createAppLogger,
10
+ parseLogLevels
11
+ };
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AnalyticsModule
3
- } from "../../../chunk-J7JMVS2B.js";
3
+ } from "../../../chunk-CZQUOIDY.js";
4
4
  import "../../../chunk-7B3RYX45.js";
5
- import "../../../chunk-J37YWU7Y.js";
6
5
  import "../../../chunk-6I7ULIN6.js";
6
+ import "../../../chunk-J37YWU7Y.js";
7
7
  import "../../../chunk-GYGNEQSC.js";
8
8
  import "../../../chunk-2E224ZSN.js";
9
9
  export {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  AnalyticsModule
3
- } from "../../../chunk-J7JMVS2B.js";
3
+ } from "../../../chunk-CZQUOIDY.js";
4
4
  import {
5
5
  CubeAnalyticsBackend
6
6
  } from "../../../chunk-7B3RYX45.js";
7
- import {
8
- NoopAnalyticsBackend
9
- } from "../../../chunk-J37YWU7Y.js";
10
7
  import {
11
8
  ANALYTICS_QUERY,
12
9
  CUBE_API_SECRET,
13
10
  CUBE_API_URL
14
11
  } from "../../../chunk-6I7ULIN6.js";
12
+ import {
13
+ NoopAnalyticsBackend
14
+ } from "../../../chunk-J37YWU7Y.js";
15
15
  import "../../../chunk-GYGNEQSC.js";
16
16
  import "../../../chunk-2E224ZSN.js";
17
17
  export {
@@ -4,8 +4,8 @@ import {
4
4
  import "../../../chunk-IP4OO26U.js";
5
5
  import "../../../chunk-N5OTOWTP.js";
6
6
  import "../../../chunk-QLTJSCE6.js";
7
- import "../../../chunk-SZVPIHWE.js";
8
7
  import "../../../chunk-BPARRK6F.js";
8
+ import "../../../chunk-SZVPIHWE.js";
9
9
  import "../../../chunk-NPFPZ2HO.js";
10
10
  import "../../../chunk-6XY6ZMMD.js";
11
11
  import "../../../chunk-GYGNEQSC.js";
@@ -29,12 +29,12 @@ import {
29
29
  import {
30
30
  MemoryOAuthStateStore
31
31
  } from "../../../chunk-QLTJSCE6.js";
32
- import {
33
- AuthController
34
- } from "../../../chunk-SZVPIHWE.js";
35
32
  import {
36
33
  OAuthStateError
37
34
  } from "../../../chunk-BPARRK6F.js";
35
+ import {
36
+ AuthController
37
+ } from "../../../chunk-SZVPIHWE.js";
38
38
  import {
39
39
  authOAuthState
40
40
  } from "../../../chunk-NPFPZ2HO.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  DrizzleBridgeDeliveryRepo
3
- } from "../../../chunk-YULGWXCY.js";
4
- import "../../../chunk-BORNCTH3.js";
3
+ } from "../../../chunk-MVKW2BCR.js";
5
4
  import "../../../chunk-6DWFJNIK.js";
5
+ import "../../../chunk-BORNCTH3.js";
6
6
  import "../../../chunk-NXXDZ6ZF.js";
7
7
  import "../../../chunk-4LH67P4U.js";
8
8
  import "../../../chunk-OKXZ63IA.js";
@@ -2,8 +2,8 @@ import {
2
2
  BridgeOutboxDrainHook
3
3
  } from "../../../chunk-E5FJWOMP.js";
4
4
  import "../../../chunk-R6F6KFIL.js";
5
- import "../../../chunk-BORNCTH3.js";
6
5
  import "../../../chunk-6DWFJNIK.js";
6
+ import "../../../chunk-BORNCTH3.js";
7
7
  import "../../../chunk-NXXDZ6ZF.js";
8
8
  import "../../../chunk-Q6LRJ4VI.js";
9
9
  import "../../../chunk-7P5ODGLA.js";
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  BridgeModule
3
- } from "../../../chunk-WZOPWQN2.js";
3
+ } from "../../../chunk-IXAE6BN6.js";
4
4
  import "../../../chunk-5A432NZJ.js";
5
5
  import "../../../chunk-7OVCARTQ.js";
6
6
  import "../../../chunk-EDKJU5BO.js";
7
- import "../../../chunk-YULGWXCY.js";
7
+ import "../../../chunk-MVKW2BCR.js";
8
8
  import "../../../chunk-4DOJBQTP.js";
9
9
  import "../../../chunk-E5FJWOMP.js";
10
10
  import "../../../chunk-R6F6KFIL.js";
11
- import "../../../chunk-BORNCTH3.js";
12
11
  import "../../../chunk-6DWFJNIK.js";
12
+ import "../../../chunk-BORNCTH3.js";
13
13
  import "../../../chunk-NXXDZ6ZF.js";
14
- import "../../../chunk-ENAR3F5S.js";
14
+ import "../../../chunk-HEOISQ6W.js";
15
15
  import "../../../chunk-7B7MMDOJ.js";
16
- import "../../../chunk-CKLM57IE.js";
16
+ import "../../../chunk-AC6T2JUX.js";
17
+ import "../../../chunk-VQOAATIG.js";
18
+ import "../../../chunk-PNZSGAB2.js";
17
19
  import "../../../chunk-3VEVGL74.js";
18
- import "../../../chunk-CDLWYZVQ.js";
20
+ import "../../../chunk-IN3EWFB4.js";
21
+ import "../../../chunk-SNQ3TOWP.js";
19
22
  import "../../../chunk-L3LZWWSX.js";
20
23
  import "../../../chunk-DV4RV2DC.js";
21
- import "../../../chunk-I6MVCB5A.js";
22
- import "../../../chunk-RHVN6NA7.js";
23
24
  import "../../../chunk-E6PLM6QG.js";
24
- import "../../../chunk-VQOAATIG.js";
25
- import "../../../chunk-PNZSGAB2.js";
26
- import "../../../chunk-SNQ3TOWP.js";
27
25
  import "../../../chunk-T4BIIU5E.js";
26
+ import "../../../chunk-I6MVCB5A.js";
27
+ import "../../../chunk-RHVN6NA7.js";
28
28
  import "../../../chunk-Q6LRJ4VI.js";
29
29
  import "../../../chunk-7P5ODGLA.js";
30
30
  import "../../../chunk-ZPL74UQN.js";