@lobehub/cli 0.0.201 → 0.0.202

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/dist/index.js CHANGED
@@ -558675,7 +558675,17 @@ const probeRemotePlatform = async (type) => {
558675
558675
  reason: status.error
558676
558676
  };
558677
558677
  };
558678
+ /**
558679
+ * Probe every known agent type on this machine.
558680
+ *
558681
+ * Each scan re-reads the login-shell PATH first. The scanner lives in a
558682
+ * long-running host (`lh connect`, Electron main) that otherwise keeps the PATH
558683
+ * it read at startup for the whole process, so a CLI installed afterwards —
558684
+ * the reason someone presses "Rescan device" — stayed invisible until the host
558685
+ * was restarted. All probes of one scan still share a single shell read.
558686
+ */
558678
558687
  const scanHeterogeneousAgentsOnHost = async () => {
558688
+ invalidateLoginShellPathCache();
558679
558689
  const entries = await Promise.all([...HETEROGENEOUS_AGENT_CONFIGS.map(async (config) => {
558680
558690
  const status = await detectHeterogeneousCliCommand(config.type, config.defaultCommand);
558681
558691
  return [config.type, {
@@ -560595,6 +560605,9 @@ async function runLocalSystemTool(apiName, args, { uploadImage } = {}) {
560595
560605
  /**
560596
560606
  * Probe every known heterogeneous agent type on this device in one pass.
560597
560607
  * Dispatched by the server via the `device.scanAgents` tRPC procedure.
560608
+ *
560609
+ * The scan re-reads the login-shell PATH on every call, so a CLI installed
560610
+ * after `lh connect` started shows up on the next scan without a restart.
560598
560611
  */
560599
560612
  async function scanHeterogeneousAgents() {
560600
560613
  return { agents: await scanHeterogeneousAgentsOnHost() };
package/man/man1/lh.1 CHANGED
@@ -1,6 +1,6 @@
1
1
  .\" Code generated by `npm run man:generate`; DO NOT EDIT.
2
2
  .\" Manual command details come from the Commander command tree.
3
- .TH LH 1 "" "@lobehub/cli 0.0.201" "User Commands"
3
+ .TH LH 1 "" "@lobehub/cli 0.0.202" "User Commands"
4
4
  .SH NAME
5
5
  lh \- LobeHub CLI \- manage and connect to LobeHub services
6
6
  .SH SYNOPSIS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/cli",
3
- "version": "0.0.201",
3
+ "version": "0.0.202",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/lobehub/lobehub",
@@ -83,5 +83,5 @@
83
83
  "access": "public",
84
84
  "registry": "https://registry.npmjs.org"
85
85
  },
86
- "gitHead": "8c44304c8a14478f78df0b1696f98ddafca7949b"
86
+ "gitHead": "12d3156bbed7d79ed2c16d3c9fe3a70ce1c6cd11"
87
87
  }