Skip to content

Commit 92bb984

Browse files
committed
docs(web): refresh demos copy for v2.2 (JSON-RPC, capabilities, SSE)
Update the /demos landing page text to reflect v2.2 protocol surface: - Hero: highlight JSON-RPC 2.0, version negotiation, scoped capabilities and streaming responses over WebSockets or SSE. - Demo 1 (.process): describe POST /asap envelope and ASAP-Version header. - Demo 2 (Schema): mention capability schemas with constraint operators (max, min, in, not_in). - Demo 3 (Memory): cover both WebSocket memory_snapshot events and TaskStream chunks via POST /asap/stream (Server-Sent Events). - CTA: remove inaccurate "TypeScript" SDK claim; mention reference integrations (LangChain, CrewAI, PydanticAI, LlamaIndex). No structural/code changes; preserves existing CTA hyperlinks (verified: GitHub examples 200 OK, /browse route exists).
1 parent 7f72e29 commit 92bb984

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

apps/web/src/app/demos/page.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function DemosPage() {
3838
Execution in Action
3939
</h1>
4040
<p className="text-xl text-zinc-400">
41-
See the ASAP Protocol in action. Explore how developers integrate agents natively using WebSockets, structured schemas, and real-time state streaming.
41+
See the ASAP Protocol in action. Explore how developers integrate agents over JSON-RPC 2.0 — with version negotiation, scoped capabilities, and streaming responses via WebSockets or Server-Sent Events.
4242
</p>
4343
</header>
4444

@@ -51,17 +51,17 @@ export default function DemosPage() {
5151
</div>
5252
<div>
5353
<h2 className="text-2xl font-bold tracking-tight text-white font-mono">1. The <code>.process</code> Command</h2>
54-
<p className="text-zinc-500 font-mono text-sm">Universal WebSocket orchestration.</p>
54+
<p className="text-zinc-500 font-mono text-sm">Universal JSON-RPC 2.0 orchestration over HTTP or WebSocket.</p>
5555
</div>
5656
</div>
5757

5858
<div className="grid grid-cols-1 xl:grid-cols-2 gap-12 items-center">
5959
<div className="space-y-6 text-zinc-400 leading-relaxed text-lg">
6060
<p>
61-
Instead of learning a different REST API wrapper for every LLM or agent, ASAP normalizes the invocation workflow.
61+
Instead of learning a different REST API wrapper for every LLM or agent, ASAP normalizes the invocation surface around JSON-RPC 2.0.
6262
</p>
6363
<p>
64-
You open a WebSocket connection and send a single standard payload containing your input data mapped against the agent&apos;s registered schema. The agent immediately begins streaming states back.
64+
Send a single envelope to <code>POST /asap</code> — or open a WebSocket for bidirectional flows — and the agent immediately starts streaming state. Version negotiation via the <code>ASAP-Version</code> header keeps clients and servers compatible across releases.
6565
</p>
6666
</div>
6767

@@ -95,7 +95,7 @@ export default function DemosPage() {
9595
</div>
9696
<div>
9797
<h2 className="text-2xl font-bold tracking-tight text-white font-mono">2. Strict Schema validation</h2>
98-
<p className="text-zinc-500 font-mono text-sm">Zero guesswork with Zod schemas.</p>
98+
<p className="text-zinc-500 font-mono text-sm">Zero guesswork with capability schemas and Zod.</p>
9999
</div>
100100
</div>
101101

@@ -130,6 +130,9 @@ export default function DemosPage() {
130130
<p>
131131
Because the orchestration data layer maps 1:1, developers can instantly wrap requests in Zod or TypeScript types, catching invalid inputs locally before they ever hit the agent&apos;s network boundaries.
132132
</p>
133+
<p>
134+
Since v2.2, every capability publishes its own input schema plus optional constraint operators (<code>max</code>, <code>min</code>, <code>in</code>, <code>not_in</code>) — so consumers know exactly what they&apos;re granting before the agent ever acts.
135+
</p>
133136
</div>
134137
</div>
135138
</section>
@@ -148,10 +151,10 @@ export default function DemosPage() {
148151
<div className="grid grid-cols-1 xl:grid-cols-2 gap-12 items-center">
149152
<div className="space-y-6 text-zinc-400 leading-relaxed text-lg">
150153
<p>
151-
The protocol enforces a <code>MemorySnapshot</code> standard. Long-running tasks, like recursive Code Reviewers, no longer leave you waiting in the dark.
154+
The protocol standardizes incremental updates so long-running taskslike recursive Code Reviewers — never leave you waiting in the dark.
152155
</p>
153156
<p>
154-
Agents stream continuous snapshots defining their internal context memory, tool invocations, and generated thoughts. Build rich, dynamic UIs that update as the agent thinks.
157+
Subscribe to a WebSocket for bidirectional <code>memory_snapshot</code> events, or hit <code>POST /asap/stream</code> with <code>Accept: text/event-stream</code> to consume <code>TaskStream</code> chunks over Server-Sent Events. Either way, you build rich, dynamic UIs that update as the agent thinks.
155158
</p>
156159
</div>
157160

@@ -184,7 +187,7 @@ export default function DemosPage() {
184187
Ready to start building?
185188
</h2>
186189
<p className="mb-8 text-xl text-zinc-400 max-w-2xl mx-auto">
187-
Dive into our repository to see fully functional examples of ASAP agents built in Python and TypeScript.
190+
Dive into our repository to see fully functional examples of ASAP agents built in Python, with reference integrations for LangChain, CrewAI, PydanticAI, LlamaIndex and more.
188191
</p>
189192
<div className="flex items-center justify-center gap-4">
190193
<Link

0 commit comments

Comments
 (0)