@usenaive-sdk/cli 0.15.0 → 1.0.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.
Files changed (278) hide show
  1. package/README.md +43 -354
  2. package/dist/index.js +51775 -502
  3. package/package.json +22 -18
  4. package/dist/client.d.ts +0 -108
  5. package/dist/client.js +0 -458
  6. package/dist/client.js.map +0 -1
  7. package/dist/commands/account-kits.d.ts +0 -2
  8. package/dist/commands/account-kits.js +0 -71
  9. package/dist/commands/account-kits.js.map +0 -1
  10. package/dist/commands/aeo.d.ts +0 -2
  11. package/dist/commands/aeo.js +0 -451
  12. package/dist/commands/aeo.js.map +0 -1
  13. package/dist/commands/agent-profiles.d.ts +0 -11
  14. package/dist/commands/agent-profiles.js +0 -120
  15. package/dist/commands/agent-profiles.js.map +0 -1
  16. package/dist/commands/agents.d.ts +0 -2
  17. package/dist/commands/agents.js +0 -916
  18. package/dist/commands/agents.js.map +0 -1
  19. package/dist/commands/app-data.d.ts +0 -2
  20. package/dist/commands/app-data.js +0 -445
  21. package/dist/commands/app-data.js.map +0 -1
  22. package/dist/commands/approvals.d.ts +0 -2
  23. package/dist/commands/approvals.js +0 -242
  24. package/dist/commands/approvals.js.map +0 -1
  25. package/dist/commands/apps.d.ts +0 -9
  26. package/dist/commands/apps.js +0 -844
  27. package/dist/commands/apps.js.map +0 -1
  28. package/dist/commands/audio.d.ts +0 -9
  29. package/dist/commands/audio.js +0 -391
  30. package/dist/commands/audio.js.map +0 -1
  31. package/dist/commands/auth.d.ts +0 -31
  32. package/dist/commands/auth.js +0 -428
  33. package/dist/commands/auth.js.map +0 -1
  34. package/dist/commands/billing.d.ts +0 -2
  35. package/dist/commands/billing.js +0 -245
  36. package/dist/commands/billing.js.map +0 -1
  37. package/dist/commands/brain.d.ts +0 -2
  38. package/dist/commands/brain.js +0 -1300
  39. package/dist/commands/brain.js.map +0 -1
  40. package/dist/commands/browser.d.ts +0 -2
  41. package/dist/commands/browser.js +0 -378
  42. package/dist/commands/browser.js.map +0 -1
  43. package/dist/commands/business.d.ts +0 -2
  44. package/dist/commands/business.js +0 -566
  45. package/dist/commands/business.js.map +0 -1
  46. package/dist/commands/cards.d.ts +0 -2
  47. package/dist/commands/cards.js +0 -419
  48. package/dist/commands/cards.js.map +0 -1
  49. package/dist/commands/ceo.d.ts +0 -2
  50. package/dist/commands/ceo.js +0 -369
  51. package/dist/commands/ceo.js.map +0 -1
  52. package/dist/commands/clone.d.ts +0 -2
  53. package/dist/commands/clone.js +0 -203
  54. package/dist/commands/clone.js.map +0 -1
  55. package/dist/commands/companies.d.ts +0 -10
  56. package/dist/commands/companies.js +0 -283
  57. package/dist/commands/companies.js.map +0 -1
  58. package/dist/commands/company-data.d.ts +0 -2
  59. package/dist/commands/company-data.js +0 -168
  60. package/dist/commands/company-data.js.map +0 -1
  61. package/dist/commands/compute.d.ts +0 -2
  62. package/dist/commands/compute.js +0 -498
  63. package/dist/commands/compute.js.map +0 -1
  64. package/dist/commands/config.d.ts +0 -2
  65. package/dist/commands/config.js +0 -36
  66. package/dist/commands/config.js.map +0 -1
  67. package/dist/commands/connections.d.ts +0 -8
  68. package/dist/commands/connections.js +0 -137
  69. package/dist/commands/connections.js.map +0 -1
  70. package/dist/commands/cron-jobs.d.ts +0 -2
  71. package/dist/commands/cron-jobs.js +0 -245
  72. package/dist/commands/cron-jobs.js.map +0 -1
  73. package/dist/commands/domains.d.ts +0 -2
  74. package/dist/commands/domains.js +0 -474
  75. package/dist/commands/domains.js.map +0 -1
  76. package/dist/commands/ecommerce.d.ts +0 -2
  77. package/dist/commands/ecommerce.js +0 -277
  78. package/dist/commands/ecommerce.js.map +0 -1
  79. package/dist/commands/email.d.ts +0 -2
  80. package/dist/commands/email.js +0 -336
  81. package/dist/commands/email.js.map +0 -1
  82. package/dist/commands/employees.d.ts +0 -2
  83. package/dist/commands/employees.js +0 -190
  84. package/dist/commands/employees.js.map +0 -1
  85. package/dist/commands/env.d.ts +0 -7
  86. package/dist/commands/env.js +0 -112
  87. package/dist/commands/env.js.map +0 -1
  88. package/dist/commands/formation.d.ts +0 -2
  89. package/dist/commands/formation.js +0 -273
  90. package/dist/commands/formation.js.map +0 -1
  91. package/dist/commands/identity.d.ts +0 -2
  92. package/dist/commands/identity.js +0 -110
  93. package/dist/commands/identity.js.map +0 -1
  94. package/dist/commands/images.d.ts +0 -2
  95. package/dist/commands/images.js +0 -371
  96. package/dist/commands/images.js.map +0 -1
  97. package/dist/commands/init.d.ts +0 -5
  98. package/dist/commands/init.js +0 -43
  99. package/dist/commands/init.js.map +0 -1
  100. package/dist/commands/jobs.d.ts +0 -2
  101. package/dist/commands/jobs.js +0 -144
  102. package/dist/commands/jobs.js.map +0 -1
  103. package/dist/commands/keys.d.ts +0 -2
  104. package/dist/commands/keys.js +0 -156
  105. package/dist/commands/keys.js.map +0 -1
  106. package/dist/commands/legacy-auth.d.ts +0 -27
  107. package/dist/commands/legacy-auth.js +0 -64
  108. package/dist/commands/legacy-auth.js.map +0 -1
  109. package/dist/commands/llm.d.ts +0 -2
  110. package/dist/commands/llm.js +0 -106
  111. package/dist/commands/llm.js.map +0 -1
  112. package/dist/commands/login.d.ts +0 -2
  113. package/dist/commands/login.js +0 -65
  114. package/dist/commands/login.js.map +0 -1
  115. package/dist/commands/logout.d.ts +0 -7
  116. package/dist/commands/logout.js +0 -55
  117. package/dist/commands/logout.js.map +0 -1
  118. package/dist/commands/logs.d.ts +0 -2
  119. package/dist/commands/logs.js +0 -42
  120. package/dist/commands/logs.js.map +0 -1
  121. package/dist/commands/loops.d.ts +0 -2
  122. package/dist/commands/loops.js +0 -260
  123. package/dist/commands/loops.js.map +0 -1
  124. package/dist/commands/media.d.ts +0 -2
  125. package/dist/commands/media.js +0 -183
  126. package/dist/commands/media.js.map +0 -1
  127. package/dist/commands/memory.d.ts +0 -2
  128. package/dist/commands/memory.js +0 -151
  129. package/dist/commands/memory.js.map +0 -1
  130. package/dist/commands/mobile.d.ts +0 -4
  131. package/dist/commands/mobile.js +0 -382
  132. package/dist/commands/mobile.js.map +0 -1
  133. package/dist/commands/module.d.ts +0 -8
  134. package/dist/commands/module.js +0 -48
  135. package/dist/commands/module.js.map +0 -1
  136. package/dist/commands/objectives.d.ts +0 -2
  137. package/dist/commands/objectives.js +0 -243
  138. package/dist/commands/objectives.js.map +0 -1
  139. package/dist/commands/payments.d.ts +0 -2
  140. package/dist/commands/payments.js +0 -131
  141. package/dist/commands/payments.js.map +0 -1
  142. package/dist/commands/people.d.ts +0 -2
  143. package/dist/commands/people.js +0 -197
  144. package/dist/commands/people.js.map +0 -1
  145. package/dist/commands/phone.d.ts +0 -2
  146. package/dist/commands/phone.js +0 -289
  147. package/dist/commands/phone.js.map +0 -1
  148. package/dist/commands/projects.d.ts +0 -13
  149. package/dist/commands/projects.js +0 -220
  150. package/dist/commands/projects.js.map +0 -1
  151. package/dist/commands/queue.d.ts +0 -2
  152. package/dist/commands/queue.js +0 -121
  153. package/dist/commands/queue.js.map +0 -1
  154. package/dist/commands/register.d.ts +0 -2
  155. package/dist/commands/register.js +0 -80
  156. package/dist/commands/register.js.map +0 -1
  157. package/dist/commands/report.d.ts +0 -17
  158. package/dist/commands/report.js +0 -109
  159. package/dist/commands/report.js.map +0 -1
  160. package/dist/commands/sandbox.d.ts +0 -2
  161. package/dist/commands/sandbox.js +0 -558
  162. package/dist/commands/sandbox.js.map +0 -1
  163. package/dist/commands/search.d.ts +0 -2
  164. package/dist/commands/search.js +0 -223
  165. package/dist/commands/search.js.map +0 -1
  166. package/dist/commands/seo.d.ts +0 -2
  167. package/dist/commands/seo.js +0 -528
  168. package/dist/commands/seo.js.map +0 -1
  169. package/dist/commands/sessions.d.ts +0 -6
  170. package/dist/commands/sessions.js +0 -109
  171. package/dist/commands/sessions.js.map +0 -1
  172. package/dist/commands/social-data.d.ts +0 -2
  173. package/dist/commands/social-data.js +0 -245
  174. package/dist/commands/social-data.js.map +0 -1
  175. package/dist/commands/social.d.ts +0 -2
  176. package/dist/commands/social.js +0 -407
  177. package/dist/commands/social.js.map +0 -1
  178. package/dist/commands/status.d.ts +0 -2
  179. package/dist/commands/status.js +0 -73
  180. package/dist/commands/status.js.map +0 -1
  181. package/dist/commands/support.d.ts +0 -2
  182. package/dist/commands/support.js +0 -134
  183. package/dist/commands/support.js.map +0 -1
  184. package/dist/commands/tasks.d.ts +0 -2
  185. package/dist/commands/tasks.js +0 -409
  186. package/dist/commands/tasks.js.map +0 -1
  187. package/dist/commands/teams.d.ts +0 -69
  188. package/dist/commands/teams.js +0 -503
  189. package/dist/commands/teams.js.map +0 -1
  190. package/dist/commands/trading.d.ts +0 -2
  191. package/dist/commands/trading.js +0 -333
  192. package/dist/commands/trading.js.map +0 -1
  193. package/dist/commands/up.d.ts +0 -551
  194. package/dist/commands/up.js +0 -1149
  195. package/dist/commands/up.js.map +0 -1
  196. package/dist/commands/usage.d.ts +0 -2
  197. package/dist/commands/usage.js +0 -73
  198. package/dist/commands/usage.js.map +0 -1
  199. package/dist/commands/use.d.ts +0 -12
  200. package/dist/commands/use.js +0 -96
  201. package/dist/commands/use.js.map +0 -1
  202. package/dist/commands/users.d.ts +0 -10
  203. package/dist/commands/users.js +0 -82
  204. package/dist/commands/users.js.map +0 -1
  205. package/dist/commands/vault.d.ts +0 -2
  206. package/dist/commands/vault.js +0 -101
  207. package/dist/commands/vault.js.map +0 -1
  208. package/dist/commands/verification.d.ts +0 -2
  209. package/dist/commands/verification.js +0 -152
  210. package/dist/commands/verification.js.map +0 -1
  211. package/dist/commands/verify-email.d.ts +0 -19
  212. package/dist/commands/verify-email.js +0 -112
  213. package/dist/commands/verify-email.js.map +0 -1
  214. package/dist/commands/video.d.ts +0 -2
  215. package/dist/commands/video.js +0 -417
  216. package/dist/commands/video.js.map +0 -1
  217. package/dist/commands/voice.d.ts +0 -2
  218. package/dist/commands/voice.js +0 -516
  219. package/dist/commands/voice.js.map +0 -1
  220. package/dist/commands/wallet.d.ts +0 -2
  221. package/dist/commands/wallet.js +0 -244
  222. package/dist/commands/wallet.js.map +0 -1
  223. package/dist/commands/webhooks.d.ts +0 -13
  224. package/dist/commands/webhooks.js +0 -119
  225. package/dist/commands/webhooks.js.map +0 -1
  226. package/dist/commands/whoami.d.ts +0 -2
  227. package/dist/commands/whoami.js +0 -53
  228. package/dist/commands/whoami.js.map +0 -1
  229. package/dist/config.d.ts +0 -42
  230. package/dist/config.js +0 -83
  231. package/dist/config.js.map +0 -1
  232. package/dist/index.d.ts +0 -3
  233. package/dist/index.js.map +0 -1
  234. package/dist/lib/brain-select.d.ts +0 -193
  235. package/dist/lib/brain-select.js +0 -403
  236. package/dist/lib/brain-select.js.map +0 -1
  237. package/dist/lib/cli-validation.d.ts +0 -12
  238. package/dist/lib/cli-validation.js +0 -46
  239. package/dist/lib/cli-validation.js.map +0 -1
  240. package/dist/lib/config-errors.d.ts +0 -4
  241. package/dist/lib/config-errors.js +0 -13
  242. package/dist/lib/config-errors.js.map +0 -1
  243. package/dist/lib/deprecation.d.ts +0 -158
  244. package/dist/lib/deprecation.js +0 -140
  245. package/dist/lib/deprecation.js.map +0 -1
  246. package/dist/lib/duration.d.ts +0 -8
  247. package/dist/lib/duration.js +0 -11
  248. package/dist/lib/duration.js.map +0 -1
  249. package/dist/lib/http-response.d.ts +0 -11
  250. package/dist/lib/http-response.js +0 -96
  251. package/dist/lib/http-response.js.map +0 -1
  252. package/dist/lib/pricing.d.ts +0 -132
  253. package/dist/lib/pricing.js +0 -148
  254. package/dist/lib/pricing.js.map +0 -1
  255. package/dist/lib/starter-config.d.ts +0 -13
  256. package/dist/lib/starter-config.js +0 -71
  257. package/dist/lib/starter-config.js.map +0 -1
  258. package/dist/lib/stream-frames.d.ts +0 -114
  259. package/dist/lib/stream-frames.js +0 -169
  260. package/dist/lib/stream-frames.js.map +0 -1
  261. package/dist/lib/teams-catalog.d.ts +0 -141
  262. package/dist/lib/teams-catalog.js +0 -841
  263. package/dist/lib/teams-catalog.js.map +0 -1
  264. package/dist/lib/unknown-command.d.ts +0 -71
  265. package/dist/lib/unknown-command.js +0 -132
  266. package/dist/lib/unknown-command.js.map +0 -1
  267. package/dist/lib/version-check.d.ts +0 -26
  268. package/dist/lib/version-check.js +0 -21
  269. package/dist/lib/version-check.js.map +0 -1
  270. package/dist/output.d.ts +0 -174
  271. package/dist/output.js +0 -435
  272. package/dist/output.js.map +0 -1
  273. package/dist/prompt.d.ts +0 -17
  274. package/dist/prompt.js +0 -70
  275. package/dist/prompt.js.map +0 -1
  276. package/dist/version.d.ts +0 -2
  277. package/dist/version.js +0 -14
  278. package/dist/version.js.map +0 -1
