svn-agent-mcp 1.0.0

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 (165) hide show
  1. package/.editorconfig +12 -0
  2. package/.gitattributes +7 -0
  3. package/.github/workflows/ci.yml +39 -0
  4. package/.svn-mcp-policy.json +9 -0
  5. package/CHANGELOG.md +248 -0
  6. package/CONTRIBUTING.md +49 -0
  7. package/LICENSE +201 -0
  8. package/README.md +143 -0
  9. package/SECURITY.md +21 -0
  10. package/THIRD_PARTY_CHECKSUMS.txt +52 -0
  11. package/THIRD_PARTY_NOTICES.md +46 -0
  12. package/bin/SlikSvn-DB44-20-x64.dll +0 -0
  13. package/bin/SlikSvn-libapr-1.dll +0 -0
  14. package/bin/SlikSvn-libaprutil-1.dll +0 -0
  15. package/bin/SlikSvn-libcrypto-3-x64.dll +0 -0
  16. package/bin/SlikSvn-libintl.dll +0 -0
  17. package/bin/SlikSvn-libsasl21.dll +0 -0
  18. package/bin/SlikSvn-libssl-3-x64.dll +0 -0
  19. package/bin/SlikSvn-libsvn_client-1.dll +0 -0
  20. package/bin/SlikSvn-libsvn_delta-1.dll +0 -0
  21. package/bin/SlikSvn-libsvn_diff-1.dll +0 -0
  22. package/bin/SlikSvn-libsvn_fs-1.dll +0 -0
  23. package/bin/SlikSvn-libsvn_fs_base-1.dll +0 -0
  24. package/bin/SlikSvn-libsvn_fs_fs-1.dll +0 -0
  25. package/bin/SlikSvn-libsvn_fs_util-1.dll +0 -0
  26. package/bin/SlikSvn-libsvn_fs_x-1.dll +0 -0
  27. package/bin/SlikSvn-libsvn_ra-1.dll +0 -0
  28. package/bin/SlikSvn-libsvn_repos-1.dll +0 -0
  29. package/bin/SlikSvn-libsvn_subr-1.dll +0 -0
  30. package/bin/SlikSvn-libsvn_wc-1.dll +0 -0
  31. package/bin/System64/concrt140.dll +0 -0
  32. package/bin/System64/msvcp140.dll +0 -0
  33. package/bin/System64/msvcp140_1.dll +0 -0
  34. package/bin/System64/msvcp140_2.dll +0 -0
  35. package/bin/System64/msvcp140_atomic_wait.dll +0 -0
  36. package/bin/System64/msvcp140_codecvt_ids.dll +0 -0
  37. package/bin/System64/vccorlib140.dll +0 -0
  38. package/bin/System64/vcruntime140.dll +0 -0
  39. package/bin/System64/vcruntime140_1.dll +0 -0
  40. package/bin/dos2unix.exe +0 -0
  41. package/bin/engines/capi.dll +0 -0
  42. package/bin/libsvnjavahl-1.dll +0 -0
  43. package/bin/mac2unix.exe +0 -0
  44. package/bin/svn-populate-node-origins-index.exe +0 -0
  45. package/bin/svn.exe +0 -0
  46. package/bin/svnadmin.exe +0 -0
  47. package/bin/svnauthz-validate.exe +0 -0
  48. package/bin/svnauthz.exe +0 -0
  49. package/bin/svnbench.exe +0 -0
  50. package/bin/svndumpfilter.exe +0 -0
  51. package/bin/svnfsfs.exe +0 -0
  52. package/bin/svnlook.exe +0 -0
  53. package/bin/svnmucc.exe +0 -0
  54. package/bin/svnrdump.exe +0 -0
  55. package/bin/svnserve.exe +0 -0
  56. package/bin/svnsync.exe +0 -0
  57. package/bin/svnversion.exe +0 -0
  58. package/bin/unix2dos.exe +0 -0
  59. package/bin/unix2mac.exe +0 -0
  60. package/dist/envelope.d.ts +39 -0
  61. package/dist/envelope.d.ts.map +1 -0
  62. package/dist/envelope.js +137 -0
  63. package/dist/envelope.js.map +1 -0
  64. package/dist/eol.d.ts +15 -0
  65. package/dist/eol.d.ts.map +1 -0
  66. package/dist/eol.js +119 -0
  67. package/dist/eol.js.map +1 -0
  68. package/dist/guards.d.ts +26 -0
  69. package/dist/guards.d.ts.map +1 -0
  70. package/dist/guards.js +306 -0
  71. package/dist/guards.js.map +1 -0
  72. package/dist/index.d.ts +8 -0
  73. package/dist/index.d.ts.map +1 -0
  74. package/dist/index.js +221 -0
  75. package/dist/index.js.map +1 -0
  76. package/dist/parse/commitText.d.ts +2 -0
  77. package/dist/parse/commitText.d.ts.map +1 -0
  78. package/dist/parse/commitText.js +9 -0
  79. package/dist/parse/commitText.js.map +1 -0
  80. package/dist/parse/diffText.d.ts +7 -0
  81. package/dist/parse/diffText.d.ts.map +1 -0
  82. package/dist/parse/diffText.js +55 -0
  83. package/dist/parse/diffText.js.map +1 -0
  84. package/dist/parse/infoXml.d.ts +3 -0
  85. package/dist/parse/infoXml.d.ts.map +1 -0
  86. package/dist/parse/infoXml.js +35 -0
  87. package/dist/parse/infoXml.js.map +1 -0
  88. package/dist/parse/logXml.d.ts +10 -0
  89. package/dist/parse/logXml.d.ts.map +1 -0
  90. package/dist/parse/logXml.js +39 -0
  91. package/dist/parse/logXml.js.map +1 -0
  92. package/dist/parse/statusXml.d.ts +6 -0
  93. package/dist/parse/statusXml.d.ts.map +1 -0
  94. package/dist/parse/statusXml.js +64 -0
  95. package/dist/parse/statusXml.js.map +1 -0
  96. package/dist/parse/updateText.d.ts +6 -0
  97. package/dist/parse/updateText.d.ts.map +1 -0
  98. package/dist/parse/updateText.js +67 -0
  99. package/dist/parse/updateText.js.map +1 -0
  100. package/dist/runner.d.ts +41 -0
  101. package/dist/runner.d.ts.map +1 -0
  102. package/dist/runner.js +270 -0
  103. package/dist/runner.js.map +1 -0
  104. package/dist/tools/composite.d.ts +15 -0
  105. package/dist/tools/composite.d.ts.map +1 -0
  106. package/dist/tools/composite.js +238 -0
  107. package/dist/tools/composite.js.map +1 -0
  108. package/dist/tools/diagnose.d.ts +6 -0
  109. package/dist/tools/diagnose.d.ts.map +1 -0
  110. package/dist/tools/diagnose.js +131 -0
  111. package/dist/tools/diagnose.js.map +1 -0
  112. package/dist/tools/mutating.d.ts +80 -0
  113. package/dist/tools/mutating.d.ts.map +1 -0
  114. package/dist/tools/mutating.js +558 -0
  115. package/dist/tools/mutating.js.map +1 -0
  116. package/dist/tools/readonly.d.ts +52 -0
  117. package/dist/tools/readonly.d.ts.map +1 -0
  118. package/dist/tools/readonly.js +638 -0
  119. package/dist/tools/readonly.js.map +1 -0
  120. package/dist/tools/selfcheck.d.ts +5 -0
  121. package/dist/tools/selfcheck.d.ts.map +1 -0
  122. package/dist/tools/selfcheck.js +91 -0
  123. package/dist/tools/selfcheck.js.map +1 -0
  124. package/dist/types.d.ts +66 -0
  125. package/dist/types.d.ts.map +1 -0
  126. package/dist/types.js +2 -0
  127. package/dist/types.js.map +1 -0
  128. package/docs/README.md +11 -0
  129. package/docs/SPEC.md +964 -0
  130. package/docs/decisions/ADR-001-use-spec-v1-architecture.md +25 -0
  131. package/docs/decisions/ADR-002-use-capability-based-generic-svn-policy.md +31 -0
  132. package/docs/decisions/ADR-003-use-plug-and-play-global-registration.md +39 -0
  133. package/docs/decisions/ADR-004-borrow-diagnostics-not-external-mcp-surface.md +39 -0
  134. package/docs/svnrules.md +84 -0
  135. package/docs/toolrules.md +34 -0
  136. package/jest.config.cjs +14 -0
  137. package/package.json +51 -0
  138. package/scripts/clean.mjs +27 -0
  139. package/scripts/prepare-release.mjs +84 -0
  140. package/src/envelope.ts +182 -0
  141. package/src/eol.ts +137 -0
  142. package/src/guards.ts +362 -0
  143. package/src/index.ts +364 -0
  144. package/src/parse/commitText.ts +9 -0
  145. package/src/parse/diffText.ts +66 -0
  146. package/src/parse/infoXml.ts +51 -0
  147. package/src/parse/logXml.ts +64 -0
  148. package/src/parse/statusXml.ts +87 -0
  149. package/src/parse/updateText.ts +76 -0
  150. package/src/runner.ts +344 -0
  151. package/src/tools/composite.ts +289 -0
  152. package/src/tools/diagnose.ts +150 -0
  153. package/src/tools/mutating.ts +694 -0
  154. package/src/tools/readonly.ts +786 -0
  155. package/src/tools/selfcheck.ts +97 -0
  156. package/src/types.ts +76 -0
  157. package/tests/README.md +9 -0
  158. package/tests/diff-redaction.test.ts +146 -0
  159. package/tests/entrypoint.test.ts +49 -0
  160. package/tests/guards-eol.test.ts +170 -0
  161. package/tests/integration-svn.test.ts +709 -0
  162. package/tests/parsers.test.ts +119 -0
  163. package/tests/runner.test.ts +159 -0
  164. package/tests/selfcheck.test.ts +22 -0
  165. package/tsconfig.json +30 -0
