@spine-event-engine/storage 2.0.0-snapshot.24 → 2.0.0-snapshot.25

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 (100) hide show
  1. package/README.md +12 -3
  2. package/REFERENCE.md +76 -68
  3. package/dist/entity/agent-history-record-spec.d.ts +8 -0
  4. package/dist/entity/agent-history-record-spec.d.ts.map +1 -1
  5. package/dist/entity/agent-history-record-spec.js +12 -1
  6. package/dist/entity/agent-history-record-spec.js.map +1 -1
  7. package/dist/entity/agent-history.d.ts +25 -0
  8. package/dist/entity/agent-history.d.ts.map +1 -1
  9. package/dist/entity/agent-history.js.map +1 -1
  10. package/dist/entity/history-conformance.d.ts +38 -8
  11. package/dist/entity/history-conformance.d.ts.map +1 -1
  12. package/dist/entity/history-conformance.js +103 -58
  13. package/dist/entity/history-conformance.js.map +1 -1
  14. package/dist/event/event-store.d.ts +51 -3
  15. package/dist/event/event-store.d.ts.map +1 -1
  16. package/dist/event/event-store.js +171 -27
  17. package/dist/event/event-store.js.map +1 -1
  18. package/dist/internal/agent-model-preferences.d.ts +76 -0
  19. package/dist/internal/agent-model-preferences.d.ts.map +1 -0
  20. package/dist/internal/agent-model-preferences.js +133 -0
  21. package/dist/internal/agent-model-preferences.js.map +1 -0
  22. package/dist/internal/entity-commit.d.ts +64 -8
  23. package/dist/internal/entity-commit.d.ts.map +1 -1
  24. package/dist/internal/entity-commit.js.map +1 -1
  25. package/dist/internal/entity-history.d.ts +1 -7
  26. package/dist/internal/entity-history.d.ts.map +1 -1
  27. package/dist/internal/entity-history.js +0 -5
  28. package/dist/internal/entity-history.js.map +1 -1
  29. package/dist/internal/event-store.d.ts +1 -1
  30. package/dist/internal/event-store.d.ts.map +1 -1
  31. package/dist/internal/event-store.js +1 -1
  32. package/dist/internal/event-store.js.map +1 -1
  33. package/dist/internal/storage-preparation.d.ts +88 -0
  34. package/dist/internal/storage-preparation.d.ts.map +1 -0
  35. package/dist/internal/storage-preparation.js +41 -0
  36. package/dist/internal/storage-preparation.js.map +1 -0
  37. package/dist/internal/tenancy.d.ts +7 -0
  38. package/dist/internal/tenancy.d.ts.map +1 -1
  39. package/dist/memory/in-memory-agent-history.d.ts.map +1 -1
  40. package/dist/memory/in-memory-agent-history.js +22 -7
  41. package/dist/memory/in-memory-agent-history.js.map +1 -1
  42. package/dist/memory/in-memory-entity-commit.d.ts +154 -21
  43. package/dist/memory/in-memory-entity-commit.d.ts.map +1 -1
  44. package/dist/memory/in-memory-entity-commit.js +396 -60
  45. package/dist/memory/in-memory-entity-commit.js.map +1 -1
  46. package/dist/memory/in-memory-entity-history.d.ts.map +1 -1
  47. package/dist/memory/in-memory-entity-history.js +4 -3
  48. package/dist/memory/in-memory-entity-history.js.map +1 -1
  49. package/dist/memory/in-memory-storage-backend.d.ts +33 -1
  50. package/dist/memory/in-memory-storage-backend.d.ts.map +1 -1
  51. package/dist/memory/in-memory-storage-backend.js +118 -1
  52. package/dist/memory/in-memory-storage-backend.js.map +1 -1
  53. package/dist/memory/in-memory-storage-factory.d.ts +71 -12
  54. package/dist/memory/in-memory-storage-factory.d.ts.map +1 -1
  55. package/dist/memory/in-memory-storage-factory.js +199 -25
  56. package/dist/memory/in-memory-storage-factory.js.map +1 -1
  57. package/dist/provider.d.ts +2 -0
  58. package/dist/provider.d.ts.map +1 -1
  59. package/dist/provider.js +2 -0
  60. package/dist/provider.js.map +1 -1
  61. package/dist/storage/storage-factory.d.ts +27 -4
  62. package/dist/storage/storage-factory.d.ts.map +1 -1
  63. package/dist/storage/storage-factory.js +30 -1
  64. package/dist/storage/storage-factory.js.map +1 -1
  65. package/dist/storage/storage.d.ts +2 -1
  66. package/dist/storage/storage.d.ts.map +1 -1
  67. package/dist/tsconfig.tsbuildinfo +1 -1
  68. package/package.json +3 -3
  69. package/dist/entity/agent-execution-record-spec.d.ts +0 -87
  70. package/dist/entity/agent-execution-record-spec.d.ts.map +0 -1
  71. package/dist/entity/agent-execution-record-spec.js +0 -230
  72. package/dist/entity/agent-execution-record-spec.js.map +0 -1
  73. package/dist/entity/agent-execution-sizes.d.ts +0 -30
  74. package/dist/entity/agent-execution-sizes.d.ts.map +0 -1
  75. package/dist/entity/agent-execution-sizes.js +0 -51
  76. package/dist/entity/agent-execution-sizes.js.map +0 -1
  77. package/dist/entity/agent-execution-transitions.d.ts +0 -72
  78. package/dist/entity/agent-execution-transitions.d.ts.map +0 -1
  79. package/dist/entity/agent-execution-transitions.js +0 -165
  80. package/dist/entity/agent-execution-transitions.js.map +0 -1
  81. package/dist/entity/agent-execution-values.d.ts +0 -143
  82. package/dist/entity/agent-execution-values.d.ts.map +0 -1
  83. package/dist/entity/agent-execution-values.js +0 -251
  84. package/dist/entity/agent-execution-values.js.map +0 -1
  85. package/dist/entity/agent-execution.d.ts +0 -235
  86. package/dist/entity/agent-execution.d.ts.map +0 -1
  87. package/dist/entity/agent-execution.js +0 -15
  88. package/dist/entity/agent-execution.js.map +0 -1
  89. package/dist/internal/agent-execution.d.ts +0 -51
  90. package/dist/internal/agent-execution.d.ts.map +0 -1
  91. package/dist/internal/agent-execution.js +0 -53
  92. package/dist/internal/agent-execution.js.map +0 -1
  93. package/dist/memory/agent-execution-head-index.d.ts +0 -52
  94. package/dist/memory/agent-execution-head-index.d.ts.map +0 -1
  95. package/dist/memory/agent-execution-head-index.js +0 -91
  96. package/dist/memory/agent-execution-head-index.js.map +0 -1
  97. package/dist/memory/in-memory-agent-execution.d.ts +0 -21
  98. package/dist/memory/in-memory-agent-execution.d.ts.map +0 -1
  99. package/dist/memory/in-memory-agent-execution.js +0 -587
  100. package/dist/memory/in-memory-agent-execution.js.map +0 -1
