@agentskit/doc-bridge 1.11.1 → 1.12.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/README.md +3 -2
  3. package/action.yml +1 -1
  4. package/dist/cli/program.js +582 -471
  5. package/dist/cli/program.js.map +1 -1
  6. package/dist/index.d.ts +7 -2
  7. package/dist/index.js +500 -389
  8. package/dist/index.js.map +1 -1
  9. package/docs/DESIGN.md +71 -0
  10. package/docs/MARKETPLACE-ECOSYSTEM-PLAN.md +1 -1
  11. package/docs/PRD-enterprise-hardening.md +5 -5
  12. package/docs/PRD-knowledge-retrieval-and-enrichment.md +1 -1
  13. package/docs/knowledge-engine-runbook.md +1 -1
  14. package/docs/loop-workflow.md +15 -15
  15. package/docs/spec/config-v1.md +29 -7
  16. package/docs/spec/documentation-standard-v1.md +5 -0
  17. package/docs/spec/mcp-knowledge-tools-v1.md +1 -1
  18. package/docs/validation-cycle-plan.md +13 -13
  19. package/ecosystem-claims.json +17 -17
  20. package/ecosystem-upstream.json +2 -2
  21. package/ecosystem.json +300 -147
  22. package/mcpb/manifest.json +1 -1
  23. package/package.json +2 -1
  24. package/skills/doc-bridge-handoff/SKILL.md +1 -1
  25. package/skills/doc-bridge-handoff/scripts/resolve-handoff.mjs +1 -1
  26. package/src/conformance/ecosystem-contract.ts +10 -26
  27. package/src/discovery/repository.ts +7 -1
  28. package/src/findings/report.ts +1 -1
  29. package/src/fixes/proposals.ts +4 -2
  30. package/src/gates/run-gates.ts +1 -1
  31. package/src/index-builder/human-adapters/core.ts +10 -4
  32. package/src/lib/ignore-filter.ts +151 -0
  33. package/src/lib/walk.ts +10 -2
  34. package/src/memory/ingest.ts +1 -1
  35. package/src/report/html.ts +1 -1
  36. package/src/safety/repository.ts +9 -0
  37. package/src/version.ts +1 -1
  38. package/docs/DOGFOOD-ROUND2.md +0 -147
  39. package/docs/DOGFOOD-ROUND3.md +0 -79
  40. package/docs/DOGFOOD-V1.md +0 -89
  41. package/docs/DOGFOOD.md +0 -97
