@everme/cli 0.31.2 → 0.32.1
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.
- package/package.json +1 -1
- package/scripts/upgrade-plugins.js +29 -0
- package/sha256sums.txt +6 -6
package/package.json
CHANGED
|
@@ -27,6 +27,7 @@ const NPX_PLATFORMS = new Set(["cursor", "claude-desktop", "codex", "opencode"])
|
|
|
27
27
|
|
|
28
28
|
const LIST_TIMEOUT_MS = 15000;
|
|
29
29
|
const REFRESH_TIMEOUT_MS = 60000;
|
|
30
|
+
const DSH_REFRESH_TIMEOUT_MS = 6 * 60 * 1000;
|
|
30
31
|
|
|
31
32
|
function npmCommand() {
|
|
32
33
|
return process.platform === "win32" ? "npm.cmd" : "npm";
|
|
@@ -184,6 +185,25 @@ function refreshRaven(binPath, runner) {
|
|
|
184
185
|
});
|
|
185
186
|
}
|
|
186
187
|
|
|
188
|
+
function refreshDSH(binPath, runner) {
|
|
189
|
+
const run = runner || defaultRunner;
|
|
190
|
+
run(binPath, ["plugin", "install", "dsh"], {
|
|
191
|
+
encoding: "utf8",
|
|
192
|
+
timeout: DSH_REFRESH_TIMEOUT_MS,
|
|
193
|
+
stdio: ["ignore", "ignore", "inherit"],
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function shouldRefreshDSH(host) {
|
|
198
|
+
return Boolean(
|
|
199
|
+
host &&
|
|
200
|
+
host.platform === "dsh" &&
|
|
201
|
+
host.installed === true &&
|
|
202
|
+
host.hasEverMeEntry === true &&
|
|
203
|
+
host.registeredAgent != null
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
187
207
|
function skipReason(env) {
|
|
188
208
|
if (env.EVERME_SKIP_PLUGIN_UPGRADE) return "EVERME_SKIP_PLUGIN_UPGRADE is set";
|
|
189
209
|
if (env.CI) return "CI environment";
|
|
@@ -232,6 +252,12 @@ function refreshPlugins(opts) {
|
|
|
232
252
|
refreshHermes(binPath, runner);
|
|
233
253
|
} else if (h.platform === "raven") {
|
|
234
254
|
refreshRaven(binPath, runner);
|
|
255
|
+
} else if (h.platform === "dsh") {
|
|
256
|
+
if (shouldRefreshDSH(h)) {
|
|
257
|
+
refreshDSH(binPath, runner);
|
|
258
|
+
} else {
|
|
259
|
+
log("[@everme/cli] dsh: refresh skipped (host is not installed or not registered to the current account)");
|
|
260
|
+
}
|
|
235
261
|
} else if (h.platform === "kimicode") {
|
|
236
262
|
refreshKimicode(binPath, runner);
|
|
237
263
|
log("[@everme/cli] kimicode: bundle staged — run `/plugins install ~/.kimi-code/everme` in the Kimi Code TUI to load it");
|
|
@@ -259,6 +285,7 @@ module.exports = {
|
|
|
259
285
|
NPX_PLATFORMS,
|
|
260
286
|
LIST_TIMEOUT_MS,
|
|
261
287
|
REFRESH_TIMEOUT_MS,
|
|
288
|
+
DSH_REFRESH_TIMEOUT_MS,
|
|
262
289
|
npmCommand,
|
|
263
290
|
discoverHosts,
|
|
264
291
|
patchNpxSpec,
|
|
@@ -268,6 +295,8 @@ module.exports = {
|
|
|
268
295
|
refreshHermes,
|
|
269
296
|
refreshKimicode,
|
|
270
297
|
refreshRaven,
|
|
298
|
+
refreshDSH,
|
|
299
|
+
shouldRefreshDSH,
|
|
271
300
|
skipReason,
|
|
272
301
|
refreshPlugins,
|
|
273
302
|
logUnconnectedHosts,
|
package/sha256sums.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
5d347745c611e83b6ebf9db5f158aada9b71b87402f7d5eeefdef43c79d3b134 evercli_darwin_amd64.tar.gz
|
|
2
|
+
8c83fb8efc662ec7e411e65064ef1adb871209fb9908b2909089dab2d6e9c01d evercli_darwin_arm64.tar.gz
|
|
3
|
+
d7bfa963877adbe10e5cc17f4b020867ded213b84ed5a437c5803e60ea1263d5 evercli_linux_amd64.tar.gz
|
|
4
|
+
9fa4155157838bd97633a582aa6162a44418a7edb03c85b79a801e98f39b8c66 evercli_linux_arm64.tar.gz
|
|
5
|
+
9de91e5647b29d579d7f3bba91b9cd2c3394e69d1241c05cc280fe479e07fef6 evercli_windows_amd64.zip
|
|
6
|
+
b0a074a00bb4e499aeed6769340c5f154b7021a39ea6998214fd5515fbbff271 evercli_windows_arm64.zip
|