source adapter framework

This commit is contained in:
2026-05-14 22:05:34 +02:00
parent f8f20c7c32
commit eb34c0d4fb
17 changed files with 1924 additions and 15 deletions

View File

@@ -862,6 +862,57 @@ Parameters:
- `--policy-mode` - Override policy mode for this search.
- `--format` -
## `mkt source`
Inspect source-format adapters and normalize sources.
```text
source [OPTIONS] COMMAND [ARGS]...
```
## `mkt source adapters`
List discovered read-only source adapters.
```text
adapters [OPTIONS]
```
Parameters:
- `--format` -
## `mkt source inspect`
Inspect a local source without full Markdown conversion.
```text
inspect [OPTIONS] SOURCE_PATH
```
Parameters:
- `SOURCE_PATH` - Required.
- `--adapter` - Explicit source adapter id.
- `--option` - Adapter-specific option. May be repeated.
- `--format` -
## `mkt source normalize`
Normalize a local source into canonical Markdown.
```text
normalize [OPTIONS] SOURCE_PATH
```
Parameters:
- `SOURCE_PATH` - Required.
- `--adapter` - Explicit source adapter id.
- `--option` - Adapter-specific option. May be repeated.
- `--output` - Write normalized output to this file.
- `--format` -
## `mkt tangle`
Tangle named Markdown code chunks into target files.