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.
- package/README.md +10 -0
- package/bin/ark-check.mjs +141 -33
- package/dist/index.cjs +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -4
- package/dist/index.d.ts +10 -4
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/nestjs/index.cjs +6 -4
- package/dist/nestjs/index.cjs.map +1 -1
- package/dist/nestjs/index.d.cts +1 -1
- package/dist/nestjs/index.d.ts +1 -1
- package/dist/nestjs/index.js +6 -4
- package/dist/nestjs/index.js.map +1 -1
- package/dist/{types-7K_KQCgS.d.cts → types-Dr307WEm.d.cts} +11 -0
- package/dist/{types-7K_KQCgS.d.ts → types-Dr307WEm.d.ts} +11 -0
- package/docs/agent-guide.md +9 -4
- package/package.json +1 -1
- package/server.json +2 -2
|
@@ -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/docs/agent-guide.md
CHANGED
|
@@ -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
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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
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.
|
|
9
|
+
"version": "1.6.0",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "ark-runtime-kernel",
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.6.0",
|
|
15
15
|
"runtimeHint": "npx",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|