agent-robot-avatar 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +84 -19
  3. package/agent-robot-avatar-lite.js +44 -0
  4. package/agent-robot-avatar.js +2 -1
  5. package/index.d.ts +64 -0
  6. package/lite.d.ts +5 -0
  7. package/package.json +11 -6
  8. package/src/agent-robot-avatar-core.js +5 -2
  9. package/src/agent-robot-avatar-runtime.js +4 -1
  10. package/src/agent-robot-avatar-skin-patterns.js +234 -0
  11. package/src/agent-robot-avatar-skins.js +256 -0
  12. package/src/agent-robot-avatar-version.js +1 -1
  13. package/src/skins/catalog.js +218 -0
  14. package/src/skins/collection-materials.js +118 -0
  15. package/src/skins/eyelids.js +32 -0
  16. package/src/skins/glaze-variants.js +29 -0
  17. package/src/skins/layered-texture.js +162 -0
  18. package/src/skins/material-data.js +111 -0
  19. package/src/skins/material-library.js +302 -0
  20. package/src/skins/metal-tint.js +11 -0
  21. package/src/skins/more-materials.js +69 -0
  22. package/src/skins/native.js +754 -0
  23. package/src/skins/paints.js +3 -0
  24. package/src/skins/revised-materials.js +44 -0
  25. package/src/skins/second-pass-materials.js +71 -0
  26. package/src/skins/soft-materials.js +111 -0
  27. package/src/skins/sports-materials.js +38 -0
  28. package/src/skins/wood-materials.js +68 -0
  29. package/assets/support/alipay.png +0 -0
  30. package/assets/support/wechat-pay.png +0 -0
  31. package/docs/README.de.md +0 -185
  32. package/docs/README.es.md +0 -185
  33. package/docs/README.fr.md +0 -185
  34. package/docs/README.ja.md +0 -185
  35. package/docs/README.ko.md +0 -185
  36. package/docs/README.pt.md +0 -185
  37. package/docs/README.ru.md +0 -185
  38. package/docs/README.zh-CN.md +0 -202
  39. package/docs/README.zh-TW.md +0 -185
