scrivener-mcp 0.11.0 → 0.15.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 (1077) hide show
  1. package/README.md +430 -274
  2. package/assets/c2pa-binding/binding.d.ts +53 -0
  3. package/assets/c2pa-binding/binding.js +497 -0
  4. package/assets/c2pa-binding/binding_bg.wasm +0 -0
  5. package/assets/c2pa-binding/binding_bg.wasm.d.ts +18 -0
  6. package/assets/c2pa-binding/build.json +71 -0
  7. package/assets/c2pa-binding/package.json +1 -0
  8. package/assets/c2pa-crjson-2.4/LICENSE +396 -0
  9. package/assets/c2pa-crjson-2.4/README.md +20 -0
  10. package/assets/c2pa-crjson-2.4/crJSON.schema.json +1818 -0
  11. package/assets/c2pa-crjson-2.4/provenance.json +31 -0
  12. package/assets/c2pa-supply-chain/bluepencil/Cargo.lock +1909 -0
  13. package/assets/c2pa-supply-chain/bluepencil/osv-scanner.toml +14 -0
  14. package/assets/c2pa-supply-chain/narrative-lens/Cargo.lock +2694 -0
  15. package/assets/c2pa-supply-chain/narrative-lens/osv-scanner.toml +9 -0
  16. package/assets/c2pa-supply-chain/upstream.json +82 -0
  17. package/assets/c2pa-supply-chain/vex.openvex.json +326 -0
  18. package/assets/c2pa-supply-chain/warm/npm-provenance.json +185 -0
  19. package/assets/c2pa-supply-chain/warm/osv-scanner.toml +4 -0
  20. package/assets/c2pa-supply-chain/warm/writerslogic-warm-0.7.0.tgz.cdx.json +66 -0
  21. package/assets/c2pa-supply-chain/warm/writerslogic-warm-darwin-arm64-0.7.0.tgz.cdx.json +5236 -0
  22. package/assets/c2pa-supply-chain/warm/writerslogic-warm-darwin-x64-0.7.0.tgz.cdx.json +5313 -0
  23. package/assets/c2pa-supply-chain/warm/writerslogic-warm-linux-arm64-gnu-0.7.0.tgz.cdx.json +5271 -0
  24. package/assets/c2pa-supply-chain/warm/writerslogic-warm-linux-arm64-musl-0.7.0.tgz.cdx.json +5271 -0
  25. package/assets/c2pa-supply-chain/warm/writerslogic-warm-linux-x64-gnu-0.7.0.tgz.cdx.json +5348 -0
  26. package/assets/c2pa-supply-chain/warm/writerslogic-warm-linux-x64-musl-0.7.0.tgz.cdx.json +5348 -0
  27. package/assets/c2pa-supply-chain/warm/writerslogic-warm-win32-arm64-msvc-0.7.0.tgz.cdx.json +5258 -0
  28. package/assets/c2pa-supply-chain/warm/writerslogic-warm-win32-x64-msvc-0.7.0.tgz.cdx.json +5338 -0
  29. package/assets/draftbridge/icon.png +0 -0
  30. package/assets/draftbridge/purchase-dark.png +0 -0
  31. package/assets/draftbridge/purchase-light.png +0 -0
  32. package/assets/draftbridge/ready-dark.png +0 -0
  33. package/assets/draftbridge/ready-light.png +0 -0
  34. package/assets/infographics/capability-map.png +0 -0
  35. package/assets/manuscript-dashboard.html +1060 -0
  36. package/assets/narrative-lens/LICENSE +201 -0
  37. package/assets/narrative-lens/README.md +30 -0
  38. package/assets/narrative-lens/annotations.schema.json +1221 -0
  39. package/assets/narrative-lens/provenance.json +23 -0
  40. package/assets/sample-project/LICENSE.txt +1 -0
  41. package/assets/sample-project/Welcome.scriv/Files/Data/10000000-0000-4000-8000-000000000003/content.rtf +1 -0
  42. package/assets/sample-project/Welcome.scriv/Files/Data/10000000-0000-4000-8000-000000000003/notes.rtf +1 -0
  43. package/assets/sample-project/Welcome.scriv/Files/Data/10000000-0000-4000-8000-000000000003/synopsis.txt +1 -0
  44. package/assets/sample-project/Welcome.scriv/Files/Data/10000000-0000-4000-8000-000000000004/content.rtf +1 -0
  45. package/assets/sample-project/Welcome.scriv/Files/Data/10000000-0000-4000-8000-000000000006/content.rtf +1 -0
  46. package/assets/sample-project/Welcome.scriv/Files/version.txt +1 -0
  47. package/assets/sample-project/Welcome.scriv/Settings/compile.xml +1 -0
  48. package/assets/sample-project/Welcome.scriv/Welcome.scrivx +1 -0
  49. package/dist/analysis/advanced-readability.d.ts +22 -87
  50. package/dist/analysis/advanced-readability.d.ts.map +1 -1
  51. package/dist/analysis/advanced-readability.js +122 -340
  52. package/dist/analysis/advanced-readability.js.map +1 -1
  53. package/dist/analysis/ai-document-analyzer.d.ts +6 -6
  54. package/dist/analysis/ai-document-analyzer.d.ts.map +1 -1
  55. package/dist/analysis/ai-document-analyzer.js +69 -54
  56. package/dist/analysis/ai-document-analyzer.js.map +1 -1
  57. package/dist/analysis/analyzers/emotion-analyzer.d.ts +3 -3
  58. package/dist/analysis/analyzers/emotion-analyzer.d.ts.map +1 -1
  59. package/dist/analysis/analyzers/emotion-analyzer.js +7 -5
  60. package/dist/analysis/analyzers/emotion-analyzer.js.map +1 -1
  61. package/dist/analysis/analyzers/index.d.ts.map +1 -1
  62. package/dist/analysis/analyzers/index.js +0 -1
  63. package/dist/analysis/analyzers/index.js.map +1 -1
  64. package/dist/analysis/analyzers/metrics-analyzer.d.ts +5 -12
  65. package/dist/analysis/analyzers/metrics-analyzer.d.ts.map +1 -1
  66. package/dist/analysis/analyzers/metrics-analyzer.js +32 -85
  67. package/dist/analysis/analyzers/metrics-analyzer.js.map +1 -1
  68. package/dist/analysis/analyzers/pacing-analyzer.d.ts +4 -4
  69. package/dist/analysis/analyzers/pacing-analyzer.d.ts.map +1 -1
  70. package/dist/analysis/analyzers/pacing-analyzer.js +42 -53
  71. package/dist/analysis/analyzers/pacing-analyzer.js.map +1 -1
  72. package/dist/analysis/analyzers/quality-analyzer.d.ts +7 -7
  73. package/dist/analysis/analyzers/quality-analyzer.d.ts.map +1 -1
  74. package/dist/analysis/analyzers/quality-analyzer.js +16 -30
  75. package/dist/analysis/analyzers/quality-analyzer.js.map +1 -1
  76. package/dist/analysis/analyzers/structure-analyzer.d.ts +9 -9
  77. package/dist/analysis/analyzers/structure-analyzer.d.ts.map +1 -1
  78. package/dist/analysis/analyzers/structure-analyzer.js +7 -24
  79. package/dist/analysis/analyzers/structure-analyzer.js.map +1 -1
  80. package/dist/analysis/analyzers/style-analyzer.d.ts +12 -12
  81. package/dist/analysis/analyzers/style-analyzer.d.ts.map +1 -1
  82. package/dist/analysis/analyzers/style-analyzer.js +43 -51
  83. package/dist/analysis/analyzers/style-analyzer.js.map +1 -1
  84. package/dist/analysis/analyzers/suggestion-generator.d.ts +2 -2
  85. package/dist/analysis/analyzers/suggestion-generator.d.ts.map +1 -1
  86. package/dist/analysis/analyzers/suggestion-generator.js +19 -63
  87. package/dist/analysis/analyzers/suggestion-generator.js.map +1 -1
  88. package/dist/analysis/base-analyzer.d.ts +3 -27
  89. package/dist/analysis/base-analyzer.d.ts.map +1 -1
  90. package/dist/analysis/base-analyzer.js +94 -179
  91. package/dist/analysis/base-analyzer.js.map +1 -1
  92. package/dist/analysis/context-analyzer.d.ts +1 -64
  93. package/dist/analysis/context-analyzer.d.ts.map +1 -1
  94. package/dist/analysis/context-analyzer.js +23 -149
  95. package/dist/analysis/context-analyzer.js.map +1 -1
  96. package/dist/analysis/ml-word-classifier-pro.d.ts +0 -38
  97. package/dist/analysis/ml-word-classifier-pro.d.ts.map +1 -1
  98. package/dist/analysis/ml-word-classifier-pro.js +20 -105
  99. package/dist/analysis/ml-word-classifier-pro.js.map +1 -1
  100. package/dist/cli/content-credentials.d.ts +3 -0
  101. package/dist/cli/content-credentials.d.ts.map +1 -0
  102. package/dist/cli/content-credentials.js +151 -0
  103. package/dist/cli/content-credentials.js.map +1 -0
  104. package/dist/cli/setup-wizard.d.ts +0 -21
  105. package/dist/cli/setup-wizard.d.ts.map +1 -1
  106. package/dist/cli/setup-wizard.js +129 -159
  107. package/dist/cli/setup-wizard.js.map +1 -1
  108. package/dist/cli/setup.d.ts +3 -0
  109. package/dist/cli/setup.d.ts.map +1 -0
  110. package/dist/cli/setup.js +323 -0
  111. package/dist/cli/setup.js.map +1 -0
  112. package/dist/core/cache.d.ts +1 -40
  113. package/dist/core/cache.d.ts.map +1 -1
  114. package/dist/core/cache.js +7 -62
  115. package/dist/core/cache.js.map +1 -1
  116. package/dist/core/constants.d.ts +136 -136
  117. package/dist/core/constants.d.ts.map +1 -1
  118. package/dist/core/constants.js +1 -6
  119. package/dist/core/constants.js.map +1 -1
  120. package/dist/core/logger.d.ts.map +1 -1
  121. package/dist/core/logger.js +9 -3
  122. package/dist/core/logger.js.map +1 -1
  123. package/dist/core/response-formatter.d.ts +22 -13
  124. package/dist/core/response-formatter.d.ts.map +1 -1
  125. package/dist/core/response-formatter.js +200 -79
  126. package/dist/core/response-formatter.js.map +1 -1
  127. package/dist/core/tool-admission.d.ts +26 -0
  128. package/dist/core/tool-admission.d.ts.map +1 -0
  129. package/dist/core/tool-admission.js +88 -0
  130. package/dist/core/tool-admission.js.map +1 -0
  131. package/dist/handlers/analysis-handlers/advanced.d.ts +4 -0
  132. package/dist/handlers/analysis-handlers/advanced.d.ts.map +1 -0
  133. package/dist/handlers/analysis-handlers/advanced.js +305 -0
  134. package/dist/handlers/analysis-handlers/advanced.js.map +1 -0
  135. package/dist/handlers/analysis-handlers/consistency.d.ts +3 -0
  136. package/dist/handlers/analysis-handlers/consistency.d.ts.map +1 -0
  137. package/dist/handlers/analysis-handlers/consistency.js +112 -0
  138. package/dist/handlers/analysis-handlers/consistency.js.map +1 -0
  139. package/dist/handlers/analysis-handlers/content-enhancement.d.ts +3 -0
  140. package/dist/handlers/analysis-handlers/content-enhancement.d.ts.map +1 -0
  141. package/dist/handlers/analysis-handlers/content-enhancement.js +298 -0
  142. package/dist/handlers/analysis-handlers/content-enhancement.js.map +1 -0
  143. package/dist/handlers/analysis-handlers/content-generation.d.ts +3 -0
  144. package/dist/handlers/analysis-handlers/content-generation.d.ts.map +1 -0
  145. package/dist/handlers/analysis-handlers/content-generation.js +333 -0
  146. package/dist/handlers/analysis-handlers/content-generation.js.map +1 -0
  147. package/dist/handlers/analysis-handlers/document-analysis.d.ts +5 -0
  148. package/dist/handlers/analysis-handlers/document-analysis.d.ts.map +1 -0
  149. package/dist/handlers/analysis-handlers/document-analysis.js +281 -0
  150. package/dist/handlers/analysis-handlers/document-analysis.js.map +1 -0
  151. package/dist/handlers/analysis-handlers/memory.d.ts +4 -0
  152. package/dist/handlers/analysis-handlers/memory.d.ts.map +1 -0
  153. package/dist/handlers/analysis-handlers/memory.js +119 -0
  154. package/dist/handlers/analysis-handlers/memory.js.map +1 -0
  155. package/dist/handlers/analysis-handlers.d.ts +6 -11
  156. package/dist/handlers/analysis-handlers.d.ts.map +1 -1
  157. package/dist/handlers/analysis-handlers.js +8 -1129
  158. package/dist/handlers/analysis-handlers.js.map +1 -1
  159. package/dist/handlers/async-handler-definitions.d.ts +0 -3
  160. package/dist/handlers/async-handler-definitions.d.ts.map +1 -1
  161. package/dist/handlers/async-handler-definitions.js +363 -98
  162. package/dist/handlers/async-handler-definitions.js.map +1 -1
  163. package/dist/handlers/async-handlers.d.ts +32 -48
  164. package/dist/handlers/async-handlers.d.ts.map +1 -1
  165. package/dist/handlers/async-handlers.js +322 -219
  166. package/dist/handlers/async-handlers.js.map +1 -1
  167. package/dist/handlers/bluepencil-handlers.d.ts +8 -0
  168. package/dist/handlers/bluepencil-handlers.d.ts.map +1 -0
  169. package/dist/handlers/bluepencil-handlers.js +494 -0
  170. package/dist/handlers/bluepencil-handlers.js.map +1 -0
  171. package/dist/handlers/change-impact-handlers.d.ts +3 -0
  172. package/dist/handlers/change-impact-handlers.d.ts.map +1 -0
  173. package/dist/handlers/change-impact-handlers.js +127 -0
  174. package/dist/handlers/change-impact-handlers.js.map +1 -0
  175. package/dist/handlers/compilation-handlers.d.ts.map +1 -1
  176. package/dist/handlers/compilation-handlers.js +429 -135
  177. package/dist/handlers/compilation-handlers.js.map +1 -1
  178. package/dist/handlers/content-credentials-handlers.d.ts +3 -0
  179. package/dist/handlers/content-credentials-handlers.d.ts.map +1 -0
  180. package/dist/handlers/content-credentials-handlers.js +524 -0
  181. package/dist/handlers/content-credentials-handlers.js.map +1 -0
  182. package/dist/handlers/dashboard-handlers.d.ts +6 -0
  183. package/dist/handlers/dashboard-handlers.d.ts.map +1 -0
  184. package/dist/handlers/dashboard-handlers.js +340 -0
  185. package/dist/handlers/dashboard-handlers.js.map +1 -0
  186. package/dist/handlers/database/auto-installer.d.ts +1 -28
  187. package/dist/handlers/database/auto-installer.d.ts.map +1 -1
  188. package/dist/handlers/database/auto-installer.js +80 -169
  189. package/dist/handlers/database/auto-installer.js.map +1 -1
  190. package/dist/handlers/database/config.d.ts +0 -3
  191. package/dist/handlers/database/config.d.ts.map +1 -1
  192. package/dist/handlers/database/config.js +0 -3
  193. package/dist/handlers/database/config.js.map +1 -1
  194. package/dist/handlers/database/content-analysis-storage.d.ts +7 -0
  195. package/dist/handlers/database/content-analysis-storage.d.ts.map +1 -0
  196. package/dist/handlers/database/content-analysis-storage.js +55 -0
  197. package/dist/handlers/database/content-analysis-storage.js.map +1 -0
  198. package/dist/handlers/database/database-service.d.ts +21 -175
  199. package/dist/handlers/database/database-service.d.ts.map +1 -1
  200. package/dist/handlers/database/database-service.js +125 -618
  201. package/dist/handlers/database/database-service.js.map +1 -1
  202. package/dist/handlers/database/database-setup.d.ts +8 -25
  203. package/dist/handlers/database/database-setup.d.ts.map +1 -1
  204. package/dist/handlers/database/database-setup.js +62 -99
  205. package/dist/handlers/database/database-setup.js.map +1 -1
  206. package/dist/handlers/database/database-sync.d.ts +39 -0
  207. package/dist/handlers/database/database-sync.d.ts.map +1 -0
  208. package/dist/handlers/database/database-sync.js +105 -0
  209. package/dist/handlers/database/database-sync.js.map +1 -0
  210. package/dist/handlers/database/graph-analytics.d.ts +0 -18
  211. package/dist/handlers/database/graph-analytics.d.ts.map +1 -1
  212. package/dist/handlers/database/graph-analytics.js +2 -41
  213. package/dist/handlers/database/graph-analytics.js.map +1 -1
  214. package/dist/handlers/database/index.d.ts +1 -1
  215. package/dist/handlers/database/index.d.ts.map +1 -1
  216. package/dist/handlers/database/keydb-cache.d.ts +14 -68
  217. package/dist/handlers/database/keydb-cache.d.ts.map +1 -1
  218. package/dist/handlers/database/keydb-cache.js +185 -203
  219. package/dist/handlers/database/keydb-cache.js.map +1 -1
  220. package/dist/handlers/database/migrations.d.ts +6 -12
  221. package/dist/handlers/database/migrations.d.ts.map +1 -1
  222. package/dist/handlers/database/migrations.js +36 -24
  223. package/dist/handlers/database/migrations.js.map +1 -1
  224. package/dist/handlers/database/neo4j-manager.d.ts +1 -58
  225. package/dist/handlers/database/neo4j-manager.d.ts.map +1 -1
  226. package/dist/handlers/database/neo4j-manager.js +25 -71
  227. package/dist/handlers/database/neo4j-manager.js.map +1 -1
  228. package/dist/handlers/database/query-builder.d.ts.map +1 -1
  229. package/dist/handlers/database/query-builder.js +2 -4
  230. package/dist/handlers/database/query-builder.js.map +1 -1
  231. package/dist/handlers/database/search-service.d.ts +0 -24
  232. package/dist/handlers/database/search-service.d.ts.map +1 -1
  233. package/dist/handlers/database/search-service.js +1 -33
  234. package/dist/handlers/database/search-service.js.map +1 -1
  235. package/dist/handlers/database/session-analytics.d.ts +36 -0
  236. package/dist/handlers/database/session-analytics.d.ts.map +1 -0
  237. package/dist/handlers/database/session-analytics.js +134 -0
  238. package/dist/handlers/database/session-analytics.js.map +1 -0
  239. package/dist/handlers/database/sqlite-manager.d.ts +11 -49
  240. package/dist/handlers/database/sqlite-manager.d.ts.map +1 -1
  241. package/dist/handlers/database/sqlite-manager.js +162 -182
  242. package/dist/handlers/database/sqlite-manager.js.map +1 -1
  243. package/dist/handlers/database/transaction-coordinator.d.ts +35 -0
  244. package/dist/handlers/database/transaction-coordinator.d.ts.map +1 -0
  245. package/dist/handlers/database/transaction-coordinator.js +142 -0
  246. package/dist/handlers/database/transaction-coordinator.js.map +1 -0
  247. package/dist/handlers/database/user-data.d.ts +78 -0
  248. package/dist/handlers/database/user-data.d.ts.map +1 -0
  249. package/dist/handlers/database/user-data.js +154 -0
  250. package/dist/handlers/database/user-data.js.map +1 -0
  251. package/dist/handlers/document-graph-handlers.d.ts +0 -7
  252. package/dist/handlers/document-graph-handlers.d.ts.map +1 -1
  253. package/dist/handlers/document-graph-handlers.js +351 -220
  254. package/dist/handlers/document-graph-handlers.js.map +1 -1
  255. package/dist/handlers/document-handlers.d.ts.map +1 -1
  256. package/dist/handlers/document-handlers.js +118 -126
  257. package/dist/handlers/document-handlers.js.map +1 -1
  258. package/dist/handlers/export-preset-handlers.d.ts +3 -0
  259. package/dist/handlers/export-preset-handlers.d.ts.map +1 -0
  260. package/dist/handlers/export-preset-handlers.js +97 -0
  261. package/dist/handlers/export-preset-handlers.js.map +1 -0
  262. package/dist/handlers/goals-handlers.js.map +1 -1
  263. package/dist/handlers/integrity-handlers.d.ts +0 -9
  264. package/dist/handlers/integrity-handlers.d.ts.map +1 -1
  265. package/dist/handlers/integrity-handlers.js +1 -10
  266. package/dist/handlers/integrity-handlers.js.map +1 -1
  267. package/dist/handlers/local-search-handlers.d.ts +4 -0
  268. package/dist/handlers/local-search-handlers.d.ts.map +1 -0
  269. package/dist/handlers/local-search-handlers.js +199 -0
  270. package/dist/handlers/local-search-handlers.js.map +1 -0
  271. package/dist/handlers/manuscript-analysis-handlers.d.ts +3 -0
  272. package/dist/handlers/manuscript-analysis-handlers.d.ts.map +1 -0
  273. package/dist/handlers/manuscript-analysis-handlers.js +174 -0
  274. package/dist/handlers/manuscript-analysis-handlers.js.map +1 -0
  275. package/dist/handlers/narrative-annotation-schema.d.ts +3 -0
  276. package/dist/handlers/narrative-annotation-schema.d.ts.map +1 -0
  277. package/dist/handlers/narrative-annotation-schema.js +1062 -0
  278. package/dist/handlers/narrative-annotation-schema.js.map +1 -0
  279. package/dist/handlers/narrative-lens-handlers.d.ts +8 -0
  280. package/dist/handlers/narrative-lens-handlers.d.ts.map +1 -0
  281. package/dist/handlers/narrative-lens-handlers.js +505 -0
  282. package/dist/handlers/narrative-lens-handlers.js.map +1 -0
  283. package/dist/handlers/project-handlers/discovery.d.ts +4 -0
  284. package/dist/handlers/project-handlers/discovery.d.ts.map +1 -0
  285. package/dist/handlers/project-handlers/discovery.js +231 -0
  286. package/dist/handlers/project-handlers/discovery.js.map +1 -0
  287. package/dist/handlers/project-handlers/lifecycle.d.ts +6 -0
  288. package/dist/handlers/project-handlers/lifecycle.d.ts.map +1 -0
  289. package/dist/handlers/project-handlers/lifecycle.js +241 -0
  290. package/dist/handlers/project-handlers/lifecycle.js.map +1 -0
  291. package/dist/handlers/project-handlers/manuscript.d.ts +4 -0
  292. package/dist/handlers/project-handlers/manuscript.d.ts.map +1 -0
  293. package/dist/handlers/project-handlers/manuscript.js +223 -0
  294. package/dist/handlers/project-handlers/manuscript.js.map +1 -0
  295. package/dist/handlers/project-handlers/snapshots.d.ts +6 -0
  296. package/dist/handlers/project-handlers/snapshots.d.ts.map +1 -0
  297. package/dist/handlers/project-handlers/snapshots.js +269 -0
  298. package/dist/handlers/project-handlers/snapshots.js.map +1 -0
  299. package/dist/handlers/project-handlers/structure.d.ts +3 -0
  300. package/dist/handlers/project-handlers/structure.d.ts.map +1 -0
  301. package/dist/handlers/project-handlers/structure.js +165 -0
  302. package/dist/handlers/project-handlers/structure.js.map +1 -0
  303. package/dist/handlers/project-handlers.d.ts +6 -14
  304. package/dist/handlers/project-handlers.d.ts.map +1 -1
  305. package/dist/handlers/project-handlers.js +10 -1015
  306. package/dist/handlers/project-handlers.js.map +1 -1
  307. package/dist/handlers/relationship-handlers.d.ts +0 -4
  308. package/dist/handlers/relationship-handlers.d.ts.map +1 -1
  309. package/dist/handlers/relationship-handlers.js +371 -276
  310. package/dist/handlers/relationship-handlers.js.map +1 -1
  311. package/dist/handlers/result-handlers.d.ts +3 -0
  312. package/dist/handlers/result-handlers.d.ts.map +1 -0
  313. package/dist/handlers/result-handlers.js +58 -0
  314. package/dist/handlers/result-handlers.js.map +1 -0
  315. package/dist/handlers/review-handlers.d.ts +3 -0
  316. package/dist/handlers/review-handlers.d.ts.map +1 -0
  317. package/dist/handlers/review-handlers.js +300 -0
  318. package/dist/handlers/review-handlers.js.map +1 -0
  319. package/dist/handlers/search-handlers.d.ts.map +1 -1
  320. package/dist/handlers/search-handlers.js +42 -113
  321. package/dist/handlers/search-handlers.js.map +1 -1
  322. package/dist/handlers/server-capabilities.d.ts +4 -13
  323. package/dist/handlers/server-capabilities.d.ts.map +1 -1
  324. package/dist/handlers/server-capabilities.js +3 -13
  325. package/dist/handlers/server-capabilities.js.map +1 -1
  326. package/dist/handlers/shared-schemas.d.ts +189 -20
  327. package/dist/handlers/shared-schemas.d.ts.map +1 -1
  328. package/dist/handlers/shared-schemas.js +270 -6
  329. package/dist/handlers/shared-schemas.js.map +1 -1
  330. package/dist/handlers/skill-registry.d.ts +29 -28
  331. package/dist/handlers/skill-registry.d.ts.map +1 -1
  332. package/dist/handlers/skill-registry.js +142 -102
  333. package/dist/handlers/skill-registry.js.map +1 -1
  334. package/dist/handlers/story-handlers.d.ts +357 -0
  335. package/dist/handlers/story-handlers.d.ts.map +1 -0
  336. package/dist/handlers/story-handlers.js +556 -0
  337. package/dist/handlers/story-handlers.js.map +1 -0
  338. package/dist/handlers/types.d.ts +18 -7
  339. package/dist/handlers/types.d.ts.map +1 -1
  340. package/dist/handlers/types.js.map +1 -1
  341. package/dist/handlers/validation-schemas.d.ts +0 -4
  342. package/dist/handlers/validation-schemas.d.ts.map +1 -1
  343. package/dist/handlers/validation-schemas.js +6 -19
  344. package/dist/handlers/validation-schemas.js.map +1 -1
  345. package/dist/handlers/workflow-handlers.d.ts +3 -0
  346. package/dist/handlers/workflow-handlers.d.ts.map +1 -0
  347. package/dist/handlers/workflow-handlers.js +302 -0
  348. package/dist/handlers/workflow-handlers.js.map +1 -0
  349. package/dist/http-approval.d.ts +8 -0
  350. package/dist/http-approval.d.ts.map +1 -0
  351. package/dist/http-approval.js +84 -0
  352. package/dist/http-approval.js.map +1 -0
  353. package/dist/http-auth.d.ts +53 -0
  354. package/dist/http-auth.d.ts.map +1 -0
  355. package/dist/http-auth.js +441 -0
  356. package/dist/http-auth.js.map +1 -0
  357. package/dist/http-server.d.ts +32 -0
  358. package/dist/http-server.d.ts.map +1 -0
  359. package/dist/http-server.js +284 -0
  360. package/dist/http-server.js.map +1 -0
  361. package/dist/index.js +374 -136
  362. package/dist/index.js.map +1 -1
  363. package/dist/memory-manager.d.ts +49 -26
  364. package/dist/memory-manager.d.ts.map +1 -1
  365. package/dist/memory-manager.js +443 -241
  366. package/dist/memory-manager.js.map +1 -1
  367. package/dist/project-types.d.ts +91 -0
  368. package/dist/project-types.d.ts.map +1 -0
  369. package/dist/project-types.js +2 -0
  370. package/dist/project-types.js.map +1 -0
  371. package/dist/scrivener-project.d.ts +107 -149
  372. package/dist/scrivener-project.d.ts.map +1 -1
  373. package/dist/scrivener-project.js +293 -850
  374. package/dist/scrivener-project.js.map +1 -1
  375. package/dist/services/agents/ai-collaboration.d.ts +34 -21
  376. package/dist/services/agents/ai-collaboration.d.ts.map +1 -1
  377. package/dist/services/agents/ai-collaboration.js +102 -60
  378. package/dist/services/agents/ai-collaboration.js.map +1 -1
  379. package/dist/services/ai/ai-client.d.ts +39 -13
  380. package/dist/services/ai/ai-client.d.ts.map +1 -1
  381. package/dist/services/ai/ai-client.js +306 -56
  382. package/dist/services/ai/ai-client.js.map +1 -1
  383. package/dist/services/ai/ai-writing-service.d.ts +14 -22
  384. package/dist/services/ai/ai-writing-service.d.ts.map +1 -1
  385. package/dist/services/ai/ai-writing-service.js +104 -114
  386. package/dist/services/ai/ai-writing-service.js.map +1 -1
  387. package/dist/services/ai/hms-vector-store.d.ts +26 -9
  388. package/dist/services/ai/hms-vector-store.d.ts.map +1 -1
  389. package/dist/services/ai/hms-vector-store.js +249 -38
  390. package/dist/services/ai/hms-vector-store.js.map +1 -1
  391. package/dist/services/ai/sampling-bridge.d.ts +12 -0
  392. package/dist/services/ai/sampling-bridge.d.ts.map +1 -0
  393. package/dist/services/ai/sampling-bridge.js +19 -0
  394. package/dist/services/ai/sampling-bridge.js.map +1 -0
  395. package/dist/services/ai/writing-style.d.ts +34 -0
  396. package/dist/services/ai/writing-style.d.ts.map +1 -0
  397. package/dist/services/ai/writing-style.js +94 -0
  398. package/dist/services/ai/writing-style.js.map +1 -0
  399. package/dist/services/ai/writing-suggestions.d.ts +39 -0
  400. package/dist/services/ai/writing-suggestions.d.ts.map +1 -0
  401. package/dist/services/ai/writing-suggestions.js +107 -0
  402. package/dist/services/ai/writing-suggestions.js.map +1 -0
  403. package/dist/services/analysis/nlp-sentiment-analyzer.d.ts +0 -9
  404. package/dist/services/analysis/nlp-sentiment-analyzer.d.ts.map +1 -1
  405. package/dist/services/analysis/nlp-sentiment-analyzer.js +36 -114
  406. package/dist/services/analysis/nlp-sentiment-analyzer.js.map +1 -1
  407. package/dist/services/auto-setup/ai-config-wizard.d.ts +0 -21
  408. package/dist/services/auto-setup/ai-config-wizard.d.ts.map +1 -1
  409. package/dist/services/auto-setup/ai-config-wizard.js +29 -45
  410. package/dist/services/auto-setup/ai-config-wizard.js.map +1 -1
  411. package/dist/services/auto-setup/auto-setup.d.ts +0 -12
  412. package/dist/services/auto-setup/auto-setup.d.ts.map +1 -1
  413. package/dist/services/auto-setup/auto-setup.js +31 -36
  414. package/dist/services/auto-setup/auto-setup.js.map +1 -1
  415. package/dist/services/auto-setup/first-run.d.ts +0 -12
  416. package/dist/services/auto-setup/first-run.d.ts.map +1 -1
  417. package/dist/services/auto-setup/first-run.js +25 -45
  418. package/dist/services/auto-setup/first-run.js.map +1 -1
  419. package/dist/services/auto-setup/keydb-installer.d.ts +0 -24
  420. package/dist/services/auto-setup/keydb-installer.d.ts.map +1 -1
  421. package/dist/services/auto-setup/keydb-installer.js +3 -39
  422. package/dist/services/auto-setup/keydb-installer.js.map +1 -1
  423. package/dist/services/binder-editor.d.ts +23 -0
  424. package/dist/services/binder-editor.d.ts.map +1 -0
  425. package/dist/services/binder-editor.js +287 -0
  426. package/dist/services/binder-editor.js.map +1 -0
  427. package/dist/services/compilation/ai-compiler.d.ts +24 -18
  428. package/dist/services/compilation/ai-compiler.d.ts.map +1 -1
  429. package/dist/services/compilation/ai-compiler.js +236 -155
  430. package/dist/services/compilation/ai-compiler.js.map +1 -1
  431. package/dist/services/compilation-service.d.ts +17 -14
  432. package/dist/services/compilation-service.d.ts.map +1 -1
  433. package/dist/services/compilation-service.js +128 -67
  434. package/dist/services/compilation-service.js.map +1 -1
  435. package/dist/services/compile-settings.d.ts +9 -14
  436. package/dist/services/compile-settings.d.ts.map +1 -1
  437. package/dist/services/compile-settings.js +35 -17
  438. package/dist/services/compile-settings.js.map +1 -1
  439. package/dist/services/content-credentials/archive-preparation.d.ts +3 -0
  440. package/dist/services/content-credentials/archive-preparation.d.ts.map +1 -0
  441. package/dist/services/content-credentials/archive-preparation.js +83 -0
  442. package/dist/services/content-credentials/archive-preparation.js.map +1 -0
  443. package/dist/services/content-credentials/binding.d.ts +24 -0
  444. package/dist/services/content-credentials/binding.d.ts.map +1 -0
  445. package/dist/services/content-credentials/binding.js +91 -0
  446. package/dist/services/content-credentials/binding.js.map +1 -0
  447. package/dist/services/content-credentials/crjson-assessment-assets.cjs +8 -0
  448. package/dist/services/content-credentials/crjson-assessment-assets.cjs.map +1 -0
  449. package/dist/services/content-credentials/crjson-assessment-assets.d.cts +2 -0
  450. package/dist/services/content-credentials/crjson-assessment-assets.d.cts.map +1 -0
  451. package/dist/services/content-credentials/crjson-assessment-files.d.ts +3 -0
  452. package/dist/services/content-credentials/crjson-assessment-files.d.ts.map +1 -0
  453. package/dist/services/content-credentials/crjson-assessment-files.js +38 -0
  454. package/dist/services/content-credentials/crjson-assessment-files.js.map +1 -0
  455. package/dist/services/content-credentials/crjson-assessment.d.ts +7 -0
  456. package/dist/services/content-credentials/crjson-assessment.d.ts.map +1 -0
  457. package/dist/services/content-credentials/crjson-assessment.js +187 -0
  458. package/dist/services/content-credentials/crjson-assessment.js.map +1 -0
  459. package/dist/services/content-credentials/formats.d.ts +4 -0
  460. package/dist/services/content-credentials/formats.d.ts.map +1 -0
  461. package/dist/services/content-credentials/formats.js +190 -0
  462. package/dist/services/content-credentials/formats.js.map +1 -0
  463. package/dist/services/content-credentials/key-access.d.ts +4 -0
  464. package/dist/services/content-credentials/key-access.d.ts.map +1 -0
  465. package/dist/services/content-credentials/key-access.js +118 -0
  466. package/dist/services/content-credentials/key-access.js.map +1 -0
  467. package/dist/services/content-credentials/key-policy.d.ts +24 -0
  468. package/dist/services/content-credentials/key-policy.d.ts.map +1 -0
  469. package/dist/services/content-credentials/key-policy.js +196 -0
  470. package/dist/services/content-credentials/key-policy.js.map +1 -0
  471. package/dist/services/content-credentials/limits.d.ts +10 -0
  472. package/dist/services/content-credentials/limits.d.ts.map +1 -0
  473. package/dist/services/content-credentials/limits.js +10 -0
  474. package/dist/services/content-credentials/limits.js.map +1 -0
  475. package/dist/services/content-credentials/local-files.d.ts +13 -0
  476. package/dist/services/content-credentials/local-files.d.ts.map +1 -0
  477. package/dist/services/content-credentials/local-files.js +163 -0
  478. package/dist/services/content-credentials/local-files.js.map +1 -0
  479. package/dist/services/content-credentials/process-environment.d.ts +2 -0
  480. package/dist/services/content-credentials/process-environment.d.ts.map +1 -0
  481. package/dist/services/content-credentials/process-environment.js +18 -0
  482. package/dist/services/content-credentials/process-environment.js.map +1 -0
  483. package/dist/services/content-credentials/publication-lineage.d.ts +34 -0
  484. package/dist/services/content-credentials/publication-lineage.d.ts.map +1 -0
  485. package/dist/services/content-credentials/publication-lineage.js +38 -0
  486. package/dist/services/content-credentials/publication-lineage.js.map +1 -0
  487. package/dist/services/content-credentials/sdk-worker.d.ts +15 -0
  488. package/dist/services/content-credentials/sdk-worker.d.ts.map +1 -0
  489. package/dist/services/content-credentials/sdk-worker.js +817 -0
  490. package/dist/services/content-credentials/sdk-worker.js.map +1 -0
  491. package/dist/services/content-credentials/service.d.ts +6 -0
  492. package/dist/services/content-credentials/service.d.ts.map +1 -0
  493. package/dist/services/content-credentials/service.js +438 -0
  494. package/dist/services/content-credentials/service.js.map +1 -0
  495. package/dist/services/content-credentials/trust.d.ts +3 -0
  496. package/dist/services/content-credentials/trust.d.ts.map +1 -0
  497. package/dist/services/content-credentials/trust.js +49 -0
  498. package/dist/services/content-credentials/trust.js.map +1 -0
  499. package/dist/services/content-credentials/types.d.ts +138 -0
  500. package/dist/services/content-credentials/types.d.ts.map +1 -0
  501. package/dist/services/content-credentials/types.js +2 -0
  502. package/dist/services/content-credentials/types.js.map +1 -0
  503. package/dist/services/content-credentials/worker-path.cjs +24 -0
  504. package/dist/services/content-credentials/worker-path.cjs.map +1 -0
  505. package/dist/services/content-credentials/worker-path.d.cts +4 -0
  506. package/dist/services/content-credentials/worker-path.d.cts.map +1 -0
  507. package/dist/services/document-classification.d.ts +10 -0
  508. package/dist/services/document-classification.d.ts.map +1 -0
  509. package/dist/services/document-classification.js +96 -0
  510. package/dist/services/document-classification.js.map +1 -0
  511. package/dist/services/document-indexer.d.ts +6 -31
  512. package/dist/services/document-indexer.d.ts.map +1 -1
  513. package/dist/services/document-indexer.js +15 -47
  514. package/dist/services/document-indexer.js.map +1 -1
  515. package/dist/services/document-manager-helpers.d.ts +3 -25
  516. package/dist/services/document-manager-helpers.d.ts.map +1 -1
  517. package/dist/services/document-manager-helpers.js +19 -32
  518. package/dist/services/document-manager-helpers.js.map +1 -1
  519. package/dist/services/document-manager.d.ts +27 -62
  520. package/dist/services/document-manager.d.ts.map +1 -1
  521. package/dist/services/document-manager.js +92 -598
  522. package/dist/services/document-manager.js.map +1 -1
  523. package/dist/services/document-references.d.ts +14 -14
  524. package/dist/services/document-references.d.ts.map +1 -1
  525. package/dist/services/document-references.js +75 -31
  526. package/dist/services/document-references.js.map +1 -1
  527. package/dist/services/document-tree.d.ts +38 -0
  528. package/dist/services/document-tree.d.ts.map +1 -0
  529. package/dist/services/document-tree.js +251 -0
  530. package/dist/services/document-tree.js.map +1 -0
  531. package/dist/services/document-writer.d.ts +30 -0
  532. package/dist/services/document-writer.d.ts.map +1 -0
  533. package/dist/services/document-writer.js +183 -0
  534. package/dist/services/document-writer.js.map +1 -0
  535. package/dist/services/editorial/analysis-envelope.d.ts +35 -0
  536. package/dist/services/editorial/analysis-envelope.d.ts.map +1 -0
  537. package/dist/services/editorial/analysis-envelope.js +59 -0
  538. package/dist/services/editorial/analysis-envelope.js.map +1 -0
  539. package/dist/services/editorial/change-impact.d.ts +78 -0
  540. package/dist/services/editorial/change-impact.d.ts.map +1 -0
  541. package/dist/services/editorial/change-impact.js +305 -0
  542. package/dist/services/editorial/change-impact.js.map +1 -0
  543. package/dist/services/editorial/continuity-nouns.d.ts +3 -0
  544. package/dist/services/editorial/continuity-nouns.d.ts.map +1 -0
  545. package/dist/services/editorial/continuity-nouns.js +49 -0
  546. package/dist/services/editorial/continuity-nouns.js.map +1 -0
  547. package/dist/services/editorial/continuity-service.d.ts +79 -0
  548. package/dist/services/editorial/continuity-service.d.ts.map +1 -0
  549. package/dist/services/editorial/continuity-service.js +621 -0
  550. package/dist/services/editorial/continuity-service.js.map +1 -0
  551. package/dist/services/editorial/lens-native.cjs +17 -0
  552. package/dist/services/editorial/lens-native.cjs.map +1 -0
  553. package/dist/services/editorial/lens-native.d.cts +3 -0
  554. package/dist/services/editorial/lens-native.d.cts.map +1 -0
  555. package/dist/services/editorial/mutation-coordinator.d.ts +170 -0
  556. package/dist/services/editorial/mutation-coordinator.d.ts.map +1 -0
  557. package/dist/services/editorial/mutation-coordinator.js +1300 -0
  558. package/dist/services/editorial/mutation-coordinator.js.map +1 -0
  559. package/dist/services/editorial/mutation-retention.d.ts +22 -0
  560. package/dist/services/editorial/mutation-retention.d.ts.map +1 -0
  561. package/dist/services/editorial/mutation-retention.js +142 -0
  562. package/dist/services/editorial/mutation-retention.js.map +1 -0
  563. package/dist/services/editorial/narrative-analysis.d.ts +175 -0
  564. package/dist/services/editorial/narrative-analysis.d.ts.map +1 -0
  565. package/dist/services/editorial/narrative-analysis.js +448 -0
  566. package/dist/services/editorial/narrative-analysis.js.map +1 -0
  567. package/dist/services/editorial/narrative-context.d.ts +28 -0
  568. package/dist/services/editorial/narrative-context.d.ts.map +1 -0
  569. package/dist/services/editorial/narrative-context.js +259 -0
  570. package/dist/services/editorial/narrative-context.js.map +1 -0
  571. package/dist/services/editorial/narrative-worker.d.ts +13 -0
  572. package/dist/services/editorial/narrative-worker.d.ts.map +1 -0
  573. package/dist/services/editorial/narrative-worker.js +143 -0
  574. package/dist/services/editorial/narrative-worker.js.map +1 -0
  575. package/dist/services/editorial/object-coreference.d.ts +2 -0
  576. package/dist/services/editorial/object-coreference.d.ts.map +1 -0
  577. package/dist/services/editorial/object-coreference.js +34 -0
  578. package/dist/services/editorial/object-coreference.js.map +1 -0
  579. package/dist/services/editorial/passage-search.d.ts +70 -0
  580. package/dist/services/editorial/passage-search.d.ts.map +1 -0
  581. package/dist/services/editorial/passage-search.js +770 -0
  582. package/dist/services/editorial/passage-search.js.map +1 -0
  583. package/dist/services/editorial/persistent-store.d.ts +44 -0
  584. package/dist/services/editorial/persistent-store.d.ts.map +1 -0
  585. package/dist/services/editorial/persistent-store.js +194 -0
  586. package/dist/services/editorial/persistent-store.js.map +1 -0
  587. package/dist/services/editorial/project-identity.d.ts +3 -0
  588. package/dist/services/editorial/project-identity.d.ts.map +1 -0
  589. package/dist/services/editorial/project-identity.js +16 -0
  590. package/dist/services/editorial/project-identity.js.map +1 -0
  591. package/dist/services/editorial/project-registry.d.ts +7 -0
  592. package/dist/services/editorial/project-registry.d.ts.map +1 -0
  593. package/dist/services/editorial/project-registry.js +65 -0
  594. package/dist/services/editorial/project-registry.js.map +1 -0
  595. package/dist/services/editorial/project-source.d.ts +25 -0
  596. package/dist/services/editorial/project-source.d.ts.map +1 -0
  597. package/dist/services/editorial/project-source.js +149 -0
  598. package/dist/services/editorial/project-source.js.map +1 -0
  599. package/dist/services/editorial/provenance.d.ts +10 -0
  600. package/dist/services/editorial/provenance.d.ts.map +1 -0
  601. package/dist/services/editorial/provenance.js +92 -0
  602. package/dist/services/editorial/provenance.js.map +1 -0
  603. package/dist/services/editorial/report-transport.d.ts +15 -0
  604. package/dist/services/editorial/report-transport.d.ts.map +1 -0
  605. package/dist/services/editorial/report-transport.js +166 -0
  606. package/dist/services/editorial/report-transport.js.map +1 -0
  607. package/dist/services/editorial/review-service.d.ts +145 -0
  608. package/dist/services/editorial/review-service.d.ts.map +1 -0
  609. package/dist/services/editorial/review-service.js +648 -0
  610. package/dist/services/editorial/review-service.js.map +1 -0
  611. package/dist/services/editorial/series-bible.d.ts +82 -0
  612. package/dist/services/editorial/series-bible.d.ts.map +1 -0
  613. package/dist/services/editorial/series-bible.js +471 -0
  614. package/dist/services/editorial/series-bible.js.map +1 -0
  615. package/dist/services/editorial/types.d.ts +53 -0
  616. package/dist/services/editorial/types.d.ts.map +1 -0
  617. package/dist/services/editorial/types.js +2 -0
  618. package/dist/services/editorial/types.js.map +1 -0
  619. package/dist/services/editorial/workflow-service.d.ts +132 -0
  620. package/dist/services/editorial/workflow-service.d.ts.map +1 -0
  621. package/dist/services/editorial/workflow-service.js +509 -0
  622. package/dist/services/editorial/workflow-service.js.map +1 -0
  623. package/dist/services/enhancements/ai-content-enhancer.d.ts +54 -7
  624. package/dist/services/enhancements/ai-content-enhancer.d.ts.map +1 -1
  625. package/dist/services/enhancements/ai-content-enhancer.js +123 -54
  626. package/dist/services/enhancements/ai-content-enhancer.js.map +1 -1
  627. package/dist/services/export/epub.d.ts +9 -0
  628. package/dist/services/export/epub.d.ts.map +1 -0
  629. package/dist/services/export/epub.js +177 -0
  630. package/dist/services/export/epub.js.map +1 -0
  631. package/dist/services/export/export-presets.d.ts +47 -0
  632. package/dist/services/export/export-presets.d.ts.map +1 -0
  633. package/dist/services/export/export-presets.js +144 -0
  634. package/dist/services/export/export-presets.js.map +1 -0
  635. package/dist/services/export/language.d.ts +2 -0
  636. package/dist/services/export/language.d.ts.map +1 -0
  637. package/dist/services/export/language.js +13 -0
  638. package/dist/services/export/language.js.map +1 -0
  639. package/dist/services/export/manuscript-exporters.d.ts +9 -8
  640. package/dist/services/export/manuscript-exporters.d.ts.map +1 -1
  641. package/dist/services/export/manuscript-exporters.js +174 -62
  642. package/dist/services/export/manuscript-exporters.js.map +1 -1
  643. package/dist/services/memory/hhm/benchmark.js +3 -3
  644. package/dist/services/memory/hhm/benchmark.js.map +1 -1
  645. package/dist/services/memory/hhm/document-index.d.ts +35 -0
  646. package/dist/services/memory/hhm/document-index.d.ts.map +1 -0
  647. package/dist/services/memory/hhm/document-index.js +410 -0
  648. package/dist/services/memory/hhm/document-index.js.map +1 -0
  649. package/dist/services/memory/hhm/holographic-memory-system.d.ts +26 -5
  650. package/dist/services/memory/hhm/holographic-memory-system.d.ts.map +1 -1
  651. package/dist/services/memory/hhm/holographic-memory-system.js +443 -223
  652. package/dist/services/memory/hhm/holographic-memory-system.js.map +1 -1
  653. package/dist/services/memory/hhm/native-loader.cjs +20 -0
  654. package/dist/services/memory/hhm/native-loader.cjs.map +1 -0
  655. package/dist/services/memory/hhm/native-loader.d.cts +6 -0
  656. package/dist/services/memory/hhm/native-loader.d.cts.map +1 -0
  657. package/dist/services/memory/project-memory-contract.d.ts +124 -0
  658. package/dist/services/memory/project-memory-contract.d.ts.map +1 -0
  659. package/dist/services/memory/project-memory-contract.js +226 -0
  660. package/dist/services/memory/project-memory-contract.js.map +1 -0
  661. package/dist/services/memory/project-memory-database.d.ts +5 -0
  662. package/dist/services/memory/project-memory-database.d.ts.map +1 -0
  663. package/dist/services/memory/project-memory-database.js +178 -0
  664. package/dist/services/memory/project-memory-database.js.map +1 -0
  665. package/dist/services/memory/warm-models.d.ts +9 -0
  666. package/dist/services/memory/warm-models.d.ts.map +1 -0
  667. package/dist/services/memory/warm-models.js +107 -0
  668. package/dist/services/memory/warm-models.js.map +1 -0
  669. package/dist/services/metadata-manager.d.ts +3 -47
  670. package/dist/services/metadata-manager.d.ts.map +1 -1
  671. package/dist/services/metadata-manager.js +27 -90
  672. package/dist/services/metadata-manager.js.map +1 -1
  673. package/dist/services/parsers/rtf-handler.d.ts +3 -54
  674. package/dist/services/parsers/rtf-handler.d.ts.map +1 -1
  675. package/dist/services/parsers/rtf-handler.js +102 -422
  676. package/dist/services/parsers/rtf-handler.js.map +1 -1
  677. package/dist/services/parsers/rtf-splice.d.ts +1 -20
  678. package/dist/services/parsers/rtf-splice.d.ts.map +1 -1
  679. package/dist/services/parsers/rtf-splice.js +104 -163
  680. package/dist/services/parsers/rtf-splice.js.map +1 -1
  681. package/dist/services/parsers/rtf-text.d.ts +12 -0
  682. package/dist/services/parsers/rtf-text.d.ts.map +1 -0
  683. package/dist/services/parsers/rtf-text.js +240 -0
  684. package/dist/services/parsers/rtf-text.js.map +1 -0
  685. package/dist/services/parsers/rtf-validation.d.ts +9 -0
  686. package/dist/services/parsers/rtf-validation.d.ts.map +1 -0
  687. package/dist/services/parsers/rtf-validation.js +85 -0
  688. package/dist/services/parsers/rtf-validation.js.map +1 -0
  689. package/dist/services/personalization/personalization-service.d.ts +0 -15
  690. package/dist/services/personalization/personalization-service.d.ts.map +1 -1
  691. package/dist/services/personalization/personalization-service.js +8 -16
  692. package/dist/services/personalization/personalization-service.js.map +1 -1
  693. package/dist/services/personalization/types.d.ts +0 -9
  694. package/dist/services/personalization/types.d.ts.map +1 -1
  695. package/dist/services/personalization/types.js +1 -9
  696. package/dist/services/personalization/types.js.map +1 -1
  697. package/dist/services/project-content.d.ts +54 -0
  698. package/dist/services/project-content.d.ts.map +1 -0
  699. package/dist/services/project-content.js +165 -0
  700. package/dist/services/project-content.js.map +1 -0
  701. package/dist/services/project-context-bridge.d.ts +33 -0
  702. package/dist/services/project-context-bridge.d.ts.map +1 -0
  703. package/dist/services/project-context-bridge.js +155 -0
  704. package/dist/services/project-context-bridge.js.map +1 -0
  705. package/dist/services/project-document-info.d.ts +30 -0
  706. package/dist/services/project-document-info.d.ts.map +1 -0
  707. package/dist/services/project-document-info.js +125 -0
  708. package/dist/services/project-document-info.js.map +1 -0
  709. package/dist/services/project-exporter.d.ts +47 -0
  710. package/dist/services/project-exporter.d.ts.map +1 -0
  711. package/dist/services/project-exporter.js +520 -0
  712. package/dist/services/project-exporter.js.map +1 -0
  713. package/dist/services/project-loader.d.ts +15 -28
  714. package/dist/services/project-loader.d.ts.map +1 -1
  715. package/dist/services/project-loader.js +136 -68
  716. package/dist/services/project-loader.js.map +1 -1
  717. package/dist/services/project-metadata-editor.d.ts +43 -0
  718. package/dist/services/project-metadata-editor.d.ts.map +1 -0
  719. package/dist/services/project-metadata-editor.js +146 -0
  720. package/dist/services/project-metadata-editor.js.map +1 -0
  721. package/dist/services/project-reports.d.ts +32 -0
  722. package/dist/services/project-reports.d.ts.map +1 -0
  723. package/dist/services/project-reports.js +107 -0
  724. package/dist/services/project-reports.js.map +1 -0
  725. package/dist/services/project-snapshots.d.ts +39 -0
  726. package/dist/services/project-snapshots.d.ts.map +1 -0
  727. package/dist/services/project-snapshots.js +128 -0
  728. package/dist/services/project-snapshots.js.map +1 -0
  729. package/dist/services/project-trash.d.ts +19 -0
  730. package/dist/services/project-trash.d.ts.map +1 -0
  731. package/dist/services/project-trash.js +64 -0
  732. package/dist/services/project-trash.js.map +1 -0
  733. package/dist/services/project-writer.d.ts +39 -0
  734. package/dist/services/project-writer.d.ts.map +1 -0
  735. package/dist/services/project-writer.js +163 -0
  736. package/dist/services/project-writer.js.map +1 -0
  737. package/dist/services/queue/job-queue.d.ts +107 -39
  738. package/dist/services/queue/job-queue.d.ts.map +1 -1
  739. package/dist/services/queue/job-queue.js +721 -355
  740. package/dist/services/queue/job-queue.js.map +1 -1
  741. package/dist/services/queue/keydb-detector.d.ts +1 -10
  742. package/dist/services/queue/keydb-detector.d.ts.map +1 -1
  743. package/dist/services/queue/keydb-detector.js +51 -30
  744. package/dist/services/queue/keydb-detector.js.map +1 -1
  745. package/dist/services/queue/project-scope.d.ts +19 -0
  746. package/dist/services/queue/project-scope.d.ts.map +1 -0
  747. package/dist/services/queue/project-scope.js +55 -0
  748. package/dist/services/queue/project-scope.js.map +1 -0
  749. package/dist/services/relationship-engine.d.ts +92 -59
  750. package/dist/services/relationship-engine.d.ts.map +1 -1
  751. package/dist/services/relationship-engine.js +230 -355
  752. package/dist/services/relationship-engine.js.map +1 -1
  753. package/dist/services/snapshots.d.ts +2 -9
  754. package/dist/services/snapshots.d.ts.map +1 -1
  755. package/dist/services/snapshots.js +195 -87
  756. package/dist/services/snapshots.js.map +1 -1
  757. package/dist/services/web-content-parser.d.ts +0 -60
  758. package/dist/services/web-content-parser.d.ts.map +1 -1
  759. package/dist/services/web-content-parser.js +10 -91
  760. package/dist/services/web-content-parser.js.map +1 -1
  761. package/dist/setup/clients.d.ts +56 -0
  762. package/dist/setup/clients.d.ts.map +1 -0
  763. package/dist/setup/clients.js +282 -0
  764. package/dist/setup/clients.js.map +1 -0
  765. package/dist/setup/config-file.d.ts +13 -0
  766. package/dist/setup/config-file.d.ts.map +1 -0
  767. package/dist/setup/config-file.js +158 -0
  768. package/dist/setup/config-file.js.map +1 -0
  769. package/dist/setup/doctor.d.ts +14 -0
  770. package/dist/setup/doctor.d.ts.map +1 -0
  771. package/dist/setup/doctor.js +217 -0
  772. package/dist/setup/doctor.js.map +1 -0
  773. package/dist/setup/first-session.d.ts +15 -0
  774. package/dist/setup/first-session.d.ts.map +1 -0
  775. package/dist/setup/first-session.js +88 -0
  776. package/dist/setup/first-session.js.map +1 -0
  777. package/dist/setup/links.d.ts +14 -0
  778. package/dist/setup/links.d.ts.map +1 -0
  779. package/dist/setup/links.js +18 -0
  780. package/dist/setup/links.js.map +1 -0
  781. package/dist/setup/redaction.d.ts +2 -0
  782. package/dist/setup/redaction.d.ts.map +1 -0
  783. package/dist/setup/redaction.js +2 -0
  784. package/dist/setup/redaction.js.map +1 -0
  785. package/dist/setup/runtime.d.ts +37 -0
  786. package/dist/setup/runtime.d.ts.map +1 -0
  787. package/dist/setup/runtime.js +173 -0
  788. package/dist/setup/runtime.js.map +1 -0
  789. package/dist/setup/toml-config.d.ts +25 -0
  790. package/dist/setup/toml-config.d.ts.map +1 -0
  791. package/dist/setup/toml-config.js +193 -0
  792. package/dist/setup/toml-config.js.map +1 -0
  793. package/dist/sync/context-sync.d.ts +0 -48
  794. package/dist/sync/context-sync.d.ts.map +1 -1
  795. package/dist/sync/context-sync.js +10 -69
  796. package/dist/sync/context-sync.js.map +1 -1
  797. package/dist/types/database.d.ts.map +1 -1
  798. package/dist/types/index.d.ts +10 -0
  799. package/dist/types/index.d.ts.map +1 -1
  800. package/dist/types/index.js +0 -3
  801. package/dist/types/index.js.map +1 -1
  802. package/dist/types/internal.d.ts +35 -22
  803. package/dist/types/internal.d.ts.map +1 -1
  804. package/dist/types/internal.js.map +1 -1
  805. package/dist/utils/adaptive-timeout.d.ts +0 -18
  806. package/dist/utils/adaptive-timeout.d.ts.map +1 -1
  807. package/dist/utils/adaptive-timeout.js +1 -27
  808. package/dist/utils/adaptive-timeout.js.map +1 -1
  809. package/dist/utils/binder-tree.d.ts +10 -0
  810. package/dist/utils/binder-tree.d.ts.map +1 -0
  811. package/dist/utils/binder-tree.js +31 -0
  812. package/dist/utils/binder-tree.js.map +1 -0
  813. package/dist/utils/common.d.ts +29 -45
  814. package/dist/utils/common.d.ts.map +1 -1
  815. package/dist/utils/common.js +66 -98
  816. package/dist/utils/common.js.map +1 -1
  817. package/dist/utils/condition-waiter.d.ts.map +1 -1
  818. package/dist/utils/condition-waiter.js.map +1 -1
  819. package/dist/utils/database.d.ts +3 -48
  820. package/dist/utils/database.d.ts.map +1 -1
  821. package/dist/utils/database.js +1 -74
  822. package/dist/utils/database.js.map +1 -1
  823. package/dist/utils/document-operations.d.ts +6 -21
  824. package/dist/utils/document-operations.d.ts.map +1 -1
  825. package/dist/utils/document-operations.js +146 -320
  826. package/dist/utils/document-operations.js.map +1 -1
  827. package/dist/utils/env-config.d.ts +15 -3
  828. package/dist/utils/env-config.d.ts.map +1 -1
  829. package/dist/utils/env-config.js +106 -33
  830. package/dist/utils/env-config.js.map +1 -1
  831. package/dist/utils/json-parse.d.ts +2 -5
  832. package/dist/utils/json-parse.d.ts.map +1 -1
  833. package/dist/utils/json-parse.js +10 -15
  834. package/dist/utils/json-parse.js.map +1 -1
  835. package/dist/utils/json-schema-validator.d.ts +3 -0
  836. package/dist/utils/json-schema-validator.d.ts.map +1 -0
  837. package/dist/utils/json-schema-validator.js +15 -0
  838. package/dist/utils/json-schema-validator.js.map +1 -0
  839. package/dist/utils/markup.d.ts +3 -0
  840. package/dist/utils/markup.d.ts.map +1 -0
  841. package/dist/utils/markup.js +12 -0
  842. package/dist/utils/markup.js.map +1 -0
  843. package/dist/utils/network-resilience.d.ts +0 -6
  844. package/dist/utils/network-resilience.d.ts.map +1 -1
  845. package/dist/utils/network-resilience.js +0 -13
  846. package/dist/utils/network-resilience.js.map +1 -1
  847. package/dist/utils/operation-metrics.d.ts +1 -13
  848. package/dist/utils/operation-metrics.d.ts.map +1 -1
  849. package/dist/utils/operation-metrics.js +1 -13
  850. package/dist/utils/operation-metrics.js.map +1 -1
  851. package/dist/utils/permission-manager.d.ts +1 -16
  852. package/dist/utils/permission-manager.d.ts.map +1 -1
  853. package/dist/utils/permission-manager.js +10 -32
  854. package/dist/utils/permission-manager.js.map +1 -1
  855. package/dist/utils/predictive-cache.d.ts +6 -32
  856. package/dist/utils/predictive-cache.d.ts.map +1 -1
  857. package/dist/utils/predictive-cache.js +77 -101
  858. package/dist/utils/predictive-cache.js.map +1 -1
  859. package/dist/utils/project-utils.d.ts +0 -12
  860. package/dist/utils/project-utils.d.ts.map +1 -1
  861. package/dist/utils/project-utils.js +17 -27
  862. package/dist/utils/project-utils.js.map +1 -1
  863. package/dist/utils/prompt-input.d.ts +0 -7
  864. package/dist/utils/prompt-input.d.ts.map +1 -1
  865. package/dist/utils/prompt-input.js +1 -7
  866. package/dist/utils/prompt-input.js.map +1 -1
  867. package/dist/utils/redaction.d.ts +3 -0
  868. package/dist/utils/redaction.d.ts.map +1 -0
  869. package/dist/utils/redaction.js +23 -0
  870. package/dist/utils/redaction.js.map +1 -0
  871. package/dist/utils/scrivener-app.d.ts +0 -14
  872. package/dist/utils/scrivener-app.d.ts.map +1 -1
  873. package/dist/utils/scrivener-app.js +2 -13
  874. package/dist/utils/scrivener-app.js.map +1 -1
  875. package/dist/utils/scrivener-utils.d.ts +31 -106
  876. package/dist/utils/scrivener-utils.d.ts.map +1 -1
  877. package/dist/utils/scrivener-utils.js +124 -142
  878. package/dist/utils/scrivener-utils.js.map +1 -1
  879. package/dist/utils/scrivener-xml.d.ts +14 -0
  880. package/dist/utils/scrivener-xml.d.ts.map +1 -0
  881. package/dist/utils/scrivener-xml.js +73 -0
  882. package/dist/utils/scrivener-xml.js.map +1 -0
  883. package/dist/utils/shared-patterns.d.ts +2 -34
  884. package/dist/utils/shared-patterns.d.ts.map +1 -1
  885. package/dist/utils/shared-patterns.js +2 -96
  886. package/dist/utils/shared-patterns.js.map +1 -1
  887. package/dist/utils/sqlite.d.ts +18 -0
  888. package/dist/utils/sqlite.d.ts.map +1 -0
  889. package/dist/utils/sqlite.js +96 -0
  890. package/dist/utils/sqlite.js.map +1 -0
  891. package/dist/utils/text-diff.d.ts +0 -9
  892. package/dist/utils/text-diff.d.ts.map +1 -1
  893. package/dist/utils/text-diff.js +1 -8
  894. package/dist/utils/text-diff.js.map +1 -1
  895. package/dist/utils/text-metrics.d.ts +3 -29
  896. package/dist/utils/text-metrics.d.ts.map +1 -1
  897. package/dist/utils/text-metrics.js +28 -57
  898. package/dist/utils/text-metrics.js.map +1 -1
  899. package/native/c2pa-binding/Cargo.lock +3507 -0
  900. package/native/c2pa-binding/Cargo.toml +31 -0
  901. package/native/c2pa-binding/README.md +49 -0
  902. package/native/c2pa-binding/THIRD_PARTY_LICENSES.txt +12692 -0
  903. package/native/c2pa-binding/c2pa-0.91.7.crate +0 -0
  904. package/native/c2pa-binding/osv-scanner.toml +14 -0
  905. package/native/c2pa-binding/sdk-patches.json +29 -0
  906. package/native/c2pa-binding/src/lib.rs +247 -0
  907. package/package.json +152 -132
  908. package/scripts/benchmark-editorial.mjs +427 -0
  909. package/scripts/benchmark-hms-fallback.ts +60 -0
  910. package/scripts/benchmark-mutation-history.ts +316 -0
  911. package/scripts/benchmark-passage-scale.ts +476 -0
  912. package/scripts/bootstrap-mac.sh +149 -0
  913. package/scripts/build-c2pa-binding.mjs +139 -0
  914. package/scripts/build-mcpb.sh +100 -0
  915. package/scripts/check-c2pa-binding.mjs +110 -0
  916. package/scripts/check-c2pa-compatibility.mjs +900 -0
  917. package/scripts/check-c2pa-supply-chain.mjs +688 -0
  918. package/scripts/check-container-smoke.mjs +360 -0
  919. package/scripts/check-dashboard.mjs +222 -0
  920. package/scripts/check-epub-export.mjs +166 -0
  921. package/scripts/check-export-rendering.mjs +333 -0
  922. package/scripts/check-hms-compatibility.mjs +395 -0
  923. package/scripts/check-narrative-lens.mjs +67 -0
  924. package/scripts/check-native-rtf.mjs +120 -0
  925. package/scripts/check-output-conformance.mjs +1450 -156
  926. package/scripts/check-project-queue-isolation.mjs +268 -0
  927. package/scripts/check-redis-backend.mjs +669 -0
  928. package/scripts/check-release-candidate.mjs +511 -0
  929. package/scripts/check-release-smoke.mjs +1704 -0
  930. package/scripts/check-runtime-policy.mjs +74 -0
  931. package/scripts/check-save-roundtrip.mjs +135 -0
  932. package/scripts/check-tool-registry.mjs +88 -84
  933. package/scripts/check-warm-models.mjs +124 -0
  934. package/scripts/codex-launcher.mjs +7 -0
  935. package/scripts/count-workflow-tokens.py +41 -0
  936. package/scripts/coverage-ledger.mjs +867 -0
  937. package/scripts/create-c2pa-fixtures.mjs +926 -0
  938. package/scripts/create-c2pa-inventory.mjs +1099 -0
  939. package/scripts/evaluate-editorial.mjs +311 -0
  940. package/scripts/generate-continuity-nouns.mjs +126 -0
  941. package/scripts/generate-narrative-annotation-schema.mjs +163 -0
  942. package/scripts/lib/benchmark-process-tree.ts +84 -0
  943. package/scripts/measure-token-workflow.mjs +215 -0
  944. package/scripts/postinstall.cjs +46 -66
  945. package/scripts/prepare.cjs +25 -0
  946. package/scripts/setup-advanced.cjs +9 -12
  947. package/scripts/stage-bundle.sh +116 -0
  948. package/scripts/tests/test_update_comparison.py +82 -0
  949. package/scripts/uninstall.js +0 -3
  950. package/scripts/update-comparison.py +147 -0
  951. package/vendor/deepmerge/LICENSE +21 -0
  952. package/vendor/deepmerge/README.md +18 -0
  953. package/vendor/deepmerge/index.cjs +158 -0
  954. package/vendor/deepmerge/index.d.ts +24 -0
  955. package/vendor/deepmerge/package.json +9 -0
  956. package/dist/core/config-manager.d.ts +0 -222
  957. package/dist/core/config-manager.d.ts.map +0 -1
  958. package/dist/core/config-manager.js +0 -598
  959. package/dist/core/config-manager.js.map +0 -1
  960. package/dist/handlers/database/connection-pool-advanced.d.ts +0 -121
  961. package/dist/handlers/database/connection-pool-advanced.d.ts.map +0 -1
  962. package/dist/handlers/database/connection-pool-advanced.js +0 -476
  963. package/dist/handlers/database/connection-pool-advanced.js.map +0 -1
  964. package/dist/handlers/database/connection-pool.d.ts +0 -87
  965. package/dist/handlers/database/connection-pool.d.ts.map +0 -1
  966. package/dist/handlers/database/connection-pool.js +0 -263
  967. package/dist/handlers/database/connection-pool.js.map +0 -1
  968. package/dist/handlers/database/neo4j-connection-pool.d.ts +0 -112
  969. package/dist/handlers/database/neo4j-connection-pool.d.ts.map +0 -1
  970. package/dist/handlers/database/neo4j-connection-pool.js +0 -377
  971. package/dist/handlers/database/neo4j-connection-pool.js.map +0 -1
  972. package/dist/handlers/database/neo4j-optimizer.d.ts +0 -122
  973. package/dist/handlers/database/neo4j-optimizer.d.ts.map +0 -1
  974. package/dist/handlers/database/neo4j-optimizer.js +0 -410
  975. package/dist/handlers/database/neo4j-optimizer.js.map +0 -1
  976. package/dist/handlers/database/retrieved-context.d.ts +0 -12
  977. package/dist/handlers/database/retrieved-context.d.ts.map +0 -1
  978. package/dist/handlers/database/retrieved-context.js +0 -16
  979. package/dist/handlers/database/retrieved-context.js.map +0 -1
  980. package/dist/handlers/database/semantic-database-layer.d.ts +0 -141
  981. package/dist/handlers/database/semantic-database-layer.d.ts.map +0 -1
  982. package/dist/handlers/database/semantic-database-layer.js +0 -589
  983. package/dist/handlers/database/semantic-database-layer.js.map +0 -1
  984. package/dist/handlers/database/sqlite-optimizer.d.ts +0 -93
  985. package/dist/handlers/database/sqlite-optimizer.d.ts.map +0 -1
  986. package/dist/handlers/database/sqlite-optimizer.js +0 -320
  987. package/dist/handlers/database/sqlite-optimizer.js.map +0 -1
  988. package/dist/handlers/database/story-intelligence.d.ts +0 -88
  989. package/dist/handlers/database/story-intelligence.d.ts.map +0 -1
  990. package/dist/handlers/database/story-intelligence.js +0 -477
  991. package/dist/handlers/database/story-intelligence.js.map +0 -1
  992. package/dist/handlers/database/writing-analytics.d.ts +0 -95
  993. package/dist/handlers/database/writing-analytics.d.ts.map +0 -1
  994. package/dist/handlers/database/writing-analytics.js +0 -414
  995. package/dist/handlers/database/writing-analytics.js.map +0 -1
  996. package/dist/services/ai/ai-semantic-extractor.d.ts +0 -38
  997. package/dist/services/ai/ai-semantic-extractor.d.ts.map +0 -1
  998. package/dist/services/ai/ai-semantic-extractor.js +0 -130
  999. package/dist/services/ai/ai-semantic-extractor.js.map +0 -1
  1000. package/dist/services/enhancements/content-enhancer.d.ts +0 -94
  1001. package/dist/services/enhancements/content-enhancer.d.ts.map +0 -1
  1002. package/dist/services/enhancements/content-enhancer.js +0 -234
  1003. package/dist/services/enhancements/content-enhancer.js.map +0 -1
  1004. package/dist/services/enhancements/enhancement-templates.d.ts +0 -25
  1005. package/dist/services/enhancements/enhancement-templates.d.ts.map +0 -1
  1006. package/dist/services/enhancements/enhancement-templates.js +0 -373
  1007. package/dist/services/enhancements/enhancement-templates.js.map +0 -1
  1008. package/dist/services/enhancements/enhancers/clarity-enhancer.d.ts +0 -33
  1009. package/dist/services/enhancements/enhancers/clarity-enhancer.d.ts.map +0 -1
  1010. package/dist/services/enhancements/enhancers/clarity-enhancer.js +0 -489
  1011. package/dist/services/enhancements/enhancers/clarity-enhancer.js.map +0 -1
  1012. package/dist/services/enhancements/enhancers/description-enhancer.d.ts +0 -23
  1013. package/dist/services/enhancements/enhancers/description-enhancer.d.ts.map +0 -1
  1014. package/dist/services/enhancements/enhancers/description-enhancer.js +0 -378
  1015. package/dist/services/enhancements/enhancers/description-enhancer.js.map +0 -1
  1016. package/dist/services/enhancements/enhancers/dialogue-enhancer.d.ts +0 -7
  1017. package/dist/services/enhancements/enhancers/dialogue-enhancer.d.ts.map +0 -1
  1018. package/dist/services/enhancements/enhancers/dialogue-enhancer.js +0 -58
  1019. package/dist/services/enhancements/enhancers/dialogue-enhancer.js.map +0 -1
  1020. package/dist/services/enhancements/enhancers/emotion-enhancer.d.ts +0 -12
  1021. package/dist/services/enhancements/enhancers/emotion-enhancer.d.ts.map +0 -1
  1022. package/dist/services/enhancements/enhancers/emotion-enhancer.js +0 -177
  1023. package/dist/services/enhancements/enhancers/emotion-enhancer.js.map +0 -1
  1024. package/dist/services/enhancements/enhancers/index.d.ts +0 -7
  1025. package/dist/services/enhancements/enhancers/index.d.ts.map +0 -1
  1026. package/dist/services/enhancements/enhancers/index.js +0 -8
  1027. package/dist/services/enhancements/enhancers/index.js.map +0 -1
  1028. package/dist/services/enhancements/enhancers/pacing-enhancer.d.ts +0 -11
  1029. package/dist/services/enhancements/enhancers/pacing-enhancer.d.ts.map +0 -1
  1030. package/dist/services/enhancements/enhancers/pacing-enhancer.js +0 -164
  1031. package/dist/services/enhancements/enhancers/pacing-enhancer.js.map +0 -1
  1032. package/dist/services/enhancements/enhancers/style-enhancer.d.ts +0 -26
  1033. package/dist/services/enhancements/enhancers/style-enhancer.d.ts.map +0 -1
  1034. package/dist/services/enhancements/enhancers/style-enhancer.js +0 -374
  1035. package/dist/services/enhancements/enhancers/style-enhancer.js.map +0 -1
  1036. package/dist/services/enhancements/filter-words.d.ts +0 -15
  1037. package/dist/services/enhancements/filter-words.d.ts.map +0 -1
  1038. package/dist/services/enhancements/filter-words.js +0 -158
  1039. package/dist/services/enhancements/filter-words.js.map +0 -1
  1040. package/dist/services/openai/modules/index.d.ts +0 -24
  1041. package/dist/services/openai/modules/index.d.ts.map +0 -1
  1042. package/dist/services/openai/modules/index.js +0 -55
  1043. package/dist/services/openai/modules/index.js.map +0 -1
  1044. package/dist/services/queue/memory-redis.d.ts +0 -59
  1045. package/dist/services/queue/memory-redis.d.ts.map +0 -1
  1046. package/dist/services/queue/memory-redis.js +0 -547
  1047. package/dist/services/queue/memory-redis.js.map +0 -1
  1048. package/dist/types/enhancements.d.ts +0 -74
  1049. package/dist/types/enhancements.d.ts.map +0 -1
  1050. package/dist/types/enhancements.js +0 -5
  1051. package/dist/types/enhancements.js.map +0 -1
  1052. package/dist/utils/adaptive-memory.d.ts +0 -141
  1053. package/dist/utils/adaptive-memory.d.ts.map +0 -1
  1054. package/dist/utils/adaptive-memory.js +0 -577
  1055. package/dist/utils/adaptive-memory.js.map +0 -1
  1056. package/dist/utils/advanced-performance.d.ts +0 -143
  1057. package/dist/utils/advanced-performance.d.ts.map +0 -1
  1058. package/dist/utils/advanced-performance.js +0 -560
  1059. package/dist/utils/advanced-performance.js.map +0 -1
  1060. package/dist/utils/object-pool.d.ts +0 -143
  1061. package/dist/utils/object-pool.d.ts.map +0 -1
  1062. package/dist/utils/object-pool.js +0 -575
  1063. package/dist/utils/object-pool.js.map +0 -1
  1064. package/dist/utils/observability.d.ts +0 -199
  1065. package/dist/utils/observability.d.ts.map +0 -1
  1066. package/dist/utils/observability.js +0 -548
  1067. package/dist/utils/observability.js.map +0 -1
  1068. package/dist/utils/simd-text-processor.d.ts +0 -78
  1069. package/dist/utils/simd-text-processor.d.ts.map +0 -1
  1070. package/dist/utils/simd-text-processor.js +0 -302
  1071. package/dist/utils/simd-text-processor.js.map +0 -1
  1072. package/dist/utils/style-guide-formatter.d.ts +0 -29
  1073. package/dist/utils/style-guide-formatter.d.ts.map +0 -1
  1074. package/dist/utils/style-guide-formatter.js +0 -121
  1075. package/dist/utils/style-guide-formatter.js.map +0 -1
  1076. package/scripts/setup.cjs +0 -136
  1077. package/scripts/setup.js +0 -117
