@acnlabs/acn-cli 0.6.2 → 0.6.3

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1338,6 +1338,18 @@ function followCommand() {
1338
1338
  handleError(err);
1339
1339
  }
1340
1340
  });
1341
+ cmd.command("check <target_id>").description("Check whether you are following a specific agent").option("-i, --agent-id <id>", "Agent ID (defaults to config)").action(async (targetId, opts) => {
1342
+ const agentId = opts.agentId ?? requireAgentId5();
1343
+ try {
1344
+ const res = await acnGet(
1345
+ `/agents/${agentId}/follows/${targetId}`
1346
+ );
1347
+ const label = res.following ? "Following" : "Not following";
1348
+ output(res, `${label} ${targetId}`);
1349
+ } catch (err) {
1350
+ handleError(err);
1351
+ }
1352
+ });
1341
1353
  return cmd;
1342
1354
  }
1343
1355
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acnlabs/acn-cli",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Official CLI for ACN (Agent Collaboration Network) — zero-integration agent access",
5
5
  "main": "dist/index.js",
6
6
  "bin": {