@usenaive-sdk/cli 0.3.1 → 0.4.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/README.md +53 -6
- package/dist/commands/apps.d.ts +2 -0
- package/dist/commands/apps.js +424 -0
- package/dist/commands/apps.js.map +1 -0
- package/dist/commands/ceo.d.ts +2 -0
- package/dist/commands/ceo.js +369 -0
- package/dist/commands/ceo.js.map +1 -0
- package/dist/commands/companies.js +105 -0
- package/dist/commands/companies.js.map +1 -1
- package/dist/commands/cron-jobs.d.ts +2 -0
- package/dist/commands/cron-jobs.js +208 -0
- package/dist/commands/cron-jobs.js.map +1 -0
- package/dist/commands/employees.d.ts +2 -0
- package/dist/commands/employees.js +190 -0
- package/dist/commands/employees.js.map +1 -0
- package/dist/commands/media.d.ts +2 -0
- package/dist/commands/media.js +183 -0
- package/dist/commands/media.js.map +1 -0
- package/dist/commands/memory.d.ts +2 -0
- package/dist/commands/memory.js +151 -0
- package/dist/commands/memory.js.map +1 -0
- package/dist/commands/objectives.d.ts +2 -0
- package/dist/commands/objectives.js +243 -0
- package/dist/commands/objectives.js.map +1 -0
- package/dist/commands/register.js +5 -6
- package/dist/commands/register.js.map +1 -1
- package/dist/commands/social.js +3 -0
- package/dist/commands/social.js.map +1 -1
- package/dist/commands/tasks.d.ts +2 -0
- package/dist/commands/tasks.js +400 -0
- package/dist/commands/tasks.js.map +1 -0
- package/dist/commands/usage.js +5 -5
- package/dist/commands/video.js +259 -11
- package/dist/commands/video.js.map +1 -1
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/index.js +30 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import { apiRequest, handleApiError } from "../client.js";
|
|
3
|
+
import { loadConfig, getApiKey } from "../config.js";
|
|
4
|
+
import { agentOutput, agentError } from "../output.js";
|
|
5
|
+
export const ceoCmd = new Command("ceo")
|
|
6
|
+
.description("Communicate with the CEO agent — run prompts, send messages, monitor sessions")
|
|
7
|
+
.addHelpText("after", `
|
|
8
|
+
Subcommands:
|
|
9
|
+
naive ceo run <prompt> Start a new CEO run with a prompt
|
|
10
|
+
naive ceo message <text> Send a message to an active CEO session
|
|
11
|
+
naive ceo status Get the CEO agent's current status
|
|
12
|
+
naive ceo sessions List all CEO sessions
|
|
13
|
+
naive ceo stream <runId> Stream real-time output from a CEO run (SSE)
|
|
14
|
+
naive ceo team-approve Approve a CEO-proposed team and provision agents
|
|
15
|
+
|
|
16
|
+
Workflow:
|
|
17
|
+
1. naive ceo run "Launch a new product line" → start a CEO task
|
|
18
|
+
2. naive ceo stream <runId> → watch output in real-time
|
|
19
|
+
3. naive ceo team-approve --team '[...]' → approve the proposed team
|
|
20
|
+
4. naive ceo message "Focus on marketing" → steer the CEO mid-run
|
|
21
|
+
5. naive ceo status → check if the CEO is working
|
|
22
|
+
6. naive ceo sessions → review all past sessions
|
|
23
|
+
|
|
24
|
+
The CEO is a persistent Hermes gateway that orchestrates your company's
|
|
25
|
+
AI workforce. It decomposes objectives into tasks, proposes teams, and
|
|
26
|
+
dispatches work to employees once you approve the team composition.
|
|
27
|
+
|
|
28
|
+
Examples:
|
|
29
|
+
$ naive ceo run "Analyze our competitors and draft a strategy"
|
|
30
|
+
$ naive ceo status
|
|
31
|
+
$ naive ceo sessions
|
|
32
|
+
$ naive ceo stream abc-123
|
|
33
|
+
$ naive ceo message "Prioritize the SEO analysis"
|
|
34
|
+
`);
|
|
35
|
+
ceoCmd
|
|
36
|
+
.command("run <prompt>")
|
|
37
|
+
.description("Start a new CEO run — the CEO will interpret the prompt and begin executing")
|
|
38
|
+
.addHelpText("after", `
|
|
39
|
+
Examples:
|
|
40
|
+
$ naive ceo run "Set up email infrastructure and send welcome emails to our leads"
|
|
41
|
+
$ naive ceo run "Research competitors in the AI space and write a report"
|
|
42
|
+
|
|
43
|
+
What this does:
|
|
44
|
+
1. Sends the prompt to the CEO agent
|
|
45
|
+
2. The CEO decomposes the prompt into objectives and tasks
|
|
46
|
+
3. Tasks are dispatched to available employees
|
|
47
|
+
4. Returns a run ID for tracking progress
|
|
48
|
+
|
|
49
|
+
The CEO operates asynchronously — use 'naive ceo stream <runId>' to
|
|
50
|
+
watch output in real-time, or 'naive ceo status' to check progress.
|
|
51
|
+
`)
|
|
52
|
+
.action(async (prompt) => {
|
|
53
|
+
const config = loadConfig();
|
|
54
|
+
const resp = await apiRequest("POST", `/v1/companies/${config.company_id}/ceo/run`, {
|
|
55
|
+
prompt,
|
|
56
|
+
});
|
|
57
|
+
handleApiError("ceo.run", resp);
|
|
58
|
+
const data = resp.data;
|
|
59
|
+
agentOutput({
|
|
60
|
+
action: "ceo.run",
|
|
61
|
+
result: resp.data,
|
|
62
|
+
next_steps: [
|
|
63
|
+
{ command: `naive ceo stream ${data.run_id}`, description: "Stream real-time output from this run" },
|
|
64
|
+
{ command: "naive ceo status", description: "Check the CEO's current status" },
|
|
65
|
+
{ command: "naive tasks list", description: "See tasks the CEO has created" },
|
|
66
|
+
],
|
|
67
|
+
hints: [
|
|
68
|
+
`CEO run started (id: ${data.run_id})`,
|
|
69
|
+
"The CEO is now decomposing your prompt into actionable tasks",
|
|
70
|
+
"Use 'naive ceo stream' to watch progress in real-time",
|
|
71
|
+
],
|
|
72
|
+
related_commands: ["naive ceo stream", "naive ceo status", "naive ceo message", "naive tasks list"],
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
ceoCmd
|
|
76
|
+
.command("message <text>")
|
|
77
|
+
.description("Send a message to the CEO agent during an active session")
|
|
78
|
+
.addHelpText("after", `
|
|
79
|
+
Examples:
|
|
80
|
+
$ naive ceo message "Focus on the marketing tasks first"
|
|
81
|
+
$ naive ceo message "Pause all work and give me a status update"
|
|
82
|
+
|
|
83
|
+
What this does:
|
|
84
|
+
Sends a real-time message to the active CEO session. Use this to:
|
|
85
|
+
- Steer the CEO's priorities mid-execution
|
|
86
|
+
- Ask for a progress update
|
|
87
|
+
- Provide additional context or constraints
|
|
88
|
+
- Request course corrections
|
|
89
|
+
|
|
90
|
+
The CEO will incorporate your message into its current workflow.
|
|
91
|
+
`)
|
|
92
|
+
.action(async (text) => {
|
|
93
|
+
const config = loadConfig();
|
|
94
|
+
const resp = await apiRequest("POST", `/v1/companies/${config.company_id}/ceo/message`, {
|
|
95
|
+
text,
|
|
96
|
+
});
|
|
97
|
+
handleApiError("ceo.message", resp);
|
|
98
|
+
agentOutput({
|
|
99
|
+
action: "ceo.message",
|
|
100
|
+
result: resp.data,
|
|
101
|
+
next_steps: [
|
|
102
|
+
{ command: "naive ceo status", description: "Check how the CEO is responding to your message" },
|
|
103
|
+
{ command: "naive ceo sessions", description: "View session history" },
|
|
104
|
+
],
|
|
105
|
+
hints: [
|
|
106
|
+
"Message delivered to the CEO agent",
|
|
107
|
+
"The CEO will incorporate this into its current execution plan",
|
|
108
|
+
],
|
|
109
|
+
related_commands: ["naive ceo status", "naive ceo run", "naive ceo sessions"],
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
ceoCmd
|
|
113
|
+
.command("status")
|
|
114
|
+
.description("Get the CEO agent's current status — active run, idle, or error")
|
|
115
|
+
.addHelpText("after", `
|
|
116
|
+
Examples:
|
|
117
|
+
$ naive ceo status
|
|
118
|
+
|
|
119
|
+
Returns:
|
|
120
|
+
- Current state (idle, running, error)
|
|
121
|
+
- Active run ID (if running)
|
|
122
|
+
- Current objective being worked on
|
|
123
|
+
- Number of active tasks dispatched
|
|
124
|
+
- Last activity timestamp
|
|
125
|
+
`)
|
|
126
|
+
.action(async () => {
|
|
127
|
+
const config = loadConfig();
|
|
128
|
+
const resp = await apiRequest("GET", `/v1/companies/${config.company_id}/ceo/status`);
|
|
129
|
+
handleApiError("ceo.status", resp);
|
|
130
|
+
const data = resp.data;
|
|
131
|
+
agentOutput({
|
|
132
|
+
action: "ceo.status",
|
|
133
|
+
result: resp.data,
|
|
134
|
+
next_steps: [
|
|
135
|
+
...(data.state === "running" && data.active_run_id
|
|
136
|
+
? [{ command: `naive ceo stream ${data.active_run_id}`, description: "Stream the active run's output" }]
|
|
137
|
+
: []),
|
|
138
|
+
...(data.state === "idle"
|
|
139
|
+
? [{ command: 'naive ceo run "<prompt>"', description: "Start a new CEO run" }]
|
|
140
|
+
: []),
|
|
141
|
+
{ command: "naive ceo sessions", description: "View all past sessions" },
|
|
142
|
+
{ command: "naive tasks list", description: "See active tasks" },
|
|
143
|
+
],
|
|
144
|
+
hints: [
|
|
145
|
+
`CEO is currently: ${data.state}`,
|
|
146
|
+
...(data.active_run_id ? [`Active run: ${data.active_run_id}`] : []),
|
|
147
|
+
],
|
|
148
|
+
related_commands: ["naive ceo run", "naive ceo stream", "naive ceo sessions", "naive tasks list"],
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
ceoCmd
|
|
152
|
+
.command("sessions")
|
|
153
|
+
.description("List all CEO sessions — past and current runs")
|
|
154
|
+
.addHelpText("after", `
|
|
155
|
+
Examples:
|
|
156
|
+
$ naive ceo sessions
|
|
157
|
+
|
|
158
|
+
Returns a list of all CEO sessions including:
|
|
159
|
+
- Session/run ID
|
|
160
|
+
- Original prompt
|
|
161
|
+
- Status (running, completed, failed)
|
|
162
|
+
- Start and end timestamps
|
|
163
|
+
- Number of tasks created
|
|
164
|
+
- Summary (for completed sessions)
|
|
165
|
+
`)
|
|
166
|
+
.action(async () => {
|
|
167
|
+
const config = loadConfig();
|
|
168
|
+
const resp = await apiRequest("GET", `/v1/companies/${config.company_id}/ceo/sessions`);
|
|
169
|
+
handleApiError("ceo.sessions", resp);
|
|
170
|
+
const data = resp.data;
|
|
171
|
+
const count = data.sessions?.length ?? 0;
|
|
172
|
+
agentOutput({
|
|
173
|
+
action: "ceo.sessions",
|
|
174
|
+
result: resp.data,
|
|
175
|
+
next_steps: [
|
|
176
|
+
...(count > 0
|
|
177
|
+
? [{ command: `naive ceo stream ${data.sessions[0].id}`, description: "Stream the most recent session" }]
|
|
178
|
+
: []),
|
|
179
|
+
{ command: 'naive ceo run "<prompt>"', description: "Start a new CEO session" },
|
|
180
|
+
],
|
|
181
|
+
hints: [
|
|
182
|
+
`${count} session${count !== 1 ? "s" : ""} found`,
|
|
183
|
+
"Each session represents a CEO run with its tasks and results",
|
|
184
|
+
],
|
|
185
|
+
related_commands: ["naive ceo run", "naive ceo stream", "naive ceo status"],
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
ceoCmd
|
|
189
|
+
.command("team-approve")
|
|
190
|
+
.description("Approve a CEO-proposed team — provisions agent profiles and begins task assignment")
|
|
191
|
+
.requiredOption("--team <json>", "JSON array of team members (each with name, title, template, optional skills/context)")
|
|
192
|
+
.option("--tasks <json>", "JSON array of pre-defined tasks (each with title, description, assignee, optional priority/phase)")
|
|
193
|
+
.option("--objective-id <id>", "Link the team to an objective")
|
|
194
|
+
.addHelpText("after", `
|
|
195
|
+
Examples:
|
|
196
|
+
$ naive ceo team-approve --team '[{"name":"Landing Page Engineer","title":"Engineer","template":"engineer"}]'
|
|
197
|
+
$ naive ceo team-approve --team '[{"name":"Growth Marketer","title":"Marketer","template":"writer"}]' --tasks '[{"title":"Create GTM Plan","description":"Develop go-to-market plan","assignee":"Growth Marketer","priority":"high"}]'
|
|
198
|
+
|
|
199
|
+
What this does:
|
|
200
|
+
1. Creates agent records in the database
|
|
201
|
+
2. Provisions Hermes profiles on the container (with template specialization)
|
|
202
|
+
3. Creates and assigns any pre-defined tasks
|
|
203
|
+
4. Notifies the CEO that the team is ready
|
|
204
|
+
5. Workers are spawned automatically when tasks are dispatched
|
|
205
|
+
|
|
206
|
+
Team member fields:
|
|
207
|
+
name (required) — Display name (use role-based names, e.g. "Landing Page Engineer")
|
|
208
|
+
title (required) — Role/title (Engineer, Marketer, Writer, etc.)
|
|
209
|
+
template (optional) — Specialization: engineer, writer, hunter, or legal
|
|
210
|
+
skills (optional) — Array of skill tags for task routing
|
|
211
|
+
context (optional) — What this agent works on (e.g. "Build the company landing page")
|
|
212
|
+
persona (optional) — Custom persona/system prompt
|
|
213
|
+
|
|
214
|
+
Task fields:
|
|
215
|
+
title (required) — Task title
|
|
216
|
+
description (required) — Detailed description of the deliverable
|
|
217
|
+
assignee (required) — Agent name to assign to (must match a team member name)
|
|
218
|
+
priority (optional) — low, medium, high, or critical (default: medium)
|
|
219
|
+
phase (optional) — 1 or 2. Phase 1 runs immediately, phase 2 is delegated later.
|
|
220
|
+
`)
|
|
221
|
+
.action(async (opts) => {
|
|
222
|
+
const config = loadConfig();
|
|
223
|
+
let team;
|
|
224
|
+
try {
|
|
225
|
+
team = JSON.parse(opts.team);
|
|
226
|
+
}
|
|
227
|
+
catch {
|
|
228
|
+
agentError({
|
|
229
|
+
action: "ceo.team-approve",
|
|
230
|
+
error: { code: "invalid_json", message: "The --team flag must be valid JSON" },
|
|
231
|
+
recovery_steps: [
|
|
232
|
+
{ command: `naive ceo team-approve --team '[{"name":"Alice","title":"Engineer"}]'`, description: "Example with valid JSON" },
|
|
233
|
+
],
|
|
234
|
+
});
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
let tasks;
|
|
238
|
+
if (opts.tasks) {
|
|
239
|
+
try {
|
|
240
|
+
tasks = JSON.parse(opts.tasks);
|
|
241
|
+
}
|
|
242
|
+
catch {
|
|
243
|
+
agentError({
|
|
244
|
+
action: "ceo.team-approve",
|
|
245
|
+
error: { code: "invalid_json", message: "The --tasks flag must be valid JSON" },
|
|
246
|
+
recovery_steps: [
|
|
247
|
+
{ command: `naive ceo team-approve --team '[...]' --tasks '[{"title":"Build Page","description":"...","assignee":"Engineer"}]'`, description: "Example with valid JSON" },
|
|
248
|
+
],
|
|
249
|
+
});
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
const body = { team };
|
|
254
|
+
if (tasks)
|
|
255
|
+
body.tasks = tasks;
|
|
256
|
+
if (opts.objectiveId)
|
|
257
|
+
body.objective_id = opts.objectiveId;
|
|
258
|
+
const resp = await apiRequest("POST", `/v1/companies/${config.company_id}/ceo/team/approve`, body);
|
|
259
|
+
handleApiError("ceo.team-approve", resp);
|
|
260
|
+
const data = resp.data;
|
|
261
|
+
agentOutput({
|
|
262
|
+
action: "ceo.team-approve",
|
|
263
|
+
result: resp.data,
|
|
264
|
+
next_steps: [
|
|
265
|
+
{ command: "naive employees list", description: "View your provisioned team" },
|
|
266
|
+
{ command: "naive tasks list", description: "See tasks being assigned to the team" },
|
|
267
|
+
{ command: "naive ceo status", description: "Check if the CEO is dispatching work" },
|
|
268
|
+
],
|
|
269
|
+
hints: [
|
|
270
|
+
`Team approved: ${data.count ?? data.agents_created?.length ?? 0} agent(s) provisioned`,
|
|
271
|
+
...(data.agents_created?.length
|
|
272
|
+
? [`Agents: ${data.agents_created.map((a) => a.name).join(", ")}`]
|
|
273
|
+
: []),
|
|
274
|
+
"The CEO will begin assigning tasks to the new team members",
|
|
275
|
+
],
|
|
276
|
+
related_commands: ["naive employees list", "naive tasks list", "naive ceo run"],
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
ceoCmd
|
|
280
|
+
.command("stream <runId>")
|
|
281
|
+
.description("Stream real-time output from a CEO run via Server-Sent Events")
|
|
282
|
+
.addHelpText("after", `
|
|
283
|
+
Examples:
|
|
284
|
+
$ naive ceo stream abc-123-run-id
|
|
285
|
+
|
|
286
|
+
What this does:
|
|
287
|
+
Opens an SSE (Server-Sent Events) connection to stream the CEO's
|
|
288
|
+
real-time output. Events include:
|
|
289
|
+
- thought: CEO's reasoning steps
|
|
290
|
+
- task_created: new task dispatched
|
|
291
|
+
- task_completed: employee finished a task
|
|
292
|
+
- message: CEO status updates
|
|
293
|
+
- done: run completed
|
|
294
|
+
- error: something went wrong
|
|
295
|
+
|
|
296
|
+
Press Ctrl+C to stop streaming (the run continues in the background).
|
|
297
|
+
`)
|
|
298
|
+
.action(async (runId) => {
|
|
299
|
+
const config = loadConfig();
|
|
300
|
+
const apiKey = getApiKey();
|
|
301
|
+
const url = `${config.base_url}/v1/companies/${config.company_id}/ceo/runs/${runId}/stream`;
|
|
302
|
+
console.error(`Connecting to CEO stream for run ${runId}...`);
|
|
303
|
+
try {
|
|
304
|
+
const resp = await fetch(url, {
|
|
305
|
+
headers: {
|
|
306
|
+
Authorization: `Bearer ${apiKey}`,
|
|
307
|
+
Accept: "text/event-stream",
|
|
308
|
+
},
|
|
309
|
+
});
|
|
310
|
+
if (!resp.ok || !resp.body) {
|
|
311
|
+
agentError({
|
|
312
|
+
action: "ceo.stream",
|
|
313
|
+
error: { code: "stream_failed", message: `HTTP ${resp.status}: Failed to connect to stream` },
|
|
314
|
+
recovery_steps: [
|
|
315
|
+
{ command: `naive ceo stream ${runId}`, description: "Retry the stream connection" },
|
|
316
|
+
{ command: "naive ceo status", description: "Check if the run is still active" },
|
|
317
|
+
],
|
|
318
|
+
});
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
const reader = resp.body.getReader();
|
|
322
|
+
const decoder = new TextDecoder();
|
|
323
|
+
let buffer = "";
|
|
324
|
+
while (true) {
|
|
325
|
+
const { done, value } = await reader.read();
|
|
326
|
+
if (done)
|
|
327
|
+
break;
|
|
328
|
+
buffer += decoder.decode(value, { stream: true });
|
|
329
|
+
const lines = buffer.split("\n");
|
|
330
|
+
buffer = lines.pop() ?? "";
|
|
331
|
+
for (const line of lines) {
|
|
332
|
+
if (line.startsWith("data: ")) {
|
|
333
|
+
const payload = line.slice(6);
|
|
334
|
+
if (payload === "[DONE]") {
|
|
335
|
+
agentOutput({
|
|
336
|
+
action: "ceo.stream",
|
|
337
|
+
result: { status: "completed", run_id: runId },
|
|
338
|
+
next_steps: [
|
|
339
|
+
{ command: "naive tasks list", description: "View tasks created during this run" },
|
|
340
|
+
{ command: "naive ceo sessions", description: "View all sessions" },
|
|
341
|
+
],
|
|
342
|
+
hints: ["CEO run completed — stream ended"],
|
|
343
|
+
related_commands: ["naive ceo status", "naive tasks list"],
|
|
344
|
+
});
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
try {
|
|
348
|
+
const event = JSON.parse(payload);
|
|
349
|
+
console.log(JSON.stringify(event));
|
|
350
|
+
}
|
|
351
|
+
catch {
|
|
352
|
+
console.log(payload);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
catch (err) {
|
|
359
|
+
agentError({
|
|
360
|
+
action: "ceo.stream",
|
|
361
|
+
error: { code: "stream_error", message: String(err) },
|
|
362
|
+
recovery_steps: [
|
|
363
|
+
{ command: `naive ceo stream ${runId}`, description: "Retry the stream" },
|
|
364
|
+
{ command: "naive ceo status", description: "Check CEO status" },
|
|
365
|
+
],
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
//# sourceMappingURL=ceo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ceo.js","sourceRoot":"","sources":["../../src/commands/ceo.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,SAAS,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,KAAK,CAAC;KACrC,WAAW,CAAC,+EAA+E,CAAC;KAC5F,WAAW,CAAC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BvB,CAAC,CAAC;AAEH,MAAM;KACH,OAAO,CAAC,cAAc,CAAC;KACvB,WAAW,CAAC,6EAA6E,CAAC;KAC1F,WAAW,CAAC,OAAO,EAAE;;;;;;;;;;;;;CAavB,CAAC;KACC,MAAM,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;IAC/B,MAAM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I,CAAC;wBACH,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;wBAClC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;oBACrC,CAAC;oBAAC,MAAM,CAAC;wBACP,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;oBACvB,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,UAAU,CAAC;YACT,MAAM,EAAE,YAAY;YACpB,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE;YACrD,cAAc,EAAE;gBACd,EAAE,OAAO,EAAE,oBAAoB,KAAK,EAAE,EAAE,WAAW,EAAE,kBAAkB,EAAE;gBACzE,EAAE,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,kBAAkB,EAAE;aACjE;SACF,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -38,6 +38,111 @@ Use this to:
|
|
|
38
38
|
related_commands: ["naive companies select", "naive whoami", "naive status"],
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
|
+
companiesCmd
|
|
42
|
+
.command("show")
|
|
43
|
+
.description("Show details of the current company")
|
|
44
|
+
.addHelpText("after", `
|
|
45
|
+
Examples:
|
|
46
|
+
$ naive companies show
|
|
47
|
+
|
|
48
|
+
What this does:
|
|
49
|
+
Returns detailed information about the company your agent is
|
|
50
|
+
currently operating under, including:
|
|
51
|
+
- Name and slug
|
|
52
|
+
- Description
|
|
53
|
+
- Issue prefix
|
|
54
|
+
- Status
|
|
55
|
+
- Creation date
|
|
56
|
+
|
|
57
|
+
Use this to:
|
|
58
|
+
- Check the current company name
|
|
59
|
+
- See company metadata before making changes
|
|
60
|
+
`)
|
|
61
|
+
.action(async () => {
|
|
62
|
+
const resp = await apiRequest("GET", "/v1/company");
|
|
63
|
+
handleApiError("companies.show", resp);
|
|
64
|
+
agentOutput({
|
|
65
|
+
action: "companies.show",
|
|
66
|
+
result: resp.data,
|
|
67
|
+
next_steps: [
|
|
68
|
+
{ command: "naive companies rename \"New Name\"", description: "Change the company name", when: "The name needs updating" },
|
|
69
|
+
{ command: "naive companies update --description \"...\"", description: "Update the company description" },
|
|
70
|
+
{ command: "naive status", description: "See credits and API status" },
|
|
71
|
+
],
|
|
72
|
+
hints: [
|
|
73
|
+
"Use 'naive companies rename' to change the company name",
|
|
74
|
+
],
|
|
75
|
+
related_commands: ["naive companies rename", "naive companies update", "naive status"],
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
companiesCmd
|
|
79
|
+
.command("rename <name>")
|
|
80
|
+
.description("Rename the current company")
|
|
81
|
+
.addHelpText("after", `
|
|
82
|
+
Examples:
|
|
83
|
+
$ naive companies rename "Acme Corp"
|
|
84
|
+
$ naive companies rename "My Startup Inc"
|
|
85
|
+
|
|
86
|
+
What this does:
|
|
87
|
+
Changes the display name of the company your agent currently
|
|
88
|
+
operates under. The slug and other identifiers remain unchanged.
|
|
89
|
+
|
|
90
|
+
Notes:
|
|
91
|
+
- The name must be a non-empty string
|
|
92
|
+
- This does not change the company slug or issue prefix
|
|
93
|
+
- The change takes effect immediately across the platform
|
|
94
|
+
`)
|
|
95
|
+
.action(async (name) => {
|
|
96
|
+
const resp = await apiRequest("PATCH", "/v1/company", { name });
|
|
97
|
+
handleApiError("companies.rename", resp);
|
|
98
|
+
const data = resp.data;
|
|
99
|
+
agentOutput({
|
|
100
|
+
action: "companies.rename",
|
|
101
|
+
result: data,
|
|
102
|
+
next_steps: [
|
|
103
|
+
{ command: "naive companies show", description: "Verify the updated company details" },
|
|
104
|
+
{ command: "naive status", description: "See full status" },
|
|
105
|
+
],
|
|
106
|
+
hints: [
|
|
107
|
+
`Company renamed to "${data.name}"`,
|
|
108
|
+
],
|
|
109
|
+
related_commands: ["naive companies show", "naive companies update", "naive status"],
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
companiesCmd
|
|
113
|
+
.command("update")
|
|
114
|
+
.description("Update company details (name, description)")
|
|
115
|
+
.option("--name <name>", "New company name")
|
|
116
|
+
.option("--description <description>", "Company description")
|
|
117
|
+
.addHelpText("after", `
|
|
118
|
+
Examples:
|
|
119
|
+
$ naive companies update --name "Acme Corp" --description "Building the future"
|
|
120
|
+
$ naive companies update --description "An AI-native startup"
|
|
121
|
+
|
|
122
|
+
What this does:
|
|
123
|
+
Updates one or more fields on the current company. At least one
|
|
124
|
+
field must be provided.
|
|
125
|
+
`)
|
|
126
|
+
.action(async (opts) => {
|
|
127
|
+
const body = {};
|
|
128
|
+
if (opts.name)
|
|
129
|
+
body.name = opts.name;
|
|
130
|
+
if (opts.description !== undefined)
|
|
131
|
+
body.description = opts.description;
|
|
132
|
+
const resp = await apiRequest("PATCH", "/v1/company", body);
|
|
133
|
+
handleApiError("companies.update", resp);
|
|
134
|
+
agentOutput({
|
|
135
|
+
action: "companies.update",
|
|
136
|
+
result: resp.data,
|
|
137
|
+
next_steps: [
|
|
138
|
+
{ command: "naive companies show", description: "Verify the updated company details" },
|
|
139
|
+
],
|
|
140
|
+
hints: [
|
|
141
|
+
"Company details updated successfully",
|
|
142
|
+
],
|
|
143
|
+
related_commands: ["naive companies show", "naive companies rename", "naive status"],
|
|
144
|
+
});
|
|
145
|
+
});
|
|
41
146
|
companiesCmd
|
|
42
147
|
.command("select <company_id>")
|
|
43
148
|
.description("Switch active company context (issues a new API key for that company)")
|
|
@@ -1 +1 @@
|
|
|
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,E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