@dotdotgod/opencode 0.0.0-stage → 0.6.7

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 (52) hide show
  1. package/LICENSE +94 -0
  2. package/README.md +84 -2
  3. package/commands/impact.md +26 -0
  4. package/commands/init.md +38 -0
  5. package/commands/load.md +28 -0
  6. package/index.js +1 -0
  7. package/mcp/cli.mjs +7161 -0
  8. package/mcp/impact-state.mjs +133 -0
  9. package/mcp/parsers/IGNORE_LICENSE +21 -0
  10. package/mcp/parsers/LICENSE +21 -0
  11. package/mcp/parsers/TYPESCRIPT_LICENSE +21 -0
  12. package/mcp/parsers/tree-sitter-bash.wasm +0 -0
  13. package/mcp/parsers/tree-sitter-c-sharp.wasm +0 -0
  14. package/mcp/parsers/tree-sitter-cpp.wasm +0 -0
  15. package/mcp/parsers/tree-sitter-css.wasm +0 -0
  16. package/mcp/parsers/tree-sitter-go.wasm +0 -0
  17. package/mcp/parsers/tree-sitter-ini.wasm +0 -0
  18. package/mcp/parsers/tree-sitter-java.wasm +0 -0
  19. package/mcp/parsers/tree-sitter-javascript.wasm +0 -0
  20. package/mcp/parsers/tree-sitter-php.wasm +0 -0
  21. package/mcp/parsers/tree-sitter-powershell.wasm +0 -0
  22. package/mcp/parsers/tree-sitter-python.wasm +0 -0
  23. package/mcp/parsers/tree-sitter-regex.wasm +0 -0
  24. package/mcp/parsers/tree-sitter-ruby.wasm +0 -0
  25. package/mcp/parsers/tree-sitter-rust.wasm +0 -0
  26. package/mcp/parsers/tree-sitter-tsx.wasm +0 -0
  27. package/mcp/parsers/tree-sitter-typescript.wasm +0 -0
  28. package/mcp/parsers/tree-sitter.cjs +4075 -0
  29. package/mcp/parsers/tree-sitter.wasm +0 -0
  30. package/mcp/server.mjs +23716 -0
  31. package/package.json +41 -3
  32. package/server.js +1 -0
  33. package/skills/doc-first-planning/SKILL.md +30 -0
  34. package/skills/document-clarify/SKILL.md +41 -0
  35. package/skills/impact-review/SKILL.md +25 -0
  36. package/skills/project-initializer/SKILL.md +37 -0
  37. package/skills/project-initializer/references/agent-docs.md +42 -0
  38. package/skills/project-initializer/scripts/init_project.sh +525 -0
  39. package/skills/project-initializer/templates/case-and-evidence.json +219 -0
  40. package/skills/project-initializer/templates/dotdotgod.config.json +234 -0
  41. package/skills/project-initializer/templates/policy.json +241 -0
  42. package/skills/project-initializer/templates/portfolio.json +255 -0
  43. package/skills/project-initializer/templates/publication.json +265 -0
  44. package/skills/project-initializer/templates/research.json +287 -0
  45. package/skills/project-initializer/templates/software.json +234 -0
  46. package/skills/project-load/SKILL.md +27 -0
  47. package/src/impact.mjs +25 -0
  48. package/src/index.mjs +17 -0
  49. package/src/location.mjs +7 -0
  50. package/src/mcp.mjs +37 -0
  51. package/src/plan.mjs +65 -0
  52. package/src/resources.mjs +28 -0