package/docs/README.de.md DELETED
@@ -1,185 +0,0 @@
1
- # Agent Robot Avatar
2
-
3
- <p align="center">
4
- <img src="../assets/readme/agent-robot-avatar-header.jpg" alt="Agent Robot Avatar">
5
- </p>
6
-
7
- [English](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/README.md) | [简体中文](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.zh-CN.md) | [Español](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.es.md) | [Русский](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.ru.md) | [Français](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.fr.md) | [Português](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.pt.md) | [Deutsch](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.de.md) | [日本語](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.ja.md) | [한국어](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.ko.md) | [繁體中文](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.zh-TW.md)
8
-
9
- ![Version](https://img.shields.io/badge/version-v0.6.0-111111?style=flat-square) [![License](https://img.shields.io/badge/license-MIT-0A7EA4?style=flat-square)](../LICENSE) [![CI](https://github.com/CX-ArtLab/agent-robot-avatar/actions/workflows/validate.yml/badge.svg?branch=main)](https://github.com/CX-ArtLab/agent-robot-avatar/actions/workflows/validate.yml) [![Ko-fi](https://img.shields.io/badge/Ko--fi-Support-FF5E5B?style=flat-square&logo=ko-fi&logoColor=white)](https://ko-fi.com/P0E625WIOI)
10
-
11
- ![Vanilla JavaScript](https://img.shields.io/badge/Vanilla-JavaScript-F7DF1E?style=flat-square&logo=javascript&logoColor=000) ![Web Component](https://img.shields.io/badge/Web-Native%20Component-5A67D8?style=flat-square) ![SVG](https://img.shields.io/badge/Rendering-SVG-FFB13B?style=flat-square&logo=svg&logoColor=000) ![Zero Dependencies](https://img.shields.io/badge/Dependencies-0-2EA44F?style=flat-square)
12
-
13
- Eine leichtgewichtige, ausdrucksstarke Roboter-Avatar-Web-Component für KI-Agenten und interaktive Anwendungen.
14
-
15
- Sie kann in KI-Assistenten, Agent-Oberflächen, Desktop-Begleitern, virtuellen Haustieren, digitalen Maskottchen, Chatbot-Avataren und anderen interaktiven Charaktererlebnissen eingesetzt werden.
16
-
17
- Geeignet für KI-Assistenten- und Agent-Oberflächen, einschließlich Produkten und Erlebnissen ähnlich wie ChatGPT, Claude, Codex, Cursor, Grok Bot, Gemini CLI und OpenCode.
18
-
19
- Sie basiert auf SVG und Vanilla JavaScript, läuft als natives Custom Element und hat keine Runtime-Abhängigkeiten.
20
-
21
- Agent Robot Avatar kann außerdem als visuelle Feedback-Ebene für Agent-Oberflächen im AG-UI-Stil verwendet werden.
22
-
23
- <p align="center">
24
- <img src="../assets/demo/agent-robot-avatar-demo.gif" alt="Interaktive Animationsdemo von Agent Robot Avatar" width="560">
25
- </p>
26
-
27
- ## Live-Demo
28
-
29
- [Interaktive Demo öffnen](https://cx-artlab.github.io/agent-robot-avatar/?lang=de)
30
-
31
- ## Besondere Merkmale
32
-
33
- - Native Web Component
34
- - SVG-Rendering + Vanilla JavaScript
35
- - Keine Runtime-Abhängigkeiten
36
- - Automatisches Blinzeln und dezentes Idle-Verhalten
37
- - Zeigerfolgende Augen und träge Kopfbewegung
38
- - Lokale Jelly-Drag-Verformung mit elastischer Rückkehr
39
- - Drücken-und-Halten-Stauchung und ziehbare Federantenne
40
- - Programmatisch steuerbare Agent-Zustände und Ausdrücke
41
- - Feedback für waiting, success, failure, warning, review, blocked und system error
42
- - Unterstützung für reduzierte Bewegung
43
- - Konfigurierbares Schlafverhalten
44
- - Einstellbare Kopfrundung
45
- - Optionales Statusblinken der Antenne
46
- - TypeScript-Deklarationen enthalten
47
-
48
- ## Installation
49
-
50
- ```bash
51
- npm install agent-robot-avatar
52
- ```
53
-
54
- ```js
55
- import 'agent-robot-avatar';
56
- ```
57
-
58
- Alternativ kann der Repository-Quellcode direkt geladen werden:
59
-
60
- ```html
61
- <script type="module" src="./agent-robot-avatar.js"></script>
62
- ```
63
-
64
- Dann die Komponente hinzufügen:
65
-
66
- ```html
67
- <agent-robot-avatar id="avatar"></agent-robot-avatar>
68
- ```
69
-
70
- Es ist kein Initialisierungscode nötig. Der Avatar wechselt automatisch in seinen standardmäßigen Idle-Zustand.
71
-
72
- ## Grundlegende Verwendung
73
-
74
- ```js
75
- const avatar = document.querySelector('#avatar');
76
-
77
- avatar.play('success');
78
- avatar.play('wary');
79
- avatar.play('refuse');
80
-
81
- avatar.reset();
82
- ```
83
-
84
- Verfügbare Aktionen:
85
-
86
- `idle` · `bored` · `waiting-spin` · `waiting-wrap` · `waiting-wave` · `input` · `affirm` · `success` · `failure` · `wary` · `inspect` · `angry` · `refuse` · `surprise` · `love` · `random` · `sleep` · `wake`
87
-
88
- Aktionsnamen beschreiben, was der Avatar tut. `refuse` schüttelt den Kopf, für eine Anfrage, die der Agent nicht ausführen kann oder will; `failure` steht für eine Aufgabe oder Verbindung ohne Erfolg; `wary` dreht den Kopf und mustert misstrauisch von oben bis unten, für eine Aktion, die eine Bestätigung braucht. Namen aus 0.5 (`send`, `warning`, `error`, `blocked` und weitere) funktionieren bis 1.0 weiter, mit einem Hinweis in der Konsole; siehe die [Upgrade-Tabelle](../CHANGELOG.md#upgrading-from-05x).
89
-
90
- `love` drückt Zuneigung oder Dank aus: Die beiden Augen neigen sich zu einem einzigen Herz zusammen, schlagen dreimal und kehren dann zurück.
91
-
92
- `random` spielt einen Spielautomaten-Dreh ab: Jedes Auge rollt über eine Walze, dann bremst das linke Auge, federt nach und kommt zur Ruhe, danach das rechte. `slot` ist ein Alias.
93
-
94
- Ein typischer Agent-Anfrageablauf:
95
-
96
- ```js
97
- avatar.startWaiting();
98
-
99
- // Zweite Wartebewegung: Die Augen drehen seitlich heraus und kommen von der anderen Seite zurück.
100
- avatar.startWaiting({ variant: 'wrap' });
101
-
102
- try {
103
- const result = await runAgentRequest();
104
- await avatar.play(result.ok ? 'success' : 'failure');
105
- } catch (error) {
106
- await avatar.play('failure');
107
- }
108
- ```
109
-
110
- ## Häufige Optionen
111
-
112
- ```html
113
- <agent-robot-avatar
114
- size="160"
115
- color="#08090b"
116
- auto-sleep="30000"
117
- wake-on="activity"
118
- motion="auto">
119
- </agent-robot-avatar>
120
- ```
121
-
122
- | Attribut | Zweck |
123
- | --- | --- |
124
- | `size` | Avatargröße in Pixeln |
125
- | `color` | Hauptfarbe des Avatars |
126
- | `auto-sleep` | Leerlaufzeit vor automatischem Schlaf; `0` deaktiviert ihn |
127
- | `wake-on` | Automatische Aufwachstrategie: `activity`, `interaction` oder `manual` |
128
- | `motion` | Bewegungsstrategie: `auto`, `reduce` oder `full` |
129
- | `press-squeeze` | Mitte gedrückt halten und stauchen; `false` deaktiviert die Geste |
130
- | `antenna-drag` | Antenne ziehen, federnd zurückkehren und wütend reagieren; `false` deaktiviert sie |
131
-
132
- Häufige Runtime-Steuerungen:
133
-
134
- ```js
135
- avatar.setPointerFollow(false);
136
- avatar.setHeadRoundness(75);
137
- avatar.setPressSqueeze(true);
138
- avatar.setAntennaDrag(true);
139
- ```
140
-
141
- Gedrückthalten in der Mitte startet die Stauchung. Nach mehr als 4 CSS-Pixeln Bewegung wechselt dieselbe Zeigergeste zum vorhandenen Kopfziehen. Die Antenne verwendet dessen Distanzlimit und endet mit der vorhandenen Wutreaktion.
142
-
143
- ## Ereignisse und Integration
144
-
145
- Die Komponente sendet `face-state` für visuelle Zustandsänderungen und `action-state` für semantische Änderungen im Aktionslebenszyklus.
146
-
147
- Für Host-Integrationen und barrierefreie Statustexte sollte `action-state` bevorzugt werden. Ein ausführbares Anfrage-Lifecycle-Beispiel befindet sich in [`examples/accessibility.html`](../examples/accessibility.html).
148
-
149
- Ein minimales Integrationsbeispiel ist unter [`examples/basic.html`](../examples/basic.html) verfügbar.
150
-
151
- ## Kompatibilität
152
-
153
- Für moderne Browser mit Unterstützung für ES Modules, Custom Elements, SVG, Pointer Events, Web Animations API, `IntersectionObserver`, `ResizeObserver` und `matchMedia`.
154
-
155
- Automatisierte Browsertests decken Chromium, Firefox und WebKit ab.
156
-
157
- ## Mitwirken
158
-
159
- Issues und Pull Requests sind willkommen. Bitte vor Änderungen [`CONTRIBUTING.md`](../CONTRIBUTING.md) lesen.
160
-
161
- ## Projektstatus
162
-
163
- **Aktuelle öffentliche Version: v0.6.0**
164
-
165
- Die öffentliche API bleibt bewusst kompakt, während sich das Projekt in Richtung einer zukünftigen Stabilitätszusage mit `1.0.0` entwickelt.
166
-
167
- Agent Robot Avatar wird unabhängig entwickelt und ist mit keiner KI-Plattform oder Marke verbunden, von ihr unterstützt oder deren offizieller Vertreter.
168
-
169
- ## Charakterdesign und visuelle Identität
170
-
171
- Der Agent-Robot-Avatar-Charakter einschließlich seines Roboterdesigns und seiner visuellen Identität ist ein Originaldesign von CX ArtLab.
172
-
173
- Die MIT-Lizenz gilt für Software und Quellcode. Sie erlaubt die Nutzung, Änderung und Verteilung des Avatars als Teil von Anwendungen, überträgt jedoch nicht das Eigentum am Namen Agent Robot Avatar, an der Charakteridentität oder der visuellen Identität und gewährt nicht das Recht, diese als eigenen Originalcharakter oder eigenständige Marke eines Dritten darzustellen.
174
-
175
- In diesem Projekt genannte Produktnamen Dritter dienen nur zur Beschreibung möglicher Anwendungsfälle und bedeuten keine Verbindung oder Unterstützung.
176
-
177
- ## Lizenz
178
-
179
- MIT License. Siehe [`LICENSE`](../LICENSE).
180
-
181
- ---
182
-
183
- Wenn dir dieses Projekt nützlich ist, kannst du mir einen Kaffee spendieren.
184
-
185
- <a href='https://ko-fi.com/P0E625WIOI' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi6.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
package/docs/README.es.md DELETED
@@ -1,185 +0,0 @@
1
- # Agent Robot Avatar
2
-
3
- <p align="center">
4
- <img src="../assets/readme/agent-robot-avatar-header.jpg" alt="Agent Robot Avatar">
5
- </p>
6
-
7
- [English](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/README.md) | [简体中文](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.zh-CN.md) | [Español](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.es.md) | [Русский](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.ru.md) | [Français](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.fr.md) | [Português](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.pt.md) | [Deutsch](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.de.md) | [日本語](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.ja.md) | [한국어](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.ko.md) | [繁體中文](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.zh-TW.md)
8
-
9
- ![Version](https://img.shields.io/badge/version-v0.6.0-111111?style=flat-square) [![License](https://img.shields.io/badge/license-MIT-0A7EA4?style=flat-square)](../LICENSE) [![CI](https://github.com/CX-ArtLab/agent-robot-avatar/actions/workflows/validate.yml/badge.svg?branch=main)](https://github.com/CX-ArtLab/agent-robot-avatar/actions/workflows/validate.yml) [![Ko-fi](https://img.shields.io/badge/Ko--fi-Support-FF5E5B?style=flat-square&logo=ko-fi&logoColor=white)](https://ko-fi.com/P0E625WIOI)
10
-
11
- ![Vanilla JavaScript](https://img.shields.io/badge/Vanilla-JavaScript-F7DF1E?style=flat-square&logo=javascript&logoColor=000) ![Web Component](https://img.shields.io/badge/Web-Native%20Component-5A67D8?style=flat-square) ![SVG](https://img.shields.io/badge/Rendering-SVG-FFB13B?style=flat-square&logo=svg&logoColor=000) ![Zero Dependencies](https://img.shields.io/badge/Dependencies-0-2EA44F?style=flat-square)
12
-
13
- Un Web Component de avatar robótico ligero y expresivo para agentes de IA y aplicaciones interactivas.
14
-
15
- Puede usarse en asistentes de IA, interfaces de agentes, compañeros de escritorio, mascotas virtuales, mascotas digitales, avatares de chatbots y otras experiencias con personajes interactivos.
16
-
17
- Es adecuado para interfaces de asistentes de IA y agentes, incluidos productos y experiencias similares a ChatGPT, Claude, Codex, Cursor, Grok Bot, Gemini CLI y OpenCode.
18
-
19
- Está construido con SVG y JavaScript nativo, funciona como un Custom Element y no tiene dependencias en tiempo de ejecución.
20
-
21
- Agent Robot Avatar también puede utilizarse como capa de retroalimentación visual para interfaces de agentes de estilo AG-UI.
22
-
23
- <p align="center">
24
- <img src="../assets/demo/agent-robot-avatar-demo.gif" alt="Demostración animada interactiva de Agent Robot Avatar" width="560">
25
- </p>
26
-
27
- ## Demo en vivo
28
-
29
- [Abrir la demo interactiva](https://cx-artlab.github.io/agent-robot-avatar/?lang=es)
30
-
31
- ## Características
32
-
33
- - Web Component nativo
34
- - Renderizado SVG + JavaScript nativo
35
- - Cero dependencias en tiempo de ejecución
36
- - Parpadeo automático y comportamiento idle sutil
37
- - Ojos que siguen el puntero y movimiento inercial de la cabeza
38
- - Deformación local tipo gelatina al arrastrar, con recuperación elástica
39
- - Compresión al mantener pulsado y antena elástica arrastrable
40
- - Estados y expresiones del Agent controlables por código
41
- - Feedback para waiting, success, failure, warning, review, blocked y system error
42
- - Compatibilidad con movimiento reducido
43
- - Comportamiento de sueño configurable
44
- - Redondez de la cabeza ajustable
45
- - Parpadeo opcional de estado en la antena
46
- - Declaraciones TypeScript incluidas
47
-
48
- ## Instalación
49
-
50
- ```bash
51
- npm install agent-robot-avatar
52
- ```
53
-
54
- ```js
55
- import 'agent-robot-avatar';
56
- ```
57
-
58
- También puedes cargar directamente el código fuente del repositorio:
59
-
60
- ```html
61
- <script type="module" src="./agent-robot-avatar.js"></script>
62
- ```
63
-
64
- Después añade el componente:
65
-
66
- ```html
67
- <agent-robot-avatar id="avatar"></agent-robot-avatar>
68
- ```
69
-
70
- No hace falta código de inicialización. El avatar entra automáticamente en su estado idle predeterminado.
71
-
72
- ## Uso básico
73
-
74
- ```js
75
- const avatar = document.querySelector('#avatar');
76
-
77
- avatar.play('success');
78
- avatar.play('wary');
79
- avatar.play('refuse');
80
-
81
- avatar.reset();
82
- ```
83
-
84
- Acciones disponibles:
85
-
86
- `idle` · `bored` · `waiting-spin` · `waiting-wrap` · `waiting-wave` · `input` · `affirm` · `success` · `failure` · `wary` · `inspect` · `angry` · `refuse` · `surprise` · `love` · `random` · `sleep` · `wake`
87
-
88
- Los nombres de acción describen lo que hace el avatar. `refuse` niega con la cabeza, para una petición que el Agent no puede o no va a realizar; `failure` es para una tarea o conexión que no salió bien; `wary` gira la cabeza y mira de arriba abajo con recelo, para una acción que requiere confirmación. Los nombres de 0.5 (`send`, `warning`, `error`, `blocked` y otros) siguen funcionando con un aviso en la consola hasta 1.0; consulta la [tabla de actualización](../CHANGELOG.md#upgrading-from-05x).
89
-
90
- `love` expresa cariño o agradecimiento: los dos ojos se inclinan hasta formar un único corazón, laten tres veces y luego vuelven a la normalidad.
91
-
92
- `random` reproduce un giro de tragaperras: cada ojo rueda sobre un tambor; después el ojo izquierdo frena, rebota y se detiene, seguido del derecho. `slot` es un alias.
93
-
94
- Un flujo típico para una solicitud de Agent:
95
-
96
- ```js
97
- avatar.startWaiting();
98
-
99
- // Segunda espera: los ojos salen por un lado y vuelven por el otro.
100
- avatar.startWaiting({ variant: 'wrap' });
101
-
102
- try {
103
- const result = await runAgentRequest();
104
- await avatar.play(result.ok ? 'success' : 'failure');
105
- } catch (error) {
106
- await avatar.play('failure');
107
- }
108
- ```
109
-
110
- ## Opciones comunes
111
-
112
- ```html
113
- <agent-robot-avatar
114
- size="160"
115
- color="#08090b"
116
- auto-sleep="30000"
117
- wake-on="activity"
118
- motion="auto">
119
- </agent-robot-avatar>
120
- ```
121
-
122
- | Atributo | Uso |
123
- | --- | --- |
124
- | `size` | Tamaño del avatar en píxeles |
125
- | `color` | Color principal del avatar |
126
- | `auto-sleep` | Tiempo de inactividad antes del sueño automático; `0` lo desactiva |
127
- | `wake-on` | Política de activación automática: `activity`, `interaction` o `manual` |
128
- | `motion` | Política de movimiento: `auto`, `reduce` o `full` |
129
- | `press-squeeze` | Mantener pulsado el centro para comprimir; `false` lo desactiva |
130
- | `antenna-drag` | Arrastre y rebote de antena con reacción de enfado; `false` lo desactiva |
131
-
132
- Controles habituales en tiempo de ejecución:
133
-
134
- ```js
135
- avatar.setPointerFollow(false);
136
- avatar.setHeadRoundness(75);
137
- avatar.setPressSqueeze(true);
138
- avatar.setAntennaDrag(true);
139
- ```
140
-
141
- Mantener pulsado el centro inicia la compresión. Al mover más de 4 píxeles CSS, el mismo gesto pasa al arrastre de cabeza existente. La antena usa el mismo límite de distancia y termina con la reacción de enfado existente.
142
-
143
- ## Eventos e integración
144
-
145
- El componente emite `face-state` para cambios de estado visual y `action-state` para cambios semánticos del ciclo de vida de las acciones.
146
-
147
- Para integraciones con la aplicación anfitriona y texto de estado accesible, usa preferentemente `action-state`. Consulta [`examples/accessibility.html`](../examples/accessibility.html) para ver un ejemplo ejecutable del ciclo de vida de una solicitud.
148
-
149
- Hay un ejemplo mínimo de integración en [`examples/basic.html`](../examples/basic.html).
150
-
151
- ## Compatibilidad
152
-
153
- Diseñado para navegadores modernos con soporte para ES Modules, Custom Elements, SVG, Pointer Events, Web Animations API, `IntersectionObserver`, `ResizeObserver` y `matchMedia`.
154
-
155
- Las pruebas automatizadas cubren Chromium, Firefox y WebKit.
156
-
157
- ## Contribuir
158
-
159
- Se aceptan Issues y Pull Requests. Consulta [`CONTRIBUTING.md`](../CONTRIBUTING.md) antes de enviar cambios.
160
-
161
- ## Estado del proyecto
162
-
163
- **Versión pública actual: v0.6.0**
164
-
165
- La API pública se mantiene deliberadamente compacta mientras el proyecto evoluciona hacia un futuro compromiso de estabilidad `1.0.0`.
166
-
167
- Agent Robot Avatar se desarrolla de forma independiente y no está afiliado, respaldado ni representa a ninguna plataforma o marca de IA.
168
-
169
- ## Diseño del personaje e identidad visual
170
-
171
- El personaje Agent Robot Avatar, incluido su aspecto robótico y su identidad visual, es un diseño original de CX ArtLab.
172
-
173
- La licencia MIT se aplica al software y al código fuente. Permite usar, modificar y distribuir el avatar como parte de aplicaciones, pero no transfiere la propiedad del nombre Agent Robot Avatar, la identidad del personaje o su identidad visual, ni concede el derecho a presentarlos como personaje original o marca independiente de otra parte.
174
-
175
- Los nombres de productos de terceros mencionados en este proyecto se usan únicamente para describir posibles casos de uso y no implican afiliación ni respaldo.
176
-
177
- ## Licencia
178
-
179
- MIT License. Consulta [`LICENSE`](../LICENSE).
180
-
181
- ---
182
-
183
- Si este proyecto te resulta útil, puedes invitarme a un café.
184
-
185
- <a href='https://ko-fi.com/P0E625WIOI' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi6.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
package/docs/README.fr.md DELETED
@@ -1,185 +0,0 @@
1
- # Agent Robot Avatar
2
-
3
- <p align="center">
4
- <img src="../assets/readme/agent-robot-avatar-header.jpg" alt="Agent Robot Avatar">
5
- </p>
6
-
7
- [English](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/README.md) | [简体中文](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.zh-CN.md) | [Español](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.es.md) | [Русский](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.ru.md) | [Français](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.fr.md) | [Português](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.pt.md) | [Deutsch](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.de.md) | [日本語](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.ja.md) | [한국어](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.ko.md) | [繁體中文](https://github.com/CX-ArtLab/agent-robot-avatar/blob/main/docs/README.zh-TW.md)
8
-
9
- ![Version](https://img.shields.io/badge/version-v0.6.0-111111?style=flat-square) [![License](https://img.shields.io/badge/license-MIT-0A7EA4?style=flat-square)](../LICENSE) [![CI](https://github.com/CX-ArtLab/agent-robot-avatar/actions/workflows/validate.yml/badge.svg?branch=main)](https://github.com/CX-ArtLab/agent-robot-avatar/actions/workflows/validate.yml) [![Ko-fi](https://img.shields.io/badge/Ko--fi-Support-FF5E5B?style=flat-square&logo=ko-fi&logoColor=white)](https://ko-fi.com/P0E625WIOI)
10
-
11
- ![Vanilla JavaScript](https://img.shields.io/badge/Vanilla-JavaScript-F7DF1E?style=flat-square&logo=javascript&logoColor=000) ![Web Component](https://img.shields.io/badge/Web-Native%20Component-5A67D8?style=flat-square) ![SVG](https://img.shields.io/badge/Rendering-SVG-FFB13B?style=flat-square&logo=svg&logoColor=000) ![Zero Dependencies](https://img.shields.io/badge/Dependencies-0-2EA44F?style=flat-square)
12
-
13
- Un Web Component d’avatar robot léger et expressif pour les agents IA et les applications interactives.
14
-
15
- Il peut être utilisé dans des assistants IA, des interfaces d’agents, des compagnons de bureau, des animaux virtuels, des mascottes numériques, des avatars de chatbot et d’autres expériences de personnages interactifs.
16
-
17
- Il convient aux interfaces d’assistants IA et d’agents, y compris aux produits et expériences similaires à ChatGPT, Claude, Codex, Cursor, Grok Bot, Gemini CLI et OpenCode.
18
-
19
- Construit avec SVG et JavaScript natif, il fonctionne comme un Custom Element sans dépendance d’exécution.
20
-
21
- Agent Robot Avatar peut également servir de couche de retour visuel pour les interfaces d’agents de style AG-UI.
22
-
23
- <p align="center">
24
- <img src="../assets/demo/agent-robot-avatar-demo.gif" alt="Démo animée interactive de Agent Robot Avatar" width="560">
25
- </p>
26
-
27
- ## Démo en ligne
28
-
29
- [Ouvrir la démo interactive](https://cx-artlab.github.io/agent-robot-avatar/?lang=fr)
30
-
31
- ## Points forts
32
-
33
- - Web Component natif
34
- - Rendu SVG + JavaScript natif
35
- - Zéro dépendance d’exécution
36
- - Clignements automatiques et comportement idle discret
37
- - Yeux suivant le pointeur et mouvement inertiel de la tête
38
- - Déformation locale façon gelée lors du glisser, avec retour élastique
39
- - Compression par appui prolongé et antenne ressort déplaçable
40
- - États et expressions d’Agent contrôlables par code
41
- - Retours pour waiting, success, failure, warning, review, blocked et system error
42
- - Prise en charge du mouvement réduit
43
- - Comportement de sommeil configurable
44
- - Arrondi de la tête réglable
45
- - Clignotement d’état optionnel de l’antenne
46
- - Déclarations TypeScript incluses
47
-
48
- ## Installation
49
-
50
- ```bash
51
- npm install agent-robot-avatar
52
- ```
53
-
54
- ```js
55
- import 'agent-robot-avatar';
56
- ```
57
-
58
- Vous pouvez aussi charger directement le code source du dépôt :
59
-
60
- ```html
61
- <script type="module" src="./agent-robot-avatar.js"></script>
62
- ```
63
-
64
- Puis ajouter le composant :
65
-
66
- ```html
67
- <agent-robot-avatar id="avatar"></agent-robot-avatar>
68
- ```
69
-
70
- Aucun code d’initialisation n’est nécessaire. L’avatar entre automatiquement dans son état idle par défaut.
71
-
72
- ## Utilisation de base
73
-
74
- ```js
75
- const avatar = document.querySelector('#avatar');
76
-
77
- avatar.play('success');
78
- avatar.play('wary');
79
- avatar.play('refuse');
80
-
81
- avatar.reset();
82
- ```
83
-
84
- Actions disponibles :
85
-
86
- `idle` · `bored` · `waiting-spin` · `waiting-wrap` · `waiting-wave` · `input` · `affirm` · `success` · `failure` · `wary` · `inspect` · `angry` · `refuse` · `surprise` · `love` · `random` · `sleep` · `wake`
87
-
88
- Les noms d’action décrivent ce que fait l’avatar. `refuse` secoue la tête, pour une demande que l’Agent ne peut pas ou ne veut pas exécuter ; `failure` correspond à une tâche ou une connexion qui n’a pas abouti ; `wary` tourne la tête et toise avec méfiance, pour une action qui demande une confirmation. Les noms de la 0.5 (`send`, `warning`, `error`, `blocked`, etc.) fonctionnent encore jusqu’à la 1.0 avec un avis dans la console ; voir le [tableau de mise à niveau](../CHANGELOG.md#upgrading-from-05x).
89
-
90
- `love` exprime l’affection ou la gratitude : les deux yeux s’inclinent l’un vers l’autre pour former un seul cœur, battent trois fois, puis reviennent à la normale.
91
-
92
- `random` joue un tour de machine à sous : chaque œil roule sur un tambour, puis l’œil gauche ralentit, rebondit et s’arrête, suivi du droit. `slot` est un alias.
93
-
94
- Exemple de cycle de requête Agent :
95
-
96
- ```js
97
- avatar.startWaiting();
98
-
99
- // Deuxième attente : les yeux sortent d'un côté et reviennent par l'autre.
100
- avatar.startWaiting({ variant: 'wrap' });
101
-
102
- try {
103
- const result = await runAgentRequest();
104
- await avatar.play(result.ok ? 'success' : 'failure');
105
- } catch (error) {
106
- await avatar.play('failure');
107
- }
108
- ```
109
-
110
- ## Options courantes
111
-
112
- ```html
113
- <agent-robot-avatar
114
- size="160"
115
- color="#08090b"
116
- auto-sleep="30000"
117
- wake-on="activity"
118
- motion="auto">
119
- </agent-robot-avatar>
120
- ```
121
-
122
- | Attribut | Usage |
123
- | --- | --- |
124
- | `size` | Taille de l’avatar en pixels |
125
- | `color` | Couleur principale de l’avatar |
126
- | `auto-sleep` | Temps d’inactivité avant le sommeil automatique ; `0` le désactive |
127
- | `wake-on` | Politique de réveil automatique : `activity`, `interaction` ou `manual` |
128
- | `motion` | Politique d’animation : `auto`, `reduce` ou `full` |
129
- | `press-squeeze` | Maintenir le centre pour comprimer ; `false` désactive le geste |
130
- | `antenna-drag` | Glisser et faire rebondir l’antenne avec réaction de colère ; `false` désactive le geste |
131
-
132
- Contrôles courants à l’exécution :
133
-
134
- ```js
135
- avatar.setPointerFollow(false);
136
- avatar.setHeadRoundness(75);
137
- avatar.setPressSqueeze(true);
138
- avatar.setAntennaDrag(true);
139
- ```
140
-
141
- Maintenir le centre lance la compression. Après plus de 4 pixels CSS de déplacement, le même geste bascule vers le glisser de tête existant. L’antenne reprend sa limite de distance et se termine par la réaction de colère existante.
142
-
143
- ## Événements et intégration
144
-
145
- Le composant émet `face-state` pour les changements d’état visuel et `action-state` pour les changements sémantiques du cycle de vie des actions.
146
-
147
- Pour les intégrations avec l’application hôte et les textes d’état accessibles, préférez `action-state`. Consultez [`examples/accessibility.html`](../examples/accessibility.html) pour un exemple exécutable de cycle de requête.
148
-
149
- Un exemple minimal d’intégration est disponible dans [`examples/basic.html`](../examples/basic.html).
150
-
151
- ## Compatibilité
152
-
153
- Conçu pour les navigateurs modernes prenant en charge ES Modules, Custom Elements, SVG, Pointer Events, Web Animations API, `IntersectionObserver`, `ResizeObserver` et `matchMedia`.
154
-
155
- Les tests automatisés couvrent Chromium, Firefox et WebKit.
156
-
157
- ## Contribution
158
-
159
- Issues et Pull Requests sont les bienvenus. Consultez [`CONTRIBUTING.md`](../CONTRIBUTING.md) avant de proposer des modifications.
160
-
161
- ## État du projet
162
-
163
- **Version publique actuelle : v0.6.0**
164
-
165
- L’API publique reste volontairement compacte pendant l’évolution du projet vers un futur engagement de stabilité `1.0.0`.
166
-
167
- Agent Robot Avatar est développé indépendamment et n’est affilié, approuvé ou représentatif d’aucune plateforme ou marque d’IA.
168
-
169
- ## Design du personnage et identité visuelle
170
-
171
- Le personnage Agent Robot Avatar, y compris son apparence robotique et son identité visuelle, est une création originale de CX ArtLab.
172
-
173
- La licence MIT s’applique au logiciel et au code source. Elle permet d’utiliser, modifier et distribuer l’avatar dans des applications, mais ne transfère pas la propriété du nom Agent Robot Avatar, de l’identité du personnage ou de son identité visuelle, et n’accorde pas le droit de les présenter comme le personnage original ou la marque autonome d’un tiers.
174
-
175
- Les noms de produits tiers mentionnés dans ce projet servent uniquement à décrire des cas d’usage possibles et n’impliquent aucune affiliation ni approbation.
176
-
177
- ## Licence
178
-
179
- MIT License. Voir [`LICENSE`](../LICENSE).
180
-
181
- ---
182
-
183
- Si ce projet vous est utile, vous pouvez m’offrir un café.
184
-
185
- <a href='https://ko-fi.com/P0E625WIOI' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi6.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>