noninteractive 0.3.11 → 0.3.12

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
@@ -61,7 +61,7 @@ npx noninteractive stop workos
61
61
 
62
62
  ## The `--wait` flag
63
63
 
64
- Both `send` and `read` support `--wait` (`-w`), which blocks until new output appears instead of returning immediately. This eliminates polling loops and reduces tool calls by ~7-10x.
64
+ Both `send` and `read` support `--wait` (`-w`), which blocks until new output appears instead of returning immediately. This eliminates polling loops and reduces tool calls by ~7-10x. Output is returned as clean text with ANSI escape codes stripped by default, so agents get readable content without terminal formatting noise.
65
65
 
66
66
  ```bash
67
67
  # Old way (polling): send + read + read + read...
@@ -243,7 +243,7 @@ var init_daemon = __esm(() => {
243
243
  var require_package = __commonJS((exports, module) => {
244
244
  module.exports = {
245
245
  name: "noninteractive",
246
- version: "0.3.11",
246
+ version: "0.3.12",
247
247
  type: "module",
248
248
  bin: {
249
249
  noninteractive: "./bin/noninteractive.js"
@@ -388,7 +388,8 @@ function deriveSessionName(cmd, args) {
388
388
  while (i < parts.length && parts[i].startsWith("-"))
389
389
  i++;
390
390
  const name = parts[i] || cmd;
391
- return name.replace(/^@[^/]+\//, "").replace(/[^a-zA-Z0-9_-]/g, "");
391
+ const stripped = name.replace(/(?<=.)@[^/].*$/, "");
392
+ return (stripped || name).replace(/^@[^/]+\//, "").replace(/[^a-zA-Z0-9_-]/g, "");
392
393
  }
393
394
  async function start(cmdArgs) {
394
395
  const executable = cmdArgs[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noninteractive",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "noninteractive": "./bin/noninteractive.js"