@wirecat/amo-cli 0.1.1 → 0.2.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 +8 -0
- package/README.md +4 -0
- package/contracts/wirecat.json +10 -0
- package/dist/bin/amo.js +2 -2
- package/dist/bundle/amo.js +2 -2
- package/dist/bundle/{chunk-TZSUZGWM.js → chunk-5QFHNBGB.js} +1 -1
- package/dist/bundle/{chunk-2B24PDH7.js → chunk-CHH42KI4.js} +1 -1
- package/dist/bundle/{program-DV73CIGP.js → program-G6O3IJR2.js} +6 -3
- package/dist/bundle/{store-FJCNZULV.js → store-CHWY2USQ.js} +2 -2
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +3 -1
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -1
- package/scenarios/first-sync.md +23 -0
- package/scenarios/keep-in-sync.md +18 -0
- package/scenarios/safe-agent-writes.md +21 -0
- package/skills/amo-cli/SKILL.md +1 -1
- package/skills/amo-cli/references/mcp.md +1 -1
- package/skills/amo-cli/references/setup.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@wirecat/amo-cli`. One section per version, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.2.0 — 19.11.2026
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **`amo guide` lists scenarios for common tasks**, each as commands in order and why: the first sync and the pipeline
|
|
10
|
+
board, keeping the copy up to date, and letting an agent change the CRM without surprises.
|
|
11
|
+
- The README opens with the WireCat banner, and the installation page says how WireCat Desktop connects `amo`.
|
|
12
|
+
|
|
5
13
|
## 0.1.1 — 18.11.2026
|
|
6
14
|
|
|
7
15
|
### Fixed
|
package/README.md
CHANGED
package/contracts/wirecat.json
CHANGED
|
@@ -804,6 +804,16 @@
|
|
|
804
804
|
"local": "read"
|
|
805
805
|
}
|
|
806
806
|
},
|
|
807
|
+
{
|
|
808
|
+
"path": [
|
|
809
|
+
"guide"
|
|
810
|
+
],
|
|
811
|
+
"summary": "scenarios: the commands for a common task, in order, and why each",
|
|
812
|
+
"effects": {
|
|
813
|
+
"remote": "none",
|
|
814
|
+
"local": "none"
|
|
815
|
+
}
|
|
816
|
+
},
|
|
807
817
|
{
|
|
808
818
|
"path": [
|
|
809
819
|
"mcp",
|
package/dist/bin/amo.js
CHANGED
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.
|
|
12
|
+
process.stdout.write("0.2.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -28,7 +28,7 @@ if (
|
|
|
28
28
|
: next(specifier, context),
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
|
-
const chunks = ["../bundle/all-profiles-3KQVWDV4.js","../bundle/anthropic-N5NOX7K7.js","../bundle/app-server-2MST5EZ5.js","../bundle/bun-4NHWOFX2.js","../bundle/bun-sqlite-DRSXPWPR.js","../bundle/cli-QVWTXADI.js","../bundle/command-contract-QBUQBXH7.js","../bundle/command-server-entry-5VL5U5EE.js","../bundle/decode-SQ5WGNDX.js","../bundle/dispatch-LA4DFXJD.js","../bundle/dist-T54K3FJV.js","../bundle/echarts-25Z3RINX.js","../bundle/embed-BNOTNXMA.js","../bundle/embedder-BCUT7KKV.js","../bundle/failure-PKAC6XCT.js","../bundle/first-run-EO5K5GME.js","../bundle/first-screen-GMN3T6RW.js","../bundle/instructions-VLM3QAYB.js","../bundle/mcp-7ILNMJH5.js","../bundle/node-CT3N3TNL.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-MELD2SBX.js","../bundle/oauth-YBH5OKC2.js","../bundle/open-WNSBWTAG.js","../bundle/openai-XSNMNLW6.js","../bundle/process-I2QKOMM7.js","../bundle/program-
|
|
31
|
+
const chunks = ["../bundle/all-profiles-3KQVWDV4.js","../bundle/anthropic-N5NOX7K7.js","../bundle/app-server-2MST5EZ5.js","../bundle/bun-4NHWOFX2.js","../bundle/bun-sqlite-DRSXPWPR.js","../bundle/cli-QVWTXADI.js","../bundle/command-contract-QBUQBXH7.js","../bundle/command-server-entry-5VL5U5EE.js","../bundle/decode-SQ5WGNDX.js","../bundle/dispatch-LA4DFXJD.js","../bundle/dist-T54K3FJV.js","../bundle/echarts-25Z3RINX.js","../bundle/embed-BNOTNXMA.js","../bundle/embedder-BCUT7KKV.js","../bundle/failure-PKAC6XCT.js","../bundle/first-run-EO5K5GME.js","../bundle/first-screen-GMN3T6RW.js","../bundle/instructions-VLM3QAYB.js","../bundle/mcp-7ILNMJH5.js","../bundle/node-CT3N3TNL.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-MELD2SBX.js","../bundle/oauth-YBH5OKC2.js","../bundle/open-WNSBWTAG.js","../bundle/openai-XSNMNLW6.js","../bundle/process-I2QKOMM7.js","../bundle/program-G6O3IJR2.js","../bundle/prompt-SOG4AKPM.js","../bundle/recognize-WMQLWMXH.js","../bundle/remote-4BTFOLFY.js","../bundle/rerank-LJ3TWRNV.js","../bundle/serve-B6UANKXN.js","../bundle/server-S6XD6V6E.js","../bundle/server-YRH6GJ5Z.js","../bundle/source-DGFTA2TN.js","../bundle/sqlite-runtime-R7QFWFE7.js","../bundle/state-DIJ5YUOE.js","../bundle/store-6WFWW7EC.js","../bundle/store-CHWY2USQ.js","../bundle/store-MYTYDV6A.js","../bundle/store-maintenance-command-B5TMKFMG.js","../bundle/writer-GP7VIMAU.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
package/dist/bundle/amo.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
3
3
|
const require = __bundleRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
DESKTOP
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CHH42KI4.js";
|
|
7
7
|
import "./chunk-CDY2NJFE.js";
|
|
8
8
|
import "./chunk-Y37A3232.js";
|
|
9
9
|
import "./chunk-VVHRQ46X.js";
|
|
@@ -192,7 +192,7 @@ var wcat = await wcatStart(DESKTOP);
|
|
|
192
192
|
if (wcat.code !== void 0) {
|
|
193
193
|
process.exitCode = wcat.code;
|
|
194
194
|
} else {
|
|
195
|
-
const { run } = await import("./program-
|
|
195
|
+
const { run } = await import("./program-G6O3IJR2.js");
|
|
196
196
|
process.exitCode = await run(process.argv.slice(2));
|
|
197
197
|
}
|
|
198
198
|
stopCatching();
|
|
@@ -1678,7 +1678,7 @@ var REASONS2 = defineReasons(OWN.filter(([reason]) => !CORE.has(reason)).map(([r
|
|
|
1678
1678
|
var DETAILS2 = ["fields", "account", "profiles"];
|
|
1679
1679
|
|
|
1680
1680
|
// dist/version.js
|
|
1681
|
-
var VERSION = "0.
|
|
1681
|
+
var VERSION = "0.2.0";
|
|
1682
1682
|
|
|
1683
1683
|
// dist/identity.js
|
|
1684
1684
|
var PACKAGE = "@wirecat/amo-cli";
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
createProgram,
|
|
15
15
|
defineSetup,
|
|
16
16
|
deniedKinds,
|
|
17
|
+
guideCommand,
|
|
17
18
|
honoursDryRun,
|
|
18
19
|
openBrowser,
|
|
19
20
|
ownerLanguageOf,
|
|
@@ -32,7 +33,7 @@ import {
|
|
|
32
33
|
} from "./chunk-NC76INB2.js";
|
|
33
34
|
import {
|
|
34
35
|
PROVIDER
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-5QFHNBGB.js";
|
|
36
37
|
import {
|
|
37
38
|
OPERATIONS,
|
|
38
39
|
amoCrmSource,
|
|
@@ -244,7 +245,7 @@ import {
|
|
|
244
245
|
IDENTITY,
|
|
245
246
|
PACKAGE,
|
|
246
247
|
SKILL
|
|
247
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-CHH42KI4.js";
|
|
248
249
|
import "./chunk-CDY2NJFE.js";
|
|
249
250
|
import "./chunk-Y37A3232.js";
|
|
250
251
|
import "./chunk-VVHRQ46X.js";
|
|
@@ -331,6 +332,7 @@ import {
|
|
|
331
332
|
|
|
332
333
|
// dist/program.js
|
|
333
334
|
import { join as join5 } from "node:path";
|
|
335
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
334
336
|
|
|
335
337
|
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
336
338
|
import { realpathSync } from "node:fs";
|
|
@@ -4591,7 +4593,7 @@ var userOf = /* @__PURE__ */ __name(async (command, amo) => {
|
|
|
4591
4593
|
var openProfile = /* @__PURE__ */ __name(async (command, { readOnly }) => {
|
|
4592
4594
|
const { env, profile } = contextOf(command);
|
|
4593
4595
|
const [{ openAmoStore, PROVIDER: PROVIDER3 }, { amoCrmSource: amoCrmSource2 }, { amoCrmWriter }] = await Promise.all([
|
|
4594
|
-
import("./store-
|
|
4596
|
+
import("./store-CHWY2USQ.js"),
|
|
4595
4597
|
import("./source-DGFTA2TN.js"),
|
|
4596
4598
|
import("./writer-GP7VIMAU.js")
|
|
4597
4599
|
]);
|
|
@@ -4919,6 +4921,7 @@ var definition = /* @__PURE__ */ __name(() => ({
|
|
|
4919
4921
|
scheduleCommand(),
|
|
4920
4922
|
appDoctorCommand(IDENTITY, configuration, { packageName: PACKAGE }),
|
|
4921
4923
|
skillCommand(IDENTITY, SKILL),
|
|
4924
|
+
guideCommand(IDENTITY, { directory: fileURLToPath2(new URL("../scenarios", new URL("../program.js", import.meta.url).href)) }),
|
|
4922
4925
|
mcpCommand(),
|
|
4923
4926
|
upgradeCommand(IDENTITY, PACKAGE, (command) => ({
|
|
4924
4927
|
...outputFor(command),
|
|
@@ -3,8 +3,8 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PROVIDER,
|
|
5
5
|
openAmoStore
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-5QFHNBGB.js";
|
|
7
|
+
import "./chunk-CHH42KI4.js";
|
|
8
8
|
import "./chunk-CDY2NJFE.js";
|
|
9
9
|
import "./chunk-Y37A3232.js";
|
|
10
10
|
import "./chunk-VVHRQ46X.js";
|
package/dist/program.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAGA,OAAO,EASL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,UAAU,EAMhB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAgDxC,eAAO,MAAM,UAAU,QAAO,iBAwC5B,CAAA;AAEF,eAAO,MAAM,aAAa,aAAc,cAAc,KAAG,OAAqD,CAAA;AAE9G,eAAO,MAAM,GAAG,SAAU,MAAM,EAAE,YAAY,UAAU,KAAG,OAAO,CAAC,MAAM,CAA2C,CAAA"}
|
package/dist/program.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
2
3
|
import { resolvePaths } from "@wirecat/cli-base";
|
|
3
|
-
import { appDoctorCommand, appMcpCommand, commandsCommand, configCommand, createProgram as createSharedProgram, outputFor, ProfileTokenStore, run as runShared, runsCommand, setupCommand, skillCommand, upgradeCommand, } from "@wirecat/cli-core/cli";
|
|
4
|
+
import { appDoctorCommand, appMcpCommand, commandsCommand, configCommand, createProgram as createSharedProgram, guideCommand, outputFor, ProfileTokenStore, run as runShared, runsCommand, setupCommand, skillCommand, upgradeCommand, } from "@wirecat/cli-core/cli";
|
|
4
5
|
import { appUpdate } from "@wirecat/cli-core/update";
|
|
5
6
|
import { appSourceOf } from "./amo/oauth.js";
|
|
6
7
|
import { accountCommand } from "./commands/account.js";
|
|
@@ -74,6 +75,7 @@ export const definition = () => ({
|
|
|
74
75
|
scheduleCommand(),
|
|
75
76
|
appDoctorCommand(IDENTITY, configuration, { packageName: PACKAGE }),
|
|
76
77
|
skillCommand(IDENTITY, SKILL),
|
|
78
|
+
guideCommand(IDENTITY, { directory: fileURLToPath(new URL("../scenarios", import.meta.url)) }),
|
|
77
79
|
mcpCommand(),
|
|
78
80
|
upgradeCommand(IDENTITY, PACKAGE, (command) => ({
|
|
79
81
|
...outputFor(command),
|
package/dist/program.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"program.js","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,aAAa,EACb,aAAa,IAAI,mBAAmB,EACpC,SAAS,EACT,iBAAiB,EAIjB,GAAG,IAAI,SAAS,EAChB,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,GACf,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAA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CAAC,QAAQ,CAAC;KACtB;CACF,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAwB,EAAW,EAAE,CAAC,mBAAmB,CAAC,UAAU,EAAE,EAAE,OAAO,CAAC,CAAA;AAE9G,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,IAAc,EAAE,OAAoB,EAAmB,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,CAAA"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "0.
|
|
1
|
+
export const VERSION = "0.2.0";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/amo-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Read and change an amoCRM or Kommo account's CRM — deals, contacts, companies — from the terminal, scripts and AI agents",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Viacheslav Ptsarev",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"files": [
|
|
21
21
|
"dist",
|
|
22
22
|
"skills",
|
|
23
|
+
"scenarios",
|
|
23
24
|
"contracts/wirecat.json",
|
|
24
25
|
"/README.md",
|
|
25
26
|
"CHANGELOG.md",
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
"typecheck": "tsc --build --force --emitDeclarationOnly && tsc -p tsconfig.test.json && tsc -p tsconfig.scripts.json",
|
|
31
32
|
"lint": "biome check .",
|
|
32
33
|
"lint:fix": "biome check --write .",
|
|
34
|
+
"docs:images": "node docs/images/src/render.ts",
|
|
33
35
|
"test": "vitest run",
|
|
34
36
|
"test:coverage": "vitest run --coverage",
|
|
35
37
|
"test:slow": "vitest run --reporter=json --outputFile=coverage/tests.json >/dev/null; cli-dev slow-tests",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: First sync and the pipeline board
|
|
3
|
+
goal: Copy your deals and their clients into the local store and see where each deal stands.
|
|
4
|
+
steps:
|
|
5
|
+
- run: amo setup
|
|
6
|
+
why: the account's address and the long-lived token from your private integration; both are checked against the account before anything is saved
|
|
7
|
+
- run: amo session status --check
|
|
8
|
+
why: the account and the user the token acts as, and whether that user is an administrator
|
|
9
|
+
- run: amo sync
|
|
10
|
+
why: copies the pipelines, the deals assigned to you and only the contacts and companies on them; the next sync takes only the changes
|
|
11
|
+
- run: amo pipelines show Sales
|
|
12
|
+
why: the pipeline as a board and a funnel, how many deals stand in each stage and how many reached it
|
|
13
|
+
- run: amo deals list status:open
|
|
14
|
+
why: the open deals with stage, amount and owner, from the store, offline too
|
|
15
|
+
look:
|
|
16
|
+
- the user in session status, since a colleague's token copies their deals, not yours
|
|
17
|
+
- warnings in the sync answer, such as a page the account refused
|
|
18
|
+
- the stage where most deals wait
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
`Sales` stands for one of your pipelines; `amo <profile> pipelines list` names them. An administrator can copy
|
|
22
|
+
colleagues' deals too, by their user ids: `amo <profile> users list`, then the `unassigned` setting on the settings
|
|
23
|
+
page. No setting copies the whole CRM, and any other client is read live with `people` or `organizations`.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Keep the copy up to date
|
|
3
|
+
goal: Have the local store follow the account on its own, and search it beside your other WireCat tools.
|
|
4
|
+
steps:
|
|
5
|
+
- run: amo schedule command crm --every 1h -- sync
|
|
6
|
+
why: a timer on this computer that runs sync every hour; it reads only what changed
|
|
7
|
+
- run: amo schedule list
|
|
8
|
+
why: the schedule, when it runs next and how its last run went
|
|
9
|
+
- run: amo store status
|
|
10
|
+
why: how far each kind's sync is, how many records are stored and when it last ran
|
|
11
|
+
- run: amo search all invoice
|
|
12
|
+
why: stored deals beside your messages, notes and meetings from other WireCat tools
|
|
13
|
+
look:
|
|
14
|
+
- a schedule whose last run failed
|
|
15
|
+
- a kind in store status that is partial, which the next sync goes on with
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
`amo <profile> sync --rescan` reads everything again, every id too, when the copy looks wrong.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Let an agent change the CRM without surprises
|
|
3
|
+
goal: Give an agent your CRM over MCP while the writes that reach clients or cannot be undone stay yours.
|
|
4
|
+
steps:
|
|
5
|
+
- run: amo config set permissions.deals.move readonly
|
|
6
|
+
why: a stage change can start the account's own automation, such as a Salesbot that writes to a client; over MCP ask does not ask, so ask stops nothing there
|
|
7
|
+
- run: amo config set permissions.deals.close deny
|
|
8
|
+
why: no agent marks a deal won or lost, whatever it is asked
|
|
9
|
+
- run: amo mcp add claude-code --permission people.update=deny --allow-writes
|
|
10
|
+
why: add this profile to Claude Code; this server also refuses contact changes, and --allow-writes acknowledges the writes it still offers
|
|
11
|
+
- run: amo config show
|
|
12
|
+
why: each permission with its level and where it came from
|
|
13
|
+
- run: amo runs list
|
|
14
|
+
why: what the agent ran, refused writes too
|
|
15
|
+
look:
|
|
16
|
+
- the levels of deals.move, deals.close and people.update in config show
|
|
17
|
+
- refused runs in runs list, and which command asked
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
At a terminal `ask` still asks before the write. Over MCP nobody is there to answer, so a write at `ask` goes ahead;
|
|
21
|
+
set `readonly` or `deny`, or turn on approval of `amo_write` in the agent client.
|
package/skills/amo-cli/SKILL.md
CHANGED
|
@@ -21,7 +21,7 @@ the answer, stop.
|
|
|
21
21
|
|
|
22
22
|
Find only the commands the task needs: `amo commands info deals move --json` is one command's contract,
|
|
23
23
|
`amo help deals list` the short help with its query fields; `amo commands --json` (the whole tree) is for an overview,
|
|
24
|
-
not before every task. `amo doctor --json` says what is set up. None needs an account.
|
|
24
|
+
not before every task. `amo guide` lists scenarios; `amo doctor --json` says what is set up. None needs an account.
|
|
25
25
|
|
|
26
26
|
## The profile
|
|
27
27
|
|
|
@@ -32,7 +32,7 @@ amo work config set permissions.deals.move readonly
|
|
|
32
32
|
amo work config set permissions.deals.close deny
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
At a terminal `ask` still asks.
|
|
35
|
+
At a terminal `ask` still asks. `amo guide safe-agent-writes` walks through the same.
|
|
36
36
|
|
|
37
37
|
Guides for people: [MCP](https://github.com/WireCatLabs/amo-cli/blob/main/docs/mcp.md),
|
|
38
38
|
[permissions](https://github.com/WireCatLabs/amo-cli/blob/main/docs/permissions.md).
|
|
@@ -28,7 +28,7 @@ Gemini CLI and OpenClaw look; `--for hermes` adds Hermes Agent too.
|
|
|
28
28
|
6. **Keep it fresh**, only if the owner asks: `amo work schedule command crm --every 1h -- sync` installs a timer on
|
|
29
29
|
this computer. A morning digest:
|
|
30
30
|
`amo work schedule command crm-digest --at 08:30 -- changes list --format report`.
|
|
31
|
-
7. **Permissions** before an agent gets the CRM: [mcp.md](mcp.md)
|
|
31
|
+
7. **Permissions** before an agent gets the CRM: [mcp.md](mcp.md) and `amo guide safe-agent-writes`.
|
|
32
32
|
|
|
33
33
|
## Two settings only the owner sets
|
|
34
34
|
|