effect-durable-agent 0.1.0-alpha.1 → 0.1.0-alpha.4

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 (136) hide show
  1. package/CHANGELOG.md +25 -1
  2. package/README.md +131 -128
  3. package/SECURITY.md +3 -4
  4. package/dist/{command-queues-CQ9cwRP7.d.ts → command-queues-CV7O-51r.d.ts} +7 -6
  5. package/dist/{compaction-YayFKo_1.d.ts → compaction-zbvLREI8.d.ts} +8 -6
  6. package/dist/context-projection-n6Rdup0N.d.ts +140 -0
  7. package/dist/{core-Hv3cFydL.d.ts → core-CYT6DBaS.d.ts} +2 -2
  8. package/dist/domain/command-queues.d.ts +1 -1
  9. package/dist/domain/context-projection.d.ts +2 -0
  10. package/dist/domain/context-projection.js +32 -0
  11. package/dist/domain/context-projection.js.map +1 -0
  12. package/dist/domain/message-transcript.d.ts +1 -1
  13. package/dist/domain/reduced-state-schema.d.ts +2 -0
  14. package/dist/domain/reduced-state-schema.js +2 -1
  15. package/dist/domain/reduced-state-schema.js.map +1 -1
  16. package/dist/domain/reduced-state.d.ts +1 -1
  17. package/dist/domain/reduced-state.js +1 -1
  18. package/dist/{durable-DlScwmCy.d.ts → durable-B7M6TD_0.d.ts} +341 -2
  19. package/dist/{durable-C3Rz7kg3.js → durable-DsV9PxZC.js} +13 -2
  20. package/dist/durable-DsV9PxZC.js.map +1 -0
  21. package/dist/{keep-alive-DYDsH6qN.d.ts → event-factory-CLJcyymV.d.ts} +5 -29
  22. package/dist/{keep-alive-p8dIcSVy.js → event-factory-tcpLgdMN.js} +3 -10
  23. package/dist/event-factory-tcpLgdMN.js.map +1 -0
  24. package/dist/host/websocket-protocol.d.ts +229 -0
  25. package/dist/host/websocket-protocol.js +99 -0
  26. package/dist/host/websocket-protocol.js.map +1 -0
  27. package/dist/host/websocket-wire.d.ts +2 -2
  28. package/dist/host/websocket-wire.js +37 -20
  29. package/dist/host/websocket-wire.js.map +1 -1
  30. package/dist/{id-generator-C2Q15uZM.d.ts → id-generator-Ckl8_XWW.d.ts} +2 -2
  31. package/dist/index.d.ts +4 -4
  32. package/dist/index.js +2 -2
  33. package/dist/keep-alive-Chl5SJxy.d.ts +29 -0
  34. package/dist/{message-transcript-BCHdHAe2.d.ts → message-transcript-DiOPBY3l.d.ts} +3 -3
  35. package/dist/{prompt-projector-9_02lk5-.d.ts → prompt-projector-C1IbkHr0.d.ts} +15 -16
  36. package/dist/{reduced-state-C4nVVzz9.js → reduced-state-TMi7ISla.js} +20 -4
  37. package/dist/reduced-state-TMi7ISla.js.map +1 -0
  38. package/dist/{reducer-registry-C0svUa63.d.ts → reducer-registry-CjSJBPKo.d.ts} +2 -2
  39. package/dist/{runtime-C56FQxiL.d.ts → runtime-DOgmAKsO.d.ts} +7 -6
  40. package/dist/services/compaction.d.ts +1 -1
  41. package/dist/services/compaction.js +4 -3
  42. package/dist/services/compaction.js.map +1 -1
  43. package/dist/services/id-generator.d.ts +1 -1
  44. package/dist/services/keep-alive.d.ts +2 -0
  45. package/dist/services/keep-alive.js +13 -0
  46. package/dist/services/keep-alive.js.map +1 -0
  47. package/dist/services/prompt-projector.d.ts +2 -2
  48. package/dist/services/prompt-projector.js +20 -10
  49. package/dist/services/prompt-projector.js.map +1 -1
  50. package/dist/services/reducer-registry.d.ts +1 -1
  51. package/dist/services/runtime-layer.d.ts +58 -0
  52. package/dist/services/runtime-layer.js +42 -0
  53. package/dist/services/runtime-layer.js.map +1 -0
  54. package/dist/services/runtime.d.ts +1 -1
  55. package/dist/services/runtime.js +4 -3
  56. package/dist/services/runtime.js.map +1 -1
  57. package/dist/services/session-query.d.ts +1 -1
  58. package/dist/services/session-query.js +76 -1
  59. package/dist/services/session-query.js.map +1 -0
  60. package/dist/services/session-state.d.ts +2 -0
  61. package/dist/services/session-state.js +2 -0
  62. package/dist/services/session-store.d.ts +2 -2
  63. package/dist/services/session-store.js +181 -2
  64. package/dist/services/session-store.js.map +1 -0
  65. package/dist/services/sink-checkpoint-store.d.ts +2 -0
  66. package/dist/services/sink-checkpoint-store.js +49 -0
  67. package/dist/services/sink-checkpoint-store.js.map +1 -0
  68. package/dist/services/sink-registry.d.ts +1 -1
  69. package/dist/services/sink-registry.js +1 -1
  70. package/dist/services/tool-registry.d.ts +1 -1
  71. package/dist/services/websocket-subscriber.d.ts +54 -0
  72. package/dist/services/websocket-subscriber.js +190 -0
  73. package/dist/services/websocket-subscriber.js.map +1 -0
  74. package/dist/session-query-C-C4m1eq.d.ts +38 -0
  75. package/dist/{session-query-DlRo5Ufc.d.ts → session-state-CjOSvWbe.d.ts} +132 -40
  76. package/dist/{session-query-DOc1KanA.js → session-state-SStf0KUo.js} +43 -146
  77. package/dist/session-state-SStf0KUo.js.map +1 -0
  78. package/dist/{session-store-D2Ore1QC.d.ts → session-store-DZZUffUy.d.ts} +5 -94
  79. package/dist/sink-checkpoint-store-BZmQFTRE.d.ts +40 -0
  80. package/dist/{sink-registry-CIU0LD3m.d.ts → sink-registry-Cf79ICdW.d.ts} +11 -40
  81. package/dist/{sink-registry-CFC6xjsN.js → sink-registry-D13eUO_c.js} +9 -47
  82. package/dist/sink-registry-D13eUO_c.js.map +1 -0
  83. package/dist/testkit/layers.d.ts +14 -11
  84. package/dist/testkit/layers.js +8 -5
  85. package/dist/testkit/layers.js.map +1 -1
  86. package/dist/{tool-registry-CcnkAAQK.d.ts → tool-registry-B7Wona6N.d.ts} +3 -3
  87. package/dist/types/core.d.ts +1 -1
  88. package/dist/types/core.js +1 -1
  89. package/dist/types/core.js.map +1 -1
  90. package/dist/types/events/durable.d.ts +2 -2
  91. package/dist/types/events/durable.js +2 -2
  92. package/dist/types/events.d.ts +2 -2
  93. package/dist/types/events.js +2 -2
  94. package/dist/websocket-wire-QD2SquQE.d.ts +2244 -0
  95. package/docs/assets/architecture.svg +170 -60
  96. package/docs/assets/event-sequence.svg +68 -78
  97. package/docs/assets/hero.svg +33 -0
  98. package/docs/message-steering.md +1 -1
  99. package/docs/releasing.md +96 -39
  100. package/docs/spec.md +15 -12
  101. package/docs/websocket-protocol.md +35 -9
  102. package/package.json +55 -35
  103. package/dist/durable-C3Rz7kg3.js.map +0 -1
  104. package/dist/durable-object-runtime-B7jwBY2R.js +0 -1494
  105. package/dist/durable-object-runtime-B7jwBY2R.js.map +0 -1
  106. package/dist/durable-object-runtime-pWv0ohlz.d.ts +0 -257
  107. package/dist/durable-object-storage-Czy7IPrh.d.ts +0 -41
  108. package/dist/host/durable-object-runtime.d.ts +0 -2
  109. package/dist/host/durable-object-runtime.js +0 -2
  110. package/dist/host/durable-object-storage.d.ts +0 -2
  111. package/dist/host/durable-object-storage.js +0 -0
  112. package/dist/host/durable-object.d.ts +0 -83
  113. package/dist/host/durable-object.js +0 -191
  114. package/dist/host/durable-object.js.map +0 -1
  115. package/dist/keep-alive-p8dIcSVy.js.map +0 -1
  116. package/dist/reduced-state-C4nVVzz9.js.map +0 -1
  117. package/dist/session-query-DOc1KanA.js.map +0 -1
  118. package/dist/session-store-pYxQW9qh.js +0 -214
  119. package/dist/session-store-pYxQW9qh.js.map +0 -1
  120. package/dist/sink-registry-CFC6xjsN.js.map +0 -1
  121. package/dist/websocket-wire-DvOu_6BJ.d.ts +0 -16773
  122. package/examples/001-no-tools/README.md +0 -65
  123. package/examples/001-no-tools/worker.ts +0 -79
  124. package/examples/002-slack-bridge/README.md +0 -134
  125. package/examples/002-slack-bridge/events.ts +0 -115
  126. package/examples/002-slack-bridge/reducer.ts +0 -216
  127. package/examples/002-slack-bridge/scenario.test.ts +0 -223
  128. package/examples/002-slack-bridge/sinks.ts +0 -109
  129. package/examples/002-slack-bridge/worker.ts +0 -140
  130. package/examples/003-sandbox-lifecycle/README.md +0 -78
  131. package/examples/003-sandbox-lifecycle/events.ts +0 -203
  132. package/examples/003-sandbox-lifecycle/reducer.ts +0 -305
  133. package/examples/003-sandbox-lifecycle/scenario.test.ts +0 -202
  134. package/examples/_shared/event-id.ts +0 -12
  135. package/examples/_shared/http.ts +0 -27
  136. package/examples/_shared/openai.ts +0 -33
