@kronos-ts/axon-server 0.4.0 → 0.5.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.
Files changed (84) hide show
  1. package/dist/axon-server-event-store.d.ts +0 -16
  2. package/dist/axon-server-event-store.d.ts.map +1 -1
  3. package/dist/axon-server-event-store.js +47 -14
  4. package/dist/axon-server-event-store.js.map +1 -1
  5. package/dist/axon-server-snapshotting-event-store.d.ts +30 -0
  6. package/dist/axon-server-snapshotting-event-store.d.ts.map +1 -0
  7. package/dist/axon-server-snapshotting-event-store.js +153 -0
  8. package/dist/axon-server-snapshotting-event-store.js.map +1 -0
  9. package/dist/axon-server.d.ts +33 -60
  10. package/dist/axon-server.d.ts.map +1 -1
  11. package/dist/axon-server.js +58 -59
  12. package/dist/axon-server.js.map +1 -1
  13. package/dist/connection-manager.d.ts +2 -2
  14. package/dist/connection-manager.d.ts.map +1 -1
  15. package/dist/connection.d.ts +23 -21
  16. package/dist/connection.d.ts.map +1 -1
  17. package/dist/connection.js +6 -5
  18. package/dist/connection.js.map +1 -1
  19. package/dist/context-view.d.ts +2 -2
  20. package/dist/context-view.d.ts.map +1 -1
  21. package/dist/control-plane.d.ts +5 -5
  22. package/dist/control-plane.d.ts.map +1 -1
  23. package/dist/event-processor-info.d.ts +4 -4
  24. package/dist/event-processor-info.d.ts.map +1 -1
  25. package/dist/flow-controlled-sender.d.ts +2 -2
  26. package/dist/flow-controlled-sender.d.ts.map +1 -1
  27. package/dist/generated/command.d.ts +20 -20
  28. package/dist/generated/command.d.ts.map +1 -1
  29. package/dist/generated/common.d.ts +20 -20
  30. package/dist/generated/common.d.ts.map +1 -1
  31. package/dist/generated/control.d.ts +36 -40
  32. package/dist/generated/control.d.ts.map +1 -1
  33. package/dist/generated/dcb.d.ts +88 -94
  34. package/dist/generated/dcb.d.ts.map +1 -1
  35. package/dist/generated/event.d.ts +81 -84
  36. package/dist/generated/event.d.ts.map +1 -1
  37. package/dist/generated/google/protobuf/empty.d.ts +3 -4
  38. package/dist/generated/google/protobuf/empty.d.ts.map +1 -1
  39. package/dist/generated/query.d.ts +40 -40
  40. package/dist/generated/query.d.ts.map +1 -1
  41. package/dist/index.d.ts +1 -1
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +1 -1
  44. package/dist/index.js.map +1 -1
  45. package/dist/message-size.d.ts +2 -2
  46. package/dist/message-size.d.ts.map +1 -1
  47. package/dist/outbound-stream.d.ts +2 -2
  48. package/dist/outbound-stream.d.ts.map +1 -1
  49. package/dist/platform-service.d.ts +4 -4
  50. package/dist/platform-service.d.ts.map +1 -1
  51. package/dist/resilience.d.ts +62 -0
  52. package/dist/resilience.d.ts.map +1 -0
  53. package/dist/resilience.js +103 -0
  54. package/dist/resilience.js.map +1 -0
  55. package/dist/shutdown-latch.d.ts +4 -4
  56. package/dist/shutdown-latch.d.ts.map +1 -1
  57. package/package.json +3 -3
  58. package/src/axon-server-event-store.ts +46 -14
  59. package/src/axon-server-snapshotting-event-store.ts +191 -0
  60. package/src/axon-server.ts +72 -77
  61. package/src/connection-manager.ts +1 -1
  62. package/src/connection.ts +16 -14
  63. package/src/context-view.ts +1 -1
  64. package/src/control-plane.ts +3 -3
  65. package/src/event-processor-info.ts +2 -2
  66. package/src/flow-controlled-sender.ts +1 -1
  67. package/src/generated/command.ts +10 -10
  68. package/src/generated/common.ts +10 -10
  69. package/src/generated/control.ts +20 -20
  70. package/src/generated/dcb.ts +47 -47
  71. package/src/generated/event.ts +42 -42
  72. package/src/generated/google/protobuf/empty.ts +2 -2
  73. package/src/generated/query.ts +20 -20
  74. package/src/index.ts +1 -1
  75. package/src/message-size.ts +1 -1
  76. package/src/outbound-stream.ts +1 -1
  77. package/src/platform-service.ts +2 -2
  78. package/src/resilience.ts +149 -0
  79. package/src/shutdown-latch.ts +2 -2
  80. package/dist/axon-server-snapshot-store.d.ts +0 -12
  81. package/dist/axon-server-snapshot-store.d.ts.map +0 -1
  82. package/dist/axon-server-snapshot-store.js +0 -82
  83. package/dist/axon-server-snapshot-store.js.map +0 -1
  84. package/src/axon-server-snapshot-store.ts +0 -110