@@ -1,89 +0,0 @@
1
- ---
2
- title: Dogfood validation v1
3
- description: Release validation evidence for the first stable Doc Bridge package.
4
- ---
5
-
6
- # Dogfood validation — `@agentskit/doc-bridge@1.0.0`
7
-
8
- **Date:** 2026-07-09
9
- **Install:** `1.0.0` from npm (`alpha` dist-tag; `latest` still points at older alpha.1)
10
-
11
- ## Scoreboard
12
-
13
- | Repo | Install | Ver | K/H | Gate | Doctor | Ranking | Ask handoff preview | MCP install |
14
- |------|---------|-----|-----|------|--------|---------|---------------------|-------------|
15
- | **agentskit** | pnpm -Dw ✅ | **1.0.0** | 25/24 | ✅ 24 human | **100/100 A** | core #1 | ✅ core + bridge | ✅ wrote `.cursor/mcp.json` |
16
- | **playbook** | pnpm -D ✅ | **1.0.0** | 127/81 | ✅ | **100/100 A** | OKF pattern #1 | ✅ | ✅ |
17
- | **registry** | npm --legacy-peer-deps ✅ | **1.0.0** | 36/36 | ✅ | **100/100 A** | docs-chat #1 | ✅ | ✅ |
18
- | **agentskit-os** | npx ✅ | **1.0.0** | 170/92 | ✅ | **81/100 B** | os-core #1 | ✅ + “human guide missing” | (not run write) |
19
-
20
- ## 1.0.0 features exercised
21
-
22
- | Feature | Result |
23
- |---------|--------|
24
- | `doctor --text` | Score A on 3 repos; B on AKOS with **actionable missing humanDoc list** |
25
- | `doctor --badge` | Shields markdown for handoff/bridge/score |
26
- | `demo --text` | Before/after handoff + gate red→green + MCP snippet |
27
- | `mcp install --cursor` | Creates `.cursor/mcp.json` with nextSteps |
28
- | `ask` handoff preview | start / edit / checks / Bridge lines |
29
- | Ranking exact-id | core, os-core, docs-chat, open-knowledge-format-pattern all #1 |
30
- | Soft federation retrieve | exit 0, local chunks |
31
-
32
- ## Highlights (impressive)
33
-
34
- ### agentskit — perfect monorepo story
35
-
36
- ```
37
- Score: 100/100 (A)
38
- Agent docs: 24/24 · Human guides: 24/24 · Badge: handoff 100% · bridge 100%
39
- ```
40
-
41
- ```
42
- ask "where do I change the core package?"
43
- Handoff preview
44
- start: .../for-agents/core.mdx
45
- edit: packages/core
46
- checks: pnpm --filter @agentskit/core test · lint
47
- Bridge: /docs/reference/packages/core
48
- ```
49
-
50
- ### playbook — OKF corpus
51
-
52
- ```
53
- Score: 100/100 (A) · 81/81 handoff · 81/81 bridge
54
- checks: pnpm run check:okf-type
55
- ```
56
-
57
- ### registry — agent-id ownership
58
-
59
- ```
60
- Score: 100/100 (A) · 36/36
61
- docs-chat → registry/docs-chat + npm run validate
62
- ```
63
-
64
- ### AKOS — honest B (bridge gap is the product)
65
-
66
- ```
67
- Score: 81/100 (B)
68
- Agent docs: 86/92 (93%) · Human guides: 15/92 (16%)
69
- Missing humanDoc: admin, os-*, desktop-*, …
70
- notes: "Human guide missing for os-core. Run: ak-docs bootstrap agent-docs"
71
- ask Bridge: human guide missing → ak-docs bootstrap agent-docs
72
- ```
73
-
74
- This is the right UX: **not fake 100%** when product docs are thin.
75
-
76
- ## Remaining friction (not blockers for 1.0)
77
-
78
- 1. **npm `latest` still 0.1.0-alpha.1** — users should install `@1.0.0` or `@alpha` until latest is retagged.
79
- 2. **registry** still prefers `--legacy-peer-deps` on some npm versions.
80
- 3. **AKOS** `pnpm add` store mismatch — `npx @agentskit/doc-bridge@1.0.0` works.
81
- 4. **AKOS bridge 16%** — content/map work; doctor already drives it.
82
- 5. **notes** may still show HTML entities (`<`) from source MDX.
83
- 6. **mcp install** writes into repo (`.cursor/mcp.json`) — commit or gitignore intentionally.
84
- 7. **CI** still not wired on all four consumers for `doctor`/`gate` on every PR.
85
-
86
- ## Verdict
87
-
88
- **1.0.0 is validated on the four ecosystem repos.**
89
- Doctor + ask handoff preview + mcp install + demo deliver the “wow” layer that alpha.3 still lacked in product surface. AKOS correctly surfaces bridge debt instead of hiding it.
package/docs/DOGFOOD.md DELETED
@@ -1,97 +0,0 @@
1
- ---
2
- title: Ecosystem dogfood
3
- description: How AgentsKit repositories validate Doc Bridge against real documentation surfaces.
4
- ---
5
-
6
- # Ecosystem dogfood — `@agentskit/doc-bridge`
7
-
8
- Validated **2026-07-09** against four consumers.
9
-
10
- - First pass: `0.1.0-alpha.1` (local `file:`)
11
- - Second pass after polish: **`0.1.0-alpha.2`** (`v0.1.0-alpha.2`)
12
-
13
- ## Standard integration (all repos)
14
-
15
- | Artifact | Purpose |
16
- |----------|---------|
17
- | `doc-bridge.config.json` | Layer 0 config (schemaVersion 1) |
18
- | `docs:bridge:index` | `ak-docs index` |
19
- | `docs:bridge:gate` | `ak-docs gate run` |
20
- | `docs:bridge:query` | `ak-docs query` |
21
- | `.doc-bridge/` | Generated index (gitignored) |
22
- | `devDependency` | `@agentskit/doc-bridge` (`file:` or `0.1.0-alpha.1` / `@alpha` when npm resolves) |
23
-
24
- ### MCP (optional, same in each repo)
25
-
26
- ```json
27
- {
28
- "mcpServers": {
29
- "ak-docs": {
30
- "command": "ak-docs",
31
- "args": ["mcp"]
32
- }
33
- }
34
- }
35
- ```
36
-
37
- ## Results
38
-
39
- | Repo | Knowledge | Handoffs | Gate | Sample handoff |
40
- |------|-----------|----------|------|----------------|
41
- | **agentskit** | 25 | 24 | ✅ freshness + 24 humanDoc | `core` → `packages/core` + for-agents MDX |
42
- | **agentskit-os** | 170 | 82 | ✅ freshness + 2 humanDoc | `os-core` → for-agents package doc |
43
- | **agents-playbook** | 127 | 81 patterns | ✅ freshness + okf-type | `open-knowledge-format-pattern` |
44
- | **agentskit-registry** | 36 | 36 | ✅ freshness | `docs-chat` → `registry/docs-chat` |
45
-
46
- ## Findings / improvements for doc-bridge
47
-
48
- ### P0 product feedback
49
- 1. **Default checks are npm-centric** (`npm test` / `npm run lint`) even in pnpm monorepos. Prefer detecting `packageManager` or `pnpm --filter <id> test`.
50
- 2. **Git install lacks `dist/`** — `github:…#tag` installs source only; need `prepare`/`prepack` that builds, or document npm-only install.
51
- 3. **`docs-style` gate is too strict** for playbook OKF (expects purpose/owner-source on every page). Make playbook profile softer or map to existing `check:okf-type`.
52
- 4. **HumanDoc join rate low on AKOS** (2/82) — product Fumadocs tree is thin vs package atlas; support multi-human corpora (product + `docs/adr`) and/or ownership `humanDoc` from for-agents frontmatter.
53
-
54
- ### P1 DX
55
- 5. **Nested agent corpus inside human tree** (agentskit for-agents under `content/docs`) double-counts unless human meta exclude — works but humanDoc points at `/docs/for-agents/core` which is correct for that site.
56
- 6. **Playbook is pattern-owned, not package-owned** — ownership generation from filenames works; first-class `routing.plugin: pattern-files` would help.
57
- 7. **Registry human plain-markdown** + URL prefix `/agents/:id` works; committed `public/llms.txt` must stay owner of site discovery (`llmsTxt.enabled: false`).
58
- 8. **AKOS pnpm store mismatch** can block `pnpm add` — dogfood via absolute `ak-docs` still validates; install needs store alignment.
59
-
60
- ### P2 ecosystem
61
- 9. Ship **npm package** publicly (`@agentskit/doc-bridge@alpha`) so consumers drop `file:`.
62
- 10. Wire `docs:bridge:gate` into each CI (`check:quality-gates` / registry verify / new playbook workflow).
63
- 11. Federation: registry `llms.txt` still 404 online — dogfood configs already list it; fix registry publish of Self-Describe artifact.
64
-
65
- ## Per-repo config notes
66
-
67
- ### agentskit
68
- - Agent: `apps/docs-next/content/docs/for-agents`
69
- - Human: Fumadocs same docs tree
70
- - Routing: `pnpm-monorepo` `packages/*`
71
- - Best fit: clean monorepo + for-agents coverage already exists
72
-
73
- ### agentskit-os
74
- - Agent: `docs/for-agents` (canonical)
75
- - Human: product Fumadocs only (`apps/web/content/docs`) — dual human later
76
- - `llmsTxt.enabled: false` (keep `gen-self-describe`)
77
- - Dual-run with `docs:internal` — do not delete internal generators yet
78
-
79
- ### agents-playbook
80
- - Agent = human = `content/docs` (OKF)
81
- - Ownership: generated per pattern file under pillars
82
- - Gates: `index-freshness` + `okf-type` only (not docs-style)
83
-
84
- ### agentskit-registry
85
- - Agent root: `registry/**/README.md`
86
- - Ownership: one entry per agent id
87
- - npm package (not pnpm workspace)
88
- - `llmsTxt.enabled: false`
89
-
90
- ## Commands used to validate
91
-
92
- ```bash
93
- ak-docs index
94
- ak-docs gate run
95
- ak-docs query package <id> --agent
96
- ak-docs list packages --text
97
- ```