@drafthq/draft 3.2.0 → 3.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.
Files changed (56) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.cursor-plugin/plugin.json +28 -0
  4. package/README.md +2 -2
  5. package/cli/src/hosts/cursor.js +35 -5
  6. package/cli/src/installer.js +20 -0
  7. package/cli/src/lib/cursor-registry.js +122 -0
  8. package/cli/src/lib/marker.js +93 -0
  9. package/cli/src/lib/plugin-manifest.js +20 -0
  10. package/core/methodology.md +1 -1
  11. package/core/shared/condensation.md +3 -2
  12. package/core/shared/git-report-metadata.md +3 -2
  13. package/core/shared/graph-query.md +4 -3
  14. package/core/shared/tool-resolver.md +71 -4
  15. package/core/templates/okf/ai-context-index.md +48 -0
  16. package/core/templates/okf/concept.md +54 -0
  17. package/core/templates/okf/index.md +40 -0
  18. package/core/templates/okf/section-index.md +25 -0
  19. package/core/templates/plan.md +3 -2
  20. package/integrations/agents/AGENTS.md +792 -102
  21. package/integrations/copilot/.github/copilot-instructions.md +792 -102
  22. package/package.json +3 -2
  23. package/scripts/lib.sh +10 -0
  24. package/scripts/tools/graph-preflight.sh +259 -0
  25. package/scripts/tools/okf-render-views.sh +373 -0
  26. package/scripts/tools/okf-validate.sh +204 -0
  27. package/scripts/tools/resolve-tools.sh +78 -0
  28. package/skills/adr/SKILL.md +3 -2
  29. package/skills/bughunt/SKILL.md +10 -1
  30. package/skills/coverage/SKILL.md +8 -3
  31. package/skills/debug/SKILL.md +16 -5
  32. package/skills/decompose/SKILL.md +29 -12
  33. package/skills/deep-review/SKILL.md +19 -6
  34. package/skills/deploy-checklist/SKILL.md +6 -5
  35. package/skills/graph/SKILL.md +15 -6
  36. package/skills/impact/SKILL.md +12 -1
  37. package/skills/implement/SKILL.md +20 -4
  38. package/skills/init/SKILL.md +36 -10
  39. package/skills/init/references/architecture-spec.md +17 -6
  40. package/skills/init/references/okf-emitter.md +223 -0
  41. package/skills/learn/SKILL.md +15 -4
  42. package/skills/quick-review/SKILL.md +13 -3
  43. package/skills/review/SKILL.md +32 -8
  44. package/skills/standup/SKILL.md +3 -2
  45. package/skills/status/SKILL.md +3 -2
  46. package/skills/tech-debt/SKILL.md +20 -6
  47. package/skills/upload/SKILL.md +3 -2
  48. package/integrations/copilot/.github/copilot-instructions.md.7iDz8X +0 -91
  49. package/integrations/copilot/.github/copilot-instructions.md.DoBdtd +0 -91
  50. package/integrations/copilot/.github/copilot-instructions.md.McGoBW +0 -122
  51. package/integrations/copilot/.github/copilot-instructions.md.VsPyLB +0 -91
  52. package/integrations/copilot/.github/copilot-instructions.md.XAVr7D +0 -91
  53. package/integrations/copilot/.github/copilot-instructions.md.YoFVFa +0 -91
  54. package/integrations/copilot/.github/copilot-instructions.md.a9DeW0 +0 -91
  55. package/integrations/copilot/.github/copilot-instructions.md.oxQs3B +0 -91
  56. package/integrations/copilot/.github/copilot-instructions.md.ww33Ly +0 -91