package/.editorconfig ADDED
@@ -0,0 +1,12 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = crlf
6
+ insert_final_newline = true
7
+ indent_style = space
8
+ indent_size = 2
9
+ trim_trailing_whitespace = true
10
+
11
+ [*.md]
12
+ trim_trailing_whitespace = false
package/.gitattributes ADDED
@@ -0,0 +1,7 @@
1
+ * text=auto
2
+
3
+ *.bat text eol=crlf
4
+ *.cmd text eol=crlf
5
+ *.ps1 text eol=crlf
6
+
7
+ bin/** binary
@@ -0,0 +1,39 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ build-test:
13
+ name: Build and Test
14
+ runs-on: windows-latest
15
+
16
+ steps:
17
+ - name: Check out repository
18
+ uses: actions/checkout@v4
19
+
20
+ - name: Set up Node.js
21
+ uses: actions/setup-node@v4
22
+ with:
23
+ node-version: 20
24
+ cache: npm
25
+
26
+ - name: Install dependencies
27
+ run: npm ci
28
+
29
+ - name: Typecheck
30
+ run: npm run typecheck
31
+
32
+ - name: Prepare local runtime
33
+ run: npm run prepare:local
34
+
35
+ - name: Test
36
+ run: npm test -- --runInBand
37
+
38
+ - name: Audit dependencies
39
+ run: npm audit --audit-level=moderate
@@ -0,0 +1,9 @@
1
+ {
2
+ "neverCommit": {
3
+ "allow": [
4
+ "bin/**",
5
+ "releases/v*/bin/**",
6
+ "releases/v*/dist/**"
7
+ ]
8
+ }
9
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,248 @@
1
+ # Changelog
2
+
3
+ All notable changes to the SVN MCP are recorded here.
4
+
5
+ ## [1.0.0] - 2026-07-08
6
+
7
+ ### Changed
8
+
9
+ - Declared the first public open-source release.
10
+ - Bumped the package and MCP server version to `1.0.0`.
11
+ - Added the GitHub clone and `npm run prepare:local` setup flow so automation can install the MCP
12
+ from the repository and configure `current\dist\index.js`.
13
+
14
+ ### Packaging
15
+
16
+ - Generated release payloads remain ignored; publish the source tree, root `bin/` runtime payload,
17
+ and third-party notices, then let each clone prepare its own local `current` runtime.
18
+
19
+ ## [0.1.15] - 2026-07-08
20
+
21
+ ### Added
22
+
23
+ - Added read-only `svn_propget` for explicit working-copy paths.
24
+ - Added guarded `svn_propset` for explicit working-copy paths, with readonly refusal,
25
+ never-commit target checks, bounded property names/values, and `riskAck` for high-risk
26
+ properties such as `svn:ignore`, `svn:global-ignores`, `svn:externals`, and `svn:auto-props`.
27
+
28
+ ### Changed
29
+
30
+ - Documented generic SVN property operations so callers do not fall back to raw `svn propget` /
31
+ `svn propset` for routine property-only work.
32
+
33
+ ## [0.1.14] - 2026-07-07
34
+
35
+ ### Added
36
+
37
+ - CLI failsafe mode (SPEC §15.7): if the MCP fails mechanically (server down, protocol-level
38
+ tool errors, broken bundled runtime), callers fall back to scoped raw `svn` CLI for the rest of
39
+ the session under the same policy rules. Guard refusals are explicitly not failsafe triggers
40
+ and must never be bypassed via CLI; read-only instances stay read-only.
41
+ - `noteFromRun` now reports executable-launch failures (`ENOENT`/`EACCES`/`EPERM`) as
42
+ "MCP svn runtime unavailable" with the failsafe hint, and `svn_diagnose` includes the failsafe
43
+ suggestion when the bundled SVN toolchain is unavailable.
44
+ - Failsafe rules documented in `docs/svnrules.md`.
45
+
46
+ ## [0.1.13] - 2026-07-07
47
+
48
+ ### Fixed
49
+
50
+ - **Critical:** the server never started when launched through the documented `current`
51
+ junction path — Node resolves the ESM entry module through junctions, so the
52
+ launched-directly check failed and the process exited silently. The check now compares real
53
+ paths; both `current\dist\index.js` and `releases\v<version>\dist\index.js` launches work.
54
+ - `svn_update` parsing no longer reports SVN informational trailers ("Updated to revision N.",
55
+ "At revision N.", "Updating '.':", "Restored ...") as phantom changed paths.
56
+ - `eol_check` and `svn_precommit` return a structured `kind:"not-a-file"` result for directory
57
+ targets instead of rejecting with a raw filesystem error.
58
+ - Streamed stdout/stderr (including the `svn_diff` hot path) now use the same latin1 fallback as
59
+ buffered output for non-UTF8 bytes.
60
+ - Working-copy containment now verifies physical paths, so a junction or symlink under a working
61
+ copy cannot redirect tools to files outside it.
62
+ - Repository-local policy globs are additionally capped on total wildcard count to bound regex
63
+ backtracking.
64
+ - Removed the residual MCP-launch-directory fallback from the read-only working-copy probe.
65
+
66
+ ### Verification
67
+
68
+ - Deep audit pass over the v0.1.12 baseline: all 27 accepted audit fixes re-verified in
69
+ source; typecheck, build, 52 Jest tests, and `npm audit` green. Live MCP smoke test over
70
+ stdio (initialize, tools/list, readonly banner) through both junction and real release paths.
71
+
72
+ ## [0.1.12] - 2026-07-07
73
+
74
+ ### Fixed
75
+
76
+ - Fixed all accepted deep-audit items: credential redaction, non-interactive SVN execution,
77
+ stable locale, streaming timeout/stderr caps, latin1 fallback, parser correctness, ignored-path
78
+ precommit guards, secure message files, split recursive reverts, import/export guards, property
79
+ status/conflict parsing, update tree-conflict parsing, policy validation/caching, nullable
80
+ working-copy roots, and ambiguous no-context read-only calls.
81
+ - `svn_import` now scans source trees for never-commit descendants before invoking SVN.
82
+ - `svn_precommit` and `svn_commit` now treat ignored paths as uncommittable instead of reaching
83
+ later SVN failures.
84
+
85
+ ### Performance
86
+
87
+ - Batched `eol_check` property lookup, parallelized independent `svn_diagnose` checks, reduced
88
+ repeated `svn_info` process spawns, and replaced synchronous EOL sniffing and recursive
89
+ directory scans in hot paths.
90
+
91
+ ### Documentation
92
+
93
+ - Updated the spec for the v0.1.12 audit fixes.
94
+
95
+ ## [0.1.11] - 2026-07-07
96
+
97
+ ### Fixed
98
+
99
+ - Repository-local never-commit `deny` rules now override broad repository-local `allow`
100
+ exceptions.
101
+ - Envelope `stdout_summary` and `stderr_summary` now redact URL userinfo and sensitive query
102
+ parameters, not only displayed command strings.
103
+
104
+ ### Documentation
105
+
106
+ - Updated docs for the v0.1.11 baseline and recorded the audit fixes.
107
+
108
+ ## [0.1.10] - 2026-07-07
109
+
110
+ ### Added
111
+
112
+ - Added `svn_diagnose`, a read-only working-copy diagnostic tool for local status, remote status, HEAD info, and latest log reachability.
113
+ - Added regression coverage for successful temp-repository diagnosis and structured non-working-copy diagnosis.
114
+
115
+ ### Changed
116
+
117
+ - Expanded SVN error classification for common authentication, network/repository, working-copy lock, and SQLite working-copy database failures.
118
+ - Documented the external SVN MCP comparison: borrow diagnostics and error taxonomy ideas, but keep this MCP's bundled runtime, zero end-user env config, explicit-path commits, readonly mode, no-shell execution, and guarded mutating surface.
119
+
120
+ ### Verification
121
+
122
+ - Added targeted tests for the borrowed diagnostic/error-classification behavior.
123
+
124
+ ## [0.1.9] - 2026-07-07
125
+
126
+ ### Added
127
+
128
+ - Added repo-local `.svn-mcp-policy.json` support for strict never-commit defaults with explicit per-repository allow/deny exceptions.
129
+ - Added streaming diff parsing so `svn_diff` keeps complete per-file counts while capping only `diff_excerpt`.
130
+ - Added URL userinfo and sensitive query-parameter redaction for displayed command strings.
131
+ - Added `allowLarge` to `eol_fix_verified`; oversized files are refused unless the caller explicitly opts in.
132
+
133
+ ### Changed
134
+
135
+ - Never-commit generated-folder guards are now segment-aware, blocking nested `bin`, `obj`, `dist`, `node_modules`, `coverage`, `.vs`, and `.cache` folders, including descendants of recursive directory adds.
136
+ - `svn_precommit` now treats `svn_diff` failure as a trust-gate verdict: recoverable EOL failures become `EOL_FIX_NEEDED`, other diff failures become `DIFF_FAILED`.
137
+ - `eol_fix_verified` now returns structured refusals for missing paths, non-files, binary files, and too-large files.
138
+
139
+ ### Verification
140
+
141
+ - Added regression coverage for segment-aware guards, policy exceptions, recursive add refusals, redaction, streaming diff counts, precommit diff-failure verdicts, and structured EOL repair refusals.
142
+
143
+ ## [0.1.8] - 2026-07-07
144
+
145
+ ### Added
146
+
147
+ - `svn_info` now returns parsed `svnversion` details: revision range, local modification flag, switched/partial flags, remote HEAD revision, and stale-base status.
148
+ - `svn_status` now accepts `hideNoise:true` to filter common local runtime clutter such as `node_modules`, `dist`, `current`, `.cache`, and `coverage`.
149
+ - `svn_status` now accepts `includeIgnored:true` for explicit ignored-path audits without making that the daily default.
150
+ - Added `svn_self_check` to report package/runtime version, `current` release pointer, bundled payload counts, startup probe, and packaging-script health.
151
+ - Added a Node `scripts/clean.mjs` and changed `npm run clean` to avoid PowerShell filesystem deletion.
152
+
153
+ ### Changed
154
+
155
+ - `npm run release:prepare` now validates release payload counts before repointing `current`.
156
+ - Updated docs to separate MCP-solvable SVN pain points from semantic workflow responsibilities.
157
+
158
+ ### Verification
159
+
160
+ - Added regression coverage for mixed-revision metadata, status noise filtering, and self-check output.
161
+
162
+ ## [0.1.7] - 2026-07-07
163
+
164
+ ### Added
165
+
166
+ - `svn_log` now resolves working-copy paths to repository URLs and queries HEAD when possible, avoiding mixed-revision root log gaps.
167
+ - `svn_diff` now returns EOL diagnostics and `recovery_tool: "eol_fix_verified"` when SVN reports inconsistent line endings.
168
+ - Added `npm run release:prepare`, a Node release packager that copies `dist/` and `bin/` into `releases/v<version>` and repoints `current` without PowerShell copy/junction commands.
169
+
170
+ ### Changed
171
+
172
+ - Updated the spec and README for repository-URL log behavior, EOL diff recovery, and the release preparation command.
173
+
174
+ ### Verification
175
+
176
+ - Added temp-repository regression tests for mixed-revision root log history and inconsistent-EOL diff recovery.
177
+
178
+ ## [0.1.6] - 2026-07-07
179
+
180
+ ### Changed
181
+
182
+ - Expanded never-commit guards to block root generated/dependency/cache artifacts: `dist/**`, `node_modules/**`, `coverage/**`, `.cache/**`, and `*.tsbuildinfo`.
183
+ - Tightened `/**` never-commit matching so directory globs do not block unrelated same-prefix files such as `binary.txt`.
184
+ - Updated the spec and SVN rules so the executable guard matrix matches the documented generated-output policy.
185
+
186
+ ### Verification
187
+
188
+ - Added a guard regression test that failed before the change and passed after the guard expansion.
189
+
190
+ ## [0.1.5] - 2026-07-07
191
+
192
+ ### Added
193
+
194
+ - Plug-and-play global client registration: one MCP config can serve multiple SVN working copies.
195
+ - Working-copy inference from absolute path inputs when `cwd` is omitted.
196
+ - `--readonly` launch argument for read-only clients.
197
+ - Regression coverage for absolute-path multi-working-copy use.
198
+
199
+ ### Changed
200
+
201
+ - End-user configuration no longer requires environment variables or project-specific launch `cwd`.
202
+ - `SVN_AGENT_*` variables are documented as development/test escape hatches only.
203
+ - README, spec, and ADR docs now describe zero-env setup and multi-working-copy behavior.
204
+
205
+ ## [0.1.4] - 2026-07-07
206
+
207
+ ### Added
208
+
209
+ - Versioned source-tree `bin/` folder containing the full SlikSVN `bin` payload and full dos2unix `bin` payload.
210
+ - Release `bin/` payload beside `dist/`, including `svn`, `svnadmin`, `svnversion`, `dos2unix`, `unix2dos`, and required DLLs.
211
+ - Bundled executable resolution for SVN and EOL tools, with dev/test overrides.
212
+
213
+ ### Changed
214
+
215
+ - Runtime startup and EOL repair no longer depend on PATH for normal use.
216
+ - Tests use bundled SVN binaries for temp-repository setup.
217
+
218
+ ## [0.1.3] - 2026-07-07
219
+
220
+ ### Added
221
+
222
+ - Guarded `svn_move`, `svn_rename`, and `svn_copy` tools for working-copy paths.
223
+ - Parent-directory creation for move/copy destinations.
224
+ - Integration coverage for move, rename, copy, readonly refusal, and never-commit destination refusal.
225
+
226
+ ## [0.1.2] - 2026-07-07
227
+
228
+ ### Changed
229
+
230
+ - EOL repair is fully MCP-owned through `unix2dos`/`dos2unix`.
231
+ - `svn_diff` uses `svn diff --internal-diff -x --ignore-eol-style` by default.
232
+ - PowerShell EOL hook guidance was removed from the workflow.
233
+
234
+ ## [0.1.1] - 2026-07-07
235
+
236
+ ### Fixed
237
+
238
+ - `svn_add` now schedules needed parent directories for explicit nested file paths.
239
+ - `svn_commit` includes scheduled-added parent directories needed for explicit nested file commits.
240
+
241
+ ## [0.1.0] - 2026-07-07
242
+
243
+ ### Added
244
+
245
+ - Initial generic SVN MCP implementation.
246
+ - Guarded SVN runner, structured envelopes, XML/text parsers, EOL helpers, and guard logic.
247
+ - Read-only, composite, and mutating SVN tool families.
248
+ - Versioned release layout under `releases/v<version>` with a `current` junction.
@@ -0,0 +1,49 @@
1
+ # Contributing
2
+
3
+ Thanks for taking the time to improve `svn-agent-mcp`.
4
+
5
+ ## Prerequisites
6
+
7
+ - Windows
8
+ - Node.js 20 or newer
9
+ - Git
10
+ - Access to the public npm registry
11
+
12
+ The bundled runtime payload under `bin/` is Windows-only. Cross-platform support needs separate
13
+ runtime packaging and testing.
14
+
15
+ ## Local Setup
16
+
17
+ ```powershell
18
+ npm install
19
+ npm run prepare:local
20
+ npm test
21
+ ```
22
+
23
+ ## Development Checks
24
+
25
+ Before opening a pull request, run:
26
+
27
+ ```powershell
28
+ npm run typecheck
29
+ npm run prepare:local
30
+ npm test
31
+ npm audit --audit-level=moderate
32
+ ```
33
+
34
+ Use focused tests for parser, guard, and workflow changes when possible. Mutating SVN behavior
35
+ should be tested only against temporary repositories.
36
+
37
+ ## Pull Requests
38
+
39
+ - Keep changes narrowly scoped.
40
+ - Update `README.md`, `CHANGELOG.md`, `docs/SPEC.md`, and ADRs when behavior or public contracts change.
41
+ - Do not commit generated root `dist/`, `current/`, `releases/`, dependency folders, local caches,
42
+ credentials, keys, certificates, or unrelated files.
43
+ - Keep bundled binary changes explicit and update `THIRD_PARTY_NOTICES.md` plus
44
+ `THIRD_PARTY_CHECKSUMS.txt` when `bin/` changes.
45
+
46
+ ## Security
47
+
48
+ Please do not report vulnerabilities in public issues when private reporting is available. See
49
+ `SECURITY.md` for the preferred reporting path.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 svn-agent-mcp contributors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.