@heyanon-arp/cli 0.0.9 → 0.0.11
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/dist/cli.js +38 -11
- package/dist/cli.js.map +1 -1
- package/package.json +3 -5
- package/scripts/postinstall.mjs +0 -55
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heyanon-arp/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "Command-line client for the Agent Relationship Protocol — register agents, sign envelopes, run escrowed work cycles on Solana.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
24
|
"dist",
|
|
25
|
-
"scripts/postinstall.mjs",
|
|
26
25
|
"LICENSE",
|
|
27
26
|
"README.md"
|
|
28
27
|
],
|
|
@@ -37,7 +36,7 @@
|
|
|
37
36
|
"prompts": "^2.4.2",
|
|
38
37
|
"simple-update-notifier": "^2.0.0",
|
|
39
38
|
"@heyanon-arp/sdk": "0.0.8",
|
|
40
|
-
"@heyanon-arp/shield": "0.0.
|
|
39
|
+
"@heyanon-arp/shield": "0.0.3"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
42
|
"@types/jest": "^29.5.2",
|
|
@@ -53,7 +52,6 @@
|
|
|
53
52
|
"build": "tsup",
|
|
54
53
|
"start": "node dist/cli.js",
|
|
55
54
|
"test": "jest --runInBand --detectOpenHandles --forceExit --passWithNoTests",
|
|
56
|
-
"lint": "biome check . --write"
|
|
57
|
-
"postinstall": "node scripts/postinstall.mjs"
|
|
55
|
+
"lint": "biome check . --write"
|
|
58
56
|
}
|
|
59
57
|
}
|
package/scripts/postinstall.mjs
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Post-install onboarding banner for the `heyarp` CLI.
|
|
3
|
-
*
|
|
4
|
-
* The whole message is "the guides ship inside the CLI — read them first":
|
|
5
|
-
* `heyarp guide` is the canonical onboarding surface (a human walkthrough plus
|
|
6
|
-
* an LLM-system-prompt block for agent operators), so a fresh install points
|
|
7
|
-
* straight at it instead of an external docs site.
|
|
8
|
-
*
|
|
9
|
-
* Onboarding must NEVER get in the way, so this is deliberately defensive:
|
|
10
|
-
* - only for an interactive GLOBAL install (`npm i -g @heyanon-arp/cli`)
|
|
11
|
-
* - silent only in CI and non-TTY / piped contexts (no user opt-out — the
|
|
12
|
-
* banner shows on every interactive GLOBAL install + update)
|
|
13
|
-
* - honours NO_COLOR
|
|
14
|
-
* - fully wrapped so a banner failure can never fail the install
|
|
15
|
-
*/
|
|
16
|
-
try {
|
|
17
|
-
const isGlobalInstall = process.env.npm_config_global === 'true' || process.env.npm_config_global === '1';
|
|
18
|
-
const inCI = Boolean(process.env.CI);
|
|
19
|
-
const interactive = Boolean(process.stdout && process.stdout.isTTY);
|
|
20
|
-
|
|
21
|
-
if (!isGlobalInstall || inCI || !interactive) {
|
|
22
|
-
process.exit(0);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const useColor = !process.env.NO_COLOR;
|
|
26
|
-
const paint = (code, text) => (useColor ? `\x1b[${code}m${text}\x1b[0m` : text);
|
|
27
|
-
const bold = (t) => paint('1', t);
|
|
28
|
-
const cyan = (t) => paint('36', t);
|
|
29
|
-
const dim = (t) => paint('2', t);
|
|
30
|
-
|
|
31
|
-
const lines = [
|
|
32
|
-
'',
|
|
33
|
-
bold(' 🤝 heyarp installed — the Agent Relationship Protocol CLI'),
|
|
34
|
-
'',
|
|
35
|
-
' New here? The guides ship inside the CLI — read them first, no docs site needed:',
|
|
36
|
-
'',
|
|
37
|
-
` ${cyan('heyarp guide')} ${dim('role-based walkthrough (worker / buyer)')}`,
|
|
38
|
-
` ${cyan('heyarp guide --setup')} ${dim('one-time setup: keys, server, multi-agent isolation')}`,
|
|
39
|
-
` ${cyan('heyarp guide --troubleshoot')} ${dim('common errors → fixes')}`,
|
|
40
|
-
'',
|
|
41
|
-
` ${bold('Driving heyarp from an AI agent?')} Pipe YOUR role's guide into its system prompt`,
|
|
42
|
-
` ${dim('(role is per-deal: BUYER if you send the offer + pay; WORKER if an offer comes to you):')}`,
|
|
43
|
-
'',
|
|
44
|
-
` ${cyan('heyarp guide --role worker --format prompt')} ${dim('# you do tasks, get paid')}`,
|
|
45
|
-
` ${cyan('heyarp guide --role buyer --format prompt')} ${dim('# you order tasks, pay')}`,
|
|
46
|
-
'',
|
|
47
|
-
` ${dim('Then:')} ${cyan('heyarp register')} ${dim('→ handshake → delegation → work → receipt → settlement.')}`,
|
|
48
|
-
'',
|
|
49
|
-
];
|
|
50
|
-
process.stdout.write(`${lines.join('\n')}\n`);
|
|
51
|
-
} catch {
|
|
52
|
-
// Onboarding is best-effort. Never break an install over a banner.
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
process.exit(0);
|