@roilab/crm-cli 0.4.0 → 0.7.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/CHANGELOG.md +225 -144
- package/SKILL.md +61 -15
- package/SURFACE.txt +242 -214
- package/dist/bin/crm.js +2 -0
- package/dist/bin/crm.js.map +1 -1
- package/dist/src/commands/chat.js +208 -5
- package/dist/src/commands/chat.js.map +1 -1
- package/dist/src/commands/rank.js +300 -0
- package/dist/src/commands/rank.js.map +1 -0
- package/dist/src/commands/skill.js +169 -0
- package/dist/src/commands/skill.js.map +1 -1
- package/package.json +58 -58
package/SURFACE.txt
CHANGED
|
@@ -1,214 +1,242 @@
|
|
|
1
|
-
# Generated by scripts/generate-surface-txt.ts — do not hand-edit.
|
|
2
|
-
# Format: one line per command, flags flat, types terse.
|
|
3
|
-
# Agents: grep this to discover capabilities without reading help pages.
|
|
4
|
-
|
|
5
|
-
CMD crm auth login [key] --profile <name> --api-url <url> --device-name <label>
|
|
6
|
-
CMD crm auth whoami
|
|
7
|
-
CMD crm auth list
|
|
8
|
-
CMD crm auth switch <name>
|
|
9
|
-
CMD crm auth logout [name]
|
|
10
|
-
|
|
11
|
-
CMD crm task list --status <status> --domain <id> --assignee <id> --tag <id> --limit <n>
|
|
12
|
-
CMD crm task get <id>
|
|
13
|
-
# task get returns `participants[]` with name, role, expertise, and
|
|
14
|
-
# internalNotes (staff-only, markdown handling rules) — use it instead of a
|
|
15
|
-
# follow-up `member list` when composing @mentions on an existing task.
|
|
16
|
-
CMD crm task related <id>
|
|
17
|
-
# task related groups: referenced (already linked via #), sameDomain, sharedTags.
|
|
18
|
-
CMD crm task search <query> --limit <n>
|
|
19
|
-
# task preflight — OBLIGATORIO antes de `task create`. Bundle de 1 round-trip:
|
|
20
|
-
# similarTasks (FTS + Jaccard) · recall si --url · recentChanges en el dominio
|
|
21
|
-
# · urlScopedTasks · recentBacklinks · openTaskCounts del dominio · hints[].
|
|
22
|
-
# Si `hints` empieza con "Posible duplicado", PARA: revisa la tarea existente
|
|
23
|
-
# antes de crear una nueva.
|
|
24
|
-
CMD crm task preflight --title <title> --url <url> --domain <id> --limit <n> --since-ms <epoch>
|
|
25
|
-
# task create / update accept the full mutation surface: `--assignee` (responsible)
|
|
26
|
-
# vs `--collaborator` (follower); `--start` + `--due`; `--completion-strategy`
|
|
27
|
-
# (all|any|manual); `--board` (move to another board on update). `task update`
|
|
28
|
-
# uses `--client-visible` / `--no-client-visible` (symmetric boolean flags).
|
|
29
|
-
CMD crm task create --title <title> --description <text> --domain <id> --board <id> --status <status> --assignee <id...> --collaborator <id...> --tag <id...> --start <date> --due <date> --completion-strategy <all|any|manual> --client-visible --no-review
|
|
30
|
-
CMD crm task update <id> --title <title> --status <status> --domain <id> --board <id> --assignee <id...> --collaborator <id...> --tag <id...> --start <date> --due <date> --completion-strategy <all|any|manual> --client-visible --no-client-visible
|
|
31
|
-
# Phase 41 — task ↔ backlink linking. `assets` returns the primary FK +
|
|
32
|
-
# outgoing mentions in one payload; `link-backlink` / `link-offer` set the
|
|
33
|
-
# primary FK (use --unlink to clear); `complete-with-evidence` closes a task
|
|
34
|
-
# citing a backlink/offer (server validates the comment cites the asset).
|
|
35
|
-
CMD crm task assets <id>
|
|
36
|
-
CMD crm task link-backlink <task-id> <backlink-id> --unlink
|
|
37
|
-
CMD crm task link-offer <task-id> <offer-id> --unlink
|
|
38
|
-
CMD crm task complete-with-evidence <task-id> --asset <kind:id> --comment <id>
|
|
39
|
-
|
|
40
|
-
CMD crm comment list <taskId>
|
|
41
|
-
CMD crm comment create --task <id> --body <text> --kind <note|agent_log|decision>
|
|
42
|
-
|
|
43
|
-
# Chat — conversaciones ancladas a workspace/cliente/dominio + DMs y grupos.
|
|
44
|
-
# Per-cliente las salas Interna y Compartida se auto-crean. Para chats libres
|
|
45
|
-
# usa `chat dm` (1:1 idempotente; varios miembros = grupo). `chat reply`
|
|
46
|
-
# crea sub-hilos sin salir del CLI; `chat react` activa/desactiva una de
|
|
47
|
-
# las 8 reacciones curadas. Markdown + @[Name](id) + #[Title](id) soportados.
|
|
48
|
-
CMD crm chat list --scope <workspace|client|dm> --client <id>
|
|
49
|
-
CMD crm chat
|
|
50
|
-
CMD crm chat
|
|
51
|
-
CMD crm chat
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
CMD crm chat
|
|
56
|
-
|
|
57
|
-
CMD crm
|
|
58
|
-
CMD crm
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
CMD crm
|
|
68
|
-
CMD crm
|
|
69
|
-
|
|
70
|
-
CMD crm domain
|
|
71
|
-
|
|
72
|
-
CMD crm
|
|
73
|
-
CMD crm
|
|
74
|
-
CMD crm
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
CMD crm backlink
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
CMD crm
|
|
84
|
-
|
|
85
|
-
CMD crm
|
|
86
|
-
|
|
87
|
-
CMD crm
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
CMD crm
|
|
93
|
-
|
|
94
|
-
CMD crm
|
|
95
|
-
|
|
96
|
-
CMD crm
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
CMD crm
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
#
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
#
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
CMD crm
|
|
119
|
-
CMD crm
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
CMD crm review
|
|
124
|
-
|
|
125
|
-
#
|
|
126
|
-
|
|
127
|
-
CMD crm review
|
|
128
|
-
|
|
129
|
-
#
|
|
130
|
-
#
|
|
131
|
-
#
|
|
132
|
-
|
|
133
|
-
CMD crm
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
#
|
|
139
|
-
|
|
140
|
-
CMD crm
|
|
141
|
-
|
|
142
|
-
CMD crm
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
CMD crm
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
#
|
|
155
|
-
#
|
|
156
|
-
|
|
157
|
-
CMD crm
|
|
158
|
-
CMD crm
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
CMD crm
|
|
165
|
-
CMD crm
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
CMD crm
|
|
169
|
-
|
|
170
|
-
CMD crm
|
|
171
|
-
CMD crm
|
|
172
|
-
CMD crm
|
|
173
|
-
CMD crm
|
|
174
|
-
CMD crm
|
|
175
|
-
CMD crm
|
|
176
|
-
CMD crm
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
#
|
|
181
|
-
CMD crm
|
|
182
|
-
CMD crm
|
|
183
|
-
CMD crm
|
|
184
|
-
CMD crm
|
|
185
|
-
CMD crm
|
|
186
|
-
CMD crm
|
|
187
|
-
CMD crm
|
|
188
|
-
CMD crm
|
|
189
|
-
CMD crm
|
|
190
|
-
CMD crm
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
#
|
|
194
|
-
#
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
1
|
+
# Generated by scripts/generate-surface-txt.ts — do not hand-edit.
|
|
2
|
+
# Format: one line per command, flags flat, types terse.
|
|
3
|
+
# Agents: grep this to discover capabilities without reading help pages.
|
|
4
|
+
|
|
5
|
+
CMD crm auth login [key] --profile <name> --api-url <url> --device-name <label>
|
|
6
|
+
CMD crm auth whoami
|
|
7
|
+
CMD crm auth list
|
|
8
|
+
CMD crm auth switch <name>
|
|
9
|
+
CMD crm auth logout [name]
|
|
10
|
+
|
|
11
|
+
CMD crm task list --status <status> --domain <id> --assignee <id> --tag <id> --limit <n>
|
|
12
|
+
CMD crm task get <id>
|
|
13
|
+
# task get returns `participants[]` with name, role, expertise, and
|
|
14
|
+
# internalNotes (staff-only, markdown handling rules) — use it instead of a
|
|
15
|
+
# follow-up `member list` when composing @mentions on an existing task.
|
|
16
|
+
CMD crm task related <id>
|
|
17
|
+
# task related groups: referenced (already linked via #), sameDomain, sharedTags.
|
|
18
|
+
CMD crm task search <query> --limit <n>
|
|
19
|
+
# task preflight — OBLIGATORIO antes de `task create`. Bundle de 1 round-trip:
|
|
20
|
+
# similarTasks (FTS + Jaccard) · recall si --url · recentChanges en el dominio
|
|
21
|
+
# · urlScopedTasks · recentBacklinks · openTaskCounts del dominio · hints[].
|
|
22
|
+
# Si `hints` empieza con "Posible duplicado", PARA: revisa la tarea existente
|
|
23
|
+
# antes de crear una nueva.
|
|
24
|
+
CMD crm task preflight --title <title> --url <url> --domain <id> --limit <n> --since-ms <epoch>
|
|
25
|
+
# task create / update accept the full mutation surface: `--assignee` (responsible)
|
|
26
|
+
# vs `--collaborator` (follower); `--start` + `--due`; `--completion-strategy`
|
|
27
|
+
# (all|any|manual); `--board` (move to another board on update). `task update`
|
|
28
|
+
# uses `--client-visible` / `--no-client-visible` (symmetric boolean flags).
|
|
29
|
+
CMD crm task create --title <title> --description <text> --domain <id> --board <id> --status <status> --assignee <id...> --collaborator <id...> --tag <id...> --start <date> --due <date> --completion-strategy <all|any|manual> --client-visible --no-review
|
|
30
|
+
CMD crm task update <id> --title <title> --status <status> --domain <id> --board <id> --assignee <id...> --collaborator <id...> --tag <id...> --start <date> --due <date> --completion-strategy <all|any|manual> --client-visible --no-client-visible
|
|
31
|
+
# Phase 41 — task ↔ backlink linking. `assets` returns the primary FK +
|
|
32
|
+
# outgoing mentions in one payload; `link-backlink` / `link-offer` set the
|
|
33
|
+
# primary FK (use --unlink to clear); `complete-with-evidence` closes a task
|
|
34
|
+
# citing a backlink/offer (server validates the comment cites the asset).
|
|
35
|
+
CMD crm task assets <id>
|
|
36
|
+
CMD crm task link-backlink <task-id> <backlink-id> --unlink
|
|
37
|
+
CMD crm task link-offer <task-id> <offer-id> --unlink
|
|
38
|
+
CMD crm task complete-with-evidence <task-id> --asset <kind:id> --comment <id>
|
|
39
|
+
|
|
40
|
+
CMD crm comment list <taskId>
|
|
41
|
+
CMD crm comment create --task <id> --body <text> --kind <note|agent_log|decision>
|
|
42
|
+
|
|
43
|
+
# Chat — conversaciones ancladas a workspace/cliente/dominio + DMs y grupos.
|
|
44
|
+
# Per-cliente las salas Interna y Compartida se auto-crean. Para chats libres
|
|
45
|
+
# usa `chat dm` (1:1 idempotente; varios miembros = grupo). `chat reply`
|
|
46
|
+
# crea sub-hilos sin salir del CLI; `chat react` activa/desactiva una de
|
|
47
|
+
# las 8 reacciones curadas. Markdown + @[Name](id) + #[Title](id) soportados.
|
|
48
|
+
CMD crm chat list --scope <workspace|client|dm> --client <id>
|
|
49
|
+
CMD crm chat get <threadId> --message-limit <n>
|
|
50
|
+
CMD crm chat read <threadId> --page-limit <n> --before <ms>
|
|
51
|
+
CMD crm chat thread --workspace --client <id> --shared
|
|
52
|
+
# `--body` opcional si pasas `--file`. `--file <path>` repetible para varios
|
|
53
|
+
# adjuntos (máx 10 MB cada uno; el CLI avisa en stderr a partir de 2 MB y
|
|
54
|
+
# rechaza localmente >10 MB antes de tocar la red).
|
|
55
|
+
CMD crm chat send <threadId> --body <text> --file <path...> --kind <message|agent_log> --parent <messageId>
|
|
56
|
+
CMD crm chat reply <messageId> --thread <id> --body <text> --file <path...> --kind <message|agent_log>
|
|
57
|
+
CMD crm chat react <messageId> --emoji <👍|✅|👀|🙏|❤️|❓|🔥|🚀>
|
|
58
|
+
CMD crm chat dm --member <id> --title <name> --client <id>
|
|
59
|
+
CMD crm chat mark-read <threadId> --message <id>
|
|
60
|
+
|
|
61
|
+
CMD crm client list
|
|
62
|
+
CMD crm client get <id>
|
|
63
|
+
# Profile responses carry `internalNotes` (markdown, staff-only) — handling
|
|
64
|
+
# rules like "never mention X to this CEO" / "always cc Eric as follower".
|
|
65
|
+
# Read these before drafting any comment/mention. Never echo into client-
|
|
66
|
+
# visible surfaces (shared chat, client-visible tasks, portal).
|
|
67
|
+
CMD crm client profile <id>
|
|
68
|
+
CMD crm client profile-set <id> --ceo-name <text> --ceo-role <text> --industry <text> --what-they-sell <text> --target-audience <text> --objectives <text> --usps <csv> --pain-points <csv> --tone-of-voice <text> --language-prefs <csv> --comms-preferences <text> --brief <md> --internal-notes <md>
|
|
69
|
+
|
|
70
|
+
CMD crm domain list --client <id>
|
|
71
|
+
CMD crm domain get <id>
|
|
72
|
+
CMD crm domain metrics <id> --start <date> --end <date>
|
|
73
|
+
CMD crm domain profile <id>
|
|
74
|
+
CMD crm domain profile-set <id> --positioning <text> --tone-override <text> --audience-override <text> --content-guidelines <text> --brief <md> --internal-notes <md>
|
|
75
|
+
|
|
76
|
+
CMD crm backlink list --domain <id> --status <status>
|
|
77
|
+
CMD crm backlink lost --domain <id> --since <iso>
|
|
78
|
+
CMD crm backlink list-tasks <backlink-id>
|
|
79
|
+
# Human-QA verbs (staff-only). `pending` lists rows awaiting review; `verify`
|
|
80
|
+
# is idempotent; `reject` requires a structured `--reason` and notifies the
|
|
81
|
+
# creator; `rejection-report` aggregates rejected rows with reason breakdown.
|
|
82
|
+
CMD crm backlink pending --domain <id> --client <id>
|
|
83
|
+
CMD crm backlink verify <id>
|
|
84
|
+
CMD crm backlink reject <id> --reason <spammy_source|wrong_anchor|wrong_target|nofollow_unexpected|dead_on_arrival|duplicate|policy_violation|other> --notes <text>
|
|
85
|
+
CMD crm backlink rejection-report --domain <id> --client <id> --since-days <n>
|
|
86
|
+
|
|
87
|
+
CMD crm offer list-tasks <offer-id>
|
|
88
|
+
|
|
89
|
+
CMD crm change list --domain <id> --url <url> --since <iso>
|
|
90
|
+
|
|
91
|
+
CMD crm scope list --domain <id> --kind <saved|ephemeral>
|
|
92
|
+
CMD crm scope get <id>
|
|
93
|
+
|
|
94
|
+
CMD crm competitor list --domain <id>
|
|
95
|
+
|
|
96
|
+
CMD crm tag list
|
|
97
|
+
# member list filters help resolve a name fragment to a memberId before composing @[Name](id).
|
|
98
|
+
CMD crm member list --query <text> --email <text> --client <id> --domain <id> --role <csv>
|
|
99
|
+
CMD crm member profile <id>
|
|
100
|
+
CMD crm member profile-set <id> --title <text> --bio <text> --expertise <csv> --preferred-contact <text> --timezone <iana> --working-hours <text> --internal-notes <md>
|
|
101
|
+
|
|
102
|
+
# Mention resolvers — print the markdown chip on stdout, exit 8 on ambiguous, 2 on no match.
|
|
103
|
+
# Compose into writes via shell substitution: --body "$(crm mention member luis) ping"
|
|
104
|
+
CMD crm mention member <query> --client <id> --domain <id> --role <csv>
|
|
105
|
+
CMD crm mention task <query> --domain <id> --status <status>
|
|
106
|
+
|
|
107
|
+
# Agent memory primer — aggregates client profile + all domain profiles + assigned staff.
|
|
108
|
+
# Call this before drafting client-visible content (comments, task titles, proposals).
|
|
109
|
+
# --domain narrows to staff with activity on a domain + open tasks under it.
|
|
110
|
+
# --task is the URL-of-tasks: participants + parent domain + cross-refs already linked.
|
|
111
|
+
CMD crm brief [clientId] --domain <id> --task <id>
|
|
112
|
+
|
|
113
|
+
CMD crm recall <url> --since <iso>
|
|
114
|
+
# search result rows: { id, kind: task|description|comment|change, score, snippet, breadcrumb[] }
|
|
115
|
+
# Use --jq '.data[].snippet' for titles-in-context; NOT .data[].title (not present)
|
|
116
|
+
CMD crm search <query> --kind <task|description|comment|change|all> --domain <id>
|
|
117
|
+
|
|
118
|
+
CMD crm inbox list
|
|
119
|
+
CMD crm inbox read <category>
|
|
120
|
+
|
|
121
|
+
CMD crm review list --mine --key <apiKeyId>
|
|
122
|
+
CMD crm review show <task|comment|edit> <id>
|
|
123
|
+
CMD crm review approve <task|comment|edit> <id>
|
|
124
|
+
CMD crm review reject <task|comment|edit> <id> --reason <text>
|
|
125
|
+
# Agent iteration loop — read your own rejected proposals + the reviewer's
|
|
126
|
+
# reason. `--retryable-only` filters to items the reviewer wants you to redo.
|
|
127
|
+
CMD crm review feedback --retryable-only --key <apiKeyId>
|
|
128
|
+
# Bulk approve / reject — items via stdin (NDJSON or 'kind:id' tokens; ≤100).
|
|
129
|
+
# The mini-jq embedded in --jq does NOT support `|` or `\(.x)` interpolation —
|
|
130
|
+
# use real `jq` post-pipe, or pass tokens by hand.
|
|
131
|
+
# Example: crm review list --mine --quiet | jq -r '.[] | "\(.kind):\(.id)"' | crm review bulk-approve
|
|
132
|
+
CMD crm review bulk-approve
|
|
133
|
+
CMD crm review bulk-reject --reason <text> --no-retry
|
|
134
|
+
|
|
135
|
+
# Access requests — chat-driven flow. Clients (or agents acting as clients)
|
|
136
|
+
# request access to a task they spotted in a chat thread; staff resolve.
|
|
137
|
+
# The verbs used to live under `crm task {request,list,approve,deny}-access`
|
|
138
|
+
# (still work for one release with a deprecation hint).
|
|
139
|
+
CMD crm access request <task-id> --via <message-id> --message <text>
|
|
140
|
+
CMD crm access list
|
|
141
|
+
CMD crm access approve <request-id> --scope <task|board> --note <text>
|
|
142
|
+
CMD crm access deny <request-id> --note <text>
|
|
143
|
+
|
|
144
|
+
# Workspace-wide rollup of all properties for a date range — useful for
|
|
145
|
+
# overview prompts. Sources from Tinybird.
|
|
146
|
+
CMD crm dashboard summary --start <date> --end <date>
|
|
147
|
+
|
|
148
|
+
CMD crm integration list
|
|
149
|
+
CMD crm integration sites --account <id> --service <gsc|ga4|bing>
|
|
150
|
+
CMD crm integration sync --property <id>
|
|
151
|
+
|
|
152
|
+
# gsc/ga4/bing query hit the live provider API (tokens stay on server).
|
|
153
|
+
# --filters is ';'-separated. Format: "<dim> <op> <expr>; ..."
|
|
154
|
+
# Operators (GSC + Bing): equals | contains | regex | not_equals | not_contains | not_regex
|
|
155
|
+
# Operators (GA4 adds): batch (inListFilter; value is newline-separated)
|
|
156
|
+
CMD crm gsc query --property <id> --account <id> --site-url <url> --start <date> --end <date> --dimension <date|page|query|country|device> --filters <expr> --cursor <n>
|
|
157
|
+
CMD crm ga4 query --property <id> --account <id> --ga4-property <num> --start <date> --end <date> --filters <expr>
|
|
158
|
+
CMD crm bing query --property <id> --account <id> --site-url <url> --start <date> --end <date>
|
|
159
|
+
|
|
160
|
+
# Agency skills — librería de playbooks para Claude Code. `pull` escribe en
|
|
161
|
+
# `.claude/skills/<slug>/SKILL.md` + recursos; el manifest se guarda en
|
|
162
|
+
# `.claude/skills/.crm-manifest.json` para que `update` detecte desactualizados.
|
|
163
|
+
CMD crm skill list --category <name> --status <draft|published|archived> --tag <id> --q <text>
|
|
164
|
+
CMD crm skill show <slug> --revision <id>
|
|
165
|
+
CMD crm skill revisions <slug>
|
|
166
|
+
CMD crm skill revision <id>
|
|
167
|
+
# skill create lands a draft; first publish via `crm skill push <slug> --publish`.
|
|
168
|
+
CMD crm skill create --slug <slug> --name <name> --description <text> --category <local-seo|google-ads|technical-seo|content|link-building|crm-ops|workflow|general> --kind <playbook|workflow|tool|reference> --tag <id...> --visibility <workspace|staff_only> --body <md> --frontmatter <yaml>
|
|
169
|
+
# skill set patches metadata only; body edits go through `crm skill push`.
|
|
170
|
+
CMD crm skill set <slug> --name <name> --description <text> --category <name> --kind <kind> --tag <id...> --visibility <workspace|staff_only>
|
|
171
|
+
CMD crm skill archive <slug>
|
|
172
|
+
CMD crm skill restore <slug>
|
|
173
|
+
CMD crm skill pull <slug> --revision <id> --dry-run
|
|
174
|
+
CMD crm skill pull --all --category <name> --tag <id>
|
|
175
|
+
CMD crm skill update --dry-run
|
|
176
|
+
CMD crm skill diff <slug>
|
|
177
|
+
|
|
178
|
+
CMD crm time log --task <id> --description <text> --date <YYYY-MM-DD> --started-at <epoch|iso> --ended-at <epoch|iso> --duration <minutes>
|
|
179
|
+
CMD crm time list --from <YYYY-MM-DD> --to <YYYY-MM-DD> --user <id>
|
|
180
|
+
# Entries linked to a specific task (no date filter).
|
|
181
|
+
CMD crm time list-task <taskId>
|
|
182
|
+
CMD crm time status
|
|
183
|
+
CMD crm time start --task <id> --description <text>
|
|
184
|
+
CMD crm time stop --description <text>
|
|
185
|
+
CMD crm time discard
|
|
186
|
+
CMD crm time update <id> --started-at <epoch|iso> --ended-at <epoch|iso> --description <text> --task <id>
|
|
187
|
+
CMD crm time delete <id> --reason <text>
|
|
188
|
+
CMD crm time hours <YYYY-MM> --employee <email>
|
|
189
|
+
CMD crm time budgets
|
|
190
|
+
CMD crm time usage <id>
|
|
191
|
+
|
|
192
|
+
# Rank tracker — agency-internal (clients never granted the scopes).
|
|
193
|
+
# `list` returns the same shape the dashboard reads, so `--ids-only` pipes
|
|
194
|
+
# straight into the bulk commands. Bulk endpoints cap at 500 ids; pass them
|
|
195
|
+
# positionally, via --stdin (newline/space/comma) or --ids-from-file.
|
|
196
|
+
# `delete` refuses the whole batch when any keyword still has an active
|
|
197
|
+
# rank goal — unlink the task first.
|
|
198
|
+
CMD crm rank list --domain <id> --country <iso2> --device <mobile|desktop> --state <pending_sync|active|orphan|archived> --unranked --canibalised --search <text> --limit <n>
|
|
199
|
+
CMD crm rank get <id>
|
|
200
|
+
CMD crm rank add --domain <id> --country <iso2> --device <mobile|desktop> --tag <name...> --text <raw>|--file <path>|--stdin
|
|
201
|
+
CMD crm rank tag [ids...] --add <tag...> --remove <tag...> --replace <tag...> --stdin --ids-from-file <path>
|
|
202
|
+
CMD crm rank archive [ids...] --stdin --ids-from-file <path>
|
|
203
|
+
CMD crm rank restore [ids...] --stdin --ids-from-file <path>
|
|
204
|
+
CMD crm rank delete [ids...] --stdin --ids-from-file <path>
|
|
205
|
+
|
|
206
|
+
# Report schedules — list/get/run/snapshots/approve/reject covered. CRUD
|
|
207
|
+
# bodies are too rich for flat flags; `create` and `update` take JSON via
|
|
208
|
+
# --body (inline string | '@file.json' | '-' for stdin).
|
|
209
|
+
CMD crm report types
|
|
210
|
+
CMD crm report list
|
|
211
|
+
CMD crm report get <id>
|
|
212
|
+
CMD crm report create --body <json|@path|->
|
|
213
|
+
CMD crm report update <id> --body <json|@path|->
|
|
214
|
+
CMD crm report delete <id>
|
|
215
|
+
CMD crm report run <id>
|
|
216
|
+
CMD crm report snapshots --schedule <id> --limit <n>
|
|
217
|
+
CMD crm report snapshot <id>
|
|
218
|
+
CMD crm report approve <id> --note <text>
|
|
219
|
+
CMD crm report reject <id> --reason <text>
|
|
220
|
+
|
|
221
|
+
# Dump the full CLI surface as JSON so agents can introspect without help-text
|
|
222
|
+
# parsing. `{ data: { tree, flat } }` — `flat` is the linear command list.
|
|
223
|
+
CMD crm commands
|
|
224
|
+
|
|
225
|
+
CMD crm doctor
|
|
226
|
+
|
|
227
|
+
# Global flags (available on every command):
|
|
228
|
+
FLAG --json full JSON envelope (default)
|
|
229
|
+
FLAG --quiet only `data`, no envelope
|
|
230
|
+
FLAG --ids-only one id per line
|
|
231
|
+
FLAG --count single integer
|
|
232
|
+
FLAG --markdown human-readable preview
|
|
233
|
+
FLAG --jq <expr> tiny jq (.a, .a.b, .a[], .a[].b)
|
|
234
|
+
FLAG --profile <name> named credentials profile
|
|
235
|
+
FLAG --workspace <id> workspace override
|
|
236
|
+
FLAG --all walk Link-next pages
|
|
237
|
+
FLAG --limit <n> max rows
|
|
238
|
+
FLAG --since <iso> lower bound on creation/update time
|
|
239
|
+
FLAG --idempotency-key stable retry key (autogenerated on writes if omitted)
|
|
240
|
+
FLAG --wait-for-approval block until a human decides (shadow-mode writes only)
|
|
241
|
+
FLAG --timeout <dur> timeout for --wait-for-approval, e.g. 30s, 5m, 2h (default 30m)
|
|
242
|
+
FLAG --shadow force this write to land as a pending proposal for human review (one-way: agents cannot downgrade to autonomous)
|
package/dist/bin/crm.js
CHANGED
|
@@ -21,6 +21,7 @@ import { registerSkill } from "../src/commands/skill.js";
|
|
|
21
21
|
import { registerBrief } from "../src/commands/brief.js";
|
|
22
22
|
import { registerMention } from "../src/commands/mention.js";
|
|
23
23
|
import { registerTime } from "../src/commands/time.js";
|
|
24
|
+
import { registerRank } from "../src/commands/rank.js";
|
|
24
25
|
import { registerReport } from "../src/commands/report.js";
|
|
25
26
|
import { maybeNudgeFromCache, readInstalledVersion, refreshCacheInBackground, } from "../src/utils/version-check.js";
|
|
26
27
|
const program = new Command();
|
|
@@ -43,6 +44,7 @@ registerReview(program);
|
|
|
43
44
|
registerIntegrations(program);
|
|
44
45
|
registerSkill(program);
|
|
45
46
|
registerTime(program);
|
|
47
|
+
registerRank(program);
|
|
46
48
|
registerReport(program);
|
|
47
49
|
registerCommands(program);
|
|
48
50
|
registerDoctor(program);
|
package/dist/bin/crm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crm.js","sourceRoot":"","sources":["../../bin/crm.ts"],"names":[],"mappings":";AACA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC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