@@ -3,7 +3,7 @@ import type { CallContext, CallOptions } from "nice-grpc-common";
3
3
  import { ErrorMessage, FlowControl, InstructionAck, MetaDataValue, ProcessingInstruction, SerializedObject } from "./common.js";
4
4
  export declare const protobufPackage = "io.axoniq.axonserver.grpc.query";
5
5
  /** Message containing Query related instructions for Axon Server */
6
- export interface QueryProviderOutbound {
6
+ export type QueryProviderOutbound = {
7
7
  /** Registers a Query Handler with AxonServer */
8
8
  subscribe?: QuerySubscription | undefined;
9
9
  /** Unregisters a Query Handler with AxonServer */
@@ -20,9 +20,9 @@ export interface QueryProviderOutbound {
20
20
  ack?: InstructionAck | undefined;
21
21
  /** Instruction identifier. If this identifier is set, this instruction will be acknowledged via inbound stream */
22
22
  instructionId: string;
23
- }
23
+ };
24
24
  /** Queries or Query related instructions from AxonServer for the connected application */
25
- export interface QueryProviderInbound {
25
+ export type QueryProviderInbound = {
26
26
  /** Acknowledgement of previously sent instruction via outbound stream */
27
27
  ack?: InstructionAck | undefined;
28
28
  /** Represents an incoming Query, for which this component is expected to provide a response */
@@ -35,27 +35,27 @@ export interface QueryProviderInbound {
35
35
  queryFlowControl?: QueryFlowControl | undefined;
36
36
  /** Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream */
37
37
  instructionId: string;
38
- }
39
- export interface QueryReference {
38
+ };
39
+ export type QueryReference = {
40
40
  /** The identifier of the query request. */
41
41
  requestId: string;
42
- }
42
+ };
43
43
  /** Message indicating that query has been completed. */
44
- export interface QueryComplete {
44
+ export type QueryComplete = {
45
45
  /** A unique identifier for this message */
46
46
  messageId: string;
47
47
  /** The identifier of the incoming query to complete */
48
48
  requestId: string;
49
- }
49
+ };
50
50
  /** Message indicating that consumer is requesting more messages from producer. */
51
- export interface QueryFlowControl {
51
+ export type QueryFlowControl = {
52
52
  /** The identifier of the incoming query to complete */
53
53
  queryReference: QueryReference | undefined;
54
54
  /** Number of messages requested */
55
55
  permits: bigint;
56
- }
56
+ };
57
57
  /** Message representing an incoming Query */
58
- export interface QueryRequest {
58
+ export type QueryRequest = {
59
59
  /** The message ID of the incoming Query */
60
60
  messageIdentifier: string;
61
61
  /** The name of the Query to execute */
@@ -80,13 +80,13 @@ export interface QueryRequest {
80
80
  clientId: string;
81
81
  /** The Name of the Component dispatching the query */
82
82
  componentName: string;
83
- }
84
- export interface QueryRequest_MetaDataEntry {
83
+ };
84
+ export type QueryRequest_MetaDataEntry = {
85
85
  key: string;
86
86
  value: MetaDataValue | undefined;
87
- }
87
+ };
88
88
  /** Message that represents the Response to a Query */
89
- export interface QueryResponse {
89
+ export type QueryResponse = {
90
90
  /** The unique identifier of the Response Message */
91
91
  messageIdentifier: string;
92
92
  /** An Error Code identifying the type of error, if any */
@@ -103,13 +103,13 @@ export interface QueryResponse {
103
103
  processingInstructions: ProcessingInstruction[];
104
104
  /** The unique identifier of the Query to which this is a response */
105
105
  requestIdentifier: string;
106
- }
107
- export interface QueryResponse_MetaDataEntry {
106
+ };
107
+ export type QueryResponse_MetaDataEntry = {
108
108
  key: string;
109
109
  value: MetaDataValue | undefined;
110
- }
110
+ };
111
111
  /** Message that represents a Subscription Query */
112
- export interface SubscriptionQuery {
112
+ export type SubscriptionQuery = {
113
113
  /** A unique identifier for this subscription */
114
114
  subscriptionIdentifier: string;
115
115
  /** The number of messages the Server may send before needing to await additional permits */
@@ -122,9 +122,9 @@ export interface SubscriptionQuery {
122
122
  * @deprecated
123
123
  */
124
124
  updateResponseType: SerializedObject | undefined;
125
- }
125
+ };
126
126
  /** A message containing an Update of a Query Subscription Response */
127
- export interface QueryUpdate {
127
+ export type QueryUpdate = {
128
128
  /** The unique identifier of this Update */
129
129
  messageIdentifier: string;
130
130
  /** The object representing the Update */
@@ -141,20 +141,20 @@ export interface QueryUpdate {
141
141
  errorCode: string;
142
142
  /** A detailed description of the error, if any */
143
143
  errorMessage: ErrorMessage | undefined;
144
- }
145
- export interface QueryUpdate_MetaDataEntry {
144
+ };
145
+ export type QueryUpdate_MetaDataEntry = {
146
146
  key: string;
147
147
  value: MetaDataValue | undefined;
148
- }
148
+ };
149
149
  /** Message indicating that all relevant Updates have been sent for a Subscription Query, and that no further Updates are available */
150
- export interface QueryUpdateComplete {
150
+ export type QueryUpdateComplete = {
151
151
  /** The identifier of the Client instance providing the Update */
152
152
  clientId: string;
153
153
  /** The Component Name of the Client providing the Update */
154
154
  componentName: string;
155
- }
155
+ };
156
156
  /** Message indicating that an Error occurred and that no Updates will be sent for a Subscription Query */
157
- export interface QueryUpdateCompleteExceptionally {
157
+ export type QueryUpdateCompleteExceptionally = {
158
158
  /** The identifier of the Client instance providing the Update */
159
159
  clientId: string;
160
160
  /** The Component Name of the Client providing the Update */
@@ -163,9 +163,9 @@ export interface QueryUpdateCompleteExceptionally {
163
163
  errorCode: string;
164
164
  /** A detailed description of the error, if available */
165
165
  errorMessage: ErrorMessage | undefined;
166
- }
166
+ };
167
167
  /** Message describing possible interactions for a Subscription Query */
168
- export interface SubscriptionQueryRequest {
168
+ export type SubscriptionQueryRequest = {
169
169
  /** Start a Subscription Query with the given details. */
170
170
  subscribe?: SubscriptionQuery | undefined;
171
171
  /** Ends a previously started Subscription Query with the given details */
@@ -184,9 +184,9 @@ export interface SubscriptionQueryRequest {
184
184
  * set on this message.
185
185
  */
186
186
  flowControl?: SubscriptionQuery | undefined;
187
- }
187
+ };
188
188
  /** Represents a Response Message for a Subscription Query */
189
- export interface SubscriptionQueryResponse {
189
+ export type SubscriptionQueryResponse = {
190
190
  /** The unique identifier for this message */
191
191
  messageIdentifier: string;
192
192
  /** The identifier of the subscription query this is a response for */
@@ -199,9 +199,9 @@ export interface SubscriptionQueryResponse {
199
199
  complete?: QueryUpdateComplete | undefined;
200
200
  /** Indicates the Query failed exceptionally, and no more Updates will be sent */
201
201
  completeExceptionally?: QueryUpdateCompleteExceptionally | undefined;
202
- }
202
+ };
203
203
  /** Message containing details of a Registration of a Query Handler in a component */
204
- export interface QuerySubscription {
204
+ export type QuerySubscription = {
205
205
  /** The unique identifier of this Message */
206
206
  messageId: string;
207
207
  /** The name of the Query the Handler is subscribed to */
@@ -212,7 +212,7 @@ export interface QuerySubscription {
212
212
  componentName: string;
213
213
  /** The unique identifier of the Client Instance containing the Query Handler */
214
214
  clientId: string;
215
- }
215
+ };
216
216
  export declare const QueryProviderOutbound: MessageFns<QueryProviderOutbound>;
217
217
  export declare const QueryProviderInbound: MessageFns<QueryProviderInbound>;
218
218
  export declare const QueryReference: MessageFns<QueryReference>;
@@ -265,22 +265,22 @@ export declare const QueryServiceDefinition: {
265
265
  };
266
266
  };
267
267
  };
268
- export interface QueryServiceImplementation<CallContextExt = {}> {
268
+ export type QueryServiceImplementation<CallContextExt = {}> = {
269
269
  /** Opens a Query- and Instruction stream to AxonServer. */
270
270
  openStream(request: AsyncIterable<QueryProviderOutbound>, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<QueryProviderInbound>>;
271
271
  /** Sends a point-to-point or scatter-gather Query */
272
272
  query(request: QueryRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<QueryResponse>>;
273
273
  /** Opens a Subscription Query */
274
274
  subscription(request: AsyncIterable<SubscriptionQueryRequest>, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<SubscriptionQueryResponse>>;
275
- }
276
- export interface QueryServiceClient<CallOptionsExt = {}> {
275
+ };
276
+ export type QueryServiceClient<CallOptionsExt = {}> = {
277
277
  /** Opens a Query- and Instruction stream to AxonServer. */
278
278
  openStream(request: AsyncIterable<DeepPartial<QueryProviderOutbound>>, options?: CallOptions & CallOptionsExt): AsyncIterable<QueryProviderInbound>;
279
279
  /** Sends a point-to-point or scatter-gather Query */
280
280
  query(request: DeepPartial<QueryRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<QueryResponse>;
281
281
  /** Opens a Subscription Query */
282
282
  subscription(request: AsyncIterable<DeepPartial<SubscriptionQueryRequest>>, options?: CallOptions & CallOptionsExt): AsyncIterable<SubscriptionQueryResponse>;
283
- }
283
+ };
284
284
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
285
285
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
286
286
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -288,13 +288,13 @@ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<
288
288
  export type ServerStreamingMethodResult<Response> = {
289
289
  [Symbol.asyncIterator](): AsyncIterator<Response, void>;
290
290
  };
291
- export interface MessageFns<T> {
291
+ export type MessageFns<T> = {
292
292
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
293
293
  decode(input: BinaryReader | Uint8Array, length?: number): T;
294
294
  fromJSON(object: any): T;
295
295
  toJSON(message: T): unknown;
296
296
  create(base?: DeepPartial<T>): T;
297
297
  fromPartial(object: DeepPartial<T>): T;
298
- }
298
+ };
299
299
  export {};
300
300
  //# sourceMappingURL=query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/generated/query.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EACL,YAAY,EACZ,WAAW,EACX,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,eAAe,oCAAoC,CAAC;AAEjE,oEAAoE;AACpE,MAAM,WAAW,qBAAqB;IACpC,gDAAgD;IAChD,SAAS,CAAC,EACN,iBAAiB,GACjB,SAAS,CAAC;IACd,kDAAkD;IAClD,WAAW,CAAC,EACR,iBAAiB,GACjB,SAAS,C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AI,CAAC,CAAA;CAAE,CAAC;AAEhH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;IAC1B,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACxC,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { type AxonServerConnectionConfig, type AxonServerConnection, type AxonServerConnectionOptions, type AxonServerConnectionHandle, type AxonServerStoreSource, type AxonServerBusSource, type AxonServerPlatformSource, connectToAxonServer, axonServerConnection, } from "./connection.js";
2
2
  export { axonServerEventStore } from "./axon-server-event-store.js";
3
- export { axonServerSnapshotStore } from "./axon-server-snapshot-store.js";
3
+ export { axonServerSnapshottingEventStore } from "./axon-server-snapshotting-event-store.js";
4
4
  export { axonServerCommandBus, axonServerQueryBus, type AxonServerCommandBusOptions, type AxonServerQueryBusOptions, type FlowControlConfig, type ProcessingInstructions, } from "./axon-server.js";
5
5
  export { axonServerControlPlane, type AxonServerControlPlane, type ManagedEventProcessor, } from "./control-plane.js";
6
6
  export { type MessageSizeConfig, MessageSizeExceededError, messageSizeValidator, } from "./message-size.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EACh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AsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,GACjB,MAAM,aAAa,CAAA"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { connectToAxonServer, axonServerConnection, } from "./connection.js";
2
2
  export { axonServerEventStore } from "./axon-server-event-store.js";
3
- export { axonServerSnapshotStore } from "./axon-server-snapshot-store.js";
3
+ export { axonServerSnapshottingEventStore } from "./axon-server-snapshotting-event-store.js";
4
4
  export { axonServerCommandBus, axonServerQueryBus, } from "./axon-server.js";
5
5
  export { axonServerControlPlane, } from "./control-plane.js";
6
6
  export { MessageSizeExceededError, messageSizeValidator, } from "./message-size.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAEnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,EACL,oBAAoB,EACpB,kBAAkB,GAKnB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,sBAAsB,GAGvB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAEL,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAIL,oBAAoB,GACrB,MAAM,2BAA2B,CAAA;AAElC,OAAO,EAKL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAEL,oBAAoB,GACrB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAGL,uBAAuB,EACvB,aAAa,GACd,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,mBAAmB,EAEnB,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,GACjB,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAEnE,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAA;AAE5F,OAAO,EACL,oBAAoB,EACpB,kBAAkB,GAKnB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,sBAAsB,GAGvB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAEL,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAIL,oBAAoB,GACrB,MAAM,2BAA2B,CAAA;AAElC,OAAO,EAKL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAEL,oBAAoB,GACrB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAGL,uBAAuB,EACvB,aAAa,GACd,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,mBAAmB,EAEnB,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,GACjB,MAAM,aAAa,CAAA"}
@@ -5,12 +5,12 @@
5
5
  * This module pre-checks message sizes before sending and warns
6
6
  * when approaching the limit.
7
7
  */
8
- export interface MessageSizeConfig {
8
+ export type MessageSizeConfig = {
9
9
  /** Maximum message size in bytes. Default: 4MB */
10
10
  maxMessageSize?: number;
11
11
  /** Warning threshold as a fraction (0-1). Default: 0.75 */
12
12
  warningThreshold?: number;
13
- }
13
+ };
14
14
  export declare class MessageSizeExceededError extends Error {
15
15
  readonly actualSize: number;
16
16
  readonly maxSize: number;
@@ -1 +1 @@
1
- {"version":3,"file":"message-size.d.ts","sourceRoot":"","sources":["../src/message-size.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,MAAM,WAAW,iBAAiB;IAChC,kDAAkD;IAClD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED,qBAAa,wBAAyB,SAAQ,KAAK;IACjD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IAExB,YAAY,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAO9C;CACF;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,iBAAiB;IAM3D;;;OAGG;mBACY,UAAU,YAAY,MAAM,GAAG,IAAI;IAalD;;OAEG;0BACmB,OAAO,GAAG,MAAM;IAItC,4CAA4C;;EAG/C"}
1
+ {"version":3,"file":"message-size.d.ts","sourceRoot":"","sources":["../src/message-size.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,kDAAkD;IAClD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,qBAAa,wBAAyB,SAAQ,KAAK;IACjD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IAExB,YAAY,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAO9C;CACF;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,iBAAiB;IAM3D;;;OAGG;mBACY,UAAU,YAAY,MAAM,GAAG,IAAI;IAalD;;OAEG;0BACmB,OAAO,GAAG,MAAM;IAItC,4CAA4C;;EAG/C"}
@@ -3,13 +3,13 @@
3
3
  * bidirectional gRPC stream. Buffers messages when the stream isn't
4
4
  * consuming, and resolves promises when the stream is waiting.
5
5
  */
6
- export interface OutboundStream<T> {
6
+ export type OutboundStream<T> = {
7
7
  /** Send a message into the stream. */
8
8
  send(message: T): void;
9
9
  /** The async iterable to pass to the gRPC client. */
10
10
  readonly iterable: AsyncIterable<T>;
11
11
  /** Close the stream. */
12
12
  close(): void;
13
- }
13
+ };
14
14
  export declare function outboundStream<T>(): OutboundStream<T>;
15
15
  //# sourceMappingURL=outbound-stream.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"outbound-stream.d.ts","sourceRoot":"","sources":["../src/outbound-stream.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,sCAAsC;IACtC,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAA;IACtB,qDAAqD;IACrD,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,CAAA;IACnC,wBAAwB;IACxB,KAAK,IAAI,IAAI,CAAA;CACd;AAED,wBAAgB,cAAc,CAAC,CAAC,KAAK,cAAc,CAAC,CAAC,CAAC,CAqCrD"}
1
+ {"version":3,"file":"outbound-stream.d.ts","sourceRoot":"","sources":["../src/outbound-stream.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI;IAC9B,sCAAsC;IACtC,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAA;IACtB,qDAAqD;IACrD,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,CAAA;IACnC,wBAAwB;IACxB,KAAK,IAAI,IAAI,CAAA;CACd,CAAA;AAED,wBAAgB,cAAc,CAAC,CAAC,KAAK,cAAc,CAAC,CAAC,CAAC,CAqCrD"}
@@ -54,7 +54,7 @@ export type InstructionHandler = (instruction: PlatformInstruction) => void | Pr
54
54
  * - Heartbeat protocol to detect dead connections
55
55
  * - Receives server-initiated instructions (pause, resume, split, merge segments)
56
56
  */
57
- export interface PlatformConnection {
57
+ export type PlatformConnection = {
58
58
  /**
59
59
  * DATA PATH. Open the platform stream, register this client, and arm the
60
60
  * heartbeat that calls `connection.reconnect()` when the server stops
@@ -121,8 +121,8 @@ export interface PlatformConnection {
121
121
  * two extensions structurally symmetric.
122
122
  */
123
123
  subscriptionsAcked(): Promise<boolean>;
124
- }
125
- export interface PlatformServiceOptions {
124
+ };
125
+ export type PlatformServiceOptions = {
126
126
  /** Heartbeat interval in ms. Default: 10000 */
127
127
  heartbeatIntervalMs?: number;
128
128
  /** Heartbeat timeout in ms. If no response within this window, reconnect. Default: 7500 */
@@ -137,7 +137,7 @@ export interface PlatformServiceOptions {
137
137
  * Aligned with Java's `processorsNotificationInitialDelay`. Default: 5000.
138
138
  */
139
139
  processorsNotificationInitialDelayMs?: number;
140
- }
140
+ };
141
141
  /**
142
142
  * Creates a PlatformService connection to Axon Server.
143
143
  *
@@ -1 +1 @@
1
- {"version":3,"file":"platform-service.d.ts","sourceRoot":"","sources":["../src/platform-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAI3D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAGxE;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAC3B;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE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AAA;IAC3B;;;OAGG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAA;IACrC;;;OAGG;IACH,oCAAoC,CAAC,EAAE,MAAM,CAAA;CAC9C,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,oBAAoB,EAChC,OAAO,CAAC,EAAE,sBAAsB,GAC/B,kBAAkB,CA0UpB"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Connection resilience — PACKAGE-PRIVATE.
3
+ *
4
+ * Exponential backoff with full jitter, per-event attempt caps, terminal-error
5
+ * short-circuit, and a warn-then-continue health probe. Nothing here is
6
+ * exported from this package's barrel.
7
+ *
8
+ * It used to live in `@kronos-ts/core`, and it does not belong there. Core is
9
+ * only what cannot be a helper, and this is a helper by every test: it touches
10
+ * no core shape, no message, no unit of work — it is `setTimeout` and a loop
11
+ * over a function anybody could have written. Its only consumers were the
12
+ * transports and the pool, core's own `src/` never called it, and a helper
13
+ * lives with its users. Same reasoning that moved each persistence package's
14
+ * transaction glue out of core, applied one folder up.
15
+ *
16
+ * Each consuming package keeps its own copy, carrying only what it uses, so
17
+ * each can also state its own retry policy without negotiating with the others.
18
+ */
19
+ /** Classified retry sites used by transport extensions (D-97). */
20
+ export type RetryEvent = "initial-connect" | "reconnect" | "per-operation" | "health-check";
21
+ export type ResilienceConfig = {
22
+ /** Initial backoff delay (ms). Default: 100. */
23
+ initialDelayMs: number;
24
+ /** Cap for backoff (ms). Default: 30_000. */
25
+ maxDelayMs: number;
26
+ /** Max retry attempts before giving up. Per-event defaults applied if not provided. */
27
+ maxAttempts: number;
28
+ /** Base for exponential growth. Default: 2. */
29
+ multiplier: number;
30
+ /** Health-check threshold (ms) before warn-then-continue. Default: 5000. */
31
+ healthCheckThresholdMs: number;
32
+ /** Optional logger. Defaults to console.warn. */
33
+ log?: (msg: string) => void;
34
+ /** Per-attempt classification: returns false to short-circuit (terminal error). */
35
+ isRetryable?: (err: unknown) => boolean;
36
+ };
37
+ /**
38
+ * Run `fn` with exponential-backoff full-jitter retries.
39
+ *
40
+ * Resolves with the first successful result, or rejects with the last error
41
+ * after `maxAttempts` exhausted. If `isRetryable(err)` returns false on any
42
+ * attempt, the error is rethrown immediately (terminal error short-circuit).
43
+ *
44
+ * D-101: opts may carry caller-supplied resilience overrides — this is the
45
+ * per-extension knob path (`kronosDbConnection({ resilience: { ... } })`).
46
+ */
47
+ export declare function withRetry<T>(fn: () => Promise<T>, opts: {
48
+ event: RetryEvent;
49
+ } & Partial<ResilienceConfig>): Promise<T>;
50
+ /**
51
+ * Run a health-check probe with warn-then-continue semantics (D-100).
52
+ *
53
+ * Resolves WITHOUT throwing on success OR after `thresholdMs` elapses with
54
+ * the probe still pending — production loops should NEVER stall on a flaky
55
+ * health probe. Failures (rejection or threshold breach) emit a single warn
56
+ * via `log` and otherwise resolve normally.
57
+ */
58
+ export declare function healthCheck(fn: () => Promise<void>, opts?: {
59
+ thresholdMs?: number;
60
+ log?: (msg: string) => void;
61
+ }): Promise<void>;
62
+ //# sourceMappingURL=resilience.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resilience.d.ts","sourceRoot":"","sources":["../src/resilience.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,kEAAkE;AAClE,MAAM,MAAM,UAAU,GAClB,iBAAiB,GACjB,WAAW,GACX,eAAe,GACf,cAAc,CAAA;AAElB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,gDAAgD;IAChD,cAAc,EAAE,MAAM,CAAA;IACtB,6CAA6C;IAC7C,UAAU,EAAE,MAAM,CAAA;IAClB,uFAAuF;IACvF,WAAW,EAAE,MAAM,CAAA;IACnB,+CAA+C;IAC/C,UAAU,EAAE,MAAM,CAAA;IAClB,4EAA4E;IAC5E,sBAAsB,EAAE,MAAM,CAAA;IAC9B,iDAAiD;IACjD,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3B,mFAAmF;IACnF,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAA;CACxC,CAAA;AAoCD;;;;;;;;;GASG;AACH,wBAAsB,SAAS,CAAC,CAAC,EAC/B,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACpB,IAAI,EAAE;IAAE,KAAK,EAAE,UAAU,CAAA;CAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,GACtD,OAAO,CAAC,CAAC,CAAC,CAqBZ;AAED;;;;;;;GAOG;AACH,wBAAsB,WAAW,CAC/B,EAAE,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EACvB,IAAI,GAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAAO,GAC/D,OAAO,CAAC,IAAI,CAAC,CAwBf"}
@@ -0,0 +1,103 @@
1
+ /**
2
+ * Connection resilience — PACKAGE-PRIVATE.
3
+ *
4
+ * Exponential backoff with full jitter, per-event attempt caps, terminal-error
5
+ * short-circuit, and a warn-then-continue health probe. Nothing here is
6
+ * exported from this package's barrel.
7
+ *
8
+ * It used to live in `@kronos-ts/core`, and it does not belong there. Core is
9
+ * only what cannot be a helper, and this is a helper by every test: it touches
10
+ * no core shape, no message, no unit of work — it is `setTimeout` and a loop
11
+ * over a function anybody could have written. Its only consumers were the
12
+ * transports and the pool, core's own `src/` never called it, and a helper
13
+ * lives with its users. Same reasoning that moved each persistence package's
14
+ * transaction glue out of core, applied one folder up.
15
+ *
16
+ * Each consuming package keeps its own copy, carrying only what it uses, so
17
+ * each can also state its own retry policy without negotiating with the others.
18
+ */
19
+ const DEFAULTS = {
20
+ initialDelayMs: 100,
21
+ maxDelayMs: 30_000,
22
+ maxAttempts: 10,
23
+ multiplier: 2,
24
+ healthCheckThresholdMs: 5_000,
25
+ };
26
+ const ATTEMPTS_BY_EVENT = {
27
+ "initial-connect": 10,
28
+ "reconnect": 30,
29
+ "per-operation": 5,
30
+ "health-check": 3,
31
+ };
32
+ function resolveConfig(event, partial) {
33
+ return {
34
+ ...DEFAULTS,
35
+ maxAttempts: ATTEMPTS_BY_EVENT[event],
36
+ ...partial,
37
+ };
38
+ }
39
+ function fullJitterDelay(attempt, cfg) {
40
+ const exponential = Math.min(cfg.initialDelayMs * Math.pow(cfg.multiplier, attempt), cfg.maxDelayMs);
41
+ return Math.random() * exponential;
42
+ }
43
+ /**
44
+ * Run `fn` with exponential-backoff full-jitter retries.
45
+ *
46
+ * Resolves with the first successful result, or rejects with the last error
47
+ * after `maxAttempts` exhausted. If `isRetryable(err)` returns false on any
48
+ * attempt, the error is rethrown immediately (terminal error short-circuit).
49
+ *
50
+ * D-101: opts may carry caller-supplied resilience overrides — this is the
51
+ * per-extension knob path (`kronosDbConnection({ resilience: { ... } })`).
52
+ */
53
+ export async function withRetry(fn, opts) {
54
+ const cfg = resolveConfig(opts.event, opts);
55
+ let lastErr;
56
+ for (let attempt = 0; attempt < cfg.maxAttempts; attempt++) {
57
+ try {
58
+ return await fn();
59
+ }
60
+ catch (err) {
61
+ lastErr = err;
62
+ if (cfg.isRetryable && !cfg.isRetryable(err))
63
+ throw err;
64
+ if (attempt === cfg.maxAttempts - 1)
65
+ break;
66
+ const delay = fullJitterDelay(attempt, cfg);
67
+ cfg.log?.(`[kronos:resilience] ${opts.event} attempt ${attempt + 1}/${cfg.maxAttempts} ` +
68
+ `failed; retrying in ${Math.round(delay)}ms — ${err?.message ?? String(err)}`);
69
+ await new Promise((r) => setTimeout(r, delay));
70
+ }
71
+ }
72
+ throw lastErr;
73
+ }
74
+ /**
75
+ * Run a health-check probe with warn-then-continue semantics (D-100).
76
+ *
77
+ * Resolves WITHOUT throwing on success OR after `thresholdMs` elapses with
78
+ * the probe still pending — production loops should NEVER stall on a flaky
79
+ * health probe. Failures (rejection or threshold breach) emit a single warn
80
+ * via `log` and otherwise resolve normally.
81
+ */
82
+ export async function healthCheck(fn, opts = {}) {
83
+ const threshold = opts.thresholdMs ?? DEFAULTS.healthCheckThresholdMs;
84
+ const log = opts.log ?? ((m) => console.warn(m));
85
+ let timer;
86
+ try {
87
+ await Promise.race([
88
+ fn(),
89
+ new Promise((_, reject) => {
90
+ timer = setTimeout(() => reject(new Error("health-check threshold exceeded")), threshold);
91
+ }),
92
+ ]);
93
+ }
94
+ catch (err) {
95
+ log(`[kronos:resilience] health-check soft-failed (${err?.message ?? String(err)}); continuing`);
96
+ // warn-then-continue: do NOT rethrow.
97
+ }
98
+ finally {
99
+ if (timer)
100
+ clearTimeout(timer);
101
+ }
102
+ }
103
+ //# sourceMappingURL=resilience.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resilience.js","sourceRoot":"","sources":["../src/resilience.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AA0BH,MAAM,QAAQ,GAAkD;IAC9D,cAAc,EAAE,GAAG;IACnB,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,CAAC;IACb,sBAAsB,EAAE,KAAK;CAC9B,CAAA;AAED,MAAM,iBAAiB,GAA+B;IACpD,iBAAiB,EAAE,EAAE;IACrB,WAAW,EAAE,EAAE;IACf,eAAe,EAAE,CAAC;IAClB,cAAc,EAAE,CAAC;CAClB,CAAA;AAED,SAAS,aAAa,CACpB,KAAiB,EACjB,OAAmC;IAEnC,OAAO;QACL,GAAG,QAAQ;QACX,WAAW,EAAE,iBAAiB,CAAC,KAAK,CAAC;QACrC,GAAG,OAAO;KACX,CAAA;AACH,CAAC;AAED,SAAS,eAAe,CAAC,OAAe,EAAE,GAAqB;IAC7D,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAC1B,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,EACtD,GAAG,CAAC,UAAU,CACf,CAAA;IACD,OAAO,IAAI,CAAC,MAAM,EAAE,GAA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CAAC,sBAAsB,CAAA;IACrE,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IACxD,IAAI,KAAgD,CAAA;IACpD,IAAI,CAAC;QACH,MAAM,OAAO,CAAC,IAAI,CAAC;YACjB,EAAE,EAAE;YACJ,IAAI,OAAO,CAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE;gBAC/B,KAAK,GAAG,UAAU,CAChB,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC,EAC1D,SAAS,CACV,CAAA;YACH,CAAC,CAAC;SACH,CAAC,CAAA;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,GAAG,CACD,iDACG,GAAa,EAAE,OAAO,IAAI,MAAM,CAAC,GAAG,CACvC,eAAe,CAChB,CAAA;QACD,sCAAsC;IACxC,CAAC;YAAS,CAAC;QACT,IAAI,KAAK;YAAE,YAAY,CAAC,KAAK,CAAC,CAAA;IAChC,CAAC;AACH,CAAC"}
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * This is the TypeScript equivalent of AF5's ShutdownLatch pattern.
12
12
  */
13
- export interface ShutdownLatch {
13
+ export type ShutdownLatch = {
14
14
  /**
15
15
  * Register an in-flight activity. Throws if shutdown is in progress.
16
16
  * Call `end()` on the returned handle when the activity completes.
@@ -26,11 +26,11 @@ export interface ShutdownLatch {
26
26
  readonly shuttingDown: boolean;
27
27
  /** Number of currently in-flight activities. */
28
28
  readonly activeCount: number;
29
- }
30
- export interface ActivityHandle {
29
+ };
30
+ export type ActivityHandle = {
31
31
  /** Mark this activity as complete. */
32
32
  end(): void;
33
- }
33
+ };
34
34
  export declare class ShutdownInProgressError extends Error {
35
35
  constructor(message?: string);
36
36
  }
@@ -1 +1 @@
1
- {"version":3,"file":"shutdown-latch.d.ts","sourceRoot":"","sources":["../src/shutdown-latch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,gBAAgB,IAAI,cAAc,CAAA;IAElC;;;;OAIG;IACH,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAEjC,2CAA2C;IAC3C,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;IAE9B,gDAAgD;IAChD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC7B;AAED,MAAM,WAAW,cAAc;IAC7B,sCAAsC;IACtC,GAAG,IAAI,IAAI,CAAA;CACZ;AAED,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,YAAY,OAAO,GAAE,MAA+B,EAGnD;CACF;AAED,wBAAgB,aAAa,IAAI,aAAa,CAmD7C"}
1
+ {"version":3,"file":"shutdown-latch.d.ts","sourceRoot":"","sources":["../src/shutdown-latch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,gBAAgB,IAAI,cAAc,CAAA;IAElC;;;;OAIG;IACH,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAEjC,2CAA2C;IAC3C,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;IAE9B,gDAAgD;IAChD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,sCAAsC;IACtC,GAAG,IAAI,IAAI,CAAA;CACZ,CAAA;AAED,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,YAAY,OAAO,GAAE,MAA+B,EAGnD;CACF;AAED,wBAAgB,aAAa,IAAI,aAAa,CAmD7C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kronos-ts/axon-server",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Axon Server extension for Kronos — event store and command bus over Axon Server.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -33,7 +33,7 @@
33
33
  "!src/**/*.bench.ts"
34
34
  ],
35
35
  "scripts": {
36
- "generate-proto": "grpc_tools_node_protoc --ts_proto_out=./src/generated --ts_proto_opt=outputServices=nice-grpc,outputServices=generic-definitions,useExactTypes=false,esModuleInterop=true --proto_path=./proto ./proto/*.proto",
36
+ "generate-proto": "grpc_tools_node_protoc --ts_proto_out=./src/generated --ts_proto_opt=outputServices=nice-grpc,outputServices=generic-definitions,useExactTypes=false,esModuleInterop=true --proto_path=./proto ./proto/*.proto && bun ../../scripts/interface-to-type/convert.ts ./src/generated",
37
37
  "build": "tsc -p tsconfig.json",
38
38
  "clean": "rm -rf dist *.tsbuildinfo"
39
39
  },
@@ -49,7 +49,7 @@
49
49
  }
50
50
  },
51
51
  "dependencies": {
52
- "@kronos-ts/core": "0.2.0",
52
+ "@kronos-ts/core": "0.3.0",
53
53
  "@bufbuild/protobuf": "^2.3",
54
54
  "@grpc/grpc-js": "^1.12",
55
55
  "nice-grpc": "^2.1",