@axiomantic/garden 0.2.21 → 0.2.22

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/README.md CHANGED
@@ -128,15 +128,17 @@ npx skills add -g axiomantic/garden
128
128
  Install the compiled CLI tools directly onto your `$PATH`:
129
129
 
130
130
  ```bash
131
- # Install all three tools:
132
- npm install -g @axiomantic/rhizo @axiomantic/vine @axiomantic/garden rift-snapshot
133
-
134
- # Or install Garden alone:
131
+ # Recommended: Install Garden (automatically carries rhizo, vine, and rift bin riders):
135
132
  npm install -g @axiomantic/garden
133
+
134
+ # Or install individual components explicitly if desired:
135
+ npm install -g @axiomantic/rhizo @axiomantic/vine @axiomantic/garden rift-snapshot
136
136
  ```
137
137
 
138
138
  > [!TIP]
139
- > **Zero-Install Run via NPX**: In restricted or containerized environments where global installation is unavailable, you can run any command directly without installing:
139
+ > **All-In-One Toolchain**: `@axiomantic/garden` carries first-class bin riders for `garden`, `rhizo`, `vine`, and `rift`. Installing `@axiomantic/garden` makes all four commands immediately accessible in your `$PATH`.
140
+ >
141
+ > In restricted or containerized environments where global installation is unavailable, you can run any command directly without installing:
140
142
  > ```bash
141
143
  > npx -y @axiomantic/garden <command>
142
144
  > ```
Binary file
Binary file
Binary file
Binary file
Binary file
package/bin/rhizo.js ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+ const { spawnSync } = require('child_process');
3
+ const path = require('path');
4
+
5
+ function run() {
6
+ let binScript;
7
+ try {
8
+ const pkgJson = require.resolve('@axiomantic/rhizo/package.json');
9
+ binScript = path.join(path.dirname(pkgJson), 'bin', 'run.js');
10
+ } catch (e) {
11
+ console.error('Error: @axiomantic/rhizo dependency is missing or not installed.');
12
+ console.error(e.message);
13
+ process.exit(1);
14
+ }
15
+
16
+ const res = spawnSync(process.execPath, [binScript, ...process.argv.slice(2)], {
17
+ stdio: 'inherit',
18
+ env: process.env
19
+ });
20
+
21
+ if (res.error) {
22
+ console.error(`Failed to execute rhizo: ${res.error.message}`);
23
+ process.exit(1);
24
+ }
25
+
26
+ process.exit(res.status !== null ? res.status : (res.signal ? 1 : 0));
27
+ }
28
+
29
+ run();
package/bin/rift.js ADDED
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+ const { spawnSync } = require('child_process');
3
+ const path = require('path');
4
+
5
+ function run() {
6
+ let binScript;
7
+ try {
8
+ const mainEntry = require.resolve('rift-snapshot');
9
+ const riftRoot = path.dirname(path.dirname(mainEntry));
10
+ binScript = path.join(riftRoot, 'bin', 'rift.js');
11
+ } catch (e) {
12
+ console.error('Error: rift-snapshot dependency is missing or not installed.');
13
+ console.error(e.message);
14
+ process.exit(1);
15
+ }
16
+
17
+ const res = spawnSync(process.execPath, [binScript, ...process.argv.slice(2)], {
18
+ stdio: 'inherit',
19
+ env: process.env
20
+ });
21
+
22
+ if (res.error) {
23
+ console.error(`Failed to execute rift: ${res.error.message}`);
24
+ process.exit(1);
25
+ }
26
+
27
+ process.exit(res.status !== null ? res.status : (res.signal ? 1 : 0));
28
+ }
29
+
30
+ run();
package/bin/vine.js ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+ const { spawnSync } = require('child_process');
3
+ const path = require('path');
4
+
5
+ function run() {
6
+ let binScript;
7
+ try {
8
+ const pkgJson = require.resolve('@axiomantic/vine/package.json');
9
+ binScript = path.join(path.dirname(pkgJson), 'bin', 'run.js');
10
+ } catch (e) {
11
+ console.error('Error: @axiomantic/vine dependency is missing or not installed.');
12
+ console.error(e.message);
13
+ process.exit(1);
14
+ }
15
+
16
+ const res = spawnSync(process.execPath, [binScript, ...process.argv.slice(2)], {
17
+ stdio: 'inherit',
18
+ env: process.env
19
+ });
20
+
21
+ if (res.error) {
22
+ console.error(`Failed to execute vine: ${res.error.message}`);
23
+ process.exit(1);
24
+ }
25
+
26
+ process.exit(res.status !== null ? res.status : (res.signal ? 1 : 0));
27
+ }
28
+
29
+ run();
package/package.json CHANGED
@@ -1,14 +1,20 @@
1
1
  {
2
2
  "name": "@axiomantic/garden",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "description": "Multi-Agent Swarm Orchestration, Empirical Dialectics & Ceremonies on top of Rhizo & Vine",
5
5
  "main": "bin/run.js",
6
6
  "bin": {
7
- "garden": "bin/run.js"
7
+ "garden": "bin/run.js",
8
+ "rhizo": "bin/rhizo.js",
9
+ "vine": "bin/vine.js",
10
+ "rift": "bin/rift.js"
8
11
  },
9
12
  "skills": "./skills",
10
13
  "files": [
11
14
  "bin/run.js",
15
+ "bin/rhizo.js",
16
+ "bin/vine.js",
17
+ "bin/rift.js",
12
18
  "bin/binaries/",
13
19
  "scripts/",
14
20
  "skills/",
@@ -24,7 +30,7 @@
24
30
  "url": "git+https://github.com/axiomantic/garden.git"
25
31
  },
26
32
  "scripts": {
27
- "test": "nim c -r tests/test_garden.nim && nim c -r tests/test_seed.nim && nim c -r tests/test_germinate.nim && nim c -r tests/test_update.nim",
33
+ "test": "nim c -r tests/test_garden.nim && nim c -r tests/test_seed.nim && nim c -r tests/test_germinate.nim && nim c -r tests/test_update.nim && node tests/test_riders.js",
28
34
  "build": "nim c -d:release --threads:on --mm:orc -o:bin/garden src/garden.nim"
29
35
  },
30
36
  "keywords": [
@@ -42,5 +48,10 @@
42
48
  "bugs": {
43
49
  "url": "https://github.com/axiomantic/garden/issues"
44
50
  },
45
- "homepage": "https://github.com/axiomantic/garden#readme"
51
+ "homepage": "https://github.com/axiomantic/garden#readme",
52
+ "dependencies": {
53
+ "@axiomantic/rhizo": "^0.2.23",
54
+ "@axiomantic/vine": "^0.2.12",
55
+ "rift-snapshot": "^0.0.13"
56
+ }
46
57
  }