@lobehub/cli 0.0.200 → 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
@@ -8668,6 +8668,7 @@ var init_metadata = __esmMin((() => {
8668
8668
  reactions: array(EmojiReactionSchema).optional(),
8669
8669
  scope: string().optional(),
8670
8670
  selectedSkillIds: array(string()).optional(),
8671
+ selectedToolIds: array(string()).optional(),
8671
8672
  signal: MessageSignalSchema.optional(),
8672
8673
  steer: boolean().optional(),
8673
8674
  subAgentCallback: MessageSubAgentCallbackSchema.optional(),
@@ -558674,7 +558675,17 @@ const probeRemotePlatform = async (type) => {
558674
558675
  reason: status.error
558675
558676
  };
558676
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
+ */
558677
558687
  const scanHeterogeneousAgentsOnHost = async () => {
558688
+ invalidateLoginShellPathCache();
558678
558689
  const entries = await Promise.all([...HETEROGENEOUS_AGENT_CONFIGS.map(async (config) => {
558679
558690
  const status = await detectHeterogeneousCliCommand(config.type, config.defaultCommand);
558680
558691
  return [config.type, {
@@ -560594,6 +560605,9 @@ async function runLocalSystemTool(apiName, args, { uploadImage } = {}) {
560594
560605
  /**
560595
560606
  * Probe every known heterogeneous agent type on this device in one pass.
560596
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.
560597
560611
  */
560598
560612
  async function scanHeterogeneousAgents() {
560599
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.200" "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.200",
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": "2cd5111081e033a54e8f74726edd964fe3161311"
86
+ "gitHead": "12d3156bbed7d79ed2c16d3c9fe3a70ce1c6cd11"
87
87
  }