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"
}
}

21
node_modules/@ag-ui/core/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.

46
node_modules/@ag-ui/core/README.md generated vendored Normal file
View File

@@ -0,0 +1,46 @@
# @ag-ui/core
TypeScript definitions & runtime schemas for the **Agent-User Interaction (AG-UI) Protocol**.
`@ag-ui/core` delivers the strongly-typed building blocks that every other AG-UI package is built on: message & state models, run inputs and the full set of streaming event types.
## Installation
```bash
npm install @ag-ui/core
pnpm add @ag-ui/core
yarn add @ag-ui/core
```
## Features
- 🧩 **Typed data models** `Message`, `Tool`, `Context`, `RunAgentInput`, `State`
- 🔄 **Streaming events** 16 core event kinds covering assistant messages, tool calls, state updates and run lifecycle.
-**Runtime validation** schemas catch malformed payloads early.
- 🚀 **Framework-agnostic** works in Node.js, browsers and any agent framework that can emit JSON.
## Quick example
```ts
import { EventSchemas, EventType } from "@ag-ui/core";
// Validate an incoming event
EventSchemas.parse({
type: EventType.TEXT_MESSAGE_CONTENT,
messageId: "msg_123",
delta: "Hello, world!",
});
```
## Documentation
- Concepts & architecture: [`docs/concepts`](https://docs.ag-ui.com/concepts/architecture)
- Full API reference: [`docs/sdk/js/core`](https://docs.ag-ui.com/sdk/js/core/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

32
node_modules/@ag-ui/core/package.json generated vendored Normal file
View File

@@ -0,0 +1,32 @@
{
"name": "@ag-ui/core",
"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",
"dependencies": {
"rxjs": "7.8.1",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"tsup": "^8.0.2",
"typescript": "^5.8.2"
},
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"lint": "eslint \"src/**/*.ts*\"",
"clean": "rm -rf dist .turbo node_modules",
"test": "jest",
"link:global": "pnpm link --global",
"unlink:global": "pnpm unlink --global"
}
}

21
node_modules/@ag-ui/encoder/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.

53
node_modules/@ag-ui/encoder/README.md generated vendored Normal file
View File

@@ -0,0 +1,53 @@
# @ag-ui/encoder
Event encoding utilities for the **Agent-User Interaction (AG-UI) Protocol**.
`@ag-ui/encoder` handles content negotiation and format encoding for AG-UI events. It automatically chooses between Server-Sent Events (JSON) and Protocol Buffers based on client `Accept` headers, ensuring optimal transport efficiency.
## Installation
```bash
npm install @ag-ui/encoder
pnpm add @ag-ui/encoder
yarn add @ag-ui/encoder
```
## Features
- 🎯 **Content negotiation** Automatic format selection based on `Accept` headers
- 📦 **Dual encoding** SSE (JSON) and Protocol Buffer support
-**Efficient binary** Length-prefixed protobuf encoding for high-throughput scenarios
- 🔄 **Seamless fallback** Graceful degradation to SSE when protobuf isn't supported
## Quick example
```ts
import { EventEncoder } from "@ag-ui/encoder";
import { EventType } from "@ag-ui/core";
const encoder = new EventEncoder({
accept: "application/vnd.ag-ui.event+proto, text/event-stream",
});
const event = {
type: EventType.TEXT_MESSAGE_CONTENT,
messageId: "msg_123",
delta: "Hello, world!",
};
// Returns protobuf-encoded binary data
const encoded = encoder.encodeBinary(event);
```
## Documentation
- Concepts & architecture: [`docs/concepts`](https://docs.ag-ui.com/concepts/architecture)
- Full API reference: [`docs/sdk/js/encoder`](https://docs.ag-ui.com/sdk/js/encoder)
## 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

32
node_modules/@ag-ui/encoder/package.json generated vendored Normal file
View File

@@ -0,0 +1,32 @@
{
"name": "@ag-ui/encoder",
"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",
"dependencies": {
"@ag-ui/proto": "0.0.42",
"@ag-ui/core": "0.0.42"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"tsup": "^8.0.2",
"typescript": "^5.8.2"
},
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"lint": "eslint \"src/**/*.ts*\"",
"clean": "rm -rf dist .turbo node_modules",
"test": "jest",
"link:global": "pnpm link --global",
"unlink:global": "pnpm unlink --global"
}
}

21
node_modules/@ag-ui/proto/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.

53
node_modules/@ag-ui/proto/README.md generated vendored Normal file
View File

@@ -0,0 +1,53 @@
# @ag-ui/proto
Protocol Buffer encoding/decoding for **Agent-User Interaction (AG-UI) Protocol** events.
`@ag-ui/proto` provides high-performance binary serialization of AG-UI events using Protocol Buffers. It includes generated TypeScript definitions and utilities for converting between AG-UI's JSON event format and compact binary representation.
## Installation
```bash
npm install @ag-ui/proto
pnpm add @ag-ui/proto
yarn add @ag-ui/proto
```
## Features
-**High performance** Binary protobuf encoding for minimal bandwidth usage
- 🔄 **Round-trip safety** Lossless conversion between JSON and binary formats
- 📋 **Generated types** Auto-generated TypeScript definitions from `.proto` schemas
- 🔧 **Length-prefixed** Standard 4-byte length headers for streaming protocols
## Quick example
```ts
import { encode, decode, AGUI_MEDIA_TYPE } from "@ag-ui/proto";
import { EventType } from "@ag-ui/core";
const event = {
type: EventType.TEXT_MESSAGE_START,
messageId: "msg_123",
role: "assistant",
};
// Encode to binary protobuf format
const encoded = encode(event);
// Decode back to AG-UI event
const decoded = decode(encoded);
console.log(decoded); // Original event object
```
## Documentation
- Concepts & architecture: [`docs/concepts`](https://docs.ag-ui.com/concepts/architecture)
- Full API reference: [`docs/sdk/js/proto`](https://docs.ag-ui.com/sdk/js/proto)
## 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

36
node_modules/@ag-ui/proto/package.json generated vendored Normal file
View File

@@ -0,0 +1,36 @@
{
"name": "@ag-ui/proto",
"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",
"dependencies": {
"@bufbuild/protobuf": "^2.2.5",
"@protobuf-ts/protoc": "^2.11.1",
"@ag-ui/core": "0.0.42"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"ts-proto": "^2.7.0",
"tsup": "^8.0.2",
"typescript": "^5.8.2"
},
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"lint": "eslint \"src/**/*.ts*\"",
"clean": "rm -rf dist .turbo node_modules",
"test": "jest",
"generate": "mkdir -p ./src/generated && npx protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./src/generated --ts_proto_opt=esModuleInterop=true,outputJsonMethods=false,outputClientImpl=false -I ./src/proto ./src/proto/*.proto",
"link:global": "pnpm link --global",
"unlink:global": "pnpm unlink --global"
}
}