@@ -0,0 +1,40 @@
1
+ ---
2
+ type: Subsystem
3
+ title: "{PROJECT_NAME} — Knowledge Bundle"
4
+ description: >
5
+ Root index of the OKF taxonomy bundle. Start here, then route into
6
+ overview/, systems/, features/, reference/, or entrypoints/ via the
7
+ Concept Map. Open a concept only when its description matches the task.
8
+ resource: .
9
+ tags: [index]
10
+ timestamp: "{ISO_TIMESTAMP}"
11
+ okf_version: "0.1"
12
+ okf_types_version: "0.1"
13
+ ---
14
+
15
+ # {PROJECT_NAME} — Knowledge Bundle
16
+
17
+ > OKF v0.1 bundle. One concept per file; cross-links form the graph. The
18
+ > live call graph (`codebase-memory-mcp`) is the grounding source; this bundle
19
+ > is the navigable serialization. `../ai-context.md` is the consumption entry point.
20
+
21
+ ## Sections
22
+
23
+ | Section | Holds | Index |
24
+ |---------|-------|-------|
25
+ | `overview/` | System map, getting-started, glossary | [overview/index.md](overview/index.md) |
26
+ | `systems/` | Subsystems & modules (graph clusters) | [systems/index.md](systems/index.md) |
27
+ | `features/` | User-facing capabilities spanning modules | [features/index.md](features/index.md) |
28
+ | `reference/` | APIs, data models, dependencies, ADRs, runbooks | [reference/index.md](reference/index.md) |
29
+ | `entrypoints/` | Binaries / mains / CLIs / handler roots | see pages below |
30
+
31
+ ## Concept Map
32
+
33
+ <!-- Built from each concept's frontmatter `description` (the routing key).
34
+ One line per concept. Regenerated on every init/refresh. -->
35
+ <!-- CONCEPT-MAP:START -->
36
+ <!-- CONCEPT-MAP:END -->
37
+
38
+ ## Change log
39
+
40
+ See [log.md](log.md) for chronological regeneration history.
@@ -0,0 +1,25 @@
1
+ ---
2
+ type: Subsystem
3
+ title: "{SECTION_TITLE}"
4
+ description: >
5
+ Section index. Lists every concept in this section with its one-line
6
+ routing description so an agent can pick the right page without opening
7
+ each one. {SECTION_PURPOSE}
8
+ resource: .
9
+ tags: [index]
10
+ timestamp: "{ISO_TIMESTAMP}"
11
+ ---
12
+
13
+ # {SECTION_TITLE}
14
+
15
+ > Section of the OKF bundle. Back to [bundle root](../index.md).
16
+
17
+ ## Concepts
18
+
19
+ <!-- One row per concept page in this section. `description` is the routing key
20
+ copied from each page's frontmatter. Regenerated on every init/refresh. -->
21
+
22
+ | Concept | Type | Routing description |
23
+ |---------|------|---------------------|
24
+ | [{concept-a}]({concept-a}.md) | Module | {one-line routing desc} |
25
+ | [{concept-b}]({concept-b}.md) | Feature | {one-line routing desc} |
@@ -111,8 +111,9 @@ validator chain via the canonical resolver pattern (see
111
111
  [core/shared/verification-gates.md](../../core/shared/verification-gates.md)):
112
112
 
113
113
  ```bash
114
- DRAFT_TOOLS="${DRAFT_PLUGIN_ROOT:-$HOME/.claude/plugins/draft}/scripts/tools"
115
- [ -d "$DRAFT_TOOLS" ] || DRAFT_TOOLS="$HOME/.cursor/plugins/local/draft/scripts/tools"
114
+ DRAFT_TOOLS="$(cat ~/.cache/draft/plugin-root 2>/dev/null)/scripts/tools"
115
+ [ -d "$DRAFT_TOOLS" ] || DRAFT_TOOLS="$(ls -d ~/.claude/plugins/cache/*/draft/*/scripts/tools 2>/dev/null | sort -V | tail -1)"
116
+ [ -d "$DRAFT_TOOLS" ] || DRAFT_TOOLS="$(ls -d ~/.claude/plugins/marketplaces/*draft*/scripts/tools 2>/dev/null | tail -1)"
116
117
  [ -d "$DRAFT_TOOLS" ] || DRAFT_TOOLS="$PWD/scripts/tools"
117
118
  "$DRAFT_TOOLS/check-track-hygiene.sh" .; "$DRAFT_TOOLS/verify-citations.sh" .
118
119
  "$DRAFT_TOOLS/verify-doc-anchors.sh" .; "$DRAFT_TOOLS/check-graph-usage-report.sh" .