siesa-agents 2.1.95 → 2.1.96
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.
|
@@ -146,6 +146,53 @@ review:
|
|
|
146
146
|
Tailwind token class), px → rem (1rem = 16px, `44px → 2.75rem`), inline
|
|
147
147
|
styles → Tailwind classes.
|
|
148
148
|
|
|
149
|
+
## Pre-gate: directory validation and design memory
|
|
150
|
+
|
|
151
|
+
Before asking for a target, the skill validates the two key directories and
|
|
152
|
+
offers to refresh the design memory.
|
|
153
|
+
|
|
154
|
+
**1. Validate `_bmad-output/design-artifacts/html-and-design`**
|
|
155
|
+
|
|
156
|
+
- **Does not exist** → create it, then tell the user:
|
|
157
|
+
|
|
158
|
+
> `📁 Directorio creado: _bmad-output/design-artifacts/html-and-design`
|
|
159
|
+
> `Por favor pega en ese directorio las plantillas HTML antes de continuar.`
|
|
160
|
+
|
|
161
|
+
Stop here. The directory is the input for memory generation; proceeding
|
|
162
|
+
without templates would produce an empty memory.
|
|
163
|
+
|
|
164
|
+
- **Exists** → continue.
|
|
165
|
+
|
|
166
|
+
**2. Validate `_bmad-output/design-artifacts/design-memory`**
|
|
167
|
+
|
|
168
|
+
- **Does not exist** → create it empty and continue (no user action needed).
|
|
169
|
+
- **Exists** → continue.
|
|
170
|
+
|
|
171
|
+
**3. Authorization for memory generation**
|
|
172
|
+
|
|
173
|
+
Use `AskUserQuestion` with the following exact text:
|
|
174
|
+
|
|
175
|
+
> *"Procederé a inspeccionar las plantillas para generar/actualizar las memorias
|
|
176
|
+
> de diseño, ¿Autorizas esta acción? Esto podría tardar unos minutos."*
|
|
177
|
+
|
|
178
|
+
Options: **Aceptar** / **Cancelar**.
|
|
179
|
+
|
|
180
|
+
- **Aceptar** → run the full sync algorithm from `references/design-memory.md`
|
|
181
|
+
("Sync algorithm"): hash every `.html` in `html-and-design`, compare against
|
|
182
|
+
`design-memory/manifest.yaml`, build or update only what changed. Report one
|
|
183
|
+
line: `🧠 Memory: current (N sources)` or
|
|
184
|
+
`🧠 Memory: rebuilt/updated (+A new, B changed, C removed)`.
|
|
185
|
+
- **Cancelar** → explain to the user why this step matters, then stop:
|
|
186
|
+
|
|
187
|
+
> Las memorias de diseño son el insumo que permite homologar pantallas sin
|
|
188
|
+
> un mockup directo y mantener los patrones de diseño sincronizados con las
|
|
189
|
+
> plantillas más recientes. Omitir esta actualización puede causar que el
|
|
190
|
+
> refactor use patrones desactualizados o incompletos. Por este motivo, la
|
|
191
|
+
> skill no puede continuar sin ejecutar o tener memorias válidas.
|
|
192
|
+
> `❌ DETENIDO: generación de memorias cancelada por el usuario.`
|
|
193
|
+
|
|
194
|
+
After this step, proceed to the Gate.
|
|
195
|
+
|
|
149
196
|
## Gate: explicit target, before anything else
|
|
150
197
|
|
|
151
198
|
The run starts blind and stays blind until the user names the target. The
|
|
@@ -212,13 +259,9 @@ processed "while we're at it".
|
|
|
212
259
|
styles, px/hex from specs are converted on entry, never copied). New rule
|
|
213
260
|
files dropped there later bind exactly the same way, without editing this
|
|
214
261
|
skill.
|
|
215
|
-
0b. **
|
|
216
|
-
|
|
217
|
-
`
|
|
218
|
-
files; new/changed/removed sources → incremental update / flag; all hashes
|
|
219
|
-
match → skip. Report one line: `🧠 Memory: current (N sources)` or
|
|
220
|
-
`🧠 Memory: rebuilt/updated (+A new, B changed, C removed)`. If the user
|
|
221
|
-
provided a custom memory path, use it and record it in the manifest.
|
|
262
|
+
0b. **Design memory** — already synced in the pre-gate step; skip. If the
|
|
263
|
+
user provided a custom memory path via argument, record it in
|
|
264
|
+
`manifest.yaml` now so the next run picks it up.
|
|
222
265
|
1. List the queue: every `.html` in the resolved mockup dir, sorted by name —
|
|
223
266
|
that is the FIFO processing order — then **filter it to the target declared
|
|
224
267
|
at the gate**: only mockups matching the named module/feature stay in the
|