kadai 0.4.0 → 0.4.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.
Files changed (3) hide show
  1. package/README.md +4 -1
  2. package/dist/cli.js +5 -11
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,10 @@
2
2
 
3
3
  # kadai
4
4
 
5
- A terminal UI for discovering and running project scripts. Drop scripts into `.kadai/actions/`, and kadai gives you a fuzzy-searchable menu to run them.
5
+ 1. Drop scripts into `.kadai/actions/`.
6
+ 2. Run with `bunx kadai`.
7
+ 3. Share them with your team in the repo.
8
+ 4. Automatically make them discoverable by AI.
6
9
 
7
10
  ## Getting Started
8
11
 
package/dist/cli.js CHANGED
@@ -2299,22 +2299,16 @@ var env = {
2299
2299
  console.log(`${action.meta.emoji ? `${action.meta.emoji} ` : ""}${action.meta.name}
2300
2300
  `);
2301
2301
  process.stdin.removeAllListeners("data");
2302
+ if (process.stdin.isTTY) {
2303
+ process.stdin.setRawMode(false);
2304
+ }
2305
+ process.stdin.resume();
2302
2306
  var proc = Bun.spawn(cmd, {
2303
2307
  cwd,
2304
2308
  stdout: "inherit",
2305
2309
  stderr: "inherit",
2306
- stdin: "pipe",
2310
+ stdin: "inherit",
2307
2311
  env
2308
2312
  });
2309
- var forwardStdin = (data) => {
2310
- try {
2311
- const converted = Buffer.from(data.toString().replace(/\r/g, `
2312
- `));
2313
- proc.stdin.write(converted);
2314
- proc.stdin.flush();
2315
- } catch {}
2316
- };
2317
- process.stdin.on("data", forwardStdin);
2318
- process.stdin.resume();
2319
2313
  var exitCode = await proc.exited;
2320
2314
  process.exit(exitCode);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kadai",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "kadai": "./dist/cli.js"