{"_id":"@deevus/pi-zmx","_rev":"6-70bb824bf6d2d9fe74146ac44ea161c2","name":"@deevus/pi-zmx","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"@deevus/pi-zmx","version":"0.0.1","keywords":["pi-package"],"license":"MIT","_id":"@deevus/pi-zmx@0.0.1","maintainers":[{"name":"deevus","email":"simon@simonhartcher.com"}],"homepage":"https://github.com/deevus/pi-zmx#readme","bugs":{"url":"https://github.com/deevus/pi-zmx/issues"},"pi":{"extensions":["./extensions"]},"dist":{"shasum":"b880cc86206dd7814b79bd81e0367c6cc2e0ee70","tarball":"https://registry.npmjs.org/@deevus/pi-zmx/-/pi-zmx-0.0.1.tgz","fileCount":3,"integrity":"sha512-C5m0kQjiCzkrzHTMQsAs8VL92ykGs0cGn0pKcXj8K98ALI9KYnxGeCvDb84kh4VFMOqu3Jw+D8LwNM7JNdrV7A==","signatures":[{"sig":"MEYCIQDOW/6dJuWAyeP/1kxI/bi0oaD48eyUKMRucOyvMZcqeAIhAMZHrbb7QgQAPHW6aHbR6+ejBQayi3SvOfIEPHmxBtz4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17946},"gitHead":"e9354ea9258a07efa6035b61a9429d6f55c575be","_npmUser":{"name":"deevus","email":"simon@simonhartcher.com"},"repository":{"url":"git+https://github.com/deevus/pi-zmx.git","type":"git"},"_npmVersion":"11.10.1","description":"Execute shell commands in persistent zmx sessions from pi","directories":{},"_nodeVersion":"25.7.0","_hasShrinkwrap":false,"peerDependencies":{"typebox":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-zmx_0.0.1_1777016590661_0.31562081936604214","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@deevus/pi-zmx","version":"0.0.2","keywords":["pi-package"],"license":"MIT","_id":"@deevus/pi-zmx@0.0.2","maintainers":[{"name":"deevus","email":"simon@simonhartcher.com"}],"homepage":"https://github.com/deevus/pi-zmx#readme","bugs":{"url":"https://github.com/deevus/pi-zmx/issues"},"pi":{"extensions":["./extensions"]},"dist":{"shasum":"373b2b905482c71235046a59b48cb44629302109","tarball":"https://registry.npmjs.org/@deevus/pi-zmx/-/pi-zmx-0.0.2.tgz","fileCount":3,"integrity":"sha512-gD03yxicUJSWKYW7e1HaBM6pfBO3nf363QS15XTPsW6GLGyWLg/Y4KMWlwFzQ4XErKAA3Qem9zbOQ12MzYvlCg==","signatures":[{"sig":"MEUCIAvInHrQIWmD3vK6QxvHXYrB0UidRD/h1IfqnPKoXF97AiEArYmTWyyeY84c6f5J6gpIkfoZpARXs/SmHhXMpUwnQU4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17778},"gitHead":"c343cc53fc618398569768256f39d3bcef055461","_npmUser":{"name":"deevus","email":"simon@simonhartcher.com"},"repository":{"url":"git+https://github.com/deevus/pi-zmx.git","type":"git"},"_npmVersion":"11.10.1","description":"Execute shell commands in persistent zmx sessions from pi","directories":{},"_nodeVersion":"25.7.0","_hasShrinkwrap":false,"peerDependencies":{"typebox":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-zmx_0.0.2_1777016762281_0.41398013332174677","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@deevus/pi-zmx","version":"0.0.3","keywords":["pi-package"],"license":"MIT","_id":"@deevus/pi-zmx@0.0.3","maintainers":[{"name":"deevus","email":"simon@simonhartcher.com"}],"homepage":"https://github.com/deevus/pi-zmx#readme","bugs":{"url":"https://github.com/deevus/pi-zmx/issues"},"pi":{"extensions":["./extensions"]},"dist":{"shasum":"6cebd14a513d0e0f6b3d97a23b053d95d36ab894","tarball":"https://registry.npmjs.org/@deevus/pi-zmx/-/pi-zmx-0.0.3.tgz","fileCount":4,"integrity":"sha512-4n80oqjlpm+fwBdsiddwgtGiXO4JdW9E/FWc5mnRGn2vbK6lCndoymKHlrJuvuhYJ8J6gp0Jply9Z+DhDv5SHA==","signatures":[{"sig":"MEQCIGLeQjQdhitVEOVw/ExBwirSuoipZqHfshOOlh1tcNS9AiBjIFrzAfPusG1sr4U0DG1WPuWvjITCsjZo90MKjn+IxA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18527},"gitHead":"61499283054c1e8584b1a7b4f3285054ed246e5f","_npmUser":{"name":"deevus","email":"simon@simonhartcher.com"},"repository":{"url":"git+https://github.com/deevus/pi-zmx.git","type":"git"},"_npmVersion":"11.10.1","description":"Execute shell commands in persistent zmx sessions from pi","directories":{},"_nodeVersion":"25.7.0","_hasShrinkwrap":false,"peerDependencies":{"typebox":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-zmx_0.0.3_1777169750796_0.8434242558310185","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@deevus/pi-zmx","version":"0.0.4","keywords":["pi-package"],"license":"MIT","_id":"@deevus/pi-zmx@0.0.4","maintainers":[{"name":"deevus","email":"simon@simonhartcher.com"}],"homepage":"https://github.com/deevus/pi-zmx#readme","bugs":{"url":"https://github.com/deevus/pi-zmx/issues"},"pi":{"extensions":["./extensions/zmx-exec.ts"]},"dist":{"shasum":"e344f4d0e2452ce0e36d2d9c80db854631a93129","tarball":"https://registry.npmjs.org/@deevus/pi-zmx/-/pi-zmx-0.0.4.tgz","fileCount":4,"integrity":"sha512-LupJArLjJt2l+9xf571mtWHfvq6oJdlHmXKox5c/0M0AVBwhI+4AaGlWCzsHYrC9idrhIn5t1ipfAiesvacbYw==","signatures":[{"sig":"MEUCIQC1VycRzvmq6AQ+V1z388IM44fOeUey0z5m2upEi5KkHwIgbBYg63iKQXdPvEZnAp5OVE6C7+gv+dJ/AjW6zFkFo6c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18539},"gitHead":"c9306927e9ed0ab032a59e331dd2992668208ae3","_npmUser":{"name":"deevus","email":"simon@simonhartcher.com"},"repository":{"url":"git+https://github.com/deevus/pi-zmx.git","type":"git"},"_npmVersion":"10.9.7","description":"Execute shell commands in persistent zmx sessions from pi","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"peerDependencies":{"typebox":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-zmx_0.0.4_1777170437418_0.9476797595808188","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@deevus/pi-zmx","version":"0.1.0","keywords":["pi-package"],"license":"MIT","_id":"@deevus/pi-zmx@0.1.0","maintainers":[{"name":"deevus","email":"simon@simonhartcher.com"}],"homepage":"https://github.com/deevus/pi-zmx#readme","bugs":{"url":"https://github.com/deevus/pi-zmx/issues"},"pi":{"extensions":["./extensions/zmx-exec.ts"]},"dist":{"shasum":"e5ced56028fef3f139f553453eb7b3c069ea65dc","tarball":"https://registry.npmjs.org/@deevus/pi-zmx/-/pi-zmx-0.1.0.tgz","fileCount":4,"integrity":"sha512-+1iC7W9soK4EGEreq4C5HzCYnQnzNShsj+1OP01jXQTWB6ThTp0GLHvVC2BcT2YghtbBYjYmdq3LmPKxbLRNxg==","signatures":[{"sig":"MEUCIQChwhSAhiiiIJVJAUgvz+oix866+F8UhkXAJlcTkqfjwgIgL66LFy+quxnUMrSm7X6o8PEFi3W7GffqMS9SmINf+XY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18816},"gitHead":"72cd52ff9203aa6e56523f35954fd4b57e2977cd","_npmUser":{"name":"deevus","email":"simon@simonhartcher.com"},"repository":{"url":"git+https://github.com/deevus/pi-zmx.git","type":"git"},"_npmVersion":"11.10.1","description":"Execute shell commands in persistent zmx sessions from pi","directories":{},"_nodeVersion":"25.7.0","_hasShrinkwrap":false,"peerDependencies":{"typebox":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-zmx_0.1.0_1777196184388_0.6323625679676008","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@deevus/pi-zmx","version":"0.1.1","description":"Execute shell commands in persistent zmx sessions from pi","keywords":["pi-package"],"license":"MIT","peerDependencies":{"@earendil-works/pi-coding-agent":"*","typebox":"*"},"repository":{"type":"git","url":"git+https://github.com/deevus/pi-zmx.git"},"pi":{"extensions":["./extensions/zmx-exec.ts"]},"_id":"@deevus/pi-zmx@0.1.1","gitHead":"9a27ed532023e566c590312bef1bc09b81ee3cb3","bugs":{"url":"https://github.com/deevus/pi-zmx/issues"},"homepage":"https://github.com/deevus/pi-zmx#readme","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-yIifnBzBvFjgbrqr+nYyHDc5dEr6Z6ASpsAf9RaGA2R4tM9S+Q+POezBQciIdg5RJkoCPEZPGdgmsLMPY+a0sA==","shasum":"dd5d11ade1030c32c9233da7457050bcd1cae184","tarball":"https://registry.npmjs.org/@deevus/pi-zmx/-/pi-zmx-0.1.1.tgz","fileCount":4,"unpackedSize":18840,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFECK1lJypkZMXxDqnYfnV31gQBaOG/3mnZu2dw6HQkFAiEA+oR5/Jlhj2/pTK0JBE32SN1rBIfH1gk0m7jQy3U0RDA="}]},"_npmUser":{"name":"deevus","email":"simon@simonhartcher.com"},"directories":{},"maintainers":[{"name":"deevus","email":"simon@simonhartcher.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-zmx_0.1.1_1779335635602_0.12186946575324864"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-24T07:43:10.557Z","modified":"2026-05-21T03:53:55.861Z","0.0.1":"2026-04-24T07:43:10.793Z","0.0.2":"2026-04-24T07:46:02.422Z","0.0.3":"2026-04-26T02:15:50.966Z","0.0.4":"2026-04-26T02:27:17.555Z","0.1.0":"2026-04-26T09:36:24.547Z","0.1.1":"2026-05-21T03:53:55.734Z"},"bugs":{"url":"https://github.com/deevus/pi-zmx/issues"},"license":"MIT","homepage":"https://github.com/deevus/pi-zmx#readme","keywords":["pi-package"],"repository":{"type":"git","url":"git+https://github.com/deevus/pi-zmx.git"},"description":"Execute shell commands in persistent zmx sessions from pi","maintainers":[{"name":"deevus","email":"simon@simonhartcher.com"}],"readme":"# @deevus/pi-zmx\n\nA [pi](https://github.com/badlogic/pi-mono) extension that executes shell commands inside persistent [zmx](https://zmx.sh) sessions.\n\n## Features\n\n- **Persistent sessions** — filesystem effects, background processes, and exported env vars survive across tool calls\n- **Non-blocking** — `zmx_run` sends commands and returns immediately; use `zmx_wait` when you need to block\n- **Human-in-the-loop** — start a process, prompt the user to attach and enter a password or interact, then continue\n- **Auto session naming** — defaults to the pi session display name if set; otherwise requires an explicit session name\n\n## Requirements\n\n[zmx](https://zmx.sh) must be installed and on your `PATH`:\n\n```bash\nbrew install neurosnap/tap/zmx\n```\n\nOr download a binary directly from [zmx.sh](https://zmx.sh/#binaries).\n\n## Install\n\n```bash\npi install npm:@deevus/pi-zmx\n```\n\n## Tools\n\n| Tool | Description |\n|---|---|\n| `zmx_run` | Send a shell command to a zmx session (non-blocking) |\n| `zmx_wait` | Wait for session tasks to complete |\n| `zmx_history` | View recent scrollback from a session |\n| `zmx_list` | List active zmx sessions |\n| `zmx_kill` | Kill one or more zmx sessions |\n| `zmx_attach` | Get instructions for manually attaching to a session |\n\n## Commands\n\n| Command | Description |\n|---|---|\n| `/zmx` | Interactive session manager (attach / create / kill) |\n\n## Usage\n\n### Basic\n\n```\nzmx_run(session=\"my-project\", command=\"npm test\")\nzmx_wait(session=\"my-project\")\nzmx_history(session=\"my-project\", lines=50)\n```\n\n### Human-in-the-loop (e.g. password prompt)\n\n```\nzmx_run(session=\"my-project\", command=\"sudo apt update\")\nzmx_attach(session=\"my-project\")\n# → tells the human to run: zmx attach my-project\n# → human enters password and detaches with Ctrl+\\\nzmx_wait(session=\"my-project\")\nzmx_history(session=\"my-project\")\n```\n\n\n## License\n\nMIT\n","readmeFilename":"README.md"}