@kentwynn/kgraph 0.1.8 → 0.1.9
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.
|
@@ -4,9 +4,30 @@ export const copilotAdapter = {
|
|
|
4
4
|
targetPath: '.github/copilot-instructions.md',
|
|
5
5
|
instructions: `## KGraph Workflow
|
|
6
6
|
|
|
7
|
-
Before exploring the repository, run \`kgraph context "<topic>"\` to load existing repo intelligence.
|
|
7
|
+
Before exploring the repository, run \`kgraph context "<topic>"\` to load existing repo intelligence.
|
|
8
|
+
After durable discoveries (architecture decisions, debugging insights, structural findings), write a concise Markdown note to \`.kgraph/inbox/\` and immediately run \`kgraph update\`.
|
|
9
|
+
If you created, moved, deleted, or renamed files or symbols, run \`kgraph scan\`.
|
|
10
|
+
Use /kgraph for the full automated workflow. Use /kgraph-scan, /kgraph-update, /kgraph-visualize, and /kgraph-history for manual steps.
|
|
8
11
|
`,
|
|
9
12
|
commandFiles: [
|
|
13
|
+
{
|
|
14
|
+
path: '.github/prompts/kgraph.prompt.md',
|
|
15
|
+
content: `---
|
|
16
|
+
description: Use KGraph persistent repo intelligence for the current coding task
|
|
17
|
+
agent: agent
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
Use KGraph persistent repo intelligence for the current request.
|
|
21
|
+
|
|
22
|
+
1. Infer the topic from the user's request.
|
|
23
|
+
2. Run \`kgraph context "<topic>"\`.
|
|
24
|
+
3. Use the returned files, symbols, relationships, and cognition before broad exploration.
|
|
25
|
+
4. After durable discoveries, write a concise Markdown note to \`.kgraph/inbox/\` and immediately run \`kgraph update\`.
|
|
26
|
+
5. If you created, moved, deleted, or renamed files or symbols during this session, run \`kgraph scan\`. Skip it otherwise.
|
|
27
|
+
6. Run \`kgraph visualize\` when the user wants to inspect the dependency graph — opens an interactive graph at http://localhost:4242 with PNG export.
|
|
28
|
+
7. Run \`kgraph history\` to review the timeline of past cognition sessions with git author attribution.
|
|
29
|
+
`,
|
|
30
|
+
},
|
|
10
31
|
{
|
|
11
32
|
path: '.github/prompts/kgraph-scan.prompt.md',
|
|
12
33
|
content: `---
|
|
@@ -48,5 +69,5 @@ Run \`kgraph history\` to display the timeline of all processed cognition sessio
|
|
|
48
69
|
`,
|
|
49
70
|
},
|
|
50
71
|
],
|
|
51
|
-
obsoleteCommandFiles: [
|
|
72
|
+
obsoleteCommandFiles: [],
|
|
52
73
|
};
|
|
@@ -9,7 +9,11 @@ alwaysApply: true
|
|
|
9
9
|
|
|
10
10
|
## KGraph Workflow
|
|
11
11
|
|
|
12
|
-
Before exploring the repository, run \`kgraph context "<topic>"\` to load existing repo intelligence.
|
|
12
|
+
- Before exploring the repository, run \`kgraph context "<topic>"\` to load existing repo intelligence.
|
|
13
|
+
- After durable discoveries (architecture decisions, debugging insights, structural findings), write a concise Markdown note to \`.kgraph/inbox/\` and immediately run \`kgraph update\`.
|
|
14
|
+
- If you created, moved, deleted, or renamed files or symbols, run \`kgraph scan\`.
|
|
15
|
+
- Run \`kgraph visualize\` to open the interactive dependency graph at http://localhost:4242 with PNG export.
|
|
16
|
+
- Run \`kgraph history\` to review the timeline of past cognition sessions with git author attribution.
|
|
13
17
|
`,
|
|
14
18
|
obsoleteCommandFiles: ['.cursor/rules/kgraph-commands.mdc'],
|
|
15
19
|
};
|