kingminos 0.0.0-stage → 0.2.0
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/LICENSE +21 -0
- package/README.md +107 -2
- package/dist/kingminos.js +1823 -0
- package/package.json +38 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 OutboundSync, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,108 @@
|
|
|
1
|
-
#
|
|
1
|
+
# kingminos
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Command-line interface for the [KingMinos](https://kingminos.com) API by OutboundSync.
|
|
4
|
+
|
|
5
|
+
The CLI calls [`https://api.kingminos.com`](https://api.kingminos.com) with the same tenant Bearer token as REST and MCP. Live contract: [`GET /openapi.yaml`](https://api.kingminos.com/openapi.yaml). Docs: [kingminos.com/docs/cli/](https://kingminos.com/docs/cli/).
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g kingminos
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or run without installing:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx kingminos --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Requires Node.js 20 or newer.
|
|
20
|
+
|
|
21
|
+
## Authentication
|
|
22
|
+
|
|
23
|
+
Set your tenant API key (Bearer token). Tenant keys use the `osr_` prefix. App-minted user tokens use `km_` and are created after you [sign in](https://app.kingminos.com/login/).
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
export KINGMINOS_API_KEY=osr_your_key_here
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Or pass `--token` on each command. `--token` overrides the env var. The CLI does not store or log your key. A bare key (no `Bearer`) is `401` `malformed`.
|
|
30
|
+
|
|
31
|
+
Optional: override the API base URL (default `https://api.kingminos.com`) with `KINGMINOS_BASE_URL` or `--base-url`.
|
|
32
|
+
|
|
33
|
+
## Tiers
|
|
34
|
+
|
|
35
|
+
`--priority speed|balance|accuracy|coverage` sets `routing.path`. Ask which path before a bulk run. Max yield is `coverage`. `company.resolve` `value` is the one-step lookup, not a tier.
|
|
36
|
+
|
|
37
|
+
Confidence on the response (`answer.confidence`: `high` | `medium` | `low`) is the write signal. The CLI does not print or depend on `safe_to_write`.
|
|
38
|
+
|
|
39
|
+
`min_confidence` (override the path floor) is not on the live API yet, so this CLI does not expose `--min-confidence`.
|
|
40
|
+
|
|
41
|
+
## JSON output
|
|
42
|
+
|
|
43
|
+
`--json` prints the response body only (pretty JSON when the body is JSON). It omits the human `Confidence:` / `Credits spent:` lines and `Next:` hints. Errors still go to stderr.
|
|
44
|
+
|
|
45
|
+
## Credits
|
|
46
|
+
|
|
47
|
+
Billing is for delivered answers. The CLI prints `usage.credits.spent` from the response and does not hardcode prices. `next_steps[].est_credits` is whatever the API returned.
|
|
48
|
+
|
|
49
|
+
## Exit codes
|
|
50
|
+
|
|
51
|
+
| Code | Meaning |
|
|
52
|
+
| --- | --- |
|
|
53
|
+
| 0 | Success (including a business miss — those stay HTTP 200) |
|
|
54
|
+
| 1 | Usage / argument error |
|
|
55
|
+
| 2 | Unauthorized (HTTP 401) |
|
|
56
|
+
| 3 | Out of credits (HTTP 402) |
|
|
57
|
+
| 4 | Rate limited or key/tenant budget (HTTP 429) |
|
|
58
|
+
| 5 | Server error (HTTP 5xx) |
|
|
59
|
+
| 6 | Other HTTP error |
|
|
60
|
+
|
|
61
|
+
## Examples
|
|
62
|
+
|
|
63
|
+
Each capability. Set `KINGMINOS_API_KEY` first.
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
kingminos health
|
|
67
|
+
kingminos company resolve --email ada@example.com --dry-run
|
|
68
|
+
kingminos company domain --domain example.com --priority speed
|
|
69
|
+
kingminos company hierarchy --domain example.com
|
|
70
|
+
kingminos company b2b-social --domain example.com --priority balance
|
|
71
|
+
kingminos company icon --domain example.com
|
|
72
|
+
kingminos company description --domain example.com --priority speed
|
|
73
|
+
kingminos person verify-employment --email ada@example.com --expected-company-domain example.com
|
|
74
|
+
kingminos person language --email ada@example.com
|
|
75
|
+
kingminos person phone --email ada@example.com --format e164
|
|
76
|
+
kingminos person title --email ada@example.com --company-domain example.com
|
|
77
|
+
kingminos person name --email ada@example.com --path accuracy
|
|
78
|
+
kingminos person b2b-social --email ada@example.com --priority balance
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Discovery and account helpers:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
kingminos providers
|
|
85
|
+
kingminos capabilities
|
|
86
|
+
kingminos recipes
|
|
87
|
+
kingminos runs get <run_id>
|
|
88
|
+
kingminos company domain --domain example.com --json
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Batch (JSONL of request bodies; `--priority` required):
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
kingminos batch company domain --file domains.jsonl --priority speed
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Development
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
npm ci
|
|
101
|
+
npm run build
|
|
102
|
+
node dist/kingminos.js --help
|
|
103
|
+
npm run ci
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## License
|
|
107
|
+
|
|
108
|
+
MIT — see [LICENSE](LICENSE).
|