@agentskit/doc-bridge 1.1.1 → 1.2.3
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 +39 -1
- package/CONTRIBUTING.md +1 -0
- package/README.md +42 -11
- package/action.yml +27 -23
- package/dist/cli/program.js +18 -5
- package/dist/cli/program.js.map +1 -1
- package/dist/index.d.ts +39 -2
- package/dist/index.js +46 -5
- package/dist/index.js.map +1 -1
- package/docs/DOGFOOD-ROUND2.md +5 -0
- package/docs/DOGFOOD-ROUND3.md +5 -0
- package/docs/DOGFOOD-V1.md +5 -0
- package/docs/DOGFOOD.md +5 -0
- package/docs/MARKETPLACE-ECOSYSTEM-PLAN.md +16 -0
- package/docs/MARKETPLACE.md +45 -0
- package/docs/POSITIONING.md +17 -1
- package/docs/RELEASE.md +19 -10
- package/docs/agent-corpus/INDEX.md +10 -0
- package/docs/agent-corpus/OVERVIEW.md +9 -0
- package/docs/agent-corpus/chat.md +10 -0
- package/docs/agent-corpus/cli.md +10 -0
- package/docs/agent-corpus/conformance.md +10 -0
- package/docs/agent-corpus/doc-bridge.md +10 -0
- package/docs/agent-corpus/doctor.md +10 -0
- package/docs/agent-corpus/gates.md +10 -0
- package/docs/agent-corpus/mcp.md +10 -0
- package/docs/agent-corpus/memory.md +10 -0
- package/docs/agent-corpus/query.md +10 -0
- package/docs/chat-and-rag.md +34 -0
- package/docs/examples.md +14 -1
- package/docs/for-agents.md +39 -0
- package/docs/getting-started.md +15 -0
- package/docs/guides/cli-map.md +153 -0
- package/docs/guides/gate-ci.md +64 -0
- package/docs/guides/index-and-query.md +75 -0
- package/docs/guides/install-and-run.md +84 -0
- package/docs/guides/mcp-agents.md +63 -0
- package/docs/guides/memory-pipeline.md +105 -0
- package/docs/guides/meta.json +11 -0
- package/docs/index.md +58 -0
- package/docs/landing/index.html +1 -1
- package/docs/mcp.md +14 -0
- package/docs/meta.json +26 -0
- package/docs/ollama-demo.md +6 -1
- package/docs/playbook/doc-bridge-pattern.md +4 -2
- package/docs/query.md +58 -0
- package/docs/recipes/index-pipeline.md +6 -1
- package/docs/schemas/agent-handoff-v1.md +5 -0
- package/docs/schemas/doc-bridge-index-v1.md +5 -0
- package/docs/schemas/memory-candidate-v1.md +5 -0
- package/docs/skills/doc-bridge.md +6 -1
- package/docs/spec/cli.md +5 -0
- package/docs/spec/config-v1.md +5 -0
- package/docs/spec/documentation-standard-v1.md +5 -0
- package/docs/spec/playbook-feedback.md +5 -0
- package/docs/spec/registry-agents.md +5 -0
- package/ecosystem-claims.json +2 -2
- package/ecosystem-upstream.json +2 -2
- package/ecosystem.json +122 -40
- package/examples/verify-handoff.mjs +5 -0
- package/package.json +40 -6
- package/src/conformance/ecosystem-contract.ts +22 -3
- package/src/federation/ecosystem-llms.ts +67 -0
- package/src/index.ts +6 -0
- package/src/playbook/doc-bridge-pattern.ts +1 -1
- package/src/version.ts +1 -1
package/docs/DOGFOOD-ROUND2.md
CHANGED
package/docs/DOGFOOD-ROUND3.md
CHANGED
package/docs/DOGFOOD-V1.md
CHANGED
package/docs/DOGFOOD.md
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Ecosystem and Marketplace acceptance plan
|
|
3
|
+
description: Internal acceptance criteria for the Doc Bridge ecosystem and Marketplace slice.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Doc Bridge ecosystem and Marketplace acceptance plan
|
|
7
|
+
|
|
8
|
+
This slice is complete only when all conditions below are evidenced locally. Publication remains an owner-only follow-up.
|
|
9
|
+
|
|
10
|
+
- Composite Action validates committed freshness, accepts shell inputs only through quoted environment variables, pins its runtime package, and pins third-party Actions by SHA.
|
|
11
|
+
- Marketplace metadata, consumer example, release-owner checklist, and automated contract checks agree on the same version.
|
|
12
|
+
- The public portal exposes seven ecosystem products, six Doc Bridge peers, and contextual routes for Chat, Code Review, and AKOS.
|
|
13
|
+
- `/for-agents`, `llms.txt`, `llms-full.txt`, raw Markdown, and deterministic knowledge are public and cross-linked.
|
|
14
|
+
- Human docs remain concise and navigable; source-heavy detail stays in raw/full machine surfaces.
|
|
15
|
+
- Landing and documentation pages have no horizontal overflow at 375, 768, 1280, or 1440 pixels.
|
|
16
|
+
- `ak-docs gate run`, documentation conformance, and `ak-docs doctor` finish at 100/A.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: GitHub Marketplace
|
|
3
|
+
description: Add the Doc Bridge freshness gate to pull requests with a reproducible composite Action.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# GitHub Marketplace
|
|
7
|
+
|
|
8
|
+
Doc Bridge ships one root composite Action: `doc-bridge-gate`. It verifies the committed index and configured documentation gates without rebuilding artifacts first.
|
|
9
|
+
|
|
10
|
+
## Use it in a repository
|
|
11
|
+
|
|
12
|
+
```yaml
|
|
13
|
+
name: Documentation gate
|
|
14
|
+
on: [pull_request]
|
|
15
|
+
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
docs:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
- uses: AgentsKit-io/doc-bridge@v1.2.1
|
|
25
|
+
with:
|
|
26
|
+
config-path: doc-bridge.config.json
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
If the index is stale, run `ak-docs index`, review the generated diff, and commit it. The Action's default package version matches its immutable release tag.
|
|
30
|
+
|
|
31
|
+
## Release-owner checklist
|
|
32
|
+
|
|
33
|
+
1. Run `pnpm check:marketplace`, `pnpm test:marketplace`, and the repository release matrix.
|
|
34
|
+
2. Confirm the public repository contains exactly one root `action.yml` and its name is available.
|
|
35
|
+
3. Push the immutable semver tag. The release workflow publishes npm, uploads the artifact, and leaves a GitHub Release draft ready for review.
|
|
36
|
+
4. Open that draft, select **Publish this Action to the GitHub Marketplace**, choose categories, and accept the GitHub Marketplace Developer Agreement if prompted.
|
|
37
|
+
5. Publish the release, then verify the listing and execute the exact consumer workflow above in a clean fixture repository.
|
|
38
|
+
|
|
39
|
+
Marketplace publication is a deliberate owner action; the workflow never moves tags and does not publish the GitHub Release before the Marketplace fields are complete.
|
|
40
|
+
|
|
41
|
+
## Related
|
|
42
|
+
|
|
43
|
+
- [Gate and CI guide](./guides/gate-ci.md)
|
|
44
|
+
- [Getting started](./getting-started.md)
|
|
45
|
+
- [CLI](./spec/cli.md)
|
package/docs/POSITIONING.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Doc Bridge positioning
|
|
3
|
+
description: Product purpose, boundaries, maturity, and role inside the AgentsKit ecosystem.
|
|
4
|
+
---
|
|
5
|
+
|
|
1
6
|
# doc-bridge positioning
|
|
2
7
|
|
|
3
8
|
Source of truth for README, issues, RFCs, and external posts.
|
|
@@ -49,7 +54,7 @@ Engineering teams with real ownership (monorepos first). Secondary: solo libs, i
|
|
|
49
54
|
- [AgentsKit for-agents](https://www.agentskit.io/docs/for-agents) — agent-first package corpus
|
|
50
55
|
- [Registry](https://registry.agentskit.io/) — agent discovery / onboarding companion
|
|
51
56
|
- [Playbook llms.txt](https://playbook.agentskit.io/llms.txt) — patterns + federation source
|
|
52
|
-
- [doc-bridge landing](https://
|
|
57
|
+
- [doc-bridge landing](https://doc-bridge.agentskit.io/) — conversion page + used-by
|
|
53
58
|
- [Doc Bridge Playbook pattern](../playbook/doc-bridge-pattern.md) — `ak-docs playbook pattern`
|
|
54
59
|
|
|
55
60
|
## Comparison
|
|
@@ -78,3 +83,14 @@ optional: Playbook / Registry federation
|
|
|
78
83
|
- Human guide links gate green on fixture adapters
|
|
79
84
|
- Chat/RAG path documented with optional peers
|
|
80
85
|
- Public consumers cited (for-agents, Registry, Playbook)
|
|
86
|
+
|
|
87
|
+
## Canonical ecosystem role
|
|
88
|
+
|
|
89
|
+
| Field | Value |
|
|
90
|
+
|-------|--------|
|
|
91
|
+
| **Product id** | `doc-bridge` |
|
|
92
|
+
| **Role** | `understanding` |
|
|
93
|
+
| **Kind** | developer-tool |
|
|
94
|
+
| **Promise** | Human↔agent documentation bridge — deterministic handoffs for any repo |
|
|
95
|
+
|
|
96
|
+
AgentsKit is the **foundation library** (not a “JavaScript framework” in marketing cards). Chat is the **experience** layer. Doc Bridge stays the **understanding** product.
|
package/docs/RELEASE.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Release checklist
|
|
3
|
+
description: Reproducible package, documentation, and registry checks for a Doc Bridge release.
|
|
4
|
+
---
|
|
5
|
+
|
|
1
6
|
# Release checklist — `@agentskit/doc-bridge`
|
|
2
7
|
|
|
3
8
|
## Pre-flight (local)
|
|
@@ -27,37 +32,41 @@ pnpm changeset # if new entry needed
|
|
|
27
32
|
pnpm version-packages # bumps package.json + CHANGELOG from .changeset/*
|
|
28
33
|
```
|
|
29
34
|
|
|
30
|
-
Current track: **`1.
|
|
35
|
+
Current track: **`1.2.1` stable** (alpha series ended at `0.1.0-alpha.5`).
|
|
31
36
|
|
|
32
37
|
## Publish (npm + GitHub)
|
|
33
38
|
|
|
34
|
-
Stable
|
|
39
|
+
Stable packages are published only by `.github/workflows/release.yml` from an immutable semver tag. The workflow re-runs the complete security, test, coverage, packaged-smoke, dogfood, Marketplace-contract, and conformance matrix, publishes npm with provenance, verifies the registry result, uploads the tarball to a GitHub Release draft, and leaves final publication to the owner so the Marketplace fields can be completed first.
|
|
35
40
|
|
|
36
41
|
```bash
|
|
37
|
-
git tag v1.
|
|
38
|
-
git push origin v1.
|
|
42
|
+
git tag v1.2.1
|
|
43
|
+
git push origin v1.2.1
|
|
39
44
|
```
|
|
40
45
|
|
|
41
46
|
For recovery of an existing immutable tag, use the guarded manual dispatch. Never move or recreate a release tag.
|
|
42
47
|
|
|
43
48
|
```bash
|
|
44
|
-
gh workflow run release.yml --ref master -f tag=v1.
|
|
49
|
+
gh workflow run release.yml --ref master -f tag=v1.2.1
|
|
45
50
|
```
|
|
46
51
|
|
|
47
52
|
Confirm:
|
|
48
53
|
|
|
49
54
|
```bash
|
|
50
|
-
npm view @agentskit/doc-bridge@1.
|
|
51
|
-
npx ak-docs@1.
|
|
52
|
-
gh release view v1.
|
|
55
|
+
npm view @agentskit/doc-bridge@1.2.1 version dist.integrity
|
|
56
|
+
npx ak-docs@1.2.1 --version
|
|
57
|
+
gh release view v1.2.1 --json isDraft
|
|
53
58
|
```
|
|
54
59
|
|
|
55
|
-
GitHub Pages must remain configured for GitHub Actions; `.github/workflows/pages.yml` deploys the
|
|
60
|
+
GitHub Pages must remain configured for GitHub Actions; `.github/workflows/pages.yml` builds and deploys the Fumadocs portal from `apps/docs`.
|
|
61
|
+
|
|
62
|
+
## Publish the GitHub Action to Marketplace
|
|
63
|
+
|
|
64
|
+
Run `pnpm check:marketplace && pnpm test:marketplace`, then follow [the Marketplace guide](./MARKETPLACE.md). In the generated release draft, select the Marketplace option and categories before publishing the GitHub Release. npm success alone does not publish the listing.
|
|
56
65
|
|
|
57
66
|
## Post-publish smoke (fresh machine)
|
|
58
67
|
|
|
59
68
|
```bash
|
|
60
|
-
npm i -D @agentskit/doc-bridge@1.
|
|
69
|
+
npm i -D @agentskit/doc-bridge@1.2.1
|
|
61
70
|
npx ak-docs init
|
|
62
71
|
npx ak-docs index
|
|
63
72
|
npx ak-docs query package example --agent
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: package
|
|
3
|
+
package: doc-bridge-index
|
|
4
|
+
editRoot: src/index-builder
|
|
5
|
+
humanDoc: /docs/recipes/index-pipeline
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Index builder
|
|
9
|
+
|
|
10
|
+
Owns corpus scanning, handoffs, hashes, `llms.txt`, and watch mode. Generated output must remain deterministic.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: index
|
|
3
|
+
purpose: Route coding agents to Doc Bridge ownership sidecars.
|
|
4
|
+
owner: maintainers
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Doc Bridge agent corpus
|
|
8
|
+
|
|
9
|
+
Resolve the requested ownership ID with `ak-docs query ownership <id> --agent`. Read the returned sidecar and its linked human guide before editing.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: package
|
|
3
|
+
package: doc-bridge-chat
|
|
4
|
+
editRoot: src/intelligence
|
|
5
|
+
humanDoc: /docs/chat-and-rag
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Chat and RAG
|
|
9
|
+
|
|
10
|
+
Owns optional AgentsKit retrieval and chat after deterministic lookup. Conversational UI belongs to AgentsKit Chat; enterprise orchestration belongs to AKOS.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: package
|
|
3
|
+
package: doc-bridge-conformance
|
|
4
|
+
editRoot: src/conformance
|
|
5
|
+
humanDoc: /docs/spec/documentation-standard-v1
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Conformance
|
|
9
|
+
|
|
10
|
+
Owns versioned documentation-standard rules and evidence. Do not turn missing evidence into a passing score.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: package
|
|
3
|
+
package: doc-bridge-memory
|
|
4
|
+
editRoot: src/memory
|
|
5
|
+
humanDoc: /docs/schemas/memory-candidate-v1
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Memory
|
|
9
|
+
|
|
10
|
+
Owns reviewable learning ingestion, classification, and promotion. Durable knowledge becomes a documented change, never silent state.
|
package/docs/chat-and-rag.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Chat and RAG
|
|
3
|
+
description: Add optional AgentsKit retrieval and chat after deterministic documentation resolution.
|
|
4
|
+
---
|
|
5
|
+
|
|
1
6
|
# Chat and RAG (Layer 1)
|
|
2
7
|
|
|
3
8
|
Layer 0 (index, handoff, MCP, gates, memory pipeline) never requires an LLM.
|
|
@@ -12,6 +17,35 @@ Layer 1 is **opt-in** and dogfoods public AgentsKit packages:
|
|
|
12
17
|
| `@agentskit/ink` | Terminal chat UI (`ak-docs chat`) |
|
|
13
18
|
| `react` | Required by Ink |
|
|
14
19
|
|
|
20
|
+
## Public docs chat: deterministic before backend
|
|
21
|
+
|
|
22
|
+
The documentation portal uses `@agentskit/chat` (root), `@agentskit/chat/react`,
|
|
23
|
+
and `@agentskit/chat/protocol` directly — the consolidated AgentsKit Chat 0.4.x
|
|
24
|
+
surface. It does not recreate chat lifecycle or session state.
|
|
25
|
+
|
|
26
|
+
At build time, `scripts/build-docs-artifacts.mjs` reads the fresh
|
|
27
|
+
`.doc-bridge/index.json` and canonical `docs/**` corpus, then writes:
|
|
28
|
+
|
|
29
|
+
- `deterministic/knowledge.json` — exact commands, documents, and real ownership handoffs;
|
|
30
|
+
- `deterministic/site-config.json` — trusted artifact hash plus fallback policy;
|
|
31
|
+
- `llms.txt`, `llms-full.txt`, and `raw/**` — model-friendly public sources.
|
|
32
|
+
|
|
33
|
+
The browser verifies the SHA-256 content hash before using the artifact. A
|
|
34
|
+
known exact question answers locally with provenance. Multiple exact matches
|
|
35
|
+
return local choices. Only a genuine miss reaches the configured backend, and
|
|
36
|
+
the UI reports a backend answer only after a successful completed stream.
|
|
37
|
+
|
|
38
|
+
```mermaid
|
|
39
|
+
flowchart LR
|
|
40
|
+
Q[Question] --> A{Verified exact match?}
|
|
41
|
+
A -->|one| L[Local answer + citation]
|
|
42
|
+
A -->|many| C[Local choices]
|
|
43
|
+
A -->|none| B[AgentsKit backend]
|
|
44
|
+
B --> S{Completed stream?}
|
|
45
|
+
S -->|yes| R[Backend answer + provenance]
|
|
46
|
+
S -->|no| E[Retryable error]
|
|
47
|
+
```
|
|
48
|
+
|
|
15
49
|
## Trust model
|
|
16
50
|
|
|
17
51
|
1. **`handoffFirst`** (default): if the question mentions a known package id, attach deterministic AgentHandoff context before the model answers.
|
package/docs/examples.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Examples
|
|
3
|
+
description: Ready-to-run Doc Bridge configurations and integration examples.
|
|
4
|
+
---
|
|
5
|
+
|
|
1
6
|
# Examples
|
|
2
7
|
|
|
3
8
|
Config sketches under [`examples/`](../examples/):
|
|
@@ -43,8 +48,16 @@ checks: [npm test -- auth]
|
|
|
43
48
|
|
|
44
49
|
## Public ecosystem surfaces
|
|
45
50
|
|
|
46
|
-
|
|
51
|
+
Doc Bridge is designed to be consumed by:
|
|
47
52
|
|
|
48
53
|
- https://www.agentskit.io/docs/for-agents
|
|
49
54
|
- https://registry.agentskit.io/
|
|
50
55
|
- https://playbook.agentskit.io/llms.txt
|
|
56
|
+
- https://chat.agentskit.io/docs
|
|
57
|
+
- https://doc-bridge.agentskit.io/
|
|
58
|
+
|
|
59
|
+
## Related
|
|
60
|
+
|
|
61
|
+
- [Install and run](./guides/install-and-run.md)
|
|
62
|
+
- [Config reference](./spec/config-v1.md)
|
|
63
|
+
- [Getting started](./getting-started.md)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: For agents
|
|
3
|
+
description: Resolve ownership, read compact context, and run the repository's own checks before editing.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# For agents
|
|
7
|
+
|
|
8
|
+
Use Doc Bridge before changing a module. It returns versioned, runtime-validated data instead of asking a model to infer ownership from the entire repository.
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
ak-docs query ownership <id> --agent
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The response supplies four things: `startHere`, `readBeforeEditing`, `editRoots`, and `checks`.
|
|
15
|
+
|
|
16
|
+
```mermaid
|
|
17
|
+
flowchart LR
|
|
18
|
+
Q["Resolve ownership"] --> R["Read startHere"]
|
|
19
|
+
R --> E["Edit only editRoots"]
|
|
20
|
+
E --> T["Run checks"]
|
|
21
|
+
T --> P["Promote durable learning"]
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Machine entry points
|
|
25
|
+
|
|
26
|
+
- [`llms.txt`](https://doc-bridge.agentskit.io/llms.txt) — concise discovery and canonical routes
|
|
27
|
+
- [`llms-full.txt`](https://doc-bridge.agentskit.io/llms-full.txt) — complete source corpus
|
|
28
|
+
- [`deterministic/knowledge.json`](https://doc-bridge.agentskit.io/deterministic/knowledge.json) — local chat/discovery artifact
|
|
29
|
+
- [`raw/for-agents.md`](https://doc-bridge.agentskit.io/raw/for-agents.md) — this guide as raw Markdown
|
|
30
|
+
- Site route: [`/for-agents`](https://doc-bridge.agentskit.io/for-agents/) — human-readable agent entry
|
|
31
|
+
|
|
32
|
+
## Related
|
|
33
|
+
|
|
34
|
+
- [MCP for agents](./guides/mcp-agents.md)
|
|
35
|
+
- [Index and query](./guides/index-and-query.md)
|
|
36
|
+
- [AgentHandoff schema](./schemas/agent-handoff-v1.md)
|
|
37
|
+
- [Skill text](./skills/doc-bridge.md)
|
|
38
|
+
|
|
39
|
+
If the task is conversational UI, continue with [AgentsKit Chat](https://chat.agentskit.io). For verification before merge, use [AgentsKit Code Review](https://github.com/AgentsKit-io/code-review-cli). For enterprise orchestration, governance, and audit, continue with [AKOS](https://akos.agentskit.io).
|
package/docs/getting-started.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Getting started
|
|
3
|
+
description: Install, index, query, and gate repository documentation in about 60 seconds.
|
|
4
|
+
---
|
|
5
|
+
|
|
1
6
|
# Getting started
|
|
2
7
|
|
|
3
8
|
doc-bridge turns your existing docs into an **AgentHandoff** index:
|
|
@@ -147,3 +152,13 @@ ak-docs ask "how does auth work?" --chat
|
|
|
147
152
|
```
|
|
148
153
|
|
|
149
154
|
Details: [chat-and-rag.md](./chat-and-rag.md).
|
|
155
|
+
|
|
156
|
+
## Related
|
|
157
|
+
|
|
158
|
+
- [Install and run](./guides/install-and-run.md) — guided path with tables
|
|
159
|
+
- [CLI map](./guides/cli-map.md) — every command with copy-paste examples
|
|
160
|
+
- [Memory pipeline](./guides/memory-pipeline.md) — digest · classify · promote
|
|
161
|
+
- [Index and query](./guides/index-and-query.md) · [MCP for agents](./guides/mcp-agents.md)
|
|
162
|
+
- [Gate and CI](./guides/gate-ci.md) · [Marketplace](./MARKETPLACE.md)
|
|
163
|
+
- [CLI reference](./spec/cli.md) · [Config](./spec/config-v1.md)
|
|
164
|
+
- [Positioning](./POSITIONING.md)
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CLI map
|
|
3
|
+
description: Every ak-docs command with copy-paste examples — Layer 0 core and optional Layer 1 intelligence.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# CLI map
|
|
7
|
+
|
|
8
|
+
Binary: **`ak-docs`** · Package: **`@agentskit/doc-bridge`**
|
|
9
|
+
|
|
10
|
+
Full flags: [CLI reference](../spec/cli.md)
|
|
11
|
+
|
|
12
|
+
## Global flags
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
ak-docs --help
|
|
16
|
+
ak-docs --version
|
|
17
|
+
ak-docs --config path/to/doc-bridge.config.json <command>
|
|
18
|
+
ak-docs <command> --agent # machine JSON (handoffs)
|
|
19
|
+
ak-docs <command> --text # human text
|
|
20
|
+
ak-docs <command> --json # JSON where supported
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Layer 0 — no API key
|
|
26
|
+
|
|
27
|
+
### Bootstrap
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
ak-docs init
|
|
31
|
+
ak-docs init --demo
|
|
32
|
+
ak-docs init --no-demo
|
|
33
|
+
ak-docs init --scaffold-workspaces
|
|
34
|
+
ak-docs bootstrap agent-docs
|
|
35
|
+
ak-docs validate-config
|
|
36
|
+
ak-docs validate-handoff path/to/handoff.json
|
|
37
|
+
ak-docs demo --text
|
|
38
|
+
ak-docs demo --fixture monorepo --text
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Index & doctor
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
ak-docs index
|
|
45
|
+
ak-docs index --watch
|
|
46
|
+
ak-docs doctor --text
|
|
47
|
+
ak-docs doctor --badge
|
|
48
|
+
ak-docs doctor --write-badge
|
|
49
|
+
ak-docs gate run
|
|
50
|
+
ak-docs gate run index-freshness
|
|
51
|
+
ak-docs conformance run documentation-standard-v1 --text
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Query & search
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
ak-docs query package auth --agent
|
|
58
|
+
ak-docs query ownership auth --text
|
|
59
|
+
ak-docs query intent onboard --agent
|
|
60
|
+
ak-docs search "abort signal" --agent
|
|
61
|
+
ak-docs list packages --text
|
|
62
|
+
ak-docs list intents --text
|
|
63
|
+
ak-docs ask "where do I change billing?"
|
|
64
|
+
ak-docs retrieve "authentication boundaries"
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### MCP
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
ak-docs mcp
|
|
71
|
+
ak-docs mcp install --cursor
|
|
72
|
+
ak-docs mcp install --claude
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Memory pipeline
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
ak-docs memory ingest
|
|
79
|
+
ak-docs memory classify
|
|
80
|
+
ak-docs memory promote
|
|
81
|
+
ak-docs memory promote --pr --dry-run
|
|
82
|
+
ak-docs memory promote --pr
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Deep dive: [Memory pipeline](./memory-pipeline.md)
|
|
86
|
+
|
|
87
|
+
### Ecosystem / playbook
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
ak-docs registry topology
|
|
91
|
+
ak-docs playbook draft
|
|
92
|
+
ak-docs playbook pattern --text
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Layer 1 — optional AgentsKit peers
|
|
98
|
+
|
|
99
|
+
Requires `intelligence.enabled` + peers (`@agentskit/rag`, `@agentskit/ink`, …).
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
ak-docs rag ingest
|
|
103
|
+
ak-docs rag search "how does auth work?"
|
|
104
|
+
ak-docs chat
|
|
105
|
+
ak-docs ask "how does auth work?" --chat
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Walkthrough: [Chat and RAG](../chat-and-rag.md) · [Ollama demo](../ollama-demo.md)
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Suggested sequences
|
|
113
|
+
|
|
114
|
+
### New repo in 2 minutes
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
pnpm add -D @agentskit/doc-bridge
|
|
118
|
+
ak-docs init
|
|
119
|
+
ak-docs index
|
|
120
|
+
ak-docs query package example --agent
|
|
121
|
+
ak-docs doctor --text
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Agent about to edit
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
ak-docs query ownership <id> --agent
|
|
128
|
+
# read startHere → edit editRoots → run checks
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Turn session notes into docs
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
ak-docs memory ingest
|
|
135
|
+
ak-docs memory classify
|
|
136
|
+
ak-docs memory promote --pr --dry-run
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### PR gate
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
ak-docs index
|
|
143
|
+
ak-docs gate run
|
|
144
|
+
# commit generated index if your repo treats it as source-of-truth
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## Related
|
|
148
|
+
|
|
149
|
+
- [Install and run](./install-and-run.md)
|
|
150
|
+
- [Index and query](./index-and-query.md)
|
|
151
|
+
- [MCP for agents](./mcp-agents.md)
|
|
152
|
+
- [Memory pipeline](./memory-pipeline.md)
|
|
153
|
+
- [CLI reference](../spec/cli.md)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Gate and CI
|
|
3
|
+
description: Fail stale documentation context in pull requests with Doc Bridge gates and the Marketplace Action.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Gate and CI
|
|
7
|
+
|
|
8
|
+
Gates keep incomplete or stale documentation context from reaching coding agents.
|
|
9
|
+
|
|
10
|
+
## Local gate
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
ak-docs index
|
|
14
|
+
ak-docs gate run
|
|
15
|
+
ak-docs doctor --text
|
|
16
|
+
ak-docs doctor --badge
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Typical failures:
|
|
20
|
+
|
|
21
|
+
| Symptom | Fix |
|
|
22
|
+
| --- | --- |
|
|
23
|
+
| Stale index | `ak-docs index`, review + commit generated files |
|
|
24
|
+
| Missing ownership | Add config ownership, frontmatter, or monorepo plugin |
|
|
25
|
+
| Documentation Standard gaps | Follow doctor remediations / evidence paths |
|
|
26
|
+
|
|
27
|
+
## Pull request workflow
|
|
28
|
+
|
|
29
|
+
```yaml
|
|
30
|
+
name: Documentation gate
|
|
31
|
+
on: [pull_request]
|
|
32
|
+
|
|
33
|
+
permissions:
|
|
34
|
+
contents: read
|
|
35
|
+
|
|
36
|
+
jobs:
|
|
37
|
+
docs:
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
- uses: AgentsKit-io/doc-bridge@v1.2.1
|
|
42
|
+
with:
|
|
43
|
+
config-path: doc-bridge.config.json
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
The composite Action verifies the **committed** index and configured gates — it does **not** silently rebuild and hide drift.
|
|
47
|
+
|
|
48
|
+
If the Action fails:
|
|
49
|
+
|
|
50
|
+
1. Run `ak-docs index` locally
|
|
51
|
+
2. Review the diff under `.doc-bridge/` / `llms.txt`
|
|
52
|
+
3. Commit intentional updates
|
|
53
|
+
4. Re-run the PR check
|
|
54
|
+
|
|
55
|
+
## What to commit
|
|
56
|
+
|
|
57
|
+
Commit generated index artifacts your repo treats as source-of-truth (common: `.doc-bridge/index.json`, root `llms.txt`). Keep CI fail-closed when those drift from the docs corpus.
|
|
58
|
+
|
|
59
|
+
## Related
|
|
60
|
+
|
|
61
|
+
- [Marketplace details](../MARKETPLACE.md)
|
|
62
|
+
- [Install and run](./install-and-run.md)
|
|
63
|
+
- [Documentation Standard](../spec/documentation-standard-v1.md)
|
|
64
|
+
- [Doctor / CLI](../spec/cli.md)
|