-
Notifications
You must be signed in to change notification settings - Fork 458
feat(eve): lifecycle - expose callback context #1901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
AndrewBarba
wants to merge
15
commits into
barba/research-memory-extension-api
from
barba/turn-prepared-primitives
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
46a555c
docs(eve): propose first-class memory research plan
AndrewBarba fcf9c2f
docs(eve): tighten first-class memory research plan
AndrewBarba 8baee8f
docs(eve): clarify first-class memory plan
AndrewBarba 002c2c5
docs(eve): simplify first-class memory proposal
AndrewBarba aebd930
docs(eve): define public memory provider contract
AndrewBarba 9c55a0c
docs(eve): make memory lifecycle provider-owned
AndrewBarba f349923
docs(eve): model memory providers as event maps
AndrewBarba 12ddbf0
docs(eve): simplify memory lifecycle diagram
AndrewBarba 95be864
docs(eve): add memory compaction lifecycle
AndrewBarba e7e6062
docs(eve): make memory messages durable
AndrewBarba 016a8c1
docs(eve): let every memory event vend context
AndrewBarba 1dc0d20
docs(eve): memory - allow async scope resolution
AndrewBarba 16bfc47
docs(eve): memory - document final API
AndrewBarba 7b53e2d
docs(eve): memory - use exact event types
AndrewBarba 553cbf2
feat(eve): lifecycle - expose callback context
AndrewBarba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "eve": patch | ||
| --- | ||
|
|
||
| Expose message snapshots and cancellation signals in hook contexts. Dynamic resolvers receive the latest durable message snapshot across lifecycle events, and durable tools fail closed when replay functions are unavailable. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/eve/extension-contracts/compatibility/hook/v11.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import { defineHook } from "#public/hooks/index.js"; | ||
|
|
||
| export default defineHook({ | ||
| events: { | ||
| "approval.candidate"(event, ctx) { | ||
| console.info("approval candidate", { | ||
| candidateId: event.data.candidateId, | ||
| outcome: event.data.outcome, | ||
| sessionId: ctx.session.id, | ||
| }); | ||
| }, | ||
| }, | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "kind": "eve-extension-capability-contract", | ||
| "capability": "hook", | ||
| "epoch": 12, | ||
| "sha256": "8c1c6e56147f1af064a4bb9d946b0aaaec0c018573009e33f4a8b5d3c30c30b7", | ||
| "exports": ["defineHook"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.