fix(#1462): fail closed without data loss on a corrupt capability ledger; atomic ledger write (#1469)
This commit is contained in:
@@ -83,7 +83,7 @@ A per-runtime install manifest, e.g. `~/.claude/.gsd-capabilities.json`, recordi
|
||||
"source": "https://github.com/org/cap.git#sha:…",
|
||||
"integrity": "sha512-…",
|
||||
"files": ["skills/…", "agents/…"], // owned files written
|
||||
"sharedEdits": [{ "file": "settings.json", "path": "hooks.PostToolUse[…]" }]
|
||||
"sharedEdits": [{ "file": "settings.json", "marker": "<id>" }]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -158,7 +158,7 @@ gsd capability list [--json]
|
||||
|
||||
| Flag | Description |
|
||||
|---|---|
|
||||
| `--json` | Emit the JSON array explicitly. (In 1.6.0 `list` always emits JSON; a formatted table is planned.) |
|
||||
| `--json` | Currently a **no-op**: `list` always emits the JSON array regardless of this flag. The flag is accepted for forward compatibility — a formatted human-readable table is planned, at which point `--json` will select the JSON form. Do not rely on omitting `--json` to get non-JSON output today. |
|
||||
|
||||
**Behaviour**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user