lithermes-ai 0.8.1 → 0.8.2
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:32:26.488Z",
|
|
3
3
|
"source": "source-reference",
|
|
4
|
-
"sourceHash": "
|
|
4
|
+
"sourceHash": "4ec00032263690e3fea1b618c961ae32aaa950db46d5320f4fcc79a844652ab6",
|
|
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": "d356b26af023599d32bde33f8c51053fdd4970d8ff710d4d1243d87a438f0f38"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"path": "skills/ai-slop-remover/SKILL.md",
|
package/package.json
CHANGED
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,7 +124,7 @@ 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"}`);
|
|
@@ -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,
|