rird 1.1.15 → 1.1.16

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/bin/rird CHANGED
@@ -291,6 +291,16 @@ if (command === "activate") {
291
291
  // Enable RIRD search tools
292
292
  env.RIRD_ENABLE_SEARCH = "true"
293
293
 
294
+ function run(binPath) {
295
+ const result = childProcess.spawnSync(binPath, args, {
296
+ stdio: "inherit",
297
+ env: env,
298
+ cwd: process.cwd(),
299
+ shell: os.platform() === 'win32'
300
+ })
301
+ process.exit(result.status ?? 0)
302
+ }
303
+
294
304
  const args = process.argv.slice(2)
295
305
 
296
306
  const resolved = findBinary(scriptDir)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "name": "rird",
5
5
  "type": "module",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -167,6 +167,7 @@ const cli = yargs(hideBin(process.argv))
167
167
  }
168
168
  })
169
169
  .usage("\n" + UI.logo())
170
+ .demandCommand(1, "")
170
171
  .command(AcpCommand)
171
172
  .command(McpCommand)
172
173
  .command(TuiThreadCommand)
@@ -95,7 +95,7 @@ export namespace Installation {
95
95
 
96
96
  for (const check of checks) {
97
97
  const output = await check.command()
98
- if (output.includes(check.name === "brew" ? "rird" : "rird-cli")) {
98
+ if (output.includes("rird")) {
99
99
  return check.name
100
100
  }
101
101
  }