@agentskit/doc-bridge 1.0.1 → 1.1.1
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/CHANGELOG.md +36 -0
- package/CONTRIBUTING.md +7 -0
- package/README.md +81 -15
- package/SECURITY.md +1 -1
- package/action.yml +2 -2
- package/dist/cli/program.js +1248 -316
- package/dist/cli/program.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +338 -13
- package/dist/config/index.js.map +1 -1
- package/dist/{index-CPUJbTbg.d.ts → index-DGI9TBLE.d.ts} +906 -11
- package/dist/index.d.ts +65 -11
- package/dist/index.js +1084 -171
- package/dist/index.js.map +1 -1
- package/docs/RELEASE.md +19 -21
- package/docs/getting-started.md +27 -2
- package/docs/landing/assets/doc-bridge-hero.webp +0 -0
- package/docs/landing/assets/doc-bridge-surfaces.webp +0 -0
- package/docs/landing/assets/doc-bridge-two-way.webp +0 -0
- package/docs/landing/index.html +70 -10
- package/docs/playbook/doc-bridge-pattern.md +2 -2
- package/docs/recipes/index-pipeline.md +2 -2
- package/docs/schemas/memory-candidate-v1.md +10 -1
- package/docs/spec/cli.md +1 -0
- package/docs/spec/config-v1.md +51 -6
- package/docs/spec/documentation-standard-v1.md +131 -0
- package/ecosystem-claims.json +187 -0
- package/ecosystem-upstream.json +9 -0
- package/ecosystem.json +231 -0
- package/package.json +14 -2
- package/scripts/check-ecosystem-upstream.mjs +50 -0
- package/src/cli/program.ts +43 -9
- package/src/config/index.ts +7 -1
- package/src/config/load-config.ts +4 -14
- package/src/config/schema.ts +91 -0
- package/src/conformance/documentation-standard-v1.ts +502 -0
- package/src/conformance/ecosystem-contract.ts +175 -0
- package/src/gates/run-gates.ts +33 -4
- package/src/index-builder/human-adapters/core.ts +12 -5
- package/src/index-builder/human-adapters/docusaurus.ts +29 -44
- package/src/index-builder/human-adapters/index.ts +15 -3
- package/src/index-builder/scan-corpus.ts +6 -6
- package/src/index.ts +17 -0
- package/src/lib/bounded-text.ts +25 -0
- package/src/lib/paths.ts +20 -2
- package/src/lib/static-js-literal.ts +261 -0
- package/src/lib/walk.ts +23 -4
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.1
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- Publish stable packages only from immutable tags after security, test, coverage, packaged-smoke, dogfood, and Documentation Standard v1 gates pass.
|
|
8
|
+
- Sync the canonical ecosystem snapshot before release so conformance and cross-product navigation remain current.
|
|
9
|
+
|
|
10
|
+
## 1.1.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- Add the stable, HITL-approved Documentation Standard v1 deterministic conformance profile, CLI command, reports, remediation, explicit approved exceptions, generated llms.txt freshness checks, and canonical ecosystem manifest/claims validation.
|
|
15
|
+
|
|
16
|
+
## 1.0.2
|
|
17
|
+
|
|
18
|
+
### Fixes
|
|
19
|
+
|
|
20
|
+
- Sync `ak-docs --version`, MCP `serverInfo.version`, and capabilities version from `package.json` during build/release.
|
|
21
|
+
- Allow `ak-docs query <id> --agent` as a shortcut for package/ownership handoff lookup.
|
|
22
|
+
- Packaged smoke now verifies installed CLI version.
|
|
23
|
+
|
|
24
|
+
## 1.0.1
|
|
25
|
+
|
|
26
|
+
### Fixes
|
|
27
|
+
|
|
28
|
+
- Hardened release validation with coverage for Layer 1 CLI, RAG/chat wrappers, MCP install, package-manager checks, watcher, markdown/glob helpers, and packaged/docsite smoke paths.
|
|
29
|
+
- Fixed provider API-key defaults for optional AgentsKit intelligence adapters.
|
|
30
|
+
- Replaced publish-time `pnpm build` hooks with `npm run build` for npm-friendly packing.
|
|
31
|
+
|
|
3
32
|
## 1.0.0
|
|
4
33
|
|
|
5
34
|
**Stable** — doctor, CI gate, MCP install, and agent skill are boring-reliable. Tier C polish ships.
|
|
6
35
|
|
|
7
36
|
### Features
|
|
37
|
+
|
|
8
38
|
- **Landing** — `docs/landing/index.html` deployed to GitHub Pages (`https://agentskit-io.github.io/doc-bridge/`)
|
|
9
39
|
- **Playbook pattern** — published `docs/playbook/doc-bridge-pattern.md` + `ak-docs playbook pattern [--text]`
|
|
10
40
|
- **Used by** — public AgentsKit surfaces cited on landing (for-agents, Registry, Playbook)
|
|
11
41
|
|
|
12
42
|
### Stable criteria met
|
|
43
|
+
|
|
13
44
|
- 60s demo path (`ak-docs demo`)
|
|
14
45
|
- Doctor coverage score + badges
|
|
15
46
|
- GitHub Action `doc-bridge-gate` + repo dogfood CI
|
|
@@ -17,6 +48,7 @@
|
|
|
17
48
|
- Memory promote → draft PR, index `--watch`, Ollama smoke (optional)
|
|
18
49
|
|
|
19
50
|
### Breaking changes from alpha
|
|
51
|
+
|
|
20
52
|
- None intended for Layer 0 config/handoff schemas (still `schemaVersion: 1`)
|
|
21
53
|
- Pin `@v1.0.0` for GitHub Action instead of alpha tags
|
|
22
54
|
|
|
@@ -25,6 +57,7 @@
|
|
|
25
57
|
Tier B — power-user workflows and production pipeline polish.
|
|
26
58
|
|
|
27
59
|
### Features
|
|
60
|
+
|
|
28
61
|
- **`ak-docs memory promote --pr`** — draft file + `gh pr create --draft` (with `--dry-run`, `--force`)
|
|
29
62
|
- **`ak-docs index --watch`** — debounced rebuild on agent/human doc changes
|
|
30
63
|
- **`ak-docs doctor --badge`** / **`--write-badge`** — shields.io markdown + `.doc-bridge/coverage-badge.json`
|
|
@@ -37,6 +70,7 @@ Tier B — power-user workflows and production pipeline polish.
|
|
|
37
70
|
Activation and agent-adoption polish — from "works" to "wow in 60s".
|
|
38
71
|
|
|
39
72
|
### Features
|
|
73
|
+
|
|
40
74
|
- **`ak-docs demo`** — bundled example/monorepo fixtures; before/after handoff, gate red→green, MCP snippet (no local config)
|
|
41
75
|
- **`ak-docs doctor`** — coverage score 0–100, missing agentDoc/humanDoc, gate status, next actions
|
|
42
76
|
- **`ak-docs mcp install --cursor | --claude`** — writes MCP server config
|
|
@@ -51,6 +85,7 @@ Activation and agent-adoption polish — from "works" to "wow in 60s".
|
|
|
51
85
|
Dogfood round-2 fixes (search ranking, full-text body, peers, federation soft-fail).
|
|
52
86
|
|
|
53
87
|
### Fixes
|
|
88
|
+
|
|
54
89
|
- **Search ranking:** exact id / basename boost; ownership preferred for routing questions; path dedupe
|
|
55
90
|
- **Full-text search:** knowledge entries store `body` excerpt; descriptions prefer frontmatter `purpose` and complete sentences
|
|
56
91
|
- **ask:** next command prefers ownership match over knowledge-only
|
|
@@ -64,6 +99,7 @@ Dogfood round-2 fixes (search ranking, full-text body, peers, federation soft-fa
|
|
|
64
99
|
Dogfood-driven polish after ecosystem install on agentskit, agentskit-os, playbook, and registry.
|
|
65
100
|
|
|
66
101
|
### Fixes / features
|
|
102
|
+
|
|
67
103
|
- **Package-manager-aware checks** — pnpm/yarn/npm/bun; `pnpm --filter <pkg>` in workspaces
|
|
68
104
|
- **Corpus ownership inference** — `packages/<id>.md`, pillars patterns, registry READMEs (toggle `routing.options.ownershipFromCorpus`)
|
|
69
105
|
- **Richer `guessAgentDocForPackage`** — packages/id, index.md, mdx, for-agents top-level
|
package/CONTRIBUTING.md
CHANGED
|
@@ -19,6 +19,13 @@ pnpm build
|
|
|
19
19
|
- Add or update the smallest test that would fail if the behavior regresses.
|
|
20
20
|
- Public contract changes must update the relevant docs under `docs/spec/` or `docs/schemas/`.
|
|
21
21
|
|
|
22
|
+
## Pull request checklist
|
|
23
|
+
|
|
24
|
+
- Run `pnpm typecheck && pnpm test && pnpm build`.
|
|
25
|
+
- Run `npm pack --dry-run` for package or README changes.
|
|
26
|
+
- Update docs and `CHANGELOG.md` when behavior changes.
|
|
27
|
+
- Keep examples public and reproducible.
|
|
28
|
+
|
|
22
29
|
## Releases
|
|
23
30
|
|
|
24
31
|
Use Changesets for versioned changes:
|
package/README.md
CHANGED
|
@@ -1,12 +1,54 @@
|
|
|
1
1
|
# doc-bridge
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@agentskit/doc-bridge)
|
|
4
|
+
[](https://github.com/AgentsKit-io/doc-bridge/actions/workflows/ci.yml)
|
|
5
|
+
[](https://agentskit-io.github.io/doc-bridge/)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
[](package.json)
|
|
8
|
+
[](dist/index.d.ts)
|
|
9
|
+
|
|
3
10
|
**npm:** [`@agentskit/doc-bridge`](https://www.npmjs.com/package/@agentskit/doc-bridge) · **CLI:** `ak-docs` · **Landing:** [agentskit-io.github.io/doc-bridge](https://agentskit-io.github.io/doc-bridge/)
|
|
4
11
|
|
|
5
|
-
**
|
|
12
|
+
**Turn your docs into executable handoffs for coding agents.**
|
|
13
|
+
|
|
14
|
+
doc-bridge reads your repo docs, ownership map, and human documentation site, then gives every agent the same answer:
|
|
15
|
+
|
|
16
|
+
- where to start reading
|
|
17
|
+
- which files/packages it may edit
|
|
18
|
+
- which checks prove the change
|
|
19
|
+
- which human docs explain the feature
|
|
20
|
+
|
|
21
|
+
It is not a wiki, not hosted RAG, and not another chat UI. The core works **without any LLM or API key**.
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+
|
|
25
|
+
## Why teams use it
|
|
6
26
|
|
|
7
|
-
|
|
27
|
+
Agents are powerful, but most repo docs are written for humans. The result is familiar: the agent guesses ownership, edits the sibling package, runs the wrong test, or ignores the human guide that already explained the rule.
|
|
8
28
|
|
|
9
|
-
|
|
29
|
+
doc-bridge works in both directions:
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
| Direction | What it does | Command |
|
|
34
|
+
|-----------|--------------|---------|
|
|
35
|
+
| **Human docs → agents** | Turns Fumadocs, Docusaurus, markdown, and ownership docs into `AgentHandoff` | `ak-docs index` · `ak-docs query --agent` |
|
|
36
|
+
| **Agent memory → docs** | Reads `.agent-memory/**` and `.cursor/rules/*.mdc`, classifies what should become project docs, and drafts a human-reviewed promotion | `ak-docs memory ingest` · `classify` · `promote --pr` |
|
|
37
|
+
|
|
38
|
+
The handoff is a routing contract:
|
|
39
|
+
|
|
40
|
+
```json
|
|
41
|
+
{
|
|
42
|
+
"startHere": "docs/for-agents/packages/auth.md",
|
|
43
|
+
"editRoots": ["packages/auth"],
|
|
44
|
+
"checks": ["pnpm --filter @demo/auth test"],
|
|
45
|
+
"humanDoc": "/docs/guides/auth"
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
That contract works from the terminal, MCP, CI, and optional RAG/chat.
|
|
50
|
+
|
|
51
|
+
## 60-second proof
|
|
10
52
|
|
|
11
53
|
```bash
|
|
12
54
|
npm i -D @agentskit/doc-bridge
|
|
@@ -41,6 +83,23 @@ npx ak-docs query package example --agent
|
|
|
41
83
|
ak-docs mcp install --cursor # wires MCP into .cursor/mcp.json
|
|
42
84
|
```
|
|
43
85
|
|
|
86
|
+
## What ships
|
|
87
|
+
|
|
88
|
+

|
|
89
|
+
|
|
90
|
+
| Surface | Use it for | Command / artifact |
|
|
91
|
+
|---------|------------|--------------------|
|
|
92
|
+
| **CLI** | Inspect ownership, search docs, run gates, ask local questions | `ak-docs query`, `search`, `ask`, `doctor`, `gate` |
|
|
93
|
+
| **MCP server** | Let Cursor, Claude Code, Codex-style agents resolve handoffs before editing | `ak-docs mcp`, `handoff.resolve` |
|
|
94
|
+
| **GitHub Action / CI** | Fail stale indexes and broken human-doc links on PRs | `AgentsKit-io/doc-bridge@v1.1.1` |
|
|
95
|
+
| **Documentation conformance** | Check the stable ecosystem standard with auditable evidence | `ak-docs conformance run documentation-standard-v1 --text` |
|
|
96
|
+
| **Doc adapters** | Link human docs to agent docs | `fumadocs`, `docusaurus`, `plain-markdown` |
|
|
97
|
+
| **Monorepo routing** | Discover workspaces and checks | `pnpm-monorepo` |
|
|
98
|
+
| **Memory pipeline** | Turn agent notes into reviewable documentation drafts | `memory ingest`, `classify`, `promote --pr` |
|
|
99
|
+
| **Optional RAG/chat** | Ground chat in the same handoff-first index | `@agentskit/rag`, `@agentskit/ink`, `ak-docs chat` |
|
|
100
|
+
|
|
101
|
+
See [docs/getting-started.md](docs/getting-started.md), [docs/mcp.md](docs/mcp.md), and [docs/examples.md](docs/examples.md).
|
|
102
|
+
|
|
44
103
|
## Why this exists
|
|
45
104
|
|
|
46
105
|
| Pattern | Gap |
|
|
@@ -122,7 +181,7 @@ Next actions
|
|
|
122
181
|
Reuse the bundled GitHub Action on every PR:
|
|
123
182
|
|
|
124
183
|
```yaml
|
|
125
|
-
- uses: AgentsKit-io/doc-bridge@v1.
|
|
184
|
+
- uses: AgentsKit-io/doc-bridge@v1.1.1
|
|
126
185
|
with:
|
|
127
186
|
config-path: doc-bridge.config.json
|
|
128
187
|
```
|
|
@@ -139,9 +198,9 @@ ak-docs index && ak-docs gate run
|
|
|
139
198
|
|
|
140
199
|
Gate fails with `Index is stale. Run: ak-docs index` — same check in CI annotations.
|
|
141
200
|
|
|
142
|
-
##
|
|
201
|
+
## Product surface
|
|
143
202
|
|
|
144
|
-
###
|
|
203
|
+
### Core — always (no LLM)
|
|
145
204
|
|
|
146
205
|
| Surface | Purpose |
|
|
147
206
|
|---------|---------|
|
|
@@ -151,9 +210,9 @@ Gate fails with `Index is stale. Run: ak-docs index` — same check in CI annota
|
|
|
151
210
|
| **CLI** | `query` / `search` / `list` / `ask` / `gate` / `memory` / `bootstrap` |
|
|
152
211
|
| **MCP** | `handoff.resolve`, `doc.search`, `doc.get`, `gate.status`, … |
|
|
153
212
|
| **Gates** | Freshness, human-link validation, optional OKF style |
|
|
154
|
-
| **
|
|
213
|
+
| **Adapters** | `pnpm-monorepo`, `fumadocs`, `docusaurus`, `plain-markdown` |
|
|
155
214
|
|
|
156
|
-
###
|
|
215
|
+
### Optional AgentsKit peers
|
|
157
216
|
|
|
158
217
|
```bash
|
|
159
218
|
npm i -D @agentskit/rag @agentskit/ink @agentskit/adapters @agentskit/memory react
|
|
@@ -164,9 +223,6 @@ See **[docs/chat-and-rag.md](docs/chat-and-rag.md)**.
|
|
|
164
223
|
|
|
165
224
|
## Who uses it (public)
|
|
166
225
|
|
|
167
|
-
[](https://www.npmjs.com/package/@agentskit/doc-bridge)
|
|
168
|
-
[](https://github.com/AgentsKit-io/doc-bridge/actions)
|
|
169
|
-
|
|
170
226
|
Designed for and dogfooded on open AgentsKit surfaces:
|
|
171
227
|
|
|
172
228
|
| Surface | Link |
|
|
@@ -174,6 +230,9 @@ Designed for and dogfooded on open AgentsKit surfaces:
|
|
|
174
230
|
| **for-agents** | [agentskit.io/docs/for-agents](https://www.agentskit.io/docs/for-agents) |
|
|
175
231
|
| **Registry** | [registry.agentskit.io](https://registry.agentskit.io/) |
|
|
176
232
|
| **Playbook** | [playbook.agentskit.io](https://playbook.agentskit.io/llms.txt) |
|
|
233
|
+
| **AgentsKit Chat** | [chat framework](https://github.com/AgentsKit-io/agentskit-chat) |
|
|
234
|
+
| **AgentsKit OS** | [akos.agentskit.io](https://akos.agentskit.io) |
|
|
235
|
+
| **Code Review** | [repository-native CLI](https://github.com/AgentsKit-io/code-review-cli) |
|
|
177
236
|
| **This repo** | CI green · `ak-docs gate run` on every PR |
|
|
178
237
|
|
|
179
238
|
**Playbook pattern:** [`docs/playbook/doc-bridge-pattern.md`](docs/playbook/doc-bridge-pattern.md) — export with `ak-docs playbook pattern --text`
|
|
@@ -200,7 +259,7 @@ ak-docs memory promote --pr # opens draft PR via gh
|
|
|
200
259
|
|
|
201
260
|
## Status
|
|
202
261
|
|
|
203
|
-
**v1.
|
|
262
|
+
**v1.1.1 stable** — deterministic Documentation Standard v1 conformance, verified release provenance, doctor + CI + skill, landing, Playbook pattern, and full Tier A/B/C.
|
|
204
263
|
|
|
205
264
|
```bash
|
|
206
265
|
pnpm install && pnpm build && pnpm test
|
|
@@ -211,9 +270,16 @@ pnpm smoke:ollama # optional — skips if Ollama/peers unavailable
|
|
|
211
270
|
|
|
212
271
|
## Contributing
|
|
213
272
|
|
|
214
|
-
|
|
215
|
-
|
|
273
|
+
Issues and PRs are welcome. Start here:
|
|
274
|
+
|
|
275
|
+
| Need | Doc |
|
|
276
|
+
|------|-----|
|
|
277
|
+
| Local setup, tests, release flow | [CONTRIBUTING.md](CONTRIBUTING.md) |
|
|
278
|
+
| Vulnerability reports | [SECURITY.md](SECURITY.md) |
|
|
279
|
+
| Community standards | [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) |
|
|
280
|
+
| Release history | [CHANGELOG.md](CHANGELOG.md) |
|
|
281
|
+
| Product positioning | [docs/POSITIONING.md](docs/POSITIONING.md) |
|
|
216
282
|
|
|
217
283
|
## License
|
|
218
284
|
|
|
219
|
-
MIT
|
|
285
|
+
[MIT](LICENSE)
|
package/SECURITY.md
CHANGED
package/action.yml
CHANGED
|
@@ -18,7 +18,7 @@ inputs:
|
|
|
18
18
|
required: false
|
|
19
19
|
default: '22'
|
|
20
20
|
package-version:
|
|
21
|
-
description: npm package version pin (e.g.
|
|
21
|
+
description: npm package version pin (e.g. 1.1.1)
|
|
22
22
|
required: false
|
|
23
23
|
default: ''
|
|
24
24
|
|
|
@@ -75,4 +75,4 @@ runs:
|
|
|
75
75
|
SCORE="$(echo "$REPORT" | sed -n 's/^Score: \([0-9]*\)\/.*/\1/p' | head -1)"
|
|
76
76
|
if [ -n "$SCORE" ]; then
|
|
77
77
|
echo "::notice title=doc-bridge coverage::Score ${SCORE}/100 — run ak-docs doctor locally for next actions"
|
|
78
|
-
fi
|
|
78
|
+
fi
|