consulti 0.2.2 → 0.2.4
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/dist/cli.js +2 -1
- package/dist/constants.js +8 -0
- package/dist/context.js +1 -2
- package/dist/generated/endpoints.json +2 -2
- package/dist/skill.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7,6 +7,7 @@ import { EXIT, EXIT_TABLE } from "./exit-codes.js";
|
|
|
7
7
|
import { loadManifest } from "./manifest.js";
|
|
8
8
|
import { printError } from "./output.js";
|
|
9
9
|
import { registerSkill } from "./skill.js";
|
|
10
|
+
import { ENV_VAR } from "./constants.js";
|
|
10
11
|
export function packageVersion() {
|
|
11
12
|
const pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
12
13
|
return pkg.version;
|
|
@@ -24,7 +25,7 @@ export async function run(argv, ctx) {
|
|
|
24
25
|
writeErr: (s) => ctx.io.err(s),
|
|
25
26
|
outputError: () => { },
|
|
26
27
|
})
|
|
27
|
-
.addHelpText("after", `\nExit codes:\n${EXIT_TABLE.map(([c, m]) => ` ${c} ${m}`).join("\n")}\n\nAuth: set
|
|
28
|
+
.addHelpText("after", `\nExit codes:\n${EXIT_TABLE.map(([c, m]) => ` ${c} ${m}`).join("\n")}\n\nAuth: set ${ENV_VAR} or run \`consulti login\`.\nThe CLI never retries; a retried billable call bills again.`);
|
|
28
29
|
registerEndpoints(program, ctx, endpoints);
|
|
29
30
|
registerAuth(program, ctx);
|
|
30
31
|
registerSkill(program, ctx, endpoints);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Generated by `npm run generate` (scripts/generate/registry.ts) from lib/developer/public-api.ts
|
|
2
|
+
// and lib/developer/cli-install.ts. Do not edit: change those files and regenerate.
|
|
3
|
+
export const DEFAULT_BASE_URL = "https://www.consulti.ai/api/v1";
|
|
4
|
+
export const SETTINGS_URL = "https://www.consulti.ai/settings?tab=integrations#api-keys";
|
|
5
|
+
export const CLI_INSTALL_CURL = "curl -fsSL https://consulti.ai/install.sh | bash";
|
|
6
|
+
export const CLI_INSTALL_NPM = "npm i -g consulti";
|
|
7
|
+
export const CLI_NPX = "npx consulti";
|
|
8
|
+
export const ENV_VAR = "CONSULTI_API_KEY";
|
package/dist/context.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export const DEFAULT_BASE_URL = "https://www.consulti.ai/api/v1";
|
|
1
|
+
export { DEFAULT_BASE_URL, SETTINGS_URL } from "./constants.js";
|
|
@@ -198,13 +198,13 @@
|
|
|
198
198
|
"name": "revenueMin",
|
|
199
199
|
"type": "number",
|
|
200
200
|
"required": false,
|
|
201
|
-
"desc": "Minimum annual revenue in USD, whole dollars. Leads with no revenue data on file are excluded when either bound is set. Must be less than or equal to revenueMax when both are set."
|
|
201
|
+
"desc": "Minimum annual revenue in USD, whole dollars. Leads with no revenue data on file, or a corrupt out-of-range stored value, are excluded when either bound is set. Must be less than or equal to revenueMax when both are set."
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
"name": "revenueMax",
|
|
205
205
|
"type": "number",
|
|
206
206
|
"required": false,
|
|
207
|
-
"desc": "Maximum annual revenue in USD, whole dollars. Leads with no revenue data on file are excluded when either bound is set. Must be greater than or equal to revenueMin when both are set."
|
|
207
|
+
"desc": "Maximum annual revenue in USD, whole dollars. Leads with no revenue data on file, or a corrupt out-of-range stored value, are excluded when either bound is set. Must be greater than or equal to revenueMin when both are set."
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
"name": "excludeTitles",
|
package/dist/skill.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SETTINGS_URL } from "./
|
|
1
|
+
import { CLI_INSTALL_CURL, CLI_INSTALL_NPM, CLI_NPX, SETTINGS_URL } from "./constants.js";
|
|
2
2
|
import { EXIT_TABLE } from "./exit-codes.js";
|
|
3
3
|
import { paramFlag } from "./flags.js";
|
|
4
4
|
import { ALIASES } from "./manifest.js";
|
|
@@ -20,7 +20,7 @@ description: Use the consulti command line to verify emails, search and enrich B
|
|
|
20
20
|
|
|
21
21
|
## Install
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
\`${CLI_INSTALL_CURL}\`, or \`${CLI_INSTALL_NPM}\` (Node 20 or newer), or run one-off with \`${CLI_NPX}\`.
|
|
24
24
|
|
|
25
25
|
## Auth
|
|
26
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "consulti",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Command-line client for the Consulti.ai API: email verification, B2B lead search and enrichment, Instagram search, lists and credits. JSON output and stable exit codes for scripts and AI agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|