# Manifest de repositorios externos para extraccion de funciones.
# Cada entrada registra un repo clonado en sources/ y las funciones extraidas.
#
# Formato:
#   - repo: https://github.com/user/project
#     license: MIT
#     cloned_dir: project           # nombre del directorio en sources/
#     extracted:                     # funciones ya extraidas (el agente las registra)
#       - id: func_name_go_core
#         source_file: pkg/utils.go  # path relativo dentro del repo original
#         date: 2026-03-29
#
# Workflow:
#   1. Clonar repo en sources/:  git clone <url> sources/<nombre>
#   2. Invocar agente extractor para analizar y proponer funciones
#   3. El agente copia, adapta, crea .go + .md con atribucion
#   4. fn index para registrar en registry.db
#   5. Actualizar este manifest con las funciones extraidas

repos:
  - repo: https://github.com/VectifyAI/PageIndex
    license: MIT
    cloned_dir: PageIndex
    extracted:
      # Pure — tree manipulation (8)
      - id: flatten_tree_py_core
        source_file: pageindex/utils.py
        date: 2026-04-05
      - id: tree_to_flat_list_py_core
        source_file: pageindex/utils.py
        date: 2026-04-05
      - id: get_leaf_nodes_py_core
        source_file: pageindex/utils.py
        date: 2026-04-05
      - id: write_node_ids_py_core
        source_file: pageindex/utils.py
        date: 2026-04-05
      - id: list_to_tree_py_core
        source_file: pageindex/utils.py
        date: 2026-04-05
      - id: remove_tree_fields_py_core
        source_file: pageindex/utils.py
        date: 2026-04-05
      - id: format_tree_structure_py_core
        source_file: pageindex/utils.py
        date: 2026-04-05
      - id: create_node_mapping_py_core
        source_file: pageindex/utils.py
        date: 2026-04-05
      # Pure — text/JSON extraction (2)
      - id: extract_json_from_llm_py_core
        source_file: pageindex/utils.py
        date: 2026-04-05
      - id: parse_page_range_py_core
        source_file: pageindex/retrieve.py
        date: 2026-04-05
      # Pure — markdown parsing (2)
      - id: extract_markdown_headers_py_core
        source_file: pageindex/page_index_md.py
        date: 2026-04-05
      - id: build_tree_from_headers_py_core
        source_file: pageindex/page_index_md.py
        date: 2026-04-05
      # Pure — pagination/chunking (2)
      - id: page_list_to_groups_py_core
        source_file: pageindex/page_index.py
        date: 2026-04-05
      - id: calculate_page_offset_py_core
        source_file: pageindex/page_index.py
        date: 2026-04-05
      # Impure — LLM wrappers (2)
      - id: llm_completion_retry_py_core
        source_file: pageindex/utils.py
        date: 2026-04-05
      - id: llm_acompletion_retry_py_core
        source_file: pageindex/utils.py
        date: 2026-04-05
      # Impure — PDF extraction (2)
      - id: extract_pdf_text_py_core
        source_file: pageindex/utils.py
        date: 2026-04-05
      - id: get_pdf_page_tokens_py_core
        source_file: pageindex/utils.py
        date: 2026-04-05

  - repo: https://gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/Bl4cksmith/Frontend_Library
    license: MIT
    cloned_dir: frontend_library
    extracted:
      # Tipos (3)
      - id: ThemeConfig_typescript_ui
        source_file: frontend/src/themes/types.ts
        date: 2026-04-01
      - id: ChartSeries_typescript_ui
        source_file: frontend/src/components/ui/charts/chart-base.tsx
        date: 2026-04-01
      - id: ComponentVariants_typescript_core
        source_file: frontend/src/components/ui/button.tsx
        date: 2026-04-01
      # Funciones core puras (4)
      - id: cn_typescript_core
        source_file: frontend/src/lib/utils.ts
        date: 2026-04-01
      - id: get_series_color_typescript_core
        source_file: frontend/src/components/ui/charts/chart-base.tsx
        date: 2026-04-01
      - id: theme_config_to_colors_typescript_core
        source_file: frontend/src/themes/types.ts
        date: 2026-04-01
      - id: chart_colors_typescript_core
        source_file: frontend/src/components/ui/charts/chart-base.tsx
        date: 2026-04-01
      # Componentes atómicos (10)
      - id: button_typescript_ui
        source_file: frontend/src/components/ui/button.tsx
        date: 2026-04-01
      - id: card_typescript_ui
        source_file: frontend/src/components/ui/card.tsx
        date: 2026-04-01
      - id: input_typescript_ui
        source_file: frontend/src/components/ui/input.tsx
        date: 2026-04-01
      - id: label_typescript_ui
        source_file: frontend/src/components/ui/label.tsx
        date: 2026-04-01
      - id: badge_typescript_ui
        source_file: frontend/src/components/ui/badge.tsx
        date: 2026-04-01
      - id: alert_typescript_ui
        source_file: frontend/src/components/ui/alert.tsx
        date: 2026-04-01
      - id: skeleton_typescript_ui
        source_file: frontend/src/components/ui/skeleton.tsx
        date: 2026-04-01
      - id: progress_bar_typescript_ui
        source_file: frontend/src/components/ui/progress/progress-bar.tsx
        date: 2026-04-01
      - id: tooltip_typescript_ui
        source_file: frontend/src/components/ui/tooltip.tsx
        date: 2026-04-01
      - id: select_typescript_ui
        source_file: frontend/src/components/ui/select.tsx
        date: 2026-04-01
      # Componentes moleculares (5)
      - id: dialog_typescript_ui
        source_file: frontend/src/components/ui/dialog.tsx
        date: 2026-04-01
      - id: form_field_typescript_ui
        source_file: frontend/src/components/ui/form-field.tsx
        date: 2026-04-01
      - id: tabs_typescript_ui
        source_file: frontend/src/components/ui/tabs.tsx
        date: 2026-04-01
      - id: kpi_card_typescript_ui
        source_file: frontend/src/components/ui/kpi-card.tsx
        date: 2026-04-01
      - id: page_header_typescript_ui
        source_file: frontend/src/components/ui/page-header.tsx
        date: 2026-04-01
      # Charts (5)
      - id: chart_container_typescript_ui
        source_file: frontend/src/components/ui/charts/chart-base.tsx
        date: 2026-04-01
      - id: line_chart_typescript_ui
        source_file: frontend/src/components/ui/charts/line-chart.tsx
        date: 2026-04-01
      - id: bar_chart_typescript_ui
        source_file: frontend/src/components/ui/charts/bar-chart.tsx
        date: 2026-04-01
      - id: area_chart_typescript_ui
        source_file: frontend/src/components/ui/charts/area-chart.tsx
        date: 2026-04-01
      - id: sparkline_typescript_ui
        source_file: frontend/src/components/ui/sparkline.tsx
        date: 2026-04-01
      # Factories de composición (5)
      - id: dashboard_layout_typescript_ui
        source_file: ""
        date: 2026-04-01
      - id: crud_page_typescript_ui
        source_file: ""
        date: 2026-04-01
      - id: analytics_page_typescript_ui
        source_file: ""
        date: 2026-04-01
      - id: settings_page_typescript_ui
        source_file: ""
        date: 2026-04-01
      - id: detail_page_typescript_ui
        source_file: ""
        date: 2026-04-01
      # Theming (2)
      - id: apply_theme_typescript_ui
        source_file: frontend/src/hooks/use-theme.tsx
        date: 2026-04-01
      - id: theme_provider_typescript_ui
        source_file: frontend/src/hooks/use-theme.tsx
        date: 2026-04-01
      # Wails IPC hooks (7)
      - id: wails_cache_typescript_core
        source_file: frontend/src/lib/wails/cache.ts
        date: 2026-04-01
      - id: WailsIPC_typescript_ui
        source_file: frontend/src/lib/wails/types.ts
        date: 2026-04-01
      - id: wails_provider_typescript_ui
        source_file: frontend/src/lib/wails/wails-provider.tsx
        date: 2026-04-01
      - id: use_wails_query_typescript_ui
        source_file: frontend/src/lib/wails/use-wails-query.tsx
        date: 2026-04-01
      - id: use_wails_mutation_typescript_ui
        source_file: frontend/src/lib/wails/use-wails-mutation.tsx
        date: 2026-04-01
      - id: use_wails_event_typescript_ui
        source_file: frontend/src/lib/wails/use-wails-event.tsx
        date: 2026-04-01
      - id: use_wails_stream_typescript_ui
        source_file: frontend/src/lib/wails/use-wails-stream.tsx
        date: 2026-04-01
      # Wails Go functions (5)
      - id: scaffold_wails_app_go_infra
        source_file: ""
        date: 2026-04-01
      - id: wails_build_go_infra
        source_file: ""
        date: 2026-04-01
      - id: wails_emit_event_go_infra
        source_file: ""
        date: 2026-04-01
      - id: wails_stream_data_go_infra
        source_file: ""
        date: 2026-04-01
      - id: wails_bind_crud_go_infra
        source_file: ""
        date: 2026-04-01