@@ -1,38 +1,49 @@
1
1
  <svg
2
2
  xmlns="http://www.w3.org/2000/svg"
3
3
  width="1200"
4
- height="680"
5
- viewBox="0 0 1200 680"
4
+ height="865"
5
+ viewBox="0 0 1200 865"
6
6
  role="img"
7
7
  aria-labelledby="title description"
8
8
  >
9
- <title id="title">Effect Durable Agent architecture</title>
9
+ <title id="title">Effect Durable Agent framework components</title>
10
10
  <desc id="description">
11
- Commands and application events enter an EDA session runtime and ordered durable event log.
12
- Reducers derive agent and product state, a live stream updates reconnecting clients, and durable
13
- sinks deliver ordered side effects. The same history supports recovery, replay, tests, and model
14
- context. One Cloudflare Durable Object hosts each session.
11
+ Commands and application events enter the EDA session runtime and are recorded in an ordered
12
+ durable event log. The log feeds three balanced lanes: a live event stream for reconnecting
13
+ clients, pure reducers that produce framework and application state, and durable sinks for
14
+ external systems. State feeds separate pure UI and language-model context projections.
15
15
  </desc>
16
16
 
17
17
  <defs>
18
- <marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto">
19
- <path d="M 0 0 L 10 5 L 0 10 z" fill="#68737d" />
18
+ <marker
19
+ id="arrow"
20
+ viewBox="0 0 10 10"
21
+ refX="8"
22
+ refY="5"
23
+ markerWidth="7"
24
+ markerHeight="7"
25
+ orient="auto"
26
+ >
27
+ <path d="M 0 0 L 10 5 L 0 10 z" fill="#4f5d75" />
28
+ </marker>
29
+ <marker
30
+ id="arrow-accent"
31
+ viewBox="0 0 10 10"
32
+ refX="8"
33
+ refY="5"
34
+ markerWidth="7"
35
+ markerHeight="7"
36
+ orient="auto"
37
+ >
38
+ <path d="M 0 0 L 10 5 L 0 10 z" fill="#9a674f" />
20
39
  </marker>
