@pattern-stack/codegen 0.25.0 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/dist/{chunk-KFXXOFDC.js → chunk-7XDB4OMR.js} +3 -3
- package/dist/{chunk-4MVGAMUA.js → chunk-BK5ICA2F.js} +4 -4
- package/dist/{chunk-J7JMVS2B.js → chunk-CZQUOIDY.js} +4 -4
- package/dist/{chunk-37PILMIT.js → chunk-EEGVDRZE.js} +4 -4
- package/dist/chunk-H6QRQUAF.js +54 -0
- package/dist/chunk-H6QRQUAF.js.map +1 -0
- package/dist/{chunk-LLDJS7PJ.js → chunk-HLURWFIT.js} +4 -4
- package/dist/{chunk-YULGWXCY.js → chunk-MVKW2BCR.js} +4 -4
- package/dist/{chunk-YIVQ7KLS.js → chunk-QO35B6BN.js} +4 -4
- package/dist/{chunk-HN5HT5WL.js → chunk-QXYKV4CE.js} +4 -4
- package/dist/{chunk-WZOPWQN2.js → chunk-XNRKZCVH.js} +2 -2
- package/dist/runtime/base-classes/index.js +16 -16
- package/dist/runtime/shared/logging/compact-console-logger.d.ts +55 -0
- package/dist/runtime/shared/logging/compact-console-logger.js +12 -0
- package/dist/runtime/shared/logging/compact-console-logger.js.map +1 -0
- package/dist/runtime/shared/logging/index.d.ts +2 -0
- package/dist/runtime/shared/logging/index.js +12 -0
- package/dist/runtime/shared/logging/index.js.map +1 -0
- package/dist/runtime/subsystems/analytics/analytics.module.js +2 -2
- package/dist/runtime/subsystems/analytics/index.js +4 -4
- package/dist/runtime/subsystems/auth/auth.module.js +1 -1
- package/dist/runtime/subsystems/auth/index.js +3 -3
- package/dist/runtime/subsystems/bridge/bridge-delivery.drizzle-backend.js +2 -2
- package/dist/runtime/subsystems/bridge/bridge-outbox-drain-hook.js +1 -1
- package/dist/runtime/subsystems/bridge/bridge.module.js +3 -3
- package/dist/runtime/subsystems/bridge/index.js +5 -5
- package/dist/runtime/subsystems/cache/cache.module.js +1 -1
- package/dist/runtime/subsystems/cache/index.js +3 -3
- package/dist/runtime/subsystems/index.js +34 -34
- package/dist/runtime/subsystems/integration/execute-integration.use-case.js +2 -2
- package/dist/runtime/subsystems/integration/index.js +12 -12
- package/dist/runtime/subsystems/integration/integration-cursor-store.drizzle-backend.js +2 -2
- package/dist/runtime/subsystems/integration/integration-run-recorder.drizzle-backend.js +2 -2
- package/dist/runtime/subsystems/integration/integration.module.js +4 -4
- package/dist/runtime/subsystems/observability/index.js +2 -2
- package/dist/runtime/subsystems/observability/observability.module.js +2 -2
- package/dist/runtime/subsystems/storage/index.js +4 -4
- package/dist/runtime/subsystems/storage/storage.module.js +2 -2
- package/dist/src/cli/index.js +18 -16
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/index.js +5 -5
- package/package.json +5 -1
- package/runtime/shared/logging/compact-console-logger.ts +102 -0
- package/runtime/shared/logging/index.ts +10 -0
- /package/dist/{chunk-KFXXOFDC.js.map → chunk-7XDB4OMR.js.map} +0 -0
- /package/dist/{chunk-4MVGAMUA.js.map → chunk-BK5ICA2F.js.map} +0 -0
- /package/dist/{chunk-J7JMVS2B.js.map → chunk-CZQUOIDY.js.map} +0 -0
- /package/dist/{chunk-37PILMIT.js.map → chunk-EEGVDRZE.js.map} +0 -0
- /package/dist/{chunk-LLDJS7PJ.js.map → chunk-HLURWFIT.js.map} +0 -0
- /package/dist/{chunk-YULGWXCY.js.map → chunk-MVKW2BCR.js.map} +0 -0
- /package/dist/{chunk-YIVQ7KLS.js.map → chunk-QO35B6BN.js.map} +0 -0
- /package/dist/{chunk-HN5HT5WL.js.map → chunk-QXYKV4CE.js.map} +0 -0
- /package/dist/{chunk-WZOPWQN2.js.map → chunk-XNRKZCVH.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.26.1] — 2026-06-07
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **Sink-seam emitter (#491 Shape C): generated `*.sink.generated.ts` bases now
|
|
10
|
+
compile for the relative-path (swe-brain) layout.** Two defects made every
|
|
11
|
+
emitted base non-compiling when no tsconfig alias covers the module dir
|
|
12
|
+
(#528):
|
|
13
|
+
- **Repo import one level too deep.** The sink base lives at
|
|
14
|
+
`integrations/<surface>/sinks/` (3 deep under `src/`) but reused the
|
|
15
|
+
*assembly*-relative `repoImportSpecifier` (computed for
|
|
16
|
+
`integrations/<surface>/modules/<provider>/`, 4 deep), emitting
|
|
17
|
+
`../../../../modules/…` — which lands at the repo root, not `src/` (TS2307).
|
|
18
|
+
The caller now recomputes the specifier relative to the SINK dir from the
|
|
19
|
+
resolved repo file path (alias-aware via the same `toImportSpecifier`
|
|
20
|
+
helper, now exported; `EntityModuleLocation` carries `repoFileAbs` /
|
|
21
|
+
`moduleFileAbs`). Correct prefix: `../../../modules/…`. The assembly import
|
|
22
|
+
depth is unchanged.
|
|
23
|
+
- **Bare `userId,` shorthand (TS18004).** `default<E>BuildWrite(record)` is a
|
|
24
|
+
standalone function with only `record` in scope, but a declared `user_id`
|
|
25
|
+
field was special-cased as a bare `userId,` shorthand referencing no
|
|
26
|
+
binding. `userId` is a plain projection field — now emitted as
|
|
27
|
+
`userId: record.userId`, like every other copy-through field.
|
|
28
|
+
- Validation: a new compile-level gate
|
|
29
|
+
(`sink-swe-brain-layout.compile.test.ts`) runs the real emitter into a
|
|
30
|
+
swe-brain-shaped tree (`integrations/<surface>/sinks/` +
|
|
31
|
+
`modules/<plural>/<entity>.repository.ts`, no alias) and `tsc --noEmit`s the
|
|
32
|
+
emitted base — the prior §3b gate missed both (it stubbed the repo import
|
|
33
|
+
same-dir and used no `user_id` field). Found consuming 0.26.0 in swe-brain
|
|
34
|
+
(6 bases, 12 errors).
|
|
35
|
+
|
|
36
|
+
## [0.26.0] — 2026-06-07
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
|
|
40
|
+
- **Runtime: compact console logger + `LOG_LEVEL` threshold
|
|
41
|
+
(`runtime/shared/logging`).** A proven swe-brain (second-dogfood) consumer
|
|
42
|
+
pattern lifted into the runtime, importable as
|
|
43
|
+
`@pattern-stack/codegen/runtime/shared/logging`. `CompactConsoleLogger` drops
|
|
44
|
+
Nest's ~55-char `[Nest] <pid> - <full locale date> LEVEL [Context]`
|
|
45
|
+
preamble (which wraps 2–3× in split-pane dev TUIs) — emitting
|
|
46
|
+
`12:48:42 LOG [Context] message` — and `createAppLogger(threshold?)` gives
|
|
47
|
+
consumers the log-level knob the generated entrypoints never wired: a single
|
|
48
|
+
`LOG_LEVEL` env threshold (`verbose < debug < log < warn < error < fatal`,
|
|
49
|
+
default `log`) that enables that level and above, with an explicit-override arg
|
|
50
|
+
that wins over the env (CLI tools pass `'warn'` to stay quiet). Hand it to
|
|
51
|
+
`NestFactory.create(AppModule, { logger: createAppLogger() })`. See
|
|
52
|
+
`docs/CONSUMER-SETUP.md` §Application logger. (The generated worker template
|
|
53
|
+
doesn't auto-wire it yet — follow-up.)
|
|
54
|
+
|
|
5
55
|
## [0.25.0] — 2026-06-07
|
|
6
56
|
|
|
7
57
|
### Fixed
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DrizzleIntegrationRunRecorder
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QXYKV4CE.js";
|
|
4
4
|
import {
|
|
5
5
|
MemoryRunRecorder
|
|
6
6
|
} from "./chunk-EO2QPOKH.js";
|
|
7
7
|
import {
|
|
8
8
|
PostgresCursorStore
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HLURWFIT.js";
|
|
10
10
|
import {
|
|
11
11
|
MemoryCursorStore
|
|
12
12
|
} from "./chunk-AHV4GDYM.js";
|
|
@@ -84,4 +84,4 @@ IntegrationModule = __decorateClass([
|
|
|
84
84
|
export {
|
|
85
85
|
IntegrationModule
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=chunk-
|
|
87
|
+
//# sourceMappingURL=chunk-7XDB4OMR.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-
|
|
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-
|
|
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-
|
|
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":[]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
integrationSubscriptions
|
|
3
3
|
} from "./chunk-HNWZFNKP.js";
|
|
4
|
-
import {
|
|
5
|
-
INTEGRATION_MULTI_TENANT
|
|
6
|
-
} from "./chunk-S5G3HO7N.js";
|
|
7
4
|
import {
|
|
8
5
|
assertTenantId
|
|
9
6
|
} from "./chunk-MZ6GV4YF.js";
|
|
7
|
+
import {
|
|
8
|
+
INTEGRATION_MULTI_TENANT
|
|
9
|
+
} from "./chunk-S5G3HO7N.js";
|
|
10
10
|
import {
|
|
11
11
|
DRIZZLE
|
|
12
12
|
} from "./chunk-U64T4YZE.js";
|
|
@@ -97,4 +97,4 @@ PostgresCursorStore = __decorateClass([
|
|
|
97
97
|
export {
|
|
98
98
|
PostgresCursorStore
|
|
99
99
|
};
|
|
100
|
-
//# sourceMappingURL=chunk-
|
|
100
|
+
//# sourceMappingURL=chunk-HLURWFIT.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-
|
|
122
|
+
//# sourceMappingURL=chunk-MVKW2BCR.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
assertTenantId
|
|
3
|
+
} from "./chunk-MZ6GV4YF.js";
|
|
1
4
|
import {
|
|
2
5
|
INTEGRATION_CHANGE_EMITTER,
|
|
3
6
|
INTEGRATION_CHANGE_SOURCE,
|
|
@@ -7,9 +10,6 @@ import {
|
|
|
7
10
|
INTEGRATION_RUN_RECORDER,
|
|
8
11
|
INTEGRATION_SINK
|
|
9
12
|
} from "./chunk-S5G3HO7N.js";
|
|
10
|
-
import {
|
|
11
|
-
assertTenantId
|
|
12
|
-
} from "./chunk-MZ6GV4YF.js";
|
|
13
13
|
import {
|
|
14
14
|
__decorateClass,
|
|
15
15
|
__decorateParam
|
|
@@ -260,4 +260,4 @@ ExecuteIntegrationUseCase = __decorateClass([
|
|
|
260
260
|
export {
|
|
261
261
|
ExecuteIntegrationUseCase
|
|
262
262
|
};
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
263
|
+
//# sourceMappingURL=chunk-QO35B6BN.js.map
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
FieldDiffSchema
|
|
8
8
|
} from "./chunk-SQDOBLBP.js";
|
|
9
|
-
import {
|
|
10
|
-
INTEGRATION_MULTI_TENANT
|
|
11
|
-
} from "./chunk-S5G3HO7N.js";
|
|
12
9
|
import {
|
|
13
10
|
assertTenantId
|
|
14
11
|
} from "./chunk-MZ6GV4YF.js";
|
|
12
|
+
import {
|
|
13
|
+
INTEGRATION_MULTI_TENANT
|
|
14
|
+
} from "./chunk-S5G3HO7N.js";
|
|
15
15
|
import {
|
|
16
16
|
DRIZZLE
|
|
17
17
|
} from "./chunk-U64T4YZE.js";
|
|
@@ -127,4 +127,4 @@ DrizzleIntegrationRunRecorder = __decorateClass([
|
|
|
127
127
|
export {
|
|
128
128
|
DrizzleIntegrationRunRecorder
|
|
129
129
|
};
|
|
130
|
-
//# sourceMappingURL=chunk-
|
|
130
|
+
//# sourceMappingURL=chunk-QXYKV4CE.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-EDKJU5BO.js";
|
|
10
10
|
import {
|
|
11
11
|
DrizzleBridgeDeliveryRepo
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MVKW2BCR.js";
|
|
13
13
|
import {
|
|
14
14
|
MemoryBridgeDeliveryRepo
|
|
15
15
|
} from "./chunk-4DOJBQTP.js";
|
|
@@ -119,4 +119,4 @@ BridgeModule = __decorateClass([
|
|
|
119
119
|
export {
|
|
120
120
|
BridgeModule
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=chunk-
|
|
122
|
+
//# sourceMappingURL=chunk-XNRKZCVH.js.map
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
KnowledgeEntityRepository
|
|
3
|
+
} from "../../chunk-NN7XZEGF.js";
|
|
4
|
+
import {
|
|
5
|
+
KnowledgeEntityService
|
|
6
|
+
} from "../../chunk-B7SC2V45.js";
|
|
7
|
+
import {
|
|
8
|
+
MetadataEntityRepository
|
|
9
|
+
} from "../../chunk-7KOW6PU6.js";
|
|
1
10
|
import {
|
|
2
11
|
MetadataEntityService
|
|
3
12
|
} from "../../chunk-FCPTHS42.js";
|
|
4
13
|
import {
|
|
5
14
|
WithAnalytics
|
|
6
15
|
} from "../../chunk-IBGER4YK.js";
|
|
16
|
+
import {
|
|
17
|
+
BaseFindByIdUseCase,
|
|
18
|
+
BaseListUseCase
|
|
19
|
+
} from "../../chunk-EXVDJMIY.js";
|
|
7
20
|
import {
|
|
8
21
|
IntegratedEntityRepository
|
|
9
22
|
} from "../../chunk-OTDN3OUQ.js";
|
|
@@ -15,25 +28,9 @@ import {
|
|
|
15
28
|
buildCompositeExternalId,
|
|
16
29
|
parseCompositeExternalId
|
|
17
30
|
} from "../../chunk-2FTZLDBP.js";
|
|
18
|
-
import {
|
|
19
|
-
KnowledgeEntityRepository
|
|
20
|
-
} from "../../chunk-NN7XZEGF.js";
|
|
21
|
-
import {
|
|
22
|
-
KnowledgeEntityService
|
|
23
|
-
} from "../../chunk-B7SC2V45.js";
|
|
24
|
-
import {
|
|
25
|
-
MetadataEntityRepository
|
|
26
|
-
} from "../../chunk-7KOW6PU6.js";
|
|
27
31
|
import {
|
|
28
32
|
ActivityEntityRepository
|
|
29
33
|
} from "../../chunk-MKWQKKK7.js";
|
|
30
|
-
import {
|
|
31
|
-
ActivityEntityService
|
|
32
|
-
} from "../../chunk-SJGEBMJT.js";
|
|
33
|
-
import {
|
|
34
|
-
BaseFindByIdUseCase,
|
|
35
|
-
BaseListUseCase
|
|
36
|
-
} from "../../chunk-EXVDJMIY.js";
|
|
37
34
|
import {
|
|
38
35
|
BaseRepository
|
|
39
36
|
} from "../../chunk-J6KZS54B.js";
|
|
@@ -46,6 +43,9 @@ import {
|
|
|
46
43
|
withSuperuserScope,
|
|
47
44
|
withUserScope
|
|
48
45
|
} from "../../chunk-ZUKFQL6E.js";
|
|
46
|
+
import {
|
|
47
|
+
ActivityEntityService
|
|
48
|
+
} from "../../chunk-SJGEBMJT.js";
|
|
49
49
|
import {
|
|
50
50
|
BaseService
|
|
51
51
|
} from "../../chunk-BPYZCEHS.js";
|
|
@@ -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,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-
|
|
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-
|
|
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-
|
|
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,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BridgeModule
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-XNRKZCVH.js";
|
|
4
4
|
import "../../../chunk-5A432NZJ.js";
|
|
5
5
|
import "../../../chunk-7OVCARTQ.js";
|
|
6
6
|
import "../../../chunk-EDKJU5BO.js";
|
|
7
|
-
import "../../../chunk-
|
|
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
14
|
import "../../../chunk-ENAR3F5S.js";
|
|
15
15
|
import "../../../chunk-7B7MMDOJ.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BridgeModule
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-XNRKZCVH.js";
|
|
4
4
|
import "../../../chunk-5A432NZJ.js";
|
|
5
5
|
import {
|
|
6
6
|
EventFlowService
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "../../../chunk-EDKJU5BO.js";
|
|
11
11
|
import {
|
|
12
12
|
DrizzleBridgeDeliveryRepo
|
|
13
|
-
} from "../../../chunk-
|
|
13
|
+
} from "../../../chunk-MVKW2BCR.js";
|
|
14
14
|
import {
|
|
15
15
|
MemoryBridgeDeliveryRepo
|
|
16
16
|
} from "../../../chunk-4DOJBQTP.js";
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
BRIDGE_DELIVERY_JOB_TYPE,
|
|
22
22
|
BridgeDeliveryHandler
|
|
23
23
|
} from "../../../chunk-R6F6KFIL.js";
|
|
24
|
+
import {
|
|
25
|
+
assertTenantId
|
|
26
|
+
} from "../../../chunk-6DWFJNIK.js";
|
|
24
27
|
import {
|
|
25
28
|
bridgeDelivery,
|
|
26
29
|
bridgeDeliveryStatusEnum
|
|
27
30
|
} from "../../../chunk-BORNCTH3.js";
|
|
28
|
-
import {
|
|
29
|
-
assertTenantId
|
|
30
|
-
} from "../../../chunk-6DWFJNIK.js";
|
|
31
31
|
import {
|
|
32
32
|
BridgeReservedPoolsNotPolledError,
|
|
33
33
|
MissingTenantIdError,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
CacheModule
|
|
3
3
|
} from "../../../chunk-COGHTKXY.js";
|
|
4
4
|
import "../../../chunk-T6C4LFLC.js";
|
|
5
|
-
import "../../../chunk-FASRXRX5.js";
|
|
6
5
|
import "../../../chunk-IF5I3DAA.js";
|
|
6
|
+
import "../../../chunk-FASRXRX5.js";
|
|
7
7
|
import "../../../chunk-L6FTY45T.js";
|
|
8
8
|
import "../../../chunk-GYGNEQSC.js";
|
|
9
9
|
import "../../../chunk-U64T4YZE.js";
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
DrizzleCacheService
|
|
7
7
|
} from "../../../chunk-T6C4LFLC.js";
|
|
8
|
-
import {
|
|
9
|
-
cacheEntries
|
|
10
|
-
} from "../../../chunk-FASRXRX5.js";
|
|
11
8
|
import {
|
|
12
9
|
MemoryCacheService
|
|
13
10
|
} from "../../../chunk-IF5I3DAA.js";
|
|
11
|
+
import {
|
|
12
|
+
cacheEntries
|
|
13
|
+
} from "../../../chunk-FASRXRX5.js";
|
|
14
14
|
import {
|
|
15
15
|
CACHE,
|
|
16
16
|
CACHE_DEFAULT_TTL
|