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.
- 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/package.json +1 -1
- package/server.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { I as IntentRegistry, a as IntentName, D as DefineIntentOptions, b as IntentCreator, P as PolicyViolation, c as PolicySeverity, d as PolicyEnforcementMode, e as Policy, C as CreateArchitectureProfileOptions, A as ArchitectureProfile, f as CreateElevenLayerArkConfigOptions, g as ArkCheckConfig, h as DependencyGraph, G as GraphEdge, i as IntentRelationship, j as AuditStore, k as AuditRecord, l as AuditQuery, m as CreateAuditTrailOptions, n as AuditTrail, E as EventContractRegistry, o as EventContract, p as DomainEvent, q as EventContractValidationResult, O as OutboxStore, r as OutboxRecord, s as OutboxStatus, t as EventBusOptions, u as EventBus, v as CreateObservabilityReporterOptions, w as ObservabilityReporter, M as MetadataRegistry, R as ReadModelStore, x as CreateProjectionRegistryOptions, y as ProjectionRegistry, z as PolicyEngine, B as ArkManifest, W as WorkflowStore, S as SagaContext, F as WorkflowSnapshot, H as SagaDefinition, J as CreateWorkflowEngineOptions, K as SagaInstance, L as WorkflowEngine, N as CreateArkKernelOptions, Q as ArkKernel, T as TraceRecordType, U as TraceRecord, V as ObservabilityDriftReport } from './types-
|
|
2
|
-
export { X as ArchitectureLayer, Y as ArchitectureLayerConfig, Z as ArchitectureRule, _ as ArkManifestArchitecture, $ as ArkManifestData, a0 as ArkManifestEntityLink, a1 as ArkManifestGraph, a2 as ArkManifestIntent, a3 as ArkManifestPolicy, a4 as ArkManifestProjection, a5 as AuditRecordInput, a6 as AuditRecordType, a7 as CorrelationId, a8 as EntityMeta, a9 as EventContractIssue, aa as EventHandler, ab as EventInterceptionInfo, ac as EventInterceptor, ad as EventInterceptorContext, ae as EventMetadata, af as EventPayloadPatch, ag as EventPayloadSchema, ah as EventPublisher, ai as EventSchemaField, aj as EventSchemaFieldType, ak as FieldMeta, al as GraphNode, am as IntentRelationshipKind, an as ObservabilityFlow, ao as ObservedLayerFlowMode, ap as PolicyEvaluationResult, aq as ProjectionCheckpoint, ar as ProjectionDefinition, as as PublishedEventRecord, at as RetryPolicy, au as SagaStatus, av as SagaStep, aw as TraceSink, ax as Unsubscribe, ay as WorkflowDefinition, az as WorkflowStatus, aA as WorkflowStep } from './types-
|
|
1
|
+
import { I as IntentRegistry, a as IntentName, D as DefineIntentOptions, b as IntentCreator, P as PolicyViolation, c as PolicySeverity, d as PolicyEnforcementMode, e as Policy, C as CreateArchitectureProfileOptions, A as ArchitectureProfile, f as CreateElevenLayerArkConfigOptions, g as ArkCheckConfig, h as DependencyGraph, G as GraphEdge, i as IntentRelationship, j as AuditStore, k as AuditRecord, l as AuditQuery, m as CreateAuditTrailOptions, n as AuditTrail, E as EventContractRegistry, o as EventContract, p as DomainEvent, q as EventContractValidationResult, O as OutboxStore, r as OutboxRecord, s as OutboxStatus, t as EventBusOptions, u as EventBus, v as CreateObservabilityReporterOptions, w as ObservabilityReporter, M as MetadataRegistry, R as ReadModelStore, x as CreateProjectionRegistryOptions, y as ProjectionRegistry, z as PolicyEngine, B as ArkManifest, W as WorkflowStore, S as SagaContext, F as WorkflowSnapshot, H as SagaDefinition, J as CreateWorkflowEngineOptions, K as SagaInstance, L as WorkflowEngine, N as CreateArkKernelOptions, Q as ArkKernel, T as TraceRecordType, U as TraceRecord, V as ObservabilityDriftReport } from './types-Dr307WEm.cjs';
|
|
2
|
+
export { X as ArchitectureLayer, Y as ArchitectureLayerConfig, Z as ArchitectureRule, _ as ArkManifestArchitecture, $ as ArkManifestData, a0 as ArkManifestEntityLink, a1 as ArkManifestGraph, a2 as ArkManifestIntent, a3 as ArkManifestPolicy, a4 as ArkManifestProjection, a5 as AuditRecordInput, a6 as AuditRecordType, a7 as CorrelationId, a8 as EntityMeta, a9 as EventContractIssue, aa as EventHandler, ab as EventInterceptionInfo, ac as EventInterceptor, ad as EventInterceptorContext, ae as EventMetadata, af as EventPayloadPatch, ag as EventPayloadSchema, ah as EventPublisher, ai as EventSchemaField, aj as EventSchemaFieldType, ak as FieldMeta, al as GraphNode, am as IntentRelationshipKind, an as ObservabilityFlow, ao as ObservedLayerFlowMode, ap as PolicyEvaluationResult, aq as ProjectionCheckpoint, ar as ProjectionDefinition, as as PublishedEventRecord, at as RetryPolicy, au as SagaStatus, av as SagaStep, aw as TraceSink, ax as Unsubscribe, ay as WorkflowDefinition, az as WorkflowStatus, aA as WorkflowStep } from './types-Dr307WEm.cjs';
|
|
3
3
|
|
|
4
4
|
/** Ark library version — single source of truth. */
|
|
5
|
-
declare const version = "1.
|
|
5
|
+
declare const version = "1.6.0";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* defineIntent
|
|
@@ -376,6 +376,12 @@ declare function createSaga<P extends SagaContext = SagaContext>(def: SagaDefini
|
|
|
376
376
|
id?: string;
|
|
377
377
|
}): SagaInstance<P>;
|
|
378
378
|
|
|
379
|
+
/**
|
|
380
|
+
* Default cap for in-memory history, trace, and audit records. Without a cap a
|
|
381
|
+
* long-running process grows without bound on every publish. Pass
|
|
382
|
+
* `maxHistorySize: Infinity` to explicitly opt back into unbounded retention.
|
|
383
|
+
*/
|
|
384
|
+
declare const DEFAULT_MAX_HISTORY_SIZE = 1000;
|
|
379
385
|
declare function createArkKernel(options?: CreateArkKernelOptions): ArkKernel;
|
|
380
386
|
declare function createStrictArkKernel(options?: CreateArkKernelOptions): ArkKernel;
|
|
381
387
|
declare function createLenientArkKernel(options?: CreateArkKernelOptions): ArkKernel;
|
|
@@ -546,4 +552,4 @@ interface AICodeGateOptions<Context = AICodeGateContext> {
|
|
|
546
552
|
}
|
|
547
553
|
declare function createAICodeGate<Context = AICodeGateContext>(options?: AICodeGateOptions<Context>): AICodeGate<Context>;
|
|
548
554
|
|
|
549
|
-
export { type AICodeGate, type AICodeGateContext, type AICodeGateOptions, type AICodeGateResult, type AICodeGateViolation, type AIGateExtension, type Adapter, type AdapterGovernanceIssue, type AdapterGovernanceResult, ArchitectureProfile, ArkCheckConfig, ArkKernel, ArkManifest, type ArkTestHarness, type ArkTestSnapshot, AuditQuery, AuditRecord, AuditStore, AuditTrail, type BuildPublishPolicyContextOptions, type ContractCheckResult, type CreateAdapterOptions, CreateArchitectureProfileOptions, CreateArkKernelOptions, type CreateArkManifestOptions, CreateAuditTrailOptions, CreateElevenLayerArkConfigOptions, CreateObservabilityReporterOptions, CreateProjectionRegistryOptions, CreateWorkflowEngineOptions, DefineIntentOptions, type DefinePolicyOptions, type DefinePortOptions, DependencyGraph, DomainEvent, EventBus, EventBusOptions, EventContract, EventContractRegistry, EventContractRegistryImpl, EventContractValidationResult, EventContractViolationError, GraphEdge, type GraphPolicyContext, InMemoryAuditStore, InMemoryOutboxStore, InMemoryReadModelStore, InMemoryWorkflowStore, IntentCreator, IntentCreator as IntentDefinition, IntentName, type IntentNameValidation, IntentRegistry, IntentRelationship, InvalidIntentNameError, type LayerFlowRule, LayerPolicyContextError, type LayerPolicyOptions, MANIFEST_SCHEMA_VERSION, MetadataRegistry, ObservabilityDriftReport, ObservabilityReporter, ObservedLayerFlowViolationError, OutboxRecord, OutboxStatus, OutboxStore, Policy, PolicyEnforcementMode, PolicyEngine, PolicySeverity, PolicyViolation, PolicyViolationError, type Port, ProjectionRegistry, type PublishPolicyContext, ReadModelStore, SagaDefinition, SagaInstance, SourceMetadataOverrideError, type SyncRegistryOptions, TraceRecord, TraceRecordType, UnknownEventSourceError, UnregisteredIntentError, WorkflowEngine, WorkflowSnapshot, WorkflowStore, architecturalPolicies, buildPublishPolicyContext, checkAdapterGovernance, checkContract, createAICodeGate, createAdapter, createArchitectureProfile, createArkKernel, createArkManifest, createArkTestHarness, createAuditTrail, createDependencyGraph, createElevenLayerArkConfig, createEventBus, createEventContractRegistry, createIntentRegistry, createLenientArkKernel, createMetadataRegistry, createObservabilityReporter, createProjectionRegistry, createSaga, createStrictArkKernel, createWorkflowEngine, defaultIntentRegistry, defineArchitectureProfilePolicy, defineIntent, defineLayerPolicy, definePolicy, definePort, definePublishPolicy, elevenLayerProfile, isLayerPolicy, syncRegistryToGraph, validateIntentName, version };
|
|
555
|
+
export { type AICodeGate, type AICodeGateContext, type AICodeGateOptions, type AICodeGateResult, type AICodeGateViolation, type AIGateExtension, type Adapter, type AdapterGovernanceIssue, type AdapterGovernanceResult, ArchitectureProfile, ArkCheckConfig, ArkKernel, ArkManifest, type ArkTestHarness, type ArkTestSnapshot, AuditQuery, AuditRecord, AuditStore, AuditTrail, type BuildPublishPolicyContextOptions, type ContractCheckResult, type CreateAdapterOptions, CreateArchitectureProfileOptions, CreateArkKernelOptions, type CreateArkManifestOptions, CreateAuditTrailOptions, CreateElevenLayerArkConfigOptions, CreateObservabilityReporterOptions, CreateProjectionRegistryOptions, CreateWorkflowEngineOptions, DEFAULT_MAX_HISTORY_SIZE, DefineIntentOptions, type DefinePolicyOptions, type DefinePortOptions, DependencyGraph, DomainEvent, EventBus, EventBusOptions, EventContract, EventContractRegistry, EventContractRegistryImpl, EventContractValidationResult, EventContractViolationError, GraphEdge, type GraphPolicyContext, InMemoryAuditStore, InMemoryOutboxStore, InMemoryReadModelStore, InMemoryWorkflowStore, IntentCreator, IntentCreator as IntentDefinition, IntentName, type IntentNameValidation, IntentRegistry, IntentRelationship, InvalidIntentNameError, type LayerFlowRule, LayerPolicyContextError, type LayerPolicyOptions, MANIFEST_SCHEMA_VERSION, MetadataRegistry, ObservabilityDriftReport, ObservabilityReporter, ObservedLayerFlowViolationError, OutboxRecord, OutboxStatus, OutboxStore, Policy, PolicyEnforcementMode, PolicyEngine, PolicySeverity, PolicyViolation, PolicyViolationError, type Port, ProjectionRegistry, type PublishPolicyContext, ReadModelStore, SagaDefinition, SagaInstance, SourceMetadataOverrideError, type SyncRegistryOptions, TraceRecord, TraceRecordType, UnknownEventSourceError, UnregisteredIntentError, WorkflowEngine, WorkflowSnapshot, WorkflowStore, architecturalPolicies, buildPublishPolicyContext, checkAdapterGovernance, checkContract, createAICodeGate, createAdapter, createArchitectureProfile, createArkKernel, createArkManifest, createArkTestHarness, createAuditTrail, createDependencyGraph, createElevenLayerArkConfig, createEventBus, createEventContractRegistry, createIntentRegistry, createLenientArkKernel, createMetadataRegistry, createObservabilityReporter, createProjectionRegistry, createSaga, createStrictArkKernel, createWorkflowEngine, defaultIntentRegistry, defineArchitectureProfilePolicy, defineIntent, defineLayerPolicy, definePolicy, definePort, definePublishPolicy, elevenLayerProfile, isLayerPolicy, syncRegistryToGraph, validateIntentName, version };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { I as IntentRegistry, a as IntentName, D as DefineIntentOptions, b as IntentCreator, P as PolicyViolation, c as PolicySeverity, d as PolicyEnforcementMode, e as Policy, C as CreateArchitectureProfileOptions, A as ArchitectureProfile, f as CreateElevenLayerArkConfigOptions, g as ArkCheckConfig, h as DependencyGraph, G as GraphEdge, i as IntentRelationship, j as AuditStore, k as AuditRecord, l as AuditQuery, m as CreateAuditTrailOptions, n as AuditTrail, E as EventContractRegistry, o as EventContract, p as DomainEvent, q as EventContractValidationResult, O as OutboxStore, r as OutboxRecord, s as OutboxStatus, t as EventBusOptions, u as EventBus, v as CreateObservabilityReporterOptions, w as ObservabilityReporter, M as MetadataRegistry, R as ReadModelStore, x as CreateProjectionRegistryOptions, y as ProjectionRegistry, z as PolicyEngine, B as ArkManifest, W as WorkflowStore, S as SagaContext, F as WorkflowSnapshot, H as SagaDefinition, J as CreateWorkflowEngineOptions, K as SagaInstance, L as WorkflowEngine, N as CreateArkKernelOptions, Q as ArkKernel, T as TraceRecordType, U as TraceRecord, V as ObservabilityDriftReport } from './types-
|
|
2
|
-
export { X as ArchitectureLayer, Y as ArchitectureLayerConfig, Z as ArchitectureRule, _ as ArkManifestArchitecture, $ as ArkManifestData, a0 as ArkManifestEntityLink, a1 as ArkManifestGraph, a2 as ArkManifestIntent, a3 as ArkManifestPolicy, a4 as ArkManifestProjection, a5 as AuditRecordInput, a6 as AuditRecordType, a7 as CorrelationId, a8 as EntityMeta, a9 as EventContractIssue, aa as EventHandler, ab as EventInterceptionInfo, ac as EventInterceptor, ad as EventInterceptorContext, ae as EventMetadata, af as EventPayloadPatch, ag as EventPayloadSchema, ah as EventPublisher, ai as EventSchemaField, aj as EventSchemaFieldType, ak as FieldMeta, al as GraphNode, am as IntentRelationshipKind, an as ObservabilityFlow, ao as ObservedLayerFlowMode, ap as PolicyEvaluationResult, aq as ProjectionCheckpoint, ar as ProjectionDefinition, as as PublishedEventRecord, at as RetryPolicy, au as SagaStatus, av as SagaStep, aw as TraceSink, ax as Unsubscribe, ay as WorkflowDefinition, az as WorkflowStatus, aA as WorkflowStep } from './types-
|
|
1
|
+
import { I as IntentRegistry, a as IntentName, D as DefineIntentOptions, b as IntentCreator, P as PolicyViolation, c as PolicySeverity, d as PolicyEnforcementMode, e as Policy, C as CreateArchitectureProfileOptions, A as ArchitectureProfile, f as CreateElevenLayerArkConfigOptions, g as ArkCheckConfig, h as DependencyGraph, G as GraphEdge, i as IntentRelationship, j as AuditStore, k as AuditRecord, l as AuditQuery, m as CreateAuditTrailOptions, n as AuditTrail, E as EventContractRegistry, o as EventContract, p as DomainEvent, q as EventContractValidationResult, O as OutboxStore, r as OutboxRecord, s as OutboxStatus, t as EventBusOptions, u as EventBus, v as CreateObservabilityReporterOptions, w as ObservabilityReporter, M as MetadataRegistry, R as ReadModelStore, x as CreateProjectionRegistryOptions, y as ProjectionRegistry, z as PolicyEngine, B as ArkManifest, W as WorkflowStore, S as SagaContext, F as WorkflowSnapshot, H as SagaDefinition, J as CreateWorkflowEngineOptions, K as SagaInstance, L as WorkflowEngine, N as CreateArkKernelOptions, Q as ArkKernel, T as TraceRecordType, U as TraceRecord, V as ObservabilityDriftReport } from './types-Dr307WEm.js';
|
|
2
|
+
export { X as ArchitectureLayer, Y as ArchitectureLayerConfig, Z as ArchitectureRule, _ as ArkManifestArchitecture, $ as ArkManifestData, a0 as ArkManifestEntityLink, a1 as ArkManifestGraph, a2 as ArkManifestIntent, a3 as ArkManifestPolicy, a4 as ArkManifestProjection, a5 as AuditRecordInput, a6 as AuditRecordType, a7 as CorrelationId, a8 as EntityMeta, a9 as EventContractIssue, aa as EventHandler, ab as EventInterceptionInfo, ac as EventInterceptor, ad as EventInterceptorContext, ae as EventMetadata, af as EventPayloadPatch, ag as EventPayloadSchema, ah as EventPublisher, ai as EventSchemaField, aj as EventSchemaFieldType, ak as FieldMeta, al as GraphNode, am as IntentRelationshipKind, an as ObservabilityFlow, ao as ObservedLayerFlowMode, ap as PolicyEvaluationResult, aq as ProjectionCheckpoint, ar as ProjectionDefinition, as as PublishedEventRecord, at as RetryPolicy, au as SagaStatus, av as SagaStep, aw as TraceSink, ax as Unsubscribe, ay as WorkflowDefinition, az as WorkflowStatus, aA as WorkflowStep } from './types-Dr307WEm.js';
|
|
3
3
|
|
|
4
4
|
/** Ark library version — single source of truth. */
|
|
5
|
-
declare const version = "1.
|
|
5
|
+
declare const version = "1.6.0";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* defineIntent
|
|
@@ -376,6 +376,12 @@ declare function createSaga<P extends SagaContext = SagaContext>(def: SagaDefini
|
|
|
376
376
|
id?: string;
|
|
377
377
|
}): SagaInstance<P>;
|
|
378
378
|
|
|
379
|
+
/**
|
|
380
|
+
* Default cap for in-memory history, trace, and audit records. Without a cap a
|
|
381
|
+
* long-running process grows without bound on every publish. Pass
|
|
382
|
+
* `maxHistorySize: Infinity` to explicitly opt back into unbounded retention.
|
|
383
|
+
*/
|
|
384
|
+
declare const DEFAULT_MAX_HISTORY_SIZE = 1000;
|
|
379
385
|
declare function createArkKernel(options?: CreateArkKernelOptions): ArkKernel;
|
|
380
386
|
declare function createStrictArkKernel(options?: CreateArkKernelOptions): ArkKernel;
|
|
381
387
|
declare function createLenientArkKernel(options?: CreateArkKernelOptions): ArkKernel;
|
|
@@ -546,4 +552,4 @@ interface AICodeGateOptions<Context = AICodeGateContext> {
|
|
|
546
552
|
}
|
|
547
553
|
declare function createAICodeGate<Context = AICodeGateContext>(options?: AICodeGateOptions<Context>): AICodeGate<Context>;
|
|
548
554
|
|
|
549
|
-
export { type AICodeGate, type AICodeGateContext, type AICodeGateOptions, type AICodeGateResult, type AICodeGateViolation, type AIGateExtension, type Adapter, type AdapterGovernanceIssue, type AdapterGovernanceResult, ArchitectureProfile, ArkCheckConfig, ArkKernel, ArkManifest, type ArkTestHarness, type ArkTestSnapshot, AuditQuery, AuditRecord, AuditStore, AuditTrail, type BuildPublishPolicyContextOptions, type ContractCheckResult, type CreateAdapterOptions, CreateArchitectureProfileOptions, CreateArkKernelOptions, type CreateArkManifestOptions, CreateAuditTrailOptions, CreateElevenLayerArkConfigOptions, CreateObservabilityReporterOptions, CreateProjectionRegistryOptions, CreateWorkflowEngineOptions, DefineIntentOptions, type DefinePolicyOptions, type DefinePortOptions, DependencyGraph, DomainEvent, EventBus, EventBusOptions, EventContract, EventContractRegistry, EventContractRegistryImpl, EventContractValidationResult, EventContractViolationError, GraphEdge, type GraphPolicyContext, InMemoryAuditStore, InMemoryOutboxStore, InMemoryReadModelStore, InMemoryWorkflowStore, IntentCreator, IntentCreator as IntentDefinition, IntentName, type IntentNameValidation, IntentRegistry, IntentRelationship, InvalidIntentNameError, type LayerFlowRule, LayerPolicyContextError, type LayerPolicyOptions, MANIFEST_SCHEMA_VERSION, MetadataRegistry, ObservabilityDriftReport, ObservabilityReporter, ObservedLayerFlowViolationError, OutboxRecord, OutboxStatus, OutboxStore, Policy, PolicyEnforcementMode, PolicyEngine, PolicySeverity, PolicyViolation, PolicyViolationError, type Port, ProjectionRegistry, type PublishPolicyContext, ReadModelStore, SagaDefinition, SagaInstance, SourceMetadataOverrideError, type SyncRegistryOptions, TraceRecord, TraceRecordType, UnknownEventSourceError, UnregisteredIntentError, WorkflowEngine, WorkflowSnapshot, WorkflowStore, architecturalPolicies, buildPublishPolicyContext, checkAdapterGovernance, checkContract, createAICodeGate, createAdapter, createArchitectureProfile, createArkKernel, createArkManifest, createArkTestHarness, createAuditTrail, createDependencyGraph, createElevenLayerArkConfig, createEventBus, createEventContractRegistry, createIntentRegistry, createLenientArkKernel, createMetadataRegistry, createObservabilityReporter, createProjectionRegistry, createSaga, createStrictArkKernel, createWorkflowEngine, defaultIntentRegistry, defineArchitectureProfilePolicy, defineIntent, defineLayerPolicy, definePolicy, definePort, definePublishPolicy, elevenLayerProfile, isLayerPolicy, syncRegistryToGraph, validateIntentName, version };
|
|
555
|
+
export { type AICodeGate, type AICodeGateContext, type AICodeGateOptions, type AICodeGateResult, type AICodeGateViolation, type AIGateExtension, type Adapter, type AdapterGovernanceIssue, type AdapterGovernanceResult, ArchitectureProfile, ArkCheckConfig, ArkKernel, ArkManifest, type ArkTestHarness, type ArkTestSnapshot, AuditQuery, AuditRecord, AuditStore, AuditTrail, type BuildPublishPolicyContextOptions, type ContractCheckResult, type CreateAdapterOptions, CreateArchitectureProfileOptions, CreateArkKernelOptions, type CreateArkManifestOptions, CreateAuditTrailOptions, CreateElevenLayerArkConfigOptions, CreateObservabilityReporterOptions, CreateProjectionRegistryOptions, CreateWorkflowEngineOptions, DEFAULT_MAX_HISTORY_SIZE, DefineIntentOptions, type DefinePolicyOptions, type DefinePortOptions, DependencyGraph, DomainEvent, EventBus, EventBusOptions, EventContract, EventContractRegistry, EventContractRegistryImpl, EventContractValidationResult, EventContractViolationError, GraphEdge, type GraphPolicyContext, InMemoryAuditStore, InMemoryOutboxStore, InMemoryReadModelStore, InMemoryWorkflowStore, IntentCreator, IntentCreator as IntentDefinition, IntentName, type IntentNameValidation, IntentRegistry, IntentRelationship, InvalidIntentNameError, type LayerFlowRule, LayerPolicyContextError, type LayerPolicyOptions, MANIFEST_SCHEMA_VERSION, MetadataRegistry, ObservabilityDriftReport, ObservabilityReporter, ObservedLayerFlowViolationError, OutboxRecord, OutboxStatus, OutboxStore, Policy, PolicyEnforcementMode, PolicyEngine, PolicySeverity, PolicyViolation, PolicyViolationError, type Port, ProjectionRegistry, type PublishPolicyContext, ReadModelStore, SagaDefinition, SagaInstance, SourceMetadataOverrideError, type SyncRegistryOptions, TraceRecord, TraceRecordType, UnknownEventSourceError, UnregisteredIntentError, WorkflowEngine, WorkflowSnapshot, WorkflowStore, architecturalPolicies, buildPublishPolicyContext, checkAdapterGovernance, checkContract, createAICodeGate, createAdapter, createArchitectureProfile, createArkKernel, createArkManifest, createArkTestHarness, createAuditTrail, createDependencyGraph, createElevenLayerArkConfig, createEventBus, createEventContractRegistry, createIntentRegistry, createLenientArkKernel, createMetadataRegistry, createObservabilityReporter, createProjectionRegistry, createSaga, createStrictArkKernel, createWorkflowEngine, defaultIntentRegistry, defineArchitectureProfilePolicy, defineIntent, defineLayerPolicy, definePolicy, definePort, definePublishPolicy, elevenLayerProfile, isLayerPolicy, syncRegistryToGraph, validateIntentName, version };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/version.ts
|
|
2
|
-
var version = "1.
|
|
2
|
+
var version = "1.6.0";
|
|
3
3
|
|
|
4
4
|
// src/kernel/intent/IntentRegistry.ts
|
|
5
5
|
var IntentRegistry = class {
|
|
@@ -1721,7 +1721,7 @@ function createArchitectureProfile(options) {
|
|
|
1721
1721
|
layers,
|
|
1722
1722
|
rules,
|
|
1723
1723
|
resolveLayer(name) {
|
|
1724
|
-
return sortedLayers.find(
|
|
1724
|
+
return layers.find((layer) => layer.match?.(name))?.name ?? sortedLayers.find(
|
|
1725
1725
|
(layer) => layer.prefixes.some((prefix) => name.startsWith(prefix))
|
|
1726
1726
|
)?.name;
|
|
1727
1727
|
}
|
|
@@ -2770,6 +2770,7 @@ function createSaga(def, bus, options = {}) {
|
|
|
2770
2770
|
}
|
|
2771
2771
|
|
|
2772
2772
|
// src/kernel/runtime/createArkKernel.ts
|
|
2773
|
+
var DEFAULT_MAX_HISTORY_SIZE = 1e3;
|
|
2773
2774
|
var kernelSequence = 0;
|
|
2774
2775
|
function nextKernelInstanceId() {
|
|
2775
2776
|
kernelSequence += 1;
|
|
@@ -2779,10 +2780,11 @@ function createArkKernel(options = {}) {
|
|
|
2779
2780
|
const strict = options.strict ?? true;
|
|
2780
2781
|
const instanceId = options.instanceId ?? nextKernelInstanceId();
|
|
2781
2782
|
const profile = options.profile ?? elevenLayerProfile;
|
|
2783
|
+
const maxHistorySize = options.maxHistorySize ?? DEFAULT_MAX_HISTORY_SIZE;
|
|
2782
2784
|
const registry = createIntentRegistry();
|
|
2783
2785
|
const graph = createDependencyGraph();
|
|
2784
2786
|
const metadata = options.metadata ?? createMetadataRegistry();
|
|
2785
|
-
const auditTrail = options.auditTrail ?? createAuditTrail({ maxRecords:
|
|
2787
|
+
const auditTrail = options.auditTrail ?? createAuditTrail({ maxRecords: maxHistorySize });
|
|
2786
2788
|
const eventContracts = options.eventContracts ?? createEventContractRegistry();
|
|
2787
2789
|
const outbox = options.outbox ?? new InMemoryOutboxStore();
|
|
2788
2790
|
const projections = options.projections ?? createProjectionRegistry({ auditTrail });
|
|
@@ -2807,7 +2809,7 @@ function createArkKernel(options = {}) {
|
|
|
2807
2809
|
enforceObservedLayerFlow: options.enforceObservedLayerFlow ?? (strict ? "hard" : "off"),
|
|
2808
2810
|
outbox,
|
|
2809
2811
|
instanceId,
|
|
2810
|
-
maxHistorySize
|
|
2812
|
+
maxHistorySize,
|
|
2811
2813
|
onPublish: options.autoApplyProjections === false ? void 0 : async (event) => {
|
|
2812
2814
|
await projections.apply(event);
|
|
2813
2815
|
}
|
|
@@ -2869,6 +2871,6 @@ function createLenientArkKernel(options = {}) {
|
|
|
2869
2871
|
});
|
|
2870
2872
|
}
|
|
2871
2873
|
|
|
2872
|
-
export { EventContractRegistryImpl, EventContractViolationError, InMemoryAuditStore, InMemoryOutboxStore, InMemoryReadModelStore, InMemoryWorkflowStore, IntentRegistry, InvalidIntentNameError, LayerPolicyContextError, MANIFEST_SCHEMA_VERSION, ObservedLayerFlowViolationError, PolicyEngine, PolicyViolationError, SourceMetadataOverrideError, UnknownEventSourceError, UnregisteredIntentError, architecturalPolicies, buildPublishPolicyContext, checkAdapterGovernance, checkContract, createAICodeGate, createAdapter, createArchitectureProfile, createArkKernel, createArkManifest, createArkTestHarness, createAuditTrail, createDependencyGraph, createElevenLayerArkConfig, createEventBus, createEventContractRegistry, createIntentRegistry, createLenientArkKernel, createMetadataRegistry, createObservabilityReporter, createProjectionRegistry, createSaga, createStrictArkKernel, createWorkflowEngine, defaultIntentRegistry, defineArchitectureProfilePolicy, defineIntent, defineLayerPolicy, definePolicy, definePort, definePublishPolicy, elevenLayerProfile, isLayerPolicy, syncRegistryToGraph, validateIntentName, version };
|
|
2874
|
+
export { DEFAULT_MAX_HISTORY_SIZE, EventContractRegistryImpl, EventContractViolationError, InMemoryAuditStore, InMemoryOutboxStore, InMemoryReadModelStore, InMemoryWorkflowStore, IntentRegistry, InvalidIntentNameError, LayerPolicyContextError, MANIFEST_SCHEMA_VERSION, ObservedLayerFlowViolationError, PolicyEngine, PolicyViolationError, SourceMetadataOverrideError, UnknownEventSourceError, UnregisteredIntentError, architecturalPolicies, buildPublishPolicyContext, checkAdapterGovernance, checkContract, createAICodeGate, createAdapter, createArchitectureProfile, createArkKernel, createArkManifest, createArkTestHarness, createAuditTrail, createDependencyGraph, createElevenLayerArkConfig, createEventBus, createEventContractRegistry, createIntentRegistry, createLenientArkKernel, createMetadataRegistry, createObservabilityReporter, createProjectionRegistry, createSaga, createStrictArkKernel, createWorkflowEngine, defaultIntentRegistry, defineArchitectureProfilePolicy, defineIntent, defineLayerPolicy, definePolicy, definePort, definePublishPolicy, elevenLayerProfile, isLayerPolicy, syncRegistryToGraph, validateIntentName, version };
|
|
2873
2875
|
//# sourceMappingURL=index.js.map
|
|
2874
2876
|
//# sourceMappingURL=index.js.map
|