@everyai/cli 0.3.0 → 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.
@@ -46,7 +46,7 @@ export function conventionsBlock() {
46
46
  ' read: runs without confirmation',
47
47
  ' write: requires y/N interactively or --yes non-interactively',
48
48
  ' destructive: requires typed confirmation interactively or --yes --allow-destructive non-interactively',
49
- ' ai-mediated: treated as write-capable because it routes to Every AI',
49
+ ' ai-mediated: server-enforced read-only, but gated because it routes through Every AI; prefer deterministic tools',
50
50
  '',
51
51
  'Argument forms:',
52
52
  ' every tool call <name> --arg k=v --arg count=2',
@@ -20,14 +20,14 @@ function overrideClassification(name) {
20
20
  return {
21
21
  level: 'ai-mediated',
22
22
  source: 'override',
23
- reason: 'ask_assistant routes to a write-capable Every AI agent despite its read-only annotation.',
23
+ reason: 'ask_assistant is server-enforced read-only, but AI-mediated; prefer deterministic tools when available.',
24
24
  };
25
25
  }
26
- if (/^delete_|^void_/.test(name)) {
26
+ if (/^delete_|^void_|^cancel_/.test(name)) {
27
27
  return {
28
28
  level: 'destructive',
29
29
  source: 'override',
30
- reason: 'Tool name matches delete_/void_, which can remove or void account records.',
30
+ reason: 'Tool name matches delete_/void_/cancel_, which can remove, void, or cancel account records.',
31
31
  };
32
32
  }
33
33
  if (/^send_/.test(name)) {
@@ -44,6 +44,13 @@ function overrideClassification(name) {
44
44
  reason: 'record_payment changes financial records.',
45
45
  };
46
46
  }
47
+ if (name === 'run_recurring_invoice_now') {
48
+ return {
49
+ level: 'destructive',
50
+ source: 'override',
51
+ reason: 'Running a recurring invoice now may immediately send an invoice email.',
52
+ };
53
+ }
47
54
  return undefined;
48
55
  }
49
56
  export function classify(tool) {
@@ -69,9 +76,9 @@ export function classify(tool) {
69
76
  }
70
77
  if (openWorld) {
71
78
  return {
72
- level: 'destructive',
79
+ level: 'write',
73
80
  source: 'annotation',
74
- reason: 'Tool annotation marks it open-world and not read-only.',
81
+ reason: 'Tool annotation marks it open-world and not read-only; defaulting to write.',
75
82
  };
76
83
  }
77
84
  return {
@@ -87,7 +94,7 @@ function readOnlyDenial(level) {
87
94
  return `Denied by read-only mode (--read-only/EVERY_READ_ONLY=1): ${level} tools are not allowed.`;
88
95
  }
89
96
  function aiMediatedExplanation() {
90
- return "This tool sends your request to Every's AI agent, which can take actions on your account; it is not mechanically read-only.";
97
+ return "This tool is server-enforced read-only, but routes through Every's AI agent; prefer deterministic tools when available.";
91
98
  }
92
99
  export function requirementFor(level, { interactive, yes, allowDestructive, readOnlyMode }) {
93
100
  if (level === 'read')
@@ -101,9 +108,10 @@ export function requirementFor(level, { interactive, yes, allowDestructive, read
101
108
  if (interactive)
102
109
  return { allowed: true, prompt: 'confirm' };
103
110
  const prefix = level === 'ai-mediated' ? `${aiMediatedExplanation()} ` : '';
111
+ const action = level === 'ai-mediated' ? 'AI-mediated request' : 'write';
104
112
  return {
105
113
  allowed: false,
106
- denialMessage: `${prefix}Re-run with --yes to confirm this write.`,
114
+ denialMessage: `${prefix}Re-run with --yes to confirm this ${action}.`,
107
115
  };
108
116
  }
109
117
  if (yes && allowDestructive)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everyai/cli",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "private": false,
5
5
  "description": "The agent-agnostic command-line surface for Every AI.",
6
6
  "type": "module",
@@ -126,6 +126,28 @@ every invoice send <invoice_id> --yes --allow-destructive --json
126
126
  every invoice send <invoice_id> --yes --allow-destructive --json
127
127
  ```
128
128
 
129
+ ### Gmail is draft-first
130
+
131
+ Prefer `draft_email` so the user can review recipients and copy. `send_email` sends immediately from the user's own mailbox; use it only after explicit approval with both destructive flags.
132
+
133
+ ### Calendar and booking ownership
134
+
135
+ Calendar tools operate on the user's personal calendar. Confirm attendees and timezone before creating; reschedules and cancellations can notify attendees according to `send_updates`, so state that effect before acting.
136
+
137
+ Booking create, reschedule, and cancel tools are owner-actions. Resolve the booking and check availability first, then confirm the customer-visible time change or cancellation before executing it.
138
+
139
+ ### Prospecting reads
140
+
141
+ Use `list_prospects`, `view_prospect`, and `network_summary` to research the user's network. Treat the returned personal and relationship context as private; these tools do not contact prospects.
142
+
143
+ ### Stored briefs and reports
144
+
145
+ `get_daily_brief` and `get_heartbeat_summary` read stored artifacts for the authenticated caller only; do not imply they regenerate or share a brief. Use `get_financial_report` for the server-computed financial view and preserve its reported period and currency.
146
+
147
+ ### Recurring invoices
148
+
149
+ List and inspect recurring invoices before changing their schedule or status. Creating, updating, pausing, and resuming are writes; `run_recurring_invoice_now` is destructive because it may auto-send an invoice email when that schedule is configured to send.
150
+
129
151
  ### Complete money totals
130
152
 
131
153
  For invoice counts or money totals, filter `overdue` and `issued` separately and paginate until every result is fetched. Never total one default page; it gives confidently wrong numbers. Use the full tool so you can increment `offset` by `limit` until a page returns fewer records than the limit: