@everme/cli 0.32.0 → 0.33.0
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
|
+
6a7d37f5dac58540f03812d809a6bef00a2a7d7cace27e1028209deecb89b3b0 evercli_darwin_amd64.tar.gz
|
|
2
|
+
a1701f9e38c5f4c5696789c9e0707117f03c112b375a7f5c610a51910ad08002 evercli_darwin_arm64.tar.gz
|
|
3
|
+
00098788cb62cea1a853fb4641c484bc2e643b953c3e70fffd2aa0e9d706e835 evercli_linux_amd64.tar.gz
|
|
4
|
+
1e038f65782cfc71914f88fd3be48bd6541daef7398cba24d0d5c3d7ef48e03a evercli_linux_arm64.tar.gz
|
|
5
|
+
53689c68af240bbf566fdad0a3eb0f7be38f3b2e3e6af355023f4828027179c7 evercli_windows_amd64.zip
|
|
6
|
+
a3b4ccc89ae04a7e4370169dbb7d78ee7379d254da6268ecfb70d3d15c9ad344 evercli_windows_arm64.zip
|