@axiomantic/garden 0.2.20 → 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.20",
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
  }
@@ -125,13 +125,27 @@ Instead, it acts as an **Intelligent Intake Concierge**:
125
125
  - **If Option 3 selected**: Execute inline in the current session.
126
126
 
127
127
  #### Fast-Path: Re-using an Active / Existing Swarm (First-Look Invariant)
128
- Before asking ANY intake questions or presenting configuration modals, the orchestrator MUST run `rhizo who --json` to inspect the cluster.
128
+ Before asking ANY intake questions or presenting configuration modals, the designated orchestrator MUST run `rhizo who --json` to inspect the cluster.
129
129
  If active, healthy workers are ALREADY registered and listening on the Rhizo cluster:
130
130
  - **DO NOT** ask intake interview questions or prompt the operator for new sessions or models.
131
131
  - **DO NOT** display swarm composition or harness questions.
132
132
  - Automatically attach to the existing online workers (`@worker-1`, `@worker-2`, ...).
133
133
  - Confirm cluster readiness and proceed immediately to Phase 3 (Dialectical Pump / Task Breakdown) or Phase 5 (Task Dispatch).
134
134
 
135
+ > [!CAUTION]
136
+ > **Orchestrator Scope Restriction**: This fast-path applies **ONLY** to a session that was explicitly initialized or designated by the operator as the Lead Orchestrator. A fresh unbootstrapped session must NEVER assume it is the orchestrator simply because `<project>-orchestrator` appears in `rhizo who`!
137
+
138
+ <INVARIANT>
139
+ Unbootstrapped Session Identity: If a session was NOT explicitly bootstrapped with an identity in its conversation history (via a Garden bootstrap prompt card, an explicit operator assignment, or prior 'rhizo open <name>' in that same conversation), it MUST NEVER guess, adopt, or assume an existing identity from 'rhizo who --json' or 'garden-swarm.json' (especially NEVER '<project>-orchestrator'). If the operator commands '/rhizo listen' without arguments in an unbootstrapped session, the session MUST either:
140
+ 1. Run 'rhizo name' to allocate a fresh unique identity, followed by 'rhizo open <name>', OR
141
+ 2. Ask the operator via 'ask_question' which persona or role this window represents.
142
+ Never assume you are the orchestrator or an existing active worker simply because those names appear in the project directory.
143
+ </INVARIANT>
144
+
145
+ <FORBIDDEN>
146
+ Never Hijack or Kill Another Session's Active Listener: When 'rhizo listen <agent>' fails with "Error: Listener already active for agent ... (PID X)", an agent MUST NEVER kill that PID, run 'kill <pid>', or pass '--force' unless the agent has verified in its own conversation history that this agent name was explicitly opened and running in THIS session. In 'rhizo who', 'status: STALE' only indicates that no messages have been routed recently; it does NOT mean the blocking listener process in another window is dead or orphaned. Killing listener PIDs from other windows corrupts the cluster, severs peer communication, and hijacks sovereign sessions.
147
+ </FORBIDDEN>
148
+
135
149
  #### Cold-Start Intake Protocol (Zero Active Workers Only)
136
150
  When an operator initiates a fresh project or requests multi-agent coordination and NO active cluster workers exist, the session MUST NOT silently guess configuration.
137
151
  Because the coding harness is auto-detected from the session environment (`ANTIGRAVITY_APP_DIR` $\to$ Antigravity IDE, `CLAUDE_CODE` $\to$ Claude Code CLI, `OPENCODE_SESSION_ID` $\to$ OpenCode, `CODEX_SESSION_ID` $\to$ ChatGPT Desktop / Codex, `PI_SESSION_ID` $\to$ Pi), the orchestrator invokes `ask_question` to conduct a streamlined **Single-Question Intake Interview**: