orbital-ds 0.40.0 → 0.41.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.
- package/AGENTS.md +1 -1
- package/components.manifest.json +221 -1
- package/dist/hooks/use-ds-messages.d.ts +82 -0
- package/dist/lib/a2ui-catalog.d.ts +42 -0
- package/dist/lib/a2ui-catalog.js +558 -0
- package/dist/lib/a2ui.d.ts +289 -0
- package/dist/lib/a2ui.js +215 -0
- package/dist/lib/ai-events.d.ts +15 -0
- package/dist/lib/ai-events.js +202 -0
- package/dist/lib/auth-flow.d.ts +3 -1
- package/dist/lib/auth-flow.js +24 -3
- package/dist/lib/i18n.d.ts +82 -0
- package/dist/lib/i18n.js +246 -0
- package/dist/styles.css +23 -1
- package/dist/ui/a2ui-renderer.d.ts +33 -0
- package/dist/ui/a2ui-renderer.js +793 -0
- package/dist/ui/agent-events.d.ts +32 -0
- package/dist/ui/agent-events.js +108 -0
- package/dist/ui/alert.d.ts +1 -1
- package/dist/ui/attachment.d.ts +2 -2
- package/dist/ui/auth-form.d.ts +3 -1
- package/dist/ui/auth-form.js +34 -6
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/banner.d.ts +1 -1
- package/dist/ui/bubble.d.ts +1 -1
- package/dist/ui/button-group.d.ts +1 -1
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/chain-of-thought.d.ts +19 -0
- package/dist/ui/chain-of-thought.js +90 -0
- package/dist/ui/chat-composer.d.ts +39 -0
- package/dist/ui/chat-composer.js +192 -0
- package/dist/ui/conversation-list.d.ts +24 -0
- package/dist/ui/conversation-list.js +141 -0
- package/dist/ui/empty.d.ts +1 -1
- package/dist/ui/field.d.ts +1 -1
- package/dist/ui/generated-image.d.ts +14 -0
- package/dist/ui/generated-image.js +65 -0
- package/dist/ui/generated-table.d.ts +11 -0
- package/dist/ui/generated-table.js +59 -0
- package/dist/ui/icon-tile.d.ts +2 -2
- package/dist/ui/item.d.ts +2 -2
- package/dist/ui/markdown.d.ts +14 -0
- package/dist/ui/markdown.js +123 -0
- package/dist/ui/marker.d.ts +1 -1
- package/dist/ui/message-actions.d.ts +12 -0
- package/dist/ui/message-actions.js +79 -0
- package/dist/ui/panel.d.ts +1 -1
- package/dist/ui/reasoning.d.ts +10 -0
- package/dist/ui/reasoning.js +62 -0
- package/dist/ui/sidebar.d.ts +1 -1
- package/dist/ui/sparkline.d.ts +1 -1
- package/dist/ui/stat.d.ts +1 -1
- package/dist/ui/status-badge.d.ts +3 -3
- package/dist/ui/suggestions.d.ts +8 -0
- package/dist/ui/suggestions.js +39 -0
- package/dist/ui/tabs.d.ts +1 -1
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/tool-call.d.ts +15 -0
- package/dist/ui/tool-call.js +74 -0
- package/dist/ui/workflow-run.d.ts +23 -0
- package/dist/ui/workflow-run.js +185 -0
- package/docs/designer/criterio.md +87 -87
- package/docs/designer/patrones.md +3 -1
- package/package.json +238 -228
package/AGENTS.md
CHANGED
|
@@ -181,7 +181,7 @@ en cualquier proyecto. Vocabulario común en `src/lib/presets.ts` (`DsDensity`,
|
|
|
181
181
|
`AuthForm` (sign-in · social · sign-up · magic-link · email-code · sso · forgot-password · reset-password),
|
|
182
182
|
`MfaChallenge` (totp · sms · email · backup-code · passkey), `MfaSetup` (totp · sms · backup-codes), `OAuthConsent`
|
|
183
183
|
(authorize · mcp · device), `ConnectedAccounts` (social · integrations) y el flujo entero con `defineAuthFlow`
|
|
184
|
-
(standard · social · passwordless · partner · enterprise · hybrid · sso-only).
|
|
184
|
+
(standard · social · passwordless · partner · enterprise · hybrid · sso-staff · sso-only).
|
|
185
185
|
`ErrorPage` y `EmptyState` aceptan además `backdrop` (+ `backdropMedia`, `backdropGlass`) y `animated`.
|
|
186
186
|
|
|
187
187
|
**Densidad global.** `--ds-density` (1 por defecto; 0.8 más denso, 1.2 más aireado) escala el relleno de celdas y la separación de secciones y listas; la app lo ajusta en `brand.css`.
|
package/components.manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "orbital-ds",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"engine": "@base-ui/react",
|
|
5
5
|
"docs": [
|
|
6
6
|
"README.md",
|
|
@@ -9,6 +9,50 @@
|
|
|
9
9
|
"contract.json"
|
|
10
10
|
],
|
|
11
11
|
"components": {
|
|
12
|
+
"a2ui-renderer": {
|
|
13
|
+
"import": "orbital-ds/ui/a2ui-renderer",
|
|
14
|
+
"exports": [
|
|
15
|
+
"A2UIRenderer"
|
|
16
|
+
],
|
|
17
|
+
"slots": [
|
|
18
|
+
"a2ui",
|
|
19
|
+
"a2ui-alert",
|
|
20
|
+
"a2ui-audio",
|
|
21
|
+
"a2ui-badge",
|
|
22
|
+
"a2ui-button",
|
|
23
|
+
"a2ui-card",
|
|
24
|
+
"a2ui-chart",
|
|
25
|
+
"a2ui-checkbox",
|
|
26
|
+
"a2ui-checks",
|
|
27
|
+
"a2ui-choice-picker",
|
|
28
|
+
"a2ui-column",
|
|
29
|
+
"a2ui-date-time",
|
|
30
|
+
"a2ui-heading",
|
|
31
|
+
"a2ui-icon",
|
|
32
|
+
"a2ui-icon-tile",
|
|
33
|
+
"a2ui-image",
|
|
34
|
+
"a2ui-list",
|
|
35
|
+
"a2ui-list-item",
|
|
36
|
+
"a2ui-modal",
|
|
37
|
+
"a2ui-modal-trigger",
|
|
38
|
+
"a2ui-panel",
|
|
39
|
+
"a2ui-progress",
|
|
40
|
+
"a2ui-row",
|
|
41
|
+
"a2ui-slider",
|
|
42
|
+
"a2ui-stat",
|
|
43
|
+
"a2ui-surface",
|
|
44
|
+
"a2ui-tabs",
|
|
45
|
+
"a2ui-text",
|
|
46
|
+
"a2ui-text-field",
|
|
47
|
+
"a2ui-unknown",
|
|
48
|
+
"a2ui-video",
|
|
49
|
+
"a2ui-weighted"
|
|
50
|
+
],
|
|
51
|
+
"optionalPeers": [],
|
|
52
|
+
"notes": [
|
|
53
|
+
"Para respuestas de agente con interfaz (formularios, paneles, listas, confirmaciones). Describe el catálogo al"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
12
56
|
"accordion": {
|
|
13
57
|
"import": "orbital-ds/ui/accordion",
|
|
14
58
|
"exports": [
|
|
@@ -27,6 +71,21 @@
|
|
|
27
71
|
],
|
|
28
72
|
"optionalPeers": []
|
|
29
73
|
},
|
|
74
|
+
"agent-events": {
|
|
75
|
+
"import": "orbital-ds/ui/agent-events",
|
|
76
|
+
"exports": [
|
|
77
|
+
"AgentEvents"
|
|
78
|
+
],
|
|
79
|
+
"slots": [
|
|
80
|
+
"agent-event",
|
|
81
|
+
"agent-event-title",
|
|
82
|
+
"agent-events"
|
|
83
|
+
],
|
|
84
|
+
"optionalPeers": [],
|
|
85
|
+
"notes": [
|
|
86
|
+
"Para seguir a un agente en vivo o auditarlo después; la app mapea sus eventos (streaming, trazas) a `AgentEvent`."
|
|
87
|
+
]
|
|
88
|
+
},
|
|
30
89
|
"ai-tag": {
|
|
31
90
|
"import": "orbital-ds/ui/ai-tag",
|
|
32
91
|
"exports": [
|
|
@@ -209,6 +268,7 @@
|
|
|
209
268
|
"auth-form-access",
|
|
210
269
|
"auth-form-audience",
|
|
211
270
|
"auth-form-code",
|
|
271
|
+
"auth-form-doors",
|
|
212
272
|
"auth-form-field",
|
|
213
273
|
"auth-form-field-error",
|
|
214
274
|
"auth-form-footer",
|
|
@@ -244,6 +304,7 @@
|
|
|
244
304
|
"notes": [
|
|
245
305
|
"Presets: `sign-in` (por defecto), `social` (solo botones: lo más sencillo para el público general), `sign-up`, `magic-link` y `email-code` (sin contraseña), `sso` (empresa), `forgot-password` y `reset-password`. Combínalos con AuthLayout para la maqueta y con AuthFlow para el recorrido completo.",
|
|
246
306
|
"Empresa con SSO: `identifierFirst` + `onIdentify` (dominio del correo → { method: \"sso\" }) lleva a cada persona a su proveedor sin que elija; `onSso` añade además el enlace «usar SSO» y el preset `sso`.",
|
|
307
|
+
"Acceso mixto sin escribir el correo: `entry=\"doors\"` (necesita `onSso`; no usa `identifierFirst`) muestra primero «Continuar con SSO» (personal, directo al proveedor de identidad) y, aparte, «Acceso para personas externas» (correo y contraseña, passkey). El preset `sso-staff` de `defineAuthFlow` lo trae (`entry={flow.entry}`).",
|
|
247
308
|
"Nunca reveles si una cuenta existe: devuelve \"invalid-credentials\" para usuario o contraseña, y `forgot-password` responde igual exista o no.",
|
|
248
309
|
"Passkeys: con `onPasskey`, el campo del identificador ofrece las passkeys guardadas (autocomplete «webauthn») y aparece el botón. Guarda `lastUsed` en la app para destacar el método de la última vez."
|
|
249
310
|
]
|
|
@@ -585,6 +646,20 @@
|
|
|
585
646
|
"embla-carousel-react"
|
|
586
647
|
]
|
|
587
648
|
},
|
|
649
|
+
"chain-of-thought": {
|
|
650
|
+
"import": "orbital-ds/ui/chain-of-thought",
|
|
651
|
+
"exports": [
|
|
652
|
+
"ChainOfThought"
|
|
653
|
+
],
|
|
654
|
+
"slots": [
|
|
655
|
+
"chain-of-thought",
|
|
656
|
+
"chain-step"
|
|
657
|
+
],
|
|
658
|
+
"optionalPeers": [],
|
|
659
|
+
"notes": [
|
|
660
|
+
"Para mostrar de forma compacta cómo llegó el agente a su respuesta; si necesitas la traza completa con"
|
|
661
|
+
]
|
|
662
|
+
},
|
|
588
663
|
"chart-card": {
|
|
589
664
|
"import": "orbital-ds/ui/chart-card",
|
|
590
665
|
"exports": [
|
|
@@ -636,6 +711,21 @@
|
|
|
636
711
|
"recharts"
|
|
637
712
|
]
|
|
638
713
|
},
|
|
714
|
+
"chat-composer": {
|
|
715
|
+
"import": "orbital-ds/ui/chat-composer",
|
|
716
|
+
"exports": [
|
|
717
|
+
"ChatComposer"
|
|
718
|
+
],
|
|
719
|
+
"slots": [
|
|
720
|
+
"chat-composer",
|
|
721
|
+
"chat-composer-attachment",
|
|
722
|
+
"chat-composer-voice"
|
|
723
|
+
],
|
|
724
|
+
"optionalPeers": [],
|
|
725
|
+
"notes": [
|
|
726
|
+
"Al pie de la conversación; combínalo con `Suggestions` en el estado vacío. No sube ni graba: eso lo hace la app."
|
|
727
|
+
]
|
|
728
|
+
},
|
|
639
729
|
"checkbox": {
|
|
640
730
|
"import": "orbital-ds/ui/checkbox",
|
|
641
731
|
"exports": [
|
|
@@ -956,6 +1046,20 @@
|
|
|
956
1046
|
],
|
|
957
1047
|
"optionalPeers": []
|
|
958
1048
|
},
|
|
1049
|
+
"conversation-list": {
|
|
1050
|
+
"import": "orbital-ds/ui/conversation-list",
|
|
1051
|
+
"exports": [
|
|
1052
|
+
"ConversationList"
|
|
1053
|
+
],
|
|
1054
|
+
"slots": [
|
|
1055
|
+
"conversation-item",
|
|
1056
|
+
"conversation-list"
|
|
1057
|
+
],
|
|
1058
|
+
"optionalPeers": [],
|
|
1059
|
+
"notes": [
|
|
1060
|
+
"Dentro del `Sidebar` o de un panel lateral del chat; el hilo y el campo son `Message` y `ChatComposer`."
|
|
1061
|
+
]
|
|
1062
|
+
},
|
|
959
1063
|
"copy-button": {
|
|
960
1064
|
"import": "orbital-ds/ui/copy-button",
|
|
961
1065
|
"exports": [
|
|
@@ -1555,6 +1659,33 @@
|
|
|
1555
1659
|
"Tono del vocabulario común (DsDataTone): la app traduce su dominio (riesgo bajo → success, medio → warning, alto → danger, analizando → neutral). Siempre con label."
|
|
1556
1660
|
]
|
|
1557
1661
|
},
|
|
1662
|
+
"generated-image": {
|
|
1663
|
+
"import": "orbital-ds/ui/generated-image",
|
|
1664
|
+
"exports": [
|
|
1665
|
+
"GeneratedImage"
|
|
1666
|
+
],
|
|
1667
|
+
"slots": [
|
|
1668
|
+
"generated-image"
|
|
1669
|
+
],
|
|
1670
|
+
"optionalPeers": [],
|
|
1671
|
+
"notes": [
|
|
1672
|
+
"Dentro de `Message` como resultado de una herramienta de imagen; el modelo y el envío son de la app."
|
|
1673
|
+
]
|
|
1674
|
+
},
|
|
1675
|
+
"generated-table": {
|
|
1676
|
+
"import": "orbital-ds/ui/generated-table",
|
|
1677
|
+
"exports": [
|
|
1678
|
+
"GeneratedTable"
|
|
1679
|
+
],
|
|
1680
|
+
"slots": [
|
|
1681
|
+
"generated-table",
|
|
1682
|
+
"generated-table-download"
|
|
1683
|
+
],
|
|
1684
|
+
"optionalPeers": [],
|
|
1685
|
+
"notes": [
|
|
1686
|
+
"Resultado de una herramienta tipo `generateTable` en el hilo del chat; `caption` describe qué contiene."
|
|
1687
|
+
]
|
|
1688
|
+
},
|
|
1558
1689
|
"heatmap-grid": {
|
|
1559
1690
|
"import": "orbital-ds/ui/heatmap-grid",
|
|
1560
1691
|
"exports": [
|
|
@@ -1868,6 +1999,23 @@
|
|
|
1868
1999
|
"Siempre visible en la barra superior, junto a ThemeToggle; el nombre de cada idioma se escribe en ese idioma, no traducido."
|
|
1869
2000
|
]
|
|
1870
2001
|
},
|
|
2002
|
+
"markdown": {
|
|
2003
|
+
"import": "orbital-ds/ui/markdown",
|
|
2004
|
+
"exports": [
|
|
2005
|
+
"Markdown",
|
|
2006
|
+
"closeOpenMarkdown"
|
|
2007
|
+
],
|
|
2008
|
+
"slots": [
|
|
2009
|
+
"markdown"
|
|
2010
|
+
],
|
|
2011
|
+
"optionalPeers": [
|
|
2012
|
+
"react-markdown",
|
|
2013
|
+
"remark-gfm"
|
|
2014
|
+
],
|
|
2015
|
+
"notes": [
|
|
2016
|
+
"Necesita los peers opcionales `react-markdown` y `remark-gfm`. Para el cuerpo de un `Message` del asistente."
|
|
2017
|
+
]
|
|
2018
|
+
},
|
|
1871
2019
|
"marker": {
|
|
1872
2020
|
"import": "orbital-ds/ui/marker",
|
|
1873
2021
|
"exports": [
|
|
@@ -1942,6 +2090,19 @@
|
|
|
1942
2090
|
],
|
|
1943
2091
|
"optionalPeers": []
|
|
1944
2092
|
},
|
|
2093
|
+
"message-actions": {
|
|
2094
|
+
"import": "orbital-ds/ui/message-actions",
|
|
2095
|
+
"exports": [
|
|
2096
|
+
"MessageActions"
|
|
2097
|
+
],
|
|
2098
|
+
"slots": [
|
|
2099
|
+
"message-actions"
|
|
2100
|
+
],
|
|
2101
|
+
"optionalPeers": [],
|
|
2102
|
+
"notes": [
|
|
2103
|
+
"Bajo el último mensaje del asistente (o de todos, al pasar el cursor); el envío de la valoración lo hace la app."
|
|
2104
|
+
]
|
|
2105
|
+
},
|
|
1945
2106
|
"message-scroller": {
|
|
1946
2107
|
"import": "orbital-ds/ui/message-scroller",
|
|
1947
2108
|
"exports": [
|
|
@@ -2554,6 +2715,21 @@
|
|
|
2554
2715
|
],
|
|
2555
2716
|
"optionalPeers": []
|
|
2556
2717
|
},
|
|
2718
|
+
"reasoning": {
|
|
2719
|
+
"import": "orbital-ds/ui/reasoning",
|
|
2720
|
+
"exports": [
|
|
2721
|
+
"Reasoning"
|
|
2722
|
+
],
|
|
2723
|
+
"slots": [
|
|
2724
|
+
"reasoning",
|
|
2725
|
+
"reasoning-content",
|
|
2726
|
+
"reasoning-trigger"
|
|
2727
|
+
],
|
|
2728
|
+
"optionalPeers": [],
|
|
2729
|
+
"notes": [
|
|
2730
|
+
"Úsalo dentro de `Message` antes de la respuesta; el texto del razonamiento lo pone la app."
|
|
2731
|
+
]
|
|
2732
|
+
},
|
|
2557
2733
|
"resizable": {
|
|
2558
2734
|
"import": "orbital-ds/ui/resizable",
|
|
2559
2735
|
"exports": [
|
|
@@ -3110,6 +3286,20 @@
|
|
|
3110
3286
|
],
|
|
3111
3287
|
"optionalPeers": []
|
|
3112
3288
|
},
|
|
3289
|
+
"suggestions": {
|
|
3290
|
+
"import": "orbital-ds/ui/suggestions",
|
|
3291
|
+
"exports": [
|
|
3292
|
+
"Suggestions"
|
|
3293
|
+
],
|
|
3294
|
+
"slots": [
|
|
3295
|
+
"suggestions",
|
|
3296
|
+
"suggestions-item"
|
|
3297
|
+
],
|
|
3298
|
+
"optionalPeers": [],
|
|
3299
|
+
"notes": [
|
|
3300
|
+
"Bajo el compositor o en el estado vacío del chat; al elegir una, la app la envía o la pone en el campo."
|
|
3301
|
+
]
|
|
3302
|
+
},
|
|
3113
3303
|
"switch": {
|
|
3114
3304
|
"import": "orbital-ds/ui/switch",
|
|
3115
3305
|
"exports": [
|
|
@@ -3312,6 +3502,21 @@
|
|
|
3312
3502
|
],
|
|
3313
3503
|
"optionalPeers": []
|
|
3314
3504
|
},
|
|
3505
|
+
"tool-call": {
|
|
3506
|
+
"import": "orbital-ds/ui/tool-call",
|
|
3507
|
+
"exports": [
|
|
3508
|
+
"ToolCall"
|
|
3509
|
+
],
|
|
3510
|
+
"slots": [
|
|
3511
|
+
"tool-call",
|
|
3512
|
+
"tool-call-content",
|
|
3513
|
+
"tool-call-trigger"
|
|
3514
|
+
],
|
|
3515
|
+
"optionalPeers": [],
|
|
3516
|
+
"notes": [
|
|
3517
|
+
"Una por herramienta usada, dentro de `Message`; el estado lo da la app según los eventos del agente."
|
|
3518
|
+
]
|
|
3519
|
+
},
|
|
3315
3520
|
"tooltip": {
|
|
3316
3521
|
"import": "orbital-ds/ui/tooltip",
|
|
3317
3522
|
"exports": [
|
|
@@ -3344,6 +3549,21 @@
|
|
|
3344
3549
|
"Para elegir UN día cercano; para fechas lejanas o rangos usa Calendar o DatePicker.",
|
|
3345
3550
|
"`marked` solo señala que hay algo ese día; el detalle va debajo, en una lista."
|
|
3346
3551
|
]
|
|
3552
|
+
},
|
|
3553
|
+
"workflow-run": {
|
|
3554
|
+
"import": "orbital-ds/ui/workflow-run",
|
|
3555
|
+
"exports": [
|
|
3556
|
+
"WorkflowRun"
|
|
3557
|
+
],
|
|
3558
|
+
"slots": [
|
|
3559
|
+
"workflow-branch",
|
|
3560
|
+
"workflow-node",
|
|
3561
|
+
"workflow-run"
|
|
3562
|
+
],
|
|
3563
|
+
"optionalPeers": [],
|
|
3564
|
+
"notes": [
|
|
3565
|
+
"Para ver cómo avanza un agente o una automatización; la app traduce su motor (Workflows, colas…) a `WorkflowNode`."
|
|
3566
|
+
]
|
|
3347
3567
|
}
|
|
3348
3568
|
}
|
|
3349
3569
|
}
|
|
@@ -129,6 +129,84 @@ declare const DsMessagesContext: React.Context<{
|
|
|
129
129
|
noticeStateResolved: string;
|
|
130
130
|
entityRetry: string;
|
|
131
131
|
showMore: string;
|
|
132
|
+
reasoningTitle: string;
|
|
133
|
+
reasoningThinking: string;
|
|
134
|
+
reasoningDone: string;
|
|
135
|
+
toolRunning: string;
|
|
136
|
+
toolDone: string;
|
|
137
|
+
toolError: string;
|
|
138
|
+
toolInput: string;
|
|
139
|
+
toolOutput: string;
|
|
140
|
+
composerPlaceholder: string;
|
|
141
|
+
composerSend: string;
|
|
142
|
+
composerStop: string;
|
|
143
|
+
composerAttach: string;
|
|
144
|
+
suggestionsLabel: string;
|
|
145
|
+
eventThinking: string;
|
|
146
|
+
eventTool: string;
|
|
147
|
+
eventMessage: string;
|
|
148
|
+
eventHandoff: string;
|
|
149
|
+
eventError: string;
|
|
150
|
+
eventDone: string;
|
|
151
|
+
composerVoice: string;
|
|
152
|
+
voiceRecording: string;
|
|
153
|
+
voiceCancel: string;
|
|
154
|
+
voiceConfirm: string;
|
|
155
|
+
voiceTranscribing: string;
|
|
156
|
+
voiceError: string;
|
|
157
|
+
voiceRetry: string;
|
|
158
|
+
composerRemoveFile: string;
|
|
159
|
+
composerCounter: string;
|
|
160
|
+
composerDrop: string;
|
|
161
|
+
composerUploading: string;
|
|
162
|
+
composerFileError: string;
|
|
163
|
+
conversationNew: string;
|
|
164
|
+
conversationSearch: string;
|
|
165
|
+
conversationPinned: string;
|
|
166
|
+
conversationToday: string;
|
|
167
|
+
conversationYesterday: string;
|
|
168
|
+
conversationWeek: string;
|
|
169
|
+
conversationOlder: string;
|
|
170
|
+
conversationRename: string;
|
|
171
|
+
conversationDelete: string;
|
|
172
|
+
conversationPin: string;
|
|
173
|
+
conversationUnpin: string;
|
|
174
|
+
conversationEmpty: string;
|
|
175
|
+
conversationListLabel: string;
|
|
176
|
+
conversationActions: string;
|
|
177
|
+
messageCopy: string;
|
|
178
|
+
messageRetry: string;
|
|
179
|
+
messageGood: string;
|
|
180
|
+
messageBad: string;
|
|
181
|
+
messageActionsLabel: string;
|
|
182
|
+
chainWorking: string;
|
|
183
|
+
chainDone: string;
|
|
184
|
+
workflowRunning: string;
|
|
185
|
+
workflowSucceeded: string;
|
|
186
|
+
workflowFailed: string;
|
|
187
|
+
workflowCancelled: string;
|
|
188
|
+
workflowCancel: string;
|
|
189
|
+
workflowRetry: string;
|
|
190
|
+
workflowProgress: string;
|
|
191
|
+
workflowParallel: string;
|
|
192
|
+
workflowSkipped: string;
|
|
193
|
+
workflowWaiting: string;
|
|
194
|
+
toolApprove: string;
|
|
195
|
+
toolDeny: string;
|
|
196
|
+
toolAwaiting: string;
|
|
197
|
+
imageGenerating: string;
|
|
198
|
+
imageError: string;
|
|
199
|
+
imageDownload: string;
|
|
200
|
+
tableEmpty: string;
|
|
201
|
+
tableDownload: string;
|
|
202
|
+
calloutNote: string;
|
|
203
|
+
calloutTip: string;
|
|
204
|
+
calloutImportant: string;
|
|
205
|
+
calloutWarning: string;
|
|
206
|
+
calloutCaution: string;
|
|
207
|
+
markdownLinkExternal: string;
|
|
208
|
+
a2uiUnknown: string;
|
|
209
|
+
a2uiModalTitle: string;
|
|
132
210
|
showLess: string;
|
|
133
211
|
loadMore: string;
|
|
134
212
|
loadMoreDone: string;
|
|
@@ -315,6 +393,10 @@ declare const DsMessagesContext: React.Context<{
|
|
|
315
393
|
authSsoRedirecting: string;
|
|
316
394
|
authChange: string;
|
|
317
395
|
authUseSso: string;
|
|
396
|
+
authContinueSso: string;
|
|
397
|
+
authDoorStaffHint: string;
|
|
398
|
+
authDoorExternalHint: string;
|
|
399
|
+
authDoorExternal: string;
|
|
318
400
|
authBackToSignIn: string;
|
|
319
401
|
authNoAccount: string;
|
|
320
402
|
authSignUpLink: string;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { A2UIMessage } from './a2ui.js';
|
|
2
|
+
|
|
3
|
+
interface A2UIPropSpec {
|
|
4
|
+
/** `string` | `number` | `boolean` | `dynamic-string` | `dynamic-number` | `dynamic-boolean` | `id` | `children` | `action` | `object[]`… */
|
|
5
|
+
type: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
/** Valores admitidos (lista cerrada). */
|
|
8
|
+
values?: readonly string[];
|
|
9
|
+
description: string;
|
|
10
|
+
}
|
|
11
|
+
interface A2UIComponentSpec {
|
|
12
|
+
name: string;
|
|
13
|
+
/** `basic` = catálogo básico de A2UI; `orbital` = pieza del sistema de diseño (solo con este catálogo). */
|
|
14
|
+
origin: "basic" | "orbital";
|
|
15
|
+
description: string;
|
|
16
|
+
/** Cuándo usarlo (criterio de diseño). */
|
|
17
|
+
use: string;
|
|
18
|
+
props: Record<string, A2UIPropSpec>;
|
|
19
|
+
}
|
|
20
|
+
/** Iconos admitidos (nombre → lo pinta el renderizador; uno desconocido se ve como interrogación). */
|
|
21
|
+
declare const A2UI_ICON_NAMES: readonly ["accountCircle", "add", "arrowBack", "arrowForward", "attachFile", "calendarToday", "call", "camera", "check", "close", "delete", "download", "edit", "event", "error", "favorite", "favoriteOff", "folder", "help", "home", "info", "locationOn", "lock", "lockOpen", "mail", "menu", "moreVert", "moreHoriz", "notifications", "notificationsOff", "pause", "payment", "person", "phone", "photo", "play", "print", "refresh", "search", "send", "settings", "share", "shoppingCart", "star", "starOff", "upload", "visibility", "visibilityOff", "warning", "volumeUp", "volumeOff", "file", "clock", "shield", "sparkles", "bolt", "bot", "trendingUp", "activity", "wrench", "users"];
|
|
22
|
+
declare const A2UI_CATALOG: readonly A2UIComponentSpec[];
|
|
23
|
+
declare const A2UI_DESIGN_RULES: readonly string[];
|
|
24
|
+
/**
|
|
25
|
+
* Instrucciones para el agente: formato de mensajes, catálogo y reglas de diseño.
|
|
26
|
+
* `catalog`: `orbital` (por defecto, con las piezas de Orbital) o `basic` (solo el catálogo básico de A2UI).
|
|
27
|
+
*/
|
|
28
|
+
declare function a2uiAgentPrompt(options?: {
|
|
29
|
+
catalog?: "orbital" | "basic";
|
|
30
|
+
}): string;
|
|
31
|
+
interface A2UIIssue {
|
|
32
|
+
level: "error" | "warning";
|
|
33
|
+
surfaceId?: string;
|
|
34
|
+
componentId?: string;
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
/** Comprueba mensajes A2UI contra el catálogo de Orbital. Devuelve los problemas (vacío = correcto). */
|
|
38
|
+
declare function validateA2UI(messages: readonly A2UIMessage[] | readonly unknown[], options?: {
|
|
39
|
+
catalog?: "orbital" | "basic";
|
|
40
|
+
}): A2UIIssue[];
|
|
41
|
+
|
|
42
|
+
export { type A2UIComponentSpec, type A2UIIssue, type A2UIPropSpec, A2UI_CATALOG, A2UI_DESIGN_RULES, A2UI_ICON_NAMES, a2uiAgentPrompt, validateA2UI };
|