kadai 0.5.0 → 0.6.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.
Files changed (3) hide show
  1. package/README.md +15 -2
  2. package/dist/cli.js +21 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -7,12 +7,25 @@
7
7
  3. Share them with your team in the repo.
8
8
  4. Automatically make them discoverable by AI.
9
9
 
10
+ ## Prerequisites
11
+
12
+ kadai requires [Bun](https://bun.sh) as its runtime.
13
+
14
+ ```bash
15
+ # macOS / Linux
16
+ curl -fsSL https://bun.sh/install | bash
17
+
18
+ # Homebrew
19
+ brew install oven-sh/bun/bun
20
+
21
+ # Windows
22
+ powershell -c "irm bun.sh/install.ps1 | iex"
23
+ ```
24
+
10
25
  ## Getting Started
11
26
 
12
27
  ```bash
13
28
  bunx kadai
14
- # OR
15
- npx kadai
16
29
  ```
17
30
 
18
31
  On first run, kadai creates a `.kadai/` directory with a sample action and config file. Run it again to open the interactive menu.
package/dist/cli.js CHANGED
@@ -883,7 +883,7 @@ var init_commands = __esm(() => {
883
883
  var require_package = __commonJS((exports, module) => {
884
884
  module.exports = {
885
885
  name: "kadai",
886
- version: "0.5.0",
886
+ version: "0.6.0",
887
887
  type: "module",
888
888
  bin: {
889
889
  kadai: "./dist/cli.js"
@@ -2696,6 +2696,25 @@ Organize actions into categories using subdirectories:
2696
2696
  }
2697
2697
  var init_init_wizard = () => {};
2698
2698
 
2699
+ // src/core/shared-deps.ts
2700
+ var SHARED_DEPS = ["ink", "react", "@inkjs/ui"];
2701
+ function registerSharedDeps() {
2702
+ const escaped = SHARED_DEPS.map((d) => d.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
2703
+ const filter = new RegExp(`^(${escaped.join("|")})(/.*)?$`);
2704
+ Bun.plugin({
2705
+ name: "kadai-shared-deps",
2706
+ setup(build) {
2707
+ build.onResolve({ filter }, (args) => {
2708
+ try {
2709
+ return { path: __require.resolve(args.path) };
2710
+ } catch {
2711
+ return;
2712
+ }
2713
+ });
2714
+ }
2715
+ });
2716
+ }
2717
+
2699
2718
  // src/core/args.ts
2700
2719
  function parseArgs(argv) {
2701
2720
  if (argv.length === 0) {
@@ -2738,6 +2757,7 @@ function parseArgs(argv) {
2738
2757
  // src/cli.tsx
2739
2758
  init_commands();
2740
2759
  init_loader();
2760
+ registerSharedDeps();
2741
2761
  var cwd = process.cwd();
2742
2762
  var parsed = parseArgs(process.argv.slice(2));
2743
2763
  if (parsed.type === "error") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kadai",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "kadai": "./dist/cli.js"