Adds llm select options and descriptions
This commit is contained in:
1 parent
b66e28193c
commit
f0939813ed
3 files changed
+83
-15
No files matched your search
+77
-13
@@ -39,17 +39,47 @@ Standard-Workflow für eine Copilot-CLI-Migration mit Entire:
|
|||||||
|
|
||||||
Dieses Skript ist für den normalen Migrationslauf gedacht.
|
Dieses Skript ist für den normalen Migrationslauf gedacht.
|
||||||
|
|
||||||
|
**Modellwahl:**
|
||||||
|
Das Skript akzeptiert optional ein Modell als zweiten Parameter.
|
||||||
|
|
||||||
|
Default:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./scripts/run-entire-copilot-migration.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
verwendet intern:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
copilot --model "qwen3.5-397b-a17b"
|
||||||
|
```
|
||||||
|
|
||||||
|
Mit explizitem Modell:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./scripts/run-entire-copilot-migration.sh qt5-before/qt5-legacy-migration-benchmark gpt-5
|
||||||
|
```
|
||||||
|
|
||||||
### `run-entire-copilot-migration-with-optional-rewind-resume.sh`
|
### `run-entire-copilot-migration-with-optional-rewind-resume.sh`
|
||||||
Wie das Standardskript, aber zusätzlich mit optionalem:
|
Wie das Standardskript, aber zusätzlich mit optionalem:
|
||||||
|
|
||||||
- `entire checkpoint rewind`
|
- `entire checkpoint rewind`
|
||||||
- `entire session resume <branch>`
|
- `entire session resume <branch>`
|
||||||
|
|
||||||
|
**Modellwahl:**
|
||||||
|
Auch dieses Skript akzeptiert optional ein Modell als zweiten Parameter.
|
||||||
|
|
||||||
|
Beispiel:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./scripts/run-entire-copilot-migration-with-optional-rewind-resume.sh qt5-before/qt5-legacy-migration-benchmark claude-sonnet-4
|
||||||
|
```
|
||||||
|
|
||||||
**Wichtig:**
|
**Wichtig:**
|
||||||
Die Entire-Dokumentation ist bei Copilot CLI in Bezug auf Rewind/Resume nicht ganz konsistent.
|
Die Entire-Dokumentation ist bei Copilot CLI in Bezug auf Rewind/Resume nicht ganz konsistent.
|
||||||
Die Copilot-CLI-Seite beschreibt Rewind und Resume, während die allgemeine Agent-Übersicht teils eingeschränkte Aussagen macht. Entire installiert Copilot-CLI-Hooks mit `entire agent add copilot-cli`, erstellt Checkpoints bei Commits und speichert die Daten auf `entire/checkpoints/v1`. ([docs.entire.io](https://docs.entire.io/agents/copilot-cli?utm_source=openai))
|
Die Copilot-CLI-Seite beschreibt Rewind und Resume, während die allgemeine Agent-Übersicht teils eingeschränkte Aussagen macht.
|
||||||
|
|
||||||
Darum behandelt dieses Skript Rewind/Resume bewusst als **optional** und **fehlertolerant**. Diese Vorsicht ist eine Schlussfolgerung aus den widersprüchlichen Entire-Seiten. ([docs.entire.io](https://docs.entire.io/agents/copilot-cli?utm_source=openai))
|
Darum behandelt dieses Skript Rewind/Resume bewusst als **optional** und **fehlertolerant**.
|
||||||
|
|
||||||
### `use-scaleway-copilot-debug.sh`
|
### `use-scaleway-copilot-debug.sh`
|
||||||
Hilfsskript zum Setzen einer **Scaleway OpenAI-kompatiblen BYOK-Konfiguration** für Copilot CLI.
|
Hilfsskript zum Setzen einer **Scaleway OpenAI-kompatiblen BYOK-Konfiguration** für Copilot CLI.
|
||||||
@@ -71,7 +101,36 @@ Ein typischer Inhalt wäre z. B.:
|
|||||||
- `COPILOT_PROVIDER_MAX_PROMPT_TOKENS=...`
|
- `COPILOT_PROVIDER_MAX_PROMPT_TOKENS=...`
|
||||||
- `COPILOT_PROVIDER_MAX_OUTPUT_TOKENS=...`
|
- `COPILOT_PROVIDER_MAX_OUTPUT_TOKENS=...`
|
||||||
|
|
||||||
GitHub Copilot CLI BYOK verwendet für OpenAI-kompatible Provider genau dieses Muster aus Base-URL, API-Key und Modell. ([docs.entire.io](https://docs.entire.io/agents/copilot-cli?utm_source=openai))
|
---
|
||||||
|
|
||||||
|
## NOTE: Secret in `.envrc` hinterlegen
|
||||||
|
|
||||||
|
Das Secret für den verwendeten LLM-Provider soll **nicht** direkt in die Skripte geschrieben oder committed werden.
|
||||||
|
|
||||||
|
Lege den API-Key stattdessen in einer lokalen `.envrc` ab, z. B.:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export SCW_SECRET_KEY="YOUR_PROVIDER_SECRET_HERE"
|
||||||
|
```
|
||||||
|
|
||||||
|
oder allgemeiner:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export OPENAI_API_KEY="YOUR_PROVIDER_SECRET_HERE"
|
||||||
|
```
|
||||||
|
|
||||||
|
Danach die Umgebung neu laden, z. B. mit:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
direnv allow
|
||||||
|
```
|
||||||
|
|
||||||
|
oder die Datei manuell sourcen, falls du kein `direnv` verwendest.
|
||||||
|
|
||||||
|
**Wichtig:**
|
||||||
|
- `.envrc` nicht committen
|
||||||
|
- Secrets nicht im Repository speichern
|
||||||
|
- Provider-Zugangsdaten nur lokal halten
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -98,16 +157,22 @@ echo "$COPILOT_MODEL"
|
|||||||
|
|
||||||
### 3. Migration mit Entire + Copilot starten
|
### 3. Migration mit Entire + Copilot starten
|
||||||
|
|
||||||
Standard:
|
Standard mit Default-Modell:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./scripts/run-entire-copilot-migration.sh qt5-before/qt5-legacy-migration-benchmark
|
./scripts/run-entire-copilot-migration.sh qt5-before/qt5-legacy-migration-benchmark
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Standard mit explizitem Modell:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./scripts/run-entire-copilot-migration.sh qt5-before/qt5-legacy-migration-benchmark qwen3.5-397b-a17b
|
||||||
|
```
|
||||||
|
|
||||||
Mit optionalem Rewind/Resume:
|
Mit optionalem Rewind/Resume:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./scripts/run-entire-copilot-migration-with-optional-rewind-resume.sh qt5-before/qt5-legacy-migration-benchmark
|
./scripts/run-entire-copilot-migration-with-optional-rewind-resume.sh qt5-before/qt5-legacy-migration-benchmark qwen3.5-397b-a17b
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -150,20 +215,18 @@ Entire erfasst bei unterstützten Agenten u. a.:
|
|||||||
- Dateiveränderungen
|
- Dateiveränderungen
|
||||||
- Zeitstempel
|
- Zeitstempel
|
||||||
- Checkpoints bei Commits
|
- Checkpoints bei Commits
|
||||||
- Session-Kontext auf dem Branch `entire/checkpoints/v1` ([docs.entire.io](https://docs.entire.io/agents/copilot-cli?utm_source=openai))
|
- Session-Kontext auf dem Branch `entire/checkpoints/v1`
|
||||||
|
|
||||||
Typischer Entire-Grundablauf:
|
Typischer Entire-Grundablauf:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
entire agent add copilot-cli
|
entire agent add copilot-cli
|
||||||
copilot
|
copilot --model "qwen3.5-397b-a17b"
|
||||||
git add .
|
git add .
|
||||||
git commit -m "..."
|
git commit -m "..."
|
||||||
entire checkpoint list
|
entire checkpoint list
|
||||||
```
|
```
|
||||||
|
|
||||||
Dieser Ablauf ist direkt in der Copilot-CLI- und Quickstart-Dokumentation beschrieben. ([docs.entire.io](https://docs.entire.io/agents/copilot-cli?utm_source=openai))
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Hinweise zu `use-scaleway-copilot-debug.sh`
|
## Hinweise zu `use-scaleway-copilot-debug.sh`
|
||||||
@@ -184,7 +247,7 @@ Außerdem:
|
|||||||
|
|
||||||
- keine echten Secrets committen
|
- keine echten Secrets committen
|
||||||
- API-Keys nicht im Repo speichern
|
- API-Keys nicht im Repo speichern
|
||||||
- sensible Werte besser aus bereits gesetzten Umgebungsvariablen übernehmen
|
- sensible Werte aus `.envrc` oder bereits gesetzten Umgebungsvariablen übernehmen
|
||||||
|
|
||||||
Beispiel:
|
Beispiel:
|
||||||
|
|
||||||
@@ -211,6 +274,7 @@ Optional kannst du später noch ergänzen:
|
|||||||
Der `scripts/`-Ordner enthält alles, um:
|
Der `scripts/`-Ordner enthält alles, um:
|
||||||
|
|
||||||
1. ein Legacy-Qt5-Projekt zu erzeugen,
|
1. ein Legacy-Qt5-Projekt zu erzeugen,
|
||||||
2. Copilot CLI optional mit Scaleway zu konfigurieren,
|
2. Copilot CLI optional mit einem externen Modell zu konfigurieren,
|
||||||
3. eine Qt6/C++23-Migration mit Entire zu dokumentieren,
|
3. Secrets lokal über `.envrc` bereitzustellen,
|
||||||
4. und den Migrationslauf reproduzierbar zu machen.
|
4. eine Qt6/C++23-Migration mit Entire zu dokumentieren,
|
||||||
|
5. und den Migrationslauf reproduzierbar zu machen.
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
PROJECT_DIR="${1:-qt5-before/qt5-legacy-migration-benchmark}"
|
PROJECT_DIR="${1:-qt5-before/qt5-legacy-migration-benchmark}"
|
||||||
|
COPILOT_MODEL="${2:-qwen3.5-397b-a17b}"
|
||||||
|
|
||||||
need_cmd() {
|
need_cmd() {
|
||||||
command -v "$1" >/dev/null 2>&1 || {
|
command -v "$1" >/dev/null 2>&1 || {
|
||||||
@@ -30,6 +31,7 @@ fi
|
|||||||
|
|
||||||
echo "Repo root: $REPO_ROOT"
|
echo "Repo root: $REPO_ROOT"
|
||||||
echo "Legacy project: $PROJECT_DIR"
|
echo "Legacy project: $PROJECT_DIR"
|
||||||
|
echo "Copilot model: $COPILOT_MODEL"
|
||||||
|
|
||||||
entire agent add copilot-cli
|
entire agent add copilot-cli
|
||||||
entire status
|
entire status
|
||||||
@@ -72,7 +74,7 @@ Requirements:
|
|||||||
- Briefly explain each migration change
|
- Briefly explain each migration change
|
||||||
PROMPT
|
PROMPT
|
||||||
|
|
||||||
copilot
|
copilot --model "${COPILOT_MODEL}"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "== Git status after Copilot session =="
|
echo "== Git status after Copilot session =="
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
PROJECT_DIR="${1:-qt5-before/qt5-legacy-migration-benchmark}"
|
PROJECT_DIR="${1:-qt5-before/qt5-legacy-migration-benchmark}"
|
||||||
|
COPILOT_MODEL="${2:-qwen3.5-397b-a17b}"
|
||||||
|
|
||||||
need_cmd() {
|
need_cmd() {
|
||||||
command -v "$1" >/dev/null 2>&1 || {
|
command -v "$1" >/dev/null 2>&1 || {
|
||||||
@@ -30,6 +31,7 @@ fi
|
|||||||
|
|
||||||
echo "Repo root: $REPO_ROOT"
|
echo "Repo root: $REPO_ROOT"
|
||||||
echo "Legacy project: $PROJECT_DIR"
|
echo "Legacy project: $PROJECT_DIR"
|
||||||
|
echo "Copilot model: $COPILOT_MODEL"
|
||||||
|
|
||||||
entire agent add copilot-cli
|
entire agent add copilot-cli
|
||||||
entire status
|
entire status
|
||||||
@@ -72,7 +74,7 @@ Requirements:
|
|||||||
- Briefly explain each migration change
|
- Briefly explain each migration change
|
||||||
PROMPT
|
PROMPT
|
||||||
|
|
||||||
copilot
|
copilot --model "${COPILOT_MODEL}"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "== Git status after Copilot session =="
|
echo "== Git status after Copilot session =="
|
||||||
|
|||||||
Reference in new issue
Block a user