@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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +28 -0
- package/README.md +2 -2
- package/cli/src/hosts/cursor.js +35 -5
- package/cli/src/installer.js +20 -0
- package/cli/src/lib/cursor-registry.js +122 -0
- package/cli/src/lib/marker.js +93 -0
- package/cli/src/lib/plugin-manifest.js +20 -0
- package/core/methodology.md +1 -1
- package/core/shared/condensation.md +3 -2
- package/core/shared/git-report-metadata.md +3 -2
- package/core/shared/graph-query.md +4 -3
- package/core/shared/tool-resolver.md +71 -4
- package/core/templates/okf/ai-context-index.md +48 -0
- package/core/templates/okf/concept.md +54 -0
- package/core/templates/okf/index.md +40 -0
- package/core/templates/okf/section-index.md +25 -0
- package/core/templates/plan.md +3 -2
- package/integrations/agents/AGENTS.md +792 -102
- package/integrations/copilot/.github/copilot-instructions.md +792 -102
- package/package.json +3 -2
- package/scripts/lib.sh +10 -0
- package/scripts/tools/graph-preflight.sh +259 -0
- package/scripts/tools/okf-render-views.sh +373 -0
- package/scripts/tools/okf-validate.sh +204 -0
- package/scripts/tools/resolve-tools.sh +78 -0
- package/skills/adr/SKILL.md +3 -2
- package/skills/bughunt/SKILL.md +10 -1
- package/skills/coverage/SKILL.md +8 -3
- package/skills/debug/SKILL.md +16 -5
- package/skills/decompose/SKILL.md +29 -12
- package/skills/deep-review/SKILL.md +19 -6
- package/skills/deploy-checklist/SKILL.md +6 -5
- package/skills/graph/SKILL.md +15 -6
- package/skills/impact/SKILL.md +12 -1
- package/skills/implement/SKILL.md +20 -4
- package/skills/init/SKILL.md +36 -10
- package/skills/init/references/architecture-spec.md +17 -6
- package/skills/init/references/okf-emitter.md +223 -0
- package/skills/learn/SKILL.md +15 -4
- package/skills/quick-review/SKILL.md +13 -3
- package/skills/review/SKILL.md +32 -8
- package/skills/standup/SKILL.md +3 -2
- package/skills/status/SKILL.md +3 -2
- package/skills/tech-debt/SKILL.md +20 -6
- package/skills/upload/SKILL.md +3 -2
- package/integrations/copilot/.github/copilot-instructions.md.7iDz8X +0 -91
- package/integrations/copilot/.github/copilot-instructions.md.DoBdtd +0 -91
- package/integrations/copilot/.github/copilot-instructions.md.McGoBW +0 -122
- package/integrations/copilot/.github/copilot-instructions.md.VsPyLB +0 -91
- package/integrations/copilot/.github/copilot-instructions.md.XAVr7D +0 -91
- package/integrations/copilot/.github/copilot-instructions.md.YoFVFa +0 -91
- package/integrations/copilot/.github/copilot-instructions.md.a9DeW0 +0 -91
- package/integrations/copilot/.github/copilot-instructions.md.oxQs3B +0 -91
- 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} |
|
package/core/templates/plan.md
CHANGED
|
@@ -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="$
|
|
115
|
-
[ -d "$DRAFT_TOOLS" ] || DRAFT_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" .
|