@@ -1,51 +0,0 @@
1
- import type { Message } from "@bufbuild/protobuf";
2
- import type { AgentExecutionStorage, AgentExecutionStorageInput } from "../entity/agent-execution.js";
3
- import type { StorageFactory } from "../storage/storage-factory.js";
4
- /**
5
- * Opens provider handles for durable Agent execution.
6
- */
7
- export interface AgentExecutionStorageFactory {
8
- /**
9
- * Opens a closeable provider handle for one Agent repository.
10
- *
11
- * @typeParam I Typed Agent identifier.
12
- * @typeParam S Generated Agent state.
13
- * @param input Entity layout and generated Agent state type.
14
- * @returns Provider execution handle.
15
- */
16
- createAgentExecutionStorage<I, S extends Message>(input: AgentExecutionStorageInput<I, S>): AgentExecutionStorage<I, S>;
17
- }
18
- /**
19
- * Registers and opens the provider-only durable Agent execution capability.
20
- */
21
- export interface AgentExecutionFactoryAccess {
22
- /**
23
- * Returns whether a storage factory registered durable Agent execution.
24
- *
25
- * @param factory Storage factory checked at Bounded Context registration.
26
- * @returns Whether the provider offers Agent execution handles.
27
- */
28
- supports(factory: StorageFactory): boolean;
29
- /**
30
- * Registers a provider capability.
31
- *
32
- * @param factory Storage factory offering execution.
33
- * @param creator Provider-specific handle creator.
34
- */
35
- register(factory: StorageFactory, creator: AgentExecutionStorageFactory): void;
36
- /**
37
- * Opens the required provider capability.
38
- *
39
- * @typeParam I Typed Agent identifier.
40
- * @typeParam S Generated Agent state.
41
- * @param factory Storage factory offering execution.
42
- * @param input Agent repository scope and Entity layout.
43
- * @returns Closeable provider execution handle.
44
- */
45
- create<I, S extends Message>(factory: StorageFactory, input: AgentExecutionStorageInput<I, S>): AgentExecutionStorage<I, S>;
46
- }
47
- /**
48
- * Registers and creates provider execution handles without exposing them to applications.
49
- */
50
- export declare const AgentExecutionStorageFactories: AgentExecutionFactoryAccess;
51
- //# sourceMappingURL=agent-execution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent-execution.d.ts","sourceRoot":"","sources":["../../src/internal/agent-execution.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,KAAK,EACV,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;;;;OAOG;IACH,2BAA2B,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,EAC9C,KAAK,EAAE,0BAA0B,CAAC,CAAC,EAAE,CAAC,CAAC,GACtC,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAChC;AAID;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC;IAE3C;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAE/E;;;;;;;;OAQG;IACH,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,EACzB,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,0BAA0B,CAAC,CAAC,EAAE,CAAC,CAAC,GACtC,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,2BAuC3C,CAAC"}
@@ -1,53 +0,0 @@
1
- /*
2
- * Copyright 2026, CodeMatters. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5
- * in compliance with the License. You may obtain a copy of the License at
6
- *
7
- * https://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under the License
10
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11
- * or implied. See the License for the specific language governing permissions and limitations under
12
- * the License.
13
- */
14
- const factories = new WeakMap();
15
- /**
16
- * Registers and creates provider execution handles without exposing them to applications.
17
- */
18
- export const AgentExecutionStorageFactories = Object.freeze({
19
- /**
20
- * Checks provider registration without selecting or fabricating a tenant.
21
- *
22
- * @param factory Storage factory checked at Bounded Context registration.
23
- * @returns Whether the provider offers Agent execution handles.
24
- */
25
- supports(factory) {
26
- return factories.has(factory);
27
- },
28
- /**
29
- * Registers one provider's execution capability.
30
- *
31
- * @param factory Storage factory offering execution.
32
- * @param creator Provider-specific handle creator.
33
- */
34
- register(factory, creator) {
35
- factories.set(factory, creator);
36
- },
37
- /**
38
- * Rejects providers without durable Agent execution support before intake.
39
- *
40
- * @typeParam I Typed Agent identifier.
41
- * @typeParam S Generated Agent state.
42
- * @param factory Storage factory offering execution.
43
- * @param input Agent repository scope and Entity layout.
44
- * @returns Closeable provider execution handle.
45
- */
46
- create(factory, input) {
47
- const creator = factories.get(factory);
48
- if (creator === undefined)
49
- throw new Error("StorageFactory does not provide durable Agent execution storage.");
50
- return creator.createAgentExecutionStorage(input);
51
- },
52
- });
53
- //# sourceMappingURL=agent-execution.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent-execution.js","sourceRoot":"","sources":["../../src/internal/agent-execution.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AA2BH,MAAM,SAAS,GAAG,IAAI,OAAO,EAAgD,CAAC;AAqC9E;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAgC,MAAM,CAAC,MAAM,CAAC;IACvF;;;;;OAKG;IACH,QAAQ,CAAC,OAAuB;QAC9B,OAAO,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CAAC,OAAuB,EAAE,OAAqC;QACrE,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,OAAuB,EACvB,KAAuC;QAEvC,MAAM,OAAO,GAAG,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACvC,IAAI,OAAO,KAAK,SAAS;YACvB,MAAM,IAAI,KAAK,CAAC,kEAAkE,CAAC,CAAC;QACtF,OAAO,OAAO,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -1,52 +0,0 @@
1
- import type { Timestamp } from "@bufbuild/protobuf/wkt";
2
- import { type AgentExecutionHead } from "@spine-event-engine/proto/generated/spine/server/agent/execution_record_pb.js";
3
- /**
4
- * One complete observed head-index entry.
5
- */
6
- export interface MemoryPendingHead {
7
- /**
8
- * Complete native-equivalent order key.
9
- */
10
- readonly orderKey: string;
11
- /**
12
- * Independent head snapshot at the page read.
13
- */
14
- readonly head: AgentExecutionHead;
15
- }
16
- /**
17
- * Keeps one ordered discovery entry per Agent instance.
18
- */
19
- export declare class MemoryPendingHeadIndex {
20
- #private;
21
- /**
22
- * Replaces the visible entry for one complete Agent scope.
23
- *
24
- * @param head Per-instance pending and lease record.
25
- * @param scope Generated state type and Agent key.
26
- */
27
- set(scope: string, head: AgentExecutionHead): void;
28
- /**
29
- * Reads no more than count plus one candidate before the fixed cutoff.
30
- *
31
- * @param after Observed pending-page cursor.
32
- * @param asOf Fixed eligibility cutoff for the page.
33
- * @param count Maximum number of records in the page.
34
- * @returns Ordered bounded per-instance head entries.
35
- */
36
- page(after: string | undefined, asOf: Timestamp, count: number): readonly MemoryPendingHead[];
37
- /**
38
- * Finds the first index entry whose key is not smaller than value.
39
- *
40
- * @param value Value read from a provider boundary.
41
- * @returns First matching index position.
42
- */
43
- private lower;
44
- /**
45
- * Finds the first index entry strictly after the cursor.
46
- *
47
- * @param value Value read from a provider boundary.
48
- * @returns Position after the last matching index entry.
49
- */
50
- private upper;
51
- }
52
- //# sourceMappingURL=agent-execution-head-index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent-execution-head-index.d.ts","sourceRoot":"","sources":["../../src/memory/agent-execution-head-index.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,+EAA+E,CAAC;AAIvF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;CACnC;AAED;;GAEG;AACH,qBAAa,sBAAsB;;IAKjC;;;;;OAKG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,IAAI;IAelD;;;;;;;OAOG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,iBAAiB,EAAE;IAM7F;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAab;;;;;OAKG;IACH,OAAO,CAAC,KAAK;CAKd"}
@@ -1,91 +0,0 @@
1
- /*
2
- * Copyright 2026, CodeMatters. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5
- * in compliance with the License. You may obtain a copy of the License at
6
- *
7
- * https://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software distributed under the License
10
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11
- * or implied. See the License for the specific language governing permissions and limitations under
12
- * the License.
13
- */
14
- import { fromBinary, toBinary } from "@bufbuild/protobuf";
15
- import { AgentExecutionHeadSchema, } from "@spine-event-engine/proto/generated/spine/server/agent/execution_record_pb.js";
16
- import { AgentExecutionRecords } from "../entity/agent-execution-record-spec.js";
17
- /**
18
- * Keeps one ordered discovery entry per Agent instance.
19
- */
20
- export class MemoryPendingHeadIndex {
21
- #byScope = new Map();
22
- #ordered = [];
23
- /**
24
- * Replaces the visible entry for one complete Agent scope.
25
- *
26
- * @param head Per-instance pending and lease record.
27
- * @param scope Generated state type and Agent key.
28
- */
29
- set(scope, head) {
30
- const previous = this.#byScope.get(scope);
31
- if (previous !== undefined)
32
- this.#ordered.splice(this.lower(previous.orderKey), 1);
33
- if (head.pending === undefined || head.eligibleAt === undefined || head.scope === undefined) {
34
- this.#byScope.delete(scope);
35
- return;
36
- }
37
- const entry = {
38
- orderKey: AgentExecutionRecords.pendingKey(head.eligibleAt, head.scope),
39
- head: fromBinary(AgentExecutionHeadSchema, toBinary(AgentExecutionHeadSchema, head)),
40
- };
41
- this.#ordered.splice(this.lower(entry.orderKey), 0, entry);
42
- this.#byScope.set(scope, entry);
43
- }
44
- /**
45
- * Reads no more than count plus one candidate before the fixed cutoff.
46
- *
47
- * @param after Observed pending-page cursor.
48
- * @param asOf Fixed eligibility cutoff for the page.
49
- * @param count Maximum number of records in the page.
50
- * @returns Ordered bounded per-instance head entries.
51
- */
52
- page(after, asOf, count) {
53
- const start = after === undefined ? 0 : this.upper(after);
54
- const end = this.lower(AgentExecutionRecords.pendingLower(asOf));
55
- return this.#ordered.slice(start, Math.min(end, start + count + 1));
56
- }
57
- /**
58
- * Finds the first index entry whose key is not smaller than value.
59
- *
60
- * @param value Value read from a provider boundary.
61
- * @returns First matching index position.
62
- */
63
- lower(value) {
64
- let left = 0;
65
- let right = this.#ordered.length;
66
- while (left < right) {
67
- const middle = (left + right) >>> 1;
68
- const entry = this.#ordered[middle];
69
- if (entry === undefined)
70
- throw new Error("Agent head index position is missing.");
71
- if (entry.orderKey < value)
72
- left = middle + 1;
73
- else
74
- right = middle;
75
- }
76
- return left;
77
- }
78
- /**
79
- * Finds the first index entry strictly after the cursor.
80
- *
81
- * @param value Value read from a provider boundary.
82
- * @returns Position after the last matching index entry.
83
- */
84
- upper(value) {
85
- let left = this.lower(value);
86
- while (this.#ordered[left]?.orderKey === value)
87
- left += 1;
88
- return left;
89
- }
90
- }
91
- //# sourceMappingURL=agent-execution-head-index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent-execution-head-index.js","sourceRoot":"","sources":["../../src/memory/agent-execution-head-index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE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protobuf";
2
- import type { AgentExecutionStorage, AgentExecutionStorageInput } from "../entity/agent-execution.js";
3
- import { InMemoryStorageBackend } from "./in-memory-storage-backend.js";
4
- import type { StorageFactory } from "../storage/storage-factory.js";
5
- /**
6
- * Opens a shared in-memory execution family within a complete tenant boundary.
7
- */
8
- export declare const MemoryAgentExecution: {
9
- /**
10
- * Opens a closeable Agent execution handle.
11
- *
12
- * @typeParam I Typed Agent identifier.
13
- * @typeParam S Generated Agent state.
14
- * @param backend Shared memory backend.
15
- * @param factory Storage factory supplying Entity commits.
16
- * @param input Agent repository and state type.
17
- * @returns Closeable provider handle.
18
- */
19
- open<I, S extends Message>(backend: InMemoryStorageBackend, factory: StorageFactory, input: AgentExecutionStorageInput<I, S>): AgentExecutionStorage<I, S>;
20
- };
21
- //# sourceMappingURL=in-memory-agent-execution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"in-memory-agent-execution.d.ts","sourceRoot":"","sources":["../../src/memory/in-memory-agent-execution.ts"],"names":[],"mappings":"AAcA,OAAO,EAA2B,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAiB3E,OAAO,KAAK,EAGV,qBAAqB,EACrB,0BAA0B,EAI3B,MAAM,8BAA8B,CAAC;AAQtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AA4BpE;;GAEG;AACH,eAAO,MAAM,oBAAoB;IAC/B;;;;;;;;;OASG;SACE,CAAC,EAAE,CAAC,SAAS,OAAO,WACd,sBAAsB,WACtB,cAAc,SAChB,0BAA0B,CAAC,CAAC,EAAE,CAAC,CAAC,GACtC,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC;CA0B/B,CAAC"}