21
40
  <style>
22
- .title {
23
- fill: #263238;
24
- font: 700 28px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
25
- }
26
- .subtitle {
27
- fill: #56616b;
28
- font: 400 15px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
29
- }
30
41
  .card-title {
31
- fill: #263238;
32
- font: 700 17px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
42
+ fill: #2d3142;
43
+ font: 700 18px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
33
44
  }
34
45
  .card-copy {
35
- fill: #56616b;
46
+ fill: #4f5d75;
36
47
  font: 500 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
37
48
  }
38
49
  .inverse-title {
@@ -40,67 +51,166 @@
40
51
  font: 700 18px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
41
52
  }
42
53
  .inverse-copy {
43
- fill: #dfe4e8;
54
+ fill: #e5e7eb;
44
55
  font: 500 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
45
56
  }
57
+ .node-input {
58
+ fill: #eceeef;
59
+ stroke: #bfc0c0;
60
+ }
61
+ .node-runtime {
62
+ fill: #2d3142;
63
+ stroke: #2d3142;
64
+ }
65
+ .node-focal {
66
+ fill: #f2ebe7;
67
+ stroke: #9a674f;
68
+ stroke-width: 1.5;
69
+ }
70
+ .node-primary {
71
+ fill: #ffffff;
72
+ stroke: #2d3142;
73
+ }
74
+ .node-secondary {
75
+ fill: #ffffff;
76
+ stroke: #bfc0c0;
77
+ }
78
+ .node-external {
79
+ fill: #f0f0f0;
80
+ stroke: #bfc0c0;
81
+ }
82
+ .step-number {
83
+ fill: #c8cacf;
84
+ font: 500 40px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
85
+ }
46
86
  .arrow {
47
87
  fill: none;
48
- stroke: #68737d;
88
+ stroke: #4f5d75;
49
89
  stroke-width: 2.5;
50
90
  marker-end: url(#arrow);
51
91
  }
92
+ .arrow-accent {
93
+ fill: none;
94
+ stroke: #9a674f;
95
+ stroke-width: 2.5;
96
+ marker-end: url(#arrow-accent);
97
+ }
52
98
  </style>
53
99
  </defs>
54
100
 
55
- <rect width="1200" height="680" rx="18" fill="#f7f7f5" />
56
- <text class="title" x="40" y="44">One durable history powers the whole application</text>
57
- <text class="subtitle" x="40" y="70">State, live clients, recovery, and side effects share the same source of truth.</text>
101
+ <rect width="1200" height="865" rx="18" fill="#f5f5f5" />
102
+
103
+ <rect class="node-input" x="360" y="20" width="480" height="65" rx="12" />
104
+ <text class="card-title" x="600" y="48" text-anchor="middle">
105
+ Commands + application events
106
+ </text>
107
+ <text class="card-copy" x="600" y="70" text-anchor="middle">User intent + product facts</text>
108
+
109
+ <path class="arrow" d="M 600 85 V 113" />
110
+
111
+ <rect class="node-runtime" x="360" y="115" width="480" height="70" rx="12" />
112
+ <text class="step-number" x="344" y="164" text-anchor="end">1</text>
113
+ <text class="inverse-title" x="600" y="145" text-anchor="middle">EDA session runtime</text>
114
+ <text class="inverse-copy" x="600" y="168" text-anchor="middle">
115
+ Effect workflows inside one Durable Object
116
+ </text>
117
+
118
+ <path class="arrow-accent" d="M 600 185 V 213" />
119
+
120
+ <rect class="node-focal" x="360" y="215" width="480" height="75" rx="12" />
121
+ <text class="step-number" x="344" y="268" text-anchor="end">2</text>
122
+ <text class="card-title" x="600" y="246" text-anchor="middle">
123
+ Ordered durable event log
124
+ </text>
125
+ <text class="card-copy" x="600" y="269" text-anchor="middle">
126
+ Framework + application events · Durable Object SQLite
127
+ </text>
128
+
129
+ <path class="arrow" d="M 480 290 V 317 Q 480 325 472 325 H 208 Q 200 325 200 333 V 348" />
130
+ <path class="arrow-accent" d="M 600 290 V 348" />
131
+ <path class="arrow" d="M 720 290 V 317 Q 720 325 728 325 H 992 Q 1000 325 1000 333 V 348" />
58
132
 
59
- <rect x="365" y="98" width="470" height="68" rx="12" fill="#fff9cc" stroke="#b59f00" />
60
- <text class="card-title" x="600" y="126" text-anchor="middle">Commands + application events</text>
61
- <text class="card-copy" x="600" y="149" text-anchor="middle">User intent and product facts enter together</text>
133
+ <rect class="node-secondary" x="60" y="350" width="280" height="100" rx="12" />
134
+ <text class="step-number" x="44" y="416" text-anchor="end">3</text>
135
+ <text class="card-title" x="200" y="389" text-anchor="middle">Live event stream</text>
136
+ <text class="card-copy" x="200" y="415" text-anchor="middle">
137
+ Committed events over WebSockets
138
+ </text>
139
+ <text class="card-copy" x="200" y="436" text-anchor="middle">
140
+ Ordered by event sequence
141
+ </text>
62
142
 
63
- <path class="arrow" d="M 600 166 V 200" />
143
+ <rect class="node-primary" x="450" y="350" width="300" height="100" rx="12" />
144
+ <text class="step-number" x="434" y="416" text-anchor="end">4</text>
145
+ <text class="card-title" x="600" y="389" text-anchor="middle">Pure reducers</text>
146
+ <text class="card-copy" x="600" y="415" text-anchor="middle">
147
+ Framework reducers + application reducers
148
+ </text>
149
+ <text class="card-copy" x="600" y="436" text-anchor="middle">
150
+ Deterministic at every sequence
151
+ </text>
64
152
 
65
- <rect x="365" y="202" width="470" height="78" rx="12" fill="#2b2d42" />
66
- <text class="inverse-title" x="600" y="234" text-anchor="middle">EDA session runtime</text>
67
- <text class="inverse-copy" x="600" y="258" text-anchor="middle">Effect workflows inside one Durable Object</text>
153
+ <rect class="node-secondary" x="860" y="350" width="280" height="100" rx="12" />
154
+ <text class="step-number" x="844" y="416" text-anchor="end">7</text>
155
+ <text class="card-title" x="1000" y="389" text-anchor="middle">Durable sinks</text>
156
+ <text class="card-copy" x="1000" y="415" text-anchor="middle">
157
+ Committed events · persisted cursors
158
+ </text>
159
+ <text class="card-copy" x="1000" y="436" text-anchor="middle">
160
+ At-least-once delivery · retry
161
+ </text>
68
162
 
69
- <path class="arrow" d="M 600 280 V 314" />
163
+ <path class="arrow" d="M 200 450 V 508" />
164
+ <path class="arrow-accent" d="M 600 450 V 508" />
165
+ <path class="arrow" d="M 1000 450 V 508" />
70
166
 
71
- <rect x="365" y="316" width="470" height="78" rx="12" fill="#0072b2" />
72
- <text class="inverse-title" x="600" y="348" text-anchor="middle">Ordered durable event log</text>
73
- <text class="inverse-copy" x="600" y="372" text-anchor="middle">The session's authoritative history</text>
167
+ <rect class="node-external" x="60" y="510" width="280" height="70" rx="12" />
168
+ <text class="card-title" x="200" y="539" text-anchor="middle">Reconnecting clients</text>
169
+ <text class="card-copy" x="200" y="562" text-anchor="middle">
170
+ Catch up, then continue live
171
+ </text>
74
172
 
75
- <path class="arrow" d="M 520 394 V 428 H 204 V 458" />
76
- <path class="arrow" d="M 600 394 V 458" />
77
- <path class="arrow" d="M 680 394 V 428 H 996 V 458" />
173
+ <rect class="node-focal" x="450" y="510" width="300" height="100" rx="12" />
174
+ <text class="step-number" x="434" y="576" text-anchor="end">5</text>
175
+ <text class="card-title" x="600" y="549" text-anchor="middle">State</text>
176
+ <text class="card-copy" x="600" y="575" text-anchor="middle">
177
+ Framework state + application state
178
+ </text>
179
+ <text class="card-copy" x="600" y="596" text-anchor="middle">
180
+ Snapshot through sequence N
181
+ </text>
78
182
 
79
- <rect x="44" y="460" width="320" height="92" rx="12" fill="#e3f6ef" stroke="#009e73" />
80
- <text class="card-title" x="204" y="493" text-anchor="middle">Pure reducers</text>
81
- <text class="card-copy" x="204" y="517" text-anchor="middle">Derive agent + product state</text>
82
- <text class="card-copy" x="204" y="537" text-anchor="middle">Replayable at any sequence</text>
183
+ <rect class="node-external" x="860" y="510" width="280" height="55" rx="12" />
184
+ <text class="card-title" x="1000" y="544" text-anchor="middle">External systems</text>
83
185
 
84
- <rect x="440" y="460" width="320" height="92" rx="12" fill="#e6f4fa" stroke="#56b4e9" />
85
- <text class="card-title" x="600" y="493" text-anchor="middle">Live event stream</text>
86
- <text class="card-copy" x="600" y="517" text-anchor="middle">Snapshot + ordered catch-up</text>
87
- <text class="card-copy" x="600" y="537" text-anchor="middle">Reconnect every client</text>
186
+ <path class="arrow" d="M 550 610 V 627 Q 550 635 542 635 H 473 Q 465 635 465 643 V 658" />
187
+ <path class="arrow" d="M 650 610 V 627 Q 650 635 658 635 H 727 Q 735 635 735 643 V 658" />
88
188
 
89
- <rect x="836" y="460" width="320" height="92" rx="12" fill="#fff0e5" stroke="#d55e00" />
90
- <text class="card-title" x="996" y="493" text-anchor="middle">Durable sinks</text>
91
- <text class="card-copy" x="996" y="517" text-anchor="middle">Ordered, non-blocking delivery</text>
92
- <text class="card-copy" x="996" y="537" text-anchor="middle">Slack · database · APIs</text>
189
+ <rect class="node-primary" x="340" y="660" width="250" height="110" rx="12" />
190
+ <text class="step-number" x="324" y="732" text-anchor="end">6</text>
191
+ <text class="card-title" x="465" y="698" text-anchor="middle">Pure UI projection</text>
192
+ <text class="card-copy" x="465" y="723" text-anchor="middle">
193
+ Renderable state for humans
194
+ </text>
195
+ <text class="card-copy" x="465" y="746" text-anchor="middle">
196
+ Full history · tools · product state
197
+ </text>
93
198
 
94
- <path class="arrow" d="M 204 552 V 586" />
95
- <path class="arrow" d="M 600 552 V 586" />
96
- <path class="arrow" d="M 996 552 V 586" />
199
+ <rect class="node-primary" x="610" y="660" width="250" height="110" rx="12" />
200
+ <text class="card-title" x="735" y="698" text-anchor="middle">LLM context projection</text>
201
+ <text class="card-copy" x="735" y="723" text-anchor="middle">
202
+ Purpose-built state for the model
203
+ </text>
204
+ <text class="card-copy" x="735" y="746" text-anchor="middle">
205
+ Selected · compacted · model-ready
206
+ </text>
97
207
 
98
- <rect x="44" y="588" width="320" height="58" rx="12" fill="#ffffff" stroke="#a7b0b7" />
99
- <text class="card-title" x="204" y="623" text-anchor="middle">Recovery · replay · tests</text>
208
+ <path class="arrow" d="M 465 770 V 798" />
209
+ <path class="arrow" d="M 735 770 V 798" />
100
210
 
101
- <rect x="440" y="588" width="320" height="58" rx="12" fill="#ffffff" stroke="#a7b0b7" />
102
- <text class="card-title" x="600" y="623" text-anchor="middle">Reconnecting clients</text>
211
+ <rect class="node-external" x="340" y="800" width="250" height="45" rx="12" />
212
+ <text class="card-title" x="465" y="829" text-anchor="middle">User interfaces</text>
103
213
 
104
- <rect x="836" y="588" width="320" height="58" rx="12" fill="#ffffff" stroke="#a7b0b7" />
105
- <text class="card-title" x="996" y="623" text-anchor="middle">Eventually consistent systems</text>
214
+ <rect class="node-external" x="610" y="800" width="250" height="45" rx="12" />
215
+ <text class="card-title" x="735" y="829" text-anchor="middle">Language model</text>
106
216
  </svg>
@@ -8,20 +8,20 @@
8
8
  >
9
9
  <title id="title">An illustrative EDA event sequence</title>
10
10
  <desc id="description">
11
- Ten events ordered from top to bottom. Blue cards are EDA framework events and orange cards are
12
- application events. Sandbox, file, and approval events appear between agent tool and message
13
- events.
11
+ Ten numbered events ordered from top to bottom. Neutral cards are EDA framework events and
12
+ muted rust cards are application events. Sandbox, file, and approval events appear between
13
+ agent tool and message events.
14
14
  </desc>
15
15
 
16
16
  <defs>
17
17
  <style>
18
18
  .event-name {
19
- fill: #263238;
20
- font: 600 16px ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
19
+ fill: #2d3142;
20
+ font: 600 16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
21
21
  }
22
- .sequence {
23
- fill: #56616b;
24
- font: 600 13px ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
22
+ .step-number {
23
+ fill: #c8cacf;
24
+ font: 500 40px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
25
25
  }
26
26
  .badge-text {
27
27
  fill: #ffffff;
@@ -29,110 +29,100 @@
29
29
  letter-spacing: 0.5px;
30
30
  }
31
31
  .legend {
32
- fill: #263238;
32
+ fill: #2d3142;
33
33
  font: 600 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
34
34
  }
35
35
  .framework-card {
36
- fill: #e6f4fa;
37
- stroke: #56b4e9;
36
+ fill: #ffffff;
37
+ stroke: #bfc0c0;
38
38
  }
39
39
  .app-card {
40
- fill: #fff0e5;
41
- stroke: #e69f00;
40
+ fill: #f2ebe7;
41
+ stroke: #9a674f;
42
+ stroke-width: 1.5;
42
43
  }
43
44
  .framework-badge {
44
- fill: #0072b2;
45
+ fill: #2d3142;
45
46
  }
46
47
  .app-badge {
47
- fill: #d55e00;
48
+ fill: #9a674f;
48
49
  }
49
50
  </style>
50
51
  </defs>
51
52
 
52
- <rect width="1000" height="650" rx="18" fill="#f7f7f5" />
53
+ <rect width="1000" height="650" rx="18" fill="#f5f5f5" />
53
54
 
54
- <g transform="translate(-50 -65)">
55
- <line x1="82" y1="118" x2="82" y2="634" stroke="#a7b0b7" stroke-width="3" />
55
+ <g transform="translate(-40 -65)">
56
56
 
57
57
  <g transform="translate(40 100)">
58
- <circle cx="42" cy="25" r="7" fill="#0072b2" />
59
- <rect class="framework-card" x="74" width="886" height="50" rx="10" />
60
- <text class="sequence" x="102" y="31" text-anchor="middle">1</text>
61
- <rect class="framework-badge" x="128" y="13" width="52" height="24" rx="12" />
62
- <text class="badge-text" x="154" y="29" text-anchor="middle">EDA</text>
63
- <text class="event-name" x="202" y="31">CommandAdmitted</text>
58
+ <rect class="framework-card" x="74" width="886" height="50" rx="12" />
59
+ <text class="step-number" x="58" y="39" text-anchor="end">1</text>
60
+ <rect class="framework-badge" x="96" y="13" width="52" height="24" rx="12" />
61
+ <text class="badge-text" x="122" y="29" text-anchor="middle">EDA</text>
62
+ <text class="event-name" x="170" y="31">CommandAdmitted</text>
64
63
  </g>
65
64
  <g transform="translate(40 158)">
66
- <circle cx="42" cy="25" r="7" fill="#0072b2" />
67
- <rect class="framework-card" x="74" width="886" height="50" rx="10" />
68
- <text class="sequence" x="102" y="31" text-anchor="middle">2</text>
69
- <rect class="framework-badge" x="128" y="13" width="52" height="24" rx="12" />
70
- <text class="badge-text" x="154" y="29" text-anchor="middle">EDA</text>
71
- <text class="event-name" x="202" y="31">RunStarted</text>
65
+ <rect class="framework-card" x="74" width="886" height="50" rx="12" />
66
+ <text class="step-number" x="58" y="39" text-anchor="end">2</text>
67
+ <rect class="framework-badge" x="96" y="13" width="52" height="24" rx="12" />
68
+ <text class="badge-text" x="122" y="29" text-anchor="middle">EDA</text>
69
+ <text class="event-name" x="170" y="31">RunStarted</text>
72
70
  </g>
73
71
  <g transform="translate(40 216)">
74
- <circle cx="42" cy="25" r="7" fill="#0072b2" />
75
- <rect class="framework-card" x="74" width="886" height="50" rx="10" />
76
- <text class="sequence" x="102" y="31" text-anchor="middle">3</text>
77
- <rect class="framework-badge" x="128" y="13" width="52" height="24" rx="12" />
78
- <text class="badge-text" x="154" y="29" text-anchor="middle">EDA</text>
79
- <text class="event-name" x="202" y="31">ToolCallStarted</text>
72
+ <rect class="framework-card" x="74" width="886" height="50" rx="12" />
73
+ <text class="step-number" x="58" y="39" text-anchor="end">3</text>
74
+ <rect class="framework-badge" x="96" y="13" width="52" height="24" rx="12" />
75
+ <text class="badge-text" x="122" y="29" text-anchor="middle">EDA</text>
76
+ <text class="event-name" x="170" y="31">ToolCallStarted</text>
80
77
  </g>
81
78
  <g transform="translate(40 274)">
82
- <circle cx="42" cy="25" r="7" fill="#d55e00" />
83
- <rect class="app-card" x="74" width="886" height="50" rx="10" />
84
- <text class="sequence" x="102" y="31" text-anchor="middle">4</text>
85
- <rect class="app-badge" x="128" y="13" width="52" height="24" rx="12" />
86
- <text class="badge-text" x="154" y="29" text-anchor="middle">APP</text>
87
- <text class="event-name" x="202" y="31">SandboxStarted</text>
79
+ <rect class="app-card" x="74" width="886" height="50" rx="12" />
80
+ <text class="step-number" x="58" y="39" text-anchor="end">4</text>
81
+ <rect class="app-badge" x="96" y="13" width="52" height="24" rx="12" />
82
+ <text class="badge-text" x="122" y="29" text-anchor="middle">APP</text>
83
+ <text class="event-name" x="170" y="31">SandboxStarted</text>
88
84
  </g>
89
85
  <g transform="translate(40 332)">
90
- <circle cx="42" cy="25" r="7" fill="#d55e00" />
91
- <rect class="app-card" x="74" width="886" height="50" rx="10" />
92
- <text class="sequence" x="102" y="31" text-anchor="middle">5</text>
93
- <rect class="app-badge" x="128" y="13" width="52" height="24" rx="12" />
94
- <text class="badge-text" x="154" y="29" text-anchor="middle">APP</text>
95
- <text class="event-name" x="202" y="31">FileRead</text>
86
+ <rect class="app-card" x="74" width="886" height="50" rx="12" />
87
+ <text class="step-number" x="58" y="39" text-anchor="end">5</text>
88
+ <rect class="app-badge" x="96" y="13" width="52" height="24" rx="12" />
89
+ <text class="badge-text" x="122" y="29" text-anchor="middle">APP</text>
90
+ <text class="event-name" x="170" y="31">FileRead</text>
96
91
  </g>
97
92
  <g transform="translate(40 390)">
98
- <circle cx="42" cy="25" r="7" fill="#d55e00" />
99
- <rect class="app-card" x="74" width="886" height="50" rx="10" />
100
- <text class="sequence" x="102" y="31" text-anchor="middle">6</text>
101
- <rect class="app-badge" x="128" y="13" width="52" height="24" rx="12" />
102
- <text class="badge-text" x="154" y="29" text-anchor="middle">APP</text>
103
- <text class="event-name" x="202" y="31">ApprovalRequested</text>
93
+ <rect class="app-card" x="74" width="886" height="50" rx="12" />
94
+ <text class="step-number" x="58" y="39" text-anchor="end">6</text>
95
+ <rect class="app-badge" x="96" y="13" width="52" height="24" rx="12" />
96
+ <text class="badge-text" x="122" y="29" text-anchor="middle">APP</text>
97
+ <text class="event-name" x="170" y="31">ApprovalRequested</text>
104
98
  </g>
105
99
  <g transform="translate(40 448)">
106
- <circle cx="42" cy="25" r="7" fill="#d55e00" />
107
- <rect class="app-card" x="74" width="886" height="50" rx="10" />
108
- <text class="sequence" x="102" y="31" text-anchor="middle">7</text>
109
- <rect class="app-badge" x="128" y="13" width="52" height="24" rx="12" />
110
- <text class="badge-text" x="154" y="29" text-anchor="middle">APP</text>
111
- <text class="event-name" x="202" y="31">ApprovalGranted</text>
100
+ <rect class="app-card" x="74" width="886" height="50" rx="12" />
101
+ <text class="step-number" x="58" y="39" text-anchor="end">7</text>
102
+ <rect class="app-badge" x="96" y="13" width="52" height="24" rx="12" />
103
+ <text class="badge-text" x="122" y="29" text-anchor="middle">APP</text>
104
+ <text class="event-name" x="170" y="31">ApprovalGranted</text>
112
105
  </g>
113
106
  <g transform="translate(40 506)">
114
- <circle cx="42" cy="25" r="7" fill="#0072b2" />
115
- <rect class="framework-card" x="74" width="886" height="50" rx="10" />
116
- <text class="sequence" x="102" y="31" text-anchor="middle">8</text>
117
- <rect class="framework-badge" x="128" y="13" width="52" height="24" rx="12" />
118
- <text class="badge-text" x="154" y="29" text-anchor="middle">EDA</text>
119
- <text class="event-name" x="202" y="31">ToolCallCompleted</text>
107
+ <rect class="framework-card" x="74" width="886" height="50" rx="12" />
108
+ <text class="step-number" x="58" y="39" text-anchor="end">8</text>
109
+ <rect class="framework-badge" x="96" y="13" width="52" height="24" rx="12" />
110
+ <text class="badge-text" x="122" y="29" text-anchor="middle">EDA</text>
111
+ <text class="event-name" x="170" y="31">ToolCallCompleted</text>
120
112
  </g>
121
113
  <g transform="translate(40 564)">
122
- <circle cx="42" cy="25" r="7" fill="#0072b2" />
123
- <rect class="framework-card" x="74" width="886" height="50" rx="10" />
124
- <text class="sequence" x="102" y="31" text-anchor="middle">9</text>
125
- <rect class="framework-badge" x="128" y="13" width="52" height="24" rx="12" />
126
- <text class="badge-text" x="154" y="29" text-anchor="middle">EDA</text>
127
- <text class="event-name" x="202" y="31">AssistantMessageCommitted</text>
114
+ <rect class="framework-card" x="74" width="886" height="50" rx="12" />
115
+ <text class="step-number" x="58" y="39" text-anchor="end">9</text>
116
+ <rect class="framework-badge" x="96" y="13" width="52" height="24" rx="12" />
117
+ <text class="badge-text" x="122" y="29" text-anchor="middle">EDA</text>
118
+ <text class="event-name" x="170" y="31">AssistantMessageCommitted</text>
128
119
  </g>
129
120
  <g transform="translate(40 622)">
130
- <circle cx="42" cy="25" r="7" fill="#0072b2" />
131
- <rect class="framework-card" x="74" width="886" height="50" rx="10" />
132
- <text class="sequence" x="102" y="31" text-anchor="middle">10</text>
133
- <rect class="framework-badge" x="128" y="13" width="52" height="24" rx="12" />
134
- <text class="badge-text" x="154" y="29" text-anchor="middle">EDA</text>
135
- <text class="event-name" x="202" y="31">RunCompleted</text>
121
+ <rect class="framework-card" x="74" width="886" height="50" rx="12" />
122
+ <text class="step-number" x="58" y="39" text-anchor="end">10</text>
123
+ <rect class="framework-badge" x="96" y="13" width="52" height="24" rx="12" />
124
+ <text class="badge-text" x="122" y="29" text-anchor="middle">EDA</text>
125
+ <text class="event-name" x="170" y="31">RunCompleted</text>
136
126
  </g>
137
127
  </g>
138
128
 
@@ -0,0 +1,33 @@
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="1400"
4
+ height="150"
5
+ viewBox="0 0 1400 150"
6
+ role="img"
7
+ aria-labelledby="title description"
8
+ >
9
+ <title id="title">Effect Durable Agent</title>
10
+ <desc id="description">
11
+ EDA is a redux-inspired durable state management layer for agentic applications
12
+ </desc>
13
+
14
+ <defs>
15
+ <style>
16
+ .statement {
17
+ fill: #4f5d75;
18
+ font: 600 28px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
19
+ }
20
+ .emphasis {
21
+ fill: #9a674f;
22
+ font-weight: 700;
23
+ }
24
+ </style>
25
+ </defs>
26
+
27
+ <rect width="1400" height="150" rx="18" fill="#f5f5f5" />
28
+
29
+ <text class="statement" x="700" y="75" text-anchor="middle" dominant-baseline="middle">
30
+ EDA is a redux-inspired <tspan class="emphasis">durable state management layer</tspan> for
31
+ agentic applications
32
+ </text>
33
+ </svg>
@@ -804,7 +804,7 @@ Primary framework areas:
804
804
  - `src/domain/dispatch-policy.ts`
805
805
  - `src/domain/run-continuation-policy.ts`
806
806
  - `src/services/session-state.ts`
807
- - `src/host/durable-object-store.ts`
807
+ - `packages/cloudflare/src/durable-object-store.ts`
808
808
 
809
809
  Primary Gia areas:
810
810