@ia-qa/cli 1.0.10 → 1.0.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.
Files changed (3) hide show
  1. package/README.md +24 -0
  2. package/index.js +11 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -9,6 +9,30 @@ your own key (BYOK)** — pass it as a parameter; nothing is stored.
9
9
  The CLI carries no business logic: it discovers tools from the public MCP manifest and runs them on
10
10
  the hosted server (`https://www.ia-qa.com`). Requires **Node ≥ 18**.
11
11
 
12
+ ## Easiest start — have your agent set it up
13
+
14
+ Working with Claude Code, Cursor, Copilot CLI? Paste this to it instead of reading the flag list:
15
+
16
+ ```text
17
+ Set up @ia-qa/cli in this project so you can run QA tools from the shell.
18
+ 1. Run `npx -y @ia-qa/cli list` and `npx -y @ia-qa/cli --help`, then
19
+ `npx -y @ia-qa/cli <tool> --help` for anything you pick. That output is the
20
+ authoritative tool list — do not guess tool names or flags from memory.
21
+ 2. Look at what I'm working on and tell me which 3 of those tools actually fit,
22
+ what verdict each one returns, and how I'd gate CI on it.
23
+ 3. Tell me plainly which of them need my own API key (BYOK), and which ones send
24
+ my input to the hosted server.
25
+ 4. Run one of them on my real data — after I confirm which.
26
+ ```
27
+
28
+ Step 1 is the load-bearing one: the catalogue changes with every server deploy, so a model answering
29
+ from memory will confidently invoke tools that don't exist. `list` is generated from the live
30
+ manifest. Step 3 is not politeness — this CLI is a thin client, **your input is sent to
31
+ `https://www.ia-qa.com` to be executed there**; only `@ia-qa/self-healing` runs fully offline.
32
+
33
+ Agents that speak MCP can skip the CLI entirely and point at `https://www.ia-qa.com/mcp` — same
34
+ tools, same manifest.
35
+
12
36
  ## Install
13
37
 
14
38
  ```bash
package/index.js CHANGED
@@ -95,14 +95,23 @@ function coerce(prop, raw) {
95
95
  return String(raw);
96
96
  }
97
97
 
98
+ // A published type may be a union (JSON-document params accept 'string' | 'object' | 'array'). Anything
99
+ // that can be a string is still positional-shorthand material: the CLI hands the raw text over and the
100
+ // server parses it. Comparing type === 'string' silently dropped the shorthand for json_schema_validate,
101
+ // mock_from_schema, json_diff and merge_json — the four family members with no `input` property.
102
+ function acceptsString(prop) {
103
+ const type = (prop && prop.type) || 'string';
104
+ return Array.isArray(type) ? type.includes('string') : type === 'string';
105
+ }
106
+
98
107
  function primaryParam(schema) {
99
108
  const props = (schema && schema.properties) || {};
100
109
  const required = (schema && schema.required) || [];
101
110
  if (props.input) return 'input';
102
111
  if (props.text) return 'text';
103
- const reqStr = required.find((k) => (props[k] && props[k].type || 'string') === 'string');
112
+ const reqStr = required.find((k) => props[k] && acceptsString(props[k]));
104
113
  if (reqStr) return reqStr;
105
- return Object.keys(props).find((k) => (props[k].type || 'string') === 'string') || null;
114
+ return Object.keys(props).find((k) => acceptsString(props[k])) || null;
106
115
  }
107
116
 
108
117
  // ── HTTP to the public MCP server ────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ia-qa/cli",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Run ia-qa.com's QA/LLM/dev toolbox 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
5
  "keywords": [
6
6
  "ia-qa",