@@ -1,71 +0,0 @@
1
- import { Command } from "commander";
2
- import { apiRequest, handleApiError } from "../client.js";
3
- import { agentOutput } from "../output.js";
4
- export const accountKitsCmd = new Command("account-kits")
5
- .alias("kits")
6
- .description("Manage AccountKits — policy templates governing what tenant users can do");
7
- accountKitsCmd
8
- .command("list")
9
- .description("List AccountKits")
10
- .action(async () => {
11
- const resp = await apiRequest("GET", "/v1/account-kits");
12
- handleApiError("account-kits.list", resp);
13
- agentOutput({ action: "account-kits.list", result: resp.data, next_steps: [] });
14
- });
15
- /** Parse repeated --tool gmail.enable=A,B into { gmail: { enable: [A,B] } }. */
16
- function parseToolFilters(specs) {
17
- const out = {};
18
- for (const spec of specs) {
19
- const m = /^([^.]+)\.(enable|disable)=(.+)$/.exec(spec);
20
- if (!m)
21
- continue;
22
- const [, toolkit, mode, list] = m;
23
- out[toolkit] = { [mode]: list.split(",").map((s) => s.trim()) };
24
- }
25
- return out;
26
- }
27
- /** Parse repeated --custom-auth gmail=ac_xxx into { gmail: "ac_xxx" }. */
28
- function parseCustomAuth(specs) {
29
- const out = {};
30
- for (const spec of specs) {
31
- const [toolkit, ac] = spec.split("=");
32
- if (toolkit && ac)
33
- out[toolkit] = ac;
34
- }
35
- return out;
36
- }
37
- accountKitsCmd
38
- .command("create")
39
- .description("Create an AccountKit")
40
- .requiredOption("--name <name>", "Kit name")
41
- .option("--mode <mode>", "Toolkit filter: open | allowlist | blocklist", "open")
42
- .option("--toolkits <list>", "Comma-separated toolkit slugs (allowlist/blocklist)")
43
- .option("--tool <spec...>", "Per-tool filter, e.g. gmail.enable=GMAIL_SEND_EMAIL,GMAIL_FETCH_EMAILS")
44
- .option("--custom-auth <spec...>", "Per-toolkit custom auth config, e.g. gmail=ac_xxx")
45
- .action(async (opts) => {
46
- const connections_config = { mode: opts.mode };
47
- if (opts.mode !== "open") {
48
- connections_config.toolkits = (opts.toolkits ?? "").split(",").map((s) => s.trim()).filter(Boolean);
49
- }
50
- if (opts.tool?.length)
51
- connections_config.tools = parseToolFilters(opts.tool);
52
- if (opts.customAuth?.length)
53
- connections_config.custom_auth_configs = parseCustomAuth(opts.customAuth);
54
- const resp = await apiRequest("POST", "/v1/account-kits", {
55
- name: opts.name,
56
- connections_config,
57
- });
58
- handleApiError("account-kits.create", resp);
59
- agentOutput({ action: "account-kits.create", result: resp.data, next_steps: [] });
60
- });
61
- accountKitsCmd
62
- .command("assign")
63
- .description("Assign a user to an AccountKit")
64
- .argument("<kit_id>")
65
- .argument("<user_id>")
66
- .action(async (kitId, userId) => {
67
- const resp = await apiRequest("POST", `/v1/account-kits/${kitId}/users/${userId}/assign`);
68
- handleApiError("account-kits.assign", resp);
69
- agentOutput({ action: "account-kits.assign", result: resp.data, next_steps: [] });
70
- });
71
- //# sourceMappingURL=account-kits.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account-kits.js","sourceRoot":"","sources":["../../src/commands/account-kits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,OAAO,CAAC,cAAc,CAAC;KACtD,KAAK,CAAC,MAAM,CAAC;KACb,WAAW,CAAC,0EAA0E,CAAC,C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,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;AACpF,CAAC,CACF,CAAC;AAEJ,cAAc;KACX,OAAO,CAAC,QAAQ,CAAC;KACjB,WAAW,CAAC,gCAAgC,CAAC;KAC7C,QAAQ,CAAC,UAAU,CAAC;KACpB,QAAQ,CAAC,WAAW,CAAC;KACrB,MAAM,CAAC,KAAK,EAAE,KAAa,EAAE,MAAc,EAAE,EAAE;IAC9C,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,oBAAoB,KAAK,UAAU,MAAM,SAAS,CAAC,CAAC;IAC1F,cAAc,CAAC,qBAAqB,EAAE,IAAI,CAAC,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;AACpF,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const aeoCmd: Command;
@@ -1,451 +0,0 @@
1
- import { Command } from "commander";
2
- import { apiRequest, handleApiError } from "../client.js";
3
- import { agentOutput, creditCostHint } from "../output.js";
4
- import { DATA_API_CREDIT_COSTS as P, METERED_DATA_API_CREDITS as M, llmMentionsCredits, } from "../lib/pricing.js";
5
- export const aeoCmd = new Command("aeo")
6
- .description("AI Engine Optimization — LLM responses, scraping, AI keywords, and mention tracking")
7
- .addHelpText("after", `
8
- Subcommands:
9
- naive aeo llm-responses <platform> Query LLM responses (chatgpt, claude, gemini, perplexity)
10
- naive aeo llm-responses models List available models for a platform
11
- naive aeo llm-scraper Scrape ChatGPT conversation pages
12
- naive aeo ai-keywords AI keyword search volume data
13
- naive aeo llm-mentions <endpoint> Track brand/domain mentions across LLMs
14
-
15
- Platforms:
16
- chatgpt OpenAI ChatGPT responses
17
- claude Anthropic Claude responses
18
- gemini Google Gemini responses
19
- perplexity Perplexity AI responses (live only, no task endpoints)
20
-
21
- LLM Mentions endpoints:
22
- search Search for mentions of a keyword/brand
23
- aggregated-metrics Aggregated mention metrics for a target
24
- cross-aggregated-metrics Cross-platform aggregated metrics
25
- top-domains Top mentioned domains for a keyword
26
- top-pages Top mentioned pages for a keyword
27
-
28
- Examples:
29
- $ naive aeo llm-responses chatgpt --keyword "best CRM software"
30
- $ naive aeo llm-responses claude --keyword "best project management tools"
31
- $ naive aeo llm-responses models --platform chatgpt
32
- $ naive aeo llm-scraper --keyword "best CRM software"
33
- $ naive aeo ai-keywords --keywords "ai tools,chatbot,llm"
34
- $ naive aeo llm-mentions search --keyword "Salesforce"
35
- $ naive aeo llm-mentions top-domains --keyword "ai coding tools"
36
-
37
- Costs:
38
- LLM Responses: ${P.aeoLlmResponsesLive} credits per call
39
- LLM Scraper: ${P.aeoLlmScraperLive} live, ${P.aeoLlmScraperStandard} per --task submission
40
- AI Keywords: ${M.aiKeywordsBase} + ${M.aiKeywordsPerKeyword} per keyword
41
- LLM Mentions: ${M.llmMentionsBase} + ${M.llmMentionsPerRow} per returned row
42
- (${llmMentionsCredits(M.llmMentionsDefaultRows)} for the default ${M.llmMentionsDefaultRows} rows,
43
- ${llmMentionsCredits(M.llmMentionsMaxRows)} at the ${M.llmMentionsMaxRows}-row maximum)
44
-
45
- These are list prices; a call that costs us more upstream settles higher, and
46
- the charge is always the response's own credits_used.
47
- `);
48
- // ---------------------------------------------------------------------------
49
- // llm-responses <platform>
50
- // ---------------------------------------------------------------------------
51
- const llmResponsesCmd = aeoCmd
52
- .command("llm-responses [platform]")
53
- .description("Query LLM responses from ChatGPT, Claude, Gemini, or Perplexity (live)")
54
- .option("--keyword <keyword>", "Query to send to the LLM (sent as user_prompt)")
55
- .option("--language-code <code>", "Language code (e.g., en)")
56
- .option("--location-code <code>", "Location code (e.g., 2840 for US)")
57
- .option("--model <model>", "Specific model to use")
58
- .option("--tag <tag>", "Tag for the request")
59
- .addHelpText("after", `
60
- Examples:
61
- $ naive aeo llm-responses chatgpt --keyword "best CRM software"
62
- $ naive aeo llm-responses claude --keyword "best project management tools" --language-code en
63
- $ naive aeo llm-responses gemini --keyword "top AI coding assistants"
64
- $ naive aeo llm-responses perplexity --keyword "best CRM software"
65
-
66
- Platforms: chatgpt, claude, gemini, perplexity
67
- Perplexity only supports live mode (no task_post/task_get).
68
-
69
- Cost: ${P.aeoLlmResponsesLive} credits. The model provider's token cost is passed
70
- through, so a long answer on an expensive model can settle above that.
71
- `)
72
- .action(async (platform, opts) => {
73
- if (!platform) {
74
- console.log(JSON.stringify({
75
- success: false,
76
- action: "aeo.llm-responses",
77
- error: { code: "missing_argument", message: "Platform is required" },
78
- recovery_steps: [
79
- { command: 'naive aeo llm-responses chatgpt --keyword "best CRM"', description: "Query ChatGPT" },
80
- { command: "naive aeo llm-responses --help", description: "See all options" },
81
- ],
82
- }, null, 2));
83
- process.exit(1);
84
- }
85
- if (!opts.keyword) {
86
- console.log(JSON.stringify({
87
- success: false,
88
- action: "aeo.llm-responses",
89
- error: { code: "missing_argument", message: "--keyword is required (maps to user_prompt in the API)" },
90
- recovery_steps: [
91
- { command: `naive aeo llm-responses ${platform} --keyword "your query"`, description: "Provide a keyword" },
92
- ],
93
- }, null, 2));
94
- process.exit(1);
95
- }
96
- const body = { user_prompt: opts.keyword };
97
- // Only send model_name when explicitly chosen. Each platform accepts a
98
- // different set of models, so the API fills in a valid per-platform default
99
- // when this is omitted (a single hardcoded default is invalid off ChatGPT).
100
- if (opts.model)
101
- body.model_name = opts.model;
102
- if (opts.languageCode)
103
- body.language_code = opts.languageCode;
104
- if (opts.locationCode)
105
- body.location_code = parseInt(opts.locationCode);
106
- if (opts.tag)
107
- body.tag = opts.tag;
108
- const resp = await apiRequest("POST", `/v1/aeo/llm-responses/${platform}`, body);
109
- handleApiError("aeo.llm-responses", resp);
110
- agentOutput({
111
- action: "aeo.llm-responses",
112
- result: resp.data,
113
- next_steps: [
114
- { command: `naive aeo llm-responses models --platform ${platform}`, description: "List available models for this platform" },
115
- { command: `naive aeo llm-mentions search --keyword "${opts.keyword}"`, description: "Track mentions of this keyword across LLMs" },
116
- { command: `naive aeo ai-keywords --keywords "${opts.keyword}"`, description: "Get AI keyword search volume" },
117
- ],
118
- hints: [
119
- `Queried ${platform} for "${opts.keyword}"`,
120
- // Derived from the response's authoritative credits_used, not a constant (N7).
121
- ...(creditCostHint(resp.data) ? [creditCostHint(resp.data)] : []),
122
- ],
123
- related_commands: ["naive aeo llm-scraper", "naive aeo llm-mentions", "naive aeo ai-keywords"],
124
- });
125
- });
126
- // ---------------------------------------------------------------------------
127
- // llm-responses models
128
- // ---------------------------------------------------------------------------
129
- llmResponsesCmd
130
- .command("models")
131
- .description("List available LLM models for a platform")
132
- .requiredOption("--platform <platform>", "Platform to query models for (chatgpt, claude, gemini, perplexity)")
133
- .addHelpText("after", `
134
- Examples:
135
- $ naive aeo llm-responses models --platform chatgpt
136
- $ naive aeo llm-responses models --platform claude
137
- `)
138
- .action(async (opts) => {
139
- const resp = await apiRequest("GET", `/v1/aeo/llm-responses/${opts.platform}/models`);
140
- handleApiError("aeo.llm-responses.models", resp);
141
- agentOutput({
142
- action: "aeo.llm-responses.models",
143
- result: resp.data,
144
- next_steps: [
145
- { command: `naive aeo llm-responses ${opts.platform} --keyword "test query" --model <model_name>`, description: "Query with a specific model" },
146
- ],
147
- hints: [
148
- `Available models for ${opts.platform}`,
149
- ],
150
- related_commands: ["naive aeo llm-responses"],
151
- });
152
- });
153
- // ---------------------------------------------------------------------------
154
- // llm-scraper
155
- // ---------------------------------------------------------------------------
156
- aeoCmd
157
- .command("llm-scraper")
158
- .description("Scrape ChatGPT conversation pages (live, advanced format)")
159
- .requiredOption("--keyword <keyword>", "Keyword or prompt to scrape")
160
- .option("--format <format>", "Output format: advanced | html (default: advanced)", "advanced")
161
- .option("--language-code <code>", "Language code (e.g., en)")
162
- .option("--location-code <code>", "Location code")
163
- .addHelpText("after", `
164
- Examples:
165
- $ naive aeo llm-scraper --keyword "best CRM software"
166
- $ naive aeo llm-scraper --keyword "top AI tools" --format html
167
-
168
- ChatGPT only. Returns the scraped conversation content in advanced or HTML format.
169
-
170
- Cost: ${P.aeoLlmScraperLive} credits (live), ${P.aeoLlmScraperStandard} per --task submission.
171
- `)
172
- .action(async (opts) => {
173
- const body = { keyword: opts.keyword };
174
- if (opts.languageCode)
175
- body.language_code = opts.languageCode;
176
- if (opts.locationCode)
177
- body.location_code = parseInt(opts.locationCode);
178
- const endpoint = opts.format === "html" ? "/v1/aeo/llm-scraper/chatgpt/html" : "/v1/aeo/llm-scraper/chatgpt";
179
- const resp = await apiRequest("POST", endpoint, body);
180
- handleApiError("aeo.llm-scraper", resp);
181
- agentOutput({
182
- action: "aeo.llm-scraper",
183
- result: resp.data,
184
- next_steps: [
185
- { command: `naive aeo llm-responses chatgpt --keyword "${opts.keyword}"`, description: "Get structured LLM response for the same keyword" },
186
- { command: `naive aeo llm-scraper --keyword "${opts.keyword}" --format ${opts.format === "html" ? "advanced" : "html"}`, description: `Try ${opts.format === "html" ? "advanced" : "HTML"} format` },
187
- ],
188
- hints: [
189
- `Scraped ChatGPT for "${opts.keyword}" (${opts.format} format)`,
190
- // Derived from the response's authoritative credits_used, not a constant (N7).
191
- ...(creditCostHint(resp.data) ? [creditCostHint(resp.data)] : []),
192
- ],
193
- related_commands: ["naive aeo llm-responses", "naive aeo llm-mentions"],
194
- });
195
- });
196
- // ---------------------------------------------------------------------------
197
- // ai-keywords
198
- // ---------------------------------------------------------------------------
199
- aeoCmd
200
- .command("ai-keywords")
201
- .description("Get AI keyword search volume data")
202
- .requiredOption("--keywords <keywords>", "Comma-separated list of keywords")
203
- .option("--language-code <code>", "Language code (e.g., en)")
204
- .option("--location-code <code>", "Location code")
205
- .addHelpText("after", `
206
- Examples:
207
- $ naive aeo ai-keywords --keywords "ai tools,chatbot,llm"
208
- $ naive aeo ai-keywords --keywords "best crm software" --language-code en
209
-
210
- Returns search volume and related metrics for AI-specific keywords.
211
-
212
- Cost: ${M.aiKeywordsBase} credits + ${M.aiKeywordsPerKeyword} per keyword — billed on the keywords you ask for.
213
- `)
214
- .action(async (opts) => {
215
- const keywords = opts.keywords.split(",").map((k) => k.trim());
216
- const body = { keywords };
217
- if (opts.languageCode)
218
- body.language_code = opts.languageCode;
219
- if (opts.locationCode)
220
- body.location_code = parseInt(opts.locationCode);
221
- const resp = await apiRequest("POST", "/v1/aeo/ai-keywords/search-volume", body);
222
- handleApiError("aeo.ai-keywords", resp);
223
- agentOutput({
224
- action: "aeo.ai-keywords",
225
- result: resp.data,
226
- next_steps: [
227
- { command: `naive aeo llm-mentions search --keyword "${keywords[0]}"`, description: "Track LLM mentions for the first keyword" },
228
- { command: `naive aeo llm-responses chatgpt --keyword "${keywords[0]}"`, description: "Query ChatGPT for the first keyword" },
229
- ],
230
- hints: [
231
- `AI keyword data for ${keywords.length} keyword(s)`,
232
- // Derived from the response's authoritative credits_used, not a constant (N7).
233
- ...(creditCostHint(resp.data) ? [creditCostHint(resp.data)] : []),
234
- ],
235
- related_commands: ["naive aeo llm-responses", "naive aeo llm-mentions"],
236
- });
237
- });
238
- // ---------------------------------------------------------------------------
239
- // llm-mentions
240
- // ---------------------------------------------------------------------------
241
- const llmMentionsCmd = aeoCmd
242
- .command("llm-mentions")
243
- .description("Track brand/domain mentions across LLMs");
244
- // llm-mentions search
245
- llmMentionsCmd
246
- .command("search")
247
- .description("Search for keyword/brand mentions across LLMs")
248
- .requiredOption("--keyword <keyword>", "Keyword or brand name to search for")
249
- .option("--language-code <code>", "Language code")
250
- .option("--location-code <code>", "Location code")
251
- .option("--limit <n>", `Rows to return, 1-${M.llmMentionsMaxRows} (default ${M.llmMentionsDefaultRows}) — the row count the price is billed on`)
252
- .addHelpText("after", `
253
- Examples:
254
- $ naive aeo llm-mentions search --keyword "Salesforce"
255
- $ naive aeo llm-mentions search --keyword "HubSpot CRM" --language-code en
256
-
257
- Cost: ${M.llmMentionsBase} credits + ${M.llmMentionsPerRow} per returned row — ${llmMentionsCredits(M.llmMentionsDefaultRows)} for the
258
- default ${M.llmMentionsDefaultRows} rows, ${llmMentionsCredits(M.llmMentionsMaxRows)} at the ${M.llmMentionsMaxRows}-row maximum. Pass --limit to bound it.
259
- `)
260
- .action(async (opts) => {
261
- // DataForSEO requires `target` as an array of { keyword } | { domain } objects.
262
- const body = { target: [{ keyword: opts.keyword }] };
263
- if (opts.languageCode)
264
- body.language_code = opts.languageCode;
265
- if (opts.locationCode)
266
- body.location_code = parseInt(opts.locationCode);
267
- if (opts.limit)
268
- body.limit = parseInt(opts.limit);
269
- const resp = await apiRequest("POST", "/v1/aeo/llm-mentions/search", body);
270
- handleApiError("aeo.llm-mentions.search", resp);
271
- agentOutput({
272
- action: "aeo.llm-mentions.search",
273
- result: resp.data,
274
- next_steps: [
275
- { command: `naive aeo llm-mentions aggregated-metrics --target "${opts.keyword}"`, description: "Get aggregated mention metrics" },
276
- { command: `naive aeo llm-mentions top-domains --keyword "${opts.keyword}"`, description: "See top mentioned domains" },
277
- { command: `naive aeo llm-mentions top-pages --keyword "${opts.keyword}"`, description: "See top mentioned pages" },
278
- ],
279
- hints: [
280
- `LLM mention search for "${opts.keyword}"`,
281
- // Derived from the response's authoritative credits_used, not a constant (N7).
282
- ...(creditCostHint(resp.data) ? [creditCostHint(resp.data)] : []),
283
- ],
284
- related_commands: ["naive aeo llm-responses", "naive aeo ai-keywords"],
285
- });
286
- });
287
- // llm-mentions aggregated-metrics
288
- llmMentionsCmd
289
- .command("aggregated-metrics")
290
- .description("Get aggregated mention metrics for a target domain/brand")
291
- .requiredOption("--target <target>", "Target domain or brand (e.g., example.com)")
292
- .option("--language-code <code>", "Language code")
293
- .option("--location-code <code>", "Location code")
294
- .option("--limit <n>", `Rows to return, 1-${M.llmMentionsMaxRows} (default ${M.llmMentionsDefaultRows}) — the row count the price is billed on`)
295
- .addHelpText("after", `
296
- Examples:
297
- $ naive aeo llm-mentions aggregated-metrics --target "example.com"
298
- $ naive aeo llm-mentions aggregated-metrics --target "hubspot.com" --language-code en
299
-
300
- Cost: ${M.llmMentionsBase} credits + ${M.llmMentionsPerRow} per returned row — ${llmMentionsCredits(M.llmMentionsDefaultRows)} for the
301
- default ${M.llmMentionsDefaultRows} rows, ${llmMentionsCredits(M.llmMentionsMaxRows)} at the ${M.llmMentionsMaxRows}-row maximum. Pass --limit to bound it.
302
- `)
303
- .action(async (opts) => {
304
- // `target` must be an array of { domain } | { keyword } objects.
305
- const body = { target: [{ domain: opts.target }] };
306
- if (opts.languageCode)
307
- body.language_code = opts.languageCode;
308
- if (opts.locationCode)
309
- body.location_code = parseInt(opts.locationCode);
310
- if (opts.limit)
311
- body.limit = parseInt(opts.limit);
312
- const resp = await apiRequest("POST", "/v1/aeo/llm-mentions/aggregated-metrics", body);
313
- handleApiError("aeo.llm-mentions.aggregated-metrics", resp);
314
- agentOutput({
315
- action: "aeo.llm-mentions.aggregated-metrics",
316
- result: resp.data,
317
- next_steps: [
318
- { command: `naive aeo llm-mentions search --keyword "${opts.target}"`, description: "Search for individual mentions" },
319
- { command: `naive aeo llm-mentions top-domains --keyword "${opts.target}"`, description: "See top domains mentioned alongside" },
320
- ],
321
- hints: [
322
- `Aggregated mention metrics for "${opts.target}"`,
323
- // Derived from the response's authoritative credits_used, not a constant (N7).
324
- ...(creditCostHint(resp.data) ? [creditCostHint(resp.data)] : []),
325
- ],
326
- related_commands: ["naive aeo llm-responses", "naive aeo ai-keywords"],
327
- });
328
- });
329
- // llm-mentions cross-aggregated-metrics
330
- llmMentionsCmd
331
- .command("cross-aggregated-metrics")
332
- .description("Get cross-platform aggregated mention metrics")
333
- .requiredOption("--target <target>", "Target domain or brand")
334
- .option("--language-code <code>", "Language code")
335
- .option("--location-code <code>", "Location code")
336
- .option("--limit <n>", `Rows to return, 1-${M.llmMentionsMaxRows} (default ${M.llmMentionsDefaultRows}) — the row count the price is billed on`)
337
- .addHelpText("after", `
338
- Examples:
339
- $ naive aeo llm-mentions cross-aggregated-metrics --target "example.com"
340
-
341
- Cost: ${M.llmMentionsBase} credits + ${M.llmMentionsPerRow} per returned row — ${llmMentionsCredits(M.llmMentionsDefaultRows)} for the
342
- default ${M.llmMentionsDefaultRows} rows, ${llmMentionsCredits(M.llmMentionsMaxRows)} at the ${M.llmMentionsMaxRows}-row maximum. Pass --limit to bound it.
343
- `)
344
- .action(async (opts) => {
345
- // `target` must be an array of { domain } | { keyword } objects.
346
- const body = { target: [{ domain: opts.target }] };
347
- if (opts.languageCode)
348
- body.language_code = opts.languageCode;
349
- if (opts.locationCode)
350
- body.location_code = parseInt(opts.locationCode);
351
- if (opts.limit)
352
- body.limit = parseInt(opts.limit);
353
- const resp = await apiRequest("POST", "/v1/aeo/llm-mentions/cross-aggregated-metrics", body);
354
- handleApiError("aeo.llm-mentions.cross-aggregated-metrics", resp);
355
- agentOutput({
356
- action: "aeo.llm-mentions.cross-aggregated-metrics",
357
- result: resp.data,
358
- next_steps: [
359
- { command: `naive aeo llm-mentions aggregated-metrics --target "${opts.target}"`, description: "Get per-platform metrics" },
360
- ],
361
- hints: [
362
- `Cross-aggregated mention metrics for "${opts.target}"`,
363
- // Derived from the response's authoritative credits_used, not a constant (N7).
364
- ...(creditCostHint(resp.data) ? [creditCostHint(resp.data)] : []),
365
- ],
366
- related_commands: ["naive aeo llm-responses", "naive aeo ai-keywords"],
367
- });
368
- });
369
- // llm-mentions top-domains
370
- llmMentionsCmd
371
- .command("top-domains")
372
- .description("Get top mentioned domains for a keyword")
373
- .requiredOption("--keyword <keyword>", "Keyword to analyze")
374
- .option("--language-code <code>", "Language code")
375
- .option("--location-code <code>", "Location code")
376
- .option("--limit <n>", `Rows to return, 1-${M.llmMentionsMaxRows} (default ${M.llmMentionsDefaultRows}) — the row count the price is billed on`)
377
- .addHelpText("after", `
378
- Examples:
379
- $ naive aeo llm-mentions top-domains --keyword "ai coding tools"
380
- $ naive aeo llm-mentions top-domains --keyword "best CRM" --language-code en
381
-
382
- Cost: ${M.llmMentionsBase} credits + ${M.llmMentionsPerRow} per returned row — ${llmMentionsCredits(M.llmMentionsDefaultRows)} for the
383
- default ${M.llmMentionsDefaultRows} rows, ${llmMentionsCredits(M.llmMentionsMaxRows)} at the ${M.llmMentionsMaxRows}-row maximum. Pass --limit to bound it.
384
- `)
385
- .action(async (opts) => {
386
- const body = { target: [{ keyword: opts.keyword }] };
387
- if (opts.languageCode)
388
- body.language_code = opts.languageCode;
389
- if (opts.locationCode)
390
- body.location_code = parseInt(opts.locationCode);
391
- if (opts.limit)
392
- body.limit = parseInt(opts.limit);
393
- const resp = await apiRequest("POST", "/v1/aeo/llm-mentions/top-domains", body);
394
- handleApiError("aeo.llm-mentions.top-domains", resp);
395
- agentOutput({
396
- action: "aeo.llm-mentions.top-domains",
397
- result: resp.data,
398
- next_steps: [
399
- { command: `naive aeo llm-mentions top-pages --keyword "${opts.keyword}"`, description: "See top mentioned pages instead" },
400
- { command: `naive aeo llm-mentions search --keyword "${opts.keyword}"`, description: "Search individual mentions" },
401
- ],
402
- hints: [
403
- `Top domains mentioned for "${opts.keyword}"`,
404
- // Derived from the response's authoritative credits_used, not a constant (N7).
405
- ...(creditCostHint(resp.data) ? [creditCostHint(resp.data)] : []),
406
- ],
407
- related_commands: ["naive aeo llm-responses", "naive aeo ai-keywords"],
408
- });
409
- });
410
- // llm-mentions top-pages
411
- llmMentionsCmd
412
- .command("top-pages")
413
- .description("Get top mentioned pages for a keyword")
414
- .requiredOption("--keyword <keyword>", "Keyword to analyze")
415
- .option("--language-code <code>", "Language code")
416
- .option("--location-code <code>", "Location code")
417
- .option("--limit <n>", `Rows to return, 1-${M.llmMentionsMaxRows} (default ${M.llmMentionsDefaultRows}) — the row count the price is billed on`)
418
- .addHelpText("after", `
419
- Examples:
420
- $ naive aeo llm-mentions top-pages --keyword "ai coding tools"
421
- $ naive aeo llm-mentions top-pages --keyword "best CRM" --language-code en
422
-
423
- Cost: ${M.llmMentionsBase} credits + ${M.llmMentionsPerRow} per returned row — ${llmMentionsCredits(M.llmMentionsDefaultRows)} for the
424
- default ${M.llmMentionsDefaultRows} rows, ${llmMentionsCredits(M.llmMentionsMaxRows)} at the ${M.llmMentionsMaxRows}-row maximum. Pass --limit to bound it.
425
- `)
426
- .action(async (opts) => {
427
- const body = { target: [{ keyword: opts.keyword }] };
428
- if (opts.languageCode)
429
- body.language_code = opts.languageCode;
430
- if (opts.locationCode)
431
- body.location_code = parseInt(opts.locationCode);
432
- if (opts.limit)
433
- body.limit = parseInt(opts.limit);
434
- const resp = await apiRequest("POST", "/v1/aeo/llm-mentions/top-pages", body);
435
- handleApiError("aeo.llm-mentions.top-pages", resp);
436
- agentOutput({
437
- action: "aeo.llm-mentions.top-pages",
438
- result: resp.data,
439
- next_steps: [
440
- { command: `naive aeo llm-mentions top-domains --keyword "${opts.keyword}"`, description: "See top domains instead" },
441
- { command: `naive aeo llm-mentions search --keyword "${opts.keyword}"`, description: "Search individual mentions" },
442
- ],
443
- hints: [
444
- `Top pages mentioned for "${opts.keyword}"`,
445
- // Derived from the response's authoritative credits_used, not a constant (N7).
446
- ...(creditCostHint(resp.data) ? [creditCostHint(resp.data)] : []),
447
- ],
448
- related_commands: ["naive aeo llm-responses", "naive aeo ai-keywords"],
449
- });
450
- });
451
- //# sourceMappingURL=aeo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"aeo.js","sourceRoot":"","sources":["../../src/commands/aeo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EACL,qBAAqB,IAAI,CAAC,EAC1B,wBAAwB,IAAI,CAAC,EAC7B,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,KAAK,CAAC;KACrC,WAAW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pH;QACD,KAAK,EAAE;YACL,4BAA4B,IAAI,CAAC,OAAO,GAAG;YAC3C,+EAA+E;YAC/E,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;SACnE;QACD,gBAAgB,EAAE,CAAC,yBAAyB,EAAE,uBAAuB,CAAC;KACvE,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,11 +0,0 @@
1
- import { Command } from "commander";
2
- /**
3
- * Agent profiles — the per-tenant governed real-world bundle (identity, money, comms,
4
- * runtime), governed on every action and instantly revocable.
5
- */
6
- export declare const agentProfilesCmd: Command;
7
- /**
8
- * Top-level `naive revoke` sugar — revoke an agent profile (or, with --tenant, the
9
- * agent profile for that tenant).
10
- */
11
- export declare const revokeCmd: Command;