@hanna84/mcp-writing 2.9.1 → 2.9.5
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/CHANGELOG.md +40 -0
- package/git.js +4 -3
- package/index.js +39 -1436
- package/package.json +6 -5
- package/scripts/generate-tool-docs.mjs +20 -5
- package/tools/metadata.js +344 -0
- package/tools/search.js +528 -0
- package/tools/sync.js +612 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,51 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [v2.9.5](https://github.com/hannasdev/mcp-writing.git
|
|
8
|
+
/compare/v2.9.4...v2.9.5)
|
|
9
|
+
|
|
10
|
+
- refactor(tools): extract registerMetadataTools into tools/metadata.js [`#98`](https://github.com/hannasdev/mcp-writing.git
|
|
11
|
+
/pull/98)
|
|
12
|
+
|
|
13
|
+
#### [v2.9.4](https://github.com/hannasdev/mcp-writing.git
|
|
14
|
+
/compare/v2.9.3...v2.9.4)
|
|
15
|
+
|
|
16
|
+
> 26 April 2026
|
|
17
|
+
|
|
18
|
+
- fix(ci): update publish workflow to use npm test [`#97`](https://github.com/hannasdev/mcp-writing.git
|
|
19
|
+
/pull/97)
|
|
20
|
+
- Release 2.9.4 [`576f259`](https://github.com/hannasdev/mcp-writing.git
|
|
21
|
+
/commit/576f2591907bfed039a4fe7f8cc9ae74f78d0eed)
|
|
22
|
+
|
|
23
|
+
#### [v2.9.3](https://github.com/hannasdev/mcp-writing.git
|
|
24
|
+
/compare/v2.9.2...v2.9.3)
|
|
25
|
+
|
|
26
|
+
> 26 April 2026
|
|
27
|
+
|
|
28
|
+
- refactor(tools): extract registerSearchTools into tools/search.js [`#95`](https://github.com/hannasdev/mcp-writing.git
|
|
29
|
+
/pull/95)
|
|
30
|
+
- Release 2.9.3 [`11bc154`](https://github.com/hannasdev/mcp-writing.git
|
|
31
|
+
/commit/11bc154871d60061f94c8f4a1253b48633d24dc8)
|
|
32
|
+
|
|
33
|
+
#### [v2.9.2](https://github.com/hannasdev/mcp-writing.git
|
|
34
|
+
/compare/v2.9.1...v2.9.2)
|
|
35
|
+
|
|
36
|
+
> 26 April 2026
|
|
37
|
+
|
|
38
|
+
- Refactor/phase A, B [`#94`](https://github.com/hannasdev/mcp-writing.git
|
|
39
|
+
/pull/94)
|
|
40
|
+
- Release 2.9.2 [`efd25cf`](https://github.com/hannasdev/mcp-writing.git
|
|
41
|
+
/commit/efd25cf88d66634fa7469d3cd895e47be8f38266)
|
|
42
|
+
|
|
7
43
|
#### [v2.9.1](https://github.com/hannasdev/mcp-writing.git
|
|
8
44
|
/compare/v2.9.0...v2.9.1)
|
|
9
45
|
|
|
46
|
+
> 26 April 2026
|
|
47
|
+
|
|
10
48
|
- fix(describe-workflows): suppress structural dir names as project_id [`#93`](https://github.com/hannasdev/mcp-writing.git
|
|
11
49
|
/pull/93)
|
|
50
|
+
- Release 2.9.1 [`9436e5d`](https://github.com/hannasdev/mcp-writing.git
|
|
51
|
+
/commit/9436e5dd1caf8bbca83e0acfaf158114e1cfea1e)
|
|
12
52
|
|
|
13
53
|
#### [v2.9.0](https://github.com/hannasdev/mcp-writing.git
|
|
14
54
|
/compare/v2.8.0...v2.9.0)
|
package/git.js
CHANGED
|
@@ -109,8 +109,9 @@ export function createSnapshot(dirPath, filePath, sceneId, instruction, options
|
|
|
109
109
|
export function listSnapshots(dirPath, filePath) {
|
|
110
110
|
try {
|
|
111
111
|
const relPath = path.relative(dirPath, filePath);
|
|
112
|
-
const output =
|
|
113
|
-
|
|
112
|
+
const output = execFileSync(
|
|
113
|
+
"git",
|
|
114
|
+
["log", "--pretty=format:%h|%ai|%s", "--", relPath],
|
|
114
115
|
{
|
|
115
116
|
cwd: dirPath,
|
|
116
117
|
stdio: "pipe",
|
|
@@ -154,7 +155,7 @@ export function getSceneProseAtCommit(dirPath, filePath, commitHash) {
|
|
|
154
155
|
}
|
|
155
156
|
|
|
156
157
|
// Get version from git
|
|
157
|
-
const content =
|
|
158
|
+
const content = execFileSync("git", ["show", `${commitHash}:${relPath}`], {
|
|
158
159
|
cwd: dirPath,
|
|
159
160
|
stdio: "pipe",
|
|
160
161
|
encoding: "utf8",
|