@dotdotgod/claude-code 0.3.0 → 0.3.2
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/commands/dd/load.md +5 -4
- package/hooks/runtime.mjs +119 -2
- package/mcp/cli.mjs +5265 -0
- package/mcp/server.mjs +23466 -3
- package/package.json +11 -3
- package/skills/project-load/SKILL.md +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotdotgod/claude-code",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Claude Code adapter for dotdotgod project memory workflows.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Elastic-2.0",
|
|
@@ -20,8 +20,15 @@
|
|
|
20
20
|
"project-memory",
|
|
21
21
|
"traceability"
|
|
22
22
|
],
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=22.5.0"
|
|
25
|
+
},
|
|
23
26
|
"dependencies": {
|
|
24
|
-
"@
|
|
27
|
+
"@huggingface/transformers": "^4.2.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"esbuild": "0.27.3",
|
|
31
|
+
"@dotdotgod/context": "0.3.2"
|
|
25
32
|
},
|
|
26
33
|
"files": [
|
|
27
34
|
".claude-plugin",
|
|
@@ -42,7 +49,8 @@
|
|
|
42
49
|
"url": "https://github.com/dotdotgod/dotdotgod-kit/issues"
|
|
43
50
|
},
|
|
44
51
|
"scripts": {
|
|
45
|
-
"
|
|
52
|
+
"build:runtime": "node ../../scripts/build-adapter-runtime.mjs claude-code",
|
|
53
|
+
"verify": "node ../../scripts/build-adapter-runtime.mjs claude-code --check && node -e \"const fs=require('fs'); const req=['.claude-plugin/plugin.json','commands/dd/load.md','commands/dd/plan.md','commands/dd/init.md','commands/dd/impact.md','skills/project-load/SKILL.md','skills/doc-first-planning/SKILL.md','skills/project-initializer/SKILL.md','skills/impact-review/SKILL.md','skills/document-clarify/SKILL.md','skills/document-clarify/agents/openai.yaml','skills/project-initializer/scripts/init_project.sh','skills/project-initializer/templates/dotdotgod.config.json','hooks/README.md','hooks/hooks.json','hooks/runtime.mjs','mcp/server.mjs','mcp/cli.mjs']; JSON.parse(fs.readFileSync('.claude-plugin/plugin.json','utf8')); for (const f of req) { if (!fs.existsSync(f)) throw new Error('missing '+f); } console.log('claude-code adapter ok')\"",
|
|
46
54
|
"pack:dry-run": "pnpm pack --dry-run --json"
|
|
47
55
|
}
|
|
48
56
|
}
|
|
@@ -10,7 +10,7 @@ version: 1.0.0
|
|
|
10
10
|
|
|
11
11
|
## CLI Context
|
|
12
12
|
|
|
13
|
-
Run `dotdotgod
|
|
13
|
+
Run `dotdotgod map <root> --depth 5 --json` for a broad documentation map. With focus text, run `dotdotgod query <root> "<focus>" --limit 30 --json` and `dotdotgod map <root> --depth 3 --json`. The map command resolves the configured documentation root and exclusions. If the CLI is unavailable, continue from the documentation tree and README indexes.
|
|
14
14
|
|
|
15
15
|
## Goal
|
|
16
16
|
|
|
@@ -20,9 +20,10 @@ Load the repository's dotdotgod project memory without modifying maintained file
|
|
|
20
20
|
|
|
21
21
|
1. Identify the repository root. Expose `Help: dotdotgod --help` as optional CLI discovery guidance without checking or reporting installation status, and do not require Help execution for Load to continue.
|
|
22
22
|
2. When baseline context is missing, read `AGENTS.md`, the adapter entrypoint, `README.md`, and `docs/README.md` when present.
|
|
23
|
-
3.
|
|
24
|
-
4. With arguments,
|
|
25
|
-
5.
|
|
23
|
+
3. Without arguments, run `dotdotgod map <root> --depth 5 --json` and use its configured prefix-compressed documentation tree. The command owns `documentation.root`, `load.documentationSummary.exclude`, deterministic Markdown discovery, and boundary summaries.
|
|
24
|
+
4. With arguments, run `dotdotgod query <root> "<focus>" --limit 30 --json` for at most 30 distinct Markdown files and `dotdotgod map <root> --depth 3 --json` for the configured navigation tree.
|
|
25
|
+
5. If the CLI or shell execution is unavailable, preserve Load behavior by building the same tree from the configured documentation root when known, excluding local memory, and using README routing. At the depth boundary, list every direct Markdown file and immediate child directory, then summarize hidden descendants separately under each named child with exact recursive directory and Markdown-file counts.
|
|
26
|
+
6. Read bodies selectively from query results, explicit paths, and README indexes. Read relevant active plans only when needed, use `docs/archive/README.md` (or the configured archive `README.md` under an alternate documentation root) as the history map, and avoid broad generated, dependency, cache, or secret reads.
|
|
26
27
|
|
|
27
28
|
## Output
|
|
28
29
|
|