Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = .git*,*.svg,package-lock.json,*-lock.yaml,*.lock,*.css,.codespellrc,.cache,.npm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

It's a good practice to also exclude common build output and dependency directories from spell checking. Consider adding node_modules, build, and dist to the skip list to avoid spell-checking third-party code and generated files.

skip = .git*,*.svg,package-lock.json,*-lock.yaml,*.lock,*.css,.codespellrc,.cache,.npm,node_modules,build,dist

check-hidden = true
# Ignore embedded base64 images in notebooks and camelCase/PascalCase identifiers
ignore-regex = ^\s*"image/\S+": ".*|\b[a-z]+[A-Z]\w*\b|\b[A-Z][a-z]+[A-Z]\w*\b
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The current regex for ignoring PascalCase identifiers (\b[A-Z][a-z]+[A-Z]\w*\b) is a bit strict and might not cover cases with acronyms (e.g., URLHandler) or consecutive capital letters. A slightly broader but still safe regex could be \b[A-Z]\w*[A-Z]\w*\b, which ignores any word starting with a capital letter and containing at least one other capital letter. This would cover more identifier patterns while still avoiding common English words.

ignore-regex = ^\s*"image/\S+": ".*|\b[a-z]+[A-Z]\w*\b|\b[A-Z]\w*[A-Z]\w*\b

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not too bad AI! but I would say we can enter those waters when run into them

ignore-words-list = ser,cyclin
23 changes: 23 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Codespell configuration is within .codespellrc
---
name: Codespell

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Codespell
uses: codespell-project/actions-codespell@v2
2 changes: 1 addition & 1 deletion samples/client/angular/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ These are sample implementations of A2UI in Angular.
1. [nodejs](https://nodejs.org/en)
2. [uv](https://docs.astral.sh/uv/getting-started/installation/)

NOTE: [For the rizzcharts app](../../agent/adk/rizzcharts/), you will need GoogleMap API ([How to get the API key](https://developers.google.com/maps/documentation/javascript/get-api-key)) to display Google Map custome components. Please refer to [Rizzcharts README](./projects/rizzcharts/README.md)
NOTE: [For the rizzcharts app](../../agent/adk/rizzcharts/), you will need GoogleMap API ([How to get the API key](https://developers.google.com/maps/documentation/javascript/get-api-key)) to display Google Map custom components. Please refer to [Rizzcharts README](./projects/rizzcharts/README.md)

## Running

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
display: block;
padding-inline: 16px;
margin-block-end: 24px;
// Lets the ::before pseudo element be positioned absolutely releative to
// Lets the ::before pseudo element be positioned absolutely relative to
// the InputArea.
position: relative;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export class ChatService {
/**
* Creates the agent role based on the agent card and the message response if available.
*
* @param response The reponse message received from the agent.
* @param response The response message received from the agent.
* @returns A new UiAgent object representing the agent that the user is chatting with.
*/
private createRole(response?: SendMessageSuccessResponse): UiAgent {
Expand Down
2 changes: 1 addition & 1 deletion specification/v0_9/docs/a2ui_protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ While A2UI is agnostic, it is most commonly used with the following transports.
#### A2A (Agent2Agent) binding

[A2A (Agent-to-Agent)](https://a2a-protocol.org/latest/) is an excellent transport option for A2UI in agentic systems, extending A2A with additional payloads.
A2A is uniquely capable of handling remote agent communication, and can also provide a secure and effecient transport between an agentic backend and front end application.
A2A is uniquely capable of handling remote agent communication, and can also provide a secure and efficient transport between an agentic backend and front end application.

- **Message mapping**: Each A2UI envelope (e.g., `updateComponents`) corresponds to the payload of a single A2A message Part.
- **Metadata**:
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/middleware/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { GoogleGenAI } from "@google/genai";
import { v0_8 } from "@a2ui/lit";
import { createA2UIPrompt, createImageParsePrompt } from "./prompts";

// TODO: Reenable.
// TODO: Re-enable.
// import ServerToClientMessage from "../schemas/a2ui-message.js";

let catalog: v0_8.Types.ClientCapabilitiesDynamic | null = null;
Expand Down