ark-runtime-kernel 1.4.0 → 1.6.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.
@@ -260,6 +260,12 @@ declare class PolicyEngine<Context = unknown> {
260
260
  interface ArchitectureLayer {
261
261
  name: string;
262
262
  prefixes: string[];
263
+ /**
264
+ * Custom matcher for teams whose intent names don't follow prefix conventions.
265
+ * Checked before any prefix matching, in layer declaration order. A layer may
266
+ * use `match` alone (with `prefixes: []`), prefixes alone, or both.
267
+ */
268
+ match?: (name: string) => boolean;
263
269
  description?: string;
264
270
  order?: number;
265
271
  }
@@ -976,6 +982,11 @@ interface CreateArkKernelOptions {
976
982
  outbox?: OutboxStore;
977
983
  metadata?: MetadataRegistry;
978
984
  projections?: ProjectionRegistry;
985
+ /**
986
+ * Cap for in-memory event history, trace, and audit records.
987
+ * Defaults to DEFAULT_MAX_HISTORY_SIZE (1000); oldest records are evicted
988
+ * first. Pass Infinity for unbounded retention (pre-1.6 behavior).
989
+ */
979
990
  maxHistorySize?: number;
980
991
  autoApplyProjections?: boolean;
981
992
  strictEventContracts?: boolean;
@@ -260,6 +260,12 @@ declare class PolicyEngine<Context = unknown> {
260
260
  interface ArchitectureLayer {
261
261
  name: string;
262
262
  prefixes: string[];
263
+ /**
264
+ * Custom matcher for teams whose intent names don't follow prefix conventions.
265
+ * Checked before any prefix matching, in layer declaration order. A layer may
266
+ * use `match` alone (with `prefixes: []`), prefixes alone, or both.
267
+ */
268
+ match?: (name: string) => boolean;
263
269
  description?: string;
264
270
  order?: number;
265
271
  }
@@ -976,6 +982,11 @@ interface CreateArkKernelOptions {
976
982
  outbox?: OutboxStore;
977
983
  metadata?: MetadataRegistry;
978
984
  projections?: ProjectionRegistry;
985
+ /**
986
+ * Cap for in-memory event history, trace, and audit records.
987
+ * Defaults to DEFAULT_MAX_HISTORY_SIZE (1000); oldest records are evicted
988
+ * first. Pass Infinity for unbounded retention (pre-1.6 behavior).
989
+ */
979
990
  maxHistorySize?: number;
980
991
  autoApplyProjections?: boolean;
981
992
  strictEventContracts?: boolean;
@@ -188,10 +188,15 @@ Example config:
188
188
  `tsconfig.json` — relative, path-alias (e.g. `@infra/db`), package imports, dynamic
189
189
  `import()`, and `require()` — plus string intent references. It also flags raw
190
190
  `publish()` calls, publish calls without `metadata.source`, and source intent literals
191
- whose resolved layer differs from the publishing file layer. Pass `--tsconfig <path>` to point at a specific config
192
- (otherwise the nearest `tsconfig.json` from `--root` is used). It resolves modules the way
193
- your build does, but is intentionally not yet a full type-graph analyzer (cross-layer
194
- type-only references beyond the import specifier are out of scope).
191
+ whose resolved layer differs from the publishing file layer. Pass `--tsconfig <path>` to force one config
192
+ for every file; otherwise each source file uses the nearest `tsconfig.json` above it (like
193
+ `tsc`), so monorepos with per-package alias maps work under a single `--root`. It resolves
194
+ modules the way your build does, but is intentionally not yet a full type-graph analyzer
195
+ (cross-layer type-only references beyond the import specifier are out of scope).
196
+
197
+ Repeat runs are cached in `node_modules/.cache/ark-check.json` — unchanged files skip the
198
+ parse, while import edges always re-resolve against the live filesystem so the cache can
199
+ never hide a new violation. `--no-cache` disables it.
195
200
 
196
201
  `ark-check --json` also reports `warnings` for incomplete governance coverage: missing
197
202
  layers, unclassified included files, unmatched layer patterns, duplicate layers, and rules
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ark-runtime-kernel",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "description": "Architectural Runtime Kernel — governance for Hexagonal + Event-Driven + DDD systems",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
package/server.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "url": "https://github.com/pedroknigge/ark-runtime-kernel",
7
7
  "source": "github"
8
8
  },
9
- "version": "1.4.0",
9
+ "version": "1.6.0",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "ark-runtime-kernel",
14
- "version": "1.4.0",
14
+ "version": "1.6.0",
15
15
  "runtimeHint": "npx",
16
16
  "transport": {
17
17
  "type": "stdio"