Update from Vibe Studio

This commit is contained in:
Vibe Studio
2026-01-09 14:52:46 +00:00
parent 42a0efe70b
commit 47fa6d98b2
28661 changed files with 2421771 additions and 0 deletions

21
node_modules/@ag-ui/client/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2025
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

78
node_modules/@ag-ui/client/README.md generated vendored Normal file
View File

@@ -0,0 +1,78 @@
# @ag-ui/client
Client SDK for connecting to **Agent-User Interaction (AG-UI) Protocol** servers.
`@ag-ui/client` provides agent implementations that handle the full lifecycle of AG-UI communication: connecting to servers, processing streaming events, managing state mutations, and providing reactive subscriber hooks.
## Installation
```bash
npm install @ag-ui/client
pnpm add @ag-ui/client
yarn add @ag-ui/client
```
## Features
- 🔗 **HTTP connectivity** `HttpAgent` for direct server connections with SSE/protobuf support
- 🏗️ **Custom agents** `AbstractAgent` base class for building your own transport layer
- 📡 **Event streaming** Full AG-UI event processing with validation and transformation
- 🔄 **State management** Automatic message/state tracking with reactive updates
- 🪝 **Subscriber system** Middleware-style hooks for logging, persistence, and custom logic
- 🎯 **Middleware support** Transform and filter events with function or class-based middleware
## Quick example
```ts
import { HttpAgent } from "@ag-ui/client";
const agent = new HttpAgent({
url: "https://api.example.com/agent",
headers: { Authorization: "Bearer token" },
});
const result = await agent.runAgent({
messages: [{ role: "user", content: "Hello!" }],
});
console.log(result.newMessages);
```
## Using Middleware
```ts
import { HttpAgent, FilterToolCallsMiddleware } from "@ag-ui/client";
const agent = new HttpAgent({
url: "https://api.example.com/agent",
});
// Add middleware to transform or filter events
agent.use(
// Function middleware for logging
(input, next) => {
console.log("Starting run:", input.runId);
return next.run(input);
},
// Class middleware for filtering tool calls
new FilterToolCallsMiddleware({
allowedToolCalls: ["search", "calculate"]
})
);
await agent.runAgent();
```
## Documentation
- Concepts & architecture: [`docs/concepts`](https://docs.ag-ui.com/concepts/architecture)
- Full API reference: [`docs/sdk/js/client`](https://docs.ag-ui.com/sdk/js/client/overview)
## Contributing
Bug reports and pull requests are welcome! Please read our [contributing guide](https://docs.ag-ui.com/development/contributing) first.
## License
MIT © 2025 AG-UI Protocol Contributors

46
node_modules/@ag-ui/client/package.json generated vendored Normal file
View File

@@ -0,0 +1,46 @@
{
"name": "@ag-ui/client",
"author": "Markus Ecker <markus.ecker@gmail.com>",
"version": "0.0.42",
"private": false,
"publishConfig": {
"access": "public"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"sideEffects": false,
"files": [
"dist/**",
"README.md"
],
"dependencies": {
"@types/uuid": "^10.0.0",
"compare-versions": "^6.1.1",
"fast-json-patch": "^3.1.1",
"rxjs": "7.8.1",
"untruncate-json": "^0.0.1",
"uuid": "^11.1.0",
"zod": "^3.22.4",
"@ag-ui/core": "0.0.42",
"@ag-ui/encoder": "0.0.42",
"@ag-ui/proto": "0.0.42"
},
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^20.11.19",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"tsup": "^8.0.2",
"typescript": "^5.3.3"
},
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"clean": "rm -rf dist .turbo node_modules",
"typecheck": "tsc --noEmit",
"test": "jest",
"link:global": "pnpm link --global",
"unlink:global": "pnpm unlink --global"
}
}