{"_id":"@ackr/cli","name":"@ackr/cli","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@ackr/cli","version":"0.0.1","description":"ackr CLI — bidirectional push notifications for AI agents. https://ackr.io (pre-release placeholder)","license":"UNLICENSED","publishConfig":{"access":"public"},"type":"module","bin":{"ackr":"dist/index.js"},"keywords":["ackr","ai-agents","human-in-the-loop","push-notifications","cli","claude","approval"],"scripts":{"build":"tsc -p tsconfig.json","dev":"tsx src/index.ts","test":"vitest run","lint":"eslint src","prepublishOnly":"npm run build"},"engines":{"node":">=20"},"dependencies":{"commander":"^12.1.0"},"devDependencies":{"@types/node":"^22.0.0","tsx":"^4.19.0","typescript":"^5.6.0","vitest":"^2.1.0"},"homepage":"https://ackr.io","bugs":{"url":"https://ackr.io"},"_id":"@ackr/cli@0.0.1","gitHead":"e9187a4272161e981e5ced9a84e686a85ea385b6","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-MxzIKbFH1XjQ9nmDRD9JoFt1N0UPUPLQ99NuR4s4LWF/u0kgxTOkAtfZlpvBpKyOWGm4sp7IqdmgESNpH94UYQ==","shasum":"942d8f781267bd2c5f239caadd1b3aa24ed696f0","tarball":"https://registry.npmjs.org/@ackr/cli/-/cli-0.0.1.tgz","fileCount":5,"unpackedSize":5148,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC8mqt3DGtUYd7cJKZ7Lc9rxPdLQoD0bXxTyW4atd1ZjwIgBcLcraJnQlsnfMpZxuFAH1007rOYWYODWTdFD1O6scU="}]},"_npmUser":{"name":"lukeisontheroad","email":"schoenbaechler.lukas@gmail.com"},"directories":{},"maintainers":[{"name":"lukeisontheroad","email":"schoenbaechler.lukas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli_0.0.1_1777790187766_0.5258201871649952"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-03T06:36:27.557Z","0.0.1":"2026-05-03T06:36:27.923Z","modified":"2026-05-03T06:36:28.196Z"},"maintainers":[{"name":"lukeisontheroad","email":"schoenbaechler.lukas@gmail.com"}],"description":"ackr CLI — bidirectional push notifications for AI agents. https://ackr.io (pre-release placeholder)","homepage":"https://ackr.io","keywords":["ackr","ai-agents","human-in-the-loop","push-notifications","cli","claude","approval"],"bugs":{"url":"https://ackr.io"},"license":"UNLICENSED","readme":"# `ackr` CLI\n\n> **Pre-release placeholder (v0.0.1).** The package name is reserved on npm but\n> the CLI is not functional yet — `ackr ask` exits with a non-zero status and a\n> \"pre-release\" notice. Track progress at [ackr.io](https://ackr.io).\n\nThe CLI hook for AI agent workflows. Distributed via npm so `npx ackr ask …`\nworks without install.\n\n## Install\n\n```bash\nnpm install -g @ackr/cli   # or use npx @ackr/cli\n```\n\nThe package is `@ackr/cli`; the binary it installs is `ackr`.\n\n## Usage (target — not yet implemented)\n\n```bash\nackr ask \"Should I deploy to prod?\" --yes-no\n# { \"answered\": true, \"response\": true, \"elapsed_ms\": 4231 }\n\n# Exit codes\n# 0 = answered\n# 1 = timeout\n# 2 = rejected/cancelled\n# 3 = error\n```\n\n### Action flags\n\n| Flag                  | Type                                |\n| --------------------- | ----------------------------------- |\n| `--yes-no`            | boolean                             |\n| `--text <label>`      | free-text response                  |\n| `--number <label>`    | numeric response                    |\n| `--choice <a,b,c>`    | radio (single choice)               |\n| `--multi <a,b,c>`     | select (multi-choice)               |\n| `--ttl <seconds>`     | expiry, default `300`               |\n| `--project <name>`    | project bucket                      |\n| `--title <title>`     | optional, defaults to the prompt    |\n| `--body <markdown>`   | optional markdown body              |\n\n## Auth\n\n`ACKR_API_KEY` env var, or fallback to `~/.config/ackr/config.json`.\n\n## Presence check\n\nBefore pushing, the CLI sniffs recent terminal activity. If the user is at the\nkeyboard → prompt inline via stdin. Otherwise → push notification + long-poll\n`/v1/notifications/{id}/wait`.\n\n## Local dev\n\n```bash\ncd cli\nnpm install\nnpm run dev -- ask \"test\"\nnpm test\n```\n\n## Versioning\n\nSemver. The placeholder lives at `0.0.x` until `ackr ask` works end-to-end;\nthe first functional release jumps to `0.1.0` to match the repo\n[`VERSION`](../VERSION). Published from `cli/` via `npm publish`.\n","readmeFilename":"README.md","_rev":"1-c88d99713f72fbb563b701b536f74e3c"}