Feat: Add JS Timestamp Extension Sample - #656
Merged
Iwaniukooo11 merged 5 commits intoJul 27, 2026
Merged
Conversation
…d client interceptors
…tor, and rename fixed time variable
Iwaniukooo11
force-pushed
the
mateusziwaniuk/timestamp-js-sample-update-clean
branch
from
July 24, 2026 11:25
2455820 to
c1bfb58
Compare
…tionError with Error
Iwaniukooo11
force-pushed
the
mateusziwaniuk/timestamp-js-sample-update-clean
branch
from
July 24, 2026 11:31
c1bfb58 to
b4277e7
Compare
JakubWorek
approved these changes
Jul 27, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Description: Feat: Add JS/TS Timestamp Extension Sample
Overview
This PR introduces a brand-new JavaScript/TypeScript implementation of the Timestamp Extension sample using
@a2a-js/sdkv1.0.The sample demonstrates how to enrich outgoing A2A messages and artifacts with compliance timestamps in a modular, decoupled, and automated manner.
Key Features
Modular Architecture & Package Structure
timestamp_ext/: The core library package.core.ts: Houses the mainTimestampExtensionhelper class and metadata settings.server.ts: Houses thewrapExecutorfunction to automatically timestamp outgoing events.client.ts: Houses client-side interceptors (wrapClientFactoryandclientInterceptor) to inject headers and stamp outgoing client messages.index.ts&agent_executor.ts): Launches an Express JSON-RPC agent server running anEchoExecutorthat delegates response text generation to anEchoAgentclass.test_client.ts): Validates the end-to-end client-server round trip, verifying that both message and artifact metadata timestamps are correctly generated and verified.Compliance & Testing Support
Complete Showcase Documentation
README.mdcontaining architectural walkthroughs, usage guides for both server-side and client-side setup, and instructions on running the standalone server and tests.