Repository navigation
Releases
Releases · felimet/endnote-for-word
endnote-for-word 1.6.0
Added
- A manifest target may cite a record without a DOI, such as a web page (EndNote reference
type 16), a patent (type 15), an extension article or a conference paper without one, through
an explicit"no_doi": true. DOI stays required by default.precheckstill requires the
record to exist, to be live and to match the first-author surname and year, reports
library_has_doiwhen the record does have a DOI, in its DOI field or left in its URL or
notes, and rejectsno_doitogether withdoior as a non-boolean. Render takes these targets in the same pass as DOI targets, so the
author-year display mapping by field order stays aligned, and reportsno_doi_targets.
Validation keeps every gate and skips the visible DOI link of ano_doitarget only when the
record's traveling-library XML in the document carries no DOI (<electronic-resource-num>,
<url>,<notes>), so a manifest edit cannot switch the gate off for a record that has one. - Validation fails a bibliography with a leftover
doi:label: one that starts a word and is
followed by the end of the entry, by punctuation such as the template's next
. [Online]. Available:or(accessed, or by a link other than
https://doi.org/10.. Adoi:inside a DOI (10.1000/abc-doi:5), a URN or a title passes.
Under EndNote's documented template rules, text attached to an empty
field drops out but text set off by a space always prints, so a style whosedoi:label is
not tied to the DOI field with Link Adjacent Text leaves a baredoi:for ano_doirecord.
That output has not been measured on EndNote 21. - Measured on EndNote 21.5 (Bld 18513) with Word for Microsoft 365:
import_reference_file
confirmed the target byopen_handlewhileRecent Libraries\File1named another library and
dismissed the Holiday Sale notice with Cancel; a render with 10no_doitargets (web pages,
extension articles and patents) next to 98 DOI targets ran in one pass, and validate passed.
Fixed
import_reference_fileno longer times out withEndNote did not confirm the exact requested import targetwhile the target library is open in front. It required EndNote's
Recent Libraries\File1value to name the target, but EndNote keeps that value on the library
it opened at start-up, and it required a<product> - <file>title although EndNote drops the
product prefix after a CWYW job. The target is now confirmed when an EndNote main window shows
the file name, the same process holds<library>.Data\sdb\sdb.eniopen, as Windows
Restart Manager reports, and no other open library window carries the same file name
(import_target_confirmed_by: open_handle). A title shows the file only when it is exactly
<file>orEndNote <version> - <file>, and onlyAfx:windows titled*.enlcount as
library windows, not the hiddencom.endnote.async_tasks. Only when Restart Manager cannot answer does
File1naming the exact path still confirm it (recent_library). Neither the registry nor a
library file is written, and a timeout now names the windows, the open library windows, the
holding processes and the recent library it saw.- EndNote's start-up marketing notice
Holiday Sale: Save 25% when you upgrade to the new EndNote!no longer blocks a job until it times out. A short allowlist of marketing titles
(Holiday Sale*,*upgrade to the new EndNote*) with exactly the measured buttons
Learn More..., Cancel and Ignore This is answered with Cancel, which changes no preference,
and listed undernotices_dismissed; Ignore This, Learn More... and any purchase or sign-in
button are never pressed, and every other dialog, a listed title with other buttons included,
is still reported underattention. - The
.sha256files thatscripts/package_plugin.pywrites now end in LF on Windows too, so
sha256sum -con Linux or macOS accepts them. The CR in the old CRLF ending was read as part
of the file name, and the check failed although the digest was right.
endnote-for-word 1.5.2
Fixed
- A
{{CITE:id}}marker inside a table cell, such as a figure caption row, no longer hangs
renderuntil the job times out. The marker search now collapses each hit and searches on;
its oldSetRangeto the document end was widened by Word to whole table rows and matched
the same marker forever. A search that stops advancing or exceeds 1000 matches fails with
an error naming the marker. validateno longer reports a citation whose payload EndNote moved intoADDIN EN.CITE.DATA
as absent from every traveling library payload, nor itsauthor-yeardisplay as missing.
That payload lives in the field data (w:fldData), not the field code, and is now decoded
and checked.
endnote-for-word 1.5.1
Fixed
- Opening Word by hand no longer reopens the working copies of jobs the server had to end. Word
records every open document underResiliency\DocumentRecoveryand reopens each recorded one
in its own window at the next start when its Word was killed. The bridge now names every
document its Word opens or saves as (WORD_DOCUMENT=on stderr), and after a cancelled or
timed-out job the server waits for that Word to exit and removes only the entries the run added
for those documents; the count is reported asword_recovery_entries_removed.
endnote-for-word 1.5.0
Added
- Background jobs.
render_endnote_word_document,update_endnote_word_fieldsand
set_endnote_citation_stylereturn ajob_idat once (background: falsekeeps the old
blocking call).get_endnote_job_statusreports the state, any lasting dialog under
attentionand the result;cancel_endnote_jobdrops a queued job or ends a running one. - Every action that drives EndNote runs through one queue, and a named mutex
(Local\EndNoteForWordAgentBridge) serialises jobs across every server of the Windows session,
such as Claude Code and Codex side by side. - Each job opens its manifest library beside the libraries the user has open and closes only that
library afterwards. EndNote's recent-library list is restored, so a job does not change the
library EndNote opens next. - EndNote's start-up news notices (
EndNote Password Expiration Policy Change,
EndNote 2025 is here!), which block every CWYW request while visible, are answered with
Cancel and listed undernotices_dismissed. No preference changes and no other dialog is
answered, except the CWYW record chooser below. - An EndNote the server started closes after
ENDNOTE_IDLE_CLOSE_SECONDS(default 120) without a
job, and is ended when it ignores every close request. Bridges and server-started EndNote sit in
a kill-on-close job object, so they end with the server. A user's own EndNote is never ended. - An EndNote the server started becomes the user's once the user opens a library in it or shows
its main window, because EndNote runs one instance per user: the server then never closes or
ends it, and it outlives the server.
Changed
- A CWYW
Select Matching Referencechooser, raised when another open library has overlapping
record numbers, is answered with Cancel and the job fails withdialogs_cancelledand advice.
Ending the hidden Word at the chooser instead left EndNote unable to exit for minutes. ENDNOTE_READY_TIMEOUT_MSalso bounds the wait for the job's library window.
endnote-for-word 1.4.0
Added
- A DOCX without a named library gets one beside it.
import-ris(import_reference_file)
accepts the DOCX as-InputPath(document_path) instead of-LibraryPath, targets
<document stem>.enlin the same folder, creates it on first use and reuses it afterwards.
A DOCX that already carriesADDIN EN.fields is refused, because its citations belong to an
existing library. configure-defaults -EmptyLibraryTemplatePath(configure_endnote_defaults
empty_library_template_path) registers a zero-record library once. A missing import target is
cloned from it when no template is passed, and re-runningconfigure-defaultskeeps it.
config/defaults.jsongainslibrary.empty_template_path.- Plugin marketplaces for both clients, so
claude plugin marketplace add felimet/endnote-for-word
andcodex plugin marketplace add felimet/endnote-for-wordinstall the skill and the MCP
server together, and the clients' update commands upgrade them. SECURITY.mdwith private vulnerability reporting, Dependabot updates for GitHub Actions, and a
plugin security scan workflow pinned tohashgraph-online/ai-plugin-scanner-actionv1.2.786.
Changed
import_reference_fileno longer requireslibrary_path; it requiresris_pathplus either
library_pathordocument_path.- Every GitHub Action in CI is pinned to a full commit SHA.
requirements.txtis removed. It declared no package, because the Python side uses only the
standard library.- Both plugin manifests declare
homepageandrepository; the Codex manifest keeps three
default prompts, the number Codex shows.
Fixed
- The MCP server never started as a Codex plugin. Codex reads
.codex-plugin/plugin.jsonas a
legacy manifest: it expands no${PLUGIN_ROOT}, exports no plugin-root variable, and starts the
server in the session folder, so the shared.mcp.jsonlauncher looked forrun-mcp.ps1in the
user's project. The Codex manifest now points at.codex-mcp.json, which runs
python scripts/mcp_server.pywithcwdset to the installed plugin. The server then leaves that
folder, because Windows cannot replace a folder a process works in; started anywhere else it
stays, so relative paths keep their base under Claude Code. - Codex passes only a whitelist of environment variables, which drops
COMMONPROGRAMFILES*,OS
and everyENDNOTE_*setting, so the probe could not find the CWYW template..codex-mcp.json
forwards them by name and sets a 1860 s tool limit above the server's 1800 s render watchdog.
Assets
endnote-for-word-plugin.zip: the whole repository, for plugin-aware hosts. SHA-2568969897d4620d7ce82d85b878598f9ef4d351b50a77a570c34df33228ff9c08fendnote-for-word.skill: standalone skill for Claude Desktop Customize > Skills. SHA-256c22e41b0f61bb4302a0a0bdba18a734a8e8d4faf65250d6183743dda5ebbbfce
Each asset has a .sha256 file beside it. Claude Code and Codex can install the plugin directly from this repository's marketplace; see the README. Full history in CHANGELOG.md.
endnote-for-word 1.3.0
Added
- PowerShell 7 auto-install. When the bridge runs under Windows PowerShell 5.1, no
pwsh.exe
exists and no host is pinned, it installs PowerShell 7 for the current user with
winget install --id Microsoft.PowerShell --scope user --installer-type msix, which needs no
administrator rights. winget runs silently with--accept-package-agreements --accept-source-agreements, so the winget source and package agreements are accepted on the
user's behalf, and the notice says so.- Read-only calls (
probe,list-styles,validate) never install. Each one returns a
pendingnotice, orunavailablewhen winget is missing, until the first other call. - The first other call (
render,update,set-style,unformat,configure-defaultsor
import-ris) starts the install in the background and keeps running under 5.1. - From then on each state change (installing, succeeded, failed, unavailable) is reported once
aspowershell_notice, and the agent is told to relay every notice to the user. - One attempt is made per user. State and the winget log live in
%LOCALAPPDATA%\EndNoteForWordAgent. - Set
ENDNOTE_WORD_AUTO_INSTALL_PWSH=0, or pin a host withENDNOTE_WORD_POWERSHELL, to
opt out.
- Read-only calls (
- The MCP server and
invoke-bridge.ps1resolve the PowerShell host on every call and also find
PowerShell 7 at its per-user app execution alias, so a newly installed PowerShell 7 takes over
without a restart. Apowershell_noticealso survives an MCP timeout. scripts/package_plugin.pyalso builds the standalone skill package
dist/endnote-for-word.skillwith its SHA-256 file, and CI uploads it. The Claude Desktop
instructions now use it.- Troubleshooting entries for a
SaveAs2call that never returns and for the Word recovery state
that a forced kill leaves behind.
Changed
- The shipped MCP launch command (
.mcp.json,.codex-mcp.json, and the registration commands
in the READMEs and the installation reference) ispowershell.exe, which every supported
Windows has, so the server starts before PowerShell 7 exists. The bridge still prefers
PowerShell 7 when it is installed. scripts/run-mcp.ps1only checks that a PowerShell host exists. It no longer exports the host
it found asENDNOTE_WORD_POWERSHELL, which now pins the host only when set explicitly.- Manifests, agent defaults and RIS files are decoded as strict UTF-8 with an optional byte order
mark. Input that is not valid UTF-8, such as UTF-16 with a byte order mark or Latin-1, is
rejected with "could not be read as UTF-8 text" instead of being parsed into corrupted author
names. Most cp950 and cp936 text fails the same way, but legacy bytes that happen to form valid
UTF-8 cannot be detected. The DOI and library precheck reports the same message. - Resolved paths in JSON results are plain, full file system paths.
Fixed
- Under Windows PowerShell 5.1, Word's
SaveAs2stalled when given an uncastJoin-Pathpath
(measured on Word 16.0.20430 with EndNote 21.5), so the save step thatrender,update,
set-styleandunformatshare hung until the watchdog killed Word (observed with
render). The bridge now passes the save path as a plain string. Found while investigating
#1 by @G-C-M-G. - Manifests with non-ASCII text failed to parse under Windows PowerShell 5.1 on a non-UTF-8 code
page. Based on #1 by @G-C-M-G. - The bridge deadlocked when a child process wrote more than 4 KB to stderr.
- UNC and
\\?\paths reached Python, Word and .NET in the provider-qualified
Microsoft.PowerShell.Core\FileSystem::form that none of them can open. - The
unformat"never in place" guard could be bypassed through an 8.3 short-name alias of the
input, or with the same UNC path on both sides. - The MCP render timeout ignored the citation count of a manifest saved with a byte order mark.
- A precheck failure without a problem list no longer prefixes the error with an empty entry.
Assets
endnote-for-word-plugin.zip: the whole repository, for plugin-aware hosts. SHA-256866cafc3a6994aafa70fa5bce56b40936cd2ad7c04604b52a1ede5c8cf8004e3endnote-for-word.skill: standalone skill for Claude Desktop Customize > Skills. SHA-25692ee1a8969436417819db9430e06ff7e23b1d38d9f00fbf8a4ba53fc46cc6bbb
Each asset has a .sha256 file beside it. Full history in CHANGELOG.md.