reply-cli 0.17.2 → 0.19.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/README.md +102 -56
- package/dist/commands/skills.js +13 -14
- package/dist/commands/skills.js.map +1 -1
- package/dist/operations/commands.js +76 -37
- package/dist/operations/commands.js.map +1 -1
- package/dist/operations/direct-send.d.ts +6 -1
- package/dist/operations/direct-send.js +47 -2
- package/dist/operations/direct-send.js.map +1 -1
- package/dist/operations/direct-sends.js +6 -5
- package/dist/operations/direct-sends.js.map +1 -1
- package/dist/skills/adapter-flat.d.ts +7 -18
- package/dist/skills/adapter-flat.js +69 -165
- package/dist/skills/adapter-flat.js.map +1 -1
- package/dist/skills/detect.js +2 -3
- package/dist/skills/detect.js.map +1 -1
- package/dist/skills/hosts.js +16 -16
- package/dist/skills/hosts.js.map +1 -1
- package/dist/skills/journal.d.ts +1 -1
- package/dist/skills/journal.js.map +1 -1
- package/dist/skills/orchestrate.d.ts +3 -8
- package/dist/skills/orchestrate.js +80 -73
- package/dist/skills/orchestrate.js.map +1 -1
- package/dist/skills/packs.d.ts +11 -15
- package/dist/skills/packs.js +66 -138
- package/dist/skills/packs.js.map +1 -1
- package/dist/skills/plugins.d.ts +19 -0
- package/dist/skills/plugins.js +67 -0
- package/dist/skills/plugins.js.map +1 -0
- package/dist/skills/report.d.ts +1 -2
- package/dist/skills/report.js +75 -20
- package/dist/skills/report.js.map +1 -1
- package/dist/skills/types.d.ts +18 -22
- package/package.json +2 -1
- package/skills/reply-adapter/reply-api/SKILL.md +231 -0
- package/skills/reply-adapter/reply-auth/SKILL.md +111 -0
- package/skills/reply-adapter/reply-cli/SKILL.md +178 -0
- package/skills/reply-adapter/reply-mcp/SKILL.md +115 -0
- package/skills/reply-adapter/reply-operations-mapping/SKILL.md +469 -0
- package/skills/reply-adapter/reply-operations-mapping/fulfilment.yaml +2986 -0
- package/skills/reply-adapter/reply-operations-mapping/references/fulfilment.md +872 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-01-discovery.md +35 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-02-contacts.md +46 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-03-audiences.md +39 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-04-import.md +28 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-05-campaigns.md +49 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-06-steps.md +41 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-07-messages.md +28 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-08-enrollment.md +30 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-09-conversations.md +32 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-10-tasks.md +35 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-11-meetings.md +40 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-12-signals.md +33 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-13-inbound.md +34 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-14-privacy.md +46 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-15-sending.md +57 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-16-social.md +36 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-17-oversight.md +55 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-18-team.md +38 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-19-accounts.md +35 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-20-measurement.md +33 -0
- package/skills/reply-adapter/reply-operations-mapping/references/mapping-21-introspection.md +38 -0
- package/dist/skills/adapter-native.d.ts +0 -22
- package/dist/skills/adapter-native.js +0 -335
- package/dist/skills/adapter-native.js.map +0 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.remove_plugin = exports.old_plugins = exports.default_runner = void 0;
|
|
4
|
+
const child_process_1 = require("child_process");
|
|
5
|
+
const packs_1 = require("./packs");
|
|
6
|
+
// The plugins an earlier version of this CLI installed through a host's own
|
|
7
|
+
// plugin CLI (Claude Code, Codex). This CLI installs nothing that way any
|
|
8
|
+
// more: it only lists those plugins, so `list` and `remove` still reach them,
|
|
9
|
+
// and removes one when the copy from the package replaces it.
|
|
10
|
+
const default_runner = (bin, args) => new Promise(resolve => {
|
|
11
|
+
(0, child_process_1.execFile)(bin, args, { encoding: 'utf8', windowsHide: true }, (error, stdout, stderr) => {
|
|
12
|
+
const code = error && typeof error.code === 'number'
|
|
13
|
+
? error.code
|
|
14
|
+
: (error ? 1 : 0);
|
|
15
|
+
resolve({ code, stdout: stdout ?? '', stderr: stderr ?? '' });
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
exports.default_runner = default_runner;
|
|
19
|
+
// Pack name → version, for the plugins of the old marketplace alone. Both
|
|
20
|
+
// hosts print a JSON listing, with different envelopes: Claude Code a direct
|
|
21
|
+
// array whose rows carry an `id` of the form "<pack>@<marketplace>" (older
|
|
22
|
+
// versions wrapped rows with `name` and `marketplace` in {plugins:[…]}), Codex
|
|
23
|
+
// {installed:[…]} with `marketplaceName`. A row is taken only when it names
|
|
24
|
+
// the old marketplace, so a plugin of the same name from anywhere else is
|
|
25
|
+
// never listed, and never removed. A row that names its scope (Claude Code's
|
|
26
|
+
// do) is taken only for the scope this run acts on.
|
|
27
|
+
const old_plugins = async (host, run, scope) => {
|
|
28
|
+
const cli = host.def.plugin_cli;
|
|
29
|
+
const result = await run(host.bin, cli.list_json());
|
|
30
|
+
if (result.code !== 0) {
|
|
31
|
+
return { ok: false, detail: (result.stderr || result.stdout).trim() || `exit code ${result.code}` };
|
|
32
|
+
}
|
|
33
|
+
let parsed;
|
|
34
|
+
try {
|
|
35
|
+
parsed = JSON.parse(result.stdout);
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
return { ok: false, detail: 'the plugin listing was not JSON' };
|
|
39
|
+
}
|
|
40
|
+
const doc = (parsed ?? {});
|
|
41
|
+
const rows = (Array.isArray(parsed)
|
|
42
|
+
? parsed
|
|
43
|
+
: [doc.plugins, doc.installed].find(Array.isArray) ?? []);
|
|
44
|
+
const out = {};
|
|
45
|
+
for (const row of rows) {
|
|
46
|
+
const raw = (row?.name ?? row?.id);
|
|
47
|
+
if (typeof raw !== 'string' || typeof row.version !== 'string') {
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
const at = raw.lastIndexOf('@');
|
|
51
|
+
const name = at < 0 ? raw : raw.slice(0, at);
|
|
52
|
+
const marketplace = at < 0 ? (row.marketplace ?? row.marketplaceName) : raw.slice(at + 1);
|
|
53
|
+
if (marketplace === packs_1.OLD_MARKETPLACE && (typeof row.scope !== 'string' || row.scope === scope)) {
|
|
54
|
+
out[name] = row.version;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return { ok: true, versions: out };
|
|
58
|
+
};
|
|
59
|
+
exports.old_plugins = old_plugins;
|
|
60
|
+
const remove_plugin = async (host, run, id, scope) => {
|
|
61
|
+
const result = await run(host.bin, host.def.plugin_cli.remove(id, scope));
|
|
62
|
+
return result.code === 0
|
|
63
|
+
? { ok: true }
|
|
64
|
+
: { ok: false, detail: (result.stderr || result.stdout).trim() || `exit code ${result.code}` };
|
|
65
|
+
};
|
|
66
|
+
exports.remove_plugin = remove_plugin;
|
|
67
|
+
//# sourceMappingURL=plugins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../src/skills/plugins.ts"],"names":[],"mappings":";;;AAAA,iDAAuC;AACvC,mCAAwC;AAIxC,4EAA4E;AAC5E,0EAA0E;AAC1E,8EAA8E;AAC9E,8DAA8D;AAE9D,MAAM,cAAc,GAAW,CAAC,GAAG,EAAE,IAAI,EAAC,EAAE,CAAA,IAAI,OAAO,CAAa,OAAO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KAAK,KAAK,KAAK,CAAC,EAC7F,CAAC;YACG,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC;QAC5B,CAAC;IACL,CAAC;IACD,OAAO,EAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAC,CAAC;AACrC,CAAC,CAAC;AAcsB,kCAAW;AAZnC,MAAM,aAAa,GAAG,KAAK,EACvB,IAAmB,EACnB,GAAW,EACX,EAAU,EACV,KAAY,EACoC,EAAE;IAClD,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,GAAa,EAAE,IAAI,CAAC,GAAG,CAAC,UAAW,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC;IACrF,OAAO,MAAM,CAAC,IAAI,KAAK,CAAC;QACpB,CAAC,CAAC,EAAC,EAAE,EAAE,IAAI,EAAC;QACZ,CAAC,CAAC,EAAC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,aAAa,MAAM,CAAC,IAAI,EAAE,EAAC,CAAC;AACrG,CAAC,CAAC;AAEmC,sCAAa"}
|
package/dist/skills/report.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Host_outcome, Operation, Report } from './types';
|
|
2
2
|
declare const summarize: (hosts: Host_outcome[], action: Operation) => Report["summary"];
|
|
3
|
-
declare const dependency_note: (requested: string[], resolved: string[]) => string | undefined;
|
|
4
3
|
declare const host_line: (host: Host_outcome, report_action: Operation) => string;
|
|
5
4
|
declare const human_lines: (report: Report) => string[];
|
|
6
5
|
declare const exit_code_for: (report: Report) => number;
|
|
7
|
-
export { summarize,
|
|
6
|
+
export { summarize, host_line, human_lines, exit_code_for };
|
package/dist/skills/report.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.exit_code_for = exports.human_lines = exports.host_line = exports.
|
|
3
|
+
exports.exit_code_for = exports.human_lines = exports.host_line = exports.summarize = void 0;
|
|
4
4
|
const hosts_1 = require("./hosts");
|
|
5
5
|
const output_1 = require("../utils/output");
|
|
6
6
|
// Turns per-host outcomes into what the user reads and what the process
|
|
@@ -11,8 +11,9 @@ const output_1 = require("../utils/output");
|
|
|
11
11
|
// space before it. A fixed 12 used to be enough and is not: 'GitHub Copilot' and
|
|
12
12
|
// 'Windsurf (Devin)' both overrun it and ran their text into the separator.
|
|
13
13
|
const LABEL_WIDTH = Math.max(...hosts_1.HOSTS.map(h => h.label.length)) + 1;
|
|
14
|
-
// "a, b or c" — no trailing comma, and safe at one or zero items.
|
|
15
|
-
const
|
|
14
|
+
// "a, b or c" (or "and") — no trailing comma, and safe at one or zero items.
|
|
15
|
+
const joined = (items, word) => items.length < 2 ? items[0] ?? '' : `${items.slice(0, -1).join(', ')} ${word} ${items[items.length - 1]}`;
|
|
16
|
+
const or_list = (items) => joined(items, 'or');
|
|
16
17
|
// `list` is a query: a host answering "ok" says nothing about whether any pack
|
|
17
18
|
// is actually there. For every other operation, "installed" is the outcome
|
|
18
19
|
// status (something landed, or didn't); for `list`, it is whether a pack was
|
|
@@ -25,21 +26,74 @@ const summarize = (hosts, action) => ({
|
|
|
25
26
|
failed: hosts.filter(h => h.status === 'failed').length,
|
|
26
27
|
});
|
|
27
28
|
exports.summarize = summarize;
|
|
28
|
-
const dependency_note = (requested, resolved) => {
|
|
29
|
-
const added = resolved.filter(name => !requested.includes(name));
|
|
30
|
-
if (!added.length || !requested.length) {
|
|
31
|
-
return undefined;
|
|
32
|
-
}
|
|
33
|
-
return `${added.join(', ')} added — required by ${requested.join(', ')}`;
|
|
34
|
-
};
|
|
35
|
-
exports.dependency_note = dependency_note;
|
|
36
29
|
const verb = {
|
|
37
30
|
installed: 'installed', upgraded: 'updated', removed: 'removed',
|
|
38
31
|
current: 'already current', failed: 'failed',
|
|
39
32
|
};
|
|
40
33
|
// `list` never changes anything: an 'upgraded' pack there means a newer
|
|
41
|
-
// version is available, not that an update already happened underfoot
|
|
42
|
-
|
|
34
|
+
// version is available, not that an update already happened underfoot, and a
|
|
35
|
+
// retired pack is one an earlier version installed and this one no longer
|
|
36
|
+
// offers.
|
|
37
|
+
const pack_verb = (report_action, pack) => {
|
|
38
|
+
if (report_action === 'list' && pack.retired && pack.action === 'current') {
|
|
39
|
+
return 'installed, no longer offered';
|
|
40
|
+
}
|
|
41
|
+
return report_action === 'list' && pack.action === 'upgraded' ? 'update available' : verb[pack.action];
|
|
42
|
+
};
|
|
43
|
+
// `list` answers what is installed, so each pack carries the version on disk:
|
|
44
|
+
// the one an available update would replace, not the one it would bring.
|
|
45
|
+
const listed_name = (report_action, pack) => {
|
|
46
|
+
const installed = pack.from ?? pack.version;
|
|
47
|
+
return report_action === 'list' && installed ? `${pack.name} ${installed}` : pack.name;
|
|
48
|
+
};
|
|
49
|
+
// The command that removes a plugin by hand, spelled from the host's own
|
|
50
|
+
// registry entry.
|
|
51
|
+
const remove_command = (host, id) => {
|
|
52
|
+
const def = hosts_1.HOSTS.find(h => h.id === host.host);
|
|
53
|
+
const bin = def?.binaries[0];
|
|
54
|
+
return def?.plugin_cli && bin
|
|
55
|
+
? [bin, ...def.plugin_cli.remove(id, host.scope ?? 'user')].join(' ')
|
|
56
|
+
: undefined;
|
|
57
|
+
};
|
|
58
|
+
// What happened to the old reply-adapter plugin the copy replaces.
|
|
59
|
+
const old_plugin_lines = (host) => {
|
|
60
|
+
const old = host.old_plugin;
|
|
61
|
+
if (!old) {
|
|
62
|
+
return [];
|
|
63
|
+
}
|
|
64
|
+
if (old.action === 'removed') {
|
|
65
|
+
return [output_1.pc.dim(` replaced the ${old.id} plugin with this copy`)];
|
|
66
|
+
}
|
|
67
|
+
const fix = remove_command(host, old.id);
|
|
68
|
+
return [
|
|
69
|
+
output_1.pc.yellow(` ⚠ the ${old.id} plugin is still installed and loads beside this copy`
|
|
70
|
+
+ `${old.detail ? `: ${old.detail}` : ''}`),
|
|
71
|
+
...(fix ? [output_1.pc.dim(` fix: ${fix}`)] : []),
|
|
72
|
+
];
|
|
73
|
+
};
|
|
74
|
+
// One line for the run: what an earlier version installed and this CLI no
|
|
75
|
+
// longer offers stays where it is — the other plugins of the old marketplace,
|
|
76
|
+
// and copies of the retired packs. Hosts that keep the same names share a
|
|
77
|
+
// clause, so each host is named with its own.
|
|
78
|
+
const retired_plugins_line = (report) => {
|
|
79
|
+
const groups = new Map();
|
|
80
|
+
for (const host of report.hosts) {
|
|
81
|
+
const names = [...host.retired_plugins ?? [], ...host.retired_packs ?? []];
|
|
82
|
+
if (!names.length) {
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
const key = names.join(', ');
|
|
86
|
+
const group = groups.get(key) ?? { names, labels: [] };
|
|
87
|
+
group.labels.push(host.label);
|
|
88
|
+
groups.set(key, group);
|
|
89
|
+
}
|
|
90
|
+
if (!groups.size) {
|
|
91
|
+
return undefined;
|
|
92
|
+
}
|
|
93
|
+
const clauses = [...groups.values()].map(({ names, labels }) => `${names.join(', ')} ${names.length === 1 ? 'stays' : 'stay'} installed in ${joined(labels, 'and')}`);
|
|
94
|
+
const all = new Set([...groups.values()].flatMap(g => g.names));
|
|
95
|
+
return output_1.pc.dim(`${clauses.join('; ')}; this CLI no longer offers ${all.size === 1 ? 'it' : 'them'}.`);
|
|
96
|
+
};
|
|
43
97
|
// Groups a host's packs by what happened, so one host is one line.
|
|
44
98
|
const host_line = (host, report_action) => {
|
|
45
99
|
const label = host.label.padEnd(LABEL_WIDTH);
|
|
@@ -51,8 +105,8 @@ const host_line = (host, report_action) => {
|
|
|
51
105
|
}
|
|
52
106
|
const groups = new Map();
|
|
53
107
|
for (const pack of host.packs ?? []) {
|
|
54
|
-
const key = pack_verb(report_action, pack
|
|
55
|
-
groups.set(key, [...(groups.get(key) ?? []), pack
|
|
108
|
+
const key = pack_verb(report_action, pack);
|
|
109
|
+
groups.set(key, [...(groups.get(key) ?? []), listed_name(report_action, pack)]);
|
|
56
110
|
}
|
|
57
111
|
if (!groups.size) {
|
|
58
112
|
return output_1.pc.dim(`· ${label}· nothing to do`);
|
|
@@ -68,7 +122,7 @@ const host_line = (host, report_action) => {
|
|
|
68
122
|
exports.host_line = host_line;
|
|
69
123
|
// Hosts this run put something new in front of. The action labels alone cannot
|
|
70
124
|
// answer it: an unchanged version reports `current` in every adapter, which is
|
|
71
|
-
// right, but a
|
|
125
|
+
// right, but repairing a copy that never finished at that same version did
|
|
72
126
|
// rewrite the files. `refreshed` carries exactly that, so both facts are
|
|
73
127
|
// consulted.
|
|
74
128
|
const changed_hosts = (report) => report.hosts.filter(h => (h.packs ?? []).some(p => p.action === 'installed' || p.action === 'upgraded' || p.refreshed === true));
|
|
@@ -85,21 +139,22 @@ const human_lines = (report) => {
|
|
|
85
139
|
return lines;
|
|
86
140
|
}
|
|
87
141
|
lines.push(output_1.pc.green(`✓ detected ${report.hosts.map(h => h.label).join(', ')}`));
|
|
88
|
-
const note = dependency_note(report.requested, report.resolved);
|
|
89
|
-
if (note && report.action === 'install') {
|
|
90
|
-
lines.push(output_1.pc.dim(` ${note}`));
|
|
91
|
-
}
|
|
92
142
|
for (const host of report.hosts) {
|
|
93
143
|
lines.push(host_line(host, report.action));
|
|
94
144
|
if (host.hint) {
|
|
95
145
|
lines.push(output_1.pc.dim(` fix: ${host.hint}`));
|
|
96
146
|
}
|
|
147
|
+
lines.push(...old_plugin_lines(host));
|
|
97
148
|
// Surface pack-level details for failed packs
|
|
98
149
|
const failed_packs = (host.packs ?? []).filter(p => p.action === 'failed' && p.detail);
|
|
99
150
|
for (const pack of failed_packs) {
|
|
100
151
|
lines.push(output_1.pc.dim(` ${pack.name}: ${pack.detail}`));
|
|
101
152
|
}
|
|
102
153
|
}
|
|
154
|
+
const retired = retired_plugins_line(report);
|
|
155
|
+
if (retired) {
|
|
156
|
+
lines.push(retired);
|
|
157
|
+
}
|
|
103
158
|
// Only the hosts that need it — restarting one that re-reads its skills
|
|
104
159
|
// every turn is work the host does not ask for. Named when a run touched
|
|
105
160
|
// both kinds.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../src/skills/report.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,4CAAmC;AAGnC,wEAAwE;AACxE,6EAA6E;AAC7E,kCAAkC;AAElC,2EAA2E;AAC3E,iFAAiF;AACjF,iFAAiF;AACjF,4EAA4E;AAC5E,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,aAAK,CAAC,GAAG,CAAC,CAAC,CAAA,EAAE,CAAA,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;AAElE,
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../src/skills/report.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,4CAAmC;AAGnC,wEAAwE;AACxE,6EAA6E;AAC7E,kCAAkC;AAElC,2EAA2E;AAC3E,iFAAiF;AACjF,iFAAiF;AACjF,4EAA4E;AAC5E,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,aAAK,CAAC,GAAG,CAAC,CAAC,CAAA,EAAE,CAAA,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;AAElE,6EAA6E;AAC7E,MAAM,MAAM,GAAG,CAAC,KAAe,EAAE,IAAY,EAAS,EAAE,CACpD,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,E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CAAC,CAAC,CAAC;AAChD,CAAC,CAAC;AAEyC,sCAAa"}
|
package/dist/skills/types.d.ts
CHANGED
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
type Pack = {
|
|
2
2
|
name: string;
|
|
3
|
-
display_name: string;
|
|
4
3
|
version: string;
|
|
5
|
-
|
|
6
|
-
dependencies: string[];
|
|
7
|
-
};
|
|
8
|
-
type Pack_registry = {
|
|
9
|
-
marketplace: string;
|
|
10
|
-
packs: Pack[];
|
|
4
|
+
retired?: boolean;
|
|
11
5
|
};
|
|
12
6
|
type Scope = 'user' | 'project';
|
|
13
|
-
type Host_kind = '
|
|
14
|
-
type
|
|
15
|
-
marketplace_add: (repo: string) => string[];
|
|
7
|
+
type Host_kind = 'flat-skills-dir';
|
|
8
|
+
type Plugin_cli = {
|
|
16
9
|
list_json: () => string[];
|
|
17
|
-
|
|
18
|
-
update: (pack: string, marketplace: string) => string[];
|
|
19
|
-
remove: (pack: string, marketplace: string) => string[];
|
|
20
|
-
update_scope: 'pack' | 'marketplace';
|
|
10
|
+
remove: (id: string, scope: Scope) => string[];
|
|
21
11
|
};
|
|
22
12
|
type Host_def = {
|
|
23
13
|
id: string;
|
|
@@ -26,9 +16,9 @@ type Host_def = {
|
|
|
26
16
|
config_dirs: string[];
|
|
27
17
|
binaries: string[];
|
|
28
18
|
binary_paths: string[];
|
|
29
|
-
|
|
30
|
-
user_skills_dir
|
|
31
|
-
project_skills_dir
|
|
19
|
+
plugin_cli?: Plugin_cli;
|
|
20
|
+
user_skills_dir: string;
|
|
21
|
+
project_skills_dir: string;
|
|
32
22
|
needs_new_session: boolean;
|
|
33
23
|
verified: boolean;
|
|
34
24
|
};
|
|
@@ -40,6 +30,12 @@ type Pack_outcome = {
|
|
|
40
30
|
from?: string;
|
|
41
31
|
detail?: string;
|
|
42
32
|
refreshed?: boolean;
|
|
33
|
+
retired?: boolean;
|
|
34
|
+
};
|
|
35
|
+
type Old_plugin = {
|
|
36
|
+
id: string;
|
|
37
|
+
action: 'removed' | 'failed';
|
|
38
|
+
detail?: string;
|
|
43
39
|
};
|
|
44
40
|
type Host_status = 'ok' | 'partial' | 'failed' | 'skipped';
|
|
45
41
|
type Host_outcome = {
|
|
@@ -52,7 +48,9 @@ type Host_outcome = {
|
|
|
52
48
|
reason?: string;
|
|
53
49
|
detail?: string;
|
|
54
50
|
hint?: string;
|
|
55
|
-
|
|
51
|
+
old_plugin?: Old_plugin;
|
|
52
|
+
retired_plugins?: string[];
|
|
53
|
+
retired_packs?: string[];
|
|
56
54
|
verified?: boolean;
|
|
57
55
|
needs_new_session?: boolean;
|
|
58
56
|
};
|
|
@@ -67,9 +65,7 @@ type Orphaned_packs = {
|
|
|
67
65
|
type Report = {
|
|
68
66
|
action: Operation;
|
|
69
67
|
source: {
|
|
70
|
-
|
|
71
|
-
ref: string;
|
|
72
|
-
commit?: string;
|
|
68
|
+
version: string;
|
|
73
69
|
};
|
|
74
70
|
requested: string[];
|
|
75
71
|
resolved: string[];
|
|
@@ -87,4 +83,4 @@ type Run_result = {
|
|
|
87
83
|
stderr: string;
|
|
88
84
|
};
|
|
89
85
|
type Runner = (bin: string, args: string[]) => Promise<Run_result>;
|
|
90
|
-
export type { Pack,
|
|
86
|
+
export type { Pack, Scope, Host_kind, Plugin_cli, Host_def, Orphaned_packs, Old_plugin, Pack_action, Pack_outcome, Host_status, Host_outcome, Operation, Report, Run_result, Runner, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reply-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Command-line interface for Reply.io. v1: authentication (OAuth + API key) and identity.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"dist",
|
|
30
|
+
"skills",
|
|
30
31
|
"README.md"
|
|
31
32
|
],
|
|
32
33
|
"devDependencies": {
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: reply-api
|
|
3
|
+
description: >
|
|
4
|
+
Work with the Reply.io API v3 correctly: discover endpoints through the machine-readable
|
|
5
|
+
docs, respect scopes and rate limits, handle problem+json errors and background jobs.
|
|
6
|
+
Use before calling any non-trivial v3 endpoint, when choosing an endpoint for a task,
|
|
7
|
+
or when an API call fails and needs interpretation.
|
|
8
|
+
metadata:
|
|
9
|
+
version: 1.5.0
|
|
10
|
+
pack: reply-adapter
|
|
11
|
+
category: execution
|
|
12
|
+
maturity: reviewed
|
|
13
|
+
status: active
|
|
14
|
+
owner: skills-maintainers
|
|
15
|
+
tags: [api, docs, errors, rate-limits]
|
|
16
|
+
tools: [reply-cli, reply-mcp]
|
|
17
|
+
api: [introduction, authentication, rate-limits]
|
|
18
|
+
relations:
|
|
19
|
+
depends-on: [reply-cli]
|
|
20
|
+
recommends: [reply-auth, reply-operations-mapping]
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Working with Reply API v3
|
|
24
|
+
|
|
25
|
+
## Purpose
|
|
26
|
+
|
|
27
|
+
API v3 (`https://api.reply.io/v3`) is the full execution surface of Reply — contacts, sequences,
|
|
28
|
+
inbox, channels, tasks, schedules, reports, webhooks and the AI-SDR cluster. The docs are built
|
|
29
|
+
for agents: this skill teaches the discovery-first workflow that avoids invented endpoints and
|
|
30
|
+
malformed bodies.
|
|
31
|
+
|
|
32
|
+
## When to use / when NOT to use
|
|
33
|
+
|
|
34
|
+
- Use whenever a task needs an endpoint you haven't verified in this session, or an error needs
|
|
35
|
+
interpreting.
|
|
36
|
+
- Do NOT guess endpoint paths or body shapes from memory — verify against the docs first.
|
|
37
|
+
|
|
38
|
+
## Prerequisites
|
|
39
|
+
|
|
40
|
+
A working credential (`reply auth whoami` succeeds) with the scopes the target endpoints require.
|
|
41
|
+
|
|
42
|
+
## Execution guidance
|
|
43
|
+
|
|
44
|
+
### Discovery-first workflow (always)
|
|
45
|
+
|
|
46
|
+
1. **Fetch the index once per session:** `https://docs.reply.io/llms.txt` — every endpoint with
|
|
47
|
+
its doc URL and required scope, one line each.
|
|
48
|
+
2. **Fetch the endpoint's doc page as raw markdown** by requesting its URL with the `.md` suffix
|
|
49
|
+
(e.g. `https://docs.reply.io/api-reference/sequences/list-all-sequences.md`) — exact path,
|
|
50
|
+
parameters, body schema, response examples.
|
|
51
|
+
3. **Call it:** `reply api <path exactly as documented>`.
|
|
52
|
+
|
|
53
|
+
Known-stable anchors you may use without re-checking: `GET /v3/whoami` (identity; no scope),
|
|
54
|
+
`GET /v3/whoami/team-users` (accessible teams), `GET /v3/background-jobs/{id}`,
|
|
55
|
+
`GET /v3/sequences/{id}/stats` and `GET /v3/sequences/stats` (stricter rate limits).
|
|
56
|
+
The full OpenAPI 3.1 spec exists at `https://docs.reply.io/api-reference/bundled.yaml` — prefer
|
|
57
|
+
per-page `.md` fetches; the spec is large.
|
|
58
|
+
|
|
59
|
+
### Conventions
|
|
60
|
+
|
|
61
|
+
- REST, plural nouns: `GET` read, `POST` create, `PATCH` update, `DELETE` remove; JSON bodies.
|
|
62
|
+
- **Errors** are RFC 9457 `application/problem+json` with a stable `code` slug
|
|
63
|
+
(`<resource>.<variant>`, e.g. `webHook.invalidEvent`). Validation 400s add an `errors[]` array
|
|
64
|
+
with JSON Pointers to the offending fields — read them, fix, retry once.
|
|
65
|
+
- **Async:** long operations return `202 Accepted` + `Location: /v3/background-jobs/{id}`.
|
|
66
|
+
Poll that endpoint until it completes; report the job result, not the 202.
|
|
67
|
+
- **Change feed:** `GET /v3/inbox/threads/changes` lists the inbox threads that changed, oldest
|
|
68
|
+
first, a page at a time from an opaque `cursor` or a `since` moment, and holds the last 30 days
|
|
69
|
+
only; from reply-cli 0.17.0 it is `reply inbox changes`. Keep the cursor it hands back, even on an
|
|
70
|
+
empty page, and pass it unchanged. A cursor or moment older than the window is refused (CLI code
|
|
71
|
+
`inbox.cursor_expired`), and so is a cursor the feed never issued or one ahead of its clock (CLI
|
|
72
|
+
code `inbox.cursor_refused`): read again from a moment inside the window. An account whose Reply
|
|
73
|
+
has no feed yet answers a bare 404 — page through the inbox threads instead.
|
|
74
|
+
- **Rate limits:** 100 req/min and 3000 req/hour per user; reporting and sequence-stats endpoints
|
|
75
|
+
are stricter. On 429 the CLI already retried honoring `Retry-After` — if it still fails, wait
|
|
76
|
+
and reduce concurrency (sequential calls for bulk work).
|
|
77
|
+
- **Direct sends** (from reply-cli 0.17.0): `--send-after <moment>` takes a moment with its offset
|
|
78
|
+
and sends it as UTC, and Reply holds the send until then. `--idempotency-key <key>` goes as the
|
|
79
|
+
`Idempotency-Key` header: the same request repeated under it answers the send Reply took rather
|
|
80
|
+
than sending again; `idempotency_key.in_use` says the first send under it is still being made
|
|
81
|
+
(wait and repeat), and `idempotency_key.reused` that it was taken for another request, whose send
|
|
82
|
+
the error's `details` names. The answer carries the send's `reference` and `state`, and its
|
|
83
|
+
`send_after` where one was given; take each field only when the answer gives it, and read a
|
|
84
|
+
`send_after` of null as no moment given. `reply direct-send get <reference>` reads the send and
|
|
85
|
+
`reply direct-send cancel <reference>` cancels one still held. Nothing lists the pending sends: a
|
|
86
|
+
harness that keeps the reference reads and cancels by it.
|
|
87
|
+
- **State:** `sent` means it went. `failed` and `cancelled` are final: Reply will not send it,
|
|
88
|
+
and neither a repeat under the key nor a read changes that. Any other state — `queued`,
|
|
89
|
+
`sending`, `waitingForSchedule`, or one this skill does not name — means Reply took the send
|
|
90
|
+
and it has not gone yet. Every such send can still be cancelled except a `sending` one, which
|
|
91
|
+
Reply is already sending.
|
|
92
|
+
- **Text:** where the answer carries `rendered_subject` and `rendered_body`, they are the
|
|
93
|
+
message as sent — the subject rendered, the body rendered with the account's signature and
|
|
94
|
+
the tracking applied. Reply keeps no other rendered copy.
|
|
95
|
+
- **Templates:** the text of an email, a LinkedIn message and an InMail is read as a template
|
|
96
|
+
in Reply's own syntax and filled in for the contact. A send Reply makes within the call is
|
|
97
|
+
filled in before anything goes, and one Reply cannot fill is refused with nothing sent, under a code reply-cli
|
|
98
|
+
gives it: on an email, from reply-cli 0.17.2, a code of the contact's for variables missing, whose
|
|
99
|
+
`details.missing_variables` lists the names, or one for a rendering that failed; on LinkedIn,
|
|
100
|
+
`linkedin.missing_variables`. A send
|
|
101
|
+
held for a later moment or a schedule, or one that goes now which Reply queues behind the
|
|
102
|
+
account's other sends, is filled in when it goes, so a name Reply cannot fill
|
|
103
|
+
then is not refused at the send: the send ends `failed`. On an email its `failure_code` is
|
|
104
|
+
`contact.missingVariables`, with the names under `missing_variables`, or `contact.renderingFailed`,
|
|
105
|
+
as reply-cli 0.17.2 prints them; on LinkedIn it carries no `failure_code`, and Reply's sentence is
|
|
106
|
+
its `failure_reason`. On LinkedIn Reply fills the sending account's
|
|
107
|
+
`SendingLinkedIn.SenderFirstName` and `SendingLinkedIn.SenderName`, and has no variable for
|
|
108
|
+
its last name or its address; the text goes as written, and Reply converts it from HTML to text
|
|
109
|
+
after filling it in. A LinkedIn message's or InMail's length is the length after the text is filled in (`linkedin.message_too_long`). A connection request's note
|
|
110
|
+
and a voice message's script are never filled in: either holding `{{` is refused,
|
|
111
|
+
`linkedin.missing_variables`, so write them as final text.
|
|
112
|
+
- **Read and cancel:** `reply direct-send get <reference>` answers the send's `state`, `channel`
|
|
113
|
+
and `send_after`, and, as they apply, `sent_at` and `message_id` once it went, `failure_reason`
|
|
114
|
+
where it failed and `cancelled_at` where it was cancelled. `reply direct-send cancel
|
|
115
|
+
<reference>` answers the same record, cancelled. A cancel of a send already cancelled answers
|
|
116
|
+
it again, so a cancel whose answer was lost is safe to repeat. A send that went, or that Reply
|
|
117
|
+
is already sending, answers `direct_send.already_sent`, and one that failed
|
|
118
|
+
`direct_send.already_failed`: nothing changed, so report it as gone or failed, never as
|
|
119
|
+
cancelled. `direct_send.not_found` says Reply holds no send under the reference, and
|
|
120
|
+
`direct_send.not_owned` that it holds one for an account this one is not; neither is repeated.
|
|
121
|
+
A failed send carries Reply's `failure_code`: `directSend.dispatchWindowMissed` is `failed` -
|
|
122
|
+
"Nothing went out; sending again is safe" - while `directSend.dispatchInterrupted` is to be
|
|
123
|
+
read as `unknown`, not `failed`: it may have gone out - "check before sending again" - so read
|
|
124
|
+
the person's thread before any new send.
|
|
125
|
+
- **A lost answer:** where an earlier try returned a `reference`, read it first with `reply
|
|
126
|
+
direct-send get <reference>` (from reply-cli 0.17.0), and let its state decide; repeat only
|
|
127
|
+
when the read says nothing of the send. Reply keeps a key for a day, so a repeat goes under
|
|
128
|
+
the same key only within 23 hours of the first try. Past that, or where the account's Reply
|
|
129
|
+
has no direct-send route (a bare 404 on the read), the key no longer settles a repeat: send
|
|
130
|
+
nothing, and leave whether the first try went to a person to check at Reply. Only a lost
|
|
131
|
+
answer is repeated: a timeout, a dropped connection, a CLI that died, an exit 0 whose answer
|
|
132
|
+
was cut off or could not be read, or a 5xx. A send Reply answered with a failure, a 4xx, is
|
|
133
|
+
never repeated, under the key or otherwise: Reply keeps no key for it, so a repeat would be a
|
|
134
|
+
new send. `idempotency_key.in_use` and a rate limit are the two 4xx that sent nothing, and
|
|
135
|
+
are waited out as their own rows say.
|
|
136
|
+
- **Schedules** are the account's sending windows: a time zone — the schedule's own, or the
|
|
137
|
+
recipient's where `use_recipient_time_zone` is true — the active ranges of each weekday, whether
|
|
138
|
+
holidays are skipped, and the windows of a sequence's later steps. `reply schedule list` (from
|
|
139
|
+
reply-cli 0.16.0) lists them with their `id`. Reading one, creating one and deleting one go
|
|
140
|
+
through `reply api`, on the pages of the `schedules` group in `llms.txt`: reply-cli 0.17.0 has no
|
|
141
|
+
command of its own for them. A schedule is shared, so a change or a delete reaches every sequence
|
|
142
|
+
that uses it. Its `reply_status` is Reply's word for the first use it finds — a campaign template,
|
|
143
|
+
a sequence of yours or a team member's, or a default — and a delete is only for one nothing uses.
|
|
144
|
+
- **On a direct send** (from reply-cli 0.17.0), `--schedule-id <id>` names a schedule from
|
|
145
|
+
`reply schedule list`, on email only: Reply refuses it on every LinkedIn route. Reply then
|
|
146
|
+
holds the send until the schedule's first opening at or after `--send-after`, or after now
|
|
147
|
+
where no moment is given. The answer's `state` says Reply holds the send, and it names no
|
|
148
|
+
moment: Reply estimates one only where the schedule opens within 30 days, and reply-cli does
|
|
149
|
+
not pass the estimate.
|
|
150
|
+
- **A schedule or a moment.** A moment is one exact instant somebody chose. A schedule serves
|
|
151
|
+
better where the right time is the person's working hours in their own time zone, where
|
|
152
|
+
holidays should be skipped, or where nobody will be awake to time each send: Reply works out
|
|
153
|
+
the next opening for each person. With both, the send goes at the schedule's first opening at
|
|
154
|
+
or after the moment.
|
|
155
|
+
- **A provider object.** Where the runtime carrying the work passes the reserved `provider` key
|
|
156
|
+
inside the operation's arguments, `args.provider`, `message.send` by email reads
|
|
157
|
+
`{"schedule_id": "<id>"}` and nothing else: the schedule's `id` from `reply schedule list`,
|
|
158
|
+
written as a string of its digits. Any other shape or another key is refused before anything is
|
|
159
|
+
sent, with a message that names the shape; write the object in that shape and ask again.
|
|
160
|
+
Reply refuses a schedule on every LinkedIn direct send in this version (scheduleId is not
|
|
161
|
+
supported for LinkedIn sends in this version, a 400 on each LinkedIn route), so a schedule on
|
|
162
|
+
a LinkedIn message is refused before any call.
|
|
163
|
+
|
|
164
|
+
### Endpoint availability (GA / Beta / Coming soon)
|
|
165
|
+
|
|
166
|
+
The docs mark endpoints as **Beta** (shape may change) or **Coming soon** (not callable yet) —
|
|
167
|
+
much of the AI-SDR cluster (autopilot, pending approvals, enrichment, Live Data) carries such
|
|
168
|
+
marks. Check the endpoint's doc page; if it's Coming soon, say so honestly — never improvise a
|
|
169
|
+
replacement with unrelated endpoints.
|
|
170
|
+
|
|
171
|
+
Not every account's Reply has every route yet. A bare 404 — no `code` of Reply's own — on a
|
|
172
|
+
direct send, `direct-send get` or `direct-send cancel` means the account's Reply does not have the
|
|
173
|
+
route, not that an identifier is wrong; from reply-cli 0.17.0 the CLI passes it through as
|
|
174
|
+
`reply.refused` with status 404 and no Reply code. Say the capability is not there yet; never
|
|
175
|
+
retry it as a stale identifier.
|
|
176
|
+
|
|
177
|
+
## Validation
|
|
178
|
+
|
|
179
|
+
For writes: re-read the entity (`GET`) and verify the change. For bulk/async: poll the background
|
|
180
|
+
job to terminal state and reconcile counts (created/updated/skipped/failed).
|
|
181
|
+
|
|
182
|
+
## Reporting
|
|
183
|
+
|
|
184
|
+
Record endpoint paths used, entity IDs created/modified, background-job IDs and final counts.
|
|
185
|
+
|
|
186
|
+
## Failure modes
|
|
187
|
+
|
|
188
|
+
| Signal | Meaning | Action |
|
|
189
|
+
|---|---|---|
|
|
190
|
+
| 400 + `errors[]` | invalid body/params | fix per JSON Pointer, retry once |
|
|
191
|
+
| 401 empty body | bad/expired credential | fix auth (`reply auth login`) |
|
|
192
|
+
| 403 `insufficient_scope` | key lacks the endpoint's scope | tell the user which scope is missing; don't retry |
|
|
193
|
+
| 403/401 `TEAM_REQUIRED`·`TEAM_NOT_ACCESSIBLE`·`USER_REQUIRED`·`USER_NOT_FOUND` | team/user resolution | see reply-auth skill |
|
|
194
|
+
| 404 | wrong/stale ID | re-list the entity, re-resolve the ID — don't invent IDs |
|
|
195
|
+
| 429 | rate limit | respect `Retry-After`; go sequential |
|
|
196
|
+
| 5xx | transient | already retried; wait, retry once, then report the API may be down |
|
|
197
|
+
|
|
198
|
+
## Safety
|
|
199
|
+
|
|
200
|
+
Read endpoints are safe. Treat every POST/PATCH/DELETE as a live mutation subject to the calling
|
|
201
|
+
skill's confirmation rules — especially anything that sends messages or starts sequences.
|
|
202
|
+
|
|
203
|
+
## Related skills
|
|
204
|
+
|
|
205
|
+
- `reply-cli` — the execution command (`reply api`).
|
|
206
|
+
- `reply-auth` — scopes model and team/org resolution.
|
|
207
|
+
|
|
208
|
+
## Changelog
|
|
209
|
+
|
|
210
|
+
- 1.5.0 (2026-10-30): *Conventions* says how a direct send's text is filled in as a template:
|
|
211
|
+
on an email, a LinkedIn message and an InMail; a send that goes now refused by reply-cli 0.17.2's
|
|
212
|
+
three codes, with the names Reply lists; a held send filled in when it goes and failed then; the
|
|
213
|
+
LinkedIn sender's two names, the text as written and the length after it is filled in; and a
|
|
214
|
+
connection request's note and a voice message's script never filled in.
|
|
215
|
+
- 1.4.0 (2026-10-29): *Conventions* names the schedules: `reply schedule list` (from reply-cli
|
|
216
|
+
0.16.0), reading, creating and deleting one through `reply api`, and that a schedule is shared;
|
|
217
|
+
`--schedule-id` on a direct send by email (from reply-cli 0.17.0), the first opening at or after
|
|
218
|
+
the moment where both are given, when a schedule serves better than a moment, and the provider
|
|
219
|
+
object a `message.send` reads where the runtime keeps one.
|
|
220
|
+
- 1.3.0 (2026-10-29): *Conventions* names the direct sends' `--send-after` and `--idempotency-key`,
|
|
221
|
+
the two `idempotency_key.*` codes and `reply direct-send get` and `cancel`, from reply-cli
|
|
222
|
+
0.17.0, and what a send's answer says: its fields only when given, its state (`sent`, final
|
|
223
|
+
`failed` and `cancelled`, anything else held), its rendered text as sent, what a read and a
|
|
224
|
+
cancel answer, a failed send's two codes, a cancel's two refusals and a second cancel a
|
|
225
|
+
success, and a lost answer read
|
|
226
|
+
back by reference first and repeated under the key within 23 hours; *Endpoint availability*
|
|
227
|
+
says what a bare 404 on those routes means.
|
|
228
|
+
- 1.2.0 (2026-10-29): the inbox change feed, `GET /v3/inbox/threads/changes`, and its window.
|
|
229
|
+
- 1.1.0 (2026-07-30): moved into the `reply-adapter` pack; category `technical` → `execution`;
|
|
230
|
+
`auth-and-keys` renamed `reply-auth`.
|
|
231
|
+
- 1.0.0 (2026-07-27): initial version against docs.reply.io (v3, July 2026).
|