@ia-qa/cli 1.0.0 → 1.0.2

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.
Files changed (3) hide show
  1. package/README.md +6 -1
  2. package/index.js +7 -3
  3. package/package.json +12 -3
package/README.md CHANGED
@@ -1,7 +1,10 @@
1
1
  # @ia-qa/cli
2
2
 
3
3
  Run [ia-qa.com](https://www.ia-qa.com)'s **148 QA / LLM / dev tools** from your shell — for AI agents
4
- (Claude Code, Copilot CLI, Cursor agents) and humans. **Zero dependencies. No signup. No API key.**
4
+ (Claude Code, Copilot CLI, Cursor agents) and humans. **Zero dependencies. No signup.**
5
+
6
+ Most tools run **key-free**. For the LLM-powered ones (e.g. VLM test suites, LLM-judge eval), **bring
7
+ your own key (BYOK)** — pass it as a parameter; nothing is stored.
5
8
 
6
9
  The CLI carries no business logic: it discovers tools from the public MCP manifest and runs them on
7
10
  the hosted server (`https://www.ia-qa.com`). Requires **Node ≥ 18**.
@@ -41,6 +44,8 @@ ia-qa split_chunks "$(cat doc.txt)" --chunk_size 256 --out chunks.json
41
44
  - **`--stdin`** (or `-` as the positional) reads the primary input from stdin.
42
45
  - **`--server <url>`** / **`$IAQA_SERVER`** point at another server (default `https://www.ia-qa.com`,
43
46
  or a self-hosted ia-qa server).
47
+ - **BYOK** for LLM tools — pass your key as a parameter, e.g.
48
+ `ia-qa run_vlm_test_suite --image_url <url> --api_key "$OPENAI_API_KEY" --model gpt-4o`.
44
49
  - **Exit codes**: `0` success · `2` bad input / missing param · `1` unexpected / server error.
45
50
 
46
51
  ## Also available as MCP
package/index.js CHANGED
@@ -29,6 +29,9 @@ const DEFAULT_SERVER = (process.env.IAQA_SERVER || 'https://www.ia-qa.com').repl
29
29
  const INLINE_MAX_CHARS = 4000;
30
30
  const INLINE_MAX_LINES = 100;
31
31
 
32
+ // Own version, for caller identification (so the server can label CLI traffic).
33
+ const VERSION = (() => { try { return require('./package.json').version; } catch { return '0'; } })();
34
+
32
35
  // ── argv parsing (no dependency) ─────────────────────────────────────────────
33
36
 
34
37
  function parseArgv(argv) {
@@ -115,8 +118,9 @@ async function callTool(server, name, parameters) {
115
118
  try {
116
119
  res = await fetch(`${server}/mcp/call`, {
117
120
  method: 'POST',
118
- headers: { 'Content-Type': 'application/json', 'X-Client': 'ia-qa-cli' },
119
- body: JSON.stringify({ name, parameters }),
121
+ headers: { 'Content-Type': 'application/json', 'User-Agent': `ia-qa-cli/${VERSION}` },
122
+ // `_meta.agent` is the MCP-standard field the server reads to identify the caller.
123
+ body: JSON.stringify({ name, parameters, _meta: { agent: 'ia-qa-cli', version: VERSION } }),
120
124
  });
121
125
  } catch (e) {
122
126
  throw new CliError(`Cannot reach ia-qa server at ${server} (${e.message}). Set --server or $IAQA_SERVER.`, 1);
@@ -189,7 +193,7 @@ function compactHelp(m) {
189
193
  ' ia-qa base64_encode "hello"',
190
194
  " echo '{\"a\":1}' | ia-qa format_json --stdin --json",
191
195
  '',
192
- `Runs on ${DEFAULT_SERVER} (override with --server or $IAQA_SERVER). No key, no signup.`,
196
+ `Runs on ${DEFAULT_SERVER} (override with --server or $IAQA_SERVER). No signup; most tools key-free, BYOK for LLM tools.`,
193
197
  ].join('\n');
194
198
  }
195
199
 
package/package.json CHANGED
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@ia-qa/cli",
3
- "version": "1.0.0",
4
- "description": "Run ia-qa.com's 148 QA/LLM/dev tools from your shell — for AI agents (Claude Code, Copilot CLI) and humans. Zero dependencies, no signup, no API key.",
5
- "keywords": ["ia-qa", "cli", "mcp", "qa", "llm", "testing", "ai-agent", "developer-tools"],
3
+ "version": "1.0.2",
4
+ "description": "Run ia-qa.com's 148 QA/LLM/dev tools from your shell — for AI agents (Claude Code, Copilot CLI) and humans. Zero dependencies, no signup; most tools key-free, BYOK for the LLM-powered ones.",
5
+ "keywords": [
6
+ "ia-qa",
7
+ "cli",
8
+ "mcp",
9
+ "qa",
10
+ "llm",
11
+ "testing",
12
+ "ai-agent",
13
+ "developer-tools"
14
+ ],
6
15
  "homepage": "https://www.ia-qa.com",
7
16
  "bugs": "https://www.ia-qa.com/contactUs",
8
17
  "license": "MIT",