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 +14 -22
- package/dist/main.js +2776 -2303
- package/dist/main.js.map +1 -1
- package/docs/README.md +18 -16
- package/docs/readmes/README.ar.md +16 -21
- package/docs/readmes/README.de.md +16 -21
- package/docs/readmes/README.el.md +16 -21
- package/docs/readmes/README.es.md +16 -21
- package/docs/readmes/README.fr.md +16 -21
- package/docs/readmes/README.id.md +16 -21
- package/docs/readmes/README.it.md +16 -21
- package/docs/readmes/README.ja.md +16 -21
- package/docs/readmes/README.ko.md +16 -21
- package/docs/readmes/README.pl.md +16 -21
- package/docs/readmes/README.pt.md +16 -21
- package/docs/readmes/README.ru.md +16 -21
- package/docs/readmes/README.tr.md +16 -21
- package/docs/readmes/README.vi.md +16 -21
- package/docs/readmes/README.zh.md +16 -21
- package/package.json +7 -7
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
|
|
23
|
+
truthmark init
|
|
24
|
+
truthmark check
|
|
25
|
+
git diff
|
|
24
26
|
```
|
|
25
27
|
|
|
26
|
-
|
|
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
|
-
|
|
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
|
|
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,
|
|
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
|
|
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
|
-
|
|
207
|
+
Truthmark 2.3 provides:
|
|
216
208
|
|
|
217
|
-
- local CLI commands for
|
|
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
|