ark-runtime-kernel 1.5.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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ark-runtime-kernel",
3
- "version": "1.5.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.5.0",
9
+ "version": "1.6.0",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "ark-runtime-kernel",
14
- "version": "1.5.0",
14
+ "version": "1.6.0",
15
15
  "runtimeHint": "npx",
16
16
  "transport": {
17
17
  "type": "stdio"