-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli-commands.js
More file actions
67 lines (56 loc) · 2.23 KB
/
Copy pathcli-commands.js
File metadata and controls
67 lines (56 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* Published CLI command strings used by docs, MCP setup, and skills.
*
* - Run the published CLI without a global shim.
* - `setup` registers MCP for every supported host.
* - `doctor --live` is the health-check command.
*/
export const PROOFABLE_PKG = '@proofable/sdk';
/** Recommended one-time install for builders using the CLI regularly. */
export const PROOFABLE_INSTALL_CLI = `npm i -g ${PROOFABLE_PKG}`;
/** Zero-install prefix — works without global install. */
export const PROOFABLE_NPX = `npx -y ${PROOFABLE_PKG}`;
/** Short commands (after `PROOFABLE_INSTALL_CLI`). */
export const PROOFABLE_SETUP_CLI = 'proofable setup';
export const PROOFABLE_AUTH_CLI = 'proofable auth';
export const PROOFABLE_DOCTOR_CLI = 'proofable doctor --live';
export const PROOFABLE_EXAMPLES_CLI = 'proofable examples';
/** One-shot copy-paste (no global install required). */
export const PROOFABLE_SETUP_NPX = `${PROOFABLE_NPX} setup`;
export const PROOFABLE_AUTH_NPX = `${PROOFABLE_NPX} auth`;
export const PROOFABLE_DOCTOR_NPX = `${PROOFABLE_NPX} doctor --live`;
export const PROOFABLE_EXAMPLES_NPX = `${PROOFABLE_NPX} examples`;
/**
* @param {string} agentId
* @param {'cursor' | 'claude' | 'codex' | 'hermes' | 'openclaw' | 'opencode'} [host]
*/
export function proofableMountApply(agentId, host = 'cursor') {
const id = String(agentId || '').trim();
return `proofable mount ${id} --apply ${host}`;
}
/**
* @param {string} agentId
* @param {'cursor' | 'claude' | 'codex' | 'hermes' | 'openclaw' | 'opencode'} [host]
*/
export function proofableMountApplyNpx(agentId, host = 'cursor') {
const id = String(agentId || '').trim();
return `${PROOFABLE_NPX} mount ${id} --apply ${host}`;
}
/** Docs and product quick start. */
export const PROOFABLE_QUICKSTART_NPX = PROOFABLE_SETUP_NPX;
/** Per-repo agent bind (after auth on the machine). */
export const PROOFABLE_MOUNT_WORKFLOW = `${PROOFABLE_AUTH_CLI}
proofable mount <agentId> --apply <host>
${PROOFABLE_DOCTOR_CLI}`;
/**
* @param {string} subcommand
*/
export function proofableCmd(subcommand) {
return `proofable ${String(subcommand || '').trim()}`;
}
/**
* @param {string} subcommand
*/
export function proofableNpx(subcommand) {
return `${PROOFABLE_NPX} ${String(subcommand || '').trim()}`;
}