@@ -0,0 +1,255 @@
1
+ {
2
+ "documentation": {
3
+ "root": "docs"
4
+ },
5
+ "memory": {
6
+ "areas": [
7
+ {
8
+ "id": "rules",
9
+ "label": "Agent Rules",
10
+ "paths": [
11
+ "AGENTS.md"
12
+ ],
13
+ "excludePaths": [],
14
+ "scope": "shared",
15
+ "freshness": "fresh",
16
+ "role": "agent-working-rules",
17
+ "priority": 100,
18
+ "includeBodiesByDefault": true
19
+ },
20
+ {
21
+ "id": "agent-entrypoint",
22
+ "label": "Agent Entrypoints",
23
+ "paths": [
24
+ "CLAUDE.md",
25
+ "CODEX.md"
26
+ ],
27
+ "excludePaths": [],
28
+ "scope": "shared",
29
+ "freshness": "fresh",
30
+ "role": "agent-specific-entrypoint",
31
+ "priority": 85,
32
+ "includeBodiesByDefault": true
33
+ },
34
+ {
35
+ "id": "project-overview",
36
+ "label": "Project Overview",
37
+ "paths": [
38
+ "README.md"
39
+ ],
40
+ "excludePaths": [],
41
+ "scope": "shared",
42
+ "freshness": "fresh",
43
+ "role": "project-map",
44
+ "priority": 85,
45
+ "includeBodiesByDefault": true
46
+ },
47
+ {
48
+ "id": "docs-index",
49
+ "label": "Docs Index",
50
+ "paths": [
51
+ "docs/README.md"
52
+ ],
53
+ "excludePaths": [],
54
+ "scope": "shared",
55
+ "freshness": "fresh",
56
+ "role": "documentation-routing-map",
57
+ "priority": 90,
58
+ "includeBodiesByDefault": true
59
+ },
60
+ {
61
+ "id": "strategy",
62
+ "label": "Portfolio Strategy",
63
+ "paths": [
64
+ "docs/strategy/**"
65
+ ],
66
+ "excludePaths": [],
67
+ "scope": "shared",
68
+ "freshness": "fresh",
69
+ "role": "portfolio-strategy",
70
+ "priority": 95,
71
+ "includeBodiesByDefault": true
72
+ },
73
+ {
74
+ "id": "positions",
75
+ "label": "Position Theses",
76
+ "paths": [
77
+ "docs/positions/**"
78
+ ],
79
+ "excludePaths": [],
80
+ "scope": "shared",
81
+ "freshness": "fresh",
82
+ "role": "position-thesis",
83
+ "priority": 95,
84
+ "includeBodiesByDefault": true
85
+ },
86
+ {
87
+ "id": "ledger",
88
+ "label": "Trading Ledger",
89
+ "paths": [
90
+ "data/**"
91
+ ],
92
+ "excludePaths": [
93
+ "data/raw/**"
94
+ ],
95
+ "scope": "shared",
96
+ "freshness": "fresh",
97
+ "role": "trading-facts",
98
+ "priority": 90,
99
+ "includeBodiesByDefault": false
100
+ },
101
+ {
102
+ "id": "journal",
103
+ "label": "Decision Journal",
104
+ "paths": [
105
+ "docs/journal/**"
106
+ ],
107
+ "excludePaths": [],
108
+ "scope": "shared",
109
+ "freshness": "fresh",
110
+ "role": "decision-journal",
111
+ "priority": 80,
112
+ "includeBodiesByDefault": true
113
+ },
114
+ {
115
+ "id": "research",
116
+ "label": "Research",
117
+ "paths": [
118
+ "docs/report/**"
119
+ ],
120
+ "excludePaths": [],
121
+ "scope": "shared",
122
+ "freshness": "stale",
123
+ "role": "market-research",
124
+ "priority": 50,
125
+ "includeBodiesByDefault": true
126
+ },
127
+ {
128
+ "id": "active-plan",
129
+ "label": "Active Plans",
130
+ "paths": [
131
+ "docs/plan/**"
132
+ ],
133
+ "excludePaths": [],
134
+ "scope": "local",
135
+ "freshness": "fresh",
136
+ "role": "active-task-intent",
137
+ "priority": 95,
138
+ "includeBodiesByDefault": true
139
+ },
140
+ {
141
+ "id": "archive-map",
142
+ "label": "Archive Map",
143
+ "paths": [
144
+ "docs/archive/README.md"
145
+ ],
146
+ "excludePaths": [],
147
+ "scope": "local",
148
+ "freshness": "stale",
149
+ "role": "historical-memory-map",
150
+ "priority": 65,
151
+ "includeBodiesByDefault": true
152
+ },
153
+ {
154
+ "id": "archive-body",
155
+ "label": "Archive Body",
156
+ "paths": [
157
+ "docs/archive/**"
158
+ ],
159
+ "excludePaths": [
160
+ "docs/archive/README.md"
161
+ ],
162
+ "scope": "local",
163
+ "freshness": "stale",
164
+ "role": "historical-memory-body",
165
+ "priority": 20,
166
+ "includeBodiesByDefault": false
167
+ },
168
+ {
169
+ "id": "docs",
170
+ "label": "Project Documentation",
171
+ "paths": [
172
+ "docs/**"
173
+ ],
174
+ "excludePaths": [],
175
+ "scope": "shared",
176
+ "freshness": "fresh",
177
+ "role": "project-documentation",
178
+ "priority": 60,
179
+ "includeBodiesByDefault": true
180
+ }
181
+ ]
182
+ },
183
+ "traceability": {
184
+ "required": [
185
+ "docs/strategy/**",
186
+ "docs/positions/**"
187
+ ],
188
+ "exclude": [
189
+ "**/README.md"
190
+ ],
191
+ "keys": [
192
+ {
193
+ "key": "supportedBy",
194
+ "label": "Supported by",
195
+ "description": "Data or research supporting the investment conclusion.",
196
+ "target": "path",
197
+ "relation": "supported_by",
198
+ "weight": 4
199
+ },
200
+ {
201
+ "key": "recordedIn",
202
+ "label": "Recorded in",
203
+ "description": "Ledgers, snapshots, or journals recording the decision.",
204
+ "target": "path",
205
+ "relation": "recorded_in",
206
+ "weight": 4
207
+ },
208
+ {
209
+ "key": "informs",
210
+ "label": "Informs",
211
+ "description": "Strategies, theses, or risk rules using this conclusion.",
212
+ "target": "path",
213
+ "relation": "informs_decision",
214
+ "weight": 3
215
+ }
216
+ ]
217
+ },
218
+ "validation": {
219
+ "markdown": {
220
+ "maxLines": 200,
221
+ "maxChars": 10000,
222
+ "exclude": [],
223
+ "filename": {
224
+ "warnNumberedSeries": true,
225
+ "allow": []
226
+ }
227
+ }
228
+ },
229
+ "impactRanking": {
230
+ "semantic": {
231
+ "enabled": true,
232
+ "threshold": 0.5,
233
+ "topKPerFile": 5
234
+ }
235
+ },
236
+ "referenceExpansion": {
237
+ "fuzzy": {
238
+ "lowSignal": {
239
+ "add": [],
240
+ "remove": []
241
+ }
242
+ }
243
+ },
244
+ "load": {
245
+ "pinnedPaths": [],
246
+ "pinnedBodies": [],
247
+ "documentationSummary": {
248
+ "exclude": [
249
+ "docs/plan",
250
+ "docs/archive"
251
+ ]
252
+ }
253
+ },
254
+ "planMode": {}
255
+ }
@@ -0,0 +1,265 @@
1
+ {
2
+ "documentation": {
3
+ "root": "docs"
4
+ },
5
+ "memory": {
6
+ "areas": [
7
+ {
8
+ "id": "rules",
9
+ "label": "Agent Rules",
10
+ "paths": [
11
+ "AGENTS.md"
12
+ ],
13
+ "excludePaths": [],
14
+ "scope": "shared",
15
+ "freshness": "fresh",
16
+ "role": "agent-working-rules",
17
+ "priority": 100,
18
+ "includeBodiesByDefault": true
19
+ },
20
+ {
21
+ "id": "agent-entrypoint",
22
+ "label": "Agent Entrypoints",
23
+ "paths": [
24
+ "CLAUDE.md",
25
+ "CODEX.md"
26
+ ],
27
+ "excludePaths": [],
28
+ "scope": "shared",
29
+ "freshness": "fresh",
30
+ "role": "agent-specific-entrypoint",
31
+ "priority": 85,
32
+ "includeBodiesByDefault": true
33
+ },
34
+ {
35
+ "id": "project-overview",
36
+ "label": "Project Overview",
37
+ "paths": [
38
+ "README.md"
39
+ ],
40
+ "excludePaths": [],
41
+ "scope": "shared",
42
+ "freshness": "fresh",
43
+ "role": "project-map",
44
+ "priority": 85,
45
+ "includeBodiesByDefault": true
46
+ },
47
+ {
48
+ "id": "docs-index",
49
+ "label": "Docs Index",
50
+ "paths": [
51
+ "docs/README.md"
52
+ ],
53
+ "excludePaths": [],
54
+ "scope": "shared",
55
+ "freshness": "fresh",
56
+ "role": "documentation-routing-map",
57
+ "priority": 90,
58
+ "includeBodiesByDefault": true
59
+ },
60
+ {
61
+ "id": "brief",
62
+ "label": "Publication Brief",
63
+ "paths": [
64
+ "docs/BOOK_BRIEF.md"
65
+ ],
66
+ "excludePaths": [],
67
+ "scope": "shared",
68
+ "freshness": "fresh",
69
+ "role": "publication-direction",
70
+ "priority": 100,
71
+ "includeBodiesByDefault": true
72
+ },
73
+ {
74
+ "id": "outline",
75
+ "label": "Publication Outline",
76
+ "paths": [
77
+ "docs/outline/**"
78
+ ],
79
+ "excludePaths": [],
80
+ "scope": "shared",
81
+ "freshness": "fresh",
82
+ "role": "narrative-structure",
83
+ "priority": 95,
84
+ "includeBodiesByDefault": true
85
+ },
86
+ {
87
+ "id": "chapters",
88
+ "label": "Chapter Plans",
89
+ "paths": [
90
+ "docs/chapters/**"
91
+ ],
92
+ "excludePaths": [],
93
+ "scope": "shared",
94
+ "freshness": "fresh",
95
+ "role": "chapter-direction",
96
+ "priority": 90,
97
+ "includeBodiesByDefault": true
98
+ },
99
+ {
100
+ "id": "claims",
101
+ "label": "Claims",
102
+ "paths": [
103
+ "docs/claims/**"
104
+ ],
105
+ "excludePaths": [],
106
+ "scope": "shared",
107
+ "freshness": "fresh",
108
+ "role": "claim-registry",
109
+ "priority": 90,
110
+ "includeBodiesByDefault": true
111
+ },
112
+ {
113
+ "id": "manuscript",
114
+ "label": "Manuscript",
115
+ "paths": [
116
+ "book/**"
117
+ ],
118
+ "excludePaths": [],
119
+ "scope": "shared",
120
+ "freshness": "fresh",
121
+ "role": "manuscript",
122
+ "priority": 95,
123
+ "includeBodiesByDefault": true
124
+ },
125
+ {
126
+ "id": "research",
127
+ "label": "Research Sources",
128
+ "paths": [
129
+ "docs/research/**"
130
+ ],
131
+ "excludePaths": [],
132
+ "scope": "shared",
133
+ "freshness": "fresh",
134
+ "role": "evidence-library",
135
+ "priority": 80,
136
+ "includeBodiesByDefault": true
137
+ },
138
+ {
139
+ "id": "active-plan",
140
+ "label": "Active Plans",
141
+ "paths": [
142
+ "docs/plan/**"
143
+ ],
144
+ "excludePaths": [],
145
+ "scope": "local",
146
+ "freshness": "fresh",
147
+ "role": "active-task-intent",
148
+ "priority": 95,
149
+ "includeBodiesByDefault": true
150
+ },
151
+ {
152
+ "id": "archive-map",
153
+ "label": "Archive Map",
154
+ "paths": [
155
+ "docs/archive/README.md"
156
+ ],
157
+ "excludePaths": [],
158
+ "scope": "local",
159
+ "freshness": "stale",
160
+ "role": "historical-memory-map",
161
+ "priority": 65,
162
+ "includeBodiesByDefault": true
163
+ },
164
+ {
165
+ "id": "archive-body",
166
+ "label": "Archive Body",
167
+ "paths": [
168
+ "docs/archive/**"
169
+ ],
170
+ "excludePaths": [
171
+ "docs/archive/README.md"
172
+ ],
173
+ "scope": "local",
174
+ "freshness": "stale",
175
+ "role": "historical-memory-body",
176
+ "priority": 20,
177
+ "includeBodiesByDefault": false
178
+ },
179
+ {
180
+ "id": "docs",
181
+ "label": "Project Documentation",
182
+ "paths": [
183
+ "docs/**"
184
+ ],
185
+ "excludePaths": [],
186
+ "scope": "shared",
187
+ "freshness": "fresh",
188
+ "role": "project-documentation",
189
+ "priority": 60,
190
+ "includeBodiesByDefault": true
191
+ }
192
+ ]
193
+ },
194
+ "traceability": {
195
+ "required": [
196
+ "docs/chapters/**"
197
+ ],
198
+ "exclude": [
199
+ "**/README.md"
200
+ ],
201
+ "keys": [
202
+ {
203
+ "key": "developedIn",
204
+ "label": "Developed in",
205
+ "description": "Outlines or manuscript drafts that develop this design.",
206
+ "target": "path",
207
+ "relation": "developed_in",
208
+ "weight": 4
209
+ },
210
+ {
211
+ "key": "supportedBy",
212
+ "label": "Supported by",
213
+ "description": "Research notes and sources supporting the claims.",
214
+ "target": "path",
215
+ "relation": "supported_by",
216
+ "weight": 4
217
+ },
218
+ {
219
+ "key": "framedBy",
220
+ "label": "Framed by",
221
+ "description": "Documents defining purpose, scope, or conceptual boundaries.",
222
+ "target": "path",
223
+ "relation": "framed_by",
224
+ "weight": 3
225
+ }
226
+ ]
227
+ },
228
+ "validation": {
229
+ "markdown": {
230
+ "maxLines": 200,
231
+ "maxChars": 10000,
232
+ "exclude": [],
233
+ "filename": {
234
+ "warnNumberedSeries": true,
235
+ "allow": []
236
+ }
237
+ }
238
+ },
239
+ "impactRanking": {
240
+ "semantic": {
241
+ "enabled": true,
242
+ "threshold": 0.5,
243
+ "topKPerFile": 5
244
+ }
245
+ },
246
+ "referenceExpansion": {
247
+ "fuzzy": {
248
+ "lowSignal": {
249
+ "add": [],
250
+ "remove": []
251
+ }
252
+ }
253
+ },
254
+ "load": {
255
+ "pinnedPaths": [],
256
+ "pinnedBodies": [],
257
+ "documentationSummary": {
258
+ "exclude": [
259
+ "docs/plan",
260
+ "docs/archive"
261
+ ]
262
+ }
263
+ },
264
+ "planMode": {}
265
+ }