@heyanon-arp/cli 0.0.9 → 0.0.10

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 CHANGED
@@ -643,6 +643,22 @@ function formatGenericError(err, verbose = false) {
643
643
  return `${import_chalk.default.red("Error")} ${message}
644
644
  ${import_chalk.default.gray(err.stack)}`;
645
645
  }
646
+ function onboardingHelpFooter() {
647
+ return [
648
+ "",
649
+ "New here? The guides ship inside the CLI \u2014 read them first, no docs site needed:",
650
+ ` ${import_chalk.default.cyan("heyarp guide")} ${import_chalk.default.dim("role-based walkthrough (worker / buyer)")}`,
651
+ ` ${import_chalk.default.cyan("heyarp guide --setup")} ${import_chalk.default.dim("one-time setup: keys, server, multi-agent isolation")}`,
652
+ ` ${import_chalk.default.cyan("heyarp guide --troubleshoot")} ${import_chalk.default.dim("common errors \u2192 fixes")}`,
653
+ "",
654
+ `${import_chalk.default.bold("Driving heyarp from an AI agent?")} Pipe YOUR role's guide into its system prompt`,
655
+ import_chalk.default.dim("(role is per-deal: BUYER if you send the offer + pay; WORKER if an offer comes to you):"),
656
+ ` ${import_chalk.default.cyan("heyarp guide --role worker --format prompt")} ${import_chalk.default.dim("# you do tasks, get paid")}`,
657
+ ` ${import_chalk.default.cyan("heyarp guide --role buyer --format prompt")} ${import_chalk.default.dim("# you order tasks, pay")}`,
658
+ "",
659
+ `${import_chalk.default.dim("Then:")} ${import_chalk.default.cyan("heyarp register")} ${import_chalk.default.dim("\u2192 handshake \u2192 delegation \u2192 work \u2192 receipt \u2192 settlement.")}`
660
+ ].join("\n");
661
+ }
646
662
  function toCliErrorJson(err, includeStack = false) {
647
663
  const { ApiError: ApiError2 } = (init_api(), __toCommonJS(api_exports));
648
664
  if (err instanceof ApiError2) {
@@ -5029,7 +5045,7 @@ var import_simple_update_notifier = __toESM(require("simple-update-notifier"));
5029
5045
  // package.json
5030
5046
  var package_default = {
5031
5047
  name: "@heyanon-arp/cli",
5032
- version: "0.0.9",
5048
+ version: "0.0.10",
5033
5049
  description: "Command-line client for the Agent Relationship Protocol \u2014 register agents, sign envelopes, run escrowed work cycles on Solana.",
5034
5050
  license: "MIT",
5035
5051
  keywords: ["arp", "agent-relationship-protocol", "did", "solana", "escrow", "ed25519", "agents", "a2a", "cli"],
@@ -5039,7 +5055,7 @@ var package_default = {
5039
5055
  publishConfig: {
5040
5056
  access: "public"
5041
5057
  },
5042
- files: ["dist", "scripts/postinstall.mjs", "LICENSE", "README.md"],
5058
+ files: ["dist", "LICENSE", "README.md"],
5043
5059
  engines: {
5044
5060
  node: ">=22"
5045
5061
  },
@@ -5049,8 +5065,7 @@ var package_default = {
5049
5065
  test: "jest --runInBand --detectOpenHandles --forceExit --passWithNoTests",
5050
5066
  lint: "biome check . --write",
5051
5067
  prepublishOnly: "pnpm run build",
5052
- prepare: "pnpm run build",
5053
- postinstall: "node scripts/postinstall.mjs"
5068
+ prepare: "pnpm run build"
5054
5069
  },
5055
5070
  dependencies: {
5056
5071
  "@heyanon-arp/sdk": "workspace:*",
@@ -8402,6 +8417,7 @@ async function main() {
8402
8417
  process.stderr.write(str);
8403
8418
  }
8404
8419
  });
8420
+ program.addHelpText("after", () => onboardingHelpFooter());
8405
8421
  registerConfigCommand(program);
8406
8422
  registerGuideCommand(program);
8407
8423
  registerHomesCommand(program);