package/README.md CHANGED
@@ -1,46 +1,28 @@
1
- <p align="center">
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/writerslogic/scrivener-mcp/main/assets/logo-white.svg"/>
4
- <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/writerslogic/scrivener-mcp/main/assets/logo-black.svg"/>
5
- <img src="https://raw.githubusercontent.com/writerslogic/scrivener-mcp/main/assets/logo-black.svg" alt="Scrivener MCP Logo" width="200"/>
6
- </picture>
7
- </p>
1
+ ### Scrivener MCP
8
2
 
9
- <h1 align="center">Scrivener MCP</h1>
3
+ <picture><source media="(prefers-color-scheme: dark)" srcset="assets/logo-white.svg"><img align="left" width="96" src="assets/logo-black.svg" alt="Scrivener MCP logo"></picture>
10
4
 
11
- <p align="center">
12
- <strong>Connect your Scrivener projects to Claude, ChatGPT, and other AI assistants</strong>
13
- </p>
5
+ MCP server for Scrivener: connect your novels, screenplays, and manuscripts to Claude, ChatGPT, and
6
+ any AI assistant, with document management, writing analysis, content enhancement, offline semantic
7
+ search, and character/plot tracking.
14
8
 
15
- <p align="center">
16
- <a href="https://www.npmjs.com/package/scrivener-mcp">
17
- <img src="https://img.shields.io/npm/v/scrivener-mcp.svg" alt="npm version"/>
18
- </a>
19
- <img src="https://img.shields.io/npm/dm/scrivener-mcp.svg" alt="npm downloads"/>
20
- <a href="https://github.com/writerslogic/scrivener-mcp/actions">
21
- <img src="https://github.com/writerslogic/scrivener-mcp/actions/workflows/ci.yml/badge.svg" alt="build"/>
22
- </a>
23
- <a href="https://scorecard.dev/viewer/?uri=github.com/writerslogic/scrivener-mcp"><img src="https://api.securityscorecards.dev/projects/github.com/writerslogic/scrivener-mcp/badge" alt="OpenSSF Scorecard"></a>
24
- <a href="https://github.com/writerslogic/scrivener-mcp/blob/main/LICENSE">
25
- <img src="https://img.shields.io/github/license/writerslogic/scrivener-mcp" alt="license"/>
26
- </a>
27
- <img src="https://img.shields.io/node/v/scrivener-mcp" alt="node version"/>
28
- <a href="https://github.com/writerslogic/scrivener-mcp/issues">
29
- <img src="https://img.shields.io/github/issues/writerslogic/scrivener-mcp" alt="issues"/>
30
- </a>
31
- <a href="https://github.com/writerslogic/scrivener-mcp/stargazers">
32
- <img src="https://img.shields.io/github/stars/writerslogic/scrivener-mcp" alt="stars"/>
33
- </a>
34
- <a href="https://mseep.ai/app/writerslogic-scrivener-mcp">
35
- <img src="https://img.shields.io/badge/MseeP-verified-green.svg" alt="MseeP verified"/>
36
- </a>
37
- <a href="https://glama.ai/mcp/servers/writerslogic/scrivener-mcp">
38
- <img src="https://glama.ai/mcp/servers/writerslogic/scrivener-mcp/badges/score.svg" alt="scrivener-mcp MCP server score"/>
39
- </a>
40
- </p>
9
+ <br clear="left">
10
+
11
+ Start with the [safe first session](docs/getting-started.md#first-successful-editorial-session),
12
+ then use [editorial review and workflows](docs/editorial-workflows.md),
13
+ [export presets](docs/export-presets.md), [Content Credentials](docs/content-credentials.md), or the
14
+ [Windows guide](docs/install-windows.md). [Compatibility evidence](docs/SCRIVENER_COMPATIBILITY.md)
15
+ records actual coverage and limits.
16
+
17
+ [![CI](https://img.shields.io/github/actions/workflow/status/writerslogic/scrivener-mcp/ci.yml?branch=main&label=CI)](https://github.com/writerslogic/scrivener-mcp/actions/workflows/ci.yml)
18
+ [![CodeQL](https://github.com/writerslogic/scrivener-mcp/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/writerslogic/scrivener-mcp/actions/workflows/codeql.yml)
19
+ [![OpenSSF Scorecard](https://img.shields.io/ossf-scorecard/github.com/writerslogic/scrivener-mcp)](https://securityscorecards.dev/viewer/?uri=github.com/writerslogic/scrivener-mcp)
20
+ [![npm](https://img.shields.io/npm/v/scrivener-mcp.svg)](https://www.npmjs.com/package/scrivener-mcp)
21
+ [![License](https://img.shields.io/badge/license-AGPL--3.0--only-blue)](https://github.com/writerslogic/scrivener-mcp/blob/main/LICENSE)
41
22
 
42
23
  <p align="center">
43
24
  <a href="#install">Install</a> &middot;
25
+ <a href="#mac-app-draftbridge-for-scrivener-499">Mac App</a> &middot;
44
26
  <a href="#what-you-can-do">What You Can Do</a> &middot;
45
27
  <a href="#all-tools">All Tools</a> &middot;
46
28
  <a href="#guides">Guides</a> &middot;
@@ -49,361 +31,498 @@
49
31
 
50
32
  ---
51
33
 
52
- Scrivener MCP lets your AI assistant open, read, edit, analyze, and search your Scrivener projects directly. No copy-pasting. No exporting. Tell your assistant which project to open, and start working.
34
+ Scrivener MCP lets your AI assistant open, read, edit, analyze, and search your Scrivener projects
35
+ directly. No exporting, no copy-pasting text back and forth. Tell it which project to open and start
36
+ working.
53
37
 
54
38
  > **You:** Open my novel and analyze the pacing in Chapter 12.
55
39
  >
56
- > **Claude:** *Opens your .scriv project, reads Chapter 12, runs pacing analysis.*
57
- > The first half moves well with short, tense paragraphs. The middle section slows
58
- > considerably -- the three-page internal monologue starting at paragraph 14 stalls
59
- > the momentum you built in the confrontation scene. Consider cutting it to a single
60
- > paragraph and moving the backstory to Chapter 8 where Elena is first introduced.
40
+ > **Claude:** _Opens the .scriv project, reads Chapter 12, runs pacing analysis._ The first half
41
+ > moves well, but the middle stalls — a three-page internal monologue starting at paragraph 14 kills
42
+ > the momentum you built in the confrontation scene. Consider cutting it to a paragraph and moving
43
+ > the backstory to Chapter 8.
61
44
 
62
- Works with [Claude Desktop](https://claude.ai/download), [Claude Code](https://docs.anthropic.com/en/docs/claude-code), VS Code (Copilot/Continue), Cursor, and any MCP-compatible client. Scrivener 3 on macOS, Windows, and Linux. Listed on the [official MCP Registry](https://registry.modelcontextprotocol.io) as `io.github.writerslogic/scrivener-mcp`.
45
+ Works with [Claude Desktop](https://claude.ai/download),
46
+ [Claude Code](https://docs.anthropic.com/en/docs/claude-code), VS Code (Copilot/Continue), Cursor,
47
+ and any MCP-compatible client. Reads Scrivener 3 projects on the
48
+ [supported platforms](#requirements). Listed on the
49
+ [official MCP Registry](https://registry.modelcontextprotocol.io) as
50
+ `io.github.writerslogic/scrivener-mcp`.
63
51
 
64
- ## Install
52
+ ![Scrivener MCP capability map: project and document management, local search, persistent memory and story bibles, AI writing, craft analysis, continuity, relationships, goals, dashboards, automation, reviewed edits, and publishing.](assets/infographics/capability-map.png)
65
53
 
66
- Pick the method that works for you. Most auto-configure **Claude Desktop** on install. **Claude Code** and other clients need one extra step -- see [Claude Code](#claude-code) below.
54
+ ## Install
67
55
 
68
- ### npm (recommended)
56
+ ### Mac app: Draftbridge for Scrivener, $4.99
69
57
 
70
- ```bash
71
- npm install -g scrivener-mcp
72
- ```
58
+ **Not a terminal person?**
59
+ **[Draftbridge for Scrivener](https://buy.stripe.com/14A8wHbm64Y0dR8fFdc7u01)** is the ready-made
60
+ Mac app. It finds your AI apps — Claude Desktop, BoltAI, Cursor, VS Code, LM Studio, Raycast, Claude
61
+ Code, Grok Build — connects Scrivener MCP to each with one click, shows your projects, and repairs the
62
+ connection after an app update. No Terminal, no Node.js, no settings files. One-time $4.99, up to 3
63
+ Macs, signed and notarized by Apple.
73
64
 
74
- Restart Claude Desktop. Done.
65
+ <p align="center">
66
+ <picture><source media="(prefers-color-scheme: dark)" srcset="assets/draftbridge/ready-dark.png"><img src="assets/draftbridge/ready-light.png" alt="Draftbridge showing Claude Desktop and BoltAI connected, and the Scrivener projects it found" width="380"></picture>
67
+ &nbsp;
68
+ <picture><source media="(prefers-color-scheme: dark)" srcset="assets/draftbridge/purchase-dark.png"><img src="assets/draftbridge/purchase-light.png" alt="The Draftbridge purchase window" width="300"></picture>
69
+ </p>
75
70
 
76
- ### Claude Code
71
+ The server, setup tool, and Claude Desktop extension here stay free and open source. The app is
72
+ closed source; the fee buys the notarized build and supports development. See the
73
+ [Mac install guide](./docs/install-mac.md) and [FAQ](./docs/faq.md). Report app problems with the
74
+ `mac-app` label.
77
75
 
78
- Installing the npm package does **not** register the server with Claude Code -- the install-time auto-config only writes Claude Desktop's config. After installing, register the server:
76
+ ### Free: Claude Desktop extension or command line
79
77
 
80
- ```bash
81
- npx scrivener-setup
82
- ```
78
+ Prefer to do it yourself? The `.mcpb` extension (Claude Desktop only) and the terminal setup below
79
+ do the same job for free.
83
80
 
84
- This detects Claude Code (along with Claude Desktop and Cursor) and writes the config for you. To register it manually instead:
81
+ From a terminal:
85
82
 
86
83
  ```bash
87
- claude mcp add -s user scrivener -- npx scrivener-mcp
84
+ npm install -g scrivener-mcp
88
85
  ```
89
86
 
90
- Then restart Claude Code (or run `/mcp` to reconnect) and Scrivener MCP appears in the server list. Drop `-s user` to scope it to the current project instead of all projects.
91
-
92
- ### Smithery
87
+ Restart Claude Desktop and it's ready. Other clients need one more step:
93
88
 
94
89
  ```bash
95
- npx -y @smithery/cli install scrivener-mcp --client claude
90
+ npx scrivener-setup
96
91
  ```
97
92
 
98
- ### npx (no install)
93
+ This finds Claude Desktop, Claude Code, Cursor, VS Code, LM Studio, BoltAI, Raycast, and Grok Build
94
+ and configures them for you, then confirms the server starts. No Node.js on your Mac? See the
95
+ [Mac install guide](./docs/install-mac.md). To set up Claude Code by hand instead:
96
+ `claude mcp add -s user scrivener -- npx scrivener-mcp`, then restart it (or run `/mcp`).
97
+
98
+ <details>
99
+ <summary><strong>Other ways to install</strong></summary>
99
100
 
100
- Use directly without installing globally:
101
+ **npx, no install**
101
102
 
102
103
  ```bash
103
104
  npx scrivener-mcp
104
105
  ```
105
106
 
106
- Or add to your Claude Desktop config manually:
107
+ or add it to Claude Desktop's config directly:
107
108
 
108
109
  ```json
109
110
  {
110
- "mcpServers": {
111
- "scrivener": {
112
- "command": "npx",
113
- "args": ["scrivener-mcp"]
114
- }
115
- }
111
+ "mcpServers": {
112
+ "scrivener": { "command": "npx", "args": ["scrivener-mcp"] }
113
+ }
116
114
  }
117
115
  ```
118
116
 
119
- ### GitHub
120
-
121
- Install directly from the repo (latest main):
122
-
123
- ```bash
124
- npm install -g writerslogic/scrivener-mcp
125
- ```
126
-
127
- Or a specific release:
117
+ **From GitHub**
128
118
 
129
119
  ```bash
130
- npm install -g writerslogic/scrivener-mcp#v0.5.1
120
+ npm install -g writerslogic/scrivener-mcp # latest main; requires pinned Rust/wasm-pack
121
+ npm install -g writerslogic/scrivener-mcp#v0.12.0 # a specific release
131
122
  ```
132
123
 
133
- ### Homebrew (macOS)
124
+ **Homebrew (macOS)**
134
125
 
135
126
  ```bash
136
127
  brew install writerslogic/tap/scrivener-mcp
137
128
  ```
138
129
 
139
- ### Docker
130
+ **Docker**
140
131
 
141
132
  ```bash
142
- docker build -t scrivener-mcp https://github.com/writerslogic/scrivener-mcp.git
143
- docker run -i --rm -v /path/to/your/projects:/projects scrivener-mcp
133
+ docker build --platform linux/amd64 -t scrivener-mcp https://github.com/writerslogic/scrivener-mcp.git
134
+ docker run --platform linux/amd64 -i --rm -v /path/to/your/projects:/projects scrivener-mcp
144
135
  ```
145
136
 
146
- <details>
147
- <summary><strong>Setup for other MCP clients</strong></summary>
148
-
149
- Run the interactive setup to auto-detect and configure your client:
150
-
151
- ```bash
152
- npx scrivener-setup
153
- ```
137
+ The container uses Linux x64 with glibc because the pinned Narrative Lens 0.2.0 package has no Linux
138
+ ARM64 or musl binary. Linux ARM64 and musl hosts can use this Docker configuration; ARM hosts need
139
+ Docker's amd64 emulation. The image runs as the non-root `node` user;
140
+ mounted project directories must permit that user to read and write.
154
141
 
155
- This detects Claude Desktop, Claude Code, and Cursor, and writes the config for you.
156
-
157
- For other MCP clients, point them at `npx scrivener-mcp` as a stdio server.
142
+ Any other MCP client: point it at `npx scrivener-mcp` as a stdio server.
158
143
 
159
144
  </details>
160
145
 
161
146
  <details>
162
147
  <summary><strong>Optional: AI-powered features</strong></summary>
163
148
 
164
- Core features (document management, analysis, search) work without any API key. For AI-powered enhancements, the server automatically discovers your OpenAI key from common locations:
149
+ Document management, deterministic analysis, local passage search, and project memory work with no
150
+ API key. Provider-assisted interpretation, generation and enhancement use Anthropic, OpenAI or
151
+ OpenRouter. Set more than one and Claude handles chat by default; override with `AI_PROVIDER=openai`
152
+ or `AI_PROVIDER=openrouter` (OpenRouter defaults to `anthropic/claude-sonnet-4.6`, change it with
153
+ `OPENROUTER_MODEL`). If the active provider fails on an account-level error — bad key, no credit, an
154
+ outage — the server retries on the next one you've configured. If your MCP client supports
155
+ [sampling](https://modelcontextprotocol.io/docs/concepts/sampling), chat-based features can run
156
+ through the client's own model on legacy MCP connections, no separate key needed. MCP 2026-07-28 connections currently use configured providers for AI features; modern multi-round sampling is not implemented. Passage retrieval runs locally
157
+ through Holographic Memory 0.7.0; interpretation and explanations are optional provider features.
165
158
 
166
- - `OPENAI_API_KEY` environment variable
167
- - `~/.env`, `~/.scrivener-mcp/.env`, `~/.openai/key`
168
- - macOS Keychain (service name `openai-api-key`)
159
+ Keys are picked up automatically from:
169
160
 
170
- To store your key in the macOS Keychain:
161
+ - `ANTHROPIC_API_KEY` / `OPENAI_API_KEY` / `OPENROUTER_API_KEY`
162
+ - `~/.env` or `~/.scrivener-mcp/.env`
163
+ - `~/.anthropic/key`, `~/.openai/key`, `~/.openrouter/key`
164
+ - macOS Keychain (`anthropic-api-key` / `openai-api-key` / `openrouter-api-key`)
171
165
 
172
166
  ```bash
173
- security add-generic-password -s openai-api-key -a openai -w sk-your-key-here
167
+ security add-generic-password -s anthropic-api-key -a anthropic -w sk-ant-your-key-here # Keychain
168
+ export ANTHROPIC_API_KEY="sk-ant-..." # or export it directly
174
169
  ```
175
170
 
176
- Or export it manually:
171
+ </details>
172
+
173
+ <details>
174
+ <summary><strong>Optional: offline embedding and reranking models</strong></summary>
175
+
176
+ Local passage search works without installing a model runtime. To use your own offline ONNX
177
+ embedding or reranking models with a global installation, install the optional runtime alongside the
178
+ server:
177
179
 
178
180
  ```bash
179
- export OPENAI_API_KEY="sk-..."
181
+ npm install -g scrivener-mcp '@huggingface/transformers@^4.3.2'
180
182
  ```
181
183
 
182
- This enables: content enhancement, semantic search, multi-agent analysis, character consistency checking, and intelligent compilation.
184
+ For a local installation, run the same command without `-g` in the server's installation directory.
185
+ Set `SCRIVENER_WARM_EMBED_MODEL_PATH` to a complete local model directory and provide
186
+ `SCRIVENER_WARM_EMBED_MODEL_ID` and `SCRIVENER_WARM_EMBED_REVISION`. Set
187
+ `SCRIVENER_WARM_RERANK_MODEL_PATH` to enable a local reranker. No model weights are downloaded; the
188
+ available options are listed in [.env.example](.env.example).
183
189
 
184
190
  </details>
185
191
 
186
192
  ## What You Can Do
187
193
 
188
- > **First, open a project.** The server acts on whatever `.scriv` project you point it at -- it has no link to the Scrivener app and can't see what you have open there. Start a conversation with *"Open my Scrivener project at `~/Documents/My Novel.scriv`"* (or *"Discover my Scrivener projects"* if you don't know the path), then give your commands. On macOS you can also just say *"Use the project I have open in Scrivener"* -- it detects the open project and opens it (the first time, macOS asks you to allow controlling Scrivener). Do this once at the start of each conversation; the examples below all assume a project is open. If the same project is also open and unsaved in the Scrivener app, save or close it there first to avoid conflicting writes.
189
-
190
- ### Manage Your Manuscript
191
-
192
- Open any Scrivener project and work with it naturally. Read chapters, create new scenes, reorganize the binder, update synopses -- all through conversation.
193
-
194
- > **You:** Create a new scene called "The Reveal" after Chapter 5, and move the old epilogue to the trash.
195
-
196
- ### Analyze Your Writing
197
-
198
- Get detailed feedback on readability, pacing, style, dialogue quality, and emotional arc. Not generic advice -- analysis grounded in your actual prose.
199
-
200
- > **You:** Analyze Chapter 3. Is the pacing too slow?
201
- >
202
- > **Claude:** Readability is good (Flesch-Kincaid grade 8.2), but pacing flags:
203
- > - 4 consecutive paragraphs of internal monologue (lines 45-78) with no action or dialogue
204
- > - The scene is 3,200 words with only 2 scene breaks -- your other chapters average 4
205
- > - Filter word density is 2x your manuscript average ("felt", "seemed", "noticed")
206
- > Specific suggestions: ...
207
-
208
- ### Enhance Your Prose
209
-
210
- Apply targeted improvements: eliminate filter words, strengthen verbs, vary sentence structure, add sensory details, convert telling to showing, tighten dialogue, adjust pacing.
211
-
212
- > **You:** Eliminate the filter words in Chapter 7 and strengthen the verbs.
213
-
214
- ### Track Characters and Plot
215
-
216
- Store character profiles, plot threads, and style guides that persist with your project. The AI remembers your characters across sessions.
217
-
218
- > **You:** Save a character profile for Marcus: retired detective, cynical but fair, walks with a limp from an old injury, speaks in clipped sentences.
219
- >
220
- > *Later...*
221
- >
222
- > **You:** Check if Marcus is consistent across all chapters.
223
- >
224
- > **Claude:** Found an inconsistency: Marcus walks "briskly" in Chapter 9 (line 34), but his limp is referenced in Chapters 2, 5, and 11. Also, his dialogue in Chapter 4 uses long flowing sentences, which contradicts the "clipped sentences" note in his profile.
225
-
226
- ### Search by Meaning
227
-
228
- Find passages by what they're about, not just keyword matching. "Find scenes where the protagonist feels isolated" works even if the word "isolated" never appears. Powered by the [Holographic Memory System](https://www.npmjs.com/package/holographic-memory) -- works offline, no API key needed.
229
-
230
- > **You:** Find all scenes where Elena and Marcus are alone together.
231
-
232
- ### Track Relationships
233
-
234
- Store and query relationships between characters, locations, themes, and plot threads. No Neo4j required -- relationships live in the semantic memory engine and persist with your project.
235
-
236
- > **You:** Who is connected to Marcus? What plot threads involve the lighthouse?
237
-
238
- ### Compile and Export
239
-
240
- Combine chapters into a single manuscript with configurable formatting, separators, and structure preservation. Export the result inline as Markdown, HTML, or JSON, or write a DOCX, EPUB, or PDF file to disk for submission, e-readers, or print.
194
+ > For manuscript operations, open a project first. The server has no link to the Scrivener app
195
+ > itself and can't see what's open there. Say _"Open my Scrivener project at
196
+ > `~/Documents/My Novel.scriv`"_, or _"Discover my Scrivener projects"_ if you don't know the path.
197
+ > On macOS, _"Use the project I have open in Scrivener"_ works too (the first time, macOS will ask
198
+ > permission to control Scrivener). Do this once per conversation. If the project is also open and
199
+ > unsaved in Scrivener itself, save or close it there first, or the two can write over each other.
200
+
201
+ **Manage your manuscript.** Read chapters, create scenes, reorganize the binder, update synopses —
202
+ all through conversation. _"Create a new scene called 'The Reveal' after Chapter 5, and move the old
203
+ epilogue to the trash."_
204
+
205
+ **Analyze your writing.** Readability, pacing, style, dialogue quality, emotional arc — grounded in
206
+ your actual prose, not generic advice. Ask whether a chapter's pacing is off and get specifics:
207
+ which paragraphs stall, how the scene compares to your other chapters, filter-word density against
208
+ your own average.
209
+
210
+ **Enhance your prose.** Targeted edits: cut filter words, strengthen verbs, vary sentence structure,
211
+ add sensory detail, turn telling into showing, tighten dialogue, fix pacing.
212
+
213
+ **Track characters and plot.** Character profiles, plot threads, and style guides persist with the
214
+ project across sessions. Save a profile for a character once; a consistency check months later
215
+ catches contradictions — dialogue that doesn't sound like them, a limp that disappears for a
216
+ chapter.
217
+
218
+ **Search by meaning.** [Warm 0.7.0](https://www.npmjs.com/package/writerslogic-warm) combines native
219
+ BM25 with local embeddings and optional cross-encoder reranking. Configure local ONNX models for
220
+ general semantic search; the default encoder covers a disclosed English story-concept vocabulary.
221
+ Results include exact passages, locations and saved revisions; changed passages update incrementally.
222
+ No embedding provider is required. See [local search configuration](docs/editorial-workflows.md#find-passages-locally).
223
+
224
+ **Track relationships.** Record and query how characters, locations, themes, and plot threads
225
+ connect. Relationships persist in the project's local SQLite state. Discovery proposes unrecorded
226
+ character/location pairs using saved-text co-occurrence with source revisions.
227
+
228
+ **Compile and export.** Assemble chapters into one manuscript with your own formatting and structure
229
+ preserved. Export inline as Markdown, HTML, or JSON, or write a DOCX, EPUB, or PDF to disk.
230
+
231
+ **Sign and validate exports.** Activate `credentials` with `use_skill({"name":"credentials"})`, then
232
+ call `c2pa_capabilities` to inspect the installed SDK. Export a PDF with `export_project`, sign it
233
+ to a new embedded output with `sign_content_credentials`, and check that output with
234
+ `validate_content_credentials`. Credential operations run locally without an open project and use
235
+ administrator-configured signing material. They do not establish human authorship or formal C2PA
236
+ conformance. See [Content Credentials](docs/content-credentials.md) for setup, mode coverage and
237
+ limits.
241
238
 
242
239
  ## All Tools
243
240
 
244
- 57 tools organized by workflow. To keep token usage low, tools load progressively -- project tools at startup, document and search tools when you open a project, and the rest on demand (your AI client activates them automatically, or calls them directly and the owning skill activates on the fly). Set `SCRIVENER_MCP_EAGER_TOOLS=1` to load everything at once.
241
+ 84 tools organized by workflow. MCP 2026-07-28 connections list all of them at once. On earlier
242
+ protocol versions, tools load progressively to keep token usage low — project tools at startup,
243
+ document and search tools once a project is open, the rest on demand. Set
244
+ `SCRIVENER_MCP_EAGER_TOOLS=1` to load everything up front.
245
245
 
246
246
  <details>
247
247
  <summary><strong>Project</strong> -- open, browse, manage</summary>
248
248
 
249
- | Tool | What it does |
250
- |------|-------------|
251
- | `open_project` | Open a .scriv project (accepts .scriv folders or .scrivx files) and make it active |
252
- | `discover_projects` | Scan common locations for Scrivener projects when you don't know the path |
253
- | `detect_open_project` | Detect the project currently open in the Scrivener app (macOS) so you don't need a path |
254
- | `get_structure` | Browse the binder hierarchy (folders, documents, word counts) |
255
- | `refresh_project` | Reload from disk after external edits |
256
- | `close_project` | Close the active project and flush pending changes |
257
- | `verify_project_integrity` | Read-only scan for structural problems (missing/duplicate UUIDs, unreadable content) |
258
- | `get_compile_settings` | Read the project's compile formats and taxonomy -- labels/statuses (with colors), collections, section types |
259
- | `get_manuscript_briefing` | One "where am I?" snapshot: words vs. target (% to goal), document/status/label counts, longest/shortest documents |
260
- | `list_snapshots` | List Scrivener snapshots (title, date) for one document or the whole project |
261
- | `read_snapshot` | Read a snapshot's text as plain text, with word count |
262
- | `compare_snapshot` | Diff a snapshot against the current document (or another snapshot): paragraphs added/removed and net word change |
263
- | `create_snapshot` | Take a Scrivener-native snapshot of a document (restorable from Scrivener's own Snapshots browser) before editing |
249
+ | Tool | What it does |
250
+ | -------------------------- | ------------------------------------------------------------------------------------------------------------------ |
251
+ | `open_project` | Open a .scriv project (accepts .scriv folders or .scrivx files) and make it active |
252
+ | `discover_projects` | Scan common locations for Scrivener projects when you don't know the path |
253
+ | `detect_open_project` | Detect the project currently open in the Scrivener app (macOS) so you don't need a path |
254
+ | `get_structure` | Browse the binder hierarchy (folders, documents, word counts) |
255
+ | `refresh_project` | Reload from disk after external edits |
256
+ | `close_project` | Close the active project and flush pending changes |
257
+ | `verify_project_integrity` | Read-only scan for structural problems (missing/duplicate UUIDs, unreadable content) |
258
+ | `get_compile_settings` | Read the project's compile formats and taxonomy -- labels/statuses (with colors), collections, section types |
259
+ | `get_manuscript_briefing` | One "where am I?" snapshot: words vs. target (% to goal), document/status/label counts, longest/shortest documents |
260
+ | `list_snapshots` | List Scrivener snapshots (title, date) for one document or the whole project |
261
+ | `read_snapshot` | Read a snapshot's text as plain text, with word count |
262
+ | `compare_snapshot` | Diff a snapshot against the current document (or another snapshot): paragraphs added/removed and net word change |
263
+ | `create_snapshot` | Take a Scrivener-native snapshot of a document (restorable from Scrivener's own Snapshots browser) before editing |
264
264
 
265
265
  </details>
266
266
 
267
267
  <details>
268
268
  <summary><strong>Documents</strong> -- read, write, create, organize</summary>
269
269
 
270
- | Tool | What it does |
271
- |------|-------------|
272
- | `get_document_info` | Metadata for one document (title, type, word count, synopsis, label, status) |
273
- | `read_document` | Read content; `format: "formatted"` for rich text, `offset`/`limit` to page long docs |
274
- | `write_document` | Replace a document's content (atomic, with pre-write backup) |
275
- | `create_document` | Create a new text document or folder |
276
- | `update_document` | Change title and/or metadata (synopsis, notes, label, status, custom fields) |
277
- | `move_document` | Reorganize within the binder |
278
- | `delete_document` | Move to trash (reversible) |
270
+ | Tool | What it does |
271
+ | ---------------------- | ----------------------------------------------------------------------------------------------- |
272
+ | `get_document_info` | Metadata for one document (title, type, word count, synopsis, label, status) |
273
+ | `read_document` | Read content; `format: "formatted"` for rich text, `offset`/`limit` to page long docs |
274
+ | `write_document` | Replace saved content with revision checks, native snapshots and disclosed formatting risks |
275
+ | `review_changes` | Propose, preview, selectively approve or reject, apply batches, recover and undo saved edits |
276
+ | `manuscript_dashboard` | Interactive binder, scene context, pacing, findings and review; text fallback for other clients |
277
+ | `create_document` | Create a new text document or folder |
278
+ | `update_document` | Change title and/or metadata (synopsis, notes, label, status, custom fields) |
279
+ | `move_document` | Reorganize within the binder |
280
+ | `delete_document` | Move to trash (reversible) |
279
281
 
280
282
  </details>
281
283
 
282
284
  <details>
283
285
  <summary><strong>Search</strong> -- find content, passages, and mentions</summary>
284
286
 
285
- | Tool | What it does |
286
- |------|-------------|
287
- | `search` | Keyword/full-text search; `field: "title"` for titles, `scope: "trash"` for trash |
288
- | `semantic_search` | Find passages by meaning using embeddings, with similarity scores |
289
- | `find_mentions` | Locate every occurrence of a specific name or term, with context |
290
- | `list_trash` | List trashed documents |
291
- | `restore_document` | Restore a document from trash |
292
- | `read_annotations` | Read a document's comments and footnotes |
287
+ | Tool | What it does |
288
+ | ------------------ | ---------------------------------------------------------------------------------------------------------- |
289
+ | `search` | Literal full-text search across the active binder; `field: "title"` for titles, `scope: "trash"` for trash |
290
+ | `semantic_search` | Local concept-vector passage retrieval, with scores, context and source revisions; no API key |
291
+ | `search_passages` | Local keyword, bounded English concept, or hybrid retrieval with exact quoted evidence |
292
+ | `find_mentions` | Locate every occurrence of a specific name or term, with context |
293
+ | `list_trash` | List trashed documents |
294
+ | `restore_document` | Restore a document from trash |
295
+ | `read_annotations` | Read a document's comments and footnotes |
293
296
 
294
297
  </details>
295
298
 
296
299
  <details>
297
300
  <summary><strong>Analysis</strong> -- quality, consistency, structure</summary>
298
301
 
299
- | Tool | What it does |
300
- |------|-------------|
301
- | `analyze_document` | AI writing analysis; focus with `aspects` (structure, style, pacing, themes...) |
302
- | `check_consistency` | Project-wide continuity check; `scope` for plot, characters, or timeline |
303
- | `analyze_writing_style` | Style-focused analysis |
304
- | `check_plot_consistency` | Plot-thread consistency check |
305
- | `suggest_improvements` | AI-generated improvement suggestions |
306
- | `enhance_content` | Suggest a specific improvement to a document |
307
- | `generate_content` | Generate new prose from a prompt and context |
308
- | `set_writing_goal` | Set a word-count goal (daily, weekly, or whole project) with an optional target date |
309
- | `get_writing_goals` | List goals with progress -- percent complete, words remaining, on-pace status |
310
- | `set_writing_preferences` | Set author preferences (tone, complexity, length, POV, style guide) that steer AI output |
311
- | `get_writing_preferences` | Show current preferences plus feedback insights and suggestions |
312
- | `collect_feedback` | Record a rating/comment on an AI operation to inform those insights |
313
-
314
- **Enhancement types:** `eliminate-filter-words`, `strengthen-verbs`, `vary-sentences`, `add-sensory-details`, `show-dont-tell`, `improve-flow`, `enhance-descriptions`, `strengthen-dialogue`, `fix-pacing`, `expand`, `condense`, `rewrite`
302
+ | Tool | What it does |
303
+ | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
304
+ | `analyze_document` | Analyze complete saved text; `analysisTypes` steers provider issues, with explicit broad local fallback and revision checks |
305
+ | `check_consistency` | Evidence-backed continuity report with source revisions, canon and inferred candidates |
306
+ | `continuity_findings` | Confirm, dismiss, resolve and recheck evidence-bound continuity findings |
307
+ | `analyze_writing_style` | Style-focused analysis |
308
+ | `check_plot_consistency` | Plot-thread consistency check |
309
+ | `suggest_improvements` | AI-generated improvement suggestions |
310
+ | `enhance_content` | Propose a complete saved-document rewrite with source revisions; maximum 12000 UTF-16 characters |
311
+ | `generate_content` | Generate prose from a prompt, saved-text excerpts and character profiles with revision-checked context |
312
+ | `set_writing_goal` | Set a word-count goal (daily, weekly, or whole project) with an optional target date |
313
+ | `get_writing_goals` | List goals with progress -- percent complete, words remaining, on-pace status |
314
+ | `set_writing_preferences` | Set author preferences (tone, complexity, length, POV, style guide) that steer AI output |
315
+ | `get_writing_preferences` | Show current preferences plus feedback insights and suggestions |
316
+ | `collect_feedback` | Record a rating/comment on an AI operation to inform those insights |
317
+ | `analyze_manuscript_local` | Local manuscript findings with exact evidence, author controls, coverage, persistent baselines and revision comparisons |
318
+ | `analyze_narrative_annotations` | Check author-supplied causality, knowledge, promises, subtext and other annotations against saved quotations |
319
+ | `analyze_craft_local` | Offline readability, grammar, syntax-tension, dialogue, and word-frequency report for one document (narrative-lens, no AI call) |
320
+ | `check_continuity_local` | Offline timeline and world-state continuity pass across the manuscript |
321
+ | `analyze_foreshadowing_local` | Offline setup/payoff tracking across scenes |
322
+ | `measure_voice_drift_local` | Compare a character's earlier vs later dialogue for voice drift |
323
+ | `analyze_opening_local` | Offline opening cues, source ranges and coverage; editorial quality remains unassessed |
324
+ | `check_style_local` | Line-edit one document for adverbs, filter words, hedges, clichés, passive voice, nominalizations, and personal tics, each with line and column (bluepencil, no AI call) |
325
+ | `find_repetition_local` | Echoes (a word reappearing within a window) and repeated phrases, with both locations |
326
+ | `analyze_rhythm_local` | Sentence-length distribution, monotonous runs, overlong sentences, and repeated openers |
327
+ | `analyze_dialogue_tags_local` | Dialogue ratio and every quoted line's tag classified as plain, showy, adverb-modified, or untagged |
328
+ | `manuscript_style_report_local` | Per-document style density across the manuscript with word-weighted means and outliers |
329
+
330
+ Manuscript comparisons include `comparisonBaseline.name` and its original `envelope`, alongside the
331
+ current result's `envelope`, so both saved source revisions remain identifiable after a baseline name
332
+ is reused.
333
+
334
+ **Enhancement types:** `eliminate-filter-words`, `strengthen-verbs`, `vary-sentences`,
335
+ `add-sensory-details`, `show-dont-tell`, `improve-flow`, `enhance-descriptions`,
336
+ `strengthen-dialogue`, `fix-pacing`, `expand`, `condense`, `rewrite`
315
337
 
316
338
  </details>
317
339
 
318
340
  <details>
319
341
  <summary><strong>Compile & Export</strong> -- assemble and ship the manuscript</summary>
320
342
 
321
- | Tool | What it does |
322
- |------|-------------|
323
- | `compile_documents` | Combine documents; `mode: "structured"` compiles the Draft folder with the binder hierarchy as headings and honors "Include in Compile" (no AI), `mode: "intelligent"` for AI-optimized output |
324
- | `export_project` | Write the manuscript to disk -- Markdown, HTML, JSON inline, or DOCX, EPUB, PDF as a file |
325
- | `get_statistics` | Project-level word/document/character counts |
326
- | `generate_marketing_materials` | Draft synopsis, query letter, pitch, and related materials |
343
+ | Tool | What it does |
344
+ | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
345
+ | `compile_documents` | Combine documents; `mode: "structured"` compiles the Draft folder with the binder hierarchy as headings and honors "Include in Compile" (no AI), `mode: "intelligent"` for AI-optimized output |
346
+ | `export_project` | Write the manuscript to disk -- Markdown, HTML, JSON inline, or DOCX, EPUB, PDF as a file |
347
+ | `read_result` | Retrieve large compiled/analysis results in bounded UTF-8 chunks without filesystem tools |
348
+ | `export_manuscript` | Preflight and export submission DOCX, beta-reader DOCX and validated EPUB presets |
349
+ | `get_statistics` | Project-level word/document/character counts |
350
+ | `generate_marketing_materials` | Draft synopsis, query letter, pitch, and related materials |
351
+
352
+ Intelligent compilation returns provider warnings, explicit quality availability, and saved-source
353
+ revisions. Rewrites require the complete source to fit 12000 UTF-16 characters; otherwise the
354
+ complete original is preserved. Quality opinions cover at most 4000 characters and identify that
355
+ coverage. Marketing generation reads the saved Draft by default; use `documentIds` to select a
356
+ smaller scope within the same 12000-character limit. Both reject source changes during generation
357
+ and provide `read_result` references for large output.
358
+
359
+ </details>
360
+
361
+ <details>
362
+ <summary><strong>Content Credentials</strong> -- local asset signing and validation</summary>
363
+
364
+ Activate the `credentials` skill on demand; these tools do not require an open project.
365
+
366
+ | Tool | What it does |
367
+ | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
368
+ | `c2pa_capabilities` | Inspect actual SDK availability, declared format/mode coverage, limits and unassessed conformance status |
369
+ | `sign_content_credentials` | Sign a local asset to a distinct new embedded or supported `.c2pa` sidecar output using administrator-configured credentials |
370
+ | `validate_content_credentials` | Validate a local asset and optional sidecar; report integrity separately from signer trust, with raw reports opt-in |
371
+
372
+ Format declarations are not proof of native compatibility. Use the
373
+ [Content Credentials guide](docs/content-credentials.md) and per-format native evidence before
374
+ making coverage claims.
327
375
 
328
376
  </details>
329
377
 
330
378
  <details>
331
379
  <summary><strong>Memory</strong> -- persistent project knowledge</summary>
332
380
 
333
- | Tool | What it does |
334
- |------|-------------|
335
- | `remember` | Store information that persists across sessions with the project |
336
- | `recall` | Retrieve previously stored memory |
381
+ | Tool | What it does |
382
+ | --------------- | ---------------------------------------------------------------------------------------- |
383
+ | `remember` | Store information that persists across sessions with the project |
384
+ | `manage_series` | Create, join or leave an explicitly scoped series of selected projects |
385
+ | `story_bible` | Curate shared characters, aliases, locations, world rules and chronology with provenance |
386
+ | `recall` | Retrieve previously stored memory |
337
387
 
338
- Memory is stored within each .scriv project and travels with it.
388
+ Project memory travels within each .scriv project. Explicit series memberships and shared facts use
389
+ the server's persistent registry; see
390
+ [editorial workflows](docs/editorial-workflows.md#curate-a-project-or-series-bible).
391
+
392
+ `remember` validates nested records and acknowledges the saved snapshot with its revision and record
393
+ ID. Use that ID for updates; identical creations reuse their ID, and unknown update IDs fail.
394
+ Unrecorded profile fields, style preferences and writing statistics stay absent. `worldBuilding`
395
+ stores named records, for example `{ name: "Moon Harbor", type: "location" }`; `all` merges custom
396
+ JSON by key. Requests are capped at 64 KiB and complete project memory at 16 MiB. Large `recall`
397
+ results use `read_result`. Earlier custom world data remains available under `recall` with `all`.
339
398
 
340
399
  </details>
341
400
 
342
401
  <details>
343
402
  <summary><strong>Relationships</strong> -- entity connections and story graph</summary>
344
403
 
345
- | Tool | What it does |
346
- |------|-------------|
347
- | `add_relationship` | Store a relationship between characters, locations, themes, or plot threads |
348
- | `find_relationships` | Query entities related to a given character/theme/location |
349
- | `discover_connections` | Find co-occurring entities across the manuscript |
350
- | `character_network` | The character relationship network |
351
- | `get_entity_references` | Trace the reference graph in either direction: entities a document mentions (by documentId), or documents mentioning an entity (by entity) |
352
- | `find_orphaned_entities` | List registered characters/locations that no document actually mentions |
353
- | `suggest_connections` | Suggest entities a document may be missing, inferred from cross-document co-occurrence |
354
-
355
- Works without Neo4j -- relationships live in the Holographic Memory System and are available immediately. The document cross-reference tools are fully deterministic (exact whole-word matching, no AI) and need no external services; Neo4j adds advanced graph analysis when connected.
404
+ | Tool | What it does |
405
+ | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ |
406
+ | `add_relationship` | Store a relationship between characters, locations, themes, or plot threads |
407
+ | `find_relationships` | Query entities related to a given character/theme/location |
408
+ | `discover_connections` | Find unrecorded pairs of known characters/locations that co-occur in saved Draft documents, with source revisions |
409
+ | `character_network` | The character relationship network |
410
+ | `get_entity_references` | Trace the reference graph in either direction: entities a document mentions (by documentId), or documents mentioning an entity (by entity) |
411
+ | `find_orphaned_entities` | List registered characters/locations that no document actually mentions |
412
+ | `suggest_connections` | Suggest entities a document may be missing, inferred from cross-document co-occurrence |
413
+
414
+ Relationship tools use project-owned SQLite without an external service. Storage admits up to
415
+ 10000 relationships; names contain at most 128 UTF-16 characters and labels 64. Discovery covers
416
+ the characters and locations already recorded in that graph, up to 256 entities, 1000 Draft
417
+ documents, 2 Mi UTF-16 source characters and a source-character count multiplied by entity count
418
+ of at most 134217728. Its score is the
419
+ fraction of documents mentioning both entities among those mentioning either; it is a candidate
420
+ association, not a confirmed story fact. Result limits disclose omitted candidates, and large
421
+ responses use `read_result`. Relationship queries page in stable identity order using `nextOffset`
422
+ and `graphRevision`; edits require restarting the query. Document cross-reference tools use the
423
+ character/location registries and saved text, including Research and Draft items excluded from
424
+ Compile. Document queries read only the requested document; entity-wide queries and suggestions
425
+ inspect all active text within the same source limits. They disclose missing registries, reject
426
+ source/registry changes, and preserve every admitted match offset (up to 1000000 positions and
427
+ 16 MiB of serialized mention records).
356
428
 
357
429
  </details>
358
430
 
359
431
  <details>
360
432
  <summary><strong>Background Jobs</strong> -- long-running analysis</summary>
361
433
 
362
- | Tool | What it does |
363
- |------|-------------|
364
- | `queue_document_analysis` | Enqueue an async analysis of one document; returns a job id |
365
- | `queue_project_analysis` | Enqueue an async analysis of the whole project |
366
- | `get_job_status` | Poll progress/results for a queued job |
367
- | `cancel_job` | Cancel a queued or running job |
434
+ | Tool | What it does |
435
+ | ------------------------- | -------------------------------------------------------------------------------------------------- |
436
+ | `queue_document_analysis` | Analyze supplied document text asynchronously; returns a job id |
437
+ | `queue_project_analysis` | Analyze an ordered batch of supplied document texts |
438
+ | `get_job_status` | Poll progress/results for a queued job |
439
+ | `get_queue_stats` | Inspect project-scoped queue counts, connectivity and legacy migration guidance |
440
+ | `editorial_workflow` | Run chapter review, continuity audit or beta-reader preparation with durable progress and resuming |
441
+ | `cancel_job` | Request cancellation; running embedded work finishes internally and its result is discarded |
442
+
443
+ Queued analysis always runs local prose analysis and includes readability by default. Optional
444
+ named entities require a native build with ONNX support and a loaded NER model; unavailable results
445
+ are explicit. Optional sentiment uses a local lexicon heuristic. Source revisions hash the supplied
446
+ UTF-8 text, and the envelope identifies this raw policy separately from saved RTF analysis and saved
447
+ project controls. Project batches preserve input order and run sequentially unless `parallel` is
448
+ selected, with at most five documents in flight. Large completed results return a `_ref` retrieved
449
+ through `read_result`. Redis/KeyDB cannot remove an active job; embedded cancellation prevents work
450
+ that has not started and discards the result of work already running.
451
+
452
+ `suggest_improvements` accepts `async: true` for the same suggestion result through `get_job_status`.
453
+ With `useContext: true`, `documentId` is required: generation uses up to the first 16000 UTF-16
454
+ characters of that saved document and rejects a changed revision. Its result reports the exact
455
+ excerpt range, truncation and source revision. The default `useContext: false` sends only the prompt.
456
+ Suggestions use the configured provider or client sampling, and queued generation is not automatically
457
+ retried. Large synchronous and queued results use `read_result` references.
458
+
459
+ `analyze_writing_style` accepts 1–64 nonempty text samples, each up to 64000 UTF-16 characters.
460
+ Its provider prompt includes at most 8000 characters including separators; coverage reports the
461
+ range used from every sample, including any omitted samples. Missing or malformed profile fields
462
+ are explicitly unavailable, partial finding lists preserve valid entries, and sample revisions
463
+ hash the original supplied UTF-8 text. Large profiles also use `read_result` references.
368
464
 
369
465
  </details>
370
466
 
371
467
  <details>
372
468
  <summary><strong>Discovery</strong> -- explore capabilities</summary>
373
469
 
374
- | Tool | What it does |
375
- |------|-------------|
470
+ | Tool | What it does |
471
+ | ------------- | ---------------------------------------------- |
376
472
  | `list_skills` | List the available tool groups and their tools |
377
- | `use_skill` | Activate a tool group (most are pre-activated by default) |
473
+ | `use_skill` | Activate another tool group on demand |
378
474
 
379
475
  </details>
380
476
 
381
477
  ## Guides
382
478
 
383
- - **[Getting Started](./docs/getting-started.md)** -- Installation, configuration, your first session
384
- - **[MCP Client Setup](./docs/CLIENT_SETUP.md)** -- Copy-paste config for Claude Desktop, Claude Code, Cursor, and VS Code
385
- - **[Writing with AI](./docs/writing-with-ai.md)** -- Analysis workflows, enhancement strategies, memory management
479
+ - **[Getting Started](./docs/getting-started.md)** -- Installation, configuration, your first
480
+ session
481
+ - **[MCP Client Setup](./docs/CLIENT_SETUP.md)** -- Copy-paste config for Claude Desktop, Claude
482
+ Code, Cursor, and VS Code
483
+ - **[Writing with AI](./docs/writing-with-ai.md)** -- Analysis workflows, enhancement strategies,
484
+ memory management
386
485
  - **[Troubleshooting](./docs/troubleshooting.md)** -- Common issues and fixes
387
- - **[Token Optimization](./docs/token-optimization.md)** -- How the server minimizes context window usage
486
+ - **[Token Optimization](./docs/token-optimization.md)** -- Response limits and measured context
487
+ costs
488
+ - **[0.14 Validation](./docs/release-validation-0.14.md)** -- Candidate evidence, supported scope
489
+ and remaining qualification limits
388
490
  - **[Architecture](./docs/architecture.md)** -- How the server works, module structure, data flow
389
- - **[Scrivener Compatibility](./docs/SCRIVENER_COMPATIBILITY.md)** -- Supported Scrivener versions, platforms, and format coverage
390
- - **[Scrivener File Format](./docs/scrivener-format.md)** -- The reverse-engineered `.scriv` format, what we read vs. infer, and safe-modification guidance
391
- - **[Contributing](./docs/contributing.md)** -- Development setup, code conventions, adding new tools
491
+ - **[Scrivener Compatibility](./docs/SCRIVENER_COMPATIBILITY.md)** -- Supported Scrivener versions,
492
+ platforms, and format coverage
493
+ - **[Content Credentials](./docs/content-credentials.md)** -- Local C2PA signing and validation,
494
+ administrator setup, tested modes and conformance limits
495
+ - **[Scrivener File Format](./docs/scrivener-format.md)** -- The reverse-engineered `.scriv` format,
496
+ what we read vs. infer, and safe-modification guidance
497
+ - **[Fuzzing](./docs/fuzzing.md)** -- Jazzer.js target and OSS-Fuzz integration details
498
+ - **[Contributing](./CONTRIBUTING.md)** -- Development setup, code conventions, adding new
499
+ tools
392
500
 
393
501
  ## Requirements
394
502
 
395
- - **Node.js 18+**
503
+ - **Stable Node.js `^22.23.4 || ^24.22.1 || >=26.12.1`** (24.22.1 or newer on Node 24 recommended)
396
504
  - **Scrivener 3** project files (.scriv)
397
- - macOS, Windows, or Linux
398
- - Optional: OpenAI API key for AI-powered features
399
- - Optional: Neo4j for character relationship graphs
505
+ - Native npm/npx installs: macOS x64/ARM64, Windows x64, or Linux x64 with glibc. Architecture
506
+ refers to the Node.js runtime.
507
+ - Optional: Anthropic, OpenAI, or OpenRouter API key for provider-backed AI features
508
+ - Optional: Neo4j for persistence and advanced graph queries; core relationship tools work without
509
+ it
510
+
511
+ The patched floors protect Node TLS paths used by the pinned CAI native SDK; SQLite 13 also requires
512
+ Node-API 10. Node 23 and 25 are excluded. See the
513
+ [runtime compatibility policy](docs/forward-compatibility.md#runtime-and-dependency-changes).
400
514
 
401
515
  ## Development
402
516
 
517
+ See the [compatibility and upgrade policy](docs/forward-compatibility.md) for runtime checks,
518
+ protocol contracts, dependency upgrades and the stable release gate.
519
+
403
520
  ```bash
404
521
  git clone https://github.com/writerslogic/scrivener-mcp.git
405
522
  cd scrivener-mcp
406
- npm install
523
+ npm install --ignore-scripts
524
+ # Install the pinned Rust/wasm-pack tools listed in native/c2pa-binding/README.md
525
+ npm run build:c2pa # Generate the engine from source
407
526
  npm run dev # Development mode with hot reload
408
527
  npm run build # Compile TypeScript
409
528
  npm test # Run tests
@@ -412,37 +531,60 @@ npm run typecheck # Type checking only
412
531
 
413
532
  ## Why This One?
414
533
 
415
- Several Scrivener MCP servers exist. Here's how they compare:
534
+ A few Scrivener MCP servers exist. Our column describes the current server; other feature claims
535
+ come from each project's own docs, published package, and advertised tools, last re-read on
536
+ **2026-10-22**; stars, forks, activity, and published version were refreshed
537
+ <!-- comparison-refreshed -->2026-11-23<!-- /comparison-refreshed -->. "No" means undocumented — not
538
+
539
+ necessarily impossible through the connected AI client.
416
540
 
417
541
  <!-- comparison-start -->
418
- | Feature | **scrivener-mcp** | jiayun | zaphodsdad | others |
419
- |---------|:-:|:-:|:-:|:-:|
420
- | Document read/write | 60+ tools | 29 tools | read-only | basic |
421
- | RTF / rich text support | yes | no | no | no |
422
- | Writing analysis | readability, pacing, style, emotion | basic metrics | no | no |
423
- | Content enhancement | 12 types (filter words, verbs, show-don't-tell…) | no | no | no |
424
- | Semantic search (offline) | vector + analogies + dream mode | no | no | no |
425
- | Character consistency check | yes | no | no | no |
426
- | Character / plot memory | persistent profiles, plot threads, style guide | no | no | no |
427
- | Relationship graphs | HMS triplets + optional Neo4j | no | no | no |
428
- | Multi-agent analysis | roundtable critique with specialised agents | no | no | no |
429
- | Story structure analysis | yes (requires Neo4j) | no | no | no |
430
- | Token optimisation | progressive skill loading, compact JSON | no | no | no |
431
- | Batch document operations | yes | partial | no | no |
432
- | Export / compilation | yes — multiple formats | basic | no | no |
433
- | Windows support | full path handling + .scrivx discovery | partial | no | no |
434
- | Install method | npm · Homebrew · Docker · Smithery | manual clone | manual clone | varies |
435
- | Published to npm | yes (`npm i -g scrivener-mcp`) | no | no | no |
436
- | License | AGPL-3.0 / commercial dual-license | MIT | — | varies |
437
- | Active development | weekly | stale | occasional | stale |
438
- | Community | ⭐ 35 · 14 forks · 9 issues | ⭐ ? | ⭐ 5 | minimal |
542
+
543
+ | Feature | **scrivener-mcp** | [jiayun](https://github.com/jiayun/scrivener-mcp) | [TwelveTake](https://www.npmjs.com/package/@twelvetake/scrivener-mcp) | [Scrivener Assistant](https://github.com/elnino1/scrivener-assistant) | [ricopicone](https://github.com/ricopicone/scrivener-mcp) | [zaphodsdad](https://github.com/zaphodsdad/scrivener-mcp) |
544
+ |---------|:-:|:-:|:-:|:-:|:-:|:-:|
545
+ | Public MCP tools | 84 | 30 | 22 | 38 | 18 | 10 |
546
+ | Manuscript access | read/write | read/write | read/write | read-only; writes sidecar data/metadata | read-only by default; opt-in content/notes/synopsis writes | read-only |
547
+ | RTF handling | formatted reads; fidelity-preserving span writes | reads/writes document content | reads/writes document content | converts RTF to text; manuscript read-only | RTF-to-text reads; snapshot-protected content writes | converts RTF to text; read-only |
548
+ | Built-in writing analysis | readability, pacing, style, emotion, AI critique | readability, style, sentiment | continuity comparison | agent-driven five-point review workflow | no dedicated analysis tool | no dedicated analysis tool |
549
+ | Content generation/enhancement | generation + 12 targeted enhancement types | no | no | brainstorm/draft agent workflow | no | no |
550
+ | Local semantic retrieval | local concept vectors, BM25 and quoted passages | no | no | no | no | no |
551
+ | Continuity/project memory | persistent memory + consistency checks | persistent notes + consistency checks | mention/description comparison | world bible, story state, characters, locations, review history | no persistent memory | no persistent memory |
552
+ | Relationship tooling | persistent relationships, networks, reference graph; optional Neo4j | no | no | human-editable relations data | no | no |
553
+ | Token optimization | progressive skill loading, compact output, paged reads | no documented equivalent | no documented equivalent | no documented equivalent | scoped binder/chapter reads | scoped overview/read tools |
554
+ | Export / compilation | Markdown, HTML, JSON, DOCX, EPUB, PDF | compile + whole-draft export | PDF | saves AI drafts; no manuscript export documented | no | no |
555
+ | Windows support | native CI verified; synthetic projects | yes (prebuilt binary) | yes | not documented | not documented | yes |
556
+ | Installation | npm, Homebrew, Docker, or the Draftbridge Mac app | crates.io, prebuilt binary, or source | npm package (deprecated) | MCPB or source | source / `uv` | source / `pip install -e` |
557
+ | License | AGPL-3.0 / commercial dual-license | MIT | MIT | MIT | not declared | MIT |
558
+ | Repository/package status | weekly activity; npm `0.12.0` | occasional activity | removed from npm | weekly activity | occasional activity; no releases | repository unavailable |
559
+ | Community | ⭐ 75 · 24 forks | ⭐ 7 | source repository unavailable | ⭐ 1 | ⭐ 0 | unavailable |
560
+
439
561
  <!-- comparison-end -->
440
562
 
563
+ Counts and feature claims can change. Follow the linked projects for their own latest documentation.
564
+ The table is generated from [`docs/comparison.yml`](./docs/comparison.yml) — edit claims there, not
565
+ here.
566
+
567
+ ### The alternative that isn't an MCP server
568
+
569
+ Scrivener can also **Sync to External Folder**, writing each document out as RTF or plain text,
570
+ which any generic file-access MCP server (like
571
+ [`@modelcontextprotocol/server-filesystem`](https://www.npmjs.com/package/@modelcontextprotocol/server-filesystem))
572
+ can then read and write.
573
+
574
+ It's free and works today. What you lose is everything tied to the actual project — binder
575
+ hierarchy, metadata, labels and status, snapshots, compile settings, RTF formatting — and edits land
576
+ in the sync folder rather than the project itself, so a bad edit gets reconciled by Scrivener on the
577
+ next sync instead of caught before it happens. Fine for occasional read-only help with prose; not if
578
+ you want the structure to survive the round trip.
579
+
441
580
  ## Contributing
442
581
 
443
- We welcome contributions of all sizes. Check the [issue tracker](https://github.com/writerslogic/scrivener-mcp/issues) for `good first issue` labels, or see the [contributing guide](./docs/contributing.md) for development setup.
582
+ We welcome contributions of all sizes. Check the
583
+ [issue tracker](https://github.com/writerslogic/scrivener-mcp/issues) for `good first issue` labels,
584
+ or see the [contributing guide](./CONTRIBUTING.md) for development setup.
444
585
 
445
586
  **Areas where help is especially welcome:**
587
+
446
588
  - Test coverage ([#18](https://github.com/writerslogic/scrivener-mcp/issues/18))
447
589
  - Windows testing and path handling
448
590
  - Scrivener 2 compatibility testing
@@ -456,7 +598,17 @@ Found a vulnerability? Please report it privately — see [SECURITY.md](./SECURI
456
598
 
457
599
  AGPL-3.0 &copy; [WritersLogic, Inc.](https://github.com/writerslogic)
458
600
 
459
- Free for personal use and open-source projects. Commercial license available for proprietary integration. See [COMMERCIAL_LICENSE.md](./COMMERCIAL_LICENSE.md) for details.
601
+ Scrivener is a trademark of Literature & Latte Ltd. This project is independent and is not
602
+ affiliated with, endorsed by, or sponsored by Literature & Latte.
603
+
604
+ Free for personal use and open-source projects. Commercial license available for proprietary
605
+ integration. See [COMMERCIAL_LICENSE.md](./COMMERCIAL_LICENSE.md) for details.
606
+
607
+ ---
608
+
609
+ Also from WritersLogic: **[WritersProof](https://writersproof.com)** witnesses your keystrokes,
610
+ pauses, and revisions as you write, then seals that process into tamper-evident, independently
611
+ verifiable proof you wrote it yourself — AI accusations, settled with evidence instead of your word.
460
612
 
461
613
  <p align="center">
462
614
  <a href="https://glama.ai/mcp/servers/writerslogic/scrivener-mcp">
@@ -470,3 +622,7 @@ Free for personal use and open-source projects. Commercial license available for
470
622
  <a href="https://github.com/writerslogic/scrivener-mcp/issues">Issues</a> &middot;
471
623
  <a href="./CHANGELOG.md">Changelog</a>
472
624
  </p>
625
+
626
+ MCP 2026-07-28 uses `server/discover` and a stable full tool catalog. Each request supplies the protocol version and client capabilities in standard MCP `_meta`. `open_project` returns `projectHandle` in text and structured content; pass it as an ordinary argument on subsequent project tool calls. The legacy `com.writerslogic/project` request metadata token is also accepted. Handles expire on close, reopen or restart. Calls are serialized per modern stdio connection. Legacy MCP initialization, implicit project scope and progressive skill discovery remain available.
627
+
628
+ Each connection admits at most 32 active or queued tool calls and 16 MiB of retained request parameters, with a burst of 120 attempts and refill of two attempts per second. Rejections are explicit and report retry guidance. Canceled queued work releases its slot; running work retains capacity until it settles. These limits do not bound total process memory, tool results or native worker allocations. Prefer the documented report page defaults and follow revision-bound continuation cursors when retrieving large reports.