feat: externalize apps/analysis to Gitea repos, add analysis table

- Migration 007: repo_url on apps table + analysis table with FTS5
- Analysis struct, parser, CRUD, validation, hash computation
- Selective purge: remote-only apps/analysis preserved across fn index
- CLI: fn app list/clone/pull, fn analysis list/clone/pull
- search/show/list now include analysis results
- Apps removed from git tracking (content lives in Gitea repos)
- .gitkeep for apps/ and analysis/ dirs
- Bash functions: jupyter analysis pipeline, shell utilities
- Browser domain: CDP functions moved from infra to browser

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-01 04:23:51 +02:00
parent 722f29b71b
commit bf1efb2099
111 changed files with 2766 additions and 5043 deletions
+20
View File
@@ -0,0 +1,20 @@
package browser
import (
"fmt"
)
// CdpGetHTML retorna el HTML completo de la pagina actual (document.documentElement.outerHTML).
// Equivale a hacer "Ver codigo fuente" pero con el DOM actual (post-JavaScript).
func CdpGetHTML(c *CDPConn) (string, error) {
if c == nil {
return "", fmt.Errorf("cdp get html: conexion nula")
}
html, err := CdpEvaluate(c, "document.documentElement.outerHTML")
if err != nil {
return "", fmt.Errorf("cdp get html: %w", err)
}
return html, nil
}