lithermes-ai 0.8.1 → 0.8.3
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"syncedAt": "2026-06-
|
|
2
|
+
"syncedAt": "2026-06-14T07:44:14.269Z",
|
|
3
3
|
"source": "source-reference",
|
|
4
|
-
"sourceHash": "
|
|
4
|
+
"sourceHash": "1072e4218aeda8d0a4c03e11189b07505021bc4acc3b1280bfeabdd420d1ff9a",
|
|
5
5
|
"files": [
|
|
6
6
|
{
|
|
7
7
|
"path": "NOTICE.md",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"path": "plugin.yaml",
|
|
52
|
-
"sha256": "
|
|
52
|
+
"sha256": "7ef63d09b537d994dc5ed25149b0841e84745ae352c851d9a54788ddd793b0e9"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"path": "skills/ai-slop-remover/SKILL.md",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lithermes-ai",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "npx/bunx installer for the LitHermes Hermes plugin",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"url": "https://github.com/wjgoarxiv/lithermes/issues"
|
|
14
14
|
},
|
|
15
15
|
"bin": {
|
|
16
|
-
"lithermes": "bin/lithermes.js"
|
|
16
|
+
"lithermes": "bin/lithermes.js",
|
|
17
|
+
"lithermes-ai": "bin/lithermes.js"
|
|
17
18
|
},
|
|
18
19
|
"files": [
|
|
19
20
|
"bin",
|
package/src/lib/install.js
CHANGED
|
@@ -50,6 +50,15 @@ function installedMatchesManifest(hermesHome, manifest) {
|
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
// Version-aware install status (NOT a manifest-integrity check): distinguish a
|
|
54
|
+
// fresh install, a same-version reinstall, and a real upgrade so the message
|
|
55
|
+
// never claims "already up to date" while actually replacing an older version.
|
|
56
|
+
function installStatusLine(installedVersion, packageVersion) {
|
|
57
|
+
if (!installedVersion) return `Installed LitHermes ${packageVersion}`;
|
|
58
|
+
if (installedVersion === packageVersion) return `LitHermes already up to date (${packageVersion})`;
|
|
59
|
+
return `Upgraded LitHermes ${installedVersion} → ${packageVersion}`;
|
|
60
|
+
}
|
|
61
|
+
|
|
53
62
|
function installLitHermes(flags = {}) {
|
|
54
63
|
const { hermesHome, hermesRepo } = ensureHermesHome(flags, { forInstall: true });
|
|
55
64
|
const dest = pluginDest(hermesHome);
|
|
@@ -72,7 +81,8 @@ function installLitHermes(flags = {}) {
|
|
|
72
81
|
return withLock(hermesHome, () => {
|
|
73
82
|
onProgress("Inspecting existing plugin");
|
|
74
83
|
const existingManifest = loadManifest(hermesHome);
|
|
75
|
-
const
|
|
84
|
+
const packageVersion = require(path.join(packageRoot, "package.json")).version;
|
|
85
|
+
const installedVersion = fs.existsSync(dest) && existingManifest ? existingManifest.version : null;
|
|
76
86
|
if (fs.existsSync(dest) && !installedMatchesManifest(hermesHome, existingManifest) && !flags.force) {
|
|
77
87
|
throw new LitHermesError(`Existing LitHermes plugin at ${dest} is not manifest-owned. Use --force after backing it up.`, 5);
|
|
78
88
|
}
|
|
@@ -92,7 +102,7 @@ function installLitHermes(flags = {}) {
|
|
|
92
102
|
}
|
|
93
103
|
onProgress("Recording install manifest");
|
|
94
104
|
const manifest = {
|
|
95
|
-
version:
|
|
105
|
+
version: packageVersion,
|
|
96
106
|
installedAt: new Date().toISOString(),
|
|
97
107
|
pluginPath: dest,
|
|
98
108
|
configPath: path.join(hermesHome, "config.yaml"),
|
|
@@ -114,12 +124,12 @@ function installLitHermes(flags = {}) {
|
|
|
114
124
|
}
|
|
115
125
|
}
|
|
116
126
|
const lines = [
|
|
117
|
-
|
|
127
|
+
installStatusLine(installedVersion, packageVersion),
|
|
118
128
|
`plugin: ${dest}`,
|
|
119
129
|
];
|
|
120
130
|
if (patchResult) lines.push(`patches: ${patchResult.changed.length ? patchResult.changed.join(", ") : "none needed"}`);
|
|
121
131
|
if (patchWarning) lines.push(`patches: skipped (${patchWarning})`);
|
|
122
|
-
if (skinFiles.length) lines.push(`HUD skins: ${skinFiles.length} accents installed — pick one with \`npx lithermes hud <accent>\``);
|
|
132
|
+
if (skinFiles.length) lines.push(`HUD skins: ${skinFiles.length} accents installed — pick one with \`npx lithermes-ai hud <accent>\``);
|
|
123
133
|
lines.push("Restart any running Hermes gateway to load new plugins.");
|
|
124
134
|
return { message: lines.join("\n") };
|
|
125
135
|
});
|
|
@@ -152,6 +162,7 @@ function uninstallLitHermes(flags = {}) {
|
|
|
152
162
|
module.exports = {
|
|
153
163
|
assetRoot,
|
|
154
164
|
installLitHermes,
|
|
165
|
+
installStatusLine,
|
|
155
166
|
loadManifest,
|
|
156
167
|
manifestPath,
|
|
157
168
|
pluginDest,
|