|
| 1 | +# CompText CLI — Phase 7 Status Report |
| 2 | + |
| 3 | +## Standard Return Schema |
| 4 | +PHASE: Phase 7: Provider Config Layer |
| 5 | +STATUS: success |
| 6 | +FILES_CHANGED: |
| 7 | +- Cargo.toml |
| 8 | +- comptext.example.toml |
| 9 | +- src/cli.rs |
| 10 | +- docs/PROVIDER_CONFIG.md |
| 11 | +- reports/phase_7_status.md |
| 12 | +- PROJEKT.md |
| 13 | +COMMANDS_RUN: |
| 14 | +- `cargo fmt --all --check` |
| 15 | +- `cargo check` |
| 16 | +- `cargo test` |
| 17 | +- `cargo clippy -- -D warnings` |
| 18 | +- `cargo run --bin ctxt -- providers list` |
| 19 | +- `cargo run --bin ctxt -- doctor` |
| 20 | +VALIDATION: |
| 21 | +- Verified formatting, lint checks, compilation and testing cleanly. |
| 22 | +- Added unit tests for parsing valid configuration files, throwing parse errors on malformed structures, and redacting secret keys in summary outputs. All 19 tests pass. |
| 23 | +- Added integration test verification mapping hyphenated adapter names. |
| 24 | +ARTIFACTS: |
| 25 | +- None |
| 26 | +GIT: |
| 27 | +- Stage, commit, and push pending. |
| 28 | +NETWORK: |
| 29 | +- offline-only (validations performed entirely offline). |
| 30 | +SECRETS: |
| 31 | +- verified-redacted (Secret metadata keys/tokens found in loaded provider configurations are redacted before formatting to terminal summaries). |
| 32 | +POLICY_DECISIONS: |
| 33 | +- Enforce fail-closed verification: malformed configuration files immediately throw errors and abort command execution. |
| 34 | +RISKS: |
| 35 | +- Handled profile name alignment (hyphen vs underscore keys) in `comptext.example.toml` to guarantee compatibility with pre-existing integration checks. |
| 36 | +SKILLS_USED: |
| 37 | +- `.agents/skills/ctxt-long-run-autonomy/SKILL.md` |
| 38 | +- `.agents/skills/ctxt-security/SKILL.md` |
| 39 | +- `.agents/skills/ctxt-provider-boundary/SKILL.md` |
| 40 | +- `.agents/skills/ctxt-context-pack/SKILL.md` |
| 41 | +- `.agent/skills/03_provider_adapter.md` |
| 42 | +- `.agent/skills/04_ollama_adapter.md` |
| 43 | +NEXT: |
| 44 | +- Phase 8: OpenAI-Compatible Adapter |
| 45 | + |
| 46 | +--- |
| 47 | + |
| 48 | +## Detailed Notes & Output Samples |
| 49 | + |
| 50 | +### Configuration-based Command Execution |
| 51 | +`run` extracts `--config <path>` globally and loads configuration defaults (`default provider`, `dry_run_default`, `proposal_required`) and provider profile definitions. |
| 52 | + |
| 53 | +Sample of `ctxt providers list`: |
| 54 | +```text |
| 55 | +dummy kind=dummy network=false |
| 56 | +ollama-cloud-direct kind=ollama network=true base_url=https://ollama.com auth_env=OLLAMA_API_KEY |
| 57 | +ollama-cloud-via-local kind=ollama network=true base_url=http://localhost:11434 auth=ollama_signin |
| 58 | +ollama-local kind=ollama network=true base_url=http://localhost:11434 auth=none |
| 59 | +openai-compatible kind=openai-compatible network=true base_url=http://localhost:11434/v1 auth_env=OPTIONAL_API_KEY |
| 60 | +``` |
| 61 | + |
| 62 | +Sample of `ctxt doctor`: |
| 63 | +```text |
| 64 | +CompText doctor |
| 65 | +status: ok |
| 66 | +network_default: deny |
| 67 | +provider_default: dummy |
| 68 | +proposal_required: true |
| 69 | +secrets_policy: redact-before-artifact |
| 70 | +``` |
0 commit comments