[Misc] Follow platform conventions for the default work directory - #94
[Misc] Follow platform conventions for the default work directory#94ClementEXWiki wants to merge 4 commits into
Conversation
* Default work-directory root is now $XDG_STATE_HOME/xwiki-llm (falling back to ~/.local/state/xwiki-llm) on Linux/macOS, and %LOCALAPPDATA%\xwiki-llm on Windows, instead of the unconditional ~/.xwiki-llm/work used on every OS. XWIKI_LLM_WORK still overrides it. * Update README.md, xwiki-org.md and the two skill docs that restated the old default. * Bump the plugin version to 1.4.2.
* Resolve the plugin-version conflicts on master's 1.5.0, bumped to 1.5.1 for this change. * Resolve the platform state root in a single place, xwiki/scripts/state-dir.mjs, and use it from both the SessionStart hook (work directory) and xwiki-it-slot.mjs (IT slot files), so the plugin owns one root per machine and the platform rules are written down once. * Add the fallbacks the rule was missing: ~/.local/state/xwiki-llm/work when XDG_STATE_HOME is unset, and %USERPROFILE%\AppData\Local\xwiki-llm\work when LOCALAPPDATA is unset. * Stop restating those rules in xwiki-org.md and the two skill docs — the hook injects the resolved absolute path (state-dir.mjs prints it for opencode, which has no hook), and README.md's XWIKI_LLM_WORK table row is the one human-readable copy. * Tell the developer, once per session for as long as anything is still there, to move what the pre-1.5.1 default left in ~/.xwiki-llm/work. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
I've pushed a merge of Conflicts. They were version-only: The rule was incomplete.
All four branches are verified by running the hook, simulating Duplication. Two kinds, both removed:
Two judgment calls worth calling out, happy to revert either:
Migration. Since the default moves, the hook now checks
|
* Five manifests carry one version, so every concurrent pull request conflicted with every other one on those same five lines, over something that was never part of either change. The release is now cut on master after the merge by scripts/release.mjs, and scripts/validate.mjs fails a branch that touches a version field. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Jira URL
N/A
Changes
Description
Clarifications
Screenshots & Video
N/A
Executed Tests
N/A
Expected merging strategy
*