@laxture/vibe-pm 0.1.1 → 0.1.4
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/dist/index.js +36 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -600,10 +600,25 @@ Create project term dictionary docs/regulation/dictionary.md (if not exists).
|
|
|
600
600
|
title: "Integration: DCP",
|
|
601
601
|
type: "question",
|
|
602
602
|
instruction: `
|
|
603
|
-
Configure DCP plugin.
|
|
604
|
-
1.
|
|
605
|
-
|
|
606
|
-
|
|
603
|
+
Configure DCP (Dynamic Context Pruning) plugin.
|
|
604
|
+
1. Use bash to check global and project-level opencode configs for the plugin "@tarquinen/opencode-dcp":
|
|
605
|
+
- ~/.config/opencode/opencode.json (global config)
|
|
606
|
+
- ./.opencode/opencode.json (project config)
|
|
607
|
+
2. If not installed \u2192 suggest installation. Command: "opencode plugin @tarquinen/opencode-dcp@latest --global"
|
|
608
|
+
3. Configure DCP: merge the following config into "~/.config/opencode/dcp.jsonc" or "~/.config/opencode/dcp.json"
|
|
609
|
+
(if neither exists, create dcp.jsonc)
|
|
610
|
+
\`\`\`json
|
|
611
|
+
{
|
|
612
|
+
"compress": {
|
|
613
|
+
"protectTags": true
|
|
614
|
+
},
|
|
615
|
+
"protectedFilePatterns": [
|
|
616
|
+
"docs/flow/*",
|
|
617
|
+
"docs/regulation/*",
|
|
618
|
+
"docs/spec/*"
|
|
619
|
+
]
|
|
620
|
+
}
|
|
621
|
+
\`\`\``,
|
|
607
622
|
checkInstalled: "opencode-dynamic-context-pruning",
|
|
608
623
|
checkPaths: ["~/.config/opencode/opencode.json", ".opencode/opencode.json"],
|
|
609
624
|
params: {
|
|
@@ -1001,9 +1016,23 @@ ${tableRows}
|
|
|
1001
1016
|
type: "question",
|
|
1002
1017
|
instruction: `
|
|
1003
1018
|
\u914D\u7F6E DCP (Dynamic Context Pruning) \u63D2\u4EF6\u3002
|
|
1004
|
-
1. \u7528 bash \u68C0\u67E5\u5168\u5C40\u548C\u9879\u76EE\u7EA7 opencode \u914D\u7F6E\
|
|
1005
|
-
|
|
1006
|
-
|
|
1019
|
+
1. \u7528 bash \u68C0\u67E5\u5168\u5C40\u548C\u9879\u76EE\u7EA7 opencode \u914D\u7F6E, \u662F\u5426\u5305\u542B\u4E86\u63D2\u4EF6\u914D\u7F6E"@tarquinen/opencode-dcp"\uFF1A
|
|
1020
|
+
- ~/.config/opencode/opencode.json\uFF08\u9879\u76EE\u7EA7\u914D\u7F6E\uFF09
|
|
1021
|
+
- ./.opencode/opencode.json\uFF08\u9879\u76EE\u7EA7\u914D\u7F6E\uFF09
|
|
1022
|
+
2. \u82E5\u672A\u5B89\u88C5 \u2192 \u5EFA\u8BAE\u7528\u6237\u5B89\u88C5\u3002\u5B89\u88C5\u65B9\u5F0F\uFF1A"opencode plugin @tarquinen/opencode-dcp@latest --global"
|
|
1023
|
+
3. \u914D\u7F6Edcp, \u5C06\u4EE5\u4E0B\u914D\u7F6E\u5408\u5E76\u5230"~/.config/opencode/dcp.jsonc" \u6216 "~/.config/opencode/dcp.json" (\u5982\u90FD\u672A\u5B58\u5728, \u521B\u5EFAdcp.jsonc)
|
|
1024
|
+
\`\`\`json
|
|
1025
|
+
{
|
|
1026
|
+
"compress": {
|
|
1027
|
+
"protectTags": true
|
|
1028
|
+
},
|
|
1029
|
+
"protectedFilePatterns": [
|
|
1030
|
+
"docs/flow/*",
|
|
1031
|
+
"docs/regulation/*",
|
|
1032
|
+
"docs/spec/*"
|
|
1033
|
+
]
|
|
1034
|
+
}
|
|
1035
|
+
\`\`\``,
|
|
1007
1036
|
checkInstalled: "opencode-dynamic-context-pruning",
|
|
1008
1037
|
checkPaths: ["~/.config/opencode/opencode.json", ".opencode/opencode.json"],
|
|
1009
1038
|
params: {
|