Complete model and skill names in shell completion

Aperta
#24 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
69/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Start with completion_script() in codo and the tests in tests/test_codo_completion.py; trace how the bash, zsh, and fish scripts handle command positions and how local settings and cache are accessed. Add a hidden completion command that returns model, skill, or agent values offline, then verify the scripts use it and the tests cover the output, error behavior, and response time requirement.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement help wanted

Shell completion (0.32.8) completes command names and a fixed list of subcommands. codo model <Tab>, codo skill <Tab> and codo agents <Tab> could suggest real values.

Idea: a hidden, fast, offline command (for example codo __complete model) that prints one value per line from local settings and cache, never from the network, and the bash/zsh/fish scripts call it for those positions. It must return quickly (under ~100 ms) and print nothing on error.

Where: completion_script() in codo, tests in tests/test_codo_completion.py.

Lingua principale
Python
Stelle
5
Fork
0
Merge medio
8h 19m
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DomaAI/Codo

Tutte le issue di DomaAI/Codo

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.