@usenaive-sdk/cli 0.15.1 → 1.0.1

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 (281) hide show
  1. package/README.md +43 -402
  2. package/dist/index.js +51796 -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 -250
  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 -125
  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 -88
  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 -79
  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 -130
  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/llm-paywall.d.ts +0 -82
  253. package/dist/lib/llm-paywall.js +0 -231
  254. package/dist/lib/llm-paywall.js.map +0 -1
  255. package/dist/lib/pricing.d.ts +0 -132
  256. package/dist/lib/pricing.js +0 -148
  257. package/dist/lib/pricing.js.map +0 -1
  258. package/dist/lib/starter-config.d.ts +0 -13
  259. package/dist/lib/starter-config.js +0 -71
  260. package/dist/lib/starter-config.js.map +0 -1
  261. package/dist/lib/stream-frames.d.ts +0 -114
  262. package/dist/lib/stream-frames.js +0 -169
  263. package/dist/lib/stream-frames.js.map +0 -1
  264. package/dist/lib/teams-catalog.d.ts +0 -141
  265. package/dist/lib/teams-catalog.js +0 -841
  266. package/dist/lib/teams-catalog.js.map +0 -1
  267. package/dist/lib/unknown-command.d.ts +0 -71
  268. package/dist/lib/unknown-command.js +0 -132
  269. package/dist/lib/unknown-command.js.map +0 -1
  270. package/dist/lib/version-check.d.ts +0 -26
  271. package/dist/lib/version-check.js +0 -21
  272. package/dist/lib/version-check.js.map +0 -1
  273. package/dist/output.d.ts +0 -246
  274. package/dist/output.js +0 -539
  275. package/dist/output.js.map +0 -1
  276. package/dist/prompt.d.ts +0 -17
  277. package/dist/prompt.js +0 -70
  278. package/dist/prompt.js.map +0 -1
  279. package/dist/version.d.ts +0 -2
  280. package/dist/version.js +0 -14
  281. package/dist/version.js.map +0 -1
@@ -1,283 +0,0 @@
1
- import { Command } from "commander";
2
- import { apiRequest, handleApiError } from "../client.js";
3
- import { saveConfig } from "../config.js";
4
- import { agentOutput } from "../output.js";
5
- async function listCompanies() {
6
- const resp = await apiRequest("GET", "/v1/auth/companies");
7
- handleApiError("companies.list", resp);
8
- const data = resp.data;
9
- agentOutput({
10
- action: "companies.list",
11
- result: data,
12
- next_steps: [
13
- { command: "naive organization select <company_id>", description: "Switch to a different organization context", when: "You want to operate under a different organization" },
14
- { command: "naive status", description: "See full status for current organization" },
15
- ],
16
- hints: [
17
- `Found ${data.companies?.length ?? 0} accessible organizations`,
18
- "Use 'naive organization select <id>' to switch. A new API key will be issued for that organization.",
19
- ],
20
- related_commands: ["naive organization select", "naive whoami", "naive status"],
21
- });
22
- }
23
- /**
24
- * `naive companies` — the ORGANIZATION.
25
- *
26
- * `organization` is the product noun and the alias below is what the docs and
27
- * help text use; `companies` stays as the command name, the route
28
- * (`/v1/company`) and the config key, because every script and agent profile in
29
- * the wild already types it.
30
- */
31
- export const companiesCmd = new Command("companies")
32
- .alias("organization")
33
- .alias("org")
34
- .description("List/create/switch organizations accessible to the current agent")
35
- .addHelpText("after", `
36
- Examples:
37
- $ naive organization (alias of: naive companies)
38
- $ naive companies list
39
- $ naive companies create --name "ProbeCo"
40
- $ naive organization select <company_id>
41
-
42
- What this does:
43
- Lists every organization your agent/account has access to, showing:
44
- - Organization ID (UUID)
45
- - Organization name
46
- - Current credit balance
47
- - Billing tier (free, pro, enterprise)
48
-
49
- Use this to:
50
- - See which workspaces you can operate in
51
- - Find an organization ID to switch context with 'naive organization select'
52
- - Check credit balances across organizations
53
- - Create an additional workspace with 'naive companies create --name …'
54
- `)
55
- .action(async () => {
56
- await listCompanies();
57
- });
58
- companiesCmd
59
- .command("create")
60
- .description("Create an additional company and switch the CLI to it")
61
- .requiredOption("--name <name>", "Company / project name")
62
- .addHelpText("after", `
63
- Examples:
64
- $ naive companies create --name "ProbeCo"
65
- $ naive companies create --name "Acme Staging"
66
-
67
- What this does:
68
- 1. Creates a new company owned by, and billed to, your current company's owner
69
- 2. Issues a fresh API key scoped to that company (sealed to its default user)
70
- 3. Overwrites ~/.naive/config.json with that key — same as 'companies select'
71
-
72
- Notes:
73
- - register already creates your first company; use this for extra workspaces
74
- - Capped at 5 companies per owner, 3 creates per hour
75
- - The owner is charged for the new company whichever key in your company runs
76
- this. Read /docs/api-reference/auth/companies before wiring it into a loop.
77
- `)
78
- .action(async (opts) => {
79
- const resp = await apiRequest("POST", "/v1/auth/companies", { name: opts.name });
80
- handleApiError("companies.create", resp);
81
- const data = resp.data;
82
- saveConfig({
83
- api_key: data.api_key,
84
- agent_id: data.agent_id,
85
- company_id: data.company_id,
86
- company_name: data.company_name,
87
- });
88
- agentOutput({
89
- action: "companies.create",
90
- result: {
91
- company_id: data.company_id,
92
- company_name: data.company_name,
93
- agent_id: data.agent_id,
94
- credits: data.credits,
95
- new_key_issued: true,
96
- },
97
- next_steps: [
98
- { command: "naive whoami", description: "Confirm the new organization context" },
99
- { command: "naive status", description: "See credits and API status" },
100
- { command: "naive apps create --name <name>", description: "Create an app in this organization" },
101
- ],
102
- hints: [
103
- `Created "${data.company_name}" and switched CLI context. New API key saved.`,
104
- "The previous organization's key is no longer in ~/.naive/config.json — use 'naive organization select <id>' to go back.",
105
- ],
106
- related_commands: ["naive companies list", "naive organization select", "naive whoami", "naive status"],
107
- });
108
- });
109
- // `naive companies list` — the bare `naive companies` used to reject any extra
110
- // argument, so an agent that spelled the verb out got a usage error.
111
- companiesCmd
112
- .command("list")
113
- .description("List all companies accessible to the current agent")
114
- .addHelpText("after", `
115
- Examples:
116
- $ naive companies list
117
- $ naive companies
118
- `)
119
- .action(async () => {
120
- await listCompanies();
121
- });
122
- companiesCmd
123
- .command("show")
124
- .description("Show details of the current company")
125
- .addHelpText("after", `
126
- Examples:
127
- $ naive organization show
128
-
129
- What this does:
130
- Returns detailed information about the organization your agent is
131
- currently operating under, including:
132
- - Name and slug
133
- - Description
134
- - Issue prefix
135
- - Status
136
- - Creation date
137
-
138
- Use this to:
139
- - Check the current organization name
140
- - See organization metadata before making changes
141
- `)
142
- .action(async () => {
143
- const resp = await apiRequest("GET", "/v1/company");
144
- handleApiError("companies.show", resp);
145
- agentOutput({
146
- action: "companies.show",
147
- result: resp.data,
148
- next_steps: [
149
- { command: "naive organization rename \"New Name\"", description: "Change the organization name", when: "The name needs updating" },
150
- { command: "naive organization update --description \"...\"", description: "Update the organization description" },
151
- { command: "naive status", description: "See credits and API status" },
152
- ],
153
- hints: [
154
- "Use 'naive organization rename' to change the organization name",
155
- ],
156
- related_commands: ["naive organization rename", "naive organization update", "naive status"],
157
- });
158
- });
159
- companiesCmd
160
- .command("rename <name>")
161
- .description("Rename the current company")
162
- .addHelpText("after", `
163
- Examples:
164
- $ naive organization rename "Acme Corp"
165
- $ naive organization rename "My Startup Inc"
166
-
167
- What this does:
168
- Changes the display name of the organization your agent currently
169
- operates under. The slug and other identifiers remain unchanged.
170
-
171
- Notes:
172
- - The name must be a non-empty string
173
- - This does not change the organization slug or issue prefix
174
- - The change takes effect immediately across the platform
175
- `)
176
- .action(async (name) => {
177
- const resp = await apiRequest("PATCH", "/v1/company", { name });
178
- handleApiError("companies.rename", resp);
179
- const data = resp.data;
180
- agentOutput({
181
- action: "companies.rename",
182
- result: data,
183
- next_steps: [
184
- { command: "naive organization show", description: "Verify the updated organization details" },
185
- { command: "naive status", description: "See full status" },
186
- ],
187
- hints: [
188
- `Organization renamed to "${data.name}"`,
189
- ],
190
- related_commands: ["naive organization show", "naive organization update", "naive status"],
191
- });
192
- });
193
- companiesCmd
194
- .command("update")
195
- .description("Update organization details (name, description)")
196
- .option("--name <name>", "New organization name")
197
- .option("--description <description>", "Company description")
198
- .addHelpText("after", `
199
- Examples:
200
- $ naive organization update --name "Acme Corp" --description "Building the future"
201
- $ naive organization update --description "An AI-native startup"
202
-
203
- What this does:
204
- Updates one or more fields on the current company. At least one
205
- field must be provided.
206
- `)
207
- .action(async (opts) => {
208
- const body = {};
209
- if (opts.name)
210
- body.name = opts.name;
211
- if (opts.description !== undefined)
212
- body.description = opts.description;
213
- const resp = await apiRequest("PATCH", "/v1/company", body);
214
- handleApiError("companies.update", resp);
215
- agentOutput({
216
- action: "companies.update",
217
- result: resp.data,
218
- next_steps: [
219
- { command: "naive organization show", description: "Verify the updated organization details" },
220
- ],
221
- hints: [
222
- "Company details updated successfully",
223
- ],
224
- related_commands: ["naive organization show", "naive organization rename", "naive status"],
225
- });
226
- });
227
- companiesCmd
228
- .command("select <company_id>")
229
- .description("Switch active organization context (issues a new API key for that organization)")
230
- .addHelpText("after", `
231
- Examples:
232
- $ naive organization select 550e8400-e29b-41d4-a716-446655440000
233
-
234
- What this does:
235
- 1. Verifies you have access to the specified organization
236
- 2. Issues a new API key scoped to that organization
237
- 3. Saves the new key to ~/.naive/config.json
238
- 4. All future commands operate under the new organization
239
-
240
- Notes:
241
- - Your old key for the previous organization remains valid
242
- - Use 'naive organization' first to get the organization ID
243
- - The new key has access only to the selected organization's resources
244
- `)
245
- .action(async (id) => {
246
- const resp = await apiRequest("POST", "/v1/auth/select-company", { company_id: id });
247
- handleApiError("companies.select", resp);
248
- const data = resp.data;
249
- saveConfig({
250
- api_key: data.api_key,
251
- agent_id: data.agent_id,
252
- company_id: data.company_id,
253
- company_name: data.company_name,
254
- // A project belongs to ONE organization, so a project selected in the old
255
- // one is meaningless — and worse than meaningless: it would be sent as
256
- // `X-Naive-Project-Id` against the new organization and 404 every command
257
- // until the operator guessed why. Same for the child project inside it,
258
- // which is why the organization switch also invalidates any prior
259
- // `naive use` subject.
260
- active_project_id: undefined,
261
- active_project_name: undefined,
262
- active_user_id: undefined,
263
- });
264
- agentOutput({
265
- action: "companies.select",
266
- result: {
267
- company_id: data.company_id,
268
- company_name: data.company_name,
269
- new_key_issued: true,
270
- },
271
- next_steps: [
272
- { command: "naive identity", description: "View resources available in the new organization context" },
273
- { command: "naive email inboxes", description: "Check email addresses for this company" },
274
- { command: "naive status", description: "See credits and status for this company" },
275
- ],
276
- hints: [
277
- `Now operating under "${data.company_name}". New API key saved.`,
278
- "All subsequent commands use the new organization context.",
279
- ],
280
- related_commands: ["naive whoami", "naive identity", "naive status"],
281
- });
282
- });
283
- //# sourceMappingURL=companies.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"companies.js","sourceRoot":"","sources":["../../src/commands/companies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,KAAK,UAAU,aAAa;IAC1B,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC;IAC3D,cAAc,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;IAEvC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAyF,CAAC;IAE5G,WAAW,CAAC;QACV,MAAM,EAAE,gBAAgB;QACxB,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE;YACV,EAAE,OA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AE,EAAE,CAAC,CAAC;IACrF,cAAc,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;IAEzC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAuF,CAAC;IAC1G,UAAU,CAAC;QACT,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,0EAA0E;QAC1E,uEAAuE;QACvE,0EAA0E;QAC1E,wEAAwE;QACxE,kEAAkE;QAClE,uBAAuB;QACvB,iBAAiB,EAAE,SAAS;QAC5B,mBAAmB,EAAE,SAAS;QAC9B,cAAc,EAAE,SAAS;KAC1B,CAAC,CAAC;IAEH,WAAW,CAAC;QACV,MAAM,EAAE,kBAAkB;QAC1B,MAAM,EAAE;YACN,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,cAAc,EAAE,IAAI;SACrB;QACD,UAAU,EAAE;YACV,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,0DAA0D,EAAE;YACtG,EAAE,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,wCAAwC,EAAE;YACzF,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,yCAAyC,EAAE;SACpF;QACD,KAAK,EAAE;YACL,wBAAwB,IAAI,CAAC,YAAY,uBAAuB;YAChE,2DAA2D;SAC5D;QACD,gBAAgB,EAAE,CAAC,cAAc,EAAE,gBAAgB,EAAE,cAAc,CAAC;KACrE,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const companyDataCmd: Command;
@@ -1,168 +0,0 @@
1
- import { Command } from "commander";
2
- import { apiRequest, handleApiError } from "../client.js";
3
- import { agentOutput, creditCostHint } from "../output.js";
4
- import { parseIntegerOption } from "../lib/cli-validation.js";
5
- export const companyDataCmd = new Command("company-data")
6
- .description("Company Data — private company firmographics, funding, headcount & tech stack")
7
- .addHelpText("after", `
8
- Subcommands:
9
- naive company-data search Find companies by industry or geography
10
- naive company-data enrich Enrich one company from a domain or name
11
- naive company-data batch Async batch enrich (up to 1,000 identities)
12
- naive company-data task <id> Check a batch task
13
- naive company-data terms The acceptable-use terms this primitive binds you to
14
-
15
- SEARCH TAKES INDUSTRY AND GEO ONLY. Funding, stage and headcount thresholds are
16
- NOT offered here on purpose: the search provider returns none of those fields,
17
- so the API refuses those filters rather than running a query that would match
18
- nothing and bill for it. Filter on industry/geo, then enrich the results with
19
- --include-signals, which does return funding and headcount.
20
-
21
- Cost: 3x what the provider run really cost, on every operation.
22
- --include-signals costs more because it starts more runs, and adds funding,
23
- investors and the technology stack. A no-match is billed too — the run still
24
- happened — and the 404 reports what it cost. Every charge reports the
25
- provider_usd it came from (see \`naive usage\`).
26
-
27
- All data comes from ONE provider (Apify) on one token — that is the "provider"
28
- field, and it is always "apify". The "sources" field is a different thing: the
29
- DATASETS a record was assembled from. LinkedIn supplies firmographics
30
- (headcount, founded, industry, headquarters); Crunchbase supplies funding and
31
- investors; a direct scan of the domain supplies the technology stack.
32
-
33
- Funding is matched on a derived slug and can miss, so an absent "crunchbase"
34
- means no match rather than an error — you still get the firmographics.
35
-
36
- Not to be confused with \`naive companies\`, which manages tenant companies, or
37
- with \`naive business\` (Reviews & Listings), which is reputation rather than the
38
- company itself.
39
- `);
40
- companyDataCmd
41
- .command("search")
42
- .description("Find private companies by industry or geography (billed on 3x the run's cost)")
43
- .option("--industry <industry>", "Industry, e.g. 'fintech'")
44
- .option("--geo <geo>", "Location, e.g. 'United States'")
45
- .option("--limit <n>", "Max records, 1-50")
46
- .action(async (opts) => {
47
- const filters = {};
48
- if (opts.industry)
49
- filters.industry = opts.industry;
50
- if (opts.geo)
51
- filters.geo = opts.geo;
52
- const body = { filters };
53
- if (opts.limit)
54
- body.limit = parseIntegerOption(opts.limit, "--limit", 1, 50);
55
- const resp = await apiRequest("POST", "/v1/company-data/search", body);
56
- handleApiError("company-data.search", resp);
57
- const records = resp.data?.data?.length ?? 0;
58
- agentOutput({
59
- action: "company-data.search",
60
- result: resp.data,
61
- next_steps: [
62
- { command: "naive company-data enrich --domain <domain> --include-signals", description: "Get funding, investors and tech stack for one company" },
63
- { command: "naive people search --company <name>", description: "Find people at one of these companies" },
64
- ],
65
- hints: [
66
- `${records} record${records === 1 ? "" : "s"} returned.`,
67
- creditCostHint(resp.data) ?? "",
68
- "Search returns no funding or headcount — enrich a result with --include-signals for those.",
69
- ].filter(Boolean),
70
- related_commands: ["naive company-data enrich", "naive people search"],
71
- });
72
- });
73
- companyDataCmd
74
- .command("enrich")
75
- .description("Enrich one company (LinkedIn firmographics + Crunchbase funding, merged)")
76
- .option("--domain <domain>", "Company domain, e.g. 'stripe.com'")
77
- .option("--name <name>", "Company name")
78
- .option("--cb-id <id>", "Crunchbase entity id (accepted, but lookup keys on domain or name)")
79
- .option("--include-signals", "Add funding, investors and tech stack (higher meter)")
80
- .action(async (opts) => {
81
- const identity = {};
82
- if (opts.domain)
83
- identity.domain = opts.domain;
84
- if (opts.name)
85
- identity.name = opts.name;
86
- if (opts.cbId)
87
- identity.cb_id = opts.cbId;
88
- const resp = await apiRequest("POST", "/v1/company-data/enrich", {
89
- identity,
90
- include_signals: opts.includeSignals === true,
91
- });
92
- handleApiError("company-data.enrich", resp);
93
- const sources = resp.data?.sources ?? [];
94
- agentOutput({
95
- action: "company-data.enrich",
96
- result: resp.data,
97
- next_steps: [
98
- { command: "naive people search --company <name> --title 'VP Engineering'", description: "Find people at this company" },
99
- ],
100
- hints: [
101
- creditCostHint(resp.data) ?? "",
102
- sources.length === 1
103
- ? "Only one dataset contributed — funding and tech stack may be absent because nothing matched."
104
- : "",
105
- ].filter(Boolean),
106
- related_commands: ["naive company-data search", "naive people search"],
107
- });
108
- });
109
- companyDataCmd
110
- .command("batch")
111
- .description("Async batch enrich — up to 1,000 identities")
112
- .requiredOption("--identities <json>", "JSON array: [{\"domain\":\"stripe.com\"}, ...]")
113
- .option("--include-signals", "Add funding, investors and tech stack (higher meter)")
114
- .action(async (opts) => {
115
- let identities;
116
- try {
117
- identities = JSON.parse(opts.identities);
118
- }
119
- catch {
120
- throw new Error("--identities must be valid JSON, e.g. '[{\"domain\":\"stripe.com\"}]'");
121
- }
122
- const resp = await apiRequest("POST", "/v1/company-data/tasks", {
123
- identities,
124
- include_signals: opts.includeSignals === true,
125
- });
126
- handleApiError("company-data.batch", resp);
127
- const id = resp.data?.id;
128
- agentOutput({
129
- action: "company-data.batch",
130
- result: resp.data,
131
- next_steps: [
132
- { command: `naive company-data task ${id ?? "<id>"}`, description: "Check the batch status and collect results" },
133
- ],
134
- hints: ["Only matched records are billed."],
135
- related_commands: ["naive company-data task"],
136
- });
137
- });
138
- companyDataCmd
139
- .command("task <id>")
140
- .description("Check an async batch task")
141
- .action(async (id) => {
142
- const resp = await apiRequest("GET", `/v1/company-data/tasks/${id}`);
143
- handleApiError("company-data.task", resp);
144
- agentOutput({
145
- action: "company-data.task",
146
- result: resp.data,
147
- next_steps: [
148
- { command: `naive company-data task ${id}`, description: "Poll again if still processing" },
149
- ],
150
- hints: [creditCostHint(resp.data) ?? ""].filter(Boolean),
151
- related_commands: ["naive company-data batch"],
152
- });
153
- });
154
- companyDataCmd
155
- .command("terms")
156
- .description("The acceptable-use terms this primitive binds you to (free)")
157
- .action(async () => {
158
- const resp = await apiRequest("GET", "/v1/company-data/terms");
159
- handleApiError("company-data.terms", resp);
160
- agentOutput({
161
- action: "company-data.terms",
162
- result: resp.data,
163
- next_steps: [],
164
- hints: ["Unmetered. These are the product surface of ToS Section 18."],
165
- related_commands: ["naive company-data enrich"],
166
- });
167
- });
168
- //# sourceMappingURL=company-data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"company-data.js","sourceRoot":"","sources":["../../src/commands/company-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,E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