ajustes na tabela de consulta
This commit is contained in:
parent
aea3da6585
commit
1446d6225b
78 changed files with 17921 additions and 17580 deletions
|
|
@ -5,13 +5,25 @@ BASE="https://paiol.idz.one/desenvolvimento/agent-ia"
|
|||
ERROS=0
|
||||
|
||||
baixar() {
|
||||
TMP=$(mktemp)
|
||||
echo "baixando $1"
|
||||
ERRO_CURL="$(curl -sSfL --create-dirs "$1" -o "$2" 2>&1)" || {
|
||||
ERRO_CURL="$(curl -sSfL --create-dirs "$1" -o "$TMP" 2>&1)" || {
|
||||
echo " ⚠ $1"
|
||||
echo " $ERRO_CURL"
|
||||
rm -f "$TMP"
|
||||
ERROS=$((ERROS + 1))
|
||||
return 1
|
||||
}
|
||||
# Rejeitar arquivos menores que 50 bytes (prováveis erros de proxy/WAF)
|
||||
TAMANHO=$(wc -c < "$TMP" | tr -d ' ')
|
||||
if [ "$TAMANHO" -lt 50 ]; then
|
||||
echo " ⚠ $1 — arquivo muito pequeno ($TAMANHO bytes), ignorado"
|
||||
rm -f "$TMP"
|
||||
ERROS=$((ERROS + 1))
|
||||
return 1
|
||||
fi
|
||||
mkdir -p "$(dirname "$2")"
|
||||
mv "$TMP" "$2"
|
||||
}
|
||||
|
||||
# ignorar se não auto atualizar
|
||||
|
|
@ -27,7 +39,14 @@ fi
|
|||
baixar "$BASE/rules/carta-principios-agente-azteca.global.md" "$DIR/rules/carta-principios-agente-azteca.global.md"
|
||||
baixar "$BASE/rules/escrita-natural.global.md" "$DIR/rules/escrita-natural.global.md"
|
||||
baixar "$BASE/rules/typescript-sem-any.global.md" "$DIR/rules/typescript-sem-any.global.md"
|
||||
baixar "$BASE/rules/regras_negocio_md.global.md" "$DIR/rules/regras_negocio_md.global.md"
|
||||
baixar "$BASE/rules/regras-negocio-md.global.md" "$DIR/rules/regras-negocio-md.global.md"
|
||||
baixar "$BASE/rules/zod-validacao-padrao.global.md" "$DIR/rules/zod-validacao-padrao.global.md"
|
||||
baixar "$BASE/rules/limite-linhas.global.md" "$DIR/rules/limite-linhas.global.md"
|
||||
baixar "$BASE/rules/estrutura-vue.global.md" "$DIR/rules/estrutura-vue.global.md"
|
||||
baixar "$BASE/rules/jsdoc-padrao.global.md" "$DIR/rules/jsdoc-padrao.global.md"
|
||||
baixar "$BASE/rules/autonomia-agente.global.md" "$DIR/rules/autonomia-agente.global.md"
|
||||
baixar "$BASE/rules/fronteiras-monorepo.global.md" "$DIR/rules/fronteiras-monorepo.global.md"
|
||||
baixar "$BASE/rules/mensagens-usuario.global.md" "$DIR/rules/mensagens-usuario.global.md"
|
||||
|
||||
# workflows
|
||||
baixar "$BASE/workflows/aprimorar-IA.global.md" "$DIR/workflows/aprimorar-IA.global.md"
|
||||
|
|
@ -48,8 +67,11 @@ baixar "$BASE/skills/mapear-codigo-fonte.global/SKILL.md" "$DIR/sk
|
|||
baixar "$BASE/skills/diagnosticar-erros-build.global/SKILL.md" "$DIR/skills/diagnosticar-erros-build.global/SKILL.md"
|
||||
baixar "$BASE/skills/documentar-decisao-tecnica.global/SKILL.md" "$DIR/skills/documentar-decisao-tecnica.global/SKILL.md"
|
||||
baixar "$BASE/skills/documentar-regras-negocio.global/SKILL.md" "$DIR/skills/documentar-regras-negocio.global/SKILL.md"
|
||||
baixar "$BASE/skills/criar-schema-zod.global/SKILL.md" "$DIR/skills/criar-schema-zod.global/SKILL.md"
|
||||
baixar "$BASE/skills/documentar-dominio-modulo.global/SKILL.md" "$DIR/skills/documentar-dominio-modulo.global/SKILL.md"
|
||||
|
||||
# raiz (.agent)
|
||||
baixar "$BASE/tools.md" "$DIR/tools.md"
|
||||
baixar "$BASE/verificar-linhas.sh" "$DIR/verificar-linhas.sh"
|
||||
|
||||
exit "$ERROS"
|
||||
Loading…
Add table
Add a link
Reference in a new issue