truthmark 2.2.6 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,30 +20,22 @@ Run this inside the Git repository you want Truthmark to manage:
20
20
  ```bash
21
21
  cd /path/to/your-repo
22
22
  npm install -g truthmark
23
- truthmark config
23
+ truthmark init
24
+ truthmark check
25
+ git diff
24
26
  ```
25
27
 
26
- Enable the AI host you actually use. Fresh configs are host-neutral, so add a top-level `platforms` list to `.truthmark/config.yml` before initialization:
27
-
28
- ```yaml
29
- version: 2
30
- platforms:
31
- - codex # or: claude-code, github-copilot, opencode, antigravity, cursor
32
- truthmark:
33
- workspace: docs/truthmark
34
- generated:
35
- portal:
36
- enabled: false
37
- ```
28
+ In an interactive terminal, `truthmark init` shows a numbered multi-select for Codex, Claude Code, GitHub Copilot, OpenCode, Antigravity, and Cursor. Select zero or more hosts; choose `none` for a host-neutral, CLI-only repository.
38
29
 
39
- Then install the repo-local truth docs, routing, and AI-host instructions:
30
+ For scripts and CI, repeat `--platform` to replace the selected host set without prompting:
40
31
 
41
32
  ```bash
42
- truthmark init
43
- truthmark check
44
- git diff
33
+ truthmark init --platform codex --platform cursor
34
+ truthmark init --json
45
35
  ```
46
36
 
37
+ `--json` never prompts. On a first noninteractive run with no `--platform`, initialization stays host-neutral; later reruns retain the platforms already saved in `.truthmark/config.yml`.
38
+
47
39
  Now try the most common adoption path: document one existing behavior from code and tests. In your AI coding host, ask the installed workflow:
48
40
 
49
41
  ```text
@@ -52,7 +44,7 @@ Now try the most common adoption path: document one existing behavior from code
52
44
 
53
45
  After that, users should not normally invoke Truth Sync directly. Keep coding through your AI host; the installed repository instructions tell the agent to run relevant tests and perform the Truth Sync review before handoff when functional code changes. You review the resulting code diff plus truth-doc diff.
54
46
 
55
- If you only want CLI validation and do not want host-specific AI workflows yet, leave `platforms` omitted and run `truthmark init && truthmark check`; you can add a platform later and rerun `truthmark init`.
47
+ If you only want CLI validation and do not want host-specific AI workflows yet, select `none` and continue with `truthmark check`; you can rerun `truthmark init` later to select platforms.
56
48
 
57
49
  ## 💡 The Problem: The AI Documentation Gap
58
50
 
@@ -100,9 +92,9 @@ Truthmark has one repo-local contract with two ways to use it.
100
92
 
101
93
  Maintainers and CI use the CLI:
102
94
 
103
- * `truthmark config` - create the initial configuration.
104
- * `truthmark init` - install or refresh routing, truth-doc scaffolds, and AI-host instructions.
95
+ * `truthmark init` - create or refresh configuration, select zero or more platforms, and install routing, truth-doc scaffolds, and selected AI-host instructions.
105
96
  * `truthmark check` - validate the repository truth from the terminal.
97
+ * `truthmark uninstall --dry-run|--apply` - preview or remove generated host surfaces while preserving authored truth and configuration.
106
98
 
107
99
  ### Agents follow the contract while coding
108
100
 
@@ -212,9 +204,9 @@ For command-by-command usage, surface comparisons, supported platform details, c
212
204
 
213
205
  ## Project status
214
206
 
215
- The current release provides:
207
+ Truthmark 2.3 provides:
216
208
 
217
- - local CLI commands for config, init, check, index, impact, and workflow status
209
+ - local CLI commands for init, uninstall, check, index, impact, workflow status, and validate
218
210
  - generated repo-local agent instructions for Codex, Claude Code, GitHub Copilot, OpenCode, Antigravity, and Cursor
219
211
  - route, authority, frontmatter, link, freshness, generated-surface, branch-scope, and coverage diagnostics
220
212
  - branch-scoped truth docs and derived repository-intelligence artifacts