@usenaive-sdk/cli 0.3.1 → 0.4.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.
- 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/billing-client.d.ts +2 -0
- package/dist/commands/billing-client.js +271 -0
- package/dist/commands/billing-client.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/crm-app.d.ts +2 -0
- package/dist/commands/crm-app.js +306 -0
- package/dist/commands/crm-app.js.map +1 -0
- package/dist/commands/crm.d.ts +2 -0
- package/dist/commands/crm.js +319 -0
- package/dist/commands/crm.js.map +1 -0
- 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/integrations.d.ts +2 -0
- package/dist/commands/integrations.js +199 -0
- package/dist/commands/integrations.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 +6 -2
|
@@ -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,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,iBAAiB,MAAM,CAAC,UAAU,UAAU,EAAE;QAClF,MAAM;KACP,CAAC,CAAC;IACH,cAAc,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAEhC,MAAM,IAAI,GAAG,IAAI,CAAC,IAA0C,CAAC;IAE7D,WAAW,CAAC;QACV,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE;YACV,EAAE,OAAO,EAAE,oBAAoB,IAAI,CAAC,MAAM,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,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,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,OAAO,CAAC,WAAW,CAAC;KACjD,WAAW,CAAC,oDAAoD,CAAC;KACjE,WAAW,CAAC,OAAO,EAAE;;;;;;;;;;;;;;;CAevB,CAAC;KACC,MAAM,CAAC,KAAK,IAAI,EAAE;IACjB,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,IAAy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AwB,IAAI,CAAC,YAAY,uBAAuB;YAChE,sDAAsD;SACvD;QACD,gBAAgB,EAAE,CAAC,cAAc,EAAE,gBAAgB,EAAE,cAAc,CAAC;KACrE,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import { apiRequest, handleApiError } from "../client.js";
|
|
3
|
+
import { agentOutput } from "../output.js";
|
|
4
|
+
export const crmAppCmd = new Command("crm-app")
|
|
5
|
+
.description("CRM template app — agency pipeline (deals, deliverables, retainers). Distinct from 'naive crm' (vertical-agnostic primitive).")
|
|
6
|
+
.addHelpText("after", `
|
|
7
|
+
Subcommands:
|
|
8
|
+
naive crm-app deals ... Pipeline deals (lead → discovery → proposal → won → active → churned)
|
|
9
|
+
naive crm-app deliverables ... Client deliverables (with optional kanban task mirroring)
|
|
10
|
+
naive crm-app retainers ... Monthly retainers (linked to ext_subscriptions)
|
|
11
|
+
naive crm-app clients Won/active deals grouped by contact + billing-profile MRR/LTV
|
|
12
|
+
naive crm-app summary Aggregate pipeline + MRR + overdue counts
|
|
13
|
+
|
|
14
|
+
Examples:
|
|
15
|
+
$ naive crm-app deals create --title "Acme Q3 implementation" --crm-contact <id>
|
|
16
|
+
$ naive crm-app deals advance <deal-id> --stage proposal
|
|
17
|
+
$ naive crm-app deliverables create --deal <id> --title "Discovery doc" --create-task --assignee delivery-lead
|
|
18
|
+
`);
|
|
19
|
+
// ── Deals ─────────────────────────────────────────────────────────────────
|
|
20
|
+
const dealsCmd = crmAppCmd.command("deals").description("Pipeline deal management");
|
|
21
|
+
dealsCmd
|
|
22
|
+
.command("list")
|
|
23
|
+
.description("List deals")
|
|
24
|
+
.option("--stage <stage>", "Filter by stage (lead|discovery|proposal|won|active|churned)")
|
|
25
|
+
.option("--crm-contact <id>", "Filter by CRM contact")
|
|
26
|
+
.option("--owner <id>", "Filter by owner agent")
|
|
27
|
+
.option("--limit <n>", "Max results (default 50)", "50")
|
|
28
|
+
.option("--offset <n>", "Pagination offset", "0")
|
|
29
|
+
.action(async (opts) => {
|
|
30
|
+
const params = new URLSearchParams({ limit: opts.limit, offset: opts.offset });
|
|
31
|
+
if (opts.stage)
|
|
32
|
+
params.set("stage", opts.stage);
|
|
33
|
+
if (opts.crmContact)
|
|
34
|
+
params.set("crm_contact_id", opts.crmContact);
|
|
35
|
+
if (opts.owner)
|
|
36
|
+
params.set("owner_agent_id", opts.owner);
|
|
37
|
+
const resp = await apiRequest("GET", `/v1/crm-app/deals?${params}`);
|
|
38
|
+
handleApiError("crm-app.deals.list", resp);
|
|
39
|
+
const data = resp.data;
|
|
40
|
+
agentOutput({
|
|
41
|
+
action: "crm-app.deals.list",
|
|
42
|
+
result: resp.data,
|
|
43
|
+
hints: [`${data.count} deal${data.count === 1 ? "" : "s"} returned`],
|
|
44
|
+
next_steps: data.deals.length > 0
|
|
45
|
+
? [{ command: `naive crm-app deals advance ${data.deals[0].id} --stage discovery`, description: "Advance the first deal" }]
|
|
46
|
+
: [{ command: "naive crm-app deals create --title <title> --crm-contact <id>", description: "Create your first deal" }],
|
|
47
|
+
related_commands: ["naive crm-app deals create", "naive crm-app deals advance", "naive crm-app summary"],
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
dealsCmd
|
|
51
|
+
.command("create")
|
|
52
|
+
.description("Create a deal")
|
|
53
|
+
.requiredOption("--title <title>", "Deal name")
|
|
54
|
+
.requiredOption("--crm-contact <id>", "CRM contact UUID")
|
|
55
|
+
.option("--crm-company <id>", "CRM company UUID")
|
|
56
|
+
.option("--template-app-instance <id>", "CRM template app instance UUID")
|
|
57
|
+
.option("--stage <stage>", "Initial stage (default lead)")
|
|
58
|
+
.option("--value-cents <n>", "Deal value in cents")
|
|
59
|
+
.option("--currency <iso>", "ISO currency code")
|
|
60
|
+
.option("--owner <id>", "Owning agent UUID")
|
|
61
|
+
.option("--source <text>", "Where the deal came from")
|
|
62
|
+
.option("--notes <text>", "Free-form notes")
|
|
63
|
+
.action(async (opts) => {
|
|
64
|
+
const resp = await apiRequest("POST", "/v1/crm-app/deals", {
|
|
65
|
+
title: opts.title,
|
|
66
|
+
crm_contact_id: opts.crmContact,
|
|
67
|
+
crm_company_id: opts.crmCompany,
|
|
68
|
+
template_app_instance_id: opts.templateAppInstance,
|
|
69
|
+
stage: opts.stage,
|
|
70
|
+
value_cents: opts.valueCents ? parseInt(opts.valueCents, 10) : undefined,
|
|
71
|
+
currency: opts.currency,
|
|
72
|
+
owner_agent_id: opts.owner,
|
|
73
|
+
source: opts.source,
|
|
74
|
+
notes: opts.notes,
|
|
75
|
+
});
|
|
76
|
+
handleApiError("crm-app.deals.create", resp);
|
|
77
|
+
const data = resp.data;
|
|
78
|
+
agentOutput({
|
|
79
|
+
action: "crm-app.deals.create",
|
|
80
|
+
result: resp.data,
|
|
81
|
+
next_steps: [
|
|
82
|
+
{ command: `naive crm-app deliverables create --deal ${data.deal.id} --title <title>`, description: "Add the first deliverable" },
|
|
83
|
+
{ command: `naive crm-app deals advance ${data.deal.id} --stage discovery`, description: "Advance to discovery once a meeting is booked" },
|
|
84
|
+
],
|
|
85
|
+
related_commands: ["naive crm-app deals advance", "naive crm-app deliverables create"],
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
dealsCmd
|
|
89
|
+
.command("get <deal_id>")
|
|
90
|
+
.description("Get a deal")
|
|
91
|
+
.action(async (dealId) => {
|
|
92
|
+
const resp = await apiRequest("GET", `/v1/crm-app/deals/${dealId}`);
|
|
93
|
+
handleApiError("crm-app.deals.get", resp);
|
|
94
|
+
agentOutput({
|
|
95
|
+
action: "crm-app.deals.get",
|
|
96
|
+
result: resp.data,
|
|
97
|
+
related_commands: ["naive crm-app deals advance", "naive crm-app deliverables list"],
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
dealsCmd
|
|
101
|
+
.command("advance <deal_id>")
|
|
102
|
+
.description("Advance a deal to a new stage")
|
|
103
|
+
.requiredOption("--stage <stage>", "New stage (lead|discovery|proposal|won|active|churned)")
|
|
104
|
+
.option("--notes <text>", "Optional notes about the transition")
|
|
105
|
+
.action(async (dealId, opts) => {
|
|
106
|
+
const resp = await apiRequest("POST", `/v1/crm-app/deals/${dealId}/advance`, {
|
|
107
|
+
stage: opts.stage,
|
|
108
|
+
notes: opts.notes,
|
|
109
|
+
});
|
|
110
|
+
handleApiError("crm-app.deals.advance", resp);
|
|
111
|
+
agentOutput({
|
|
112
|
+
action: "crm-app.deals.advance",
|
|
113
|
+
result: resp.data,
|
|
114
|
+
next_steps: [{ command: `naive crm contacts history <contact_id>`, description: "Verify the transition was logged as an interaction" }],
|
|
115
|
+
related_commands: ["naive crm-app deals list", "naive crm-app summary"],
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
dealsCmd
|
|
119
|
+
.command("update <deal_id>")
|
|
120
|
+
.description("Update deal fields")
|
|
121
|
+
.option("--title <title>")
|
|
122
|
+
.option("--value-cents <n>")
|
|
123
|
+
.option("--notes <text>")
|
|
124
|
+
.action(async (dealId, opts) => {
|
|
125
|
+
const body = {};
|
|
126
|
+
if (opts.title !== undefined)
|
|
127
|
+
body.title = opts.title;
|
|
128
|
+
if (opts.valueCents !== undefined)
|
|
129
|
+
body.value_cents = parseInt(opts.valueCents, 10);
|
|
130
|
+
if (opts.notes !== undefined)
|
|
131
|
+
body.notes = opts.notes;
|
|
132
|
+
const resp = await apiRequest("PATCH", `/v1/crm-app/deals/${dealId}`, body);
|
|
133
|
+
handleApiError("crm-app.deals.update", resp);
|
|
134
|
+
agentOutput({ action: "crm-app.deals.update", result: resp.data, related_commands: ["naive crm-app deals get"] });
|
|
135
|
+
});
|
|
136
|
+
dealsCmd
|
|
137
|
+
.command("delete <deal_id>")
|
|
138
|
+
.description("Delete a deal (cascade)")
|
|
139
|
+
.action(async (dealId) => {
|
|
140
|
+
const resp = await apiRequest("DELETE", `/v1/crm-app/deals/${dealId}`);
|
|
141
|
+
handleApiError("crm-app.deals.delete", resp);
|
|
142
|
+
agentOutput({ action: "crm-app.deals.delete", result: resp.data, related_commands: ["naive crm-app deals list"] });
|
|
143
|
+
});
|
|
144
|
+
// ── Deliverables ─────────────────────────────────────────────────────────
|
|
145
|
+
const deliverablesCmd = crmAppCmd.command("deliverables").description("Client deliverable management");
|
|
146
|
+
deliverablesCmd
|
|
147
|
+
.command("list")
|
|
148
|
+
.description("List deliverables")
|
|
149
|
+
.option("--deal <id>")
|
|
150
|
+
.option("--status <status>", "pending|in_progress|review|done|blocked")
|
|
151
|
+
.option("--owner <id>")
|
|
152
|
+
.option("--limit <n>", "Max results", "50")
|
|
153
|
+
.option("--offset <n>", "Pagination offset", "0")
|
|
154
|
+
.action(async (opts) => {
|
|
155
|
+
const params = new URLSearchParams({ limit: opts.limit, offset: opts.offset });
|
|
156
|
+
if (opts.deal)
|
|
157
|
+
params.set("deal_id", opts.deal);
|
|
158
|
+
if (opts.status)
|
|
159
|
+
params.set("status", opts.status);
|
|
160
|
+
if (opts.owner)
|
|
161
|
+
params.set("owner_agent_id", opts.owner);
|
|
162
|
+
const resp = await apiRequest("GET", `/v1/crm-app/deliverables?${params}`);
|
|
163
|
+
handleApiError("crm-app.deliverables.list", resp);
|
|
164
|
+
const data = resp.data;
|
|
165
|
+
agentOutput({
|
|
166
|
+
action: "crm-app.deliverables.list",
|
|
167
|
+
result: resp.data,
|
|
168
|
+
hints: [`${data.count} deliverable${data.count === 1 ? "" : "s"} returned`],
|
|
169
|
+
related_commands: ["naive crm-app deliverables create", "naive crm-app deliverables update"],
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
deliverablesCmd
|
|
173
|
+
.command("create")
|
|
174
|
+
.description("Create a deliverable")
|
|
175
|
+
.requiredOption("--deal <id>", "Deal UUID")
|
|
176
|
+
.requiredOption("--title <title>", "Deliverable title")
|
|
177
|
+
.option("--description <text>")
|
|
178
|
+
.option("--status <status>", "pending|in_progress|review|done|blocked")
|
|
179
|
+
.option("--due-date <iso>")
|
|
180
|
+
.option("--owner <id>", "Owner agent UUID")
|
|
181
|
+
.option("--create-task", "Mirror as a kanban task (status will auto-sync)")
|
|
182
|
+
.option("--assignee <profile>", "Hermes profile name (when --create-task)")
|
|
183
|
+
.option("--priority <level>", "low|normal|high|critical (when --create-task)")
|
|
184
|
+
.action(async (opts) => {
|
|
185
|
+
const resp = await apiRequest("POST", "/v1/crm-app/deliverables", {
|
|
186
|
+
deal_id: opts.deal,
|
|
187
|
+
title: opts.title,
|
|
188
|
+
description: opts.description,
|
|
189
|
+
status: opts.status,
|
|
190
|
+
due_date: opts.dueDate,
|
|
191
|
+
owner_agent_id: opts.owner,
|
|
192
|
+
create_task: opts.createTask === true,
|
|
193
|
+
assignee: opts.assignee,
|
|
194
|
+
priority: opts.priority,
|
|
195
|
+
});
|
|
196
|
+
handleApiError("crm-app.deliverables.create", resp);
|
|
197
|
+
agentOutput({
|
|
198
|
+
action: "crm-app.deliverables.create",
|
|
199
|
+
result: resp.data,
|
|
200
|
+
next_steps: [{ command: "naive tasks", description: "View the mirrored task on the kanban board" }],
|
|
201
|
+
related_commands: ["naive crm-app deliverables update", "naive tasks"],
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
deliverablesCmd
|
|
205
|
+
.command("update <deliverable_id>")
|
|
206
|
+
.description("Update a deliverable")
|
|
207
|
+
.option("--title <title>")
|
|
208
|
+
.option("--status <status>")
|
|
209
|
+
.option("--due-date <iso>")
|
|
210
|
+
.option("--pct-complete <n>", "0-100")
|
|
211
|
+
.option("--blockers <text>")
|
|
212
|
+
.action(async (deliverableId, opts) => {
|
|
213
|
+
const body = {};
|
|
214
|
+
if (opts.title !== undefined)
|
|
215
|
+
body.title = opts.title;
|
|
216
|
+
if (opts.status !== undefined)
|
|
217
|
+
body.status = opts.status;
|
|
218
|
+
if (opts.dueDate !== undefined)
|
|
219
|
+
body.due_date = opts.dueDate;
|
|
220
|
+
if (opts.pctComplete !== undefined)
|
|
221
|
+
body.pct_complete = parseInt(opts.pctComplete, 10);
|
|
222
|
+
if (opts.blockers !== undefined)
|
|
223
|
+
body.blockers = opts.blockers;
|
|
224
|
+
const resp = await apiRequest("PATCH", `/v1/crm-app/deliverables/${deliverableId}`, body);
|
|
225
|
+
handleApiError("crm-app.deliverables.update", resp);
|
|
226
|
+
agentOutput({ action: "crm-app.deliverables.update", result: resp.data, related_commands: ["naive crm-app deliverables list"] });
|
|
227
|
+
});
|
|
228
|
+
deliverablesCmd
|
|
229
|
+
.command("delete <deliverable_id>")
|
|
230
|
+
.description("Delete a deliverable")
|
|
231
|
+
.action(async (deliverableId) => {
|
|
232
|
+
const resp = await apiRequest("DELETE", `/v1/crm-app/deliverables/${deliverableId}`);
|
|
233
|
+
handleApiError("crm-app.deliverables.delete", resp);
|
|
234
|
+
agentOutput({ action: "crm-app.deliverables.delete", result: resp.data, related_commands: ["naive crm-app deliverables list"] });
|
|
235
|
+
});
|
|
236
|
+
// ── Retainers ────────────────────────────────────────────────────────────
|
|
237
|
+
const retainersCmd = crmAppCmd.command("retainers").description("Retainer management");
|
|
238
|
+
retainersCmd
|
|
239
|
+
.command("list")
|
|
240
|
+
.description("List retainers")
|
|
241
|
+
.option("--deal <id>")
|
|
242
|
+
.option("--status <status>", "active|paused|ended")
|
|
243
|
+
.option("--limit <n>", "Max results", "50")
|
|
244
|
+
.option("--offset <n>", "Pagination offset", "0")
|
|
245
|
+
.action(async (opts) => {
|
|
246
|
+
const params = new URLSearchParams({ limit: opts.limit, offset: opts.offset });
|
|
247
|
+
if (opts.deal)
|
|
248
|
+
params.set("deal_id", opts.deal);
|
|
249
|
+
if (opts.status)
|
|
250
|
+
params.set("status", opts.status);
|
|
251
|
+
const resp = await apiRequest("GET", `/v1/crm-app/retainers?${params}`);
|
|
252
|
+
handleApiError("crm-app.retainers.list", resp);
|
|
253
|
+
agentOutput({ action: "crm-app.retainers.list", result: resp.data, related_commands: ["naive crm-app retainers create"] });
|
|
254
|
+
});
|
|
255
|
+
retainersCmd
|
|
256
|
+
.command("create")
|
|
257
|
+
.description("Create a retainer")
|
|
258
|
+
.requiredOption("--deal <id>", "Deal UUID")
|
|
259
|
+
.requiredOption("--crm-contact <id>", "CRM contact UUID")
|
|
260
|
+
.option("--ext-subscription <id>", "Linked ext_subscription UUID")
|
|
261
|
+
.option("--mrr-cents <n>", "MRR in cents", "0")
|
|
262
|
+
.option("--currency <iso>")
|
|
263
|
+
.action(async (opts) => {
|
|
264
|
+
const resp = await apiRequest("POST", "/v1/crm-app/retainers", {
|
|
265
|
+
deal_id: opts.deal,
|
|
266
|
+
crm_contact_id: opts.crmContact,
|
|
267
|
+
ext_subscription_id: opts.extSubscription,
|
|
268
|
+
mrr_cents: parseInt(opts.mrrCents, 10),
|
|
269
|
+
currency: opts.currency,
|
|
270
|
+
});
|
|
271
|
+
handleApiError("crm-app.retainers.create", resp);
|
|
272
|
+
agentOutput({ action: "crm-app.retainers.create", result: resp.data, related_commands: ["naive crm-app retainers list"] });
|
|
273
|
+
});
|
|
274
|
+
// ── Clients + summary ───────────────────────────────────────────────────
|
|
275
|
+
crmAppCmd
|
|
276
|
+
.command("clients")
|
|
277
|
+
.description("List clients (won/active deals grouped by contact, with billing-profile join)")
|
|
278
|
+
.option("--limit <n>", "Max results", "50")
|
|
279
|
+
.option("--offset <n>", "Pagination offset", "0")
|
|
280
|
+
.action(async (opts) => {
|
|
281
|
+
const params = new URLSearchParams({ limit: opts.limit, offset: opts.offset });
|
|
282
|
+
const resp = await apiRequest("GET", `/v1/crm-app/clients?${params}`);
|
|
283
|
+
handleApiError("crm-app.clients", resp);
|
|
284
|
+
agentOutput({
|
|
285
|
+
action: "crm-app.clients",
|
|
286
|
+
result: resp.data,
|
|
287
|
+
related_commands: ["naive crm-app deliverables list", "naive billing-client subscriptions list"],
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
crmAppCmd
|
|
291
|
+
.command("summary")
|
|
292
|
+
.description("Aggregate pipeline + MRR + overdue counts")
|
|
293
|
+
.option("--template-app-instance <id>")
|
|
294
|
+
.action(async (opts) => {
|
|
295
|
+
const params = new URLSearchParams();
|
|
296
|
+
if (opts.templateAppInstance)
|
|
297
|
+
params.set("template_app_instance_id", opts.templateAppInstance);
|
|
298
|
+
const resp = await apiRequest("GET", `/v1/crm-app/summary?${params}`);
|
|
299
|
+
handleApiError("crm-app.summary", resp);
|
|
300
|
+
agentOutput({
|
|
301
|
+
action: "crm-app.summary",
|
|
302
|
+
result: resp.data,
|
|
303
|
+
related_commands: ["naive crm-app deals list", "naive billing-client mrr"],
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
//# sourceMappingURL=crm-app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm-app.js","sourceRoot":"","sources":["../../src/commands/crm-app.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,SAAS,GAAG,IAAI,OAAO,CAAC,SAAS,CAAC;KAC5C,WAAW,CAAC,+HAA+H,CAAC;KAC5I,WAAW,CAAC,OAAO,EAAE;;;;;;;;;;;;CAYvB,CAAC,CAAC;AAEH,6EAA6E;AAE7E,MAAM,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC;AAEpF,QAAQ;KACL,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,YAAY,CAAC;KACzB,MAAM,CAAC,iBAAiB,EAAE,8DAA8D,CAAC;KACzF,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC;KACrD,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAAC;KAC/C,MAAM,CAAC,aAAa,EAAE,0BAA0B,EAAE,IAAI,CAAC;KACvD,MAAM,CAAC,cAAc,EAAE,mB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