diff --git a/apps/website/content/AGENTS.md.template b/apps/website/content/AGENTS.md.template index 41817dde0..dc39a0471 100644 --- a/apps/website/content/AGENTS.md.template +++ b/apps/website/content/AGENTS.md.template @@ -1,23 +1,23 @@ -# stream-resource v@VERSION@ +# Angular Agent Framework v@VERSION@ -Angular streaming library for LangChain/LangGraph. Provides `streamResource()` — Signal-native streaming for Angular agents, built for LangGraph. +Angular agent framework for LangChain/LangGraph. Provides `agent()` — Signal-native streaming for Angular agents, built for LangGraph. ## Install -npm install stream-resource +npm install @cacheplane/angular ## Key requirement -`streamResource()` MUST be called within an Angular injection context (component constructor or field initializer). Calling it in ngOnInit or any async context throws "NG0203: inject() must be called from an injection context". +`agent()` MUST be called within an Angular injection context (component constructor or field initializer). Calling it in ngOnInit or any async context throws "NG0203: inject() must be called from an injection context". ## Basic usage ```typescript // app.config.ts -import { provideStreamResource } from 'stream-resource'; +import { provideAgent } from '@cacheplane/angular'; export const appConfig: ApplicationConfig = { - providers: [provideStreamResource({ apiUrl: 'http://localhost:2024' })] + providers: [provideAgent({ apiUrl: 'http://localhost:2024' })] }; // chat.component.ts -import { streamResource } from 'stream-resource'; +import { agent } from '@cacheplane/angular'; import type { BaseMessage } from '@langchain/core/messages'; @Component({ template: ` @@ -25,20 +25,20 @@ import type { BaseMessage } from '@langchain/core/messages'; `}) export class ChatComponent { - chat = streamResource<{ messages: BaseMessage[] }>({ assistantId: 'chat_agent' }); + chat = agent<{ messages: BaseMessage[] }>({ assistantId: 'chat_agent' }); send() { this.chat.submit({ messages: [{ role: 'human', content: 'Hello' }] }); } } ``` ## Key patterns - Thread persistence: `threadId: signal(localStorage.getItem('t'))` + `onThreadId: (id) => localStorage.setItem('t', id)` -- Global config: `provideStreamResource({ apiUrl })` in app.config.ts -- Per-call override: pass `apiUrl` directly to `streamResource()` -- Testing: use `MockStreamTransport` — never mock `streamResource()` itself +- Global config: `provideAgent({ apiUrl })` in app.config.ts +- Per-call override: pass `apiUrl` directly to `agent()` +- Testing: use `MockAgentTransport` — never mock `agent()` itself ## MCP server (for tool access) Add to ~/.claude/settings.json: -{"mcpServers":{"stream-resource":{"command":"npx","args":["@stream-resource/mcp"]}}} +{"mcpServers":{"angular-agent":{"command":"npx","args":["@cacheplane/angular-mcp"]}}} ## Version check If this file is stale, fetch the latest: https://stream-resource.dev/llms-full.txt diff --git a/apps/website/content/CLAUDE.md.template b/apps/website/content/CLAUDE.md.template index 41817dde0..dc39a0471 100644 --- a/apps/website/content/CLAUDE.md.template +++ b/apps/website/content/CLAUDE.md.template @@ -1,23 +1,23 @@ -# stream-resource v@VERSION@ +# Angular Agent Framework v@VERSION@ -Angular streaming library for LangChain/LangGraph. Provides `streamResource()` — Signal-native streaming for Angular agents, built for LangGraph. +Angular agent framework for LangChain/LangGraph. Provides `agent()` — Signal-native streaming for Angular agents, built for LangGraph. ## Install -npm install stream-resource +npm install @cacheplane/angular ## Key requirement -`streamResource()` MUST be called within an Angular injection context (component constructor or field initializer). Calling it in ngOnInit or any async context throws "NG0203: inject() must be called from an injection context". +`agent()` MUST be called within an Angular injection context (component constructor or field initializer). Calling it in ngOnInit or any async context throws "NG0203: inject() must be called from an injection context". ## Basic usage ```typescript // app.config.ts -import { provideStreamResource } from 'stream-resource'; +import { provideAgent } from '@cacheplane/angular'; export const appConfig: ApplicationConfig = { - providers: [provideStreamResource({ apiUrl: 'http://localhost:2024' })] + providers: [provideAgent({ apiUrl: 'http://localhost:2024' })] }; // chat.component.ts -import { streamResource } from 'stream-resource'; +import { agent } from '@cacheplane/angular'; import type { BaseMessage } from '@langchain/core/messages'; @Component({ template: ` @@ -25,20 +25,20 @@ import type { BaseMessage } from '@langchain/core/messages'; `}) export class ChatComponent { - chat = streamResource<{ messages: BaseMessage[] }>({ assistantId: 'chat_agent' }); + chat = agent<{ messages: BaseMessage[] }>({ assistantId: 'chat_agent' }); send() { this.chat.submit({ messages: [{ role: 'human', content: 'Hello' }] }); } } ``` ## Key patterns - Thread persistence: `threadId: signal(localStorage.getItem('t'))` + `onThreadId: (id) => localStorage.setItem('t', id)` -- Global config: `provideStreamResource({ apiUrl })` in app.config.ts -- Per-call override: pass `apiUrl` directly to `streamResource()` -- Testing: use `MockStreamTransport` — never mock `streamResource()` itself +- Global config: `provideAgent({ apiUrl })` in app.config.ts +- Per-call override: pass `apiUrl` directly to `agent()` +- Testing: use `MockAgentTransport` — never mock `agent()` itself ## MCP server (for tool access) Add to ~/.claude/settings.json: -{"mcpServers":{"stream-resource":{"command":"npx","args":["@stream-resource/mcp"]}}} +{"mcpServers":{"angular-agent":{"command":"npx","args":["@cacheplane/angular-mcp"]}}} ## Version check If this file is stale, fetch the latest: https://stream-resource.dev/llms-full.txt diff --git a/apps/website/public/assets/hero.svg b/apps/website/public/assets/hero.svg index f93a725fa..12a2f2bc2 100644 --- a/apps/website/public/assets/hero.svg +++ b/apps/website/public/assets/hero.svg @@ -24,7 +24,7 @@ font-style="italic" fill="#8B96C8" opacity="0.9" - >The Enterprise Streaming Resource for LangChain and Angular + >The Enterprise Agent Framework for LangChain and Angular diff --git a/apps/website/src/app/layout.tsx b/apps/website/src/app/layout.tsx index 94d186adf..a6051c55e 100644 --- a/apps/website/src/app/layout.tsx +++ b/apps/website/src/app/layout.tsx @@ -23,7 +23,7 @@ const mono = JetBrains_Mono({ export const metadata: Metadata = { title: 'Angular Agent Framework — Signal-Native Streaming for Angular + LangGraph', - description: 'The Enterprise Streaming Resource for LangChain and Angular. Signal-native streaming, thread persistence, and production patterns for Angular 20+.', + description: 'The enterprise Angular agent framework for LangChain. Signal-native streaming, thread persistence, and production patterns for Angular 20+.', openGraph: { title: 'Angular Agent Framework', description: 'Signal-native streaming for LangGraph — production patterns your Angular team can own.', diff --git a/apps/website/src/components/landing/HeroTwoCol.tsx b/apps/website/src/components/landing/HeroTwoCol.tsx index b111bfc0b..040f9f8a4 100644 --- a/apps/website/src/components/landing/HeroTwoCol.tsx +++ b/apps/website/src/components/landing/HeroTwoCol.tsx @@ -86,7 +86,7 @@ export async function HeroTwoCol() { margin: 0, marginBottom: 20, }}> - The Enterprise Streaming Resource for LangChain and{' '} + The Enterprise Agent Framework for LangChain and{' '} Angular diff --git a/apps/website/src/components/shared/Footer.tsx b/apps/website/src/components/shared/Footer.tsx index 1d782ed11..f87727ee9 100644 --- a/apps/website/src/components/shared/Footer.tsx +++ b/apps/website/src/components/shared/Footer.tsx @@ -105,7 +105,7 @@ export function Footer() {

Angular Agent Framework

- The enterprise streaming resource for LangChain and Angular. Signal-native streaming built for production Angular 20+. + The enterprise Angular agent framework for LangChain. Signal-native streaming built for production Angular 20+.

{/* Social links */} diff --git a/apps/website/src/components/shared/Nav.tsx b/apps/website/src/components/shared/Nav.tsx index 5b32c6384..466061fbf 100644 --- a/apps/website/src/components/shared/Nav.tsx +++ b/apps/website/src/components/shared/Nav.tsx @@ -95,10 +95,10 @@ export function Nav() { {/* Mobile hamburger */}