{"_id":"@amql/cli","name":"@amql/cli","dist-tags":{"alpha":"0.0.0-alpha.0","latest":"0.0.0-alpha.0"},"versions":{"0.0.0-alpha.0":{"name":"@amql/cli","version":"0.0.0-alpha.0","description":"AQL command-line interface and REPL","bin":{"amql":"target/release/amql"},"scripts":{"build":"cargo build --release -p amql-cli"},"dependencies":{"@amql/engine":"workspace:*"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/vikr01/aql.git","directory":"crates/amql-cli"},"engines":{"node":">=18.0.0"},"_id":"@amql/cli@0.0.0-alpha.0","gitHead":"4ee0598df7c53c686813ef469453e946c91514be","bugs":{"url":"https://github.com/vikr01/aql/issues"},"homepage":"https://github.com/vikr01/aql#readme","_nodeVersion":"22.17.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-Tu5FF0P7bFch9m+tusl1wVe+A1g97JxEXWgxKF8B+i0GzqM3q3WdoNczQnVict9w/cc0Ye+2+xB+rx4mnxByzg==","shasum":"5fef523baeed193d397fef4f43c1efd75a8bf320","tarball":"https://registry.npmjs.org/@amql/cli/-/cli-0.0.0-alpha.0.tgz","fileCount":9,"unpackedSize":61678,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDWoI1yQn5GjUmu+a4bQMugfJHc7YNlhKBM2jShTxFlqwIgQnpNY9YSmErgqFhIMzKh5X293JgrS3pW6xigC6hSdyY="}]},"_npmUser":{"name":"vikr01","email":"vik120@icloud.com"},"directories":{},"maintainers":[{"name":"vikr01","email":"vik120@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli_0.0.0-alpha.0_1773349196126_0.2977510832881851"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-12T20:59:56.048Z","0.0.0-alpha.0":"2026-03-12T20:59:56.360Z","modified":"2026-03-12T20:59:56.571Z"},"maintainers":[{"name":"vikr01","email":"vik120@icloud.com"}],"description":"AQL command-line interface and REPL","homepage":"https://github.com/vikr01/aql#readme","repository":{"type":"git","url":"git+https://github.com/vikr01/aql.git","directory":"crates/amql-cli"},"bugs":{"url":"https://github.com/vikr01/aql/issues"},"license":"MIT","readme":"# amql-cli\n\n> Command-line interface and interactive REPL for AQL\n\n## Role\n\n- Thin shim over [amql-engine](../amql-engine)\n- Zero domain logic — all operations delegate to the engine\n- Also exposes the [MCP server](../amql-mcp-server) via `aql mcp`\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `select` | Query annotations by CSS-like selector |\n| `query` | Unified annotation + code element query |\n| `extract` | Run extractors on source files |\n| `validate` | Validate annotations against schema |\n| `diff` | Compare annotations against baseline |\n| `repair` | Suggest fixes for annotation issues |\n| `schema` | Discover annotation metadata |\n| `stats` | Project annotation statistics |\n| `init` | Initialize AQL in a project |\n| `locate` | Find sidecar for a source file |\n| `bench` | Benchmark AQL vs baseline tools |\n| `nav_select` | Select AST nodes by tree-sitter kind |\n| `nav_read` | Read source text of a node |\n| `nav_insert` | Insert source relative to a node |\n| `nav_replace` | Replace a node's source text |\n| `nav_remove` | Remove a node from source |\n| `transact` | Atomic multi-step source mutation |\n| `mcp` | Start the MCP server (stdio transport) |\n\n## Getting Started\n\n```sh\n# Install\ncargo install amql-cli\n\n# Query annotations\naql select \"controller[method='POST']\" --scope src/\n\n# Interactive REPL\naql\n\n# Start MCP server\naql mcp\n```\n\n## License\n\n[MIT](../../LICENSE)\n","readmeFilename":"README.md","_rev":"1-63baa47dee830e1a13049e80a262b80b"}