@everyai/cli 0.8.0 → 0.8.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 +6 -2
- package/dist/commands/aliases.js +39 -13
- package/dist/commands/docs.js +8 -1
- package/dist/index.js +51 -29
- package/dist/lib/output.js +8 -0
- package/dist/lib/policy.js +13 -3
- package/package.json +1 -1
- package/skills/use-every/SKILL.md +19 -11
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ One-shot invoice example with inline args:
|
|
|
18
18
|
```bash
|
|
19
19
|
every invoice list --status overdue --json
|
|
20
20
|
every tool call create_invoice \
|
|
21
|
-
--arg command='{"operation_id":"<uuid>","party":{"kind":"company","id":"
|
|
21
|
+
--arg command='{"operation_id":"<uuid>","party":{"kind":"company","id":"<company_id>"},"line_items":[{"description":"Strategy work","quantity":1,"unit_price":1500}]}' \
|
|
22
22
|
--yes \
|
|
23
23
|
--json
|
|
24
24
|
```
|
|
@@ -67,16 +67,20 @@ every tool call <name> [--args file.json|-] [--arg k=v ...] [--yes] [--allow-des
|
|
|
67
67
|
|
|
68
68
|
# Curated aliases (same gates, nicer flags)
|
|
69
69
|
every invoice list [--status <s>] [--search <q>] [--limit <n>]
|
|
70
|
+
every invoice create (--company <name> | --person <name> | --company-id <id> | --person-id <id>) --amount <n>
|
|
71
|
+
# write: needs --yes
|
|
70
72
|
every invoice send <invoice_id> # destructive: needs --yes --allow-destructive
|
|
71
73
|
every deal list [--stage <s>] [--search <q>]
|
|
72
74
|
every deal move <deal_id> <stage> # write: needs --yes
|
|
73
|
-
every
|
|
75
|
+
every person list [--search <q>] # People
|
|
74
76
|
|
|
75
77
|
# Teach your coding agent to use all of this well
|
|
76
78
|
every skills install claude # → .claude/skills/use-every/
|
|
77
79
|
every skills install codex # → .agents/skills/use-every/
|
|
78
80
|
```
|
|
79
81
|
|
|
82
|
+
Deprecated aliases still work and print a one-line note to stderr: `every contact list` (use `every person list`) and `every invoice create --client <name>` / `--client-id <id>` (use `--company`, `--company-id` or `--person-id`). They are hidden from help and `every docs`.
|
|
83
|
+
|
|
80
84
|
## Signing up
|
|
81
85
|
|
|
82
86
|
`every signup` creates an Every account, or signs an existing user in, through a single browser authorization. It never opens a separate sign-up page and never waits for Enter, so a coding agent can run it on the user's behalf without a TTY:
|
package/dist/commands/aliases.js
CHANGED
|
@@ -190,20 +190,24 @@ export function parseClientCandidates(result) {
|
|
|
190
190
|
...parseClientCandidatesFromText(textFromContent(result.content)),
|
|
191
191
|
]);
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
const PARTY_ID_FLAG = {
|
|
194
|
+
company: '--company-id',
|
|
195
|
+
person: '--person-id',
|
|
196
|
+
};
|
|
197
|
+
function partyCandidatesMessage(kind, query, candidates) {
|
|
194
198
|
return [
|
|
195
|
-
`Multiple ${
|
|
199
|
+
`Multiple ${kind === 'person' ? 'People' : 'Companies'} matching "${query}".`,
|
|
196
200
|
...candidates.map((candidate) => `${candidate.client_id} ${candidate.name}`),
|
|
197
|
-
|
|
201
|
+
`Re-run with ${PARTY_ID_FLAG[kind]} <id>`,
|
|
198
202
|
].join('\n');
|
|
199
203
|
}
|
|
200
|
-
// --client is the deprecated alias for --company (the
|
|
201
|
-
//
|
|
204
|
+
// --client is the deprecated alias for --company (the CLI's older word for the
|
|
205
|
+
// invoice recipient); --person resolves via the People half of the same schema.
|
|
202
206
|
function selectParty(opts) {
|
|
203
207
|
const companyName = nonEmpty(opts.company) ?? nonEmpty(opts.client);
|
|
204
208
|
const personName = nonEmpty(opts.person);
|
|
205
209
|
if (companyName && personName) {
|
|
206
|
-
throw new CliError('Use only one of --company
|
|
210
|
+
throw new CliError('Use only one of --company or --person to resolve the invoice recipient', ExitCode.USAGE, 'usage');
|
|
207
211
|
}
|
|
208
212
|
if (personName)
|
|
209
213
|
return { kind: 'person', name: personName };
|
|
@@ -211,14 +215,37 @@ function selectParty(opts) {
|
|
|
211
215
|
return { kind: 'company', name: companyName };
|
|
212
216
|
return undefined;
|
|
213
217
|
}
|
|
214
|
-
|
|
218
|
+
function selectPartyId(opts) {
|
|
219
|
+
const given = [];
|
|
220
|
+
const companyId = nonEmpty(opts.companyId);
|
|
221
|
+
const personId = nonEmpty(opts.personId);
|
|
215
222
|
const clientId = nonEmpty(opts.clientId);
|
|
223
|
+
if (companyId)
|
|
224
|
+
given.push({ kind: 'company', id: companyId, flag: '--company-id' });
|
|
225
|
+
if (personId)
|
|
226
|
+
given.push({ kind: 'person', id: personId, flag: '--person-id' });
|
|
227
|
+
if (clientId)
|
|
228
|
+
given.push({ kind: undefined, id: clientId, flag: '--client-id' });
|
|
229
|
+
if (given.length > 1) {
|
|
230
|
+
throw new CliError(`Use only one of --company-id or --person-id (got ${given.map((entry) => entry.flag).join(' and ')})`, ExitCode.USAGE, 'usage');
|
|
231
|
+
}
|
|
232
|
+
return given[0];
|
|
233
|
+
}
|
|
234
|
+
async function resolveClient(opts) {
|
|
235
|
+
const partyId = selectPartyId(opts);
|
|
216
236
|
const selector = selectParty(opts);
|
|
217
|
-
if (
|
|
218
|
-
|
|
237
|
+
if (partyId) {
|
|
238
|
+
if (partyId.kind && selector && selector.kind !== partyId.kind) {
|
|
239
|
+
throw new CliError(`${partyId.flag} names a ${partyId.kind}; use ${PARTY_ID_FLAG[selector.kind]} for a ${selector.kind}`, ExitCode.USAGE, 'usage');
|
|
240
|
+
}
|
|
241
|
+
return {
|
|
242
|
+
client_id: partyId.id,
|
|
243
|
+
kind: partyId.kind ?? selector?.kind ?? 'company',
|
|
244
|
+
name: selector?.name ?? null,
|
|
245
|
+
};
|
|
219
246
|
}
|
|
220
247
|
if (!selector) {
|
|
221
|
-
throw new CliError('
|
|
248
|
+
throw new CliError('One of --company, --person, --company-id, or --person-id is required', ExitCode.USAGE, 'usage');
|
|
222
249
|
}
|
|
223
250
|
const tool = selector.kind === 'person' ? 'list_people' : 'list_companies';
|
|
224
251
|
const label = selector.kind;
|
|
@@ -232,7 +259,7 @@ async function resolveClient(opts) {
|
|
|
232
259
|
if (candidates.length === 0) {
|
|
233
260
|
throw new CliError(`No ${label} matching "${selector.name}". Run: every tool call ${tool} --json`, ExitCode.NOT_FOUND, 'not_found');
|
|
234
261
|
}
|
|
235
|
-
throw new CliError(partyCandidatesMessage(
|
|
262
|
+
throw new CliError(partyCandidatesMessage(selector.kind, selector.name, candidates), ExitCode.NOT_FOUND, 'not_found', { candidates });
|
|
236
263
|
}
|
|
237
264
|
export async function invoiceListCommand(opts = {}) {
|
|
238
265
|
const args = {};
|
|
@@ -287,11 +314,10 @@ export async function dealMoveCommand(dealId, stage, opts = {}) {
|
|
|
287
314
|
assertDealStage(stage);
|
|
288
315
|
await executeToolCall('move_deal_stage', opts, async () => ({ deal_id: dealId, stage }));
|
|
289
316
|
}
|
|
290
|
-
export async function
|
|
317
|
+
export async function personListCommand(opts = {}) {
|
|
291
318
|
const args = {};
|
|
292
319
|
if (opts.search !== undefined)
|
|
293
320
|
args[NETWORK_SEARCH_QUERY_PARAM] = opts.search;
|
|
294
321
|
addLimit(args, opts.limit);
|
|
295
|
-
// list_contacts is retired; list_people is the live People/Companies replacement.
|
|
296
322
|
await executeToolCall('list_people', opts, async () => args);
|
|
297
323
|
}
|
package/dist/commands/docs.js
CHANGED
|
@@ -18,9 +18,16 @@ function commandLine(command, parents) {
|
|
|
18
18
|
const parts = [names.join(' '), ...argumentUsage(command), ...optionFlags(command)];
|
|
19
19
|
return parts.join(' ').replace(/\s+/g, ' ').trim();
|
|
20
20
|
}
|
|
21
|
+
// Deprecated aliases (e.g. `every contact`) are registered hidden; like hidden
|
|
22
|
+
// options, they stay out of the offline docs so agents learn only current names.
|
|
23
|
+
function isHidden(command) {
|
|
24
|
+
return command._hidden === true;
|
|
25
|
+
}
|
|
21
26
|
function walkCommands(command, parents = []) {
|
|
22
27
|
const line = commandLine(command, parents);
|
|
23
|
-
const children = command.commands
|
|
28
|
+
const children = command.commands
|
|
29
|
+
.filter((child) => !isHidden(child))
|
|
30
|
+
.flatMap((child) => walkCommands(child, [...parents, command.name()]));
|
|
24
31
|
return [line, ...children];
|
|
25
32
|
}
|
|
26
33
|
export function commandTree(program) {
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { readFileSync } from 'node:fs';
|
|
3
|
-
import { Command, CommanderError } from 'commander';
|
|
3
|
+
import { Command, CommanderError, Option } from 'commander';
|
|
4
4
|
import { pingCommand } from './commands/ping.js';
|
|
5
5
|
import { docsCommand } from './commands/docs.js';
|
|
6
6
|
import { authStatusCommand, loginCommand, logoutCommand, orgCommand, orgSwitchCommand, whoamiCommand, } from './commands/auth.js';
|
|
7
7
|
import { policyExplainCommand } from './commands/policy.js';
|
|
8
8
|
import { signupCommand, signupCompleteCommand, signupStatusCommand, } from './commands/signup.js';
|
|
9
9
|
import { toolCallCommand, toolsDescribeCommand, toolsListCommand, } from './commands/tools.js';
|
|
10
|
-
import {
|
|
10
|
+
import { dealListCommand, dealMoveCommand, invoiceCreateCommand, invoiceListCommand, invoiceSendCommand, personListCommand, } from './commands/aliases.js';
|
|
11
11
|
import { skillsInstallCommand, skillsListCommand } from './commands/skills.js';
|
|
12
12
|
import { CliError } from './lib/errors.js';
|
|
13
|
-
import { emit, emitError } from './lib/output.js';
|
|
13
|
+
import { deprecationNote, emit, emitError } from './lib/output.js';
|
|
14
14
|
import { ExitCode } from './lib/exit-codes.js';
|
|
15
15
|
import { runDefaultFirstRunMenu } from './lib/first-run.js';
|
|
16
16
|
const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
|
|
@@ -223,15 +223,23 @@ const invoiceCommand = withToolExecutionOptions(withGlobalOptions(program
|
|
|
223
223
|
].join('\n'))));
|
|
224
224
|
withGlobalOptions(withToolExecutionOptions(invoiceCommand
|
|
225
225
|
.command('create')
|
|
226
|
-
.description('Create a simple draft invoice')
|
|
227
|
-
.option('--
|
|
228
|
-
.option('--
|
|
229
|
-
.option('--
|
|
230
|
-
.option('--
|
|
226
|
+
.description('Create a simple draft invoice for a Company or a Person')
|
|
227
|
+
.option('--company <name>', 'Company name to resolve via list_companies')
|
|
228
|
+
.option('--person <name>', 'Person name to resolve via list_people')
|
|
229
|
+
.option('--company-id <id>', 'Company id; skips name resolution')
|
|
230
|
+
.option('--person-id <id>', 'Person id; skips name resolution')
|
|
231
|
+
.addOption(new Option('--client <name>', 'deprecated alias for --company').hideHelp())
|
|
232
|
+
.addOption(new Option('--client-id <id>', 'deprecated: use --company-id or --person-id').hideHelp())
|
|
231
233
|
.requiredOption('--amount <n>', 'unit price for the single line item')
|
|
232
234
|
.option('--description <text>', 'line item description')
|
|
233
235
|
.option('--quantity <q>', 'line item quantity'))).action(async (_options, command) => {
|
|
234
236
|
const opts = command.optsWithGlobals();
|
|
237
|
+
if (opts.client !== undefined) {
|
|
238
|
+
deprecationNote('`--client` is deprecated; use `--company` (or `--person` for a Person).');
|
|
239
|
+
}
|
|
240
|
+
if (opts.clientId !== undefined) {
|
|
241
|
+
deprecationNote('`--client-id` is deprecated; use `--company-id` or `--person-id`.');
|
|
242
|
+
}
|
|
235
243
|
await invoiceCreateCommand({
|
|
236
244
|
json: opts.json,
|
|
237
245
|
staging: opts.staging,
|
|
@@ -243,6 +251,8 @@ withGlobalOptions(withToolExecutionOptions(invoiceCommand
|
|
|
243
251
|
client: opts.client,
|
|
244
252
|
company: opts.company,
|
|
245
253
|
person: opts.person,
|
|
254
|
+
companyId: opts.companyId,
|
|
255
|
+
personId: opts.personId,
|
|
246
256
|
clientId: opts.clientId,
|
|
247
257
|
amount: opts.amount,
|
|
248
258
|
description: opts.description,
|
|
@@ -324,28 +334,40 @@ withGlobalOptions(withToolExecutionOptions(dealCommand
|
|
|
324
334
|
timeout: opts.timeout,
|
|
325
335
|
});
|
|
326
336
|
});
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
337
|
+
/**
|
|
338
|
+
* Register `list` under `every person` and under the hidden, deprecated
|
|
339
|
+
* `every contact` alias ("contact" is retired vocabulary: the product's people
|
|
340
|
+
* model is People and Companies).
|
|
341
|
+
*/
|
|
342
|
+
function addPersonListCommand(parent, deprecation) {
|
|
343
|
+
withGlobalOptions(withToolExecutionOptions(parent
|
|
344
|
+
.command('list')
|
|
345
|
+
.description('List People')
|
|
346
|
+
.option('--search <q>', 'search People by name, email, phone, or employer')
|
|
347
|
+
.option('--limit <n>', 'maximum number of People to return'))).action(async (_options, command) => {
|
|
348
|
+
if (deprecation)
|
|
349
|
+
deprecationNote(deprecation);
|
|
350
|
+
const opts = command.optsWithGlobals();
|
|
351
|
+
await personListCommand({
|
|
352
|
+
json: opts.json,
|
|
353
|
+
staging: opts.staging,
|
|
354
|
+
noCache: opts.noCache,
|
|
355
|
+
yes: opts.yes,
|
|
356
|
+
allowDestructive: opts.allowDestructive,
|
|
357
|
+
readOnly: opts.readOnly,
|
|
358
|
+
timeout: opts.timeout,
|
|
359
|
+
search: opts.search,
|
|
360
|
+
limit: opts.limit,
|
|
361
|
+
});
|
|
347
362
|
});
|
|
348
|
-
}
|
|
363
|
+
}
|
|
364
|
+
addPersonListCommand(withToolExecutionOptions(withGlobalOptions(program
|
|
365
|
+
.command('person')
|
|
366
|
+
.description('Work with People')
|
|
367
|
+
.addHelpText('after', TOOL_CALL_HELP))));
|
|
368
|
+
addPersonListCommand(withToolExecutionOptions(withGlobalOptions(program
|
|
369
|
+
.command('contact', { hidden: true })
|
|
370
|
+
.description('Deprecated alias for every person'))), '`every contact` is deprecated; use `every person`.');
|
|
349
371
|
const policyCommand = withGlobalOptions(program.command('policy').description('Explain local tool safety policy'));
|
|
350
372
|
withGlobalOptions(policyCommand
|
|
351
373
|
.command('explain')
|
package/dist/lib/output.js
CHANGED
|
@@ -69,3 +69,11 @@ export function emitError(message, code, opts = {}, details = {}) {
|
|
|
69
69
|
process.stderr.write(rendered + '\n');
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* One-line deprecation note for a renamed command or flag. It goes to stderr in
|
|
74
|
+
* every mode, like the one-time skills tip, so `--json` stdout stays a single
|
|
75
|
+
* envelope while an agent reading stderr still learns the current name.
|
|
76
|
+
*/
|
|
77
|
+
export function deprecationNote(message) {
|
|
78
|
+
process.stderr.write(`Note: ${message}\n`);
|
|
79
|
+
}
|
package/dist/lib/policy.js
CHANGED
|
@@ -58,8 +58,18 @@ function overrideClassification(name) {
|
|
|
58
58
|
reason: 'approve_pending_deal activates a deal and queues its plan; hard to undo, so pin write tier regardless of server annotation drift.',
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
+
// approve_prospect is the owner/bookkeeper review action next to
|
|
62
|
+
// approve_pending_deal (the path open to API keys); pin it the same way.
|
|
63
|
+
if (name === 'approve_prospect') {
|
|
64
|
+
return {
|
|
65
|
+
level: 'write',
|
|
66
|
+
source: 'override',
|
|
67
|
+
reason: 'approve_prospect promotes a pending prospect into an active Deal; hard to undo, so pin write tier regardless of server annotation drift.',
|
|
68
|
+
};
|
|
69
|
+
}
|
|
61
70
|
// Deal tools (admin MCP, shipped 2026-09-03; create_client_deal renamed to
|
|
62
|
-
// create_delivery_deal in the 2026-09-09 People/Companies retirement
|
|
71
|
+
// create_delivery_deal in the 2026-09-09 People/Companies retirement, and
|
|
72
|
+
// set_deal_title to set_deal_name in the 2026-10 naming alignment). None
|
|
63
73
|
// match the send_/delete_/void_/cancel_ name patterns, so without these
|
|
64
74
|
// entries their tier would rest entirely on server annotations.
|
|
65
75
|
if (name === 'create_delivery_deal') {
|
|
@@ -69,11 +79,11 @@ function overrideClassification(name) {
|
|
|
69
79
|
reason: 'create_delivery_deal opens a new won deal for a Person or Company and makes the caller its delivery lead; pin write tier regardless of server annotation drift.',
|
|
70
80
|
};
|
|
71
81
|
}
|
|
72
|
-
if (name === '
|
|
82
|
+
if (name === 'set_deal_name') {
|
|
73
83
|
return {
|
|
74
84
|
level: 'write',
|
|
75
85
|
source: 'override',
|
|
76
|
-
reason: '
|
|
86
|
+
reason: 'set_deal_name renames a deal, or clears the name back to the system default; pin write tier regardless of server annotation drift.',
|
|
77
87
|
};
|
|
78
88
|
}
|
|
79
89
|
if (name === 'link_deal_item') {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: use-every
|
|
3
3
|
description: Drive the Every AI CLI (`every`) to manage the user's service business — invoices, People, Companies, proposals, deals, pipeline, payments, services, custom fields, and scheduled tasks. Use when the user asks “who owes me money?”, wants a lead or deal follow-up, asks to sign up for Every, asks to look up, create, update, convert, or send a business record, or mentions their Every workspace.
|
|
4
4
|
metadata:
|
|
5
|
-
every-skill-version: "
|
|
5
|
+
every-skill-version: "3"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Use Every
|
|
@@ -94,7 +94,7 @@ Never assume the bound workspace. When the user names a different workspace, run
|
|
|
94
94
|
Creating a proposal or invoice automatically records activity on a matching deal when exactly one deal/party (Person or Company) matches. After an Every creation command, never double-log that action:
|
|
95
95
|
|
|
96
96
|
```bash
|
|
97
|
-
every invoice create --
|
|
97
|
+
every invoice create --company-id <company_id> --amount 100 --yes --json
|
|
98
98
|
every tool call create_proposal --args proposal.json --yes --json
|
|
99
99
|
```
|
|
100
100
|
|
|
@@ -113,15 +113,15 @@ Pipeline stages are `lead`, `opportunity`, `won`, and `lost`:
|
|
|
113
113
|
every deal move <deal_id> won --yes --json
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
Moving to `won` requires the deal to already be linked to a Person or Company. If the command errors because no party is assigned, assign one first (e.g. via `create_deal`'s `party`, or by
|
|
116
|
+
Moving to `won` requires the deal to already be linked to a Person or Company. If the command errors because no party is assigned, assign one first (e.g. via `create_deal`'s `party`, or by linking a Person or Company to the deal in the Every app), then retry the same command.
|
|
117
117
|
|
|
118
118
|
### Invoice rates and tax
|
|
119
119
|
|
|
120
|
-
Treat `unit_price` as the per-unit rate, not the line total. The simple CLI's `--amount` maps to that per-unit rate:
|
|
120
|
+
Treat `unit_price` as the per-unit rate, not the line total. The simple CLI's `--amount` maps to that per-unit rate. Name the recipient with `--company-id` or `--person-id` (or `--company`/`--person` to resolve a name):
|
|
121
121
|
|
|
122
122
|
```bash
|
|
123
|
-
every invoice create --
|
|
124
|
-
every tool call create_invoice --arg command='{"operation_id":"<uuid>","party":{"kind":"company","id":"<
|
|
123
|
+
every invoice create --company-id <company_id> --description "Workshop" --quantity 3 --amount 100 --yes --json
|
|
124
|
+
every tool call create_invoice --arg command='{"operation_id":"<uuid>","party":{"kind":"company","id":"<company_id>"},"line_items":[{"description":"Workshop","quantity":3,"unit_price":100}]}' --yes --json
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
Leave `sales_tax_applied` unset so the business default applies. Never add tax as a line item. When currency, tax, or timezone matters, read settings first with `every tool call business_settings --json`; let Every compute tax, numbering, due dates, and totals.
|
|
@@ -142,6 +142,10 @@ every tool call view_invoice --arg identifier=<invoice_id> --json
|
|
|
142
142
|
every invoice send <invoice_id> --yes --allow-destructive --json
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
+
### Voiding an invoice
|
|
146
|
+
|
|
147
|
+
`void_invoice` (`invoice_id`, `expected_updated_at` from `view_invoice`, a fresh `operation_id`) voids an invoice: its status becomes void and it can no longer be paid, but the invoice and its history remain. It never deletes. It is destructive, so it needs explicit approval and both destructive flags.
|
|
148
|
+
|
|
145
149
|
### Invoice re-sends
|
|
146
150
|
|
|
147
151
|
`send_invoice` re-sends the invoice email itself; it does not send custom reminder copy. For an overdue follow-up, confirm with the user, re-send the invoice, and give any custom message separately for the user to send:
|
|
@@ -164,15 +168,19 @@ Calendar tools operate on the user's personal calendar. Confirm attendees and ti
|
|
|
164
168
|
|
|
165
169
|
### Scheduled tasks report in-app, never in this session
|
|
166
170
|
|
|
167
|
-
`every tool call create_scheduled_task ...` sets up a saved instruction that runs on a cadence (once/daily/weekly/monthly). Results and any notifications always arrive in the Every app (Daily Brief / notifications) and by email if enabled — never back in this CLI session, so don't tell the user to expect output here.
|
|
171
|
+
`every tool call create_scheduled_task ...` sets up a saved instruction that runs on a cadence (once/daily/weekly/monthly). Results and any notifications always arrive in the Every app (Daily Brief / notifications) and by email if enabled — never back in this CLI session, so don't tell the user to expect output here. If the user later asks what a task produced, read its latest stored result with `get_scheduled_task_result` (see Stored briefs and reports).
|
|
172
|
+
|
|
173
|
+
### Prospects and deal details
|
|
174
|
+
|
|
175
|
+
Use `list_prospects`, `view_prospect` (`prospect_id`), and `network_summary` (optional `target_id`) to research the user's network. Treat the returned personal and relationship context as private; these tools do not contact prospects.
|
|
168
176
|
|
|
169
|
-
|
|
177
|
+
A prospect awaiting review becomes a deal with `approve_prospect` (`prospect_id`), the owner/bookkeeper review action; `approve_pending_deal` (`deal_id`) does the same for agents running under an API key. A prospect joins an existing deal with `merge_prospect` (`prospect_id`, `into_deal_id`), or is rejected with `reject_prospect`. Rejecting is destructive: it suppresses the Person across every target in the workspace, so say so before asking for approval. `list_prospects` lists rejected prospects with `status=rejected`.
|
|
170
178
|
|
|
171
|
-
|
|
179
|
+
Rename a deal with `set_deal_name` (`deal_id`, `name`). Record an expected amount on a deal with no proposal or invoice yet with `set_deal_value_estimate` (`deal_id`, `target_value`); call it a value estimate.
|
|
172
180
|
|
|
173
181
|
### Stored briefs and reports
|
|
174
182
|
|
|
175
|
-
`get_daily_brief` and `
|
|
183
|
+
`get_daily_brief` and `get_scheduled_task_result` read stored artifacts for the authenticated caller only; do not imply they regenerate or share a brief or a result. `get_scheduled_task_result` returns the latest completed result of one of the user's scheduled tasks: take the `task_id` from `list_scheduled_tasks`. It does not run the task, and `result` can be null when no run has completed yet. Use `get_financial_report` for the server-computed financial view and preserve its reported period and currency; its `entities` sections are `invoices`, `payments`, `expenses`, `proposals`, and `recurring`.
|
|
176
184
|
|
|
177
185
|
### Recurring invoices
|
|
178
186
|
|
|
@@ -235,7 +243,7 @@ Stop if the proposal is not issued/approved. Review the linked draft and obtain
|
|
|
235
243
|
Intake a new lead:
|
|
236
244
|
|
|
237
245
|
```bash
|
|
238
|
-
every
|
|
246
|
+
every person list --search "person@example.com" --json
|
|
239
247
|
every tool call create_person --args person.json --yes --json
|
|
240
248
|
every tool call create_deal --args deal.json --yes --json
|
|
241
